vendor: 9,885 bytes, lines 1-26
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var Od=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eee={exports:{}},Ck={},tee={exports:{}},yt={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Xy=Symbol.for("react.element"),gme=Symbol.for("react.portal"),mme=Symbol.for("react.fragment"),yme=Symbol.for("react.strict_mode"),xme=Symbol.for("react.profiler"),bme=Symbol.for("react.provider"),wme=Symbol.for("react.context"),_me=Symbol.for("react.forward_ref"),Sme=Symbol.for("react.suspense"),kme=Symbol.for("react.memo"),Cme=Symbol.for("react.lazy"),G8=Symbol.iterator;function Tme(e){return e===null||typeof e!="object"?null:(e=G8&&e[G8]||e["@@iterator"],typeof e=="function"?e:null)}var ree={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nee=Object.assign,aee={};function bv(e,t,r){this.props=e,this.context=t,this.refs=aee,this.updater=r||ree}bv.prototype.isReactComponent={};bv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};bv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iee(){}iee.prototype=bv.prototype;function w$(e,t,r){this.props=e,this.context=t,this.refs=aee,this.updater=r||ree}var _$=w$.prototype=new iee;_$.constructor=w$;nee(_$,bv.prototype);_$.isPureReactComponent=!0;var H8=Array.isArray,oee=Object.prototype.hasOwnProperty,S$={current:null},see={key:!0,ref:!0,__self:!0,__source:!0};function lee(e,t,r){var n,a={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)oee.call(t,n)&&!see.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)a[n]===void 0&&(a[n]=s[n]);return{$$typeof:Xy,type:e,key:i,ref:o,props:a,_owner:S$.current}}function Ame(e,t){return{$$typeof:Xy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function k$(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xy}function Eme(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var W8=/\/+/g;function WT(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Eme(""+e.key):t.toString(36)}function Fw(e,t,r,n,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Xy:case gme:o=!0}}if(o)return o=e,a=a(o),e=n===""?"."+WT(o,0):n,H8(a)?(r="",e!=null&&(r=e.replace(W8,"$&/")+"/"),Fw(a,t,r,"",function(u){return u})):a!=null&&(k$(a)&&(a=Ame(a,r+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(W8,"$&/")+"/")+e)),t.push(a)),1;if(o=0,n=n===""?".":n+":",H8(e))for(var s=0;s<e.length;s++){i=e[s];var l=n+WT(i,s);o+=Fw(i,t,r,l,a)}else if(l=Tme(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=n+WT(i,s++),o+=Fw(i,t,r,l,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function p1(e,t,r){if(e==null)return e;var n=[],a=0;return Fw(e,n,"","",function(i){return t.call(r,i,a++)}),n}function Nme(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Qn={current:null},Bw={transition:null},Ime={ReactCurrentDispatcher:Qn,ReactCurrentBatchConfig:Bw,ReactCurrentOwner:S$};yt.Children={map:p1,forEach:function(e,t,r){p1(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return p1(e,function(){t++}),t},toArray:function(e){return p1(e,function(t){return t})||[]},only:function(e){if(!k$(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};yt.Component=bv;yt.Fragment=mme;yt.Profiler=xme;yt.PureComponent=w$;yt.StrictMode=yme;yt.Suspense=Sme;yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ime;yt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=nee({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=S$.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)oee.call(t,l)&&!see.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Xy,type:e.type,key:a,ref:i,props:n,_owner:o}};yt.createContext=function(e){return e={$$typeof:wme,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:bme,_context:e},e.Consumer=e};yt.createElement=lee;yt.createFactory=function(e){var t=lee.bind(null,e);return t.type=e,t};yt.createRef=function(){return{current:null}};yt.forwardRef=function(e){return{$$typeof:_me,render:e}};yt.isValidElement=k$;yt.lazy=function(e){return{$$typeof:Cme,_payload:{_status:-1,_result:e},_init:Nme}};yt.memo=function(e,t){return{$$typeof:kme,type:e,compare:t===void 0?null:t}};yt.startTransition=function(e){var t=Bw.transition;Bw.transition={};try{e()}finally{Bw.transition=t}};yt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};yt.useCallback=function(e,t){return Qn.current.useCallback(e,t)};yt.useContext=function(e){return Qn.current.useContext(e)};yt.useDebugValue=function(){};yt.useDeferredValue=function(e){return Qn.current.useDeferredValue(e)};yt.useEffect=function(e,t){return Qn.current.useEffect(e,t)};yt.useId=function(){return Qn.current.useId()};yt.useImperativeHandle=function(e,t,r){return Qn.current.useImperativeHandle(e,t,r)};yt.useInsertionEffect=function(e,t){return Qn.current.useInsertionEffect(e,t)};yt.useLayoutEffect=function(e,t){return Qn.current.useLayoutEffect(e,t)};yt.useMemo=function(e,t){return Qn.current.useMemo(e,t)};yt.useReducer=function(e,t,r){return Qn.current.useReducer(e,t,r)};yt.useRef=function(e){return Qn.current.useRef(e)};yt.useState=function(e){return Qn.current.useState(e)};yt.useSyncExternalStore=function(e,t,r){return Qn.current.useSyncExternalStore(e,t,r)};yt.useTransition=function(){return Qn.current.useTransition()};yt.version="18.2.0";tee.exports=yt;var z=tee.exports;const wd=kk(z);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Pme=z,Mme=Symbol.for("react.element"),Dme=Symbol.for("react.fragment"),Lme=Object.prototype.hasOwnProperty,Rme=Pme.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$me={key:!0,ref:!0,__self:!0,__source:!0};function uee(e,t,r){var n,a={},i=null,o=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)Lme.call(t,n)&&!$me.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:Mme,type:e,key:i,ref:o,props:a,_owner:Rme.current}}Ck.Fragment=Dme;Ck.jsx=uee;Ck.jsxs=uee;eee.exports=Ck;var C$=eee.exports;const Rt=C$.Fragment,y=C$.jsx,w=C$.jsxs;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Ome=({className:e})=>y("div",{className:`inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-indigo-400 border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ${e}`,role:"status"}),zme=()=>y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[#faf9ff;]",children:y("div",{className:"flex flex-col items-center justify-center ",children:y(Ome,{})})}),Fme=wd.memo(zme);/** 18 * @remix-run/router v1.6.2 19 * 20 * Copyright (c) Remix Software Inc. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE.md file in the root directory of this source tree. 24 * 25 * @license MIT 26 */function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,779 bytes, line 26
26for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$m.apply(this,arguments)}var au;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(au||(au={}));const q8="popstate";function Bme(e){e===void 0&&(e={});function t(n,a){let{pathname:i,search:o,hash:s}=n.location;return _P("",{pathname:i,search:o,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Y_(a)}return Vme(t,r,null,e)}function _r(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function T$(e,t){if(!e)try{throw new Error(t)}catch{}}function jme(){return Math.random().toString(36).substr(2,8)}function Y8(e,t){return{usr:e.state,key:e.key,idx:t}}function _P(e,t,r,n){return r===void 0&&(r=null),$m({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wv(t):t,{state:r,key:t&&t.key||n||jme()})}function Y_(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function wv(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Vme(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,s=au.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($m({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=au.Pop;let m=c(),g=m==null?null:m-u;u=m,l&&l({action:s,location:v.location,delta:g})}function f(m,g){s=au.Push;let x=_P(v.location,m,g);r&&r(x,m),u=c()+1;let b=Y8(x,u),_=v.createHref(x);try{o.pushState(b,"",_)}catch{a.location.assign(_)}i&&l&&l({action:s,location:v.location,delta:1})}function h(m,g){s=au.Replace;let x=_P(v.location,m,g);r&&r(x,m),u=c();let b=Y8(x,u),_=v.createHref(x);o.replaceState(b,"",_),i&&l&&l({action:s,location:v.location,delta:0})}function p(m){let g=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof m=="string"?m:Y_(m);return _r(g,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,g)}let v={get action(){return s},get location(){return e(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(q8,d),l=m,()=>{a.removeEventListener(q8,d),l=null}},createHref(m){return t(a,m)},createURL:p,encodeLocation(m){let g=p(m);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:h,go(m){return o.go(m)}};return v}var K8;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(K8||(K8={}));function Ume(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?wv(t):t,a=A$(n.pathname||"/",r);if(a==null)return null;let i=cee(e);Gme(i);let o=null;for(let s=0;o==null&&s<i.length;++s)o=Qme(i[s],rye(a));return o}function cee(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,o,s)=>{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(_r(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=wu([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(_r(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),cee(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Xme(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of dee(i.path))a(i,o,l)}),t}function dee(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=dee(n.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Gme(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Jme(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Hme=/^:\w+$/,Wme=3,qme=2,Yme=1,Kme=10,Zme=-2,Z8=e=>e==="*";function Xme(e,t){let r=e.split("/"),n=r.length;return r.some(Z8)&&(n+=Zme),t&&(n+=qme),r.filter(a=>!Z8(a)).reduce((a,i)=>a+(Hme.test(i)?Wme:i===""?Yme:Kme),n)}function Jme(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Qme(e,t){let{routesMeta:r}=e,n={},a="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],l=o===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",c=eye({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;
vendor: 4,046 bytes, lines 26-35
26Object.assign(n,c.params);let d=s.route;i.push({params:n,pathname:wu([a,c.pathname]),pathnameBase:oye(wu([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=wu([a,c.pathnameBase]))}return i}function eye(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=tye(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,c,d)=>{if(c==="*"){let f=s[d]||"";o=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=nye(s[d]||"",c),u},{}),pathname:i,pathnameBase:o,pattern:e}}function tye(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),T$(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function rye(e){try{return decodeURI(e)}catch(t){return T$(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function nye(e,t){try{return decodeURIComponent(e)}catch(r){return T$(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function A$(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function aye(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?wv(e):e;return{pathname:r?r.startsWith("/")?r:iye(r,t):t,search:sye(n),hash:lye(a)}}function iye(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function qT(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function E$(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function N$(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=wv(e):(a=$m({},e),_r(!a.pathname||!a.pathname.includes("?"),qT("?","pathname","search",a)),_r(!a.pathname||!a.pathname.includes("#"),qT("#","pathname","hash",a)),_r(!a.search||!a.search.includes("#"),qT("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(n||o==null)s=r;else{let d=t.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=aye(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const wu=e=>e.join("/").replace(/\/\/+/g,"/"),oye=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sye=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lye=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function uye(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fee=["post","put","patch","delete"];new Set(fee);const cye=["get",...fee];new Set(cye);/** 27 * React Router v6.11.2 28 * 29 * Copyright (c) Remix Software Inc. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE.md file in the root directory of this source tree. 33 * 34 * @license MIT 35 */function K_(){return K_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
35for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K_.apply(this,arguments)}const I$=z.createContext(null),dye=z.createContext(null),_v=z.createContext(null),Tk=z.createContext(null),ls=z.createContext({outlet:null,matches:[],isDataRoute:!1}),hee=z.createContext(null);function fye(e,t){let{relative:r}=t===void 0?{}:t;Sv()||_r(!1);let{basename:n,navigator:a}=z.useContext(_v),{hash:i,pathname:o,search:s}=vee(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:wu([n,o])),a.createHref({pathname:l,search:s,hash:i})}function Sv(){return z.useContext(Tk)!=null}function ac(){return Sv()||_r(!1),z.useContext(Tk).location}function pee(e){z.useContext(_v).static||z.useLayoutEffect(e)}function mo(){let{isDataRoute:e}=z.useContext(ls);return e?Eye():hye()}function hye(){Sv()||_r(!1);let e=z.useContext(I$),{basename:t,navigator:r}=z.useContext(_v),{matches:n}=z.useContext(ls),{pathname:a}=ac(),i=JSON.stringify(E$(n).map(l=>l.pathnameBase)),o=z.useRef(!1);return pee(()=>{o.current=!0}),z.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){r.go(l);return}let c=N$(l,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:wu([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,a,e])}const pye=z.createContext(null);function vye(e){let t=z.useContext(ls).outlet;return t&&z.createElement(pye.Provider,{value:e},t)}function gye(){let{matches:e}=z.useContext(ls),t=e[e.length-1];return t?t.params:{}}function vee(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=z.useContext(ls),{pathname:a}=ac(),i=JSON.stringify(E$(n).map(o=>o.pathnameBase));return z.useMemo(()=>N$(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}function mye(e,t){return yye(e,t)}function yye(e,t,r){Sv()||_r(!1);let{navigator:n}=z.useContext(_v),{matches:a}=z.useContext(ls),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=ac(),u;if(t){var c;let v=typeof t=="string"?wv(t):t;s==="/"||(c=v.pathname)!=null&&c.startsWith(s)||_r(!1),u=v}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Ume(e,{pathname:f}),p=Sye(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},o,v.params),pathname:wu([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:wu([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r);return t&&p?z.createElement(Tk.Provider,{value:{location:K_({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:au.Pop}},p):p}function xye(){let e=Aye(),t=uye(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},t),r?z.createElement("pre",{style:a},r):null,i)}const bye=z.createElement(xye,null);class wye extends z.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){}render(){return this.state.error?z.createElement(ls.Provider,{value:this.props.routeContext},z.createElement(hee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _ye(e){let{routeContext:t,match:r,children:n}=e,a=z.useContext(I$);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),z.createElement(ls.Provider,{value:t},n)}function Sye(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let i=e,o=(n=r)==null?void 0:n.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||_r(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;r&&(d=l.route.errorElement||bye);let f=t.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=z.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,z.createElement(_ye,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:r!=null},children:p})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?z.createElement(wye,{location:r.location,revalidation:r.revalidation,component:d,error:c,children:h(),routeC
35ontext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var SP;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(SP||(SP={}));var Om;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Om||(Om={}));function kye(e){let t=z.useContext(I$);return t||_r(!1),t}function Cye(e){let t=z.useContext(dye);return t||_r(!1),t}function Tye(e){let t=z.useContext(ls);return t||_r(!1),t}function gee(e){let t=Tye(),r=t.matches[t.matches.length-1];return r.route.id||_r(!1),r.route.id}function Aye(){var e;let t=z.useContext(hee),r=Cye(Om.UseRouteError),n=gee(Om.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Eye(){let{router:e}=kye(SP.UseNavigateStable),t=gee(Om.UseNavigateStable),r=z.useRef(!1);return pee(()=>{r.current=!0}),z.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,K_({fromRouteId:t},i)))},[e,t])}function hp(e){let{to:t,replace:r,state:n,relative:a}=e;Sv()||_r(!1);let{matches:i}=z.useContext(ls),{pathname:o}=ac(),s=mo(),l=N$(t,E$(i).map(c=>c.pathnameBase),o,a==="path"),u=JSON.stringify(l);return z.useEffect(()=>s(JSON.parse(u),{replace:r,state:n,relative:a}),[s,u,a,r,n]),null}function Nye(e){return vye(e.context)}function hr(e){_r(!1)}function Iye(e){let{basename:t="/",children:r=null,location:n,navigationType:a=au.Pop,navigator:i,static:o=!1}=e;Sv()&&_r(!1);let s=t.replace(/^\/*/,"/"),l=z.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof n=="string"&&(n=wv(n));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=n,p=z.useMemo(()=>{let v=A$(u,s);return v==null?null:{location:{pathname:v,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:z.createElement(_v.Provider,{value:l},z.createElement(Tk.Provider,{children:r,value:p}))}function Pye(e){let{children:t,location:r}=e;return mye(kP(t),r)}var X8;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(X8||(X8={}));new Promise(()=>{});function kP(e,t){t===void 0&&(t=[]);let r=[];return z.Children.forEach(e,(n,a)=>{if(!z.isValidElement(n))return;let i=[...t,a];if(n.type===z.Fragment){r.push.apply(r,kP(n.props.children,i));return}n.type!==hr&&_r(!1),!n.props.index||!n.props.children||_r(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=kP(n.props.children,i)),r.push(o)}),r}/** 36 * React Router DOM v6.11.2 37 * 38 * Copyright (c) Remix Software Inc. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE.md file in the root directory of this source tree. 42 * 43 * @license MIT 44 */function CP(){return CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CP.apply(this,arguments)}function Mye(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Dye(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Lye(e,t){return e.button===0&&(!t||t==="_self")&&!Dye(e)}function TP(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Rye(e,t){let r=TP(e);
44if(t)for(let n of t.keys())r.has(n)||t.getAll(n).forEach(a=>{r.append(n,a)});return r}const $ye=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Oye(e){let{basename:t,children:r,window:n}=e,a=z.useRef();a.current==null&&(a.current=Bme({window:n,v5Compat:!0}));let i=a.current,[o,s]=z.useState({action:i.action,location:i.location});return z.useLayoutEffect(()=>i.listen(s),[i]),z.createElement(Iye,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:i})}const zye=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Fye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mn=z.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c}=t,d=Mye(t,$ye),{basename:f}=z.useContext(_v),h,p=!1;if(typeof u=="string"&&Fye.test(u)&&(h=u,zye))try{let x=new URL(window.location.href),b=u.startsWith("//")?new URL(x.protocol+u):new URL(u),_=A$(b.pathname,f);b.origin===x.origin&&_!=null?u=_+b.search+b.hash:p=!0}catch{}let v=fye(u,{relative:a}),m=Bye(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a});function g(x){n&&n(x),x.defaultPrevented||m(x)}return z.createElement("a",CP({},d,{href:h||v,onClick:p||i?n:g,ref:r,target:l}))});var J8;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(J8||(J8={}));var Q8;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Q8||(Q8={}));function Bye(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o}=t===void 0?{}:t,s=mo(),l=ac(),u=vee(e,{relative:o});return z.useCallback(c=>{if(Lye(c,r)){c.preventDefault();let d=n!==void 0?n:Y_(l)===Y_(u);s(e,{replace:d,state:a,preventScrollReset:i,relative:o})}},[l,s,u,n,a,r,e,i,o])}function jye(e){let t=z.useRef(TP(e)),r=z.useRef(!1),n=ac(),a=z.useMemo(()=>Rye(n.search,r.current?null:t.current),[n.search]),i=mo(),o=z.useCallback((s,l)=>{const u=TP(typeof s=="function"?s(a):s);r.current=!0,i("?"+u,l)},[i,a]);return[a,o]}const eF=e=>{let t;const r=new Set,n=(u,c)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const f=t;t=c??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(h=>h(t,f))}},a=()=>t,s={setState:n,getState:a,getInitialState:()=>l,subscribe:u=>(r.add(u),()=>r.delete(u))},l=t=e(n,a,s);return s},Vye=e=>e?eF(e):eF,Uye=e=>e;function Gye(e,t=Uye){const r=wd.useSyncExternalStore(e.subscribe,wd.useCallback(()=>t(e.getState()),[e,t]),wd.useCallback(()=>t(e.getInitialState()),[e,t]));return wd.useDebugValue(r),r}const tF=e=>{const t=Vye(e),r=n=>Gye(t,n);return Object.assign(r,t),r},Hye=e=>e?tF(e):tF;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Jr=Hye(e=>({user:null,token:null,isHydrated:!1,setAuth:(t,r)=>{localStorage.setItem("token",t),localStorage.setItem("user",JSON.stringify(r)),sessionStorage.removeItem("yg_why_shown"),e({token:t,user:r})},updateUser:t=>{e(r=>{if(!r.user)return r;const n={...r.user,...t};return localStorage.setItem("user",JSON.stringify(n)),{user:n}})},clearAuth:()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),e({token:null,user:null})},logout:()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),e({token:null,user:null})},loadFromStorage:()=>{const t=localStorage.getItem("token"),r=localStorage.getItem("user");let n=null;if(r)try{n=JSON.parse(r)}catch{localStorage.removeItem("user"),localStorage.removeItem("token"),e({token:null,user:null,isHydrated:!0});return}e({token:t,user:n,isHydrated:!0})}}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function _o({children:e}){const t=Jr(n=>n.token);return Jr(n=>n.isHydrated)?t?y(Rt,{children:e}):y(hp,{to:"/login",replace:!0}):y("div",{className:"min-h-screen flex items-center justify-center bg-bg",children:y("div",{className:"w-8 h-8 border-2 border-violet-500 border-t-transparent roun
44ded-full animate-spin"})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function vg({children:e}){const t=Jr(a=>a.token),r=Jr(a=>a.user);return Jr(a=>a.isHydrated)?t?(r==null?void 0:r.role)!=="admin"?y(hp,{to:"/",replace:!0}):y(Rt,{children:e}):y(hp,{to:"/admin/login",replace:!0}):y("div",{className:"min-h-screen flex items-center justify-center bg-slate-950",children:y("div",{className:"w-8 h-8 border-2 border-emerald-500 border-t-transparent rounded-full animate-spin"})})}/** 45 * @license lucide-react v0.294.0 - ISC 46 * 47 * This source code is licensed under the ISC license. 48 * See the LICENSE file in the root directory of this source tree. 49 */var Wye={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"};/** 50 * @license lucide-react v0.294.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const qye=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),pe=(e,t)=>{const r=z.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:s="",children:l,...u},c)=>z.createElement("svg",{ref:c,...Wye,width:a,height:a,stroke:n,strokeWidth:o?Number(i)*24/Number(a):i,className:["lucide",`lucide-${qye(e)}`,s].join(" "),...u},[...t.map(([d,f])=>z.createElement(d,f)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/** 55 * @license lucide-react v0.294.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */const Yye=pe("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** 60 * @license lucide-react v0.294.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const mee=pe("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 65 * @license lucide-react v0.294.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const yee=pe("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 70 * @license lucide-react v0.294.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const Z_=pe("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]);/** 75 * @license lucide-react v0.294.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const P$=pe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 80 * @license lucide-react v0.294.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const af=pe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 85 * @license lucide-react v0.294.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const M$=pe("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 90 * @license lucide-react v0.294.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const Kye=pe("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 95 * @license lucide-react v0.294.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const X_=pe("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/** 100 * @license lucide-react v0.294.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const YT=pe("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 105 * @license lucide-react v0.294.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const Yn=pe("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** 110 * @license lucide-react v0.294.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const pp=pe("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]);/** 115 * @license lucide-react v0.294.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const jw=pe("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]);/** 120 * @license lucide-react v0.294.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const Zye=pe("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 125 * @license lucide-react v0.294.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const vp=pe("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/** 130 * @license lucide-react v0.294.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const Xye=pe("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 135 * @license lucide-react v0.294.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const nn=pe("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 140 * @license lucide-react v0.294.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const _u=pe("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 145 * @license lucide-react v0.294.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const Ir=pe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 150 * @license lucide-react v0.294.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const zd=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 155 * @license lucide-react v0.294.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const Ak=pe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 160 * @license lucide-react v0.294.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const es=pe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 165 * @license lucide-react v0.294.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree.
169 */const rF=pe("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/** 170 * @license lucide-react v0.294.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const kv=pe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 175 * @license lucide-react v0.294.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const Jye=pe("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]);/** 180 * @license lucide-react v0.294.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const J_=pe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 185 * @license lucide-react v0.294.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const Su=pe("Dice5",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** 190 * @license lucide-react v0.294.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const AP=pe("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/** 195 * @license lucide-react v0.294.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const Vw=pe("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** 200 * @license lucide-react v0.294.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const Fd=pe("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 205 * @license lucide-react v0.294.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const jp=pe("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/** 210 * @license lucide-react v0.294.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const of=pe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 215 * @license lucide-react v0.294.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const Jy=pe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** 220 * @license lucide-react v0.294.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const EP=pe("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 225 * @license lucide-react v0.294.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const Qye=pe("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}
229],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/** 230 * @license lucide-react v0.294.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const nF=pe("Gamepad2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]);/** 235 * @license lucide-react v0.294.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const aF=pe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 240 * @license lucide-react v0.294.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const gp=pe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 245 * @license lucide-react v0.294.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const Xs=pe("HelpCircle",[["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"}]]);/** 250 * @license lucide-react v0.294.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const NP=pe("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** 255 * @license lucide-react v0.294.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const exe=pe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 260 * @license lucide-react v0.294.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 */const Ek=pe("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/** 265 * @license lucide-react v0.294.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree. 269 */const If=pe("Layers",[["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:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 270 * @license lucide-react v0.294.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const xee=pe("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 275 * @license lucide-react v0.294.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const txe=pe("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 280 * @license lucide-react v0.294.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const ku=pe("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}
284],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/** 285 * @license lucide-react v0.294.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const rxe=pe("LineChart",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 290 * @license lucide-react v0.294.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const bee=pe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 295 * @license lucide-react v0.294.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const Q_=pe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 300 * @license lucide-react v0.294.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const nxe=pe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 305 * @license lucide-react v0.294.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const wee=pe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 310 * @license lucide-react v0.294.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const _ee=pe("MessageCircle",[["path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z",key:"v2veuj"}]]);/** 315 * @license lucide-react v0.294.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const See=pe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 320 * @license lucide-react v0.294.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const axe=pe("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 325 * @license lucide-react v0.294.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const H0=pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 330 * @license lucide-react v0.294.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const ixe=pe("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/** 335 * @license lucide-react v0.294.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const Nk=pe("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]]);/** 340 * @license lucide-react v0.294.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const oxe=pe("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/** 345 * @license lucide-react v0.294.0 - ISC 346 * 347 * This source code is licensed under the ISC license. 348 * See the LICENSE file in the root directory of this source tree. 349 */const kee=pe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/** 350 * @license lucide-react v0.294.0 - ISC 351 * 352 * This source code is licensed under the ISC license. 353 * See the LICENSE file in the root directory of this source tree. 354 */const sxe=pe("PlusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/** 355 * @license lucide-react v0.294.0 - ISC 356 * 357 * This source code is licensed under the ISC license. 358 * See the LICENSE file in the root directory of this source tree. 359 */const Ti=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 360 * @license lucide-react v0.294.0 - ISC 361 * 362 * This source code is licensed under the ISC license. 363 * See the LICENSE file in the root directory of this source tree. 364 */const Cee=pe("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/** 365 * @license lucide-react v0.294.0 - ISC 366 * 367 * This source code is licensed under the ISC license. 368 * See the LICENSE file in the root directory of this source tree. 369 */const Zo=pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 370 * @license lucide-react v0.294.0 - ISC 371 * 372 * This source code is licensed under the ISC license. 373 * See the LICENSE file in the root directory of this source tree. 374 */const IP=pe("RotateCcw",[["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"}]]);/** 375 * @license lucide-react v0.294.0 - ISC 376 * 377 * This source code is licensed under the ISC license. 378 * See the LICENSE file in the root directory of this source tree. 379 */const eS=pe("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/** 380 * @license lucide-react v0.294.0 - ISC 381 * 382 * This source code is licensed under the ISC license. 383 * See the LICENSE file in the root directory of this source tree. 384 */const Ik=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 385 * @license lucide-react v0.294.0 - ISC 386 * 387 * This source code is licensed under the ISC license. 388 * See the LICENSE file in the root directory of this source tree. 389 */const KT=pe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 390 * @license lucide-react v0.294.0 - ISC 391 * 392 * This source code is licensed under the ISC license. 393 * See the LICENSE file in the root directory of this source tree. 394 */const Tee=pe("ShieldAlert",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 395 * @license lucide-react v0.294.0 - ISC 396 * 397 * This source code is licensed under the ISC license. 398 * See the LICENSE file in the root directory of this source tree. 399 */const zm=pe("ShieldCheck",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 400 * @license lucide-react v0.294.0 - ISC 401 * 402 * This source code is licensed under the ISC license. 403 * See the LICENSE file in the root directory of this source tree. 404 */const b0=pe("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/** 405 * @license lucide-react v0.294.0 - ISC 406 * 407 * This source code is licensed under the ISC license. 408 * See the LICENSE file in the root directory of this source tree. 409 */const gr=pe("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** 410 * @license lucide-react v0.294.0 - ISC 411 * 412 * This source code is licensed under the ISC license. 413 * See the LICENSE file in the root directory of this source tree. 414 */const lxe=pe("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/** 415 * @license lucide-react v0.294.0 - ISC 416 * 417 * This source code is licensed under the ISC license. 418 * See the LICENSE file in the root directory of this source tree. 419 */const uxe=pe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 420 * @license lucide-react v0.294.0 - ISC 421 * 422 * This source code is licensed under the ISC license. 423 * See the LICENSE file in the root directory of this source tree. 424 */const W0=pe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 425 * @license lucide-react v0.294.0 - ISC 426 * 427 * This source code is licensed under the ISC license. 428 * See the LICENSE file in the root directory of this source tree. 429 */const v1=pe("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/** 430 * @license lucide-react v0.294.0 - ISC 431 * 432 * This source code is licensed under the ISC license. 433 * See the LICENSE file in the root directory of this source tree. 434 */const D$=pe("Tag",[["path",{d:"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",key:"14b2ls"}],["path",{d:"M7 7h.01",key:"7u93v4"}]]);/** 435 * @license lucide-react v0.294.0 - ISC 436 * 437 * This source code is licensed under the ISC license. 438 * See the LICENSE file in the root directory of this source tree. 439 */const L$=pe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 440 * @license lucide-react v0.294.0 - ISC 441 * 442 * This source code is licensed under the ISC license. 443 * See the LICENSE file in the root directory of this source tree. 444 */const ZT=pe("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** 445 * @license lucide-react v0.294.0 - ISC 446 * 447 * This source code is licensed under the ISC license. 448 * See the LICENSE file in the root directory of this source tree. 449 */const ic=pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
449],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 450 * @license lucide-react v0.294.0 - ISC 451 * 452 * This source code is licensed under the ISC license. 453 * See the LICENSE file in the root directory of this source tree. 454 */const cxe=pe("Trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16v0H5v0h0a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"yh07w9"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);/** 455 * @license lucide-react v0.294.0 - ISC 456 * 457 * This source code is licensed under the ISC license. 458 * See the LICENSE file in the root directory of this source tree. 459 */const Aee=pe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 460 * @license lucide-react v0.294.0 - ISC 461 * 462 * This source code is licensed under the ISC license. 463 * See the LICENSE file in the root directory of this source tree. 464 */const Uo=pe("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 465 * @license lucide-react v0.294.0 - ISC 466 * 467 * This source code is licensed under the ISC license. 468 * See the LICENSE file in the root directory of this source tree. 469 */const dxe=pe("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 470 * @license lucide-react v0.294.0 - ISC 471 * 472 * This source code is licensed under the ISC license. 473 * See the LICENSE file in the root directory of this source tree. 474 */const R$=pe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 475 * @license lucide-react v0.294.0 - ISC 476 * 477 * This source code is licensed under the ISC license. 478 * See the LICENSE file in the root directory of this source tree. 479 */const tS=pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 480 * @license lucide-react v0.294.0 - ISC 481 * 482 * This source code is licensed under the ISC license. 483 * See the LICENSE file in the root directory of this source tree. 484 */const fxe=pe("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 485 * @license lucide-react v0.294.0 - ISC 486 * 487 * This source code is licensed under the ISC license. 488 * See the LICENSE file in the root directory of this source tree. 489 */const Tt=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 490 * @license lucide-react v0.294.0 - ISC 491 * 492 * This source code is licensed under the ISC license. 493 * See the LICENSE file in the root directory of this source tree. 494 */const Pf=pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);/** 495 * @license lucide-react v0.294.0 - ISC 496 * 497 * This source code is licensed under the ISC license. 498 * See the LICENSE file in the root directory of this source tree. 499 */const Fm=pe("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/** 500 * @license lucide-react v0.294.0 - ISC 501 * 502 * This source code is licensed under the ISC license. 503 * See the LICENSE file in the root directory of this source tree. 504 */const hxe=pe("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);let pxe=0;function ho(e,t){const r=`atom${++pxe}`,n={toString:()=>r};return typeof e=="function"?n.read=e:(n.init=e,n.read=a=>a(n),n.write=(a,i,o)=>i(n,typeof o=="function"?o(a(n)):o)),t&&(n.write=t),n}const XT=e=>"init"in e,JT=e=>!!e.write,rS=new WeakMap,vxe=(e,t)=>{rS.set(e,t),e.catch(()=>{}).finally(()=>rS.delete(e))},iF=(e,t)=>{const r=rS.get(e);r&&(rS.delete(e),r(t))},oF=(e,t)=>{e.status="fulfilled",e.value=t},sF=(e,t)=>{e.status="rejected",e.reason=t},g1=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),lF=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),QT=e=>"v"in e&&e.v instanceof Promise,m1=e=>{if("e"in e)throw e.e;return e.v},gxe=()=>{const e=new WeakMap,t=new WeakMap,r=new Map;let n,a;({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&(n=new Set,a=new Set);const i=T=>e.get(T),o=(T,E)=>{({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&Object.freeze(E);const A=e.get(T);if(e.set(T,E),r.has(T)||r.set(T,A),A&&QT(A)){const N="v"in E?E.v instanceof Promise?E.v:Promise.resolve(E.v):Promise.reject(E.e);iF(A.v,N)}},s=(T,E,A)=>{const N=new Map;let P=!1;A.forEach((L,R)=>{!L&&R===T&&(L=E),L&&(N.set(R,L),E.d.get(R)!==L&&(P=!0))}),(P||E.d.size!==N.size)&&(E.d=N)},l=(T,E,A)=>{const N=i(T),P={d:(N==null?void 0:N.d)||new Map,v:E};return A&&s(T,P,A),N&&g1(N,P)&&N.d===P.d?N:(o(T,P),P)},u=(T,E,A,N)=>{if(E instanceof Promise){let P;const L=new Promise((R,M)=>{let $=!1;E.then(V=>{if(!$){$=!0;const B=i(T),j=l(T,L,A);oF(L,V),R(V),(B==null?void 0:B.d)!==j.d&&k(T,j,B==null?void 0:B.d)}},V=>{if(!$){$=!0;const B=i(T),j=l(T,L,A);sF(L,V),M(V),(B==null?void 0:B.d)!==j.d&&k(T,j,B==null?void 0:B.d)}}),P=V=>{$||($=!0,V.then(B=>oF(L,B),B=>sF(L,B)),R(V))}});return L.status="pending",vxe(L,R=>{R&&P(R),N==null||N()}),l(T,L,A)}return l(T,E,A)},c=(T,E,A)=>{const N=i(T),P={d:(N==null?void 0:N.d)||new Map,e:E};return A&&s(T,P,A),N&&lF(N,P)&&N.d===P.d?N:(o(T,P),P)},d=T=>{const E=i(T);if(E&&(E.d.forEach(($,V)=>{V!==T&&!t.has(V)&&d(V)}),Array.from(E.d).every(([$,V])=>$===T||i($)===V)))return E;const A=new Map;let N=!0;const P=$=>
504{if($===T){const B=i($);if(B)return A.set($,B),m1(B);if(XT($))return A.set($,void 0),$.init;throw new Error("no atom init")}const V=d($);return A.set($,V),m1(V)};let L,R;const M={get signal(){return L||(L=new AbortController),L.signal},get setSelf(){return({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&JT(T),!R&&JT(T)&&(R=(...$)=>{if(!N)return x(T,...$)}),R}};try{const $=T.read(P,M);return u(T,$,A,()=>L==null?void 0:L.abort())}catch($){return c(T,$,A)}finally{N=!1}},f=T=>m1(d(T)),h=T=>{let E=t.get(T);return E||(E=b(T)),E},p=(T,E)=>!E.l.size&&(!E.t.size||E.t.size===1&&E.t.has(T)),v=T=>{const E=t.get(T);E&&p(T,E)&&_(T)},m=T=>{const E=t.get(T);E==null||E.t.forEach(A=>{if(A!==T){const N=i(A),P=d(A);(!N||!g1(N,P))&&m(A)}})},g=(T,...E)=>{let A=!0;const N=R=>m1(d(R)),P=(R,...M)=>{let $;if(R===T){if(!XT(R))throw new Error("atom not writable");const V=i(R),B=u(R,M[0]);(!V||!g1(V,B))&&m(R)}else $=g(R,...M);return A||S(),$},L=T.write(N,P,...E);return A=!1,L},x=(T,...E)=>{const A=g(T,...E);return S(),A},b=(T,E)=>{const A={t:new Set(E&&[E]),l:new Set};if(t.set(T,A),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.add(T),d(T).d.forEach((N,P)=>{const L=t.get(P);L?L.t.add(T):P!==T&&b(P,T)}),d(T),JT(T)&&T.onMount){const N=T.onMount((...P)=>x(T,...P));N&&(A.u=N)}return A},_=T=>{var E;const A=(E=t.get(T))==null?void 0:E.u;A&&A(),t.delete(T),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.delete(T);const N=i(T);N&&(QT(N)&&iF(N.v),N.d.forEach((P,L)=>{if(L!==T){const R=t.get(L);R&&(R.t.delete(T),p(L,R)&&_(L))}}))},k=(T,E,A)=>{const N=new Set(E.d.keys());A==null||A.forEach((P,L)=>{if(N.has(L)){N.delete(L);return}const R=t.get(L);R&&(R.t.delete(T),p(L,R)&&_(L))}),N.forEach(P=>{const L=t.get(P);L?L.t.add(T):t.has(T)&&b(P,T)})},S=()=>{for(;r.size;){const T=Array.from(r);r.clear(),T.forEach(([E,A])=>{const N=i(E);if(N){N.d!==(A==null?void 0:A.d)&&k(E,N,A==null?void 0:A.d);const P=t.get(E);P&&!(A&&!QT(A)&&(g1(A,N)||lF(A,N)))&&P.l.forEach(L=>L())}})}({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(T=>T("state"))},C=(T,E)=>{const A=h(T);S();const N=A.l;return N.add(E),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(P=>P("sub")),()=>{N.delete(E),v(T),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(P=>P("unsub"))}};return({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"?{get:f,set:x,sub:C,dev_subscribe_store:T=>(n.add(T),()=>{n.delete(T)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:T=>e.get(T),dev_get_mounted:T=>t.get(T),dev_restore_atoms:T=>{for(const[E,A]of T)XT(E)&&(u(E,A),m(E));S()}}:{get:f,set:x,sub:C}};let eA;const mxe=()=>(eA||(eA=gxe()),eA),yxe=z.createContext(void 0),Eee=e=>{const t=z.useContext(yxe);return(e==null?void 0:e.store)||t||mxe()},xxe=e=>e instanceof Promise,bxe=wd.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Pk(e,t){const r=Eee(t),[[n,a,i],o]=z.useReducer(u=>{const c=r.get(e);return Object.is(u[0],c)&&u[1]===r&&u[2]===e?u:[c,r,e]},void 0,()=>[r.get(e),r,e]);let s=n;(a!==r||i!==e)&&(o(),s=r.get(e));const l=t==null?void 0:t.delay;return z.useEffect(()=>{const u=r.sub(e,()=>{if(typeof l=="number"){setTimeout(o,l);return}o()});return o(),u},[r,e,l]),z.useDebugValue(s),xxe(s)?bxe(s):s}function wxe(e,t){const r=Eee(t);return z.useCallback((...a)=>{if(({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");return r.set(e,...a)},[r,e])}function _d(e,t){return[Pk(e,t),wxe(e,t)]}const _xe=Symbol();function Sxe(e){let t,r;const n={getItem:(a,i)=>{var o,s;const l=c=>{if(c=c||"",t!==c){try{r=JSON.parse(c)}catch{return i}t=c}return r},u=(s=(o=e())==null?void 0:o.getItem(a))!=null?s:null;return u instanceof Promise?u.then(l):l(u)},setItem:(a,i)=>{var o;return(o=e())==null?void 0:o.setItem(a,JSON.stringify(i))},removeItem:a=>{var i;return(i=e())==null?void 0:i.removeItem(a)}};return typeof window<"u"&&typeof window.addEventListener=="function"&&(n.subscribe=(a,i,o)=>
504{if(!(e()instanceof window.Storage))return()=>{};const s=l=>{if(l.storageArea===e()&&l.key===a){let u;try{u=JSON.parse(l.newValue||"")}catch{u=o}i(u)}};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}}),n}const kxe=Sxe(()=>typeof window<"u"?window.localStorage:void 0);function Sa(e,t,r=kxe){const n=ho(t);return({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&(n.debugPrivate=!0),n.onMount=i=>{const o=r.getItem(e,t);o instanceof Promise?o.then(l=>i(l)):i(o);let s;return r.subscribe&&(s=r.subscribe(e,i,t)),s},ho(i=>i(n),(i,o,s)=>{const l=typeof s=="function"?s(i(n)):s;return l===_xe?(o(n,t),r.removeItem(e)):(o(n,l),r.setItem(e,l))})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function oc(e,t){const r=Sa(e,t);return r.debugLabel="storageAtom",ho(n=>{const a=n(r);let i;if(typeof a!=typeof t)i=t;else{let s=!1;for(const l in t)if(!(l in a)){s=!0;break}i=s?{...t,...a}:a}if(i!==a){const s=JSON.stringify(i);localStorage.setItem(e,s)}return i},r.write)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Cxe=20,Txe="dismissStartCardDate",Axe={foreignFont:48,translateFont:18};var js={DEBUG:!1,LIB_VERSION:"2.47.0"},lr;if(typeof window>"u"){var uF={hostname:""};lr={navigator:{userAgent:""},document:{location:uF,referrer:""},screen:{width:0,height:0},location:uF}}else lr=window;var Mk=Array.prototype,Exe=Function.prototype,Nee=Object.prototype,iu=Mk.slice,Qy=Nee.toString,Dk=Nee.hasOwnProperty,Er=lr.console,ou=lr.navigator,Ht=lr.document,y1=lr.opera,nS=lr.screen,zo=ou.userAgent,tA=Exe.bind,cF=Mk.forEach,dF=Mk.indexOf,fF=Mk.map,Nxe=Array.isArray,PP={},F={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},jt={log:function(){if(js.DEBUG&&!F.isUndefined(Er)&&Er)try{Er.log.apply(Er,arguments)}catch{F.each(arguments,function(t){Er.log(t)})}},warn:function(){if(js.DEBUG&&!F.isUndefined(Er)&&Er){var e=["Mixpanel warning:"].concat(F.toArray(arguments));try{Er.warn.apply(Er,e)}catch{F.each(e,function(r){Er.warn(r)})}}},error:function(){if(js.DEBUG&&!F.isUndefined(Er)&&Er){var e=["Mixpanel error:"].concat(F.toArray(arguments));try{Er.error.apply(Er,e)}catch{F.each(e,function(r){Er.error(r)})}}},critical:function(){if(!F.isUndefined(Er)&&Er){var e=["Mixpanel error:"].concat(F.toArray(arguments));try{Er.error.apply(Er,e)}catch{F.each(e,function(r){Er.error(r)})}}}},rA=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(jt,arguments)}},$$=function(e){return{log:rA(jt.log,e),error:rA(jt.error,e),critical:rA(jt.critical,e)}};F.bind=function(e,t){var r,n;if(tA&&e.bind===tA)return tA.apply(e,iu.call(arguments,1));if(!F.isFunction(e))throw new TypeError;return r=iu.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(iu.call(arguments)));var a={};a.prototype=e.prototype;var i=new a;a.prototype=null;var o=e.apply(i,r.concat(iu.call(arguments)));return Object(o)===o?o:i},n};F.each=function(e,t,r){if(e!=null){if(cF&&e.forEach===cF)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,a=e.length;n<a;n++)if(n in e&&t.call(r,e[n],n,e)===PP)return}else for(var i in e)if(Dk.call(e,i)&&t.call(r,e[i],i,e)===PP)return}};F.extend=function(e){return F.each(iu.call(arguments,1),function(t){for(var r in t)t[r]!==void 0&&(e[r]=t[r])}),e};F.isArray=Nxe||function(e){return Qy.call(e)==="[object Array]"};F.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};F.isArguments=function(e){return!!(e&&Dk.call(e,"callee"))};F.toArray=function(e){return e?e.toArray?e.toArray():F.isArray(e)||F.isArguments(e)?iu.call(e):F.values(e):[]};F.map=function(e,t,r){if(fF&&e.map===fF)return e.map(t,r);var n=[];return F.each(e,function(a){n.push(t.call(r,a))}),n};F.keys=function(e){var t=[];return e===null||F.each(e,function(r,n){t[t.length]=n}),t};F.values=function(e){var t=[];return e===null||F.each(e,function(r){t[t.length]=r}),t};F.include=function(e,t){var r=!1;return e===null?r:dF&&e.indexOf===dF?e.indexOf(t)!=-1:(F.each(e,function(n){if(r||(r=n===t))return PP}),r)};F.includes=function(e,t){return e.indexOf(t)!==-1};F.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};F.isObject=function(e){return e===Object(e)&&!F.isArray(e)};F.isEmptyObject=function(e){if(F.isObject(e)){for(var t in e)if(Dk.call(e,t))return!1;return!0}return!1};F.isUndefined=function(e){return e===void 0};F.isString=function(e){return Qy.call(e)=="[object String]"};F.isDate=function(e){return Qy.call(e)=="[object Date]"};F.isNumber=function(e){return Qy.call(e)=="[object Number]"};F.isElement=function(e){return!!(e&&e.nodeType===1)};F.encodeDates=function(e){return F.each(e,function(t,r){F.isDate(t)?e[r]=F.formatDate(t):F.isObject(t)&&(e[r]=F.encodeDates(t))}),e};F.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};F.formatDate=function(e){function t(r){return r<10?"0"+r:r}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};F.strip_empty_properties=function(e){var t={};return F.each(e,function(r,n){F.isString(r)&&r.length>0&&(t[n]=r)}),t};F.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):F.isArray(e)?(r=[],F.each(e,function(n){r.push(F.truncate(n,t))})):F.isObject(e)?(r={},F.each(e,function(n,a){r[a]=F.truncate(n,t)})):r=e,r};F.JSONEncode=function(){return function(e){var t=e,r=function(a){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(a)?'"'+a.replace(i,function(s){var l=o[s];return typeof l=="string"?l:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'},n=function(a,i){var o="",s=" ",l=0,u="",c="",d=0,f=o,h=[],p=i[a];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(a)),typeof p){case"string":return r(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=s,h=[],Qy.apply(p)==="[object Array]"){for(d=p.length,l=0;l<d;l+=1)h[l]=n(l,p)||"null";return c=h.length===0?"[]":o?`[ 505`+o+h.join(`, 506`+o)+` 507`+f+"]":"["+h.join(",")+"]",o=f,c}for(u in p)Dk.call(p,u)&&(c=n(u,p),c&&h.push(r(u)+(o?": ":":")+c));return c=h.length===0?"{}":o?"{"+h.join(",")+f+"}":"{"+h.join(",")+"}",o=f,c}};return n("",{"":t})}}();F.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` 508`,r:"\r",t:" "},n,a=function(h){var p=new SyntaxError(h);throw p.at=e,p.text=n,p},i=function(h){return h&&h!==t&&a("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},o=function(){var h,p="";for(t==="-"&&(p="-",i("-"));t>="0"&&t<="9";)p+=t,i();if(t===".")for(p+=".";i()&&t>="0"&&t<="9";)p+=t;if(t==="e"||t==="E")for(p+=t,i(),(t==="-"||t==="+")&&(p+=t,i());t>="0"&&t<="9";)p+=t,i();if(h=+p,!isFinite(h))a("Bad number");else return h},s=function(){var h,p,v="",m;if(t==='"')for(;i();){if(t==='"')return i(),v;if(t==="\\")if(i(),t==="u"){for(m=0,p=0;p<4&&(h=parseInt(i(),16),!!isFinite(h));p+=1)m=m*16+h;v+=String.fromCharCode(m)}
508else if(typeof r[t]=="string")v+=r[t];else break;else v+=t}a("Bad string")},l=function(){for(;t&&t<=" ";)i()},u=function(){switch(t){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}a('Unexpected "'+t+'"')},c,d=function(){var h=[];if(t==="["){if(i("["),l(),t==="]")return i("]"),h;for(;t;){if(h.push(c()),l(),t==="]")return i("]"),h;i(","),l()}}a("Bad array")},f=function(){var h,p={};if(t==="{"){if(i("{"),l(),t==="}")return i("}"),p;for(;t;){if(h=s(),l(),i(":"),Object.hasOwnProperty.call(p,h)&&a('Duplicate key "'+h+'"'),p[h]=c(),l(),t==="}")return i("}"),p;i(","),l()}}a("Bad object")};return c=function(){switch(l(),t){case"{":return f();case"[":return d();case'"':return s();case"-":return o();default:return t>="0"&&t<="9"?o():u()}},function(h){var p;return n=h,e=0,t=" ",p=c(),l(),t&&a("Syntax error"),p}}();F.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,a,i,o,s,l,u,c=0,d=0,f="",h=[];if(!e)return e;e=F.utf8Encode(e);do r=e.charCodeAt(c++),n=e.charCodeAt(c++),a=e.charCodeAt(c++),u=r<<16|n<<8|a,i=u>>18&63,o=u>>12&63,s=u>>6&63,l=u&63,h[d++]=t.charAt(i)+t.charAt(o)+t.charAt(s)+t.charAt(l);while(c<e.length);switch(f=h.join(""),e.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};F.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,` 509`).replace(/\r/g,` 510`);var t="",r,n,a=0,i;for(r=n=0,a=e.length,i=0;i<a;i++){var o=e.charCodeAt(i),s=null;o<128?n++:o>127&&o<2048?s=String.fromCharCode(o>>6|192,o&63|128):s=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),s!==null&&(n>r&&(t+=e.substring(r,n)),t+=s,r=n=i+1)}return n>r&&(t+=e.substring(r,e.length)),t};F.UUID=function(){var e=function(){var n=1*new Date,a;if(lr.performance&&lr.performance.now)a=lr.performance.now();else for(a=0;n==1*new Date;)a++;return n.toString(16)+Math.floor(a).toString(16)},t=function(){return Math.random().toString(16).replace(".","")},r=function(){var n=zo,a,i,o=[],s=0;function l(u,c){var d,f=0;for(d=0;d<c.length;d++)f|=o[d]<<d*8;return u^f}for(a=0;a<n.length;a++)i=n.charCodeAt(a),o.unshift(i&255),o.length>=4&&(s=l(s,o),o=[]);return o.length>0&&(s=l(s,o)),s.toString(16)};return function(){var n=(nS.height*nS.width).toString(16);return e()+"-"+t()+"-"+r()+"-"+n+"-"+e()}}();var hF=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];F.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<hF.length;t++)if(e.indexOf(hF[t])!==-1)return!0;return!1};F.HTTPBuildQuery=function(e,t){var r,n,a=[];return F.isUndefined(t)&&(t="&"),F.each(e,function(i,o){r=encodeURIComponent(i.toString()),n=encodeURIComponent(o),a[a.length]=n+"="+r}),a.join(t)};F.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),a=n.exec(e);
vendor: 8,827 bytes, line 510
510if(a===null||a&&typeof a[1]!="string"&&a[1].length)return"";var i=a[1];try{i=decodeURIComponent(i)}catch{jt.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")};F.cookie={get:function(e){for(var t=e+"=",r=Ht.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];a.charAt(0)==" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return decodeURIComponent(a.substring(t.length,a.length))}return null},parse:function(e){var t;try{t=F.JSONDecode(F.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,r,n,a,i,o){var s="",l="",u="";if(o)s="; domain="+o;else if(n){var c=pF(Ht.location.hostname);s=c?"; domain=."+c:""}if(r){var d=new Date;d.setTime(d.getTime()+r*1e3),l="; expires="+d.toGMTString()}i&&(a=!0,u="; SameSite=None"),a&&(u+="; secure"),Ht.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u},set:function(e,t,r,n,a,i,o){var s="",l="",u="";if(o)s="; domain="+o;else if(n){var c=pF(Ht.location.hostname);s=c?"; domain=."+c:""}if(r){var d=new Date;d.setTime(d.getTime()+r*24*60*60*1e3),l="; expires="+d.toGMTString()}i&&(a=!0,u="; SameSite=None"),a&&(u+="; secure");var f=e+"="+encodeURIComponent(t)+l+"; path=/"+s+u;return Ht.cookie=f,f},remove:function(e,t,r){F.cookie.set(e,"",-1,t,!1,!1,r)}};var nA=null,aS=function(e,t){if(nA!==null&&!t)return nA;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+O$(8),a="xyz";e.setItem(n,a),e.getItem(n)!==a&&(r=!1),e.removeItem(n)}catch{r=!1}return nA=r,r};F.localStorage={is_supported:function(e){var t=aS(null,e);return t||jt.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){jt.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(t){F.localStorage.error(t)}return null},parse:function(e){try{return F.JSONDecode(F.localStorage.get(e))||{}}catch{}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(r){F.localStorage.error(r)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(t){F.localStorage.error(t)}}};F.register_event=function(){var e=function(n,a,i,o,s){if(!n){jt.error("No valid element provided to register_event");return}if(n.addEventListener&&!o)n.addEventListener(a,i,!!s);else{var l="on"+a,u=n[l];n[l]=t(n,i,u)}};function t(n,a,i){var o=function(s){if(s=s||r(window.event),!!s){var l=!0,u,c;return F.isFunction(i)&&(u=i(s)),c=a.call(n,s),(u===!1||c===!1)&&(l=!1),l}};return o}function r(n){return n&&(n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation),n}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var Ixe=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');F.dom_query=function(){function e(a){return a.all?a.all:a.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(a,i){var o=" "+i+" ";return(" "+a.className+" ").replace(t," ").indexOf(o)>=0}function n(a){if(!Ht.getElementsByTagName)return[];var i=a.split(" "),o,s,l,u,c,d,f,h,p,v,m=[Ht];for(d=0;d<i.length;d++){if(o=i[d].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){s=o.split("#"),l=s[0];var g=s[1],x=Ht.getElementById(g);if(!x||l&&x.nodeName.toLowerCase()!=l)return[];m=[x];continue}if(o.indexOf(".")>-1){s=o.split("."),l=s[0];var b=s[1];for(l||(l="*"),u=[],c=0,f=0;f<m.length;f++)for(l=="*"?p=e(m[f]):p=m[f].getElementsByTagName(l),h=0;h<p.length;h++)u[c++]=p[h];for(m=[],v=0,f=0;f<u.length;f++)u[f].className&&F.isString(u[f].className)&&r(u[f],b)&&(m[v++]=u[f]);continue}var _=o.match(Ixe);if(_){l=_[1];var k=_[2],S=_[3],C=_[4];for(l||(l="*"),u=[],c=0,f=0;f<m.length;f++)for(l=="*"?p=e(m[f]):p=m[f].getElementsByTagName(l),h=0;h<p.length;h++)u[c++]=p[h];m=[],v=0;var T;switch(S){case"=":T=function(E){return E.getAttribute(k)==C};break;case"~":T=function(E){return E.getAttribute(k).match(new RegExp("\\b"+C+"\\b"))};break;case"|":T=function(E){return E.getAttribute(k).match(new RegExp("^"+C+"-?"))};break;case"^":T=function(E){return E.getAttribute(k).indexOf(C)===0};break;case"$":T=function(E){return E.getAttribute(k).lastIndexOf(C)==E.getAttribute(k).length-C.length};break;case"*":T=function(E){return E.getAttribute(k).indexOf(C)>-1};break;default:T=function(E){return E.getAttribute(k)}}for(m=[],v=0,f=0;f<u.length;f++)T(u[f])&&(m[v++]=u[f]);continue}for(l=o,u=[],c=0,f=0;f<m.length;f++)for(p=m[f].getElementsByTagName(l),h=0;h<p.length;h++)u[c++]=p[h];m=u}return m}return function(a){return F.isElement(a)?[a]:F.isObject(a)&&!F.isUndefined(a.length)?a:n.call(this,a)}}();var Pxe=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],Mxe=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];F.info={campaignParams:function(e){var t="",r={};return F.each(Pxe,function(n){t=F.getQueryParam(Ht.URL,n),t.length?r[n]=t:e!==void 0&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return F.each(Mxe,function(r){e=F.getQueryParam(Ht.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return F.extend(F.info.campaignParams(),F.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=F.info.searchEngine(e),r=t!="yahoo"?"q":"p",n={};if(t!==null){n.$search_engine=t;var a=F.getQueryParam(e,r);a.length&&(n.mp_keyword=a)}return n},browser:function(e,t,r){return t=t||"",r||F.includes(e," OPR/")?F.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":F.includes(e,"IEMobile")||F.includes(e,"WPDesktop")?"Internet Explorer Mobile":F.includes(e,"SamsungBrowser/")?"Samsung Internet":F.includes(e,"Edge")||F.includes(e,"Edg/")?"Microsoft Edge":F.includes(e,"FBIOS")?"Facebook Mobile":F.includes(e,"Chrome")?"Chrome":F.includes(e,"CriOS")?"Chrome iOS":F.includes(e,"UCWEB")||F.includes(e,"UCBrowser")?"UC Browser":F.includes(e,"FxiOS")?"Firefox iOS":F.includes(t,"Apple")?F.includes(e,"Mobile")?"Mobile Safari":"Safari":F.includes(e,"Android")?"Android Mobile":F.includes(e,"Konqueror")?"Konqueror":F.includes(e,"Firefox")?"Firefox":F.includes(e,"MSIE")||F.includes(e,"Trident/")?"Internet Explorer":F.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=F.info.browser(e,t,r),a={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},i=a[n];if(i===void 0)return null;var o=e.match(i);return o?parseFloat(o[o.length-2]):null},os:function(){var e=zo;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return F.extend(F.strip_empty_properties({$os:F.info.os(),$browser:F.info.browser(zo,ou.vendor,y1),$referrer:Ht.referrer,$referring_domain:F.info.referringDomain(Ht.referrer),$device:F.info.device(zo)}),{$current_url:lr.location.href,$browser_version:F.info.browserVersion(zo,ou.vendor,y1),$screen_height:nS.height,$screen_width:nS.width,mp_lib:"web",$lib_version:js.LIB_VERSION,$insert_id:O$(),time:F.timestamp()/1e3})},people_properties:function(){return F.extend(F.strip_empty_properties({$os:F.info.os(),$browser:F.info.browser(zo,ou.vendor,y1)}),{$browser_version:F.info.browserVersion(zo,ou.vendor,y1)})},mpPageViewProperties:function(){return F.strip_empty_properties({current_page_title:Ht.title,current_domain:lr.location.hostname,current_url_path:lr.location.pathname,current_url_protocol:lr.location.protocol,current_url_search:lr.location.search})}};var O$=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Dxe=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Lxe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,pF=function(e){var t=Lxe,r=e.split("."),n=r[r.length-1];(n.length>
5104||n==="com"||n==="org")&&(t=Dxe);var a=e.match(t);return a?a[0]:""},iS=null,oS=null;typeof JSON<"u"&&(iS=JSON.stringify,oS=JSON.parse);iS=iS||F.JSONEncode;oS=oS||F.JSONDecode;F.toArray=F.toArray;F.isObject=F.isObject;F.JSONEncode=F.JSONEncode;F.JSONDecode=F.JSONDecode;F.isBlockedUA=F.isBlockedUA;F.isEmptyObject=F.isEmptyObject;F.info=F.info;F.info.device=F.info.device;F.info.browser=F.info.browser;F.info.browserVersion=F.info.browserVersion;F.info.properties=F.info.properties;var gl=function(){};gl.prototype.create_properties=function(){};gl.prototype.event_handler=function(){};gl.prototype.after_track_handler=function(){};gl.prototype.init=function(e){return this.mp=e,this};gl.prototype.track=function(e,t,r,n){var a=this,i=F.dom_query(e);if(i.length===0){jt.error("The DOM query ("+e+") returned 0 elements");return}return F.each(i,function(o){F.register_event(o,this.override_event,function(s){var l={},u=a.create_properties(r,this),c=a.mp.get_config("track_links_timeout");a.event_handler(s,this,l),window.setTimeout(a.track_callback(n,u,l,!0),c),a.mp.track(t,u,a.track_callback(n,u,l))})},this),!0};gl.prototype.track_callback=function(e,t,r,n){n=n||!1;var a=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&a.after_track_handler(t,r,n))}};gl.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=F.extend({},e),r};var Vp=function(){this.override_event="click"};F.inherit(Vp,gl);Vp.prototype.create_properties=function(e,t){var r=Vp.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Vp.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Vp.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Lk=function(){this.override_event="submit"};F.inherit(Lk,gl);Lk.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};Lk.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Rxe=$$("lock"),Iee=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};Iee.prototype.withLock=function(e,t,r){!r&&typeof t!="function"&&(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),i=this.storageKey,o=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,u=i+":X",c=i+":Y",d=i+":Z",f=function(x){t&&t(x)},h=function(x){if(new Date().getTime()-a>s){Rxe.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+n+"]"),l.removeItem(d),l.removeItem(c),m();return}setTimeout(function(){try{x()}catch(b){f(b)}},o*(Math.random()+.1))},p=function(x,b){x()?b():h(function(){p(x,b)})},v=function(){var x=l.getItem(c);if(x&&x!==n)return!1;if(l.setItem(c,n),l.getItem(c)===n)return!0;if(!aS(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},m=function(){l.setItem(u,n),p(v,function(){if(l.getItem(u)===n){g();return}h(function(){if(l.getItem(c)!==n){m();return}p(function(){return!l.getItem(d)},g)})})},g=function(){l.setItem(d,"1");try{e()}finally{l.removeItem(d),l.getItem(c)===n&&l.removeItem(c),l.getItem(u)===n&&l.removeItem(u)}};try{if(aS(l,!0))m();else throw new Error("localStorage support check failed")}catch(x){f(x)}};var vF=$$("batch"),sc=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||F.bind(vF.error,vF),this.lock=new Iee(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};sc.prototype.enqueue=function(e,t,r){var n={id:O$(),flushAfter:new Date().getTime()+t*2,payload:e};this.lock.withLock(F.bind(function(){var i;try{var o=this.readFromStorage();o.push(n),i=this.saveToStorage(o),i&&this.memQueue.push(n)}catch{this.reportError("Error enqueueing item",e),i=!1}r&&r(i)},this),F.bind(function(i){this.reportError("Error acquiring storage lock",i),r&&r(!1)},this),this.pid)};sc.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var r=this.readFromStorage();if(r.length){var n={};F.each(t,function(o){n[o.id]=!0});for(var a=0;a<r.length;a++){var i=r[a];if(new Date().getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t};var gF=function(e,t){var r=[];return F.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};sc.prototype.removeItemsByID=function(e,t){var r={};F.each(e,function(a){r[a]=!0}),this.memQueue=gF(this.memQueue,r);var n=F.bind(function(){var a;try{var i=this.readFromStorage();if(i=gF(i,r),a=this.saveToStorage(i),a){i=this.readFromStorage();for(var o=0;o<i.length;o++){var s=i[o];if(s.id&&r[s.id])return this.reportError("Item not removed from storage"),!1}}}catch{this.reportError("Error removing items",e),a=!1}return a},this);this.lock.withLock(function(){var i=n();t&&t(i)},F.bind(function(i){var o=!1;if(this.reportError("Error acquiring storage lock",i),!aS(this.storage,!0)&&(o=n(),!o))try{this.storage.removeItem(this.storageKey)}catch(s){this.reportError("Error clearing queue",s)}t&&t(o)},this),this.pid)};var mF=function(e,t){var r=[];return F.each(e,function(n){var a=n.id;if(a in t){var i=t[a];i!==null&&(n.payload=i,r.push(n))}else r.push(n)}),r};sc.prototype.updatePayloads=function(e,t){this.memQueue=mF(this.memQueue,e),this.lock.withLock(F.bind(function(){var n;try{var a=this.readFromStorage();a=mF(a,e),n=this.saveToStorage(a)}catch{this.reportError("Error updating items",e),n=!1}t&&t(n)},this),F.bind(function(n){this.reportError("Error acquiring storage lock",n),t&&t(!1)},this),this.pid)};sc.prototype.readFromStorage=function(){var e;try{e=this.storage.getItem(this.storageKey),e&&(e=oS(e),F.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]};sc.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,iS(e)),!0}catch(t){return this.reportError("Error saving queue",t),!1}};sc.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var $xe=10*60*1e3,q0=$$("batch"),us=function(e,t){this.errorReporter=t.errorReporter,this.queue=new sc(e,{errorReporter:F.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};us.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)};us.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};us.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};us.prototype.clear=function(){this.queue.clear()};us.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};us.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};us.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(F.bind(this.flush,this),this.flushInterval))};us.prototype.flush=function(e){try{if(this.requestInProgress){q0.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize,a=this.queue.fillBatch(n),i=[],o={};if(F.each(a,function(u){var c=u.payload;if(this.beforeSendHook&&!u.orphaned&&(c=this.beforeSendHook(c)),c){c.event&&c.properties&&(c.properties=F.extend({},c.properties,{mp_sent_by_lib_version:js.LIB_VERSION}));var d=!0,f=u.id;f?(this.itemIdsSentSuccessfully[f]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:a.length,timesSent:this.itemIdsSentSuccessfully[f]}),d=!1):this.reportError("[dupe] found item with no ID",{item:u}),d&&i.push(c)}o[u.id]=c},this),i.length<1){this.resetFlush();return}this.requestInProgress=!0;var s=F.bind(function(u){this.requestInProgress=!1;try{var c=!1;if(e.unloading)this.queue.updatePayloads(o);else if(F.isObject(u)&&u.error==="timeout"&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if(F.isObject(u)&&u.xhr_req&&(u.xhr_req.status>=500||u.xhr_req.status===429||u.error==="timeout")){var d=this.flushInterval*2,f=u.xhr_req.responseHeaders;if(f){var h=f["Retry-After"];h&&(d=parseInt(h,10)*1e3||d)}d=Math.min($xe,d),this.reportError("Error; retry in "+d+" ms"),this.scheduleFlush(d)}
vendor: 38,319 bytes, line 510
510else if(F.isObject(u)&&u.xhr_req&&u.xhr_req.status===413)if(a.length>1){var p=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,p,a.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",a),this.resetBatchSize(),c=!0;else c=!0;c&&(this.queue.removeItemsByID(F.map(a,function(v){return v.id}),F.bind(function(v){v?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),F.each(a,F.bind(function(v){var m=v.id;m?(this.itemIdsSentSuccessfully[m]=this.itemIdsSentSuccessfully[m]||0,this.itemIdsSentSuccessfully[m]++,this.itemIdsSentSuccessfully[m]>5&&this.reportError("[dupe] item ID sent too many times",{item:v,batchSize:a.length,timesSent:this.itemIdsSentSuccessfully[m]})):this.reportError("[dupe] found item with no ID while removing",{item:v})},this)))}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),q0.log("MIXPANEL REQUEST:",i),this.sendRequest(i,l,s)}catch(u){this.reportError("Error flushing request queue",u),this.resetFlush()}};us.prototype.reportError=function(e,t){if(q0.error.apply(q0.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){q0.error(r)}};var Oxe="__mp_opt_in_out_";function zxe(e,t){Dee(!0,e,t)}function Fxe(e,t){Dee(!1,e,t)}function Bxe(e,t){return Mee(e,t)==="1"}function Pee(e,t){if(Vxe(t))return jt.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=Mee(e,t)==="0";return r&&jt.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Cv(e){return B$(e,function(t){return this.get_config(t)})}function lc(e){return B$(e,function(t){return this._get_config(t)})}function Tv(e){return B$(e,function(t){return this._get_config(t)})}function jxe(e,t){t=t||{},z$(t).remove(F$(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function z$(e){return e=e||{},e.persistenceType==="localStorage"?F.localStorage:F.cookie}function F$(e,t){return t=t||{},(t.persistencePrefix||Oxe)+e}function Mee(e,t){return z$(t).get(F$(e,t))}function Vxe(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||lr,r=t.navigator||{},n=!1;return F.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(a){F.includes([!0,1,"1","yes"],a)&&(n=!0)}),n}function Dee(e,t,r){if(!F.isString(t)||!t.length){jt.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},z$(r).set(F$(t,r),e?1:0,F.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function B$(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),a=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),o=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=Pee(n,{ignoreDnt:a,persistenceType:i,persistencePrefix:o,window:s}))}catch(u){jt.error("Unexpected error when checking tracking opt-out status: "+u)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var Fu="$set",Up="$set_once",Qi="$unset",sf="$add",Js="$append",lf="$union",Bu="$remove",Uxe="$delete",Lee={set_action:function(e,t){var r={},n={};return F.isObject(e)?F.each(e,function(a,i){this._is_reserved_property(i)||(n[i]=a)},this):n[e]=t,r[Fu]=n,r},unset_action:function(e){var t={},r=[];return F.isArray(e)||(e=[e]),F.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[Qi]=r,t},set_once_action:function(e,t){var r={},n={};return F.isObject(e)?F.each(e,function(a,i){this._is_reserved_property(i)||(n[i]=a)},this):n[e]=t,r[Up]=n,r},union_action:function(e,t){var r={},n={};return F.isObject(e)?F.each(e,function(a,i){this._is_reserved_property(i)||(n[i]=F.isArray(a)?a:[a])},this):n[e]=F.isArray(t)?t:[t],r[lf]=n,r},append_action:function(e,t){var r={},n={};return F.isObject(e)?F.each(e,function(a,i){this._is_reserved_property(i)||(n[i]=a)},this):n[e]=t,r[Js]=n,r},remove_action:function(e,t){var r={},n={};return F.isObject(e)?F.each(e,function(a,i){this._is_reserved_property(i)||(n[i]=a)},this):n[e]=t,r[Bu]=n,r},delete_action:function(){var e={};return e[Uxe]="",e}},er=function(){};F.extend(er.prototype,Lee);er.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};er.prototype.set=Tv(function(e,t,r){var n=this.set_action(e,t);return F.isObject(e)&&(r=t),this._send_request(n,r)});er.prototype.set_once=Tv(function(e,t,r){var n=this.set_once_action(e,t);return F.isObject(e)&&(r=t),this._send_request(n,r)});er.prototype.unset=Tv(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});er.prototype.union=Tv(function(e,t,r){F.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});er.prototype.delete=Tv(function(e){var t=this.delete_action();return this._send_request(t,e)});er.prototype.remove=Tv(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});er.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=F.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)};er.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};er.prototype._get_config=function(e){return this._mixpanel.get_config(e)};er.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};er.prototype.remove=er.prototype.remove;er.prototype.set=er.prototype.set;er.prototype.set_once=er.prototype.set_once;er.prototype.union=er.prototype.union;er.prototype.unset=er.prototype.unset;er.prototype.toString=er.prototype.toString;var rt=function(){};F.extend(rt.prototype,Lee);rt.prototype._init=function(e){this._mixpanel=e};rt.prototype.set=lc(function(e,t,r){var n=this.set_action(e,t);return F.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Fu]=F.extend({},F.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),n[Fu]),this._send_request(n,r)});rt.prototype.set_once=lc(function(e,t,r){var n=this.set_once_action(e,t);return F.isObject(e)&&(r=t),this._send_request(n,r)});rt.prototype.unset=lc(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});rt.prototype.increment=lc(function(e,t,r){var n={},a={};return F.isObject(e)?(F.each(e,function(i,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(i))){jt.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else a[o]=i},this),r=t):(F.isUndefined(t)&&(t=1),a[e]=t),n[sf]=a,this._send_request(n,r)});rt.prototype.append=lc(function(e,t,r){F.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});rt.prototype.remove=lc(function(e,t,r){F.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});rt.prototype.union=lc(function(e,t,r){F.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});rt.prototype.track_charge=lc(function(e,t,r){if(!F.isNumber(e)&&(e=parseFloat(e),isNaN(e))){jt.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",F.extend({$amount:e},t),r)});rt.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};rt.prototype.delete_user=function(){if(!this._identify_called()){jt.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};rt.prototype.toString=function(){return this._mixpanel.toString()+".people"};rt.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),a=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),a&&(e.$had_persisted_distinct_id=a);var i=F.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),F.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),F.truncate(i,255))};rt.prototype._get_config=function(e){return this._mixpanel.get_config(e)};rt.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};rt.prototype._enqueue=function(e){Fu in e?this._mixpanel.persistence._add_to_people_queue(Fu,e):Up in e?this._mixpanel.persistence._add_to_people_queue(Up,e):Qi in e?this._mixpanel.persistence._add_to_people_queue(Qi,e):sf in e?this._mixpanel.persistence._add_to_people_queue(sf,e):Js in e?this._mixpanel.persistence._add_to_people_queue(Js,e):Bu in e?this._mixpanel.persistence._add_to_people_queue(Bu,e):lf in e?this._mixpanel.persistence._add_to_people_queue(lf,e):jt.error("Invalid call to _enqueue():",e)};rt.prototype._flush_one_queue=function(e,t,r,n){var a=this,i=F.extend({},this._mixpanel.persistence._get_queue(e)),o=i;!F.isUndefined(i)&&F.isObject(i)&&!F.isEmptyObject(i)&&(a._mixpanel.persistence._pop_from_people_queue(e,i),n&&(o=n(i)),t.call(a,o,function(s,l){s===0&&a._mixpanel.persistence._add_to_people_queue(e,i),F.isUndefined(r)||r(s,l)}))};rt.prototype._flush=function(e,t,r,n,a,i,o){var s=this,l=this._mixpanel.persistence._get_queue(Js),u=this._mixpanel.persistence._get_queue(Bu);if(this._flush_one_queue(Fu,this.set,e),this._flush_one_queue(Up,this.set_once,n),this._flush_one_queue(Qi,this.unset,i,function(m){return F.keys(m)}),this._flush_one_queue(sf,this.increment,t),this._flush_one_queue(lf,this.union,a),!F.isUndefined(l)&&F.isArray(l)&&l.length){for(var c,d=function(m,g){m===0&&s._mixpanel.persistence._add_to_people_queue(Js,c),F.isUndefined(r)||r(m,g)},f=l.length-1;f>=0;f--)c=l.pop(),F.isEmptyObject(c)||s.append(c,d);s._mixpanel.persistence.save()}if(!F.isUndefined(u)&&F.isArray(u)&&u.length){for(var h,p=function(m,g){m===0&&s._mixpanel.persistence._add_to_people_queue(Bu,h),F.isUndefined(o)||o(m,g)},v=u.length-1;v>=0;v--)h=u.pop(),F.isEmptyObject(h)||s.remove(h,p);s._mixpanel.persistence.save()}};rt.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};rt.prototype.set=rt.prototype.set;rt.prototype.set_once=rt.prototype.set_once;rt.prototype.unset=rt.prototype.unset;rt.prototype.increment=rt.prototype.increment;rt.prototype.append=rt.prototype.append;rt.prototype.remove=rt.prototype.remove;rt.prototype.union=rt.prototype.union;rt.prototype.track_charge=rt.prototype.track_charge;rt.prototype.clear_charges=rt.prototype.clear_charges;rt.prototype.delete_user=rt.prototype.delete_user;rt.prototype.toString=rt.prototype.toString;var j$="__mps",V$="__mpso",U$="__mpus",G$="__mpa",H$="__mpap",W$="__mpr",q$="__mpu",Ree="$people_distinct_id",sS="__alias",Bm="__timers",Gxe=[j$,V$,U$,G$,H$,W$,q$,Ree,sS,Bm],ft=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(jt.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&F.localStorage.is_supported()?this.storage=F.localStorage:this.storage=F.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};ft.prototype.properties=function(){var e={};return F.each(this.props,function(t,r){F.include(Gxe,r)||(e[r]=t)}),e};ft.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=F.extend({},e))}};ft.prototype.upgrade=function(e){var t=e.upgrade,r,n;t&&(r="mp_super_properties",typeof t=="string"&&(r=t),n=this.storage.parse(r),this.storage.remove(r),this.storage.remove(r,!0),n&&(this.props=F.extend(this.props,n.all,n.events))),!e.cookie_name&&e.name!=="mixpanel"&&(r="mp_"+e.token+"_"+e.name,n=this.storage.parse(r),n&&(this.storage.remove(r),this.storage.remove(r,!0),this.register_once(n))),this.storage===F.localStorage&&(n=F.cookie.parse(this.name),F.cookie.remove(this.name),F.cookie.remove(this.name,!0),n&&this.register_once(n))};ft.prototype.save=function(){this.disabled||this.storage.set(this.name,F.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};ft.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};ft.prototype.clear=function(){this.remove(),this.props={}};ft.prototype.register_once=function(e,t,r){return F.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,F.each(e,function(n,a){(!this.props.hasOwnProperty(a)||this.props[a]===t)&&(this.props[a]=n)},this),this.save(),!0):!1};ft.prototype.register=function(e,t){return F.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,F.extend(this.props,e),this.save(),!0):!1};ft.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())};ft.prototype.update_search_keyword=function(e){this.register(F.info.searchInfo(e))};ft.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:F.info.referringDomain(e)||"$direct"},"")};ft.prototype.get_referrer_info=function(){return F.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};ft.prototype.safe_merge=function(e){return F.each(this.props,function(t,r){r in e||(e[r]=t)}),e};ft.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};ft.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};ft.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};ft.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};ft.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};ft.prototype.get_cross_subdomain=function(){return this.cross_subdomain};ft.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};ft.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],a=this._get_or_create_queue(Fu),i=this._get_or_create_queue(Up),o=this._get_or_create_queue(Qi),s=this._get_or_create_queue(sf),l=this._get_or_create_queue(lf),u=this._get_or_create_queue(Bu,[]),c=this._get_or_create_queue(Js,[]);r===j$?(F.extend(a,n),this._pop_from_people_queue(sf,n),this._pop_from_people_queue(lf,n),this._pop_from_people_queue(Qi,n)):r===V$?(F.each(n,function(d,f){f in i||(i[f]=d)}),this._pop_from_people_queue(Qi,n)):r===U$?F.each(n,function(d){F.each([a,i,s,l],function(f){d in f&&delete f[d]}),F.each(c,function(f){d in f&&delete f[d]}),o[d]=!0}):r===G$?(F.each(n,function(d,f){f in a?a[f]+=d:(f in s||(s[f]=0),s[f]+=d)},this),this._pop_from_people_queue(Qi,n)):r===q$?(F.each(n,function(d,f){F.isArray(d)&&(f in l||(l[f]=[]),l[f]=l[f].concat(d))}),this._pop_from_people_queue(Qi,n)):r===W$?(u.push(n),this._pop_from_people_queue(Js,n)):r===H$&&(c.push(n),this._pop_from_people_queue(Qi,n)),jt.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),jt.log(t),this.save()};ft.prototype._pop_from_people_queue=function(e,t){var r=this._get_queue(e);F.isUndefined(r)||(F.each(t,function(n,a){e===Js||e===Bu?F.each(r,function(i){i[a]===n&&delete i[a]}):delete r[a]},this),this.save())};ft.prototype._get_queue_key=function(e){if(e===Fu)return j$;if(e===Up)return V$;if(e===Qi)return U$;if(e===sf)return G$;if(e===Js)return H$;if(e===Bu)return W$;if(e===lf)return q$;jt.error("Invalid queue:",e)};ft.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]};ft.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=F.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};ft.prototype.set_event_timer=function(e,t){var r=this.props[Bm]||{};r[e]=t,this.props[Bm]=r,this.save()};ft.prototype.remove_event_timer=function(e){var t=this.props[Bm]||{},r=t[e];return F.isUndefined(r)||(delete this.props[Bm][e],this.save()),r};var Y$,Tn,$ee=0,Hxe=1,Wxe=function(e){return e},jm=function(){},bi="mixpanel",Oee="base64",qxe="json",K$="$device:",mp=lr.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,zee=!mp&&zo.indexOf("MSIE")===-1&&zo.indexOf("Mozilla")===-1,lS=null;ou.sendBeacon&&(lS=function(){return ou.sendBeacon.apply(ou,arguments)});var yF={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:Oee,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:jm,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:jm,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Fee=!1,ae=function(){},MP=function(e,t,r){var n,a=r===bi?Tn:Tn[r];if(a&&Y$===$ee)n=a;else{if(a&&!F.isArray(a)){jt.error("You have already initialized "+r);return}n=new ae}if(n._cached_groups={},n._init(e,t,r),n.people=new rt,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=F.info.campaignParams(null),o={},s=!1;F.each(i,function(l,u){o["initial_"+u]=l,l&&(s=!0)}),s&&n.people.set_once(o)}return js.DEBUG=js.DEBUG||n.get_config("debug"),!F.isUndefined(a)&&F.isArray(a)&&(n._execute_array.call(n.people,a.people),n._execute_array(a)),n};ae.prototype.init=function(e,t,r){if(F.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===bi){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=MP(e,t,r);return Tn[r]=n,n._loaded(),n};ae.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var a=t.api_host||yF.api_host;a.match(/\.mixpanel\.com/)&&(n.api_payload_format=qxe)}if(this.set_config(F.extend({},yF,n,t,{name:r,token:e,callback_fn:(r===bi?r:bi+"."+r)+"._jsc"})),this._jsc=jm,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!F.localStorage.is_supported(!0)||!mp)this._batch_requests=!1,jt.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.init_batchers(),lS&&lr.addEventListener){var i=F.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);lr.addEventListener("pagehide",function(s){s.persisted&&i()}),lr.addEventListener("visibilitychange",function(){Ht.visibilityState==="hidden"&&i()})}}this.persistence=this.cookie=new ft(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=F.UUID();this.get_distinct_id()||this.register_once({distinct_id:K$+o,$device_id:o},""),this.get_config("track_pageview")&&this.track_pageview()};ae.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()};ae.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Ht.referrer),this.get_config("store_google")&&this.register(F.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Ht.referrer)};ae.prototype._dom_loaded=function(){F.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||F.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};ae.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Fee)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};ae.prototype._prepare_callback=function(e,t){if(F.isUndefined(e))return null;if(mp){var r=function(o){e(o,t)};return r}else{var n=this._jsc,a=""+Math.floor(Math.random()*1e8),i=this.get_config("callback_fn")+"["+a+"]";return n[a]=function(o){delete n[a],e(o,t)},i}};ae.prototype._send_request=function(e,t,r,n){var a=!0;if(zee)return this.__request_queue.push(arguments),a;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!n&&(F.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=F.extend(i,r||{}),mp||(r.method="GET");var s=r.method==="POST",l=lS&&s&&r.transport.toLowerCase()==="sendbeacon",u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),mp||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(o="data="+encodeURIComponent(t.data),delete t.data),e+="?"+F.HTTPBuildQuery(t);var c=this;if("img"in t){var d=Ht.createElement("img");d.src=e,Ht.body.appendChild(d)}else if(l){try{a=lS(e,o)}catch(g){c.report_error(g),a=!1}try{n&&n(a?1:0)}catch(g){c.report_error(g)}}else if(mp)try{var f=new XMLHttpRequest;f.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(s&&(h["Content-Type"]="application/x-www-form-urlencoded"),F.each(h,function(g,x){f.setRequestHeader(x,g)}),r.timeout_ms&&typeof f.timeout<"u"){f.timeout=r.timeout_ms;var p=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(n)if(u){var g;try{g=F.JSONDecode(f.responseText)}catch(b){if(c.report_error(b),r.ignore_json_errors)g=f.responseText;else return}n(g)}else n(Number(f.responseText))}else{var x;f.timeout&&!f.status&&new Date().getTime()-p>=f.timeout?x="timeout":x="Bad HTTP status: "+f.status+" "+f.statusText,c.report_error(x),n&&n(u?{status:0,error:x,xhr_req:f}:0)}},f.send(o)}catch(g){c.report_error(g),a=!1}else{var v=Ht.createElement("script");v.type="text/javascript",v.async=!0,v.defer=!0,v.src=e;var m=Ht.getElementsByTagName("script")[0];m.parentNode.insertBefore(v,m)}return a};ae.prototype._execute_array=function(e){var t,r=[],n=[],a=[];F.each(e,function(o){o&&(t=o[0],F.isArray(t)?a.push(o):typeof o=="function"?o.call(this):F.isArray(o)&&t==="alias"?r.push(o):F.isArray(o)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?a.push(o):n.push(o))},this);var i=function(o,s){F.each(o,function(l){if(F.isArray(l[0])){var u=s;F.each(l,function(c){u=u[c[0]].apply(u,c.slice(1))})}else this[l[0]].apply(this,l.slice(1))},s)};i(r,this),i(n,this),i(a,this)};ae.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};ae.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=F.bind(function(r){return new us("__mpq_"+e+r.queue_suffix,{libConfig:this.config,sendRequestFunc:F.bind(function(n,a,i){this._send_request(this.get_config("api_host")+r.endpoint,this._encode_data_for_request(n),a,this._prepare_callback(i,n))},this),beforeSendHook:F.bind(function(n){return this._run_hook("before_send_"+r.type,n)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:F.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()};ae.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,F.each(this.request_batchers,function(e){e.start()}))};ae.prototype.stop_batch_senders=function(){this._batch_requests=!1,F.each(this.request_batchers,function(e){e.stop(),e.clear()})};ae.prototype.push=function(e){this._execute_array([e])};ae.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};ae.prototype._encode_data_for_request=function(e){var t=F.JSONEncode(e);return this.get_config("api_payload_format")===Oee&&(t=F.base64Encode(t)),{data:t}};ae.prototype._track_or_batch=function(e,t){var r=F.truncate(e.data,255),n=e.endpoint,a=e.batcher,i=e.should_send_immediately,o=e.send_request_options||{};t=t||jm;var s=!0,l=F.bind(function(){return o.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(jt.log("MIXPANEL REQUEST:"),jt.log(r),this._send_request(n,this._encode_data_for_request(r),o,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!i?a.enqueue(r,function(u){u?t(1,r):l()}):s=l(),s&&r};ae.prototype.track=Cv(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var a=r.transport;a&&(r.transport=a);var i=r.send_immediately;if(typeof n!="function"&&(n=jm),F.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}t=t||{},t.token=this.get_config("token");var o=this.persistence.remove_event_timer(e);if(!F.isUndefined(o)){var s=new Date().getTime()-o;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?F.info.marketingParams():{};t=F.extend({},F.info.properties(),l,this.persistence.properties(),this.unpersisted_superprops,t);var u=this.get_config("property_blacklist");F.isArray(u)?F.each(u,function(f){delete t[f]}):this.report_error("Invalid value for property_blacklist config: "+u);var c={event:e,properties:t},d=this._track_or_batch({type:"events",data:c,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n);return d});ae.prototype.set_group=Cv(function(e,t,r){F.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});ae.prototype.add_group=Cv(function(e,t,r){var n=this.get_property(e);if(n===void 0){var a={};a[e]=[t],this.register(a)}else n.indexOf(t)===-1&&(n.push(t),this.register(a));return this.people.union(e,t,r)});ae.prototype.remove_group=Cv(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var a=n.indexOf(t);a>-1&&(n.splice(a,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});ae.prototype.track_with_groups=Cv(function(e,t,r,n){var a=F.extend({},t||{});return F.each(r,function(i,o){i!=null&&(a[o]=i)}),this.track(e,a,n)});ae.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};ae.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};ae.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new er,n._init(this,e,t),this._cached_groups[r]=n),n};ae.prototype.track_pageview=Cv(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",n=F.extend(F.info.mpPageViewProperties(),F.info.campaignParams(),F.info.clickParams()),a=F.extend({},n,e);return this.track(r,a)});ae.prototype.track_links=function(){return this._track_dom.call(this,Vp,arguments)};ae.prototype.track_forms=function(){return this._track_dom.call(this,Lk,arguments)};ae.prototype.time_event=function(e){if(F.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Yxe={persistent:!0},Z$=function(e){var t;return F.isObject(e)?t=e:F.isUndefined(e)?t={}:t={days:e},F.extend({},Yxe,t)};ae.prototype.register=function(e,t){var r=Z$(t);r.persistent?this.persistence.register(e,r.days):F.extend(this.unpersisted_superprops,e)};ae.prototype.register_once=function(e,t,r){var n=Z$(r);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),F.each(e,function(a,i){(!this.unpersisted_superprops.hasOwnProperty(i)||this.unpersisted_superprops[i]===t)&&(this.unpersisted_superprops[i]=a)},this))};ae.prototype.unregister=function(e,t){t=Z$(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};ae.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};ae.prototype.identify=function(e,t,r,n,a,i,o,s){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(K$)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==l&&e!==this.get_property(sS)&&(this.unregister(sS),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,a,i,o,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})};ae.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=F.UUID();this.register_once({distinct_id:K$+e,$device_id:e},"")};ae.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};ae.prototype.alias=function(e,t){if(e===this.get_property(Ree))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return F.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(sS,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};ae.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};ae.prototype.set_config=function(e){if(F.isObject(e)){F.extend(this.config,e);var t=e.batch_size;t&&F.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),js.DEBUG=js.DEBUG||this.get_config("debug")}};ae.prototype.get_config=function(e){return this.config[e]};ae.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Wxe).apply(this,iu.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};ae.prototype.get_property=function(e){return this.persistence.props[e]};ae.prototype.toString=function(){var e=this.get_config("name");return e!==bi&&(e=bi+"."+e),e};ae.prototype._event_is_disabled=function(e){return F.isBlockedUA(zo)||this._flags.disable_all_events||F.include(this.__disabled_events,e)};ae.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&F.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||F.cookie.get("mp_optout"))&&(F.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};ae.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t&&F.each(this.request_batchers,function(r){r.clear()})};ae.prototype._gdpr_call_func=function(e,t){return t=F.extend({track:F.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),F.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};ae.prototype.opt_in_tracking=function(e){e=F.extend({enable_persistence:!0},e),this._gdpr_call_func(zxe,e),this._gdpr_update_persistence(e)};ae.prototype.opt_out_tracking=function(e){e=F.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Fxe,e),this._gdpr_update_persistence(e)};ae.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Bxe,e)};ae.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Pee,e)};ae.prototype.clear_opt_in_out_tracking=function(e){e=F.extend({enable_persistence:!0},e),this._gdpr_call_func(jxe,e),this._gdpr_update_persistence(e)};ae.prototype.report_error=function(e,t){jt.error.apply(jt.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){jt.error(r)}};ae.prototype.init=ae.prototype.init;ae.prototype.reset=ae.prototype.reset;ae.prototype.disable=ae.prototype.disable;ae.prototype.time_event=ae.prototype.time_event;ae.prototype.track=ae.prototype.track;ae.prototype.track_links=ae.prototype.track_links;ae.prototype.track_forms=ae.prototype.track_forms;ae.prototype.track_pageview=ae.prototype.track_pageview;ae.prototype.register=ae.prototype.register;ae.prototype.register_once=ae.prototype.register_once;ae.prototype.unregister=ae.prototype.unregister;ae.prototype.identify=ae.prototype.identify;ae.prototype.alias=ae.prototype.alias;ae.prototype.name_tag=ae.prototype.name_tag;ae.prototype.set_config=ae.prototype.set_config;ae.prototype.get_config=ae.prototype.get_config;ae.prototype.get_property=ae.prototype.get_property;ae.prototype.get_distinct_id=ae.prototype.get_distinct_id;ae.prototype.toString=ae.prototype.toString;ae.prototype.opt_out_tracking=ae.prototype.opt_out_tracking;ae.prototype.opt_in_tracking=ae.prototype.opt_in_tracking;ae.prototype.has_opted_out_tracking=ae.prototype.has_opted_out_tracking;ae.prototype.has_opted_in_tracking=ae.prototype.has_opted_in_tracking;ae.prototype.clear_opt_in_out_tracking=ae.prototype.clear_opt_in_out_tracking;ae.prototype.get_group=ae.prototype.get_group;ae.prototype.set_group=ae.prototype.set_group;ae.prototype.add_group=ae.prototype.add_group;ae.prototype.remove_group=ae.prototype.remove_group;ae.prototype.track_with_groups=ae.prototype.track_with_groups;ae.prototype.start_batch_senders=ae.prototype.start_batch_senders;ae.prototype.stop_batch_senders=ae.prototype.stop_batch_senders;ft.prototype.properties=ft.prototype.properties;ft.prototype.update_search_keyword=ft.prototype.update_search_keyword;ft.prototype.update_referrer_info=ft.prototype.update_referrer_info;ft.prototype.get_cross_subdomain=ft.prototype.get_cross_subdomain;ft.prototype.clear=ft.prototype.clear;var Gh={},Kxe=function(){F.each(Gh,function(e,t){t!==bi&&(Tn[t]=e)}),Tn._=F},Zxe=function(){Tn.init=function(e,t,r){if(r)return Tn[r]||(Tn[r]=Gh[r]=MP(e,t,r),Tn[r]._loaded()),Tn[r];var n=Tn;Gh[bi]?n=Gh[bi]:e&&(n=MP(e,t,bi),n._loaded(),Gh[bi]=n),Tn=n,Y$===Hxe&&(lr[bi]=Tn),Kxe()}},Xxe=function(){function e(){e.done||(e.done=!0,Fee=!0,zee=!1,F.each(Gh,function(n){n._dom_loaded()}))}function t(){try{Ht.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(Ht.addEventListener)Ht.readyState==="complete"?e():Ht.addEventListener("DOMContentLoaded",e,!1);else if(Ht.attachEvent){Ht.attachEvent("onreadystatechange",e);var r=!1;try{r=lr.frameElement===null}catch{}Ht.documentElement.doScroll&&r&&t()}F.register_event(lr,"load",e,!0)};function Jxe(){return Y$=$ee,Tn=new ae,Zxe(),Tn.init(),Xxe(),Tn}var Qxe=Jxe(),e1e=Qxe;const t1e=kk(e1e);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};navigator.userAgent.indexOf("Macintosh");function r1e(e){return Math.ceil(e/Cxe)}
510function X$(){const e=new Date;return Math.floor(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())/1e3)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};class n1e{constructor(t,r,n,a,i,o){this.word=t,this.timeStamp=X$(),this.dict=r,this.chapter=n,this.timing=a,this.wrongCount=i,this.mistakes=o}get totalTime(){return this.timing.reduce((t,r)=>t+r,0)}}class a1e{constructor(t,r,n,a,i,o,s,l,u){this.dict=t,this.chapter=r,this.timeStamp=X$(),this.time=n,this.correctCount=a,this.wrongCount=i,this.wordCount=o,this.correctWordIndexes=s,this.wordNumber=l,this.wordRecordIds=u}get wpm(){return Math.round(this.wordCount/this.time*60)}get inputAccuracy(){return Math.round((this.correctCount/this.correctCount+this.wrongCount)*100)}get wordAccuracy(){return Math.round(this.correctWordIndexes.length/this.wordNumber*100)}}class i1e{constructor(t,r){this.dict=t,this.index=0,this.createTime=X$(),this.words=r,this.isFinished=!1}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};z.createContext(null);const Jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Dr=Object.keys,In=Array.isArray;function Kn(e,t){return typeof t!="object"||Dr(t).forEach(function(r){e[r]=t[r]}),e}typeof Promise>"u"||Jt.Promise||(Jt.Promise=Promise);const Vm=Object.getPrototypeOf,o1e={}.hasOwnProperty;function Ga(e,t){return o1e.call(e,t)}function Gp(e,t){typeof t=="function"&&(t=t(Vm(e))),(typeof Reflect>"u"?Dr:Reflect.ownKeys)(t).forEach(r=>{Vs(e,r,t[r])})}const Bee=Object.defineProperty;function Vs(e,t,r,n){Bee(e,t,Kn(r&&Ga(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function yp(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Vs(e.prototype,"constructor",e),{extend:Gp.bind(null,e.prototype)}}}}const s1e=Object.getOwnPropertyDescriptor;function J$(e,t){let r;return s1e(e,t)||(r=Vm(e))&&J$(r,t)}const l1e=[].slice;function uS(e,t,r){return l1e.call(e,t,r)}function jee(e,t){return t(e)}function w0(e){if(!e)throw new Error("Assertion Failed")}function Vee(e){Jt.setImmediate?setImmediate(e):setTimeout(e,0)}function Uee(e,t){return e.reduce((r,n,a)=>{var i=t(n,a);return i&&(r[i[0]]=i[1]),r},{})}function Us(e,t){if(Ga(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var r=[],n=0,a=t.length;n<a;++n){var i=Us(e,t[n]);r.push(i)}return r}var o=t.indexOf(".");if(o!==-1){var s=e[t.substr(0,o)];return s===void 0?void 0:Us(s,t.substr(o+1))}}function oo(e,t,r){if(e&&t!==void 0&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){w0(typeof r!="string"&&"length"in r);for(var n=0,a=t.length;n<a;++n)oo(e,t[n],r[n])}else{var i=t.indexOf(".");if(i!==-1){var o=t.substr(0,i),s=t.substr(i+1);if(s==="")r===void 0?In(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=r;else{var l=e[o];l&&Ga(e,o)||(l=e[o]={}),oo(l,s,r)}}else r===void 0?In(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function Gee(e){var t={};for(var r in e)Ga(e,r)&&(t[r]=e[r]);return t}const u1e=[].concat;function Hee(e){return u1e.apply([],e)}const Wee="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Hee([8,16,32,64].map(e=>["Int","Uint","Float"].map(t=>t+e+"Array")))).filter(e=>Jt[e]),c1e=Wee.map(e=>Jt[e]);Uee(Wee,e=>[e,!0]);let Zl=null;function ex(e){Zl=typeof WeakMap<"u"&&new WeakMap;const t=DP(e);return Zl=null,t}function DP(e){if(!e||typeof e!="object")return e;let t=Zl&&Zl.get(e);if(t)return t;if(In(e)){t=[],Zl&&Zl.set(e,t);for(var r=0,n=e.length;r<n;++r)t.push(DP(e[r]))}else if(c1e.indexOf(e.constructor)>=0)t=e;else{const i=Vm(e);for(var a in t=i===Object.prototype?{}:Object.create(i),Zl&&Zl.set(e,t),e)Ga(e,a)&&(t[a]=DP(e[a]))}return t}const{toString:d1e}={};function LP(e){return d1e.call(e).slice(8,-1)}const RP=typeof Symbol<"u"?Symbol.iterator:"@@iterator",f1e=typeof RP=="symbol"?function(e){var t;return e!=null&&(t=e[RP])&&t.apply(e)}:function(){return null},Mh={};function Ls(e){var t,r,n,a;if(arguments.length===1){if(In(e))return e.slice();if(this===Mh&&typeof e=="string")return[e];if(a=f1e(e)){for(r=[];!(n=a.next()).done;)r.push(n.value);return r}if(e==null)return[e];if(typeof(t=e.length)=="number"){for(r=new Array(t);t--;)r[t]=e[t];return r}return[e]}for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}const Q$=typeof Symbol<"u"?e=>e[Symbol.toStringTag]==="AsyncFunction":()=>!1;var cs=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function qee(e,t){cs=e,Yee=t}var Yee=()=>!0;const h1e=!new Error("").stack;function Mf(){if(h1e)try{throw Mf.arguments,new Error}catch(e){return e}return new Error}function $P(e,t){var r=e.stack;return r?(t=t||0,r.indexOf(e.name)===0&&(t+=(e.name+e.message).split(` 511`).length),r.split(` 512`).slice(t).filter(Yee).map(n=>` 513`+n).join("")):""}var Kee=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],e4=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Kee),p1e={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function xp(e,t){this._e=Mf(),this.name=e,this.message=t}function Zee(e,t){return e+". Errors: "+Object.keys(t).map(r=>t[r].toString()).filter((r,n,a)=>a.indexOf(r)===n).join(` 514`)}function cS(e,t,r,n){this._e=Mf(),this.failures=t,this.failedKeys=n,this.successCount=r,this.message=Zee(e,t)}function Y0(e,t){this._e=Mf(),this.name="BulkError",this.failures=Object.keys(t).map(r=>t[r]),this.failuresByPos=t,this.message=Zee(e,t)}yp(xp).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+$P(this._e,2))}},toString:function(){return this.name+": "+this.message}}),yp(cS).from(xp),yp(Y0).from(xp);var t4=e4.reduce((e,t)=>
514(e[t]=t+"Error",e),{});const v1e=xp;var Xe=e4.reduce((e,t)=>{var r=t+"Error";function n(a,i){this._e=Mf(),this.name=r,a?typeof a=="string"?(this.message=`${a}${i?` 515 `+i:""}`,this.inner=i||null):typeof a=="object"&&(this.message=`${a.name} ${a.message}`,this.inner=a):(this.message=p1e[t]||r,this.inner=null)}return yp(n).from(v1e),e[t]=n,e},{});Xe.Syntax=SyntaxError,Xe.Type=TypeError,Xe.Range=RangeError;var xF=Kee.reduce((e,t)=>(e[t+"Error"]=Xe[t],e),{}),Uw=e4.reduce((e,t)=>(["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Xe[t]),e),{});function Gt(){}function Um(e){return e}function g1e(e,t){return e==null||e===Um?t:function(r){return t(e(r))}}function uf(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m1e(e,t){return e===Gt?t:function(){var r=e.apply(this,arguments);r!==void 0&&(arguments[0]=r);var n=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?uf(n,this.onsuccess):n),a&&(this.onerror=this.onerror?uf(a,this.onerror):a),i!==void 0?i:r}}function y1e(e,t){return e===Gt?t:function(){e.apply(this,arguments);var r=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?uf(r,this.onsuccess):r),n&&(this.onerror=this.onerror?uf(n,this.onerror):n)}}function x1e(e,t){return e===Gt?t:function(r){var n=e.apply(this,arguments);Kn(r,n);var a=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?uf(a,this.onsuccess):a),i&&(this.onerror=this.onerror?uf(i,this.onerror):i),n===void 0?o===void 0?void 0:o:Kn(n,o)}}function b1e(e,t){return e===Gt?t:function(){return t.apply(this,arguments)!==!1&&e.apply(this,arguments)}}function r4(e,t){return e===Gt?t:function(){var r=e.apply(this,arguments);if(r&&typeof r.then=="function"){for(var n=this,a=arguments.length,i=new Array(a);a--;)i[a]=arguments[a];return r.then(function(){return t.apply(n,i)})}return t.apply(this,arguments)}}Uw.ModifyError=cS,Uw.DexieError=xp,Uw.BulkError=Y0;var Gm={};const[OP,dS,zP]=typeof Promise>"u"?[]:(()=>{let e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Vm(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Vm(t),e]})(),Xee=dS&&dS.then,Gw=OP&&OP.constructor,n4=!!zP;var FP=!1,w1e=zP?()=>{zP.then(x1)}:Jt.setImmediate?setImmediate.bind(null,x1):Jt.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver(()=>{x1(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(x1,0)},K0=function(e,t){_0.push([e,t]),fS&&(w1e(),fS=!1)},BP=!0,fS=!0,Bd=[],Hw=[],jP=null,VP=Um,bp={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:wF,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(e=>{try{wF(e[0],e[1])}catch{}})}},Ue=bp,_0=[],jd=0,Ww=[];function Ne(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Gt,this._lib=!1;var t=this._PSD=Ue;if(cs&&(this._stackHolder=Mf(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Gm)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&GP(this,this._value))}this._state=null,this._value=null,++t.ref,Qee(this,e)}const UP={get:function(){var e=Ue,t=hS;function r(n,a){var i=!e.global&&(e!==Ue||t!==hS);const o=i&&!Qs();var s=new Ne((l,u)=>{a4(this,new Jee(pS(n,e,i,o),pS(a,e,i,o),l,u,e))});return cs&&rte(s,this),s}return r.prototype=Gm,r},set:function(e){Vs(this,"then",e&&e.prototype===Gm?UP:{get:function(){return e},set:UP.set})}};function Jee(e,t,r,n,a){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=r,this.reject=n,this.psd=a}function Qee(e,t){try{t(r=>{if(e._state===null){if(r===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&tx();r&&typeof r.then=="function"?Qee(e,(a,i)=>{r instanceof Ne?r._then(a,i):r.then(a,i)}):(e._state=!0,e._value=r,ete(e)),n&&rx()}},GP.bind(null,e))}catch(r){GP(e,r)}}function GP(e,t){if(Hw.push(t),e._state===null){var r=e._lib&&tx();t=VP(t),e._state=!1,e._value=t,cs&&t!==null&&typeof t=="object"&&!t._promise&&function(n,a,i){try{n.apply(null,i)}catch(o){a&&a(o)}}(()=>{var n=J$(t,"stack");t._promise=e,Vs(t,"stack",{get:()=>FP?n&&(n.get?n.get.apply(t):n.value):e.stack})}),function(n){Bd.some(a=>a._value===n._value)||Bd.push(n)}(e),ete(e),r&&rx()}}function ete(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)a4(e,t[r]);var a=e._PSD;--a.ref||a.finalize(),jd===0&&(++jd,K0(()=>{--jd==0&&i4()},[]))}function a4(e,t){if(e._state!==null){var r=e._state?t.onFulfilled:t.onRejected;if(r===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++jd,K0(_1e,[r,e,t])}else e._listeners.push(t)}function _1e(e,t,r){try{jP=t;var n,a=t._value;t._state?n=e(a):(Hw.length&&(Hw=[]),n=e(a),Hw.indexOf(a)===-1&&function(i){for(var o=Bd.length;o;)if(Bd[--o]._value===i._value)return void Bd.splice(o,1)}(t)),r.resolve(n)}catch(i){r.reject(i)}finally{jP=null,--jd==0&&i4(),--r.psd.ref||r.psd.finalize()}}function tte(e,t,r){if(t.length===r)return t;var n="";if(e._state===!1){var a,i,o=e._value;o!=null?(a=o.name||"Error",i=o.message||o,n=$P(o,0)):(a=o,i=""),t.pu
515sh(a+(i?": "+i:"")+n)}return cs&&((n=$P(e._stackHolder,2))&&t.indexOf(n)===-1&&t.push(n),e._prev&&tte(e._prev,t,r)),t}function rte(e,t){var r=t?t._numPrev+1:0;r<100&&(e._prev=t,e._numPrev=r)}function x1(){tx()&&rx()}function tx(){var e=BP;return BP=!1,fS=!1,e}function rx(){var e,t,r;do for(;_0.length>0;)for(e=_0,_0=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}while(_0.length>0);BP=!0,fS=!0}function i4(){var e=Bd;Bd=[],e.forEach(n=>{n._PSD.onunhandled.call(null,n._value,n)});for(var t=Ww.slice(0),r=t.length;r;)t[--r]()}function b1(e){return new Ne(Gm,!1,e)}function tr(e,t){var r=Ue;return function(){var n=tx(),a=Ue;try{return Vu(r,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{Vu(a,!1),n&&rx()}}}Gp(Ne.prototype,{then:UP,_then:function(e,t){a4(this,new Jee(null,null,e,t,Ue))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],r=arguments[1];return typeof t=="function"?this.then(null,n=>n instanceof t?r(n):b1(n)):this.then(null,n=>n&&n.name===t?r(n):b1(n))},finally:function(e){return this.then(t=>(e(),t),t=>(e(),b1(t)))},stack:{get:function(){if(this._stack)return this._stack;try{FP=!0;var e=tte(this,[],20).join(` 516From previous: `);return this._state!==null&&(this._stack=e),e}finally{FP=!1}}},timeout:function(e,t){return e<1/0?new Ne((r,n)=>{var a=setTimeout(()=>n(new Xe.Timeout(t)),e);this.then(r,n).finally(clearTimeout.bind(null,a))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&Vs(Ne.prototype,Symbol.toStringTag,"Dexie.Promise"),bp.env=nte(),Gp(Ne,{all:function(){var e=Ls.apply(null,arguments).map(w1);return new Ne(function(t,r){e.length===0&&t([]);var n=e.length;e.forEach((a,i)=>Ne.resolve(a).then(o=>{e[i]=o,--n||t(e)},r))})},resolve:e=>{if(e instanceof Ne)return e;if(e&&typeof e.then=="function")return new Ne((r,n)=>{e.then(r,n)});var t=new Ne(Gm,!0,e);return rte(t,jP),t},reject:b1,race:function(){var e=Ls.apply(null,arguments).map(w1);return new Ne((t,r)=>{e.map(n=>Ne.resolve(n).then(t,r))})},PSD:{get:()=>Ue,set:e=>Ue=e},totalEchoes:{get:()=>hS},newPSD:ju,usePSD:Ev,scheduler:{get:()=>K0,set:e=>{K0=e}},rejectionMapper:{get:()=>VP,set:e=>{VP=e}},follow:(e,t)=>new Ne((r,n)=>ju((a,i)=>{var o=Ue;o.unhandleds=[],o.onunhandled=i,o.finalize=uf(function(){(function(s){function l(){s(),Ww.splice(Ww.indexOf(l),1)}Ww.push(l),++jd,K0(()=>{--jd==0&&i4()},[])})(()=>{this.unhandleds.length===0?a():i(this.unhandleds[0])})},o.finalize),e()},t,r,n))}),Gw&&(Gw.allSettled&&Vs(Ne,"allSettled",function(){const e=Ls.apply(null,arguments).map(w1);return new Ne(t=>{e.length===0&&t([]);let r=e.length;const n=new Array(r);e.forEach((a,i)=>Ne.resolve(a).then(o=>n[i]={status:"fulfilled",value:o},o=>n[i]={status:"rejected",reason:o}).then(()=>--r||t(n)))})}),Gw.any&&typeof AggregateError<"u"&&Vs(Ne,"any",function(){const e=Ls.apply(null,arguments).map(w1);return new Ne((t,r)=>{e.length===0&&r(new AggregateError([]));let n=e.length;const a=new Array(n);e.forEach((i,o)=>Ne.resolve(i).then(s=>t(s),s=>{a[o]=s,--n||r(new AggregateError(a))}))})}));const Nn={awaits:0,echoes:0,id:0};var S1e=0,qw=[],aA=0,hS=0,k1e=0;function ju(e,t,r,n){var a=Ue,i=Object.create(a);i.parent=a,i.ref=0,i.global=!1,i.id=++k1e;var o=bp.env;i.env=n4?{Promise:Ne,PromiseProp:{value:Ne,configurable:!0,writable:!0},all:Ne.all,race:Ne.race,allSettled:Ne.allSettled,any:Ne.any,resolve:Ne.resolve,reject:Ne.reject,nthen:bF(o.nthen,i),gthen:bF(o.gthen,i)}:{},t&&Kn(i,t),++a.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=Ev(i,e,r,n);return i.ref===0&&i.finalize(),s}function Av(){return Nn.id||(Nn.id=++S1e),++Nn.awaits,Nn.echoes+=100,Nn.id}function Qs(){return!!Nn.awaits&&(--Nn.awaits==0&&(Nn.id=0),Nn.echoes=100*Nn.awaits,!0)}function w1(e){return Nn.echoes&&e&&e.constructor===Gw?(Av(),e.then(t=>(Qs(),t),t=>(Qs(),Vr(t)))):e}function C1e(e){++hS,Nn.echoes&&--Nn.echoes!=0||(Nn.echoes=Nn.id=0),qw.push(Ue),Vu(e,!0)}function T1e(){var e=qw[qw.length-1];qw.pop(),Vu(e,!1)}function Vu(e,t){var r=Ue;if((t?!Nn.echoes||aA++&&e===Ue:!aA||--aA&&e===Ue)||ate(t?C1e.bind(null,e):T1e),e!==Ue&&(Ue=e,r===bp&&(bp.env=nte()),n4)){var n=bp.env.Promise,a=e.env;dS.then=a.nthen,n.prototype.then=a.gthen,(r.global||e.global)&&(Object.defineProperty(Jt,"Promise",a.PromiseProp),n.all=a.all,n.race=a.race,n.resolve=a.resolve,n.reject=a.reject,a.allSettled&&(n.allSettled=a.allSettled),a.any&&(n.any=a.any))}}function nte(){var e=Jt.Promise;return n4?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(Jt,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:dS.then,gthen:e.prototype.then}:{}}function Ev(e,t,r,n,a){var i=Ue;try{return Vu(e,!0),t(r,n,a)}finally{Vu(i,!1)}}function ate(e){Xee.call(OP,e)}function pS(e,t,r,n){return typeof e!="function"?e:function(){var a=Ue;r&&Av(),Vu(t,!0);try{return e.apply(this,arguments)}finally{Vu(a,!1),n&&ate(Qs)}}}function bF(e,t){return function(r,n){return e.call(this,pS(r,t),pS(n,t))}}(""+Xee).indexOf("[native code]")===-1&&(Av=Qs=Gt);function wF(e,t){var r;try{r=t.onuncatched(e)}catch{}if(r!==!1)try{var n,a={promise:t,reason:e};if(Jt.document&&document.createEvent?((n=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),Kn(n,a)):Jt.CustomEvent&&Kn(n=new CustomEvent("unhandledrejection",{detail:a}
516),a),n&&Jt.dispatchEvent&&(dispatchEvent(n),!Jt.PromiseRejectionEvent&&Jt.onunhandledrejection))try{Jt.onunhandledrejection(n)}catch{}cs&&n&&n.defaultPrevented}catch{}}var Vr=Ne.reject;function HP(e,t,r,n){if(e.idbdb&&(e._state.openComplete||Ue.letThrough||e._vip)){var a=e._createTransaction(t,r,e._dbSchema);try{a.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===t4.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(e._close(),e.open().then(()=>HP(e,t,r,n))):Vr(i)}return a._promise(t,(i,o)=>ju(()=>(Ue.trans=a,n(i,o,a)))).then(i=>a._completion.then(()=>i))}if(e._state.openComplete)return Vr(new Xe.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Vr(new Xe.DatabaseClosed);e.open().catch(Gt)}return e._state.dbReadyPromise.then(()=>HP(e,t,r,n))}const Sd=String.fromCharCode(65535),ws="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Z0=[],Rk=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),A1e=Rk,E1e=Rk,ite=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function cf(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const ote={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function _1(e){return typeof e!="string"||/\./.test(e)?t=>t:t=>(t[e]===void 0&&e in t&&delete(t=ex(t))[e],t)}class N1e{_trans(t,r,n){const a=this._tx||Ue.trans,i=this.name;function o(l,u,c){if(!c.schema[i])throw new Xe.NotFound("Table "+i+" not part of transaction");return r(c.idbtrans,c)}const s=tx();try{return a&&a.db===this.db?a===Ue.trans?a._promise(t,o,n):ju(()=>a._promise(t,o,n),{trans:a,transless:Ue.transless||Ue}):HP(this.db,t,[this.name],o)}finally{s&&rx()}}get(t,r){return t&&t.constructor===Object?this.where(t).first(r):this._trans("readonly",n=>this.core.get({trans:n,key:t}).then(a=>this.hook.reading.fire(a))).then(r)}where(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(In(t))return new this.db.WhereClause(this,`[${t.join("+")}]`);const r=Dr(t);if(r.length===1)return this.where(r[0]).equals(t[r[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&r.every(c=>u.keyPath.indexOf(c)>=0)&&u.keyPath.every(c=>r.indexOf(c)>=0))[0];if(n&&this.db._maxKey!==Sd)return this.where(n.name).equals(n.keyPath.map(u=>t[u]));const{idxByName:a}=this.schema,i=this.db._deps.indexedDB;function o(u,c){try{return i.cmp(u,c)===0}catch{return!1}}const[s,l]=r.reduce(([u,c],d)=>{const f=a[d],h=t[d];return[u||f,u||!f?cf(c,f&&f.multi?p=>{const v=Us(p,d);return In(v)&&v.some(m=>o(h,m))}:p=>o(h,Us(p,d))):c]},[null,null]);return s?this.where(s.name).equals(t[s.keyPath]).filter(l):n?this.filter(l):this.where(r).equals("")}filter(t){return this.toCollection().and(t)}count(t){return this.toCollection().count(t)}offset(t){return this.toCollection().offset(t)}limit(t){return this.toCollection().limit(t)}each(t){return this.toCollection().each(t)}toArray(t){return this.toCollection().toArray(t)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(t){return new this.db.Collection(new this.db.WhereClause(this,In(t)?`[${t.join("+")}]`:t))}reverse(){return this.toCollection().reverse()}mapToClass(t){this.schema.mappedClass=t;const r=n=>{if(!n)return n;const a=Object.create(t.prototype);for(var i in n)if(Ga(n,i))try{a[i]=n[i]}catch{}return a};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t}defineClass(){return this.mapToClass(function(t){Kn(this,t)})}add(t,r){const{auto:n,keyPath:a}=this.schema.primKey;let i=t;return a&&n&&(i=_1(a)(t)),this._trans("readwrite",o=>this.core.mutate({trans:o,type:"add",keys:r!=null?[r]:null,values:[i]})).then(o=>o.numFailures?Ne.reject(o.failures[0]):o.lastResult).then(o=>{if(a)try{oo(t,a,o)}catch{}return o})}update(t,r){if(typeof t!="object"||In(t))return this.where(":id").equals(t).modify(r);{const n=Us(t,this.schema.primKey.keyPath);if(n===void 0)return Vr(new Xe.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?Dr(r).forEach(a=>{oo(t,a,r[a])}):r(t,{value:t,primKey:n})}catch{}return this.where(":id").equals(n).modify(r)}}put(t,r){const{auto:n,keyPath:a}=this.schema.primKey;let i=t;return a&&n&&(i=_1(a)(t)),this._trans("readwrite",o=>this.core.mutate({trans:o,type:"put",values:[i],keys:r!=null?[r]:null})).then(o=>o.numFailures?Ne.reject(o.failures[0]):o.lastResult).then(o=>{if(a)try{oo(t,a,o)}catch{}return o}
vendor: 9,823 bytes, line 516
516)}delete(t){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[t]})).then(r=>r.numFailures?Ne.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",t=>this.core.mutate({trans:t,type:"deleteRange",range:ote})).then(t=>t.numFailures?Ne.reject(t.failures[0]):void 0)}bulkGet(t){return this._trans("readonly",r=>this.core.getMany({keys:t,trans:r}).then(n=>n.map(a=>this.hook.reading.fire(a))))}bulkAdd(t,r,n){const a=Array.isArray(r)?r:void 0,i=(n=n||(a?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",o=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&a)throw new Xe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(a&&a.length!==t.length)throw new Xe.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=l&&s?t.map(_1(l)):t;return this.core.mutate({trans:o,type:"add",keys:a,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Y0(`${this.name}.bulkAdd(): ${d} of ${u} operations failed`,p)})})}bulkPut(t,r,n){const a=Array.isArray(r)?r:void 0,i=(n=n||(a?void 0:r))?n.allKeys:void 0;return this._trans("readwrite",o=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&a)throw new Xe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(a&&a.length!==t.length)throw new Xe.InvalidArgument("Arguments objects and keys must have the same length");const u=t.length;let c=l&&s?t.map(_1(l)):t;return this.core.mutate({trans:o,type:"put",keys:a,values:c,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:p})=>{if(d===0)return i?f:h;throw new Y0(`${this.name}.bulkPut(): ${d} of ${u} operations failed`,p)})})}bulkDelete(t){const r=t.length;return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"delete",keys:t})).then(({numFailures:n,lastResult:a,failures:i})=>{if(n===0)return a;throw new Y0(`${this.name}.bulkDelete(): ${n} of ${r} operations failed`,i)})}}function X0(e){var t={},r=function(s,l){if(l){for(var u=arguments.length,c=new Array(u-1);--u;)c[u-1]=arguments[u];return t[s].subscribe.apply(null,c),e}if(typeof s=="string")return t[s]};r.addEventType=i;for(var n=1,a=arguments.length;n<a;++n)i(arguments[n]);return r;function i(s,l,u){if(typeof s=="object")return o(s);l||(l=b1e),u||(u=Gt);var c={subscribers:[],fire:u,subscribe:function(d){c.subscribers.indexOf(d)===-1&&(c.subscribers.push(d),c.fire=l(c.fire,d))},unsubscribe:function(d){c.subscribers=c.subscribers.filter(function(f){return f!==d}),c.fire=c.subscribers.reduce(l,u)}};return t[s]=r[s]=c,c}function o(s){Dr(s).forEach(function(l){var u=s[l];if(In(u))i(l,s[l][0],s[l][1]);else{if(u!=="asap")throw new Xe.InvalidArgument("Invalid event config");var c=i(l,Um,function(){for(var d=arguments.length,f=new Array(d);d--;)f[d]=arguments[d];c.subscribers.forEach(function(h){Vee(function(){h.apply(null,f)})})})}})}}function gg(e,t){return yp(t).from({prototype:e}),t}function Zf(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function iA(e,t){e.filter=cf(e.filter,t)}function oA(e,t,r){var n=e.replayFilter;e.replayFilter=n?()=>cf(n(),t()):t,e.justLimit=r&&!n}function Yw(e,t){if(e.isPrimKey)return t.primaryKey;const r=t.getIndexByKeyPath(e.index);if(!r)throw new Xe.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return r}function _F(e,t,r){const n=Yw(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:n,range:e.range}})}function S1(e,t,r,n){const a=e.replayFilter?cf(e.filter,e.replayFilter()):e.filter;if(e.or){const i={},o=(s,l,u)=>{if(!a||a(l,u,f=>l.stop(f),f=>l.fail(f))){var c=l.primaryKey,d=""+c;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(c)),Ga(i,d)||(i[d]=!0,t(s,l,u))}};return Promise.all([e.or._iterate(o,r),SF(_F(e,n,r),e.algorithm,o,!e.keysOnly&&e.valueMapper)])}return SF(_F(e,n,r),cf(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function SF(e,t,r,n){var a=tr(n?(i,o,s)=>r(n(i),o,s):r);return e.then(i=>{if(i)return i.start(()=>{var o=()=>i.continue();t&&!t(i,s=>o=s,s=>{i.stop(s),o=Gt},s=>{i.fail(s),o=Gt})||a(i.value,i,s=>o=s),o()})})}function Gn(e,t){try{const r=kF(e),n=kF(t);if(r!==n)return r==="Array"?1:n==="Array"?-1:r==="binary"?1:n==="binary"?-1:r==="string"?1:n==="string"?-1:r==="Date"?1:n!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(a,i){const o=a.length,s=i.length,l=o<s?o:s;for(let u=0;u<l;++u)if(a[u]!==i[u])return a[u]<i[u]?-1:1;return o===s?0:o<s?-1:1}(CF(e),CF(t));case"Array":return function(a,i){const o=a.length,s=i.length,l=o<s?o:s;for(let u=0;u<l;++u){const c=Gn(a[u],i[u]);if(c!==0)return c}return o===s?0:o<s?-1:1}(e,t)}}catch{}return NaN}function kF(e){const t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";const r=LP(e);return r==="ArrayBuffer"?"binary":r}function CF(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}class I1e{_read(t,r){var n=this._ctx;return n.error?n.table._trans(null,Vr.bind(null,n.error)):n.table._trans("readonly",t).then(r)}_write(t){var r=this._ctx;return r.error?r.table._trans(null,Vr.bind(null,r.error)):r.table._trans("readwrite",t,"locked")}_addAlgorithm(t){var r=this._ctx;r.algorithm=cf(r.algorithm,t)}_iterate(t,r){return S1(this._ctx,t,r,this._ctx.table.core)}clone(t){var r=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&Kn(n,t),r._ctx=n,r}raw(){return this._ctx.valueMapper=null,this}each(t){var r=this._ctx;return this._read(n=>S1(r,t,n,r.table.core))}count(t){return this._read(r=>{const n=this._ctx,a=n.table.core;if(Zf(n,!0))return a.count({trans:r,query:{index:Yw(n,a.schema),range:n.range}}).then(o=>Math.min(o,n.limit));var i=0;return S1(n,()=>(++i,!1),r,a).then(()=>i)}).then(t)}sortBy(t,r){const n=t.split(".").reverse(),a=n[0],i=n.length-1;function o(u,c){return c?o(u[n[c]],c-1):u[a]}var s=this._ctx.dir==="next"?1:-1;function l(u,c){var d=o(u,i),f=o(c,i);return d<f?-s:d>f?s:0}return this.toArray(function(u){return u.sort(l)}).then(r)}toArray(t){return this._read(r=>{var n=this._ctx;if(n.dir==="next"&&Zf(n,!0)&&n.limit>0){const{valueMapper:a}=n,i=Yw(n,n.table.core.schema);return n.table.core.query({trans:r,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(({result:o})=>a?o.map(a):o)}{const a=[];return S1(n,i=>a.push(i),r,n.table.core).then(()=>a)}},t)}offset(t){var r=this._ctx;return t<=0||(r.offset+=t,Zf(r)?oA(r,()=>{var n=t;return(a,i)=>n===0||(n===1?(--n,!1):(i(()=>{a.advance(n),n=0}),!1))}):oA(r,()=>{var n=t;return()=>--n<0})),this}limit(t){return this._ctx.limit=Math.min(this._ctx.limit,t),oA(this._ctx,()=>{var r=t;return function(n,a,i){return--r<=0&&a(i),r>=0}},!0),this}until(t,r){return iA(this._ctx,function(n,a,i){return!t(n.value)||(a(i),r)}),this}first(t){return this.limit(1).toArray(function(r){return r[0]}).then(t)}last(t){return this.reverse().first(t)}filter(t){var r,n;return iA(this._ctx,function(a){return t(a.value)}),r=this._ctx,n=t,r.isMatch=cf(r.isMatch,n),this}and(t){return this.filter(t)}or(t){return new this.db.WhereClause(this._ctx.table,t,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,a){t(a.key,a)})}eachUniqueKey(t){return this._ctx.unique="unique",this.eachKey(t)}eachPrimaryKey(t){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(n,a){t(a.primaryKey,a)})}keys(t){var r=this._ctx;r.keysOnly=!r.isMatch;var n=[];return this.each(function(a,i){n.push(i.key)}).then(function(){return n}).then(t)}primaryKeys(t){var r=this._ctx;if(r.dir==="next"&&Zf(r,!0)&&r.limit>0)return this._read(a=>{var i=Yw(r,r.table.core.schema);return r.table.core.query({trans:a,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:a})=>a).then(t);r.keysOnly=!r.isMatch;var n=[];return this.each(function(a,i){n.push(i.primaryKey)}).then(function(){return n}).then(t)}uniqueKeys(t){return this._ctx.unique="unique",this.keys(t)}firstKey(t){return this.limit(1).keys(function(r){return r[0]}).then(t)}lastKey(t){return this.reverse().firstKey(t)}distinct(){var t=this._ctx,r=t.index&&t.table.schema.idxByName[t.index];if(!r||!r.multi)return this;var n={};return iA(this._ctx,function(a){var i=a.primaryKey.toString(),o=Ga(n,i);return n[i]=!0,!o}),this}modify(t){var r=this._ctx;return this._write(n=>{var a;if(typeof t=="function")a=t;else{var i=Dr(t),o=i.length;a=function(v){for(var m=!1,g=0;g<o;++g){var x=i[g],b=t[x];Us(v,x)!==b&&(oo(v,x,b),m=!0)}return m}}const s=r.table.core,{outbound:l,extractKey:u}=s.schema.primaryKey,c=this.db._options.modifyChunkSize||200,d=[];let f=0;const h=[],p=(v,m)=>{const{failures:g,numFailures:x}=m;f+=v-x;for(let b of Dr(g))d.push(g[b])};return this.clone().primaryKeys().then(v=>{const m=g=>{const x=Math.min(c,v.length-g);return s.getMany({trans:n,keys:v.slice(g,g+x),cache:"immutable"}).then(b=>{const _=[],k=[],S=l?[]:null,C=[];for(let E=0;E<x;++E){const A=b[E],N={value:ex(A),primKey:v[g+E]};a.call(N,N.value,N)!==!1&&(N.value==null?C.push(v[g+E]):l||Gn(u(A),u(N.value))===0?(k.push(N.value),l&&S.push(v[g+E])):(C.push(v[g+E]),_.push(N.value)))}const T=Zf(r)&&r.limit===1/0&&(typeof t!="function"||t===sA)&&{index:r.index,range:r.range};return Promise.resolve(_.length>0&&s.mutate({trans:n,type:"add",values:_}).then(E=>{for(let A in E.failures)C.splice(parseInt(A),1);p(_.length,E)})).then(()=>(k.length>0||T&&typeof t=="object")&&s.mutate({trans:n,type:"put",keys:S,values:k,criteria:T,changeSpec:typeof t!="function"&&t}).then(E=>p(k.length,E))).then(()=>(C.length>
5160||T&&t===sA)&&s.mutate({trans:n,type:"delete",keys:C,criteria:T}).then(E=>p(C.length,E))).then(()=>v.length>g+x&&m(g+c))})};return m(0).then(()=>{if(d.length>0)throw new cS("Error modifying one or more objects",d,f,h);return v.length})})})}delete(){var t=this._ctx,r=t.range;return Zf(t)&&(t.isPrimKey&&!E1e||r.type===3)?this._write(n=>{const{primaryKey:a}=t.table.core.schema,i=r;return t.table.core.count({trans:n,query:{index:a,range:i}}).then(o=>t.table.core.mutate({trans:n,type:"deleteRange",range:i}).then(({failures:s,lastResult:l,results:u,numFailures:c})=>{if(c)throw new cS("Could not delete some values",Object.keys(s).map(d=>s[d]),o-c);return o-c}))}):this.modify(sA)}}const sA=(e,t)=>t.value=null;function P1e(e,t){return e<t?-1:e===t?0:1}function M1e(e,t){return e>t?-1:e===t?0:1}function Pa(e,t,r){var n=e instanceof lte?new e.Collection(e):e;return n._ctx.error=r?new r(t):new TypeError(t),n}function Xf(e){return new e.Collection(e,()=>ste("")).limit(0)}function D1e(e,t,r,n,a,i){for(var o=Math.min(e.length,n.length),s=-1,l=0;l<o;++l){var u=t[l];if(u!==n[l])return a(e[l],r[l])<0?e.substr(0,l)+r[l]+r.substr(l+1):a(e[l],n[l])<0?e.substr(0,l)+n[l]+r.substr(l+1):s>=0?e.substr(0,s)+t[s]+r.substr(s+1):null;a(e[l],u)<0&&(s=l)}return o<n.length&&i==="next"?e+r.substr(e.length):o<e.length&&i==="prev"?e.substr(0,r.length):s<0?null:e.substr(0,s)+n[s]+r.substr(s+1)}function k1(e,t,r,n){var a,i,o,s,l,u,c,d=r.length;if(!r.every(v=>typeof v=="string"))return Pa(e,"String expected.");function f(v){a=function(g){return g==="next"?x=>x.toUpperCase():x=>x.toLowerCase()}(v),i=function(g){return g==="next"?x=>x.toLowerCase():x=>x.toUpperCase()}(v),o=v==="next"?P1e:M1e;var m=r.map(function(g){return{lower:i(g),upper:a(g)}}).sort(function(g,x){return o(g.lower,x.lower)});s=m.map(function(g){return g.upper}),l=m.map(function(g){return g.lower}),u=v,c=v==="next"?"":n}f("next");var h=new e.Collection(e,()=>ql(s[0],l[d-1]+n));h._ondirectionchange=function(v){f(v)};var p=0;return h._addAlgorithm(function(v,m,g){var x=v.key;if(typeof x!="string")return!1;var b=i(x);if(t(b,l,p))return!0;for(var _=null,k=p;k<d;++k){var S=D1e(x,b,s[k],l[k],o,u);S===null&&_===null?p=k+1:(_===null||o(_,S)>0)&&(_=S)}return m(_!==null?function(){v.continue(_+c)}:g),!1}),h}function ql(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function ste(e){return{type:1,lower:e,upper:e}}class lte{get Collection(){return this._ctx.table.db.Collection}between(t,r,n,a){n=n!==!1,a=a===!0;try{return this._cmp(t,r)>0||this._cmp(t,r)===0&&(n||a)&&(!n||!a)?Xf(this):new this.Collection(this,()=>ql(t,r,!n,!a))}catch{return Pa(this,ws)}}equals(t){return t==null?Pa(this,ws):new this.Collection(this,()=>ste(t))}above(t){return t==null?Pa(this,ws):new this.Collection(this,()=>ql(t,void 0,!0))}aboveOrEqual(t){return t==null?Pa(this,ws):new this.Collection(this,()=>ql(t,void 0,!1))}below(t){return t==null?Pa(this,ws):new this.Collection(this,()=>ql(void 0,t,!1,!0))}belowOrEqual(t){return t==null?Pa(this,ws):new this.Collection(this,()=>ql(void 0,t))}startsWith(t){return typeof t!="string"?Pa(this,"String expected."):this.between(t,t+Sd,!0,!0)}startsWithIgnoreCase(t){return t===""?this.startsWith(t):k1(this,(r,n)=>r.indexOf(n[0])===0,[t],Sd)}equalsIgnoreCase(t){return k1(this,(r,n)=>r===n[0],[t],"")}anyOfIgnoreCase(){var t=Ls.apply(Mh,arguments);return t.length===0?Xf(this):k1(this,(r,n)=>n.indexOf(r)!==-1,t,"")}startsWithAnyOfIgnoreCase(){var t=Ls.apply(Mh,arguments);return t.length===0?Xf(this):k1(this,(r,n)=>n.some(a=>r.indexOf(a)===0),t,Sd)}anyOf(){const t=Ls.apply(Mh,arguments);let r=this._cmp;try{t.sort(r)}catch{return Pa(this,ws)}if(t.length===0)return Xf(this);const n=new this.Collection(this,()=>ql(t[0],t[t.length-1]));n._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,t.sort(r)};let a=0;return n._addAlgorithm((i,o,s)=>{const l=i.key;for(;r(l,t[a])>0;)if(++a,a===t.length)return o(s),!1;return r(l,t[a])===0||(o(()=>{i.continue(t[a])}),!1)}),n}notEqual(t){return this.inAnyRange([[-(1/0),t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const t=Ls.apply(Mh,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Pa(this,ws)}const r=t.reduce((n,a)=>n?n.concat([[n[n.length-1][1],a]]):[[-(1/0),a]],null);return r.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(t,r){const n=this._cmp,a=this._ascending,i=this._descending,o=this._min,s=this._max;if(t.length===0)return Xf(this);if(!t.every(x=>x[0]!==void 0&&x[1]!==void 0&&a(x[0],x[1])<=0))return Pa(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Xe.InvalidArgument);const l=!r||r.includeLowers!==!1,u=r&&r.includeUppers===!0;let c,d=a;function f(x,b){return d(x[0],b[0])}try{c=t.reduce(function(x,b){let _=0,k=x.length;for(;_<k;++_){const S=x[_];if(n(b[0],S[1])<0&&n(b[1],S[0])>0){S[0]=o(S[0],b[0]),S[1]=s(S[1],b[1]);break}}return _===k&&x.push(b),x},[]),c.sort(f)}catch{return Pa(this,ws)}let h=0;const p=u?x=>a(x,c[h][1])>0:x=>a(x,c[h][1])>=0,v=l?x=>i(x,c[h][0])>0:x=>i(x,c[h][0])>=0;let m=p;const g=new this.Collection(this,()=>ql(c[0][0],c[c.length-1][1],!l,!u));return g._ondirectionchange=x=>{x==="next"?(m=p,d=a):(m=v,d=i),c.sort(f)},g._addAlgorithm((x,b,_)=>{for(var k=x.key;m(k);)if(++h,h===c.length)return b(_),!1;return!!function(S){return!p(S)&&!v(S)}(k)||(this._cmp(k,c[h][1])===0||this._cmp(k,c[h][0])===0||b(()=>{d===a?x.continue(c[h][0]):x.continue(c[h][1])}),!1)}),g}startsWithAnyOf(){const t=Ls.apply(Mh,arguments);return t.every(r=>typeof r=="string")?t.length===0?Xf(this):this.inAnyRange(t.map(r=>
516[r,r+Sd])):Pa(this,"startsWithAnyOf() only works with strings")}}function $o(e){return tr(function(t){return Hm(t),e(t.target.error),!1})}function Hm(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const Uu=X0(null,"storagemutated");class L1e{_lock(){return w0(!Ue.global),++this._reculock,this._reculock!==1||Ue.global||(Ue.lockOwnerFor=this),this}_unlock(){if(w0(!Ue.global),--this._reculock==0)for(Ue.global||(Ue.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Ev(t[1],t[0])}catch{}}return this}_locked(){return this._reculock&&Ue.lockOwnerFor!==this}create(t){if(!this.mode)return this;const r=this.db.idbdb,n=this.db._state.dbOpenError;if(w0(!this.idbtrans),!t&&!r)switch(n&&n.name){case"DatabaseClosedError":throw new Xe.DatabaseClosed(n);case"MissingAPIError":throw new Xe.MissingAPI(n.message,n);default:throw new Xe.OpenFailed(n)}if(!this.active)throw new Xe.TransactionInactive;return w0(this._completion._state===null),(t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=tr(a=>{Hm(a),this._reject(t.error)}),t.onabort=tr(a=>{Hm(a),this.active&&this._reject(new Xe.Abort(t.error)),this.active=!1,this.on("abort").fire(a)}),t.oncomplete=tr(()=>{this.active=!1,this._resolve(),"mutatedParts"in t&&Uu.storagemutated.fire(t.mutatedParts)}),this}_promise(t,r,n){if(t==="readwrite"&&this.mode!=="readwrite")return Vr(new Xe.ReadOnly("Transaction is readonly"));if(!this.active)return Vr(new Xe.TransactionInactive);if(this._locked())return new Ne((i,o)=>{this._blockedFuncs.push([()=>{this._promise(t,r,n).then(i,o)},Ue])});if(n)return ju(()=>{var i=new Ne((o,s)=>{this._lock();const l=r(o,s,this);l&&l.then&&l.then(o,s)});return i.finally(()=>this._unlock()),i._lib=!0,i});var a=new Ne((i,o)=>{var s=r(i,o,this);s&&s.then&&s.then(i,o)});return a._lib=!0,a}_root(){return this.parent?this.parent._root():this}waitFor(t){var r=this._root();const n=Ne.resolve(t);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>n);else{r._waitingFor=n,r._waitingQueue=[];var a=r.idbtrans.objectStore(r.storeNames[0]);(function o(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(a.get(-1/0).onsuccess=o)})()}var i=r._waitingFor;return new Ne((o,s)=>{n.then(l=>r._waitingQueue.push(tr(o.bind(null,l))),l=>r._waitingQueue.push(tr(s.bind(null,l)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Xe.Abort))}table(t){const r=this._memoizedTables||(this._memoizedTables={});if(Ga(r,t))return r[t];const n=this.schema[t];if(!n)throw new Xe.NotFound("Table "+t+" not part of transaction");const a=new this.db.Table(t,n,this);return a.core=this.db.core.table(t),r[t]=a,a}}function WP(e,t,r,n,a,i,o){return{name:e,keyPath:t,unique:r,multi:n,auto:a,compound:i,src:(r&&!o?"&":"")+(n?"*":"")+(a?"++":"")+ute(t)}}function ute(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function cte(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:Uee(r,n=>[n.name,n])}}let Wm=e=>{try{return e.only([[]]),Wm=()=>[[]],[[]]}catch{return Wm=()=>Sd,Sd}};function qP(e){return e==null?()=>{}:typeof e=="string"?function(t){return t.split(".").length===1?r=>r[t]:r=>Us(r,t)}(e):t=>Us(t,e)}function TF(e){return[].slice.call(e)}let R1e=0;function J0(e){return e==null?":id":typeof e=="string"?e:`[${e.join("+")}]`}function $1e(e,t,r){function n(l){if(l.type===3)return null;if(l.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:c,lowerOpen:d,upperOpen:f}=l;return u===void 0?c===void 0?null:t.upperBound(c,!!f):c===void 0?t.lowerBound(u,!!d):t.bound(u,c,!!d,!!f)}const{schema:a,hasGetAll:i}=function(l,u){const c=TF(l.objectStoreNames);return{schema:{name:l.name,tables:c.map(d=>u.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:h}=d,p=In(f),v=f==null,m={},g={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:v,compound:p,keyPath:f,autoIncrement:h,unique:!0,extractKey:qP(f)},indexes:TF(d.indexNames).map(x=>d.index(x)).map(x=>{const{name:b,unique:_,multiEntry:k,keyPath:S}=x,C={name:b,compound:In(S),keyPath:S,unique:_,multiEntry:k,extractKey:qP(S)};return m[J0(S)]=C,C}),getIndexByKeyPath:x=>m[J0(x)]};return m[":id"]=g.primaryKey,f!=null&&(m[J0(f)]=g.primaryKey),g})},hasGetAll:c.length>0&&"getAll"in u.objectStore(c[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}
516(e,r),o=a.tables.map(l=>function(u){const c=u.name;return{name:c,schema:u,mutate:function({trans:d,type:f,keys:h,values:p,range:v}){return new Promise((m,g)=>{m=tr(m);const x=d.objectStore(c),b=x.keyPath==null,_=f==="put"||f==="add";if(!_&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:k}=h||p||{length:1};if(h&&p&&h.length!==p.length)throw new Error("Given keys array must have same length as given values array.");if(k===0)return m({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const C=[],T=[];let E=0;const A=P=>{++E,Hm(P)};if(f==="deleteRange"){if(v.type===4)return m({numFailures:E,failures:T,results:[],lastResult:void 0});v.type===3?C.push(S=x.clear()):C.push(S=x.delete(n(v)))}else{const[P,L]=_?b?[p,h]:[p,null]:[h,null];if(_)for(let R=0;R<k;++R)C.push(S=L&&L[R]!==void 0?x[f](P[R],L[R]):x[f](P[R])),S.onerror=A;else for(let R=0;R<k;++R)C.push(S=x[f](P[R])),S.onerror=A}const N=P=>{const L=P.target.result;C.forEach((R,M)=>R.error!=null&&(T[M]=R.error)),m({numFailures:E,failures:T,results:f==="delete"?h:C.map(R=>R.result),lastResult:L})};S.onerror=P=>{A(P),N(P)},S.onsuccess=N})},getMany:({trans:d,keys:f})=>new Promise((h,p)=>{h=tr(h);const v=d.objectStore(c),m=f.length,g=new Array(m);let x,b=0,_=0;const k=C=>{const T=C.target;g[T._pos]=T.result,++_===b&&h(g)},S=$o(p);for(let C=0;C<m;++C)f[C]!=null&&(x=v.get(f[C]),x._pos=C,x.onsuccess=k,x.onerror=S,++b);b===0&&h(g)}),get:({trans:d,key:f})=>new Promise((h,p)=>{h=tr(h);const v=d.objectStore(c).get(f);v.onsuccess=m=>h(m.target.result),v.onerror=$o(p)}),query:function(d){return f=>new Promise((h,p)=>{h=tr(h);const{trans:v,values:m,limit:g,query:x}=f,b=g===1/0?void 0:g,{index:_,range:k}=x,S=v.objectStore(c),C=_.isPrimaryKey?S:S.index(_.name),T=n(k);if(g===0)return h({result:[]});if(d){const E=m?C.getAll(T,b):C.getAllKeys(T,b);E.onsuccess=A=>h({result:A.target.result}),E.onerror=$o(p)}else{let E=0;const A=m||!("openKeyCursor"in C)?C.openCursor(T):C.openKeyCursor(T),N=[];A.onsuccess=P=>{const L=A.result;return L?(N.push(m?L.value:L.primaryKey),++E===g?h({result:N}):void L.continue()):h({result:N})},A.onerror=$o(p)}})}(i),openCursor:function({trans:d,values:f,query:h,reverse:p,unique:v}){return new Promise((m,g)=>{m=tr(m);const{index:x,range:b}=h,_=d.objectStore(c),k=x.isPrimaryKey?_:_.index(x.name),S=p?v?"prevunique":"prev":v?"nextunique":"next",C=f||!("openKeyCursor"in k)?k.openCursor(n(b),S):k.openKeyCursor(n(b),S);C.onerror=$o(g),C.onsuccess=tr(T=>{const E=C.result;if(!E)return void m(null);E.___id=++R1e,E.done=!1;const A=E.continue.bind(E);let N=E.continuePrimaryKey;N&&(N=N.bind(E));const P=E.advance.bind(E),L=()=>{throw new Error("Cursor not stopped")};E.trans=d,E.stop=E.continue=E.continuePrimaryKey=E.advance=()=>{throw new Error("Cursor not started")},E.fail=tr(g),E.next=function(){let R=1;return this.start(()=>R--?this.continue():this.stop()).then(()=>this)},E.start=R=>{const M=new Promise((V,B)=>{V=tr(V),C.onerror=$o(B),E.fail=B,E.stop=j=>{E.stop=E.continue=E.continuePrimaryKey=E.advance=L,V(j)}}),$=()=>{if(C.result)try{R()}catch(V){E.fail(V)}else E.done=!0,E.start=()=>{throw new Error("Cursor behind last entry")},E.stop()};return C.onsuccess=tr(V=>{C.onsuccess=$,$()}),E.continue=A,E.continuePrimaryKey=N,E.advance=P,$(),M},m(E)},g)})},count({query:d,trans:f}){const{index:h,range:p}=d;return new Promise((v,m)=>{const g=f.objectStore(c),x=h.isPrimaryKey?g:g.index(h.name),b=n(p),_=b?x.count(b):x.count();_.onsuccess=tr(k=>v(k.target.result)),_.onerror=$o(m)})}}}(l)),s={};return o.forEach(l=>s[l.name]=l),{stack:"dbcore",transaction:e.transaction.bind(e),table(l){if(!s[l])throw new Error(`Table '${l}' not found`);return s[l]},MIN_KEY:-1/0,MAX_KEY:Wm(t),schema:a}}function YP({_novip:e},t){const r=t.db,n=function(a,i,{IDBKeyRange:o,indexedDB:s},l){return{dbcore:function(c,d){return d.reduce((f,{create:h})=>({...f,...h(f)}),c)}($1e(i,o,l),a.dbcore)}}(e._middlewares,r,e._deps,t);e.core=n.dbcore,e.tables.forEach(a=>{const i=a.name;e.core.schema.tables.some(o=>o.name===i)&&(a.core=e.core.table(i),e[i]instanceof e.Table&&(e[i].core=a.core))})}function vS({_novip:e},t,r,n){r.forEach(a=>{const i=n[a];t.forEach(o=>{const s=J$(o,a);(!s||"value"in s&&s.value===void 0)&&(o===e.Transaction.prototype||o instanceof e.Transaction?Vs(o,a,{get(){return this.table(a)},set(l){Bee(this,a,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):o[a]=new e.Table(a,i))})})}function KP({_novip:e},t){t.forEach(r=>{for(let n in r)r[n]instanceof e.Table&&delete r[n]})}function O1e(e,t){return e._cfg.version-t._cfg.version}function z1e(e,t,r,n){const a=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,a);i.create(r),i._completion.catch(n);const o=i._reject.bind(i),s=Ue.transless||Ue;ju(()=>
516{Ue.trans=i,Ue.transless=s,t===0?(Dr(a).forEach(l=>{lA(r,l,a[l].primKey,a[l].indexes)}),YP(e,r),Ne.follow(()=>e.on.populate.fire(i)).catch(o)):function({_novip:l},u,c,d){const f=[],h=l._versions;let p=l._dbSchema=XP(l,l.idbdb,d),v=!1;function m(){return f.length?Ne.resolve(f.shift()(c.idbtrans)).then(m):Ne.resolve()}return h.filter(g=>g._cfg.version>=u).forEach(g=>{f.push(()=>{const x=p,b=g._cfg.dbschema;JP(l,x,d),JP(l,b,d),p=l._dbSchema=b;const _=dte(x,b);_.add.forEach(S=>{lA(d,S[0],S[1].primKey,S[1].indexes)}),_.change.forEach(S=>{if(S.recreate)throw new Xe.Upgrade("Not yet support for changing primary key");{const C=d.objectStore(S.name);S.add.forEach(T=>ZP(C,T)),S.change.forEach(T=>{C.deleteIndex(T.name),ZP(C,T)}),S.del.forEach(T=>C.deleteIndex(T))}});const k=g._cfg.contentUpgrade;if(k&&g._cfg.version>u){YP(l,d),c._memoizedTables={},v=!0;let S=Gee(b);_.del.forEach(A=>{S[A]=x[A]}),KP(l,[l.Transaction.prototype]),vS(l,[l.Transaction.prototype],Dr(S),S),c.schema=S;const C=Q$(k);let T;C&&Av();const E=Ne.follow(()=>{if(T=k(c),T&&C){var A=Qs.bind(null,null);T.then(A,A)}});return T&&typeof T.then=="function"?Ne.resolve(T):E.then(()=>T)}}),f.push(x=>{(!v||!A1e)&&function(b,_){[].slice.call(_.db.objectStoreNames).forEach(k=>b[k]==null&&_.db.deleteObjectStore(k))}(g._cfg.dbschema,x),KP(l,[l.Transaction.prototype]),vS(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),c.schema=l._dbSchema})}),m().then(()=>{var g,x;x=d,Dr(g=p).forEach(b=>{x.db.objectStoreNames.contains(b)||lA(x,b,g[b].primKey,g[b].indexes)})})}(e,t,i,r).catch(o)})}function dte(e,t){const r={del:[],add:[],change:[]};let n;for(n in e)t[n]||r.del.push(n);for(n in t){const a=e[n],i=t[n];if(a){const o={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||a.primKey.auto!==i.primKey.auto&&!Rk)o.recreate=!0,r.change.push(o);else{const s=a.idxByName,l=i.idxByName;let u;for(u in s)l[u]||o.del.push(u);for(u in l){const c=s[u],d=l[u];c?c.src!==d.src&&o.change.push(d):o.add.push(d)}(o.del.length>0||o.add.length>0||o.change.length>0)&&r.change.push(o)}}else r.add.push([n,i])}return r}function lA(e,t,r,n){const a=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>ZP(a,i)),a}function ZP(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function XP(e,t,r){const n={};return uS(t.objectStoreNames,0).forEach(a=>{const i=r.objectStore(a);let o=i.keyPath;const s=WP(ute(o),o||"",!1,!1,!!i.autoIncrement,o&&typeof o!="string",!0),l=[];for(let c=0;c<i.indexNames.length;++c){const d=i.index(i.indexNames[c]);o=d.keyPath;var u=WP(d.name,o,!!d.unique,!!d.multiEntry,!1,o&&typeof o!="string",!1);l.push(u)}n[a]=cte(a,s,l)}),n}function JP({_novip:e},t,r){const n=r.db.objectStoreNames;for(let a=0;a<n.length;++a){const i=n[a],o=r.objectStore(i);e._hasGetAll="getAll"in o;for(let s=0;s<o.indexNames.length;++s){const l=o.indexNames[s],u=o.index(l).keyPath,c=typeof u=="string"?u:"["+uS(u).join("+")+"]";if(t[i]){const d=t[i].idxByName[c];d&&(d.name=l,delete t[i].idxByName[c],t[i].idxByName[l]=d)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Jt.WorkerGlobalScope&&Jt instanceof Jt.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}class F1e{_parseStoresSpec(t,r){Dr(t).forEach(n=>{if(t[n]!==null){var a=t[n].split(",").map((o,s)=>{const l=(o=o.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(l)?l.match(/^\[(.*)\]$/)[1].split("+"):l;return WP(l,u||null,/\&/.test(o),/\*/.test(o),/\+\+/.test(o),In(u),s===0)}),i=a.shift();if(i.multi)throw new Xe.Schema("Primary key cannot be multi-valued");a.forEach(o=>{if(o.auto)throw new Xe.Schema("Only primary key can be marked as autoIncrement (++)");if(!o.keyPath)throw new Xe.Schema("Index must have a name and cannot be an empty string")}),r[n]=cte(n,i,a)}})}stores(t){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?Kn(this._cfg.storesSource,t):t;const n=r._versions,a={};let i={};return n.forEach(o=>{Kn(a,o._cfg.storesSource),i=o._cfg.dbschema={},o._parseStoresSpec(a,i)}),r._dbSchema=i,KP(r,[r._allTables,r,r.Transaction.prototype]),vS(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],Dr(i),i),r._storeNames=Dr(i),this}upgrade(t){return this._cfg.contentUpgrade=r4(this._cfg.contentUpgrade||Gt,t),this}}function o4(e,t){let r=e._dbNamesDB;return r||(r=e._dbNamesDB=new Vd("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function s4(e){return e&&typeof e.databases=="function"}function QP(e){return ju(function(){return Ue.letThrough=!0,e()})}function B1e(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(t){var r=function(){return indexedDB.databases().finally(t)};e=setInterval(r,100),r()}).finally(function(){return clearInterval(e)}):Promise.resolve()}function j1e(e){const t=e._state,{indexedDB:r}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(()=>t.dbOpenError?Vr(t.dbOpenError):e);cs&&(t.openCanceller._stackHolder=Mf()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;
516const n=t.openCanceller;function a(){if(t.openCanceller!==n)throw new Xe.DatabaseClosed("db.open() was cancelled")}let i=t.dbReadyResolve,o=null,s=!1;return Ne.race([n,(typeof navigator>"u"?Ne.resolve():B1e()).then(()=>new Ne((l,u)=>{if(a(),!r)throw new Xe.MissingAPI;const c=e.name,d=t.autoSchema?r.open(c):r.open(c,Math.round(10*e.verno));if(!d)throw new Xe.MissingAPI;d.onerror=$o(u),d.onblocked=tr(e._fireOnBlocked),d.onupgradeneeded=tr(f=>{if(o=d.transaction,t.autoSchema&&!e._options.allowEmptyDB){d.onerror=Hm,o.abort(),d.result.close();const p=r.deleteDatabase(c);p.onsuccess=p.onerror=tr(()=>{u(new Xe.NoSuchDatabase(`Database ${c} doesnt exist`))})}else{o.onerror=$o(u);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;s=h<1,e._novip.idbdb=d.result,z1e(e,h/10,o,u)}},u),d.onsuccess=tr(()=>{o=null;const f=e._novip.idbdb=d.result,h=uS(f.objectStoreNames);if(h.length>0)try{const v=f.transaction((p=h).length===1?p[0]:p,"readonly");t.autoSchema?function({_novip:m},g,x){m.verno=g.version/10;const b=m._dbSchema=XP(0,g,x);m._storeNames=uS(g.objectStoreNames,0),vS(m,[m._allTables],Dr(b),b)}(e,f,v):(JP(e,e._dbSchema,v),function(m,g){const x=dte(XP(0,m.idbdb,g),m._dbSchema);return!(x.add.length||x.change.some(b=>b.add.length||b.change.length))}(e,v)),YP(e,v)}catch{}var p;Z0.push(e),f.onversionchange=tr(v=>{t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=tr(v=>{e.on("close").fire(v)}),s&&function({indexedDB:v,IDBKeyRange:m},g){!s4(v)&&g!=="__dbnames"&&o4(v,m).put({name:g}).catch(Gt)}(e._deps,c),l()},u)}))]).then(()=>(a(),t.onReadyBeingFired=[],Ne.resolve(QP(()=>e.on.ready.fire(e.vip))).then(function l(){if(t.onReadyBeingFired.length>0){let u=t.onReadyBeingFired.reduce(r4,Gt);return t.onReadyBeingFired=[],Ne.resolve(QP(()=>u(e.vip))).then(l)}}))).finally(()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(()=>e).catch(l=>{t.dbOpenError=l;try{o&&o.abort()}catch{}return n===t.openCanceller&&e._close(),Vr(l)}).finally(()=>{t.openComplete=!0,i()})}function eM(e){var t=i=>e.next(i),r=a(t),n=a(i=>e.throw(i));function a(i){return o=>{var s=i(o),l=s.value;return s.done?l:l&&typeof l.then=="function"?l.then(r,n):In(l)?Promise.all(l).then(r,n):r(l)}}return a(t)()}function V1e(e,t,r){var n=arguments.length;if(n<2)throw new Xe.InvalidArgument("Too few arguments");for(var a=new Array(n-1);--n;)a[n-1]=arguments[n];r=a.pop();var i=Hee(a);return[e,i,r]}function fte(e,t,r,n,a){return Ne.resolve().then(()=>{const i=Ue.transless||Ue,o=e._createTransaction(t,r,e._dbSchema,n),s={trans:o,transless:i};if(n)o.idbtrans=n.idbtrans;else try{o.create(),e._state.PR1398_maxLoop=3}catch(d){return d.name===t4.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(e._close(),e.open().then(()=>fte(e,t,r,null,a))):Vr(d)}const l=Q$(a);let u;l&&Av();const c=Ne.follow(()=>{if(u=a.call(o,o),u)if(l){var d=Qs.bind(null,null);u.then(d,d)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=eM(u))},s);return(u&&typeof u.then=="function"?Ne.resolve(u).then(d=>o.active?d:Vr(new Xe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):c.then(()=>u)).then(d=>(n&&o._resolve(),o._completion.then(()=>d))).catch(d=>(o._reject(d),Vr(d)))})}function C1(e,t,r){const n=In(e)?e.slice():[e];for(let a=0;a<r;++a)n.push(t);return n}const U1e={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return{...e,table(t){const r=e.table(t),{schema:n}=r,a={},i=[];function o(c,d,f){const h=J0(c),p=a[h]=a[h]||[],v=c==null?0:typeof c=="string"?1:c.length,m=d>0,g={...f,isVirtual:m,keyTail:d,keyLength:v,extractKey:qP(c),unique:!m&&f.unique};return p.push(g),g.isPrimaryKey||i.push(g),v>1&&o(v===2?c[0]:c.slice(0,v-1),d+1,f),p.sort((x,b)=>x.keyTail-b.keyTail),g}const s=o(n.primaryKey.keyPath,0,n.primaryKey);a[":id"]=[s];for(const c of n.indexes)o(c.keyPath,0,c);function l(c){const d=c.query.index;return d.isVirtual?{...c,query:{index:d,range:(f=c.query.range,h=d.keyTail,{type:f.type===1?2:f.type,lower:C1(f.lower,f.lowerOpen?e.MAX_KEY:e.MIN_KEY,h),lowerOpen:!0,upper:C1(f.upper,f.upperOpen?e.MIN_KEY:e.MAX_KEY,h),upperOpen:!0})}}:c;var f,h}return{...r,schema:{...n,primaryKey:s,indexes:i,getIndexByKeyPath:function(c){const d=a[J0(c)];return d&&d[0]}},count:c=>r.count(l(c)),query:c=>r.query(l(c)),openCursor(c){const{keyTail:d,isVirtual:f,keyLength:h}=c.query.index;return f?r.openCursor(l(c)).then(p=>p&&function(v){return Object.create(v,{continue:{value:function(g){g!=null?v.continue(C1(g,c.reverse?e.MAX_KEY:e.MIN_KEY,d)):c.unique?v.continue(v.key.slice(0,h).concat(c.reverse?e.MIN_KEY:e.MAX_KEY,d)):v.continue()}},continuePrimaryKey:{value(g,x){v.continuePrimaryKey(C1(g,e.MAX_KEY,d),x)}},primaryKey:{get:()=>v.primaryKey},key:{get(){const g=v.key;return h===1?g[0]:g.slice(0,h)}},value:{get:()=>v.value}})}(p)):r.openCursor(c)}}}}}};function l4(e,t,r,n){return r=r||{},n=n||"",Dr(e).forEach(a=>{if(Ga(t,a)){var i=e[a],o=t[a];if(typeof i=="object"&&typeof o=="object"&&i&&o){const s=LP(i);s!==LP(o)?r[n+a]=t[a]:s==="Object"?l4(i,o,r,n+a+"."):i!==o&&(r[n+a]=t[a])}else i!==o&&(r[n+a]=t[a])}else r[n+a]=void 0}),Dr(t).forEach(a=>{Ga(e,a)||(r[n+a]=t[a])}),r}const G1e={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const r=e.table(t),{primaryKey:n}=r.schema;
516return{...r,mutate(i){const o=Ue.trans,{deleting:s,creating:l,updating:u}=o.table(t).hook;switch(i.type){case"add":if(l.fire===Gt)break;return o._promise("readwrite",()=>c(i),!0);case"put":if(l.fire===Gt&&u.fire===Gt)break;return o._promise("readwrite",()=>c(i),!0);case"delete":if(s.fire===Gt)break;return o._promise("readwrite",()=>c(i),!0);case"deleteRange":if(s.fire===Gt)break;return o._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function c(f){const h=Ue.trans,p=f.keys||function(v,m){return m.type==="delete"?m.keys:m.keys||m.values.map(v.extractKey)}(n,f);if(!p)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:p}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(v,m,g){return m.type==="add"?Promise.resolve([]):v.getMany({trans:m.trans,keys:g,cache:"immutable"})}(r,f,p).then(v=>{const m=p.map((g,x)=>{const b=v[x],_={onerror:null,onsuccess:null};if(f.type==="delete")s.fire.call(_,g,b,h);else if(f.type==="add"||b===void 0){const k=l.fire.call(_,g,f.values[x],h);g==null&&k!=null&&(g=k,f.keys[x]=g,n.outbound||oo(f.values[x],n.keyPath,g))}else{const k=l4(b,f.values[x]),S=u.fire.call(_,k,g,b,h);if(S){const C=f.values[x];Object.keys(S).forEach(T=>{Ga(C,T)?C[T]=S[T]:oo(C,T,S[T])})}}return _});return r.mutate(f).then(({failures:g,results:x,numFailures:b,lastResult:_})=>{for(let k=0;k<p.length;++k){const S=x?x[k]:p[k],C=m[k];S==null?C.onerror&&C.onerror(g[k]):C.onsuccess&&C.onsuccess(f.type==="put"&&v[k]?f.values[k]:S)}return{failures:g,results:x,numFailures:b,lastResult:_}}).catch(g=>(m.forEach(x=>x.onerror&&x.onerror(g)),Promise.reject(g)))})}function d(f,h,p){return r.query({trans:f,values:!1,query:{index:n,range:h},limit:p}).then(({result:v})=>c({type:"delete",keys:v,trans:f}).then(m=>m.numFailures>0?Promise.reject(m.failures[0]):v.length<p?{failures:[],numFailures:0,lastResult:void 0}:d(f,{...h,lower:v[v.length-1],lowerOpen:!0},p)))}}}}})};function hte(e,t,r){try{if(!t||t.keys.length<e.length)return null;const n=[];for(let a=0,i=0;a<t.keys.length&&i<e.length;++a)Gn(t.keys[a],e[i])===0&&(n.push(r?ex(t.values[a]):t.values[a]),++i);return n.length===e.length?n:null}catch{return null}}const H1e={stack:"dbcore",level:-1,create:e=>({table:t=>{const r=e.table(t);return{...r,getMany:n=>{if(!n.cache)return r.getMany(n);const a=hte(n.keys,n.trans._cache,n.cache==="clone");return a?Ne.resolve(a):r.getMany(n).then(i=>(n.trans._cache={keys:n.keys,values:n.cache==="clone"?ex(i):i},i))},mutate:n=>(n.type!=="add"&&(n.trans._cache=null),r.mutate(n))}}})};function u4(e){return!("from"in e)}const Ms=function(e,t){if(!this){const r=new Ms;return e&&"d"in e&&Kn(r,e),r}Kn(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function qm(e,t,r){const n=Gn(t,r);if(isNaN(n))return;if(n>0)throw RangeError();if(u4(e))return Kn(e,{from:t,to:r,d:1});const a=e.l,i=e.r;if(Gn(r,e.from)<0)return a?qm(a,t,r):e.l={from:t,to:r,d:1,l:null,r:null},AF(e);if(Gn(t,e.to)>0)return i?qm(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},AF(e);Gn(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Gn(r,e.to)>0&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);const o=!e.r;a&&!e.l&&gS(e,a),i&&o&&gS(e,i)}function gS(e,t){u4(t)||function r(n,{from:a,to:i,l:o,r:s}){qm(n,a,i),o&&r(n,o),s&&r(n,s)}(e,t)}function W1e(e,t){const r=tM(t);let n=r.next();if(n.done)return!1;let a=n.value;const i=tM(e);let o=i.next(a.from),s=o.value;for(;!n.done&&!o.done;){if(Gn(s.from,a.to)<=0&&Gn(s.to,a.from)>=0)return!0;Gn(a.from,s.from)<0?a=(n=r.next(s.from)).value:s=(o=i.next(a.from)).value}return!1}function tM(e){let t=u4(e)?null:{s:0,n:e};return{next(r){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Gn(r,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Gn(r,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function AF(e){var t,r;const n=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((r=e.l)===null||r===void 0?void 0:r.d)||0),a=n>1?"r":n<-1?"l":"";if(a){const i=a==="r"?"l":"r",o={...e},s=e[a];e.from=s.from,e.to=s.to,e[a]=s[a],o[a]=s[i],e[i]=o,o.d=EF(o)}e.d=EF(e)}function EF({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}Gp(Ms.prototype,{add(e){return gS(this,e),this},addKey(e){return qm(this,e,e),this},addKeys(e){return e.forEach(t=>qm(this,t,t)),this},[RP](){return tM(this)}});const q1e={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,r=new Ms(e.MIN_KEY,e.MAX_KEY);return{...e,table:n=>{const a=e.table(n),{schema:i}=a,{primaryKey:o}=i,{extractKey:s,outbound:l}=o,u={...a,mutate:f=>{const h=f.trans,p=h.mutatedParts||(h.mutatedParts={}),v=S=>{const C=`idb://${t}/${n}/${S}`;return p[C]||(p[C]=new Ms)},m=v(""),g=v(":dels"),{type:x}=f;let[b,_]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const k=f.trans._cache;return a.mutate(f).then(S=>{if(In(b)){x!=="delete"&&(b=S.results),m.addKeys(b);const C=hte(b,k);C||x==="add"||g.addKeys(b),(C||_)&&function(T,E,A,N){function P(L){const R=T(L.name||"");function M(V){return V!=null?L.extractKey(V):null}const $=V=>
516L.multiEntry&&In(V)?V.forEach(B=>R.addKey(B)):R.addKey(V);(A||N).forEach((V,B)=>{const j=A&&M(A[B]),I=N&&M(N[B]);Gn(j,I)!==0&&(j!=null&&$(j),I!=null&&$(I))})}E.indexes.forEach(P)}(v,i,C,_)}else if(b){const C={from:b.lower,to:b.upper};g.add(C),m.add(C)}else m.add(r),g.add(r),i.indexes.forEach(C=>v(C.name).add(r));return S})}},c=({query:{index:f,range:h}})=>{var p,v;return[f,new Ms((p=h.lower)!==null&&p!==void 0?p:e.MIN_KEY,(v=h.upper)!==null&&v!==void 0?v:e.MAX_KEY)]},d={get:f=>[o,new Ms(f.key)],getMany:f=>[o,new Ms().addKeys(f.keys)],count:c,query:c,openCursor:c};return Dr(d).forEach(f=>{u[f]=function(h){const{subscr:p}=Ue;if(p){const v=_=>{const k=`idb://${t}/${n}/${_}`;return p[k]||(p[k]=new Ms)},m=v(""),g=v(":dels"),[x,b]=d[f](h);if(v(x.name||"").add(b),!x.isPrimaryKey){if(f!=="count"){const _=f==="query"&&l&&h.values&&a.query({...h,values:!1});return a[f].apply(this,arguments).then(k=>{if(f==="query"){if(l&&h.values)return _.then(({result:C})=>(m.addKeys(C),k));const S=h.values?k.result.map(s):k.result;h.values?m.addKeys(S):g.addKeys(S)}else if(f==="openCursor"){const S=k,C=h.values;return S&&Object.create(S,{key:{get:()=>(g.addKey(S.primaryKey),S.key)},primaryKey:{get(){const T=S.primaryKey;return g.addKey(T),T}},value:{get:()=>(C&&m.addKey(S.primaryKey),S.value)}})}return k})}g.add(r)}}return a[f].apply(this,arguments)}}),u}}}};class Vd{constructor(t,r){this._middlewares={},this.verno=0;const n=Vd.dependencies;this._options=r={addons:Vd.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:a}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Gt,dbReadyPromise:null,cancelOpen:Gt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o;i.dbReadyPromise=new Ne(s=>{i.dbReadyResolve=s}),i.openCanceller=new Ne((s,l)=>{i.cancelOpen=l}),this._state=i,this.name=t,this.on=X0(this,"populate","blocked","versionchange","close",{ready:[r4,Gt]}),this.on.ready.subscribe=jee(this.on.ready.subscribe,s=>(l,u)=>{Vd.vip(()=>{const c=this._state;if(c.openComplete)c.dbOpenError||Ne.resolve().then(l),u&&s(l);else if(c.onReadyBeingFired)c.onReadyBeingFired.push(l),u&&s(l);else{s(l);const d=this;u||s(function f(){d.on.ready.unsubscribe(l),d.on.ready.unsubscribe(f)})}})}),this.Collection=(o=this,gg(I1e.prototype,function(s,l){this.db=o;let u=ote,c=null;if(l)try{u=l()}catch(p){c=p}const d=s._ctx,f=d.table,h=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:c,or:d.or,valueMapper:h!==Um?h:null}})),this.Table=function(s){return gg(N1e.prototype,function(l,u,c){this.db=s,this._tx=c,this.name=l,this.schema=u,this.hook=s._allTables[l]?s._allTables[l].hook:X0(null,{creating:[m1e,Gt],reading:[g1e,Um],updating:[x1e,Gt],deleting:[y1e,Gt]})})}(this),this.Transaction=function(s){return gg(L1e.prototype,function(l,u,c,d,f){this.db=s,this.mode=l,this.storeNames=u,this.schema=c,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=X0(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ne((h,p)=>{this._resolve=h,this._reject=p}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},h=>{var p=this.active;return this.active=!1,this.on.error.fire(h),this.parent?this.parent._reject(h):p&&this.idbtrans&&this.idbtrans.abort(),Vr(h)})})}(this),this.Version=function(s){return gg(F1e.prototype,function(l){this.db=s,this._cfg={version:l,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return gg(lte.prototype,function(l,u,c){this.db=s,this._ctx={table:l,index:u===":id"?null:u,or:c};const d=s._deps.indexedDB;if(!d)throw new Xe.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,h)=>d.cmp(h,f),this._max=(f,h)=>d.cmp(f,h)>0?f:h,this._min=(f,h)=>d.cmp(f,h)<0?f:h,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0,this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersion<s.oldVersion}),this._maxKey=Wm(r.IDBKeyRange),this._createTransaction=(s,l,u,c)=>new this.Transaction(s,l,u,this._options.chromeTransactionDurability,c),this._fireOnBlocked=s=>{this.on("blocked").fire(s),Z0.filter(l=>
516l.name===this.name&&l!==this&&!l._state.vcFired).map(l=>l.on("versionchange").fire(s))},this.use(U1e),this.use(G1e),this.use(q1e),this.use(H1e),this.vip=Object.create(this,{_vip:{value:!0}}),a.forEach(s=>s(this))}version(t){if(isNaN(t)||t<.1)throw new Xe.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new Xe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);const r=this._versions;var n=r.filter(a=>a._cfg.version===t)[0];return n||(n=new this.Version(t),r.push(n),r.sort(O1e),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(t){return this.idbdb&&(this._state.openComplete||Ue.letThrough||this._vip)?t():new Ne((r,n)=>{if(this._state.openComplete)return n(new Xe.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void n(new Xe.DatabaseClosed);this.open().catch(Gt)}this._state.dbReadyPromise.then(r,n)}).then(t)}use({stack:t,create:r,level:n,name:a}){a&&this.unuse({stack:t,name:a});const i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:r,level:n??10,name:a}),i.sort((o,s)=>o.level-s.level),this}unuse({stack:t,name:r,create:n}){return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(a=>n?a.create!==n:!!r&&a.name!==r)),this}open(){return j1e(this)}_close(){const t=this._state,r=Z0.indexOf(this);if(r>=0&&Z0.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Ne(n=>{t.dbReadyResolve=n}),t.openCanceller=new Ne((n,a)=>{t.cancelOpen=a})}close(){this._close();const t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Xe.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)}delete(){const t=arguments.length>0,r=this._state;return new Ne((n,a)=>{const i=()=>{this.close();var o=this._deps.indexedDB.deleteDatabase(this.name);o.onsuccess=tr(()=>{(function({indexedDB:s,IDBKeyRange:l},u){!s4(s)&&u!=="__dbnames"&&o4(s,l).delete(u).catch(Gt)})(this._deps,this.name),n()}),o.onerror=$o(a),o.onblocked=this._fireOnBlocked};if(t)throw new Xe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Dr(this._allTables).map(t=>this._allTables[t])}transaction(){const t=V1e.apply(this,arguments);return this._transaction.apply(this,t)}_transaction(t,r,n){let a=Ue.trans;a&&a.db===this&&t.indexOf("!")===-1||(a=null);const i=t.indexOf("?")!==-1;let o,s;t=t.replace("!","").replace("?","");try{if(s=r.map(u=>{var c=u instanceof this.Table?u.name:u;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t==="readonly")o="readonly";else{if(t!="rw"&&t!="readwrite")throw new Xe.InvalidArgument("Invalid transaction mode: "+t);o="readwrite"}if(a){if(a.mode==="readonly"&&o==="readwrite"){if(!i)throw new Xe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&s.forEach(u=>{if(a&&a.storeNames.indexOf(u)===-1){if(!i)throw new Xe.SubTransaction("Table "+u+" not included in parent transaction.");a=null}}),i&&a&&!a.active&&(a=null)}}catch(u){return a?a._promise(null,(c,d)=>{d(u)}):Vr(u)}const l=fte.bind(null,this,o,s,a,n);return a?a._promise(o,l,"lock"):Ue.trans?Ev(Ue.transless,()=>this._whenReady(l)):this._whenReady(l)}table(t){if(!Ga(this._allTables,t))throw new Xe.InvalidTable(`Table ${t} does not exist`);return this._allTables[t]}}const Y1e=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class K1e{constructor(t){this._subscribe=t}subscribe(t,r,n){return this._subscribe(t&&typeof t!="function"?t:{next:t,error:r,complete:n})}[Y1e](){return this}}function pte(e,t){return Dr(t).forEach(r=>{gS(e[r]||(e[r]=new Ms),t[r])}),e}function Z1e(e){return new K1e(t=>{const r=Q$(e);let n=!1,a={},i={};const o={get closed(){return n},unsubscribe:()=>{n=!0,Uu.storagemutated.unsubscribe(c)}};t.start&&t.start(o);let s=!1,l=!1;function u(){return Dr(i).some(f=>a[f]&&W1e(a[f],i[f]))}const c=f=>{pte(a,f),u()&&d()},d=()=>
516{if(s||n)return;a={};const f={},h=function(p){r&&Av();const v=()=>ju(e,{subscr:p,trans:null}),m=Ue.trans?Ev(Ue.transless,v):v();return r&&m.then(Qs,Qs),m}(f);l||(Uu("storagemutated",c),l=!0),s=!0,Promise.resolve(h).then(p=>{s=!1,n||(u()?d():(a={},i=f,t.next&&t.next(p)))},p=>{s=!1,t.error&&t.error(p),o.unsubscribe()})};return d(),o})}let rM;try{rM={indexedDB:Jt.indexedDB||Jt.mozIndexedDB||Jt.webkitIndexedDB||Jt.msIndexedDB,IDBKeyRange:Jt.IDBKeyRange||Jt.webkitIDBKeyRange}}catch{rM={indexedDB:null,IDBKeyRange:null}}const _c=Vd;function Kw(e){let t=Rs;try{Rs=!0,Uu.storagemutated.fire(e)}finally{Rs=t}}Gp(_c,{...Uw,delete:e=>new _c(e,{addons:[]}).delete(),exists:e=>new _c(e,{addons:[]}).open().then(t=>(t.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(e){try{return function({indexedDB:t,IDBKeyRange:r}){return s4(t)?Promise.resolve(t.databases()).then(n=>n.map(a=>a.name).filter(a=>a!=="__dbnames")):o4(t,r).toCollection().primaryKeys()}(_c.dependencies).then(e)}catch{return Vr(new Xe.MissingAPI)}},defineClass:()=>function(e){Kn(this,e)},ignoreTransaction:e=>Ue.trans?Ev(Ue.transless,e):e(),vip:QP,async:function(e){return function(){try{var t=eM(e.apply(this,arguments));return t&&typeof t.then=="function"?t:Ne.resolve(t)}catch(r){return Vr(r)}}},spawn:function(e,t,r){try{var n=eM(e.apply(r,t||[]));return n&&typeof n.then=="function"?n:Ne.resolve(n)}catch(a){return Vr(a)}},currentTransaction:{get:()=>Ue.trans||null},waitFor:function(e,t){const r=Ne.resolve(typeof e=="function"?_c.ignoreTransaction(e):e).timeout(t||6e4);return Ue.trans?Ue.trans.waitFor(r):r},Promise:Ne,debug:{get:()=>cs,set:e=>{qee(e,e==="dexie"?()=>!0:ite)}},derive:yp,extend:Kn,props:Gp,override:jee,Events:X0,on:Uu,liveQuery:Z1e,extendObservabilitySet:pte,getByKeyPath:Us,setByKeyPath:oo,delByKeyPath:function(e,t){typeof t=="string"?oo(e,t,void 0):"length"in t&&[].map.call(t,function(r){oo(e,r,void 0)})},shallowClone:Gee,deepClone:ex,getObjectDiff:l4,cmp:Gn,asap:Vee,minKey:-(1/0),addons:[],connections:Z0,errnames:t4,dependencies:rM,semVer:"3.2.3",version:"3.2.3".split(".").map(e=>parseInt(e)).reduce((e,t,r)=>e+t/Math.pow(10,2*r))}),_c.maxKey=Wm(_c.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Uu("storagemutated",e=>{if(!Rs){let t;Rk?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),Rs=!0,dispatchEvent(t),Rs=!1}}
516),addEventListener("x-storagemutated-1",({detail:e})=>{Rs||Kw(e)}));let Rs=!1;if(typeof BroadcastChannel<"u"){const e=new BroadcastChannel("x-storagemutated-1");typeof e.unref=="function"&&e.unref(),Uu("storagemutated",t=>{Rs||e.postMessage(t)}),e.onmessage=t=>{t.data&&Kw(t.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Uu("storagemutated",t=>{try{Rs||(typeof localStorage<"u"&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:t})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:"x-storagemutated-1",changedParts:t})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",t=>{if(t.key==="x-storagemutated-1"){const r=JSON.parse(t.newValue);r&&Kw(r.changedParts)}});const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",function({data:t}){t&&t.type==="x-storagemutated-1"&&Kw(t.changedParts)})}Ne.rejectionMapper=function(e,t){if(!e||e instanceof xp||e instanceof TypeError||e instanceof SyntaxError||!e.name||!xF[e.name])return e;var r=new xF[e.name](t||e.message,e);return"stack"in e&&Vs(r,"stack",{get:function(){return this.inner.stack}}),r},qee(cs,ite);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};class X1e extends Vd{constructor(){super("RecordDB"),this.version(1).stores({wordRecords:"++id,word,timeStamp,dict,chapter,errorCount,[dict+chapter]",chapterRecords:"++id,timeStamp,dict,chapter,time,[dict+chapter]"}),this.version(2).stores({wordRecords:"++id,word,timeStamp,dict,chapter,wrongCount,[dict+chapter]",chapterRecords:"++id,timeStamp,dict,chapter,time,[dict+chapter]"}),this.version(3).stores({wordRecords:"++id,word,timeStamp,dict,chapter,wrongCount,[dict+chapter]",chapterRecords:"++id,timeStamp,dict,chapter,time,[dict+chapter]",reviewRecords:"++id,dict,createTime,isFinished"})}}const $k=new X1e;$k.wordRecords.mapToClass(n1e);$k.chapterRecords.mapToClass(a1e);$k.reviewRecords.mapToClass(i1e);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};async function J1e(e){$k.reviewRecords.put(e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Q1e(e){const t=Sa("reviewModeInfo",e);return t.debugLabel="storageAtom",ho(r=>r(t),(r,n,a)=>{var o;const i=typeof a=="function"?a(r(t)):a;(o=i.reviewRecord)!=null&&o.id&&J1e(i.reviewRecord),n(t,i)})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const ebe=[{id:"cet4",name:"CET-4",description:"大å¦è±è¯å级è¯åº",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/CET4_T.json",length:2607,language:"en",languageCategory:"en"},{id:"cet6",name:"CET-6",description:"大å¦è±è¯å
级è¯åº",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/CET6_T.json",length:2345,language:"en",languageCategory:"en"},{id:"xinghuoqiaoji_4",name:"å级巧记éè®°",description:"å级巧记éè®°",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/xinghuoqiaoji_4.json",length:2522,language:"en",languageCategory:"en"},{id:"xinghuoqiaoji_6",name:"å
级巧记éè®°",description:"å
级巧记éè®°",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/xinghuoqiaoji_6.json",length:7520,language:"en",languageCategory:"en"},{id:"cet4-sub",name:"CET-4-Sub",description:"åè¯çåæ³-å级",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/DanCiDeJianFa_4.json",length:1957,language:"en",languageCategory:"en"},{id:"cet6-sub",name:"CET-6-Sub",description:"åè¯çåæ³-å
级",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/DanCiDeJianFa_6.json",length:1949,language:"en",languageCategory:"en"},{id:"kaoyan",name:"èç ",description:"ç ç©¶çè±è¯å
¥å¦èè¯è¯åº",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/KaoYan_3_T.json",length:3728,language:"en",languageCategory:"en"},{id:"kaoyan_2024",name:"èç 2024",description:"ç ç©¶çè±è¯å
¥å¦èè¯è¯åº 2024",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/KaoYan_2024.json",length:3731,language:"en",languageCategory:"en"},{id:"kaoyanshanguo_2023",name:"èç éªè¿ 2023",description:"é«ä¸ä½é¢è¯2023",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/KaoYanShanGuo_2023.json",length:1771,language:"en",languageCategory:"en"},{id:"926",name:"èç 926è¯æ±",description:"926æ ¸å¿è¯æ±",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/926.json",length:926,language:"en",languageCategory:"en"},{id:"dancimimi_1",name:"åè¯çç§å¯-è±è¯ä¸",description:"åè¯çç§å¯è±è¯ï¼ä¸ï¼",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/DanCiDeMim
516i_1.json",length:5657,language:"en",languageCategory:"en"},{id:"dancimimi_2",name:"åè¯çç§å¯-è±è¯äº",description:"åè¯çç§å¯è±è¯ï¼äºï¼",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/DanCiDeMimi_2.json",length:3827,language:"en",languageCategory:"en"},{id:"2024HongBao T1",name:"2024èç è±è¯hongbaoshu(ä¸)",description:"2024èç è±è¯hongbaoshuå¿
èè¯ï¼ä¸ï¼",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/2024HongBao_T1.json",length:997,language:"en",languageCategory:"en"},{id:"2024HongBao T2",name:"2024èç è±è¯hongbaoshu(ä¸)",description:"2024èç è±è¯hongbaoshuå¿
èè¯ï¼ä¸ï¼",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/2024HongBao_T2.json",length:854,language:"en",languageCategory:"en"},{id:"hongbaoshu-2026",name:"2026èç è±è¯ hongbaoshu",description:"2026 èç è¯æ± (å¿
èè¯+åºç¡è¯+è¶
纲è¯ï¼",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/hongbaoshu-2026.json",length:4858,language:"en",languageCategory:"en"},{id:"English_II",name:"è±è¯äºåè¯ä¹¦",description:"èç è±è¯äºåè¯ä¹¦",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/English_II.json",length:4559,language:"en",languageCategory:"en"},{id:"kaoyanshanguo2025",name:"èç shanguo 2025",description:"èç shanguo 2025",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/kaoyanshanguo2025.json",length:2257,language:"en",languageCategory:"en"},{id:"level4",name:"ä¸å",description:"è±è¯ä¸ä¸å级è¯åº",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/Level4luan_2_T.json",length:4025,language:"en",languageCategory:"en"},{id:"level8",name:"ä¸å
«",description:"è±è¯ä¸ä¸å
«çº§è¯åº",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/Level8luan_2_T.json",length:12197,language:"en",languageCategory:"en"},{id:"archVocabulary",name:"建çä¸ä¸è±è¯",description:"大å¦å»ºçä¸ä¸è±è¯è¯æ±",category:"ä¸å½èè¯",tags:["ä¸ä¸è±è¯"],url:"/dicts/archVocabulary.json",length:630,language:"en",languageCategory:"en"},{id:"itVocabulary",name:"è®¡ç®æºä¸ç¨è±è¯",description:"大å¦è®¡ç®æºä¸ä¸è±è¯è¯æ±",category:"ä¸å½èè¯",tags:["ä¸ä¸è±è¯"],url:"/dicts/itVocabulary.json",length:1665,language:"en",languageCategory:"en"},{id:"pets3",name:"PETS",description:"å
¨å½è±è¯ç级èè¯å¸¸èè¯æ±",category:"ä¸å½èè¯",tags:["PET"],url:"/dicts/PETS_3.json",length:1942,language:"en",languageCategory:"en"},{id:"pets3-2023",name:"PETS-2023",description:"å
¨å½è±è¯ç级èè¯å¸¸èè¯æ±",category:"ä¸å½èè¯",tags:["PET"],url:"/dicts/PETS3-2023.json",length:4449,language:"en",languageCategory:"en"},{id:"self-study_English1",name:"èªè1800é«é¢åè¯",description:"èªè1800é«é¢åè¯",category:"ä¸å½èè¯",tags:["èªèè±è¯äº"],url:"/dicts/self-study_English1.json",length:1800,language:"en",languageCategory:"en"},{id:"self-study_English2",name:"èªèè±è¯äºé«é¢æ æ åè¯",description:"èªèè±è¯äºé«é¢æ æ åè¯",category:"ä¸å½èè¯",tags:["èªèè±è¯äº"],url:"/dicts/self-study_English2.json",length:2181,language:"en",languageCategory:"en"},{id:"self-study_English3",name:"èªèè±è¯äºå®æ´åè¯",description:"00015èªèè±è¯äºå®æ´åè¯ä¹¦",category:"ä¸å½èè¯",tags:["èªèè±è¯äº"],url:"/dicts/self-study_English3.json",length:4603,language:"en",languageCategory:"en"},{id:"coca_20000",name:"COCA20000è¯",description:"COCA20000è¯",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/coca20000.json",length:20199,language:"en",languageCategory:"en"},{id:"4000_Essential_English_Words1",name:"Essential Words",description:"4000 Essential English Words meaning",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/4000_Essential_English_Words-meaning.json",length:3600,language:"en",languageCategory:"en"},{id:"4000_Essential_English_Words2",name:"Essential Words",description:"4000 Essential English Words sentence",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/4000_Essential_English_Words-sentence.json",length:3600,language:"en",languageCategory:"en"},{id:"longman_communication_3000_words",name:"Longman Communication 3000",description:"Most frequent words in both spoken and written English",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Longman_Communication_3000.json",length:3168,language:"en",languageCategory:"en"}
516,{id:"top_2000_English_Words",name:"Top 2000 words",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/top2000words.json",length:1867,language:"en",languageCategory:"en"},{id:"top_1500_nouns_Words",name:"Top 1500 Nouns",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top1500NounWords.json",length:1525,language:"en",languageCategory:"en"},{id:"top_1000_verb_Words",name:"Top 1000 Verbs",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top1000VerbWords.json",length:1011,language:"en",languageCategory:"en"},{id:"top_500_Adj_Words",name:"Top 500 adj.",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top500AdjectiveWords.json",length:527,language:"en",languageCategory:"en"},{id:"top_250_Adv_Words",name:"Top 250 adv.",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top250AdverbWords.json",length:255,language:"en",languageCategory:"en"},{id:"top_60_Pronouns",name:"Top 60 pron.",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top60Pronouns.json",length:59,language:"en",languageCategory:"en"},{id:"top_50_Prepositions",name:"Top 50 prep.",description:"with highest frequency",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Top50Prepositions.json",length:46,language:"en",languageCategory:"en"},{id:"suffix word",name:"suffix word",description:"common suffix",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/suffix_word.json",length:126,language:"en",languageCategory:"en"},{id:"word roots1",name:"word roots1",description:"common roots",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/word_roots1.json",length:369,language:"en",languageCategory:"en"},{id:"adult self-study examination",name:"ä¸åæ¬è¯æ±",description:"ä¸åæ¬è¯æ±",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/adult-self-study-examination.json",length:3692,language:"en",languageCategory:"en"},{id:"zhuan-cha-ben-ying-yu",name:"䏿æ¬è±è¯è¯æ±",description:"䏿æ¬è±è¯è¯æ±",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/zhuan-cha-ben.json",length:3217,language:"en",languageCategory:"en"},{id:"zhuan-sheng-ben-xue-shi",name:"ä¸åæ¬å¦å£«å¦ä½çè±è¯",description:"ä¸åæ¬å¦å£«å¦ä½çè±è¯",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/xueshiyingyu.json",length:897,language:"en",languageCategory:"en"},{id:"Oxford5000",name:"çæ´¥5000è¯",description:"çæ´¥5000è¯",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Oxford5000.json",length:5836,language:"en",languageCategory:"en"},{id:"Merriam_Webster_sVocabularyBuilder",name:"馿°è¯æ ¹è¯å
¸",description:"馿°è¯æ ¹è¯å
¸",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Merriam_Webster_sVocabularyBuilder.json",length:1191,language:"en",languageCategory:"en"},{id:"tingshuokaoshi",name:"å¬è¯´èè¯å¸¸è§è¯æ±",description:"å¬è¯´èè¯16ä¸ªåºæ¯å¸¸è§è¯æ±é",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/tingshuokaoshi.json",length:557,language:"en",languageCategory:"en"},{id:"TOEFL_ZhangHongYan",name:"ZhangHongYançTOEFLè¯æ±ä¹¦",description:"ZhangHongYançTOEFLè¯æ±ä¹¦-è¯ä»¥ç±»è®°",category:"å½é
èè¯",tags:["TOEFL"],url:"/dicts/TOEFL_ZhangHongYan.json",length:4032,language:"en",languageCategory:"en"},{id:"2025KaoYanHongBaoShu",name:"2025èç è±è¯è¯æ±hongbao书",description:"2025èç è±è¯è¯æ±hongbao书",category:"ä¸å½èè¯",tags:["èç "],url:"/dicts/2025KaoYanHongBaoShu.json",length:6705,language:"en",languageCategory:"en"},{id:"3000_ClassRoom_English_Words",name:"ä¸åæ¬3000è¯",description:"ä¸åæ¬è¯æ±",category:"ä¸å½èè¯",tags:["大å¦è±è¯"],url:"/dicts/3000_ClassRoom_English_Words.json",length:2991,language:"en",languageCategory:"en"},{id:"frequently_used_words01",name:"è¶
é¢åè¯level 1",description:"è¶
é¢åè¯level 1",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/frequently_used_word01.json",length:679,language:"en",languageCategory:"en"},{id:"frequently_used_words03",name:"è¶
é¢åè¯level 2",description:"è¶
é¢åè¯level 2",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/frequently_used_word02.json",length:1040,language:"en",languageCategory:"en"},{id:"frequently_used_words03",name:"è¶
é¢åè¯level 3",description:"è¶
é¢åè¯level 3",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/frequently_used_word03.json",length:1435,language:"en",languageCategory:"en"},{id:"roger",name:"Roger's Words",description:"å¦ä¹ ãå·¥ä½å¸¸ç¨è±è¯",category:"è±è¯è¯å
¸",tags:["课å¤è¯æ±"],url:"/dicts/RogersWords.json",length:4174,language:"en",languageCategory:"en"}
516],tbe=[{id:"pet-2024",name:"PET-2024",description:"åæ¡¥è±è¯ - 2024",category:"å½é
èè¯",tags:["PET"],url:"/dicts/pet-vacabulary-list-2024.json",length:1871,language:"en",languageCategory:"en"},{id:"gmat",name:"GMAT",description:"GMAT è¯åº",category:"å½é
èè¯",tags:["GMAT"],url:"/dicts/GMAT_3_T.json",length:3047,language:"en",languageCategory:"en"},{id:"gre",name:"GRE",description:"GRE è¯åº",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/GRE_3_T.json",length:6515,language:"en",languageCategory:"en"},{id:"gre1500",name:"GREéç¹1500è¯-fenå¥",description:"GRE & TEM8 éå é«é¢è¯æ±",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/GRE_1500.json",length:1533,language:"en",languageCategory:"en"},{id:"gre3000",name:"GRE3000",description:"GRE3000 è¯åº",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/GRE3000_3_T.json",length:3041,language:"en",languageCategory:"en"},{id:"GRE-computer-based-test",name:"GREæºç»è¯æ±",description:"GREæºç»è¯æ±",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/GRE-computer-based-test.json",length:1451,language:"en",languageCategory:"en"},{id:"ZaiYaoNiMing_GRE3000",name:"åè¦ä½ å½GRE3000",description:"åè¦ä½ å½GRE3000è¯åº-æè¯æ§æ°ç",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/ZaiYaoNiMing_GRE3000.json",length:3041,language:"en",languageCategory:"en"},{id:"GRE_equivalent",name:"GREçä»·è¯",description:"GREçä»·è¯",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/GRE_equivalent.json",length:827,language:"en",languageCategory:"en"},{id:"GRE_ciyileiji",name:"GREè¯ä»¥ç±»è®°",description:"GREè¯ä»¥ç±»è®°",category:"å½é
èè¯",tags:["GRE"],url:"/dicts/gre-ciyileiji.json",length:8785,language:"en",languageCategory:"en"},{id:"biomedical-terms",name:"çç©å»å¦ä¸ä¸è±è¯è¯æ±",description:"çç©å»å¦ä¸ä¸è±è¯è¯æ±",category:"ä¸ä¸è¯æ±",tags:["çç©"],url:"/dicts/BIOmedical.json",length:560,language:"en",languageCategory:"en"},{id:"IELTS_tinglichangjing",name:"é
æå¬ååºæ¯è¯æ±",description:"é
æå¬ååºæ¯è¯æ±",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_tinglichangjing.json",length:1204,language:"en",languageCategory:"en"},{id:"ielts_disorder",name:"IELTSä¹±åºå®æ´ç",description:"IELTSä¹±åºå®æ´ç",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_disorder.json",length:9389,language:"en",languageCategory:"en"},{id:"ielts_order",name:"IELTS顺åºå®æ´ç",description:"IELTS顺åºå®æ´ç",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_order.json",length:9389,language:"en",languageCategory:"en"},{id:"ielts",name:"IELTS",description:"é
æè¯åº",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_3_T.json",length:3575,language:"en",languageCategory:"en"},{id:"heqiong",name:"heQiongé
æå¬åå¿
èè¯æ±",description:"ç»¼åæµè¯",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/HeQiong_IELTS.json",length:2529,language:"en",languageCategory:"en"},{id:"ieltsWang3",name:"é
æwang C3",description:"é
æå¬åç¹å«åè¯è¯æåº",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_WANG_3.json",length:1135,language:"en",languageCategory:"en"},{id:"ieltsWang4",name:"é
æwang C4",description:"é
æå¬å形容è¯å¯è¯è¯æåº",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_WANG_4.json",length:346,language:"en",languageCategory:"en"},{id:"ieltsWang5",name:"é
æwang C5",description:"åé³è¿è¯»æ··åè®ç»è¯æåº",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_WANG_5.json",length:1569,language:"en",languageCategory:"en"},{id:"ieltsWang11",name:"é
æwang C11",description:"ç»¼åæµè¯",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_WANG_11.json",length:1738,language:"en",languageCategory:"en"},{id:"DuckCircle_IELTS",name:"é¸åé
ææ ¸å¿è¯",description:"é¸åé
ææ ¸å¿è¯",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/DuckCircle_IELTS.json",length:2644,language:"en",languageCategory:"en"},{id:"IELTSVocabularyBible",name:"é
æè¯æ±çç»",description:"é
æè¯æ±çç»",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTSVocabularyBible.json",length:3673,language:"en",languageCategory:"en"},{id:"IELTS-807",name:"é
æ wanglu 807",description:"é
æ wanglu 807",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-807.json",length:4340,language:"en",languageCategory:"en"},{id:"ielts-real-high",name:"é
æ real è¯æ± é«é¢",description:"é
æ real è¯æ±ï¼é«é¢è¯æ±ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-high.json",length:524,language:"en",languageCategory:"en"},{id:"ielts-real-5",name:"é
æ real è¯æ± 5",description:"é
æ real è¯æ± ï¼5é¢è¯æ±ååé¢ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-5.json",length:183,language:"en",languageCategory:"en"},{id:"ielts-real-4",name:"é
æ real è¯æ± 4",description:"é
æ real è¯æ± ï¼4é¢è¯æ±ååé¢ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-4.json",length:201,language:"en",languageCategory:"en"},{id:"ielts-real-3",name:"é
æ real è¯æ± 3",description:"é
æ real è¯æ± ï¼3é¢è¯æ±ååé¢ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-3.json",length:256,language:"en",languageCategory:"en"},{id:"ielts-real-2",name:"é
æ real è¯æ± 2",description:"é
æ real è¯æ± ï¼2é¢è¯æ±ååé¢ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-2.json",length:402,language:"en",languageCategory:"en"},{id:"ielts-real-1",name:"é
æ real è¯æ± 1",description:"é
æ real è¯æ± ï¼1é¢è¯æ±ååé¢ï¼",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/ielts-real-1.json",length:737,language:"en",languageCategory:"en"},{id:"IELTS9988wangyong",name:"é
æ9988wangyong",description:"é
æ9988wangyong",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS9988wangyong.json",length:3698,language:"en",languageCategory:"en"},{id:"IELTSKingLu807",name:"wanglu807é
æè¯æ±å¬å第2ç",description:"wanglu807é
æè¯æ±å¬å第2ç",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTSKingLu807.json",length:1916,language:"en",languageCategory:"en"},{id:"IELTSXDF7000",name:"100个å¥åè®°å®7000个é
æåè¯",description:"xdf 100个å¥åè®°å®7000个é
æåè¯ è¯æ±è¡¨",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS_XDF_7000.json",length:5567,language:"en",languageCategory:"en"},{id:"IELTS-oral-900",name:"é
æå£è¯ 900 betaç",description:"é
æå£è¯ 900 å¥, éå¨è®¾ç½®ä¸è°å°è±è¯åä½",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-oral-900.json",length:900,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task1",name:"xdfå¬å é
æä¸çº§ç´é车 day1",description:"xdfå¬å é
æä¸çº§ç´é车 day1",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task1.json",length:44,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task2",name:"xdfå¬å é
æä¸çº§ç´é车 day2",description:"xdfå¬å é
æä¸çº§ç´é车 day2",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task2.json",length:33,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task3",name:"xdfå¬å é
æä¸çº§ç´é车 day3",description:"xdfå¬å é
æä¸çº§ç´é车 day3",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task3.json",length:33,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task4",name:"xdfå¬å é
æä¸çº§ç´é车 day4",description:"xdfå¬å é
æä¸çº§ç´é车 day4",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task4.json",length:33,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task5",name:"xdfå¬å é
æä¸çº§ç´é车 day5",description:"xdfå¬å é
æä¸çº§ç´é车 day5",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task5.json",length:38,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task6",name:"xdfå¬å é
æä¸çº§ç´é车 day6",description:"xdfå¬å é
æä¸çº§ç´é车 day6",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task6.json",length:33,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task7",name:"xdfå¬å é
æä¸çº§ç´é车 day7",description:"xdfå¬å é
æä¸çº§ç´é车 day7",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task7.json",length:39,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task8",name:"xdfå¬å é
æä¸çº§ç´é车 day8",description:"xdfå¬å é
æä¸çº§ç´é车 day8",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task8.json",length:32,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task9",name:"xdfå¬å é
æä¸çº§ç´é车 day9",description:"xdfå¬å é
æä¸çº§ç´é车 day9",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task9.json",length:46,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task10",name:"xdfå¬å é
æä¸çº§ç´é车 day10",description:"xdfå¬å é
æä¸çº§ç´é车 day10",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task10.json",length:44,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task11",name:"xdfå¬å é
æä¸çº§ç´é车 day11",description:"xdfå¬å é
æä¸çº§ç´é车 day11",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task11.json",length:36,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task12",name:"xdfå¬å é
æä¸çº§ç´é车 day12",description:"xdfå¬å é
æä¸çº§ç´é车 day12",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task12.json",length:45,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task13",name:"xdfå¬å é
æä¸çº§ç´é车 day13",description:"xdfå¬å é
æä¸çº§ç´é车 day13",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task13.json",length:49,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task14",name:"xdfå¬å é
æä¸çº§ç´é车 day14",description:"xdfå¬å é
æä¸çº§ç´é车 day14",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task14.json",length:46,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task15",name:"xdfå¬å é
æä¸çº§ç´é车 day15",description:"xdfå¬å é
æä¸çº§ç´é车 day15",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task15.json",length:29,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task16",name:"xdfå¬å é
æä¸çº§ç´é车 day16",description:"xdfå¬å é
æä¸çº§ç´é车 day16",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task16.json",length:42,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task17",name:"xdfå¬å é
æä¸çº§ç´é车 day17",description:"xdfå¬å é
æä¸çº§ç´é车 day17",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task17.json",length:22,language:"en",languageCategory:"en"}
516,{id:"IELTS-listening-NeworientalDirect-Task18",name:"xdfå¬å é
æä¸çº§ç´é车 day18",description:"xdfå¬å é
æä¸çº§ç´é车 day18",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task18.json",length:37,language:"en",languageCategory:"en"},{id:"IELTS-listening-NeworientalDirect-Task19",name:"xdfå¬å é
æä¸çº§ç´é车 day19",description:"xdfå¬å é
æä¸çº§ç´é车 day19",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-NewOrientalDirect-Task19.json",length:26,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-1",name:"é
æå¬åè¯æ±18天 day1",description:"é
æå¬åè¯æ±18天 day1",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day1.json",length:74,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-2",name:"é
æå¬åè¯æ±18天 day2",description:"é
æå¬åè¯æ±18天 day2",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day2.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-3",name:"é
æå¬åè¯æ±18天 day3",description:"é
æå¬åè¯æ±18天 day3",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day3.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-4",name:"é
æå¬åè¯æ±18天 day4",description:"é
æå¬åè¯æ±18天 day4",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day4.json",length:73,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-5",name:"é
æå¬åè¯æ±18天 day5",description:"é
æå¬åè¯æ±18天 day5",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day5.json",length:76,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-6",name:"é
æå¬åè¯æ±18天 day6",description:"é
æå¬åè¯æ±18天 day6",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day6.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-7",name:"é
æå¬åè¯æ±18天 day7",description:"é
æå¬åè¯æ±18天 day7",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day7.json",length:75,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-8",name:"é
æå¬åè¯æ±18天 day8",description:"é
æå¬åè¯æ±18天 day8",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day8.json",length:76,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-9",name:"é
æå¬åè¯æ±18天 day9",description:"é
æå¬åè¯æ±18天 day9",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day9.json",length:76,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-10",name:"é
æå¬åè¯æ±18天 day10",description:"é
æå¬åè¯æ±18天 day10",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day10.json",length:33,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-11",name:"é
æå¬åè¯æ±18天 day11",description:"é
æå¬åè¯æ±18天 day11",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day11.json",length:52,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-12",name:"é
æå¬åè¯æ±18天 day12",description:"é
æå¬åè¯æ±18天 day12",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day12.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-13",name:"é
æå¬åè¯æ±18天 day13",description:"é
æå¬åè¯æ±18天 day13",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day13.json",length:78,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-14",name:"é
æå¬åè¯æ±18天 day14",description:"é
æå¬åè¯æ±18天 day14",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day14.json",length:76,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-15",name:"é
æå¬åè¯æ±18天 day15",description:"é
æå¬åè¯æ±18天 day15",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day15.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-16",name:"é
æå¬åè¯æ±18天 day16",description:"é
æå¬åè¯æ±18天 day16",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day16.json",length:77,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-17",name:"é
æå¬åè¯æ±18天 day17",description:"é
æå¬åè¯æ±18天 day17",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day17.json",length:46,language:"en",languageCategory:"en"},{id:"IELTS-listening-18-days-18",name:"é
æå¬åè¯æ±18天 day18",description:"é
æå¬åè¯æ±18天 day18",category:"å½é
èè¯",tags:["IELTS"],url:"/dicts/IELTS-listening-18days-day18.json",length:76,language:"en",languageCategory:"en"},{id:"ket",name:"KET",description:"KET 2021åè¯",category:"å½é
èè¯",tags:["KET"],url:"./dicts/ket2021.json",length:1147,language:"en",languageCategory:"en"},{id:"sat",name:"SAT",description:"ç¾å½ SAT èè¯è¯åº",category:"å½é
èè¯",tags:["SAT"],url:"/dicts/SAT_3_T.json",length:4464,language:"en",languageCategory:"en"},{id:"SATen",name:"SAT en-en",description:"SATè±è±",category:"å½é
èè¯",tags:["SAT"],url:"/dicts/SATen.json",length:2681,language:"en",languageCategory:"en"},{id:"toefl",name:"TOEFL",description:"æç¦èè¯å¸¸è§è¯",category:"å½é
èè¯",tags:["TOEFL"],url:"/dicts/TOEFL_3_T.json",length:4264,language:"en",languageCategory:"en"},{id:"bec2",name:"åå¡è±è¯",description:"åå¡è±è¯å¸¸è§è¯",category:"å½é
èè¯",tags:["BEC"],url:"/dicts/BEC_2_T.json",length:2753,language:"en",languageCategory:"en"},{id:"bec3",name:"BEC",description:"BECèè¯å¸¸è§è¯",category:"å½é
èè¯",tags:["BEC"],url:"/dicts/BEC_3_T.json",length:2825,language:"en",languageCategory:"en"},{id:"PTE_junior",name:"PTE åºç¡è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_junior.json",length:2651,language:"en",languageCategory:"en"},{id:"PTE_senior",name:"PTE é«é¶è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_senior.json",length:3170,language:"en",languageCategory:"en"},{id:"PTE_FIB_R_junior",name:"é
读 FIB åºç¡æºç»è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_FIB_R_junior.json",length:941,language:"en",languageCategory:"en"},{id:"PTE_FIB_R_senior",name:"é
读 FIB é«é¶æºç»è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_FIB_R_senior.json",length:1272,language:"en",languageCategory:"en"},{id:"PTE_WFD",name:"WFD æºç»è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_WFD.json",length:1212,language:"en",languageCategory:"en"},{id:"PTE_FIB_L",name:"å¬å FIB æºç»è¯æ±",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_FIB_L.json",length:646,language:"en",languageCategory:"en"}
516,{id:"PTE_Basic_apeuni",name:"PTE åºç¡è¯æ± xingji",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_Basic_apeuni.json",length:2652,language:"en",languageCategory:"en"},{id:"PTE_Advanced_apeuni.json",name:"PTE é«é¶è¯æ± xingji",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_Advanced_apeuni.json",length:3169,language:"en",languageCategory:"en"},{id:"PTE_Read_apeuni.json",name:"PTE é
读FIBæºç»è¯æ± xingji",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_Read_apeuni.json",length:630,language:"en",languageCategory:"en"},{id:"PTE_Listening_apeuni.json",name:"PTE å¬åFIBæºç»è¯æ± xingji",description:"",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/PTE_Listening_apeuni.json",length:674,language:"en",languageCategory:"en"},{id:"TOEIC",name:"TOEIC è¯æ±",description:"",category:"å½é
èè¯",tags:["TOEIC"],url:"/dicts/TOEIC.json",length:1694,language:"en",languageCategory:"en"},{id:"Duolingo_Vocabulary_B1",name:"å¤é»å½åçº§è¯æ±B1",description:"å¤é»å½åçº§è¯æ±B1",category:"å½é
èè¯",tags:["CEFR"],url:"/dicts/Duolingo_Vocabulary_B1.json",length:801,language:"en",languageCategory:"en"},{id:"Duolingo_Vocabulary_B2",name:"å¤é»å½åçº§è¯æ±B2",description:"å¤é»å½åçº§è¯æ±B2",category:"å½é
èè¯",tags:["CEFR"],url:"/dicts/Duolingo_Vocabulary_B2.json",length:1423,language:"en",languageCategory:"en"},{id:"Duolingo_Vocabulary_C1",name:"å¤é»å½åçº§è¯æ±C1",description:"å¤é»å½åçº§è¯æ±C1",category:"å½é
èè¯",tags:["CEFR"],url:"/dicts/Duolingo_Vocabulary_C1.json",length:1314,language:"en",languageCategory:"en"},{id:"Oxford3000",name:"çæ´¥3000è¯",description:"çæ´¥3000è¯",category:"å½é
èè¯",tags:["çæ´¥ç"],url:"/dicts/Oxford3000.json",length:1342,language:"en",languageCategory:"en"},{id:"Oxford5000",name:"çæ´¥5000è¯",description:"çæ´¥5000è¯",category:"å½é
èè¯",tags:["çæ´¥ç"],url:"/dicts/Oxford5000.json",length:5836,language:"en",languageCategory:"en"},{id:"voa",name:"VOA åºç¡è¯åº",description:"VOA åºç¡è¯åº",category:"å½é
èè¯",tags:["å
¶ä»"],url:"/dicts/voa.json",length:1505,language:"en",languageCategory:"en"},{id:"Common-Phrases-PTE-Unofficial",name:"PTE 常ç¨çè¯ (é宿¹)",description:"PTE 常ç¨çè¯",category:"å½é
èè¯",tags:["PTE"],url:"/dicts/Common-Phrases-PTE-Unofficial.json",length:274,language:"en",languageCategory:"en"},{id:"Common-Phrases-FCE-Unofficial",name:"FCE 常ç¨çè¯ (é宿¹)",description:"FCE 常ç¨çè¯",category:"å½é
èè¯",tags:["FCE"],url:"/dicts/Common-Phrases-FCE-Unofficial.json",length:438,language:"en",languageCategory:"en"},{id:"Categorized_TOEFL_Vocabulary_by_Zhanghongyan",name:"Categorized Vocab.",description:"è¯ä»¥ç±»è®° TOEFL 2021 by ZhangHongYan (å书éä¹åå©è®°; åè¯åºå·)",category:"å½é
èè¯",tags:["TOEFL"],url:"/dicts/Categorized_TOEFL_Vocabulary_by_Zhanghongyan.json",length:4123,language:"en",languageCategory:"en"}],rbe=[{id:"gaokao3500",name:"é«è 3500 è¯",description:"é«è常è§è¯ 3500",category:"éå°å¹´è±è¯",tags:["éç¨"],url:"/dicts/GaoKao_3500.json",length:3893,language:"en",languageCategory:"en"},{id:"gaokaozhentihexin",name:"é«èåå¹´ç颿 ¸å¿é«é¢",description:"é«èåå¹´ç颿 ¸å¿é«é¢",category:"éå°å¹´è±è¯",tags:["éç¨"],url:"/dicts/GaoKaoZhenTiHeXinGaoPin.json",length:799,language:"en",languageCategory:"en"},{id:"gaokao-yuedu-gaopin",name:"é«èè±è¯é
读é«é¢è¯æ±",description:"é«èè±è¯é
读é«é¢è¯æ±",category:"éå°å¹´è±è¯",tags:["éç¨"],url:"/dicts/gaokao-yuedu-gaopin.json",length:688,language:"en",languageCategory:"en"},{id:"zhongkaohexin",name:"ä¸èæ ¸å¿è¯",description:"ä¸èæ ¸å¿è¯",category:"éå°å¹´è±è¯",tags:["éç¨"],url:"/dicts/ZhongKaoHeXin.json",length:2140,language:"en",languageCategory:"en"},{id:"nce1",name:"æ°æ¦å¿µè±è¯-1",description:"æ°æ¦å¿µè±è¯ç¬¬ä¸å",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/NCE_1.json",length:900,language:"en",languageCategory:"en"},{id:"nce2",name:"æ°æ¦å¿µè±è¯-2",description:"æ°æ¦å¿µè±è¯ç¬¬äºå",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/NCE_2.json",length:858,language:"en",languageCategory:"en"},{id:"nce3",name:"æ°æ¦å¿µè±è¯-3",description:"æ°æ¦å¿µè±è¯ç¬¬ä¸å",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/NCE_3.
516json",length:1052,language:"en",languageCategory:"en"},{id:"nce4",name:"æ°æ¦å¿µè±è¯-4",description:"æ°æ¦å¿µè±è¯ç¬¬åå",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/NCE_4.json",length:784,language:"en",languageCategory:"en"},{id:"nce-new-1",name:"æ°æ¦å¿µè±è¯(æ°ç)-1",description:"æ°æ¦å¿µè±è¯æ°ç第ä¸å",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/nce-new-1.json",length:908,language:"en",languageCategory:"en"},{id:"nce-new-2",name:"æ°æ¦å¿µè±è¯(æ°ç)-2",description:"æ°æ¦å¿µè±è¯æ°ç第äºå",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/nce-new-2.json",length:862,language:"en",languageCategory:"en"},{id:"nce-new-3",name:"æ°æ¦å¿µè±è¯(æ°ç)-3",description:"æ°æ¦å¿µè±è¯æ°ç第ä¸å",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/nce-new-3.json",length:1062,language:"en",languageCategory:"en"},{id:"nce-new-4",name:"æ°æ¦å¿µè±è¯(æ°ç)-4",description:"æ°æ¦å¿µè±è¯æ°ç第åå",category:"éå°å¹´è±è¯",tags:["æ°æ¦å¿µè±è¯"],url:"/dicts/nce-new-4.json",length:793,language:"en",languageCategory:"en"},{id:"SHjuniormiddleOxford",name:"䏿µ·åä¸çæ´¥è¯æ±",description:"䏿µ·åä¸çæ´¥è¯æ±",category:"éå°å¹´è±è¯",tags:["çæ´¥ç"],url:"/dicts/OxfordVocabulary_juniorMiddleSH.json",length:1270,language:"en",languageCategory:"en"},{id:"san1",name:"ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue3_1_T.json",length:64,language:"en",languageCategory:"en"},{id:"san2",name:"ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue3_2_T.json",length:72,language:"en",languageCategory:"en"},{id:"si1",name:"å年级ä¸",description:"人æçå年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue4_1_T.json",length:84,language:"en",languageCategory:"en"},{id:"si2",name:"å年级ä¸",description:"人æçå年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue4_2_T.json",length:104,language:"en",languageCategory:"en"},{id:"wu1",name:"äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue5_1_T.json",length:131,language:"en",languageCategory:"en"},{id:"wu2",name:"äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue5_2_T.json",length:156,language:"en",languageCategory:"en"},{id:"liu1",name:"å
年级ä¸",description:"人æçå
年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue6_1_T.json",length:130,language:"en",languageCategory:"en"},{id:"liu2",name:"å
年级ä¸",description:"人æçå
年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPXiaoXue6_2_T.json",length:108,language:"en",languageCategory:"en"},{id:"pep-sl-yi1",name:"人æç(æ°èµ·ç¹)ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue1_1_t.json",length:52,language:"en",languageCategory:"en"},{id:"pep-sl-yi2",name:"人æç(æ°èµ·ç¹)ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue1_2_t.json",length:45,language:"en",languageCategory:"en"},{id:"pep-sl-er1",name:"人æç(æ°èµ·ç¹)äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue2_1_t.json",length:54,language:"en",languageCategory:"en"},{id:"pep-sl-er2",name:"人æç(æ°èµ·ç¹)äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue2_2_t.json",length:55,language:"en",languageCategory:"en"},{id:"pep-sl-san1",name:"人æç(æ°èµ·ç¹)ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue3_1_t.json",length:103,language:"en",languageCategory:"en"},{id:"pep-sl-san2",name:"人æç(æ°èµ·ç¹)ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue3_2_t.json",length:84,language:"en",languageCategory:"en"}
516,{id:"pep-sl-si1",name:"人æç(æ°èµ·ç¹)å年级ä¸",description:"人æçå年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue4_1_t.json",length:116,language:"en",languageCategory:"en"},{id:"pep-sl-si2",name:"人æç(æ°èµ·ç¹)å年级ä¸",description:"人æçå年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue4_2_t.json",length:87,language:"en",languageCategory:"en"},{id:"pep-sl-wu1",name:"人æç(æ°èµ·ç¹)äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue5_1_t.json",length:66,language:"en",languageCategory:"en"},{id:"pep-sl-wu2",name:"人æç(æ°èµ·ç¹)äºå¹´çº§ä¸",description:"人æçäºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue5_2_t.json",length:96,language:"en",languageCategory:"en"},{id:"pep-sl-liu1",name:"人æç(æ°èµ·ç¹)å
年级ä¸",description:"人æçå
年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue6_1_t.json",length:102,language:"en",languageCategory:"en"},{id:"pep-sl-liu2",name:"人æç(æ°èµ·ç¹)å
年级ä¸",description:"人æçå
年级ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEP_SL_XiaoXue6_2_t.json",length:41,language:"en",languageCategory:"en"},{id:"qi1",name:"ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPChuZhong7_1_T.json",length:392,language:"en",languageCategory:"en"},{id:"qi2",name:"ä¸å¹´çº§ä¸",description:"人æçä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPChuZhong7_2_T.json",length:492,language:"en",languageCategory:"en"},{id:"ba1",name:"å
«å¹´çº§ä¸",description:"人æçå
«å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPChuZhong8_1_T.json",length:419,language:"en",languageCategory:"en"},{id:"ba2",name:"å
«å¹´çº§ä¸",description:"人æçå
«å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPChuZhong8_2_T.json",length:466,language:"en",languageCategory:"en"},{id:"jiu",name:"ä¹å¹´çº§",description:"人æçä¹å¹´çº§å
¨å",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPChuZhong9_1_T.json",length:551,language:"en",languageCategory:"en"},{id:"renjiaogaozhong1",name:"é«ä¸å¿
ä¿®1",description:"人æçé«ä¸å¿
ä¿®1",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_1_T.json",length:311,language:"en",languageCategory:"en"},{id:"renjiaogaozhong2",name:"é«ä¸å¿
ä¿®2",description:"人æçé«ä¸å¿
ä¿®2",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_2_T.json",length:319,language:"en",languageCategory:"en"},{id:"renjiaogaozhong3",name:"é«ä¸å¿
ä¿®3",description:"人æçé«ä¸å¿
ä¿®3",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_3_T.json",length:366,language:"en",languageCategory:"en"},{id:"renjiaogaozhong4",name:"é«ä¸å¿
ä¿®4",description:"人æçé«ä¸å¿
ä¿®4",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_4_T.json",length:307,language:"en",languageCategory:"en"},{id:"renjiaogaozhong5",name:"é«ä¸å¿
ä¿®5",description:"人æçé«ä¸å¿
ä¿®5",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_5_T.json",length:357,language:"en",languageCategory:"en"},{id:"renjiaogaozhong6",name:"é«ä¸éä¿®6",description:"人æçé«ä¸éä¿®6",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_6_T.json",length:391,language:"en",languageCategory:"en"},{id:"renjiaogaozhong7",name:"é«ä¸éä¿®7",description:"人æçé«ä¸éä¿®7",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_7_T.json",length:384,language:"en",languageCategory:"en"},{id:"renjiaogaozhong8",name:"é«ä¸éä¿®8",description:"人æçé«ä¸éä¿®8",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_8_T.json",length:420,language:"en",languageCategory:"en"},{id:"renjiaogaozhong9",name:"é«ä¸éä¿®9",description:"人æçé«ä¸éä¿®9",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_9_T.json",length:352,language:"en",languageCategory:"en"},{id:"renjiaogaozhong10",name:"é«ä¸éä¿®10",description:"人æçé«ä¸éä¿®10",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_10_T.json",length:361,language:"en",languageCategory:"en"},{id:"renjiaogaozhong11",name:"é«ä¸éä¿®11",description:"人æçé«ä¸éä¿®11",category:"éå°å¹´è±è¯",tags:["人æç"],url:"/dicts/PEPGaoZhong_11_T.json",length:309,language:"en",languageCategory:"en"},{id:"waiyan1",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç çä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_1_T.json",length:629,language:"en",languageCategory:"en"},{id:"new-waiyan1",name:"æ°å¤ç ä¸å¹´çº§ä¸å",description:"æ°å¤ç çä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/Newwaiyan7-1.json",length:294,language:"en",languageCategory:"en"}
516,{id:"new-waiyan2",name:"æ°å¤ç ä¸å¹´çº§ä¸å",description:"æ°å¤ç çä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/Newwaiyan7-2.json",length:306,language:"en",languageCategory:"en"},{id:"waiyan2",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç çä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_2_T.json",length:438,language:"en",languageCategory:"en"},{id:"waiyan3",name:"å¤ç å
«å¹´çº§ä¸å",description:"å¤ç çå
«å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_3_T.json",length:320,language:"en",languageCategory:"en"},{id:"waiyan4",name:"å¤ç å
«å¹´çº§ä¸å",description:"å¤ç çå
«å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_4_T.json",length:266,language:"en",languageCategory:"en"},{id:"waiyan5",name:"å¤ç ä¹å¹´çº§ä¸å",description:"å¤ç çä¹å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_5_T.json",length:381,language:"en",languageCategory:"en"}
516,{id:"waiyan6",name:"å¤ç ä¹å¹´çº§ä¸å",description:"å¤ç çä¹å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_6_T.json",length:128,language:"en",languageCategory:"en"},{id:"waiyan7",name:"å¤ç é«ä¸å¿
ä¿®1",description:"å¤ç é«ä¸å¿
ä¿®1",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheGaoZhong_1_T.json",length:411,language:"en",languageCategory:"en"},{id:"waiyan8",name:"å¤ç é«ä¸å¿
ä¿®2",description:"å¤ç é«ä¸å¿
ä¿®2",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheGaoZhong_2_T.json",length:272,language:"en",languageCategory:"en"},{id:"waiyan9",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_1-Volume-up.json",length:138,language:"en",languageCategory:"en"},{id:"waiyan10",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_1-Volume-down.json",length:118,language:"en",languageCategory:"en"},{id:"waiyan11",name:"å¤ç äºå¹´çº§ä¸å",description:"å¤ç äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_2-Volume-top.json",length:118,language:"en",languageCategory:"en"}
516,{id:"waiyan12",name:"å¤ç äºå¹´çº§ä¸å",description:"å¤ç äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_2-Volume-down.json",length:110,language:"en",languageCategory:"en"},{id:"waiyan13",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_3-Volume-top.json",length:82,language:"en",languageCategory:"en"},{id:"waiyan14",name:"å¤ç ä¸å¹´çº§ä¸å",description:"å¤ç ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_3-Volume-down.json",length:106,language:"en",languageCategory:"en"},{id:"waiyan15",name:"å¤ç å年级ä¸å",description:"å¤ç å年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_4-Volume-top.json",length:116,language:"en",languageCategory:"en"},{id:"waiyan16",name:"å¤ç å年级ä¸å",description:"å¤ç å年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_4-Volume-down.json",length:78,language:"en",languageCategory:"en"},{id:"waiyan17",name:"å¤ç äºå¹´çº§ä¸å",description:"å¤ç äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_5-Volume-top.json",length:80,language:"en",languageCategory:"en"}
516,{id:"waiyan18",name:"å¤ç äºå¹´çº§ä¸å",description:"å¤ç äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_5-Volume-down.json",length:72,language:"en",languageCategory:"en"},{id:"waiyan19",name:"å¤ç å
年级ä¸å",description:"å¤ç å
年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_6-Volume-top.json",length:61,language:"en",languageCategory:"en"},{id:"waiyan20",name:"å¤ç å
年级ä¸å",description:"å¤ç å
年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/WaiYanSheChuZhong_6-Volume-down.json",length:91,language:"en",languageCategory:"en"},{id:"waiyan3-1",name:"å¤ç æ°èµ·ç¹ä¸å¹´çº§ä¸å",description:"å¤ç æ°èµ·ç¹ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-3-1.json",length:134,language:"en",languageCategory:"en"},{id:"waiyan3-2",name:"å¤ç æ°èµ·ç¹ä¸å¹´çº§ä¸å",description:"å¤ç æ°èµ·ç¹ä¸å¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-3-2.json",length:156,language:"en",languageCategory:"en"},{id:"waiyan4-1",name:"å¤ç æ°èµ·ç¹å年级ä¸å",description:"å¤ç æ°èµ·ç¹å年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-4-1.json",length:144,language:"en",languageCategory:"en"}
516,{id:"waiyan4-2",name:"å¤ç æ°èµ·ç¹å年级ä¸å",description:"å¤ç æ°èµ·ç¹å年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-4-2.json",length:134,language:"en",languageCategory:"en"},{id:"waiyan5-1",name:"å¤ç æ°èµ·ç¹äºå¹´çº§ä¸å",description:"å¤ç æ°èµ·ç¹äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-5-1.json",length:152,language:"en",languageCategory:"en"},{id:"waiyan5-2",name:"å¤ç æ°èµ·ç¹äºå¹´çº§ä¸å",description:"å¤ç æ°èµ·ç¹äºå¹´çº§ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-5-2.json",length:147,language:"en",languageCategory:"en"},{id:"waiyan6-1",name:"å¤ç æ°èµ·ç¹å
年级ä¸å",description:"å¤ç æ°èµ·ç¹å
年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-6-1.json",length:83,language:"en",languageCategory:"en"},{id:"waiyan6-2",name:"å¤ç æ°èµ·ç¹å
年级ä¸å",description:"å¤ç æ°èµ·ç¹å
年级ä¸å",category:"éå°å¹´è±è¯",tags:["å¤ç ç"],url:"/dicts/waiyan-xin-6-2.json",length:105,language:"en",languageCategory:"en"},{id:"shanghai-6-2word",name:"䏿µ·æ°ææå
年级ä¸",description:"䏿µ·æ°ææå
年级ä¸",category:"éå°å¹´è±è¯",tags:["䏿µ·ç"],url:"/dicts/shanghai-6-2-word.json",length:274,language:"en",languageCategory:"en"},{id:"Yilin1",name:"é«ä¸å¿
ä¿®1",description:"è¯æçé«ä¸å¿
ä¿®1",category:"éå°å¹´è±è¯",tags:["è¯æç"],url:"./dicts/YiLin_1.json",length:276,language:"en",languageCategory:"en"},{id:"Yilin2",name:"é«ä¸å¿
ä¿®2",description:"è¯æçé«ä¸å¿
ä¿®2",category:"éå°å¹´è±è¯",tags:["è¯æç"],url:"./dicts/YiLin_2.json",length:297,language:"en",languageCategory:"en"},{id:"Yilin3",name:"é«ä¸å¿
ä¿®3",description:"è¯æçé«ä¸å¿
ä¿®3",category:"éå°å¹´è±è¯",tags:["è¯æç"],url:"./dicts/YiLin_3.json",length:295,language:"en",languageCategory:"en"},{id:"beishi1",name:"é«ä¸å¿
ä¿®1",description:"åå¸å¤§çé«ä¸å¿
ä¿®1",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_1_T.json",length:226,language:"en",languageCategory:"en"},{id:"beishi2",name:"é«ä¸å¿
ä¿®2",description:"åå¸å¤§çé«ä¸å¿
ä¿®2",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_2_T.json",length:244,language:"en",languageCategory:"en"},{id:"beishi3",name:"é«ä¸å¿
ä¿®3",description:"åå¸å¤§çé«ä¸å¿
ä¿®3",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_3_T.json",length:295,language:"en",languageCategory:"en"},{id:"beishi4",name:"é«ä¸å¿
ä¿®4",description:"åå¸å¤§çé«ä¸å¿
ä¿®4",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_4_T.json",length:336,language:"en",languageCategory:"en"},{id:"beishi5",name:"é«ä¸å¿
ä¿®5",description:"åå¸å¤§çé«ä¸å¿
ä¿®5",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_5_T.json",length:327,language:"en",languageCategory:"en"},{id:"beishi6",name:"é«ä¸éä¿®6",description:"åå¸å¤§çé«ä¸éä¿®6",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_6_T.json",length:271,language:"en",languageCategory:"en"},{id:"beishi7",name:"é«ä¸éä¿®7",description:"åå¸å¤§çé«ä¸éä¿®7",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_7_T.json",length:334,language:"en",languageCategory:"en"},{id:"beishi8",name:"é«ä¸éä¿®8",description:"åå¸å¤§çé«ä¸éä¿®8",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_8_T.json",length:364,language:"en",languageCategory:"en"},{id:"beishi9",name:"é«ä¸éä¿®9",description:"åå¸å¤§çé«ä¸éä¿®9",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_9_T.json",length:299,language:"en",languageCategory:"en"},{id:"beishi10",name:"é«ä¸éä¿®10",description:"åå¸å¤§çé«ä¸éä¿®10",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_10_T.json",length:267,language:"en",languageCategory:"en"},{id:"beishi11",name:"é«ä¸éä¿®11",description:"åå¸å¤§çé«ä¸éä¿®11",category:"éå°å¹´è±è¯",tags:["åå¸å¤§"],url:"/dicts/BeiShiGaoZhong_11_T.json",length:330,language:"en",languageCategory:"en"},{id:"jijiao1",name:"åæ 3 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹ä¸å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao3-1.json",length:75,language:"en",languageCategory:"en"},{id:"jijiao2",name:"åæ 3 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹ä¸å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao3-2.json",length:76,language:"en",languageCategory:"en"},{id:"jijiao3",name:"åæ 4 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å年级ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao4-1.json",length:78,language:"en",languageCategory:"en"},{id:"jijiao4",name:"åæ 4 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å年级ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao4-2.json",length:84,language:"en",languageCategory:"en"},{id:"jijiao5",name:"åæ 5 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹äºå¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao5-1.json",length:79,language:"en",languageCategory:"en"},{id:"jijiao6",name:"åæ 5 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹äºå¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao5-2.json",length:96,language:"en",languageCategory:"en"},{id:"jijiao7",name:"åæ 6 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å
年级ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao6-1.json",length:66,language:"en",languageCategory:"en"},{id:"jijiao8",name:"åæ 6 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å
年级ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao6-2.json",length:51,language:"en",languageCategory:"en"},{id:"jijiao9",name:"åæ 7 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹ä¸å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao7-1.json",length:561,language:"en",languageCategory:"en"},{id:"jijiao10",name:"åæ 7 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹ä¸å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao7-2.json",length:514,language:"en",languageCategory:"en"},{id:"jijiao11",name:"åæ 8 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å
«å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao8-1.json",length:420,language:"en",languageCategory:"en"},{id:"jijiao12",name:"åæ 8 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹å
«å¹´çº§ä¸",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao8-2.json",length:487,language:"en",languageCategory:"en"},{id:"jijiao13",name:"åæ 9 ä¸",description:"åæçä¸å¹´çº§èµ·ç¹ä¹å¹´çº§å
¨å",category:"éå°å¹´è±è¯",tags:["åæç"],url:"/dicts/jiJiao9.json",length:636,language:"en",languageCategory:"en"},{id:"BJJuniorHigh",name:"å京åä¸",description:"å京åä¸",category:"éå°å¹´è±è¯",tags:["å
¶ä»"],url:"/dicts/beijing_junior_high_school.json",length:1844,language:"en",languageCategory:"en"},{id:"eflevel1",name:"EF-LEVEL-1",description:"EFç级1",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_1.json",length:297,language:"en",languageCategory:"en"},{id:"eflevel2",name:"EF-LEVEL-2",description:"EFç级2",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_2.json",length:353,language:"en",languageCategory:"en"},{id:"eflevel3",name:"EF-LEVEL-3",description:"EFç级3",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_3.json",length:172,language:"en",languageCategory:"en"},{id:"eflevel4",name:"EF-LEVEL-4",description:"EFç级4",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_4.json",length:178,language:"en",languageCategory:"en"},{id:"eflevel5",name:"EF-LEVEL-5",description:"EFç级5",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_5.json",length:172,language:"en",languageCategory:"en"},{id:"eflevel6",name:"EF-LEVEL-6",description:"EFç级6",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_6.json",length:172,language:"en",languageCategory:"en"},{id:"eflevel7",name:"EF-LEVEL-7",description:"EFç级7",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_7.json",length:171,language:"en",languageCategory:"en"},{id:"eflevel8",name:"EF-LEVEL-8",description:"EFç级8",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_8.json",length:172,language:"en",languageCategory:"en"},{id:"eflevel9",name:"EF-LEVEL-9",description:"EFç级9",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_9.json",length:165,language:"en",languageCategory:"en"},{id:"eflevel10",name:"EF-LEVEL-10",description:"EFç级10",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_10.json",length:174,language:"en",languageCategory:"en"},{id:"eflevel11",name:"EF-LEVEL-11",description:"EFç级11",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_11.json",length:176,language:"en",languageCategory:"en"},{id:"eflevel12",name:"EF-LEVEL-12",description:"EFç级12",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_12.json",length:170,language:"en",languageCategory:"en"},{id:"eflevel13",name:"EF-LEVEL-13",description:"EFç级13",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_13.json",length:172,language:"en",languageCategory:"en"},{id:"eflevel14",name:"EF-LEVEL-14",description:"EFç级14",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_14.json",length:171,language:"en",languageCategory:"en"},{id:"eflevel15",name:"EF-LEVEL-15",description:"EFç级15",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_15.json",length:168,language:"en",languageCategory:"en"},{id:"eflevel16",name:"EF-LEVEL-16",description:"EFç级16",category:"éå°å¹´è±è¯",tags:["EF"],url:"/dicts/EF_LEVEL_16.json",length:170,language:"en",languageCategory:"en"},{id:"ReadingExplorer3",name:"Reading Explorer 3",description:"è¯æ±è¡¨æ¥èªReading Explorer 3, Third Edition",category:"éå°å¹´è±è¯",tags:["å
¶ä»"],url:"/dicts/ReadingExplorer3.json",length:239,language:"en",languageCategory:"en"},{id:"Macmillan7000",name:"麦å
米伦7000",description:"麦å
米伦7000",category:"ä¸å½èè¯",tags:["å
¶ä»"],url:"/dicts/Macmillan7000.json",length:6268,language:"en",languageCategory:"en"},{id:"raz-AA",name:"RAZ å级é
读 AA",description:"RAZ å级é
读 AA",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-AA.json",length:422,language:"en",languageCategory:"en"},{id:"raz-A",name:"RAZ å级é
读 A",description:"RAZ å级é
读 A",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-A.json",length:487,language:"en",languageCategory:"en"},{id:"raz-B",name:"RAZ å级é
读 B",description:"RAZ å级é
读 B",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-B.json",length:465,language:"en",languageCategory:"en"},{id:"raz-C",name:"RAZ å级é
读 C",description:"RAZ å级é
读 C",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-C.json",length:480,language:"en",languageCategory:"en"},{id:"raz-D",name:"RAZ å级é
读 D",description:"RAZ å级é
读 D",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-D.json",length:436,language:"en",languageCategory:"en"},{id:"raz-E",name:"RAZ å级é
读 E",description:"RAZ å级é
读 E",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-E.json",length:427,language:"en",languageCategory:"en"},{id:"raz-F",name:"RAZ å级é
读 F",description:"RAZ å级é
读 F",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-F.json",length:437,language:"en",languageCategory:"en"},{id:"raz-G",name:"RAZ å级é
读 G",description:"RAZ å级é
读 G",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-G.json",length:435,language:"en",languageCategory:"en"},{id:"raz-H",name:"RAZ å级é
读 H",description:"RAZ å级é
读 H",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-H.json",length:385,language:"en",languageCategory:"en"},{id:"raz-I",name:"RAZ å级é
读 I",description:"RAZ å级é
读 I",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-I.json",length:408,language:"en",languageCategory:"en"},{id:"raz-J",name:"RAZ å级é
读 J",description:"RAZ å级é
读 J",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-J.json",length:434,language:"en",languageCategory:"en"},{id:"raz-K",name:"RAZ å级é
读 K",description:"RAZ å级é
读 K",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-K.json",length:397,language:"en",languageCategory:"en"},{id:"raz-L",name:"RAZ å级é
读 L",description:"RAZ å级é
读 L",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-L.json",length:402,language:"en",languageCategory:"en"},{id:"raz-M",name:"RAZ å级é
读 M",description:"RAZ å级é
读 M",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-M.json",length:403,language:"en",languageCategory:"en"},{id:"raz-N",name:"RAZ å级é
读 N",description:"RAZ å级é
读 N",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-N.json",length:376,language:"en",languageCategory:"en"},{id:"raz-O",name:"RAZ å级é
读 O",description:"RAZ å级é
读 O",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-O.json",length:429,language:"en",languageCategory:"en"},{id:"raz-P",name:"RAZ å级é
读 P",description:"RAZ å级é
读 P",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-P.
516json",length:379,language:"en",languageCategory:"en"},{id:"raz-Q",name:"RAZ å级é
读 Q",description:"RAZ å级é
读 Q",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-Q.json",length:442,language:"en",languageCategory:"en"},{id:"raz-R",name:"RAZ å级é
读 R",description:"RAZ å级é
读 R",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-R.json",length:422,language:"en",languageCategory:"en"},{id:"raz-S",name:"RAZ å级é
读 S",description:"RAZ å级é
读 S",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-S.json",length:434,language:"en",languageCategory:"en"},{id:"raz-T",name:"RAZ å级é
读 T",description:"RAZ å级é
读 T",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-T.json",length:427,language:"en",languageCategory:"en"},{id:"raz-U",name:"RAZ å级é
读 U",description:"RAZ å级é
读 U",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-U.json",length:418,language:"en",languageCategory:"en"},{id:"raz-V",name:"RAZ å级é
读 V",description:"RAZ å级é
读 V",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-V.json",length:409,language:"en",languageCategory:"en"},{id:"raz-W",name:"RAZ å级é
读 W",description:"RAZ å级é
读 W",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-W.json",length:392,language:"en",languageCategory:"en"},{id:"raz-X",name:"RAZ å级é
读 X",description:"RAZ å级é
读 X",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-X.json",length:546,language:"en",languageCategory:"en"},{id:"raz-Y",name:"RAZ å级é
读 Y",description:"RAZ å级é
读 Y",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-Y.json",length:461,language:"en",languageCategory:"en"},{id:"raz-Z",name:"RAZ å级é
读 Z",description:"RAZ å级é
读 Z",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-Z.json",length:414,language:"en",languageCategory:"en"},{id:"raz-Z1",name:"RAZ å级é
读 Z1",description:"RAZ å级é
读 Z1",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-Z1.json",length:467,language:"en",languageCategory:"en"},{id:"raz-Z2",name:"RAZ å级é
读 Z2",description:"RAZ å级é
读 Z2",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-Z2.json",length:492,language:"en",languageCategory:"en"},{id:"raz-all",name:"RAZ å级é
读 ææè¯æ±",description:"RAZ å级é
读 ææè¯æ±",category:"éå°å¹´è±è¯",tags:["RAZ"],url:"/dicts/raz-all.json",length:5831,language:"en",languageCategory:"en"},{id:"Cambridge_JOIN_IN",name:"åæ¡¥å°å¦è±è¯ JOIN IN",description:"å¤ç 社ååæ¡¥å¤§å¦åºçç¤¾ä¾æ®ãä¹å¡æè²è±è¯è¯¾ç¨æ åãè¦æ±èå为æå½å°å¦çå¼åçä¸å¥è±è¯ææã",category:"éå°å¹´è±è¯",tags:["å
¶ä»"],url:"/dicts/Cambridge_JOIN_IN.json",length:1350,language:"en",languageCategory:"en"}],nbe=[{id:"coder",name:"Coder Dict",description:"ç¨åºå常è§åè¯è¯åº",category:"代ç ç»ä¹ ",tags:["éç¨"],url:"/dicts/it-words.json",length:1700,language:"code",languageCategory:"code"},{id:"childCode",name:"å°å¿ Python",description:"å°å¿ Python 常è§è¯",category:"代ç ç»ä¹ ",tags:["å°å¿ç¼ç¨","Python"],url:"/dicts/Child_python_code.json",length:19,language:"en",languageCategory:"code"},{id:"childCode002",name:"å°å¿ Python Turtle",description:"å°å¿ Python Turtle 常è§è¯",category:"代ç ç»ä¹ ",tags:["å°å¿ç¼ç¨","Python"],url:"/dicts/Child_python_turtle_code.json",length:27,language:"en",languageCategory:"code"},{id:"childCode003",name:"å°å¿ C++",description:"å°å¿ C++ 常è§è¯",category:"代ç ç»ä¹ ",tags:["å°å¿ç¼ç¨","C++"],url:"/dicts/Child_cpp.json",length:39,language:"en",languageCategory:"code"},{id:"oi-xcpc",name:"OI / XCPC ç«èµè¯æ±",description:"OI / XCPC ç«èµè¯æ±",category:"代ç ç»ä¹ ",tags:["C++"],url:"/dicts/OI_XCPC.json",length:195,language:"en",languageCategory:"code"},{id:"childCode004",name:"Arduino",description:"Arduino常è§è¯",category:"代ç ç»ä¹ ",tags:["å°å¿ç¼ç¨","Arduino"],url:"/dicts/arduino_keywords.json",length:78,language:"en",languageCategory:"code"},{id:"jsArray",name:"JS: Array",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-array.json",length:36,language:"code",languageCategory:"code"},{id:"jsDate",name:"JS: Date",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-date.json",length:34,language:"code",languageCategory:"code"},{id:"jsGlobal",name:"JS: Global",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-global.json",length:9,language:"code",languageCategory:"code"},{id:"jsMapSet",name:"JS: Map & Set",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-map-set.json",length:16,language:"code",languageCategory:"code"},{id:"jsMath",name:"JS: Math",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-math.json",length:38,language:"code",languageCategory:"code"},{id:"jsNumber",name:"JS: Number",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-number.json",length:22,language:"code",languageCategory:"code"},{id:"jsObject",name:"JS: Object",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-object.json",length:37,language:"code",languageCategory:"code"},{id:"jsPromise",name:"JS: Promise",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-promise.json",length:9,language:"code",languageCategory:"code"},{id:"jsString",name:"JS: String",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["JavaScript"],url:"/dicts/js-string.json",length:32,language:"code",languageCategory:"code"},{id:"python-builtin",name:"Python: Built-in",description:"Python Built-in API",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-builtin.json",length:65,language:"code",languageCategory:"code"},{id:"python-array",name:"Python: array",description:"Python array API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-array.json",length:11,language:"code",languageCategory:"code"},{id:"python-date",name:"Python: date",description:"Python date API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-date.json",length:39,language:"code",languageCategory:"code"},{id:"python-file",name:"Python: file",description:"Python file API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-file.json",length:21,language:"code",languageCategory:"code"},{id:"python-class",name:"Python: class",description:"Python class API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-class.json",length:13,language:"code",languageCategory:"code"},{id:"python-set",name:"Python: set",description:"Python set API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-set.json",length:29,language:"code",languageCategory:"code"},{id:"python-math",name:"Python: math",description:"Python math API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-math.json",length:37,language:"code",languageCategory:"code"},{id:"python-string",name:"Python: string",description:"Python string API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-string.json",length:40,language:"code",languageCategory:"code"},{id:"python-system",name:"Python: system",description:"Python system API ",category:"代ç ç»ä¹ ",tags:["Python"],url:"/dicts/python-sys.json",length:24,language:"code",languageCategory:"code"},{id:"javeArrayList",name:"Java: ArrayList",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-arraylist.json",length:25,language:"code",languageCategory:"code"},{id:"javaCharacter",name:"Java: Character",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-character.json",length:8,language:"code",languageCategory:"code"},{id:"javaHashmap",name:"Java: Hashmap",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-hashmap.json",length:22,language:"code",languageCategory:"code"},{id:"javaLinkedList",name:"Java: LinkedList",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-linkedlist.json",length:25,language:"code",languageCategory:"code"},{id:"javaString",name:"Java: String",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-string.json",length:48,language:"code",languageCategory:"code"},{id:"javaStringBuffer",name:"Java: StringBuffer",description:"JavaScript API è¯å
¸",category:"代ç ç»ä¹ ",tags:["Java"],url:"/dicts/java-stringBuffer.json",length:20,language:"code",languageCategory:"code"}
516,{id:"linuxCommand",name:"Linux",description:"Linux Command",category:"代ç ç»ä¹ ",tags:["Linux"],url:"/dicts/linux-command.json",length:575,language:"code",languageCategory:"code"},{id:"csharpKeywords",name:"C#å
³é®å",description:"C#å
³é®å以åç¨é",category:"代ç ç»ä¹ ",tags:["C#"],url:"/dicts/csharp-keywords.json",length:78,language:"code",languageCategory:"code"},{id:"csharpString",name:"C#: String API",description:"C# String API",category:"代ç ç»ä¹ ",tags:["C#"],url:"/dicts/csharp-string.json",length:79,language:"code",languageCategory:"code"},{id:"csharpList",name:"C#: List API",description:"C# List API",category:"代ç ç»ä¹ ",tags:["C#"],url:"/dicts/csharp-list.json",length:36,language:"code",languageCategory:"code"},{id:"sql-lower-case",name:"SQL: 常ç¨è¯å¥ lower case",description:"SQL 常ç¨è¯å¥ å°å",category:"代ç ç»ä¹ ",tags:["SQL"],url:"/dicts/SQL_statement_lower-case.json",length:12,language:"code",languageCategory:"code"},{id:"sql-upper-case",name:"SQL: 常ç¨è¯å¥ upper case",description:"SQL 常ç¨è¯å¥ 大å",category:"代ç ç»ä¹ ",tags:["SQL"],url:"/dicts/SQL_statement_upper-case.json",length:12,language:"code",languageCategory:"code"},{id:"ai-machine-learning",name:"人工æºè½: æºå¨å¦ä¹ ",description:"AIæºå¨å¦ä¹ 常ç¨è±è¯è¯æ±",category:"代ç ç»ä¹ ",tags:["AI"],url:"/dicts/ai_machine_learning.json",length:726,language:"code",languageCategory:"code"},{id:"ai-ai-for-science",name:"人工æºè½: AI for Science",description:"AI for Science 常ç¨è±è¯è¯æ±",category:"代ç ç»ä¹ ",tags:["AI"],url:"/dicts/ai_for_science.json",length:491,language:"code",languageCategory:"code"},{id:"go_keyword",name:"golang-keyword",description:"goè¯è¨å
³é®å,",category:"代ç ç»ä¹ ",tags:["golang"],url:"/dicts/go_keyword.json",length:25,language:"code",languageCategory:"code"},{id:"go_builtin",name:"golang-builtin",description:"goè¯è¨å
å»ºå½æ°åç±»å",category:"代ç ç»ä¹ ",tags:["golang"],url:"/dicts/go_builtin.json",length:46,language:"code",languageCategory:"code"},{id:"rustKeyword",name:"Rust: Keyword",description:"Rust å
³é®å",category:"代ç ç»ä¹ ",tags:["Rust"],url:"/dicts/rust-keyword.json",length:35,language:"code",languageCategory:"code"},{id:"rustString",name:"Rust: String",description:"Rust æ ååºå符串类åå¸¸ç¨æ¹æ³",category:"代ç ç»ä¹ ",tags:["Rust"],url:"/dicts/rust-string.json",length:24,language:"code",languageCategory:"code"},{id:"rustVector",name:"Rust: Vector",description:"Rust éåç±»å卿æ°ç»Vectorå¸¸ç¨æ¹æ³",category:"代ç ç»ä¹ ",tags:["Rust"],url:"/dicts/rust-vector.json",length:28,language:"code",languageCategory:"code"},{id:"rustHashMap",name:"Rust: HashMap",description:"Rust éåç±»åHashMapå¸¸ç¨æ¹æ³",category:"代ç ç»ä¹ ",tags:["Rust"],url:"/dicts/rust-hashmap.json",length:23,language:"code",languageCategory:"code"},{id:"SoundSfxKey",name:"AudioKey_UCS-SubCategory",description:"游æé³æå¸¸ç¨åè¯-UCS-SubCategory",category:"代ç ç»ä¹ ",tags:["RAZ"],url:"/dicts/AudioKey_SubCategory.json",length:436,language:"en",languageCategory:"en"},{id:"SoundSfxKey2",name:"AudioKey_UCS-Category",description:"游æé³æå¸¸ç¨åè¯-UCS-Category",category:"代ç ç»ä¹ ",tags:["RAZ"],url:"/dicts/AudioKey_Category.json",length:82,language:"code",languageCategory:"code"}],abe=[{id:"japanese-hiragana",name:"å¹³åå",description:"å¹³ååç»ä¹ ",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡","äºåé³","å¹³åå"],url:"/dicts/JapaneseHiragana.json",length:280,language:"romaji",languageCategory:"ja"},{id:"japanese-katakana",name:"çåå",description:"çååç»ä¹ ",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡","äºåé³","çåå"],url:"/dicts/JapaneseKatakana.json",length:280,language:"romaji",languageCategory:"ja"},{id:"japanese001",name:"æ¥è¯å¸¸è§è¯",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Japanesebasicword.json",length:100,language:"romaji",languageCategory:"ja"},{id:"japanese001-zh",name:"æ¥è¯å¸¸è§è¯",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Japanesebasicword_zh.json",length:100,language:"romaji",languageCategory:"ja"},{id:"japanese002",name:"N5",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N5.json",length:670,language:"romaji",languageCategory:"ja"},{id:"japanese002-zh",name:"N5",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N5_zh.json",length:670,language:"romaji",languageCategory:"ja"},{id:"japanese003",name:"N4",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N4.json",length:635,language:"romaji",languageCategory:"ja"},{id:"japanese003-zh",name:"N4",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N4_zh.json",length:635,language:"romaji",languageCategory:"ja"},{id:"japanese004",name:"N3",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N3.json",length:1830,language:"romaji",languageCategory:"ja"},{id:"japanese004-zh",name:"N3",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N3_zh.json",length:1830,language:"romaji",languageCategory:"ja"},{id:"japanese005",name:"N2",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N2.json",length:1836,language:"romaji",languageCategory:"ja"},{id:"japanese005-zh",name:"N2",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N2_zh.json",length:1836,language:"romaji",languageCategory:"ja"},{id:"japanese006",name:"N1",description:"è±è¯ç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N1.json",length:3477,language:"romaji",languageCategory:"ja"},{id:"japanese006-zh",name:"N1",description:"ä¸æç¿»è¯",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/JapVocabList.N1_zh.json",length:3477,language:"romaji",languageCategory:"ja"}
516,{id:"japanese007",name:"é«é¢åè¯_N1",description:"é«é¢åè¯_æ¥è¯N1",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Jap_High-Frequency_N1.json",length:3e3,language:"romaji",languageCategory:"ja"},{id:"japanese008",name:"é«é¢åè¯_N2",description:"é«é¢åè¯_æ¥è¯N2",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Jap_High-Frequency_N2.json",length:2500,language:"romaji",languageCategory:"ja"},{id:"japanese009",name:"é«é¢åè¯_N3",description:"é«é¢åè¯_æ¥è¯N3",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Jap_High-Frequency_N3.json",length:1999,language:"romaji",languageCategory:"ja"},{id:"japanese0010",name:"é«é¢åè¯_N4N5",description:"é«é¢åè¯_æ¥è¯N4N5",category:"æ¥è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/Jap_High-Frequency_N4N5.json",length:2e3,language:"romaji",languageCategory:"ja"}],ibe=[{id:"german2en",name:"å¾·è¯ è±è¯",description:"å¾·è¯è¯æ±, è±è¯ç¿»è¯",category:"å¾·è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/german2en.json",length:5892,language:"de",languageCategory:"de"},{id:"en2german",name:"è±è¯ å¾·è¯",description:"è±è¯è¯æ±ï¼å¾·è¯ç¿»è¯",category:"å¾·è¯å¦ä¹ ",tags:["åºç¡"],url:"/dicts/en2german.json",length:5025,language:"en",languageCategory:"de"}],obe=[{id:"kazakh_basic_3000_arabic_hapin",name:"åºç¡3000è¯(èæåç)",description:"åè¨å
è¯åºç¡3000è¯(åæ¼èæåç)",category:"åè¨å
è¯",tags:["èæå","åæ¼"],url:"/dicts/kazakh_basic_3000_arabic_hapin.json",length:3002,language:"hapin",languageCategory:"kk"},{id:"kazakh_basic_3000_cyrillic_hapin",name:"åºç¡3000è¯(西éå°åæ¯ç)",description:"åè¨å
è¯åºç¡3000è¯(åæ¼è¥¿éå°åæ¯ç)",category:"åè¨å
è¯",tags:["西éå°åæ¯","åæ¼"],url:"/dicts/kazakh_basic_3000_cyrillic_hapin.json",length:3002,language:"hapin",languageCategory:"kk"}],sbe=[{id:"indonesian_highFrequency_3043",name:"å°å°¼è¯é«é¢è¯æ±",description:"å°å°¼è¯å¸¸ç¨åè¯åä¸æè§£é",category:"å°å°¼è¯",tags:["åºç¡"],url:"/dicts/Indonesian.json",length:3037,language:"id",languageCategory:"id"}],lbe=[{id:"lf_paragraphs",name:"æç段è½åº",description:"è¯æéå¡é«è´¨éä¸ææ®µè½åº",category:"è¯æéå¡",tags:["段è½","䏿"],url:"/api/paragraphs",length:50,language:"zh",languageCategory:"en"},{id:"lf_sentences",name:"æçå¥ååº",description:"è¯æéå¡ç²¾é䏿å¥ååº",category:"è¯æéå¡",tags:["å¥å","䏿"],url:"/api/sentences",length:50,language:"zh",languageCategory:"en"},{id:"lf_words",name:"æçè¯æ±åº",description:"è¯æéå¡é«çº§ä¸æè¯è¯åº",category:"è¯æéå¡",tags:["è¯æ±","䏿"],url:"/api/words",length:50,language:"zh",languageCategory:"en"}],ube=[...lbe,...ebe,...tbe,...rbe,...nbe,...abe,...ibe,...obe,...sbe],cbe=ube.map(e=>({...e,chapterCount:r1e(e.length)})),NF=Object.fromEntries(cbe.map(e=>[e.id,e])),dbe="modulepreload",fbe=function(e,t){return new URL(e,t).href},IF={},aa=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=fbe(i,n),i in IF)return;IF[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let c=a.length-1;c>=0;c--){const d=a[c];if(d.href===i&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":dbe,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const hbe=Object.assign({"../../public/sounds/key-sound/Alpacas.mp3":()=>aa(()=>import("./Alpacas-22644f47.js"),[],import.meta.url),"../../public/sounds/key-sound/Buckling Spring.mp3":()=>aa(()=>import("./Buckling Spring-2ef27aab.js"),[],import.meta.url),"../../public/sounds/key-sound/Cherry MX Blacks.mp3":()=>aa(()=>import("./Cherry MX Blacks-346ecd94.js"),[],import.meta.url),"../../public/sounds/key-sound/Cherry MX Blues.mp3":()=>aa(()=>import("./Cherry MX Blues-40d28f11.js"),[],import.meta.url),"../../public/sounds/key-sound/Cherry MX Browns.mp3":()=>aa(()=>import("./Cherry MX Browns-d5c758bb.js"),[],import.meta.url),"../../public/sounds/key-sound/Default.wav":()=>aa(()=>import("./Default-9121092f.js"),[],import.meta.url),"../../public/sounds/key-sound/Gateron Black Inks.mp3":()=>aa(()=>import("./Gateron Black Inks-60ade530.js"),[],import.meta.url),"../../public/sounds/key-sound/Gateron Red Inks.mp3":()=>aa(()=>import("./Gateron Red Inks-d0547f26.js"),[],import.meta.url),"../../public/sounds/key-sound/Holy Pandas.mp3":()=>aa(()=>import("./Holy Pandas-b28a824f.js"),[],import.meta.url),"../../public/sounds/key-sound/Kailh Box Navies.mp3":()=>aa(()=>import("./Kailh Box Navies-f6855634.js"),[],import.meta.url),"../../public/sounds/key-sound/NovelKeys Creams.mp3":()=>aa(()=>import("./NovelKeys Creams-f19f71f3.js"),[],import.meta.url),"../../public/sounds/key-sound/SKCM Blue Alps.mp3":()=>aa(()=>import("./SKCM Blue Alps-db6e3fb5.js"),[],import.meta.url),"../../public/sounds/key-sound/Topre.mp3":()=>aa(()=>import("./Topre-b391b916.js"),[],import.meta.url),"../../public/sounds/key-sound/Turquoise Tealios.mp3":()=>aa(()=>import("./Turquoise Tealios-0503a45d.js"),[],import.meta.url)}),pbe=Object.keys(hbe).map(e=>{const t=e.replace(/(.*\/)*([^.]+).*/gi,"$2"),r=e.substring(e.lastIndexOf("."));return{key:t,name:`${t}`,filename:`${t}${r}`}}).sort((e,t)=>
516e.key==="Default"?-1:t.key==="Default"?1:e.key.localeCompare(t.key)),vbe=[{key:"1",name:"声é³1",filename:"beep.wav"}],gbe=[{key:"1",name:"声é³1",filename:"correct.wav"}];globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const vte=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/currentDictIdAtom",Sa("currentDict","cet4"));vte.debugLabel="currentDictIdAtom";const mbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/currentDictInfoAtom",ho(e=>{const t=e(vte);let r=NF[t];return r||(r=NF.cet4),r}));mbe.debugLabel="currentDictInfoAtom";const ybe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/currentChapterAtom",Sa("currentChapter",0));ybe.debugLabel="currentChapterAtom";oc("loopWordConfig",{times:1});oc("keySoundsConfig",{isOpen:!0,isOpenClickSound:!0,volume:1,resource:pbe[0]});oc("hintSoundsConfig",{isOpen:!0,volume:1,isOpenWrongSound:!0,isOpenCorrectSound:!0,wrongResource:vbe[0],correctResource:gbe[0]});const gte=oc("pronunciation",{isOpen:!0,volume:1,type:"us",name:"ç¾é³",isLoop:!1,isTransRead:!1,transVolume:1,rate:1});oc("fontsize",Axe);const xbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/pronunciationIsOpenAtom",ho(e=>e(gte).isOpen));xbe.debugLabel="pronunciationIsOpenAtom";const bbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/pronunciationIsTransReadAtom",ho(e=>e(gte).isTransRead));bbe.debugLabel="pronunciationIsTransReadAtom";oc("randomConfig",{isOpen:!1});const wbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isShowPrevAndNextWordAtom",Sa("isShowPrevAndNextWord",!0));wbe.debugLabel="isShowPrevAndNextWordAtom";const _be=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isIgnoreCaseAtom",Sa("isIgnoreCase",!0));_be.debugLabel="isIgnoreCaseAtom";const Sbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isShowAnswerOnHoverAtom",Sa("isShowAnswerOnHover",!0));Sbe.debugLabel="isShowAnswerOnHoverAtom";const kbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isTextSelectableAtom",Sa("isTextSelectable",!1));
516kbe.debugLabel="isTextSelectableAtom";const Cbe=Q1e({isReviewMode:!1,reviewRecord:void 0}),Tbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isReviewModeAtom",ho(e=>e(Cbe).isReviewMode));Tbe.debugLabel="isReviewModeAtom";oc("phoneticConfig",{isOpen:!0,type:"us"});const nx=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isOpenDarkModeAtom",Sa("isOpenDarkModeAtom",window.matchMedia("(prefers-color-scheme: dark)").matches));nx.debugLabel="isOpenDarkModeAtom";const Abe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isShowSkipAtom",ho(!1));Abe.debugLabel="isShowSkipAtom";const Ebe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/isInDevModeAtom",ho(!1));Ebe.debugLabel="isInDevModeAtom";const Nbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/infoPanelStateAtom",ho({donate:!1,vsc:!1,community:!1,redBook:!1}));Nbe.debugLabel="infoPanelStateAtom";oc("wordDictationConfig",{isOpen:!1,type:"hideAll",openBy:"auto"});const Ibe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/dismissStartCardDateAtom",Sa(Txe,null));Ibe.debugLabel="dismissStartCardDateAtom";const Pbe=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/hasSeenEnhancedPromotionAtom",Sa("hasSeenEnhancedPromotion",!1));Pbe.debugLabel="hasSeenEnhancedPromotionAtom";const c4=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/showReviewModuleAtom",Sa("show_review_module",!0));c4.debugLabel="showReviewModuleAtom";const d4=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/showSentenceModuleAtom",Sa("show_sentence_module",!0));d4.debugLabel="showSentenceModuleAtom";const f4=globalThis.jotaiAtomCache.get("/app/src/store/index.ts/showWordModuleAtom",Sa("show_word_module",!0));f4.debugLabel="showWordModuleAtom";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const PF=[{path:"/challenge",label:"è¿ç®æè¯µ",icon:jw},{path:"/leaderboard",label:"é£äºæ¦",icon:Uo},{path:"/insights",label:"AIæ´å¯",icon:gr},{path:"/profile",label:"æç",icon:R$}];function So({children:e}){const t=ac(),r=mo(),n=Jr(m=>m.clearAuth),[a,i]=_d(nx),[o]=_d(c4),[s]=_d(d4),[l]=_d(f4),[u,c]=z.useState(!1),d=[{path:"/",label:"仪表ç",icon:NP},{path:"/paragraphs",label:"段è½åº",icon:Yn},...s?[{path:"/sentences",label:"å¥ååº",icon:vp}]:[],...l?[{path:"/words",label:"è¯è¯åº",icon:EP}]:[],...o?[{path:"/review",label:"å¤ä¹ ",icon:Zo}]:[]],f=[{path:"/",label:"仪表ç",icon:NP},{path:"/paragraphs",label:"段è½åº",icon:Yn},...s?[{path:"/sentences",label:"å¥ååº",icon:vp}]:[],...l?[{path:"/words",label:"è¯è¯åº",icon:EP}]:[],{path:"/insights",label:"AIæ´å¯",icon:gr}],h=()=>{i(!a)},p=()=>{n(),r("/login")},v=()=>{c(!1)};return w("div",{className:"min-h-screen bg-bg pb-20 md:pb-0 md:flex flex-col md:flex-row text-slate-100 transition-colors duration-300",children:[w("header",{className:"md:hidden flex items-center justify-between px-4 py-3 border-b border-slate-200/60 dark:border-slate-800/40 bg-white/80 dark:bg-slate-900/80 backdrop-blur sticky top-0 z-40",children:[y("span",{className:"text-base font-black tracking-widest text-slate-800 dark:text-slate-100 uppercase",children:"è¯æå·¥å"}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:h,className:"p-2 rounded-xl text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-white/5 transition-all","aria-label":"忢䏻é¢",children:a?y(W0,{size:18,className:"text-amber-500"}):y(H0,{size:18,className:"text-indigo-500"})}),y("button",{onClick:()=>c(!u),className:"p-2 rounded-xl text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-white/5 transition-all","aria-label":"æå¼èå",children:u?y(Tt,{size:20}):y(wee,{size:20})})]})]}),u&&y("div",{className:"md:hidden fixed inset-0 z-50 bg-white/95 dark:bg-slate-950/95 backdrop-blur-md animate-fade-in",children:w("div",{className:"flex flex-col h-full pt-16 px-6 pb-6",children:[y("nav",{className:"flex-1 space-y-2 overflow-y-auto",children:[...d,...PF].map(m=>{const g=t.pathname===m.path;return w(Mn,{to:m.path,onClick:v,className:`flex items-center gap-4 px-4 py-3.5 rounded-xl text-base transition-all duration-200 ${g?"bg-violet-500/10 text-violet-600 dar
516k:text-violet-400 font-bold":"text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800/50"}`,children:[y(m.icon,{size:20,className:g?"text-violet-500 dark:text-violet-400":"text-slate-400 dark:text-slate-500"}),m.label]},m.path)})}),w("div",{className:"pt-4 border-t border-slate-200/60 dark:border-slate-800/40 space-y-2",children:[w("button",{onClick:h,className:"flex items-center gap-4 px-4 py-3 w-full rounded-xl text-base text-slate-600 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800/50 transition-all duration-200",children:[a?y(W0,{size:20,className:"text-amber-500"}):y(H0,{size:20,className:"text-indigo-500"}),a?"åæ¢äº®è²æ¨¡å¼":"åæ¢æ·±è²æ¨¡å¼"]}),w("button",{onClick:p,className:"flex items-center gap-4 px-4 py-3 w-full rounded-xl text-base text-slate-600 dark:text-slate-300 hover:text-red-500 dark:hover:text-red-400 hover:bg-red-500/5 transition-all duration-200",children:[y(Q_,{size:20}),"éåºç»å½"]})]})]})}),w("aside",{className:"hidden md:flex flex-col w-60 bg-slate-900 border-r border-slate-800/40 fixed top-0 left-0 h-screen z-40 shrink-0 select-none",children:[w("div",{className:"p-5",children:[y("h1",{className:"text-lg font-black text-slate-100 tracking-widest uppercase",children:"è¯æå·¥å"}),y("p",{className:"text-[10px] text-slate-500 font-bold uppercase tracking-widest mt-1",children:"YuGan Platform"})]}),y("nav",{className:"flex-1 px-3 space-y-0.5 mt-1 overflow-hidden",children:[...d,...PF].map(m=>{const g=t.pathname===m.path;return w(Mn,{to:m.path,className:`flex items-center gap-3 px-4 py-2 rounded-xl text-sm transition-all duration-200 relative group ${g?"bg-violet-500/10 text-violet-600 dark:text-violet-400 font-bold":"text-slate-400 hover:text-slate-100 hover:bg-slate-800/30"}`,children:[g&&y("span",{className:"absolute left-0 top-2.5 bottom-2.5 w-1 bg-violet-600 dark:bg-violet-400 rounded-r"}),y(m.icon,{size:16,className:`transition-transform duration-200 group-hover:scale-110 ${g?"text-violet-600 dark:text-violet-400":"text-slate-500"}`}),m.label]},m.path)})}),w("div",{className:"p-2 border-t border-slate-800/40 space-y-1",children:[w("button",{onClick:h,className:"flex items-center gap-3 px-4 py-2 w-full rounded-xl text-sm text-slate-400 hover:text-slate-100 hover:bg-slate-800/30 transition-all duration-200",children:[a?y(W0,{size:16,className:"text-amber-400"}):y(H0,{size:16,className:"text-indigo-500"}),a?"åæ¢äº®è²":"åæ¢æ·±è²"]}),w("button",{onClick:p,className:"flex items-center gap-3 px-4 py-2 w-full rounded-xl text-sm text-slate-400 hover:text-red-500 hover:bg-red-500/5 transition-all duration-200",children:[y(Q_,{size:16}),"éåºç»å½"]})]})]}),y("main",{className:"flex-1 overflow-y-auto max-w-6xl w-full px-3 sm:px-4 md:px-8 py-4 md:py-6 md:ml-60",children:y("div",{className:"animate-fade-in",children:e})}),y("nav",{className:"md:hidden fixed bottom-0 left-0 right-0 bg-white/95 dark:bg-slate-900/95 backdrop-blur border-t border-slate-200/60 dark:border-slate-800/40 py-1.5 px-1 z-40 safe-area-pb",children:y("div",{className:"flex justify-around items-center max-w-md mx-auto",children:f.map(m=>{const g=t.pathname===m.path;return w(Mn,{to:m.path,className:`flex flex-col items-center gap-0.5 px-1 py-1 rounded-lg min-w-[3rem] transition-all duration-200 ${g?"text-violet-600 dark:text-violet-400 font-bold":"text-slate-500 dark:text-slate-500"}`,children:[y(m.icon,{size:18,className:g?"text-violet-500 dark:text-violet-400":"text-slate-400 dark:text-slate-500"}),y("span",{className:"text-[9px] leading-tight",children:m.label})]},m.path)})})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const mte=z.createContext({theme:"dark",toggleTheme:()=>{}}),yte=({children:e})=>{const[t,r]=z.useState(()=>{const a=document.documentElement.classList.contains("dark"),i=localStorage.getItem("admin_theme");return i==="light"||i==="dark"?i:a?"dark":"light"});z.useEffect(()=>{localStorage.setItem("admin_theme",t),t==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[t]);const n=()=>{r(a=>{const i=a==="dark"?"light":"dark";return localStorage.setItem("admin_theme",i),i==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),i})};return y(mte.Provider,{value:{theme:t,toggleTheme:n},children:y("div",{className:`admin-portal-wrapper ${t} min-h-screen transition-colors duration-300`,children:e})})},xte=()=>z.useContext(mte);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Mbe({children:e}){var p,v,m;const[t,r]=z.useState(!0),n=ac(),a=mo(),i=Jr(g=>g.user),o=Jr(g=>g.clearAuth),s=Jr(g=>g.logout),{theme:l,toggleTheme:u}=xte(),c=()=>{typeof s=="function"?s():typeof o=="function"?o():(localStorage.removeItem("token"),localStorage.removeItem("user")),a("/login")},d=[{path:"/admin",label:"æ°æ®æ¦è§",icon:xee,exact:!0},{path:"/admin/users",label:"ç¨æ·ç®¡ç",icon:tS},{path:"/admin/words",label:"è¯è¯ç®¡ç",icon:Yn},{path:"/admin/sentences",label:"å¥å管ç",icon:jp},{path:"/admin/paragraphs",label:"段è½ç®¡ç",icon:Z_}],f=(g,x=!1)=>x?n.pathname===g:n.pathname.startsWith(g),h=l==="light";return w("div",{className:"min-h-screen flex admin-body font-sans transition-colors duration-200",children:[w("aside",{className:`fixed inset-y-0 left-0 z-50 flex flex-col border-r transition-all duration-300 shadow-xl ${t?"w-64":"w-20"}
516`,style:{backgroundColor:h?"#ffffff":"#0f172a",borderColor:h?"#e2e8f0":"#1e293b"},children:[w("div",{className:"h-16 flex items-center justify-between px-5 border-b",style:{backgroundColor:h?"#f8fafc":"#020617",borderColor:h?"#e2e8f0":"#1e293b"},children:[t&&w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-8 h-8 rounded-xl bg-emerald-500/20 border border-emerald-500/40 flex items-center justify-center text-emerald-500 shrink-0",children:y(zm,{size:20})}),w("span",{className:"text-base font-black tracking-widest uppercase",style:{color:h?"#0f172a":"#ffffff"},children:["表达å ",y("span",{className:"text-emerald-500",children:"åå°"})]})]}),y("button",{onClick:()=>r(!t),className:"p-2 rounded-xl transition-all",style:{color:h?"#64748b":"#94a3b8"},title:t?"æå ä¾§è¾¹æ ":"å±å¼ä¾§è¾¹æ ",children:t?y(Tt,{size:20}):y(wee,{size:20})})]}),y("nav",{className:"flex-1 py-6 px-3 space-y-2 overflow-y-auto",children:d.map(g=>{const x=g.icon,b=f(g.path,g.exact);return w(Mn,{to:g.path,className:`flex items-center gap-3.5 px-4 py-3 rounded-xl font-bold text-sm transition-all ${b?"bg-emerald-500/10 text-emerald-600 border border-emerald-500/30 shadow-sm":""}`,style:b?{backgroundColor:h?"rgba(16, 185, 129, 0.12)":"rgba(16, 185, 129, 0.2)",color:h?"#059669":"#6ee7b7",borderColor:"rgba(16, 185, 129, 0.4)"}:{color:h?"#475569":"#cbd5e1"},children:[y(x,{size:20,className:b?"text-emerald-500":"text-slate-400"}),t&&y("span",{children:g.label}),t&&b&&y(es,{size:16,className:"ml-auto text-emerald-500"})]},g.path)})}),y("div",{className:"p-4 border-t",style:{backgroundColor:h?"#f8fafc":"#020617",borderColor:h?"#e2e8f0":"#1e293b"},children:w("div",{className:`flex items-center gap-3 ${t?"":"justify-center"}`,children:[y("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 border border-emerald-500/30 flex items-center justify-center text-emerald-600 font-black text-base shrink-0",children:((v=(p=i==null?void 0:i.nickname)==null?void 0:p.charAt(0))==null?void 0:v.toUpperCase())||"A"}),t&&w("div",{className:"flex-1 min-w-0",children:[y("p",{className:"text-sm font-bold truncate",style:{color:h?"#0f172a":"#ffffff"},children:(i==null?void 0:i.nickname)||"è¶
级管çå"}),y("p",{className:"text-xs font-mono text-emerald-600 truncate",children:(i==null?void 0:i.email)||"admin"})]}),t&&y("button",{onClick:c,className:"p-2 rounded-xl transition-all border border-transparent hover:border-red-500/30",style:{color:h?"#64748b":"#94a3b8"},title:"éåºç»å½",children:y(Q_,{size:18})})]})})]}),w("main",{className:`flex-1 flex flex-col transition-all duration-300 ${t?"ml-64":"ml-20"}`,children:[w("header",{className:"h-16 border-b flex items-center justify-between px-8 sticky top-0 z-40 backdrop-blur-md transition-colors",style:{backgroundColor:h?"rgba(255, 255, 255, 0.95)":"rgba(15, 23, 42, 0.95)",borderColor:h?"#e2e8f0":"#1e293b"},children:[w("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[y("span",{style:{color:h?"#64748b":"#cbd5e1"},children:"表达å管çåå°"}),y(es,{size:14,style:{color:h?"#94a3b8":"#475569"}}),y("span",{className:"text-emerald-500 font-bold",children:((m=d.find(g=>f(g.path,g.exact)))==null?void 0:m.label)||"æ§å¶å°"})]}),w("div",{className:"flex items-center gap-3",children:[y("button",{onClick:u,className:"flex items-center gap-2 px-3.5 py-1.5 rounded-xl border text-xs font-bold transition-all shadow-sm cursor-pointer",style:{backgroundColor:h?"#f1f5f9":"#020617",borderColor:h?"#cbd5e1":"#334155",color:h?"#0f172a":"#f8fafc"},title:h?"åæ¢ä¸ºæè²æ¨¡å¼":"åæ¢ä¸ºäº®è²æ¨¡å¼",children:h?w(Rt,{children:[y(H0,{size:15,className:"text-indigo-500"}),y("span",{children:"æè²æ¨¡å¼"})]}):w(Rt,{children:[y(W0,{size:15,className:"text-amber-400"}),y("span",{children:"äº®è²æ¨¡å¼"})]})}),w(Mn,{to:"/",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl border text-xs font-bold transition-all shadow-sm",style:{backgroundColor:h?"#f1f5f9":"#020617",borderColor:h?"#cbd5e1":"#334155",color:h?"#475569":"#cbd5e1"},children:[y(NP,{size:14}),"è¿ååå°"]})]})]}),y("div",{className:"p-8 flex-1",children:e||y(Nye,{})})]})]})}function mg(e){return y(yte,{children:y(Mbe,{...e})})}function bte(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dbe}=Object.prototype,{getPrototypeOf:Hp}=Object,{iterator:ax,toStringTag:wte}=Symbol,mS=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ym=(e,t)=>
vendor: 13,612 bytes, lines 516-518
516{let r=e;const n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),mS(r,t))return!0;r=Hp(r)}return!1},Lbe=(e,t)=>e!=null&&Ym(e,t)?e[t]:void 0,h4=(e=>t=>{const r=Dbe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),yo=e=>(e=e.toLowerCase(),t=>h4(t)===e),Ok=e=>t=>typeof t===e,{isArray:df}=Array,Wp=Ok("undefined");function Nv(e){return e!==null&&!Wp(e)&&e.constructor!==null&&!Wp(e.constructor)&&ma(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _te=yo("ArrayBuffer");function Rbe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_te(e.buffer),t}const $be=Ok("string"),ma=Ok("function"),Ste=Ok("number"),Iv=e=>e!==null&&typeof e=="object",Obe=e=>e===!0||e===!1,Zw=e=>{if(!Iv(e))return!1;const t=Hp(e);return(t===null||t===Object.prototype||Hp(t)===null)&&!Ym(e,wte)&&!Ym(e,ax)},zbe=e=>{if(!Iv(e)||Nv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fbe=yo("Date"),Bbe=yo("File"),jbe=e=>!!(e&&typeof e.uri<"u"),Vbe=e=>e&&typeof e.getParts<"u",Ube=yo("Blob"),Gbe=yo("FileList"),Hbe=e=>Iv(e)&&ma(e.pipe);function Wbe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const MF=Wbe(),DF=typeof MF.FormData<"u"?MF.FormData:void 0,qbe=e=>{if(!e)return!1;if(DF&&e instanceof DF)return!0;const t=Hp(e);if(!t||t===Object.prototype||!ma(e.append))return!1;const r=h4(e);return r==="formdata"||r==="object"&&ma(e.toString)&&e.toString()==="[object FormData]"},Ybe=yo("URLSearchParams"),[Kbe,Zbe,Xbe,Jbe]=["ReadableStream","Request","Response","Headers"].map(yo),Qbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ix(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),df(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(Nv(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function kte(e,t){if(Nv(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const kd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Cte=e=>!Wp(e)&&e!==kd;function nM(...e){const{caseless:t,skipUndefined:r}=Cte(this)&&this||{},n={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const s=t&&typeof o=="string"&&kte(n,o)||o,l=mS(n,s)?n[s]:void 0;Zw(l)&&Zw(i)?n[s]=nM(l,i):Zw(i)?n[s]=nM({},i):df(i)?n[s]=i.slice():(!r||!Wp(i))&&(n[s]=i)};for(let i=0,o=e.length;i<o;i++){const s=e[i];if(!s||Nv(s)||(ix(s,a),typeof s!="object"||df(s)))continue;const l=Object.getOwnPropertySymbols(s);for(let u=0;u<l.length;u++){const c=l[u];dwe.call(s,c)&&a(s[c],c)}}return n}const ewe=(e,t,r,{allOwnKeys:n}={})=>(ix(t,(a,i)=>{r&&ma(a)?Object.defineProperty(e,i,{__proto__:null,value:bte(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),twe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rwe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},nwe=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&Hp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},awe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},iwe=e=>{if(!e)return null;if(df(e))return e;let t=e.length;if(!Ste(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},owe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hp(Uint8Array)),swe=(e,t)=>{const n=(e&&e[ax]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},lwe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},uwe=yo("HTMLFormElement"),cwe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),{propertyIsEnumerable:dwe}=Object.prototype,fwe=yo("RegExp"),Tte=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ix(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},hwe=e=>{Tte(e,(t,r)=>{if(ma(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(ma(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},pwe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return df(e)?n(e):n(String(e).split(t)),r},vwe=()=>{},gwe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function mwe(e){return!!(e&&ma(e.append)&&e[wte]==="FormData"&&e[ax])}const ywe=e=>{const t=new WeakSet,r=n=>{if(Iv(n)){if(t.has(n))return;if(Nv(n))return n;if(!("toJSON"in n)){t.add(n);const a=df(n)?[]:{};return ix(n,(i,o)=>{const s=r(i);!Wp(s)&&(a[o]=s)}),t.delete(n),a}}return n};return r(e)},xwe=yo("AsyncFunction"),bwe=e=>e&&(Iv(e)||ma(e))&&ma(e.then)&&ma(e.catch),Ate=((e,t)=>e?setImmediate:t?((r,n)=>(kd.addEventListener("message",({source:a,data:i})=>{a===kd&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),kd.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ma(kd.postMessage)),wwe=typeof queueMicrotask<"u"?queueMicrotask.bind(kd):typeof process<"u"&&process.nextTick||Ate,Ete=e=>e!=null&&ma(e[ax]),_we=e=>e!=null&&Ym(e,ax)&&Ete(e),W={isArray:df,isArrayBuffer:_te,isBuffer:Nv,isFormData:qbe,isArrayBufferView:Rbe,isString:$be,isNumber:Ste,isBoolean:Obe,isObject:Iv,isPlainObject:Zw,isEmptyObject:zbe,isReadableStream:Kbe,isRequest:Zbe,isResponse:Xbe,isHeaders:Jbe,isUndefined:Wp,isDate:Fbe,isFile:Bbe,isReactNativeBlob:jbe,isReactNative:Vbe,isBlob:Ube,isRegExp:fwe,isFunction:ma,isStream:Hbe,isURLSearchParams:Ybe,isTypedArray:owe,isFileList:Gbe,forEach:ix,merge:nM,extend:ewe,trim:Qbe,stripBOM:twe,inherits:rwe,toFlatObject:nwe,kindOf:h4,kindOfTest:yo,endsWith:awe,toArray:iwe,forEachEntry:swe,matchAll:lwe,isHTMLForm:uwe,hasOwnProperty:mS,hasOwnProp:mS,hasOwnInPrototypeChain:Ym,getSafeProp:Lbe,reduceDescriptors:Tte,freezeMethods:hwe,toObjectSet:pwe,toCamelCase:cwe,noop:vwe,toFiniteNumber:gwe,findKey:kte,global:kd,isContextDefined:Cte,isSpecCompliantForm:mwe,toJSONObject:ywe,isAsyncFn:xwe,isThenable:bwe,setImmediate:Ate,asap:wwe,isIterable:Ete,isSafeIterable:_we},Swe=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kwe=e=>{const t={};let r,n,a;return e&&e.split(` 517`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Swe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};function Cwe(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const Twe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Awe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function p4(e,t){return W.isArray(e)?e.map(r=>p4(r,t)):Cwe(String(e).replace(t,""))}const Ewe=e=>p4(e,Twe),Nwe=e=>p4(e,Awe);function Nte(e){const t=Object.create(null);return W.forEach(e.toJSON(),(r,n)=>{t[n]=Nwe(r)}),t}const LF=Symbol("internals");function yg(e){return e&&String(e).trim().toLowerCase()}function Xw(e){return e===!1||e==null?e:W.isArray(e)?e.map(Xw):Ewe(String(e))}function Iwe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Pwe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uA(e,t,r,n,a){if(W.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!W.isString(t)){if(W.isString(n))return t.indexOf(n)!==-1;if(W.isRegExp(n))return n.test(t)}}function Mwe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Dwe(e,t){const r=W.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class zk{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,u){const c=yg(l);if(!c)return;const d=W.findKey(a,c);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||l]=Xw(s))}const o=(s,l)=>W.forEach(s,(u,c)=>i(u,c,l));if(W.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(W.isString(t)&&(t=t.trim())&&!Pwe(t))o(kwe(t),r);else if(W.isObject(t)&&W.isSafeIterable(t)){let s=Object.create(null),l,u;for(const c of t){if(!W.isArray(c))throw new TypeError("Object iterator must return a key-value pair");u=c[0],W.hasOwnProp(s,u)?(l=s[u],s[u]=W.isArray(l)?[...l,c[1]]:[l,c[1]]):s[u]=c[1]}o(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=yg(t),t){const n=W.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Iwe(a);if(W.isFunction(r))return r.call(this,a,n);if(W.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=yg(t),t){const n=W.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||uA(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=yg(o),o){const s=W.findKey(n,o);s&&(!r||uA(n,n[s],s,r))&&(delete n[s],a=!0)}}return W.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||uA(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return W.forEach(this,(a,i)=>{const o=W.findKey(n,i);if(o){r[o]=Xw(a),delete r[i];return}const s=t?Mwe(i):String(i).trim();s!==i&&delete r[i],r[s]=Xw(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return W.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&W.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 518`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[LF]=this[LF]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=yg(o);n[s]||(Dwe(a,o),n[s]=!0)}return W.isArray(t)?t.forEach(i):i(t),this}}zk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(zk.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});W.freezeMethods(zk);const Fa=zk,Lwe="[REDACTED ****]";function Rwe(e){if(W.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(W.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function $we(e,t){const r=new Set(t.map(i=>String(i).toLowerCase())),n=[],a=i=>{if(i===null||typeof i!="object"||W.isBuffer(i))return i;if(n.indexOf(i)!==-1)return;i instanceof Fa&&(i=i.toJSON()),n.push(i);let o;if(W.isArray(i))o=[],i.forEach((s,l)=>{const u=a(s);W.isUndefined(u)||(o[l]=u)});else{if(!W.isPlainObject(i)&&Rwe(i))return n.pop(),i;o=Object.create(null);for(const[s,l]of Object.entries(i)){const u=r.has(s.toLowerCase())?Lwe:a(l);W.isUndefined(u)||(o[s]=u)}}return n.pop(),o};return a(e)}class fn extends Error{static from(t,r,n,a,i,o){const s=new fn(t.message,r||t.code,n,a,i);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(t,r,n,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,r=t&&W.hasOwnProp(t,"redact")?t.redact:void 0,n=W.isArray(r)&&r.length>0?$we(t,r):W.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}fn.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";fn.ERR_BAD_OPTION="ERR_BAD_OPTION";fn.ECONNABORTED="ECONNABORTED";fn.ETIMEDOUT="ETIMEDOUT";fn.ECONNREFUSED="ECONNREFUSED";fn.ERR_NETWORK="ERR_NETWORK";fn.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";fn.ERR_DEPRECATED="ERR_DEPRECATED";fn.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";fn.ERR_BAD_REQUEST="ERR_BAD_REQUEST";fn.ERR_CANCELED="ERR_CANCELED";fn.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";fn.ERR_INVALID_URL="ERR_INVALID_URL";fn.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Le=fn,Owe=null,Ite=100;function aM(e){return W.isPlainObject(e)||W.isArray(e)}function Pte(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function cA(e,t,r){return e?e.concat(t).map(function(a,i){return a=Pte(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function zwe(e){return W.isArray(e)&&!e.some(aM)}
vendor: 1,443 bytes, line 518
518const Fwe=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function Fk(e,t,r){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,b){return!W.isUndefined(b[x])});const n=r.metaTokens,a=r.visitor||p,i=r.dots,o=r.indexes,s=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?Ite:r.maxDepth,u=s&&W.isSpecCompliantForm(t),c=[];if(!W.isFunction(a))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(W.isDate(g))return g.toISOString();if(W.isBoolean(g))return g.toString();if(!u&&W.isBlob(g))throw new Le("Blob is not supported. Use a Buffer instead.");if(W.isArrayBuffer(g)||W.isTypedArray(g)){if(u&&typeof s=="function")return new s([g]);if(typeof Buffer<"u")return Buffer.from(g);throw new Le("Blob is not supported. Use a Buffer instead.",Le.ERR_NOT_SUPPORT)}return g}function f(g){if(g>l)throw new Le("Object is too deeply nested ("+g+" levels). Max depth: "+l,Le.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(g,x){if(l===1/0)return JSON.stringify(g);const b=[];return JSON.stringify(g,function(k,S){if(!W.isObject(S))return S;for(;b.length&&b[b.length-1]!==this;)b.pop();return b.push(S),f(x+b.length-1),S})}function p(g,x,b){let _=g;if(W.isReactNative(t)&&W.isReactNativeBlob(g))return t.append(cA(b,x,i),d(g)),!1;if(g&&!b&&typeof g=="object"){if(W.endsWith(x,"{}"))x=n?x:x.slice(0,-2),g=h(g,1);
vendor: 4,332 bytes, line 518
518else if(W.isArray(g)&&zwe(g)||(W.isFileList(g)||W.endsWith(x,"[]"))&&(_=W.toArray(g)))return x=Pte(x),_.forEach(function(S,C){!(W.isUndefined(S)||S===null)&&t.append(o===!0?cA([x],C,i):o===null?x:x+"[]",d(S))}),!1}return aM(g)?!0:(t.append(cA(b,x,i),d(g)),!1)}const v=Object.assign(Fwe,{defaultVisitor:p,convertValue:d,isVisitable:aM});function m(g,x,b=0){if(!W.isUndefined(g)){if(f(b),c.indexOf(g)!==-1)throw new Error("Circular reference detected in "+x.join("."));c.push(g),W.forEach(g,function(k,S){(!(W.isUndefined(k)||k===null)&&a.call(t,k,W.isString(S)?S.trim():S,x,v))===!0&&m(k,x?x.concat(S):[S],b+1)}),c.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return m(e),t}function RF(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function v4(e,t){this._pairs=[],e&&Fk(e,this,t)}const Mte=v4.prototype;Mte.append=function(t,r){this._pairs.push([t,r])};Mte.toString=function(t){const r=t?n=>t.call(this,n,RF):RF;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function Bwe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Dte(e,t,r){if(!t)return e;e=e||"";const n=W.isFunction(r)?{serialize:r}:r,a=W.getSafeProp(n,"encode")||Bwe,i=W.getSafeProp(n,"serialize");let o;if(i?o=i(t,n):o=W.isURLSearchParams(t)?t.toString():new v4(t,n).toString(a),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class jwe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(n){n!==null&&t(n)})}}const $F=jwe,g4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Vwe=typeof URLSearchParams<"u"?URLSearchParams:v4,Uwe=typeof FormData<"u"?FormData:null,Gwe=typeof Blob<"u"?Blob:null,Hwe={isBrowser:!0,classes:{URLSearchParams:Vwe,FormData:Uwe,Blob:Gwe},protocols:["http","https","file","blob","url","data"]},m4=typeof window<"u"&&typeof document<"u",iM=typeof navigator=="object"&&navigator||void 0,Wwe=m4&&(!iM||["ReactNative","NativeScript","NS"].indexOf(iM.product)<0),qwe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ywe=m4&&window.location.href||"http://localhost",Kwe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m4,hasStandardBrowserEnv:Wwe,hasStandardBrowserWebWorkerEnv:qwe,navigator:iM,origin:Ywe},Symbol.toStringTag,{value:"Module"})),an={...Kwe,...Hwe};function Zwe(e,t){return Fk(e,new an.classes.URLSearchParams,{visitor:function(r,n,a,i){return an.isNode&&W.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const OF=Ite;function Lte(e){if(e>OF)throw new Le("FormData field is too deeply nested ("+e+" levels). Max depth: "+OF,Le.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Xwe(e){const t=[],r=/\w+|\[(\w*)]/g;let n;for(;(n=r.exec(e))!==null;)Lte(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function Jwe(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function Rte(e){function t(r,n,a,i){Lte(i);let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=r.length;return o=!o&&W.isArray(a)?a.length:o,l?(W.hasOwnProp(a,o)?a[o]=W.isArray(a[o])?a[o].concat(n):[a[o],n]:a[o]=n,!s):((!W.hasOwnProp(a,o)||!W.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&W.isArray(a[o])&&(a[o]=Jwe(a[o])),!s)}if(W.isFormData(e)&&W.isFunction(e.entries)){const r={};return W.forEachEntry(e,(n,a)=>{t(Xwe(n),a,r,0)}),r}return null}const Jf=(e,t)=>e!=null&&W.hasOwnProp(e,t)?e[t]:void 0;function Qwe(e,t,r){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const y4={transitional:g4,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=W.isObject(t);
vendor: 18,602 bytes, line 518
518if(i&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return a?JSON.stringify(Rte(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){const l=Jf(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zwe(t,l).toString();if((s=W.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=Jf(this,"env"),c=u&&u.FormData;return Fk(s?{"files[]":t}:t,c&&new c,l)}}return i||a?(r.setContentType("application/json",!1),Qwe(t)):t}],transformResponse:[function(t){const r=Jf(this,"transitional")||y4.transitional,n=r&&r.forcedJSONParsing,a=Jf(this,"responseType"),i=a==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(n&&!a||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,Jf(this,"parseReviver"))}catch(l){if(s)throw l.name==="SyntaxError"?Le.from(l,Le.ERR_BAD_RESPONSE,this,null,Jf(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:an.classes.FormData,Blob:an.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch","query"],e=>{y4.headers[e]={}});const x4=y4;function dA(e,t){const r=this||x4,n=t||r,a=Fa.from(n.headers);let i=n.data;return W.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function $te(e){return!!(e&&e.__CANCEL__)}class e_e extends Le{constructor(t,r,n){super(t??"canceled",Le.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}}const ox=e_e;function Ote(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Le("Request failed with status code "+r.status,r.status>=400&&r.status<500?Le.ERR_BAD_REQUEST:Le.ERR_BAD_RESPONSE,r.config,r.request,r))}function t_e(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function r_e(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),r[a]=l,n[a]=u;let d=i,f=0;for(;d!==a;)f+=r[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function n_e(e,t){let r=0,n=1e3/t,a,i;const o=(u,c=Date.now())=>{r=c,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-r;d>=n?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},n-d)))},()=>a&&o(a)]}const yS=(e,t,r=3)=>{let n=0;const a=r_e(50,250);return n_e(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=s!=null?Math.min(o,s):o,u=Math.max(0,l-n),c=a(u);n=Math.max(n,l);const d={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s?(s-l)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},zF=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},FF=e=>(...t)=>W.asap(()=>e(...t)),a_e=an.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,an.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(an.origin),an.navigator&&/(msie|trident)/i.test(an.navigator.userAgent)):()=>!0,i_e=an.hasStandardBrowserEnv?{write(e,t,r,n,a,i,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];W.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),W.isString(n)&&s.push(`path=${n}`),W.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),W.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),a=n.indexOf("=");if(a!==-1&&n.slice(0,a)===e)try{return decodeURIComponent(n.slice(a+1))}catch{return n.slice(a+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function o_e(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function s_e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const l_e=/^https?:(?!\/\/)/i,u_e=/[\t\n\r]/g;function c_e(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function d_e(e){return c_e(e).replace(u_e,"")}function BF(e,t){if(typeof e=="string"&&l_e.test(d_e(e)))throw new Le('Invalid URL: missing "//" after protocol',Le.ERR_INVALID_URL,t)}function zte(e,t,r,n){BF(t,n);let a=!o_e(t);return e&&(a||r===!1)?(BF(e,n),s_e(e,t)):t}const jF=e=>e instanceof Fa?{...e}:e;function ff(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,d,f,h){return W.isPlainObject(c)&&W.isPlainObject(d)?W.merge.call({caseless:h},c,d):W.isPlainObject(d)?W.merge({},d):W.isArray(d)?d.slice():d}function a(c,d,f,h){if(W.isUndefined(d)){if(!W.isUndefined(c))return n(void 0,c,f,h)}else return n(c,d,f,h)}function i(c,d){if(!W.isUndefined(d))return n(void 0,d)}function o(c,d){if(W.isUndefined(d)){if(!W.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function s(c){const d=W.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!W.isUndefined(d))if(W.isPlainObject(d)){if(W.hasOwnProp(d,c))return d[c]}else return;const f=W.hasOwnProp(e,"transitional")?e.transitional:void 0;if(W.isPlainObject(f)&&W.hasOwnProp(f,c))return f[c]}function l(c,d,f){if(W.hasOwnProp(t,f))return n(c,d);if(W.hasOwnProp(e,f))return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:l,headers:(c,d,f)=>a(jF(c),jF(d),f,!0)};return W.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=W.hasOwnProp(u,d)?u[d]:a,h=W.hasOwnProp(e,d)?e[d]:void 0,p=W.hasOwnProp(t,d)?t[d]:void 0,v=f(h,p,d);W.isUndefined(v)&&f!==l||(r[d]=v)}),W.hasOwnProp(t,"validateStatus")&&W.isUndefined(t.validateStatus)&&s("validateStatusUndefinedResolves")===!1&&(W.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const f_e=["content-type","content-length"];function h_e(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([n,a])=>{f_e.includes(n.toLowerCase())&&e.set(n,a)})}const p_e=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function Fte(e){const t=ff({},e),r=f=>W.hasOwnProp(t,f)?t[f]:void 0,n=r("data");let a=r("withXSRFToken");const i=r("xsrfHeaderName"),o=r("xsrfCookieName");let s=r("headers");const l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),d=r("url");if(t.headers=s=Fa.from(s),t.url=Dte(zte(u,d,c,t),r("params"),r("paramsSerializer")),l){const f=W.getSafeProp(l,"username")||"",h=W.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(f+":"+(h?p_e(h):"")))}catch(p){throw Le.from(p,Le.ERR_BAD_OPTION_VALUE,e)}}if(W.isFormData(n)&&(an.hasStandardBrowserEnv||an.hasStandardBrowserWebWorkerEnv||W.isReactNative(n)?s.setContentType(void 0):W.isFunction(n.getHeaders)&&h_e(s,n.getHeaders(),r("formDataHeaderPolicy"))),an.hasStandardBrowserEnv&&(W.isFunction(a)&&(a=a(t)),a===!0||a==null&&a_e(t.url))){const h=i&&o&&i_e.read(o);h&&s.set(i,h)}return t}const v_e=typeof XMLHttpRequest<"u",g_e=v_e&&function(e){return new Promise(function(r,n){const a=Fte(e);let i=a.data;const o=Fa.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,d,f,h,p;function v(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function g(){if(!m)return;const b=Fa.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};Ote(function(C){r(C),v()},function(C){n(C),v()},k),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(g)},m.onabort=function(){m&&(n(new Le("Request aborted",Le.ECONNABORTED,e,m)),v(),m=null)},m.onerror=function(_){const k=_&&_.message?_.message:"Network Error",S=new Le(k,Le.ERR_NETWORK,e,m);S.event=_||null,n(S),v(),m=null},m.ontimeout=function(){let _=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const k=a.transitional||g4;a.timeoutErrorMessage&&(_=a.timeoutErrorMessage),n(new Le(_,k.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,m)),v(),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&W.forEach(Nte(o),function(_,k){m.setRequestHeader(k,_)}),W.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),s&&s!=="json"&&(m.responseType=a.responseType),u&&([f,p]=yS(u,!0),m.addEventListener("progress",f)),l&&m.upload&&([d,h]=yS(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=b=>{m&&(n(!b||b.type?new ox(null,e,m):b),m.abort(),v(),m=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const x=t_e(a.url);if(x&&!an.protocols.includes(x)){n(new Le("Unsupported protocol "+x+":",Le.ERR_BAD_REQUEST,e)),v();return}m.send(i||null)})},m_e=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const a=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;r.abort(u instanceof Le?u:new ox(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new Le(`timeout of ${t}ms exceeded`,Le.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a,{once:!0}));const{signal:s}=r;return s.unsubscribe=()=>W.asap(o),s},y_e=m_e,x_e=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},b_e=async function*(e,t){for await(const r of w_e(e))yield*x_e(r,t)},w_e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},VF=(e,t,r,n)=>{const a=b_e(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let d=c.byteLength;if(r){let f=i+=d;r(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},xS=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,__e=(e,t,r)=>t+2<r&&xS(e.charCodeAt(t+1))&&xS(e.charCodeAt(t+2));function S_e(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let o=n.length;const s=n.length;for(let h=0;h<s;h++)if(n.charCodeAt(h)===37&&h+2<s){const p=n.charCodeAt(h+1),v=n.charCodeAt(h+2);xS(p)&&xS(v)&&(o-=2,h+=2)}let l=0,u=s-1;const c=h=>h>=2&&n.charCodeAt(h-2)===37&&n.charCodeAt(h-1)===51&&(n.charCodeAt(h)===68||n.charCodeAt(h)===100);u>=0&&(n.charCodeAt(u)===61?(l++,u--):c(u)&&(l++,u-=3)),l===1&&u>=0&&(n.charCodeAt(u)===61||c(u))&&l++;const f=Math.floor(o/4)*3-(l||0);return f>0?f:0}let i=0;for(let o=0,s=n.length;o<s;o++){const l=n.charCodeAt(o);if(l===37&&__e(n,o,s))i+=1,o+=2;else if(l<128)i+=1;else if(l<2048)i+=2;else if(l>=55296&&l<=56319&&o+1<s){const u=n.charCodeAt(o+1);u>=56320&&u<=57343?(i+=4,o++):i+=3}else i+=3}return i}const b4="1.18.1",UF=64*1024,{isFunction:T1}=W,k_e=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),GF=e=>{if(!W.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},HF=(e,...t)=>{try{return!!e(...t)}catch{return!1}},C_e=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},T_e=e=>{const t=W.global!==void 0&&W.global!==null?W.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=W.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,s=a?T1(a):typeof fetch=="function",l=T1(i),u=T1(o);if(!s)return!1;const c=s&&T1(r),d=s&&(typeof n=="function"?(g=>x=>g.encode(x))(new n):async g=>new Uint8Array(await new i(g).arrayBuffer())),f=l&&c&&HF(()=>{let g=!1;const x=new i(an.origin,{body:new r,method:"POST",get duplex(){return g=!0,"half"}}),b=x.headers.has("Content-Type");return x.body!=null&&x.body.cancel(),g&&!b}),h=u&&c&&HF(()=>W.isReadableStream(new o("").body)),p={stream:h&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!p[g]&&(p[g]=(x,b)=>{let _=x&&x[g];if(_)return _.call(x);throw new Le(`Response type '${g}' is not supported`,Le.ERR_NOT_SUPPORT,b)})});const v=async g=>{if(g==null)return 0;if(W.isBlob(g))return g.size;if(W.isSpecCompliantForm(g))return(await new i(an.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(W.isArrayBufferView(g)||W.isArrayBuffer(g))return g.byteLength;if(W.isURLSearchParams(g)&&(g=g+""),W.isString(g))return(await d(g)).byteLength},m=async(g,x)=>{const b=W.toFiniteNumber(g.getContentLength());return b??v(x)};return async g=>{let{url:x,method:b,data:_,signal:k,cancelToken:S,timeout:C,onDownloadProgress:T,onUploadProgress:E,responseType:A,headers:N,withCredentials:P="same-origin",fetchOptions:L,maxContentLength:R,maxBodyLength:M}=Fte(g);const $=W.isNumber(R)&&R>-1,V=W.isNumber(M)&&M>-1,B=ee=>W.hasOwnProp(g,ee)?g[ee]:void 0;let j=a||fetch;A=A?(A+"").toLowerCase():"text";let I=y_e([k,S&&S.toAbortSignal()],C),U=null;const Y=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let O,H=null;const ie=()=>new Le("Request body larger than maxBodyLength limit",Le.ERR_BAD_REQUEST,g,U);try{let ee;const se=B("auth");if(se){const he=W.getSafeProp(se,"username")||"",je=W.getSafeProp(se,"password")||"";ee={username:he,password:je}}if(C_e(x)){const he=new URL(x,an.origin);if(!ee&&(he.username||he.password)){const je=GF(he.username),ne=GF(he.password);ee={username:je,password:ne}}(he.username||he.password)&&(he.username="",he.password="",x=he.href)}if(ee&&(N.delete("authorization"),N.set("Authorization","Basic "+btoa(k_e((ee.username||"")+":"+(ee.password||""))))),$&&typeof x=="string"&&x.startsWith("data:")&&S_e(x)>R)throw new Le("maxContentLength size of "+R+" exceeded",Le.ERR_BAD_RESPONSE,g,U);if(V&&b!=="get"&&b!=="head"){const he=await v(_);if(typeof he=="number"&&isFinite(he)&&(O=he,he>M))throw ie()}const oe=V&&(W.isReadableStream(_)||W.isStream(_)),be=(he,je,ne)=>VF(he,UF,De=>{if(V&&De>M)throw H=ie();je&&je(De)},ne);if(f&&b!=="get"&&b!=="head"&&(E||oe)){if(O=O??await m(N,_),O!==0||oe){let he=new i(x,{method:"POST",body:_,duplex:"half"}),je;if(W.isFormData(_)&&(je=he.headers.get("content-type"))&&N.setContentType(je),he.body){const[ne,De]=E&&zF(O,yS(FF(E)))||[];_=be(he.body,ne,De)}}}else if(oe&&!l&&c&&b!=="get"&&b!=="head")_=be(_);else if(oe&&l&&!f&&b!=="get"&&b!=="head")throw new Le("Stream request bodies are not supported by the current fetch implementation",Le.ERR_NOT_SUPPORT,g,U);W.isString(P)||(P=P?"include":"omit");const me=l&&"credentials"in i.prototype;if(W.isFormData(_)){const he=N.getContentType();he&&/^multipart\/form-data/i.test(he)&&!/boundary=/i.test(he)&&N.delete("content-type")}N.set("User-Agent","axios/"+b4,!1);const Z={...L,signal:I,method:b.toUpperCase(),headers:Nte(N.normalize()),body:_,duplex:"half",credentials:me?P:void 0};U=l&&new i(x,Z);let J=await(l?j(U,L):j(x,Z));const we=Fa.from(J.headers);if($){const he=W.toFiniteNumber(we.getContentLength());if(he!=null&&he>R)throw new Le("maxContentLength size of "+R+" exceeded",Le.ERR_BAD_RESPONSE,g,U)}const xe=h&&(A==="stream"||A==="response");if(h&&J.body&&(T||$||xe&&Y)){const he={};["status","statusText","headers"].forEach(bt=>{he[bt]=J[bt]});const je=W.toFiniteNumber(we.getContentLength()),[ne,De]=T&&zF(je,yS(FF(T),!0))||[];let gt=0;const dt=bt=>{if($&&(gt=bt,gt>R))throw new Le("maxContentLength size of "+R+" exceeded",Le.ERR_BAD_RESPONSE,g,U);ne&&ne(bt)};J=new o(VF(J.body,UF,dt,()=>{De&&De(),Y&&Y()}),he)}A=A||"text";let Pe=await p[W.findKey(p,A)||"text"](J,g);if($&&!h&&!xe){let he;if(Pe!=null&&(typeof Pe.byteLength=="number"?he=Pe.byteLength:typeof Pe.size=="number"?he=Pe.size:typeof Pe=="string"&&(he=typeof n=="function"?new n().encode(Pe).byteLength:Pe.length)),typeof he=="number"&&he>R)throw new Le("maxContentLength size of "+R+" exceeded",Le.ERR_BAD_RESPONSE,g,U)}return!xe&&Y&&Y(),await new Promise((he,je)=>{Ote(he,je,{data:Pe,headers:Fa.from(J.headers),status:J.status,statusText:J.statusText,config:g,request:U})})}catch(ee){if(Y&&Y(),I&&I.aborted&&I.reason instanceof Le){const se=I.reason;throw se.config=g,U&&(se.request=U),ee!==se&&Object.defineProperty(se,"cause",{__proto__:null,value:ee,writable:!0,enumerable:!1,configurable:!0}),se}if(H)throw U&&!H.request&&(H.request=U),H;if(ee instanceof Le)throw U&&!ee.request&&(ee.request=U),ee;if(ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)){const se=new Le("Network Error",Le.ERR_NETWORK,g,U,ee&&ee.response);throw Object.defineProperty(se,"cause",{__proto__:null,value:ee.cause||ee,writable:!0,enumerable:!1,configurable:!0}),se}throw Le.from(ee,ee&&ee.code,g,U,ee&&ee.response)}}},A_e=new Map,Bte=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:a}=t,i=[n,a,r];let o=i.length,s=o,l,u,c=A_e;for(;s--;)l=i[s],u=c.get(l),u===void 0&&c.set(l,u=s?new Map:T_e(t)),c=u;return u};Bte();const w4={http:Owe,xhr:g_e,fetch:{get:Bte}};W.forEach(w4,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const WF=e=>`- ${e}`,E_e=e=>W.isFunction(e)||e===null||e===!1;function N_e(e,t){e=W.isArray(e)?e:[e];const{length:r}=e;let n,a;const i={};for(let o=0;o<r;o++){n=e[o];let s;if(a=n,!E_e(n)&&(a=w4[(s=String(n)).toLowerCase()],a===void 0))throw new Le(`Unknown adapter '${s}'`);
vendor: 5,580 bytes, lines 518-524
518if(a&&(W.isFunction(a)||(a=a.get(t))))break;i[s||"#"+o]=a}if(!a){const o=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : 519`+o.map(WF).join(` 520`):" "+WF(o[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+s,Le.ERR_NOT_SUPPORT)}return a}const jte={getAdapter:N_e,adapters:w4};function fA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ox(null,e)}function qF(e){return fA(e),e.headers=Fa.from(e.headers),e.data=dA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),jte.getAdapter(e.adapter||x4.adapter,e)(e).then(function(n){fA(e),e.response=n;try{n.data=dA.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=Fa.from(n.headers),n},function(n){if(!$te(n)&&(fA(e),n&&n.response)){e.response=n.response;try{n.response.data=dA.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=Fa.from(n.response.headers)}return Promise.reject(n)})}const Bk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Bk[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const YF={};Bk.transitional=function(t,r,n){function a(i,o){return"[Axios v"+b4+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Le(a(o," has been removed"+(r?" in "+r:"")),Le.ERR_DEPRECATED);return r&&!YF[o]&&(YF[o]=!0),t?t(i,o,s):!0}};Bk.spelling=function(t){return(r,n)=>!0};function I_e(e,t,r){if(typeof e!="object"||e===null)throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Le("option "+i+" must be "+l,Le.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Le("Unknown option "+i,Le.ERR_BAD_OPTION)}}const Jw={assertOptions:I_e,validators:Bk},bn=Jw.validators;class bS{constructor(t){this.defaults=t||{},this.interceptors={request:new $F,response:new $F}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const o=a.stack.indexOf(` 521`);return o===-1?"":a.stack.slice(o+1)})();try{if(!n.stack)n.stack=i;else if(i){const o=i.indexOf(` 522`),s=o===-1?-1:i.indexOf(` 523`,o+1),l=s===-1?"":i.slice(s+1);String(n.stack).endsWith(l)||(n.stack+=` 524`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ff(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&Jw.assertOptions(n,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean),legacyInterceptorReqResOrdering:bn.transitional(bn.boolean),advertiseZstdAcceptEncoding:bn.transitional(bn.boolean),validateStatusUndefinedResolves:bn.transitional(bn.boolean)},!1),a!=null&&(W.isFunction(a)?r.paramsSerializer={serialize:a}:Jw.assertOptions(a,{encode:bn.function,serialize:bn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Jw.assertOptions(r,{baseUrl:bn.spelling("baseURL"),withXsrfToken:bn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[r.method]);i&&W.forEach(["delete","get","head","post","put","patch","query","common"],p=>{delete i[p]}),r.headers=Fa.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;l=l&&v.synchronous;const m=r.transitional||g4;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const p=[qF.bind(this),void 0];for(p.unshift(...s),p.push(...u),f=p.length,c=Promise.resolve(r);d<f;)c=c.then(p[d++],p[d++]);return c}f=s.length;let h=r;for(;d<f;){const p=s[d++],v=s[d++];try{h=p(h)}catch(m){v.call(this,m);break}}try{c=qF.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ff(this.defaults,t);const r=zte(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Dte(r,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){bS.prototype[t]=function(r,n){return this.request(ff(n||{},{method:t,url:r,data:n&&W.hasOwnProp(n,"data")?n.data:void 0}))}});W.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,o,s){return this.request(ff(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}bS.prototype[t]=r(),t!=="query"&&(bS.prototype[t+"Form"]=r(!0))});const Qw=bS;class _4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new ox(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
524subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _4(function(a){t=a}),cancel:t}}}const P_e=_4;function M_e(e){return function(r){return e.apply(null,r)}}function D_e(e){return W.isObject(e)&&e.isAxiosError===!0}const oM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(oM).forEach(([e,t])=>{oM[t]=e});const L_e=oM;function Vte(e){const t=new Qw(e),r=bte(Qw.prototype.request,t);return W.extend(r,Qw.prototype,t,{allOwnKeys:!0}),W.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Vte(ff(e,a))},r}const Lr=Vte(x4);Lr.Axios=Qw;Lr.CanceledError=ox;Lr.CancelToken=P_e;Lr.isCancel=$te;Lr.VERSION=b4;Lr.toFormData=Fk;Lr.AxiosError=Le;Lr.Cancel=Lr.CanceledError;Lr.all=function(t){return Promise.all(t)};Lr.spread=M_e;Lr.isAxiosError=D_e;Lr.mergeConfig=ff;Lr.AxiosHeaders=Fa;Lr.formToJSON=e=>Rte(W.isHTMLForm(e)?new FormData(e):e);Lr.getAdapter=jte.getAdapter;Lr.HttpStatusCode=L_e;Lr.default=Lr;const R_e=Lr;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const ze=R_e.create({baseURL:{}.VITE_API_BASE_URL||"/api",timeout:15e3});ze.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});ze.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("token"),localStorage.removeItem("user"),window.location.href="/login"),Promise.reject(e)});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const sM=e=>ze.post("/auth/login",e),$_e=e=>ze.post("/auth/register",e);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function O_e(){const[e,t]=z.useState(""),[r,n]=z.useState(""),[a,i]=z.useState(""),[o,s]=z.useState(!1);z.useState(!1),z.useState("InfiniSynapse 宿¹è®¤è¯ç¨æ·"),z.useState("https://api.dicebear.com/7.x/bottts/svg?seed=ifs_usr_892301");const l=Jr(f=>f.setAuth),u=mo();return w("div",{className:"min-h-screen flex bg-bg text-slate-100 select-none",children:[w("div",{className:"hidden md:flex md:w-[45%] bg-slate-900 border-r border-slate-800/40 flex-col justify-between p-12 relative overflow-hidden",children:[y("div",{className:"absolute top-[-20%] right-[-20%] w-[60%] h-[60%] bg-violet-500/5 rounded-full blur-[120px]"}),y("div",{className:"absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-emerald-500/5 rounded-full blur-[100px]"}),y("div",{className:"relative z-10",children:y("span",{className:"text-sm font-black tracking-widest uppercase text-violet-500",children:"YUGAN"})}),w("div",{className:"relative z-10 space-y-6 max-w-sm my-auto",children:[w("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-violet-500/10 text-violet-600 dar
524k:text-violet-400 text-xs font-bold",children:[y(gr,{size:12}),"éå¡è¡¨è¾¾ç´è§"]}),w("blockquote",{className:"space-y-4",children:[y("p",{className:"text-2xl font-black leading-relaxed tracking-wide text-slate-100",children:"âç²¾å½çè¯è¯ï¼æ¯ææ³ç衣裳ï¼èè¯æï¼åæ¯è¿ä»¶è¡£è£³çç¼å线ãâ"}),y("cite",{className:"block text-xs font-semibold text-slate-400 not-italic uppercase tracking-widest",children:"â è¯æå·¥å · ç§å¦å¤ä¹ ç³»ç»"})]})]}),y("div",{className:"relative z-10 text-[10px] text-slate-500 font-bold uppercase tracking-widest",children:"© 2026 YUGAN. ALL RIGHTS RESERVED."})]}),w("div",{className:"flex-1 flex items-center justify-center p-6 md:p-12 relative",children:[y("div",{className:"absolute top-[10%] left-[10%] w-32 h-32 bg-violet-500/5 rounded-full blur-3xl md:hidden"}),w("div",{className:"w-full max-w-sm space-y-7 relative z-10",children:[w("div",{className:"space-y-2",children:[y("h2",{className:"text-3xl font-black tracking-tight text-slate-100",children:"ç»å½è´¦æ·"}),y("p",{className:"text-xs text-slate-400 font-semibold",children:"ç»§ç»ä½ çè¯æå
åä¸ç§å¦å¤ä¹ 乿
"})]}),w("form",{onSubmit:async f=>{var h,p;f.preventDefault(),i(""),s(!0);try{const v=await sM({email:e,password:r});l(v.data.data.token,v.data.data.user),u("/")}catch(v){i(((p=(h=v.response)==null?void 0:h.data)==null?void 0:p.message)||"ç»å½å¤±è´¥")}finally{s(!1)}},className:"space-y-4",children:[w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"è´¦å· / é®ç®±å°å"}),y("input",{type:"text",value:e,onChange:f=>t(f.target.value),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"luoyi ææ³¨åé®ç®±",required:!0})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"ç»å½å¯ç "}),y("input",{type:"password",value:r,onChange:f=>n(f.target.value),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"å¯ç ",required:!0})]}),a&&y("p",{className:"text-xs font-bold text-red-500 bg-red-500/5 px-3 py-2 rounded-lg border border-red-500/10",children:a}),w("button",{type:"submit",disabled:o,className:"w-full py-3 bg-slate-800 hover:bg-slate-700 disabled:bg-slate-800/50 text-slate-100 rounded-xl font-bold text-sm tracking-widest transition-all border border-slate-700/60 flex items-center justify-center gap-1.5 group",children:[o?"éªè¯ä¸...":"å¼å§å¦ä¹ ",!o&&y(af,{size:14,className:"transition-transform group-hover:translate-x-0.5"})]}),y("div",{className:"pt-1 space-y-1.5",children:w("button",{type:"button",onClick:async()=>{var f,h;i(""),s(!0);try{const p=await sM({email:"luoyi",password:"123456"});l(p.data.data.token,p.data.data.user),u("/")}catch(p){i(((h=(f=p.response)==null?void 0:f.data)==null?void 0:h.message)||"ä½éªè´¦å·ç»å½å¤±è´¥")}finally{s(!1)}},disabled:o,className:"w-full py-2.5 px-4 bg-slate-900/60 hover:bg-slate-800/80 text-slate-300 border border-slate-800/80 rounded-xl font-bold text-xs transition-all flex items-center justify-center gap-2 disabled:opacity-50",children:[y(zm,{size:15,className:"text-violet-400"}),"ð è¯å§èå¸ä¸å±ééï¼éè¯å§è¯·å¿ç¹å»ï¼"]})})]}),w("p",{className:"text-center text-xs text-slate-400 font-semibold pt-1",children:["è¿æ²¡æè´¦å·ï¼"," ",y(Mn,{to:"/register",className:"text-violet-400 hover:underline font-bold",children:"ç«å³æ³¨å"})]})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function KF(){const e=Math.floor(Math.random()*10),t=Math.floor(Math.random()*10);return{a:e,b:t,answer:e+t}}function z_e(){const[e,t]=z.useState(""),[r,n]=z.useState(""),[a,i]=z.useState(""),[o,s]=z.useState(""),[l,u]=z.useState(""),[c,d]=z.useState(()=>KF()),[f,h]=z.useState(""),[p,v]=z.useState(!1),m=Jr(_=>_.setAuth),g=mo(),x=z.useCallback(()=>{d(KF()),u("")},[]);return w("div",{className:"min-h-screen flex bg-bg text-slate-100 select-none",children:[w("div",{className:"hidden md:flex md:w-[45%] bg-slate-900 border-r border-slate-800/40 flex-col justify-between p-12 relative overflow-hidden",children:[y("div",{className:"absolute top-[-20%] right-[-20%] w-[60%] h-[60%] bg-violet-500/5 rounded-full blur-[120px]"}),y("div",{className:"absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-emerald-500/5 rounded-full blur-[100px]"}),y("div",{className:"relative z-10",children:y("span",{className:"text-sm font-black tracking-widest uppercase text-violet-500",children:"YUGAN"})}),w("div",{className:"relative z-10 space-y-6 max-w-sm my-auto",children:[w("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-violet-500/10 text-violet-600 dar
524k:text-violet-400 text-xs font-bold",children:[y(gr,{size:12}),"ä»è¿éå¯ç¨"]}),w("blockquote",{className:"space-y-4",children:[y("p",{className:"text-2xl font-black leading-relaxed tracking-wide text-slate-100",children:"âæåçè´¨æä¸ååº¦ï¼æ¥èªäºæ¥å¸¸å»æçç¢ç£¨ãæ¯æ¥è诵ï¼å³æ¯éå»è¯æçè¿ç¨ãâ"}),y("cite",{className:"block text-xs font-semibold text-slate-400 not-italic uppercase tracking-widest",children:"â è¯æå·¥å · 表达éå¡ç³»ç»"})]})]}),y("div",{className:"relative z-10 text-[10px] text-slate-500 font-bold uppercase tracking-widest",children:"© 2026 YUGAN. ALL RIGHTS RESERVED."})]}),w("div",{className:"flex-1 flex items-center justify-center p-6 md:p-12 relative",children:[y("div",{className:"absolute top-[10%] left-[10%] w-32 h-32 bg-violet-500/5 rounded-full blur-3xl md:hidden"}),w("div",{className:"w-full max-w-sm space-y-8 relative z-10",children:[w("div",{className:"space-y-2",children:[y("h2",{className:"text-3xl font-black tracking-tight text-slate-100",children:"å å
¥å·¥å"}),y("p",{className:"text-xs text-slate-400 font-semibold",children:"å¼å¯ä½ çè¯è¨æç¥ä¸è¡¨è¾¾åèªæè¿å"})]}),w("form",{onSubmit:async _=>{var S,C;if(_.preventDefault(),h(""),r!==a){h("两次è¾å
¥çå¯ç ä¸ä¸è´ï¼è¯·éæ°è¾å
¥");return}const k=parseInt(l,10);if(isNaN(k)||k!==c.answer){h("éªè¯ç 䏿£ç¡®ï¼è¯·éæ°è¾å
¥"),x();return}v(!0);try{const T=await $_e({email:e,password:r,nickname:o});m(T.data.data.token,T.data.data.user),g("/")}catch(T){h(((C=(S=T.response)==null?void 0:S.data)==null?void 0:C.message)||"注å失败")}finally{v(!1)}},className:"space-y-5",children:[w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"æµç§°/ç§°å¼"}),y("input",{type:"text",value:o,onChange:_=>s(_.target.value),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"æä¹ç§°å¼ä½ ",required:!0})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"é®ç®±å°å"}),y("input",{type:"email",value:e,onChange:_=>t(_.target.value),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"[email protected]",required:!0})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"ç»å½å¯ç "}),y("input",{type:"password",value:r,onChange:_=>n(_.target.value),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"è³å° 6 ä½å¯ç ",required:!0})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"确认å¯ç "}),y("input",{type:"password",value:a,onChange:_=>i(_.target.value),className:`w-full px-4 py-3 rounded-xl border focus:outline-none focus:ring-1 transition-all ${a&&r!==a?"border-red-500/60 focus:border-red-500 focus:ring-red-500/30":a&&r===a?"border-emerald-500/60 focus:border-emerald-500 focus:ring-emerald-500/30":"border-slate-800/40 focus:border-violet-500 focus:ring-violet-500/30"} bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm`,placeholder:"忬¡è¾å
¥å¯ç ",required:!0}),a&&r!==a&&y("p",{className:"text-[11px] text-red-400 font-medium",children:"两次å¯ç ä¸ä¸è´"}),a&&r===a&&y("p",{className:"text-[11px] text-emerald-400 font-medium",children:"å¯ç ä¸è´ â"})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold text-slate-400 uppercase tracking-widest",children:"éªè¯ç "}),w("div",{className:"flex items-center gap-3",children:[y("input",{type:"text",inputMode:"numeric",value:l,onCh
524ange:_=>u(_.target.value.replace(/\D/g,"")),className:"w-full px-4 py-3 rounded-xl border border-slate-800/40 focus:border-violet-500 bg-slate-900/30 text-slate-100 placeholder:text-slate-500 text-sm focus:outline-none focus:ring-1 focus:ring-violet-500/30 transition-all",placeholder:"请è¾å
¥è®¡ç®ç»æ",required:!0}),y("div",{className:"flex items-center justify-center w-28 h-12 rounded-xl border border-slate-700/50 bg-gradient-to-br from-slate-100 to-slate-200 dark:from-slate-800 dark:to-slate-700 cursor-pointer select-none shrink-0",onClick:x,title:"ç¹å»å·æ°éªè¯ç ",children:w("span",{className:"text-lg font-black tracking-wider",style:{fontFamily:"'Comic Sans MS', 'Marker Felt', cursive",color:"#3b3b8a",textShadow:"1px 1px 0 rgba(0,0,0,0.1)",transform:`rotate(${Math.random()>.5?2:-2}deg)`},children:[c.a,"+",c.b,"=?"]})}),y("button",{type:"button",onClick:x,className:"p-2.5 rounded-xl border border-slate-800/40 text-slate-400 hover:text-violet-500 hover:border-violet-500/40 transition-all shrink-0",title:"æ¢ä¸é¢",children:y(Zo,{size:16})})]})]}),f&&y("p",{className:"text-xs font-bold text-red-500 bg-red-500/5 px-3 py-2 rounded-lg border border-red-500/10",children:f}),w("button",{type:"submit",disabled:p,className:"w-full py-3 bg-violet-600 hover:bg-violet-700 disabled:bg-violet-600/50 text-white rounded-xl font-bold text-sm tracking-widest transition-all shadow-md shadow-violet-600/10 flex items-center justify-center gap-1.5 group",children:[p?"注åä¸...":"注åå¹¶ç»å½",!p&&y(af,{size:14,className:"transition-transform group-hover:translate-x-0.5"})]})]}),w("p",{className:"text-center text-xs text-slate-400 font-semibold",children:["å·²æè´¦å·ï¼"," ",y(Mn,{to:"/login",className:"text-violet-500 hover:underline font-bold",children:"å»ç»å½"})]})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function F_e(){const[e,t]=z.useState(""),[r,n]=z.useState(""),[a,i]=z.useState(""),[o,s]=z.useState(!1),l=Jr(p=>p.setAuth),u=mo(),{theme:c,toggleTheme:d}=xte(),f=c==="light";return w("div",{className:"min-h-screen flex select-none font-sans transition-colors duration-300 relative",style:{backgroundColor:f?"#f8fafc":"#090d16",color:f?"#0f172a":"#f8fafc"},children:[y("button",{onClick:d,className:"absolute top-6 right-6 z-50 flex items-center gap-2 px-3.5 py-2 rounded-xl text-xs font-bold transition-all shadow-sm border cursor-pointer",style:{backgroundColor:f?"#ffffff"
524:"#0f172a",borderColor:f?"#cbd5e1":"#334155",color:f?"#0f172a":"#f8fafc"},title:f?"åæ¢ä¸ºæè²æ¨¡å¼":"åæ¢ä¸ºäº®è²æ¨¡å¼",children:f?w(Rt,{children:[y(H0,{size:15,className:"text-indigo-500"}),y("span",{children:"忢æè²"})]}):w(Rt,{children:[y(W0,{size:15,className:"text-amber-400"}),y("span",{children:"åæ¢äº®è²"})]})}),w("div",{className:"hidden md:flex md:w-[45%] border-r flex-col justify-between p-12 relative overflow-hidden transition-colors duration-300",style:{backgroundColor:f?"#ffffff":"#0f172a",borderColor:f?"#e2e8f0":"#1e293b"},children:[y("div",{className:"absolute top-[-20%] right-[-20%] w-[60%] h-[60%] bg-emerald-500/10 rounded-full blur-[120px]"}),y("div",{className:"absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-indigo-500/10 rounded-full blur-[100px]"}),y("div",{className:"relative z-10",children:w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-8 h-8 rounded-xl bg-emerald-500/20 border border-emerald-500/40 flex items-center justify-center text-emerald-500",children:y(zm,{size:20})}),w("span",{className:"text-base font-black tracking-widest uppercase",style:{color:f?"#0f172a":"#ffffff"},children:["表达å ",y("span",{className:"text-emerald-500",children:"管çåå°"})]})]})}),w("div",{className:"relative z-10 space-y-6 max-w-sm my-auto",children:[w("div",{className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 text-xs font-bold border border-emerald-500/30",children:[y(bee,{size:13}),"å®å
¨ç®¡æ§åºå"]}),w("blockquote",{className:"space-y-4",children:[y("p",{className:"text-2xl font-black leading-relaxed tracking-wide",style:{color:f?"#0f172a":"#ffffff"},children:"âç²¾åææ§å¦ä¹ å
容ï¼å
¨æ¹ä½æåç¨æ·ç表达åä¸æç»´æ ¼å±ãâ"}),y("cite",{className:"block text-xs font-semibold not-italic uppercase tracking-widest",style:{color:f?"#64748b":"#94a3b8"},children:"â 表达å · æ§å¶ä¸å¿"})]})]}),y("div",{className:"relative z-10 text-[11px] font-bold uppercase tracking-widest font-mono",style:{color:f?"#94a3b8":"#64748b"},children:"© 2026 LINGUAFORGE ADMIN PORTAL"})]}),y("div",{className:"flex-1 flex items-center justify-center p-6 md:p-12 relative transition-colors duration-300",style:{backgroundColor:f?"#f8fafc":"#090d16"},children:w("div",{className:"w-full max-w-sm space-y-8 relative z-10",children:[w("div",{className:"space-y-2 text-center md:text-left",children:[w("div",{className:"inline-flex md:flex items-center gap-2.5",children:[y("div",{className:"w-10 h-10 rounded-2xl bg-emerald-500/20 border border-emerald-500/30 flex items-center justify-center text-emerald-500 shrink-0",children:y(zm,{size:24})}),y("h2",{className:"text-2xl font-black tracking-tight",style:{color:f?"#0f172a":"#ffffff"},children:"管çå身份认è¯"})]}),y("p",{className:"text-xs font-semibold",style:{color:f?"#64748b":"#94a3b8"},children:"请è¾å
¥æ¨ç管çåè´¦å·ä¸å¯ç ç»å½æ§å¶ç³»ç»"})]}),w("form",{onSubmit:async p=>{var v,m;p.preventDefault(),i(""),s(!0);try{const g=await sM({email:e,password:r}),{token:x,user:b}=g.data.data;if(b.role!=="admin"){i("æéä¸è¶³ï¼ä»
ç³»ç»ç®¡çåå¯ç»å½åå°"),s(!1);return}l(x,b),u("/admin")}catch(g){i(((m=(v=g.response)==null?void 0:v.data)==null?void 0:m.message)||"è´¦å·æå¯ç é误ï¼è¯·æ ¸å¯¹åéè¯")}finally{s(!1)}},className:"space-y-5",children:[w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold uppercase tracking-wider",style:{color:f?"#334155":"#cbd5e1"},children:"管çåè´¦å· / é®ç®±"}),y("input",{type:"text",value:e,onChange:p=>t(p.target.value),className:"w-full px-4 py-3 rounded-xl text-sm font-medium focus:outline-none focus:border-emerald-500 shadow-sm",style:{backgroundColor:f?"#ffffff"
vendor: 4,932 bytes, lines 524-532
524:"#020617",border:f?"1px solid #cbd5e1":"1px solid #334155",color:f?"#0f172a":"#ffffff"},placeholder:"请è¾å ¥ç®¡çåè´¦å·æé®ç®±",required:!0})]}),w("div",{className:"space-y-1.5",children:[y("label",{className:"block text-xs font-bold uppercase tracking-wider",style:{color:f?"#334155":"#cbd5e1"},children:"å®å ¨ç»å½å¯ç "}),y("input",{type:"password",value:r,onChange:p=>n(p.target.value),className:"w-full px-4 py-3 rounded-xl text-sm font-medium focus:outline-none focus:border-emerald-500 shadow-sm",style:{backgroundColor:f?"#ffffff":"#020617",border:f?"1px solid #cbd5e1":"1px solid #334155",color:f?"#0f172a":"#ffffff"},placeholder:"请è¾å ¥ç»å½å¯ç ",required:!0})]}),a&&y("div",{className:"text-xs font-bold px-4 py-3 rounded-xl",style:{backgroundColor:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",color:"#ef4444"},children:a}),w("button",{type:"submit",disabled:o,className:"w-full py-3.5 font-black rounded-xl text-sm tracking-wider transition-all flex items-center justify-center gap-2 group cursor-pointer shadow-lg",style:{backgroundColor:"#10b981",color:"#ffffff"},children:[o?"æ£å¨è¿è¡å®å ¨éªè¯...":"å®å ¨ç»å½åå°",!o&&y(af,{size:16,className:"transition-transform group-hover:translate-x-1"})]})]})]})})]})}function B_e(){return y(yte,{children:y(F_e,{})})}var Ute={exports:{}},qa={},Gte={exports:{}},Hte={};/** 525 * @license React 526 * scheduler.production.min.js 527 * 528 * Copyright (c) Facebook, Inc. and its affiliates. 529 * 530 * This source code is licensed under the MIT license found in the 531 * LICENSE file in the root directory of this source tree. 532 */(function(e){function t(B,j){var I=B.length;B.push(j);e:for(;0<I;){var U=I-1>>>1,Y=B[U];if(0<a(Y,j))B[U]=j,B[I]=Y,I=U;else break e}}function r(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var j=B[0],I=B.pop();if(I!==j){B[0]=I;e:for(var U=0,Y=B.length,O=Y>>>1;U<O;){var H=2*(U+1)-1,ie=B[H],ee=H+1,se=B[ee];if(0>a(ie,I))ee<Y&&0>a(se,ie)?(B[U]=se,B[ee]=I,U=ee):(B[U]=ie,B[H]=I,U=H);else if(ee<Y&&0>a(se,I))B[U]=se,B[ee]=I,U=ee;else break e}}return j}function a(B,j){var I=B.sortIndex-j.sortIndex;return I!==0?I:B.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,v=!1,m=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(B){for(var j=r(u);j!==null;){if(j.callback===null)n(u);else if(j.startTime<=B)n(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=r(u)}}function _(B){if(v=!1,b(B),!p)if(r(l)!==null)p=!0,$(k);else{var j=r(u);j!==null&&V(_,j.startTime-B)}}function k(B,j){p=!1,v&&(v=!1,g(T),T=-1),h=!0;var I=f;try{for(b(j),d=r(l);d!==null&&(!(d.expirationTime>j)||B&&!N());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var Y=U(d.expirationTime<=j);j=e.unstable_now(),typeof Y=="function"?d.callback=Y:d===r(l)&&n(l),b(j)}else n(l);d=r(l)}if(d!==null)var O=!0;else{var H=r(u);H!==null&&V(_,H.startTime-j),O=!1}return O}finally{d=null,f=I,h=!1}}var S=!1,C=null,T=-1,E=5,A=-1;function N(){return!(e.unstable_now()-A<E)}function P(){if(C!==null){var B=e.unstable_now();A=B;var j=!0;try{j=C(!0,B)}finally{j?L():(S=!1,C=null)}}else S=!1}var L;if(typeof x=="function")L=function(){x(P)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,M=R.port2;R.port1.onmessage=P,L=function(){M.postMessage(null)}}else L=function(){m(P,0)};function $(B){C=B,S||(S=!0,L())}function V(B,j){T=m(function(){B(e.unstable_now())},j)}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(B){B.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,$(k))},e.unstable_forceFrameRate=function(B){0>B||125<B||(E=0<B?Math.floor(1e3/B):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(B){switch(f){case 1:case 2:case 3:var j=3;break;default:j=f}var I=f;f=j;try{return B()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,j){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var I=f;f=B;try{return j()}finally{f=I}},e.unstable_scheduleCallback=function(B,j,I){var U=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?U+I:U):I=U,B){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}
vendor: 4,630 bytes, lines 532-540
532return Y=I+Y,B={id:c++,callback:j,priorityLevel:B,startTime:I,expirationTime:Y,sortIndex:-1},I>U?(B.sortIndex=I,t(u,B),r(l)===null&&B===r(u)&&(v?(g(T),T=-1):v=!0,V(_,I-U))):(B.sortIndex=Y,t(l,B),p||h||(p=!0,$(k))),B},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(B){var j=f;return function(){var I=f;f=j;try{return B.apply(this,arguments)}finally{f=I}}}})(Hte);Gte.exports=Hte;var j_e=Gte.exports;/** 533 * @license React 534 * react-dom.production.min.js 535 * 536 * Copyright (c) Facebook, Inc. and its affiliates. 537 * 538 * This source code is licensed under the MIT license found in the 539 * LICENSE file in the root directory of this source tree. 540 */var Wte=z,Ha=j_e;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var qte=new Set,Km={};function Df(e,t){qp(e,t),qp(e+"Capture",t)}function qp(e,t){for(Km[e]=t,e=0;e<t.length;e++)qte.add(t[e])}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lM=Object.prototype.hasOwnProperty,V_e=/^[: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]*$/,ZF={},XF={};function U_e(e){return lM.call(XF,e)?!0:lM.call(ZF,e)?!1:V_e.test(e)?XF[e]=!0:(ZF[e]=!0,!1)}function G_e(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H_e(e,t,r,n){if(t===null||typeof t>"u"||G_e(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ea(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var un={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){un[e]=new ea(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];un[t]=new ea(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){un[e]=new ea(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){un[e]=new ea(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){un[e]=new ea(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){un[e]=new ea(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){un[e]=new ea(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){un[e]=new ea(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){un[e]=new ea(e,5,!1,e.toLowerCase(),null,!1,!1)});var S4=/[\-:]([a-z])/g;function k4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
540-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(S4,k4);un[t]=new ea(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(S4,k4);un[t]=new ea(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(S4,k4);un[t]=new ea(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){un[e]=new ea(e,1,!1,e.toLowerCase(),null,!1,!1)});un.xlinkHref=new ea("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){un[e]=new ea(e,1,!1,e.toLowerCase(),null,!0,!0)});function C4(e,t,r,n){var a=un.hasOwnProperty(t)?un[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(H_e(t,r,a,n)&&(r=null),n||a===null?U_e(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ml=Wte.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A1=Symbol.for("react.element"),Hh=Symbol.for("react.portal"),Wh=Symbol.for("react.fragment"),T4=Symbol.for("react.strict_mode"),uM=Symbol.for("react.profiler"),Yte=Symbol.for("react.provider"),Kte=Symbol.for("react.context"),A4=Symbol.for("react.forward_ref"),cM=Symbol.for("react.suspense"),dM=Symbol.for("react.suspense_list"),E4=Symbol.for("react.memo"),Xl=Symbol.for("react.lazy"),Zte=Symbol.for("react.offscreen"),JF=Symbol.iterator;function xg(e){return e===null||typeof e!="object"?null:(e=JF&&e[JF]||e["@@iterator"],typeof e=="function"?e:null)}var fr=Object.assign,hA;function S0(e){if(hA===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);
vendor: 4,302 bytes, lines 540-544
540hA=t&&t[1]||""}return` 541`+hA+e}var pA=!1;function vA(e,t){if(!e||pA)return"";pA=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var a=u.stack.split(` 542`),i=n.stack.split(` 543`),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(o!==1||s!==1)do if(o--,s--,0>s||a[o]!==i[s]){var l=` 544`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{pA=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?S0(e):""}function W_e(e){switch(e.tag){case 5:return S0(e.type);case 16:return S0("Lazy");case 13:return S0("Suspense");case 19:return S0("SuspenseList");case 0:case 2:case 15:return e=vA(e.type,!1),e;case 11:return e=vA(e.type.render,!1),e;case 1:return e=vA(e.type,!0),e;default:return""}}function fM(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wh:return"Fragment";case Hh:return"Portal";case uM:return"Profiler";case T4:return"StrictMode";case cM:return"Suspense";case dM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Kte:return(e.displayName||"Context")+".Consumer";case Yte:return(e._context.displayName||"Context")+".Provider";case A4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case E4:return t=e.displayName||null,t!==null?t:fM(e.type)||"Memo";case Xl:t=e._payload,e=e._init;try{return fM(e(t))}catch{}}return null}function q_e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fM(t);case 8:return t===T4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xte(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y_e(e){var t=Xte(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function E1(e){e._valueTracker||(e._valueTracker=Y_e(e))}function Jte(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Xte(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function wS(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hM(e,t){var r=t.checked;return fr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function QF(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Gu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}
vendor: 4,671 bytes, line 544
544function Qte(e,t){t=t.checked,t!=null&&C4(e,"checked",t,!1)}function pM(e,t){Qte(e,t);var r=Gu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vM(e,t.type,r):t.hasOwnProperty("defaultValue")&&vM(e,t.type,Gu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eB(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function vM(e,t,r){(t!=="number"||wS(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var k0=Array.isArray;function wp(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Gu(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gM(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ce(91));return fr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tB(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ce(92));if(k0(r)){if(1<r.length)throw Error(ce(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Gu(r)}}function ere(e,t){var r=Gu(t.value),n=Gu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function rB(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tre(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mM(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tre(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var N1,rre=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(N1=N1||document.createElement("div"),N1.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=N1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zm(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Q0={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},K_e=["Webkit","ms","Moz","O"];Object.keys(Q0).forEach(function(e){K_e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Q0[t]=Q0[e]})});function nre(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Q0.hasOwnProperty(e)&&Q0[e]?(""+t).trim():t+"px"}function are(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=nre(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var Z_e=fr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yM(e,t){if(t){if(Z_e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function xM(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
544ing";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 bM=null;function N4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wM=null,_p=null,Sp=null;function nB(e){if(e=ux(e)){if(typeof wM!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=Hk(t),wM(e.stateNode,e.type,t))}}function ire(e){_p?Sp?Sp.push(e):Sp=[e]:_p=e}function ore(){if(_p){var e=_p,t=Sp;if(Sp=_p=null,nB(e),t)for(e=0;e<t.length;e++)nB(t[e])}}function sre(e,t){return e(t)}function lre(){}var gA=!1;function ure(e,t,r){if(gA)return e(t,r);gA=!0;try{return sre(e,t,r)}finally{gA=!1,(_p!==null||Sp!==null)&&(lre(),ore())}}function Xm(e,t){var r=e.stateNode;if(r===null)return null;var n=Hk(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ce(231,t,typeof r));return r}var _M=!1;if(el)try{var bg={};Object.defineProperty(bg,"passive",{get:function(){_M=!0}}),window.addEventListener("test",bg,bg),window.removeEventListener("test",bg,bg)}catch{_M=!1}function X_e(e,t,r,n,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var em=!1,_S=null,SS=!1,SM=null,J_e={onError:function(e){em=!0,_S=e}};function Q_e(e,t,r,n,a,i,o,s,l){em=!1,_S=null,X_e.apply(J_e,arguments)}function eSe(e,t,r,n,a,i,o,s,l){if(Q_e.apply(this,arguments),em){if(em){var u=_S;em=!1,_S=null}else throw Error(ce(198));SS||(SS=!0,SM=u)}}function Lf(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function cre(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 aB(e){if(Lf(e)!==e)throw Error(ce(188))}function tSe(e){var t=e.alternate;if(!t){if(t=Lf(e),t===null)throw Error(ce(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return aB(a),e;if(i===n)return aB(a),t;i=i.sibling}throw Error(ce(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o)throw Error(ce(189))}}if(r.alternate!==n)throw Error(ce(190))}if(r.tag!==3)throw Error(ce(188));return r.stateNode.current===r?e:t}function dre(e){return e=tSe(e),e!==null?fre(e):null}function fre(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fre(e);if(t!==null)return t;e=e.sibling}return null}var hre=Ha.unstable_scheduleCallback,iB=Ha.unstable_cancelCallback,rSe=Ha.unstable_shouldYield,nSe=Ha.unstable_requestPaint,br=Ha.unstable_now,aSe=Ha.unstable_getCurrentPriorityLevel,I4=Ha.unstable_ImmediatePriority,pre=Ha.unstable_UserBlockingPriority,kS=Ha.unstable_NormalPriority,iSe=Ha.unstable_LowPriority,vre=Ha.unstable_IdlePriority,jk=null,Xo=null;function oSe(e){if(Xo&&typeof Xo.onCommitFiberRoot=="function")try{Xo.onCommitFiberRoot(jk,e,void 0,(e.current.flags&128)===128)}catch{}}var so=Math.clz32?Math.clz32:uSe,sSe=Math.log,lSe=Math.LN2;function uSe(e){return e>>>=0,e===0?32:31-(sSe(e)/lSe|0)|0}var I1=64,P1=4194304;function C0(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function CS(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~a;
vendor: 4,659 bytes, line 544
544s!==0?n=C0(s):(i&=o,i!==0&&(n=C0(i)))}else o=r&~a,o!==0?n=C0(o):i!==0&&(n=C0(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-so(t),a=1<<r,n|=e[r],t&=~a;return n}function cSe(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dSe(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-so(i),s=1<<o,l=a[o];l===-1?(!(s&r)||s&n)&&(a[o]=cSe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function kM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gre(){var e=I1;return I1<<=1,!(I1&4194240)&&(I1=64),e}function mA(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function sx(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-so(t),e[t]=r}function fSe(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-so(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}function P4(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-so(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var zt=0;function mre(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var yre,M4,xre,bre,wre,CM=!1,M1=[],Cu=null,Tu=null,Au=null,Jm=new Map,Qm=new Map,ru=[],hSe="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function oB(e,t){switch(e){case"focusin":case"focusout":Cu=null;break;case"dragenter":case"dragleave":Tu=null;break;case"mouseover":case"mouseout":Au=null;break;case"pointerover":case"pointerout":Jm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qm.delete(t.pointerId)}}function wg(e,t,r,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ux(t),t!==null&&M4(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function pSe(e,t,r,n,a){switch(t){case"focusin":return Cu=wg(Cu,e,t,r,n,a),!0;case"dragenter":return Tu=wg(Tu,e,t,r,n,a),!0;case"mouseover":return Au=wg(Au,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return Jm.set(i,wg(Jm.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Qm.set(i,wg(Qm.get(i)||null,e,t,r,n,a)),!0}return!1}function _re(e){var t=Cd(e.target);if(t!==null){var r=Lf(t);if(r!==null){if(t=r.tag,t===13){if(t=cre(r),t!==null){e.blockedOn=t,wre(e.priority,function(){xre(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function e_(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=TM(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);bM=n,r.target.dispatchEvent(n),bM=null}else return t=ux(r),t!==null&&M4(t),e.blockedOn=r,!1;t.shift()}return!0}function sB(e,t,r){e_(e)&&r.delete(t)}function vSe(){CM=!1,Cu!==null&&e_(Cu)&&(Cu=null),Tu!==null&&e_(Tu)&&(Tu=null),Au!==null&&e_(Au)&&(Au=null),Jm.forEach(sB),Qm.forEach(sB)}function _g(e,t){e.blockedOn===t&&(e.blockedOn=null,CM||(CM=!0,Ha.unstable_scheduleCallback(Ha.unstable_NormalPriority,vSe)))}function ey(e){function t(a){return _g(a,e)}if(0<M1.length){_g(M1[0],e);for(var r=1;r<M1.length;r++){var n=M1[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Cu!==null&&_g(Cu,e),Tu!==null&&_g(Tu,e),Au!==null&&_g(Au,e),Jm.forEach(t),Qm.forEach(t),r=0;r<ru.length;r++)n=ru[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ru.length&&(r=ru[0],r.blockedOn===null);)_re(r),r.blockedOn===null&&ru.shift()}var kp=ml.ReactCurrentBatchConfig,TS=!0;function gSe(e,t,r,n){var a=zt,i=kp.transition;kp.transition=null;try{zt=1,D4(e,t,r,n)}finally{zt=a,kp.transition=i}}function mSe(e,t,r,n){var a=zt,i=kp.transition;kp.transition=null;try{zt=4,D4(e,t,r,n)}finally{zt=a,kp.transition=i}}function D4(e,t,r,n){if(TS){var a=TM(e,t,r,n);
vendor: 4,990 bytes, line 544
544if(a===null)AA(e,t,n,AS,r),oB(e,n);else if(pSe(a,e,t,r,n))n.stopPropagation();else if(oB(e,n),t&4&&-1<hSe.indexOf(e)){for(;a!==null;){var i=ux(a);if(i!==null&&yre(i),i=TM(e,t,r,n),i===null&&AA(e,t,n,AS,r),i===a)break;a=i}a!==null&&n.stopPropagation()}else AA(e,t,n,null,r)}}var AS=null;function TM(e,t,r,n){if(AS=null,e=N4(n),e=Cd(e),e!==null)if(t=Lf(e),t===null)e=null;else if(r=t.tag,r===13){if(e=cre(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return AS=e,null}function Sre(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(aSe()){case I4:return 1;case pre:return 4;case kS:case iSe:return 16;case vre:return 536870912;default:return 16}default:return 16}}var su=null,L4=null,t_=null;function kre(){if(t_)return t_;var e,t=L4,r=t.length,n,a="value"in su?su.value:su.textContent,i=a.length;for(e=0;e<r&&t[e]===a[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===a[i-n];n++);return t_=a.slice(e,1<n?1-n:void 0)}function r_(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 D1(){return!0}function lB(){return!1}function Ya(e){function t(r,n,a,i,o){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?D1:lB,this.isPropagationStopped=lB,this}return fr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=D1)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=D1)},persist:function(){},isPersistent:D1}),t}var Pv={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},R4=Ya(Pv),lx=fr({},Pv,{view:0,detail:0}),ySe=Ya(lx),yA,xA,Sg,Vk=fr({},lx,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$4,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!==Sg&&(Sg&&e.type==="mousemove"?(yA=e.screenX-Sg.screenX,xA=e.screenY-Sg.screenY):xA=yA=0,Sg=e),yA)},movementY:function(e){return"movementY"in e?e.movementY:xA}}),uB=Ya(Vk),xSe=fr({},Vk,{dataTransfer:0}),bSe=Ya(xSe),wSe=fr({},lx,{relatedTarget:0}),bA=Ya(wSe),_Se=fr({},Pv,{animationName:0,elapsedTime:0,pseudoElement:0}),SSe=Ya(_Se),kSe=fr({},Pv,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CSe=Ya(kSe),TSe=fr({},Pv,{data:0}),cB=Ya(TSe),ASe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ESe={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"},NSe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ISe(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=NSe[e])?!!t[e]:!1}function $4(){return ISe}var PSe=fr({},lx,{key:function(e){if(e.key){var t=ASe[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 6,103 bytes, line 544
544return e.type==="keypress"?(e=r_(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ESe[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$4,charCode:function(e){return e.type==="keypress"?r_(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?r_(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),MSe=Ya(PSe),DSe=fr({},Vk,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dB=Ya(DSe),LSe=fr({},lx,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$4}),RSe=Ya(LSe),$Se=fr({},Pv,{propertyName:0,elapsedTime:0,pseudoElement:0}),OSe=Ya($Se),zSe=fr({},Vk,{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}),FSe=Ya(zSe),BSe=[9,13,27,32],O4=el&&"CompositionEvent"in window,tm=null;el&&"documentMode"in document&&(tm=document.documentMode);var jSe=el&&"TextEvent"in window&&!tm,Cre=el&&(!O4||tm&&8<tm&&11>=tm),fB=String.fromCharCode(32),hB=!1;function Tre(e,t){switch(e){case"keyup":return BSe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Are(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qh=!1;function VSe(e,t){switch(e){case"compositionend":return Are(t);case"keypress":return t.which!==32?null:(hB=!0,fB);case"textInput":return e=t.data,e===fB&&hB?null:e;default:return null}}function USe(e,t){if(qh)return e==="compositionend"||!O4&&Tre(e,t)?(e=kre(),t_=L4=su=null,qh=!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 Cre&&t.locale!=="ko"?null:t.data;default:return null}}var GSe={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 pB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GSe[e.type]:t==="textarea"}function Ere(e,t,r,n){ire(n),t=ES(t,"onChange"),0<t.length&&(r=new R4("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var rm=null,ty=null;function HSe(e){Fre(e,0)}function Uk(e){var t=Zh(e);if(Jte(t))return e}function WSe(e,t){if(e==="change")return t}var Nre=!1;if(el){var wA;if(el){var _A="oninput"in document;if(!_A){var vB=document.createElement("div");vB.setAttribute("oninput","return;"),_A=typeof vB.oninput=="function"}wA=_A}else wA=!1;Nre=wA&&(!document.documentMode||9<document.documentMode)}function gB(){rm&&(rm.detachEvent("onpropertychange",Ire),ty=rm=null)}function Ire(e){if(e.propertyName==="value"&&Uk(ty)){var t=[];Ere(t,ty,e,N4(e)),ure(HSe,t)}}function qSe(e,t,r){e==="focusin"?(gB(),rm=t,ty=r,rm.attachEvent("onpropertychange",Ire)):e==="focusout"&&gB()}function YSe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Uk(ty)}function KSe(e,t){if(e==="click")return Uk(t)}function ZSe(e,t){if(e==="input"||e==="change")return Uk(t)}function XSe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var po=typeof Object.is=="function"?Object.is:XSe;function ry(e,t){if(po(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!lM.call(t,a)||!po(e[a],t[a]))return!1}return!0}function mB(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yB(e,t){var r=mB(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=mB(r)}}function Pre(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pre(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mre(){for(var e=window,t=wS();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=wS(e.document)}return t}function z4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JSe(e){var t=Mre(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Pre(r.ownerDocument.documentElement,r)){if(n!==null&&z4(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=yB(r,i);var o=yB(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var QSe=el&&"documentMode"in document&&11>=document.documentMode,Yh=null,AM=null,nm=null,EM=!1;function xB(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;EM||Yh==null||Yh!==wS(n)||(n=Yh,"selectionStart"in n&&z4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,411 bytes, line 544
544sNode:n.focusNode,focusOffset:n.focusOffset}),nm&&ry(nm,n)||(nm=n,n=ES(AM,"onSelect"),0<n.length&&(t=new R4("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Yh)))}function L1(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Kh={animationend:L1("Animation","AnimationEnd"),animationiteration:L1("Animation","AnimationIteration"),animationstart:L1("Animation","AnimationStart"),transitionend:L1("Transition","TransitionEnd")},SA={},Dre={};el&&(Dre=document.createElement("div").style,"AnimationEvent"in window||(delete Kh.animationend.animation,delete Kh.animationiteration.animation,delete Kh.animationstart.animation),"TransitionEvent"in window||delete Kh.transitionend.transition);function Gk(e){if(SA[e])return SA[e];if(!Kh[e])return e;var t=Kh[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Dre)return SA[e]=t[r];return e}var Lre=Gk("animationend"),Rre=Gk("animationiteration"),$re=Gk("animationstart"),Ore=Gk("transitionend"),zre=new Map,bB="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function uc(e,t){zre.set(e,t),Df(t,[e])}for(var kA=0;kA<bB.length;kA++){var CA=bB[kA],e2e=CA.toLowerCase(),t2e=CA[0].toUpperCase()+CA.slice(1);uc(e2e,"on"+t2e)}uc(Lre,"onAnimationEnd");uc(Rre,"onAnimationIteration");uc($re,"onAnimationStart");uc("dblclick","onDoubleClick");uc("focusin","onFocus");uc("focusout","onBlur");uc(Ore,"onTransitionEnd");qp("onMouseEnter",["mouseout","mouseover"]);qp("onMouseLeave",["mouseout","mouseover"]);qp("onPointerEnter",["pointerout","pointerover"]);qp("onPointerLeave",["pointerout","pointerover"]);Df("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Df("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Df("onBeforeInput",["compositionend","keypress","textInput","paste"]);Df("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Df("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Df("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var T0="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(" "),r2e=new Set("cancel close invalid load scroll toggle".split(" ").concat(T0));function wB(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,eSe(n,t,void 0,e),e.currentTarget=null}function Fre(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;wB(a,s,u),i=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;wB(a,s,u),i=l}}}if(SS)throw e=SM,SS=!1,SM=null,e}function Xt(e,t){var r=t[DM];r===void 0&&(r=t[DM]=new Set);var n=e+"__bubble";r.has(n)||(Bre(t,e,2,!1),r.add(n))}function TA(e,t,r){var n=0;t&&(n|=4),Bre(r,e,n,t)}var R1="_reactListening"+Math.random().toString(36).slice(2);function ny(e){if(!e[R1]){e[R1]=!0,qte.forEach(function(r){r!=="selectionchange"&&(r2e.has(r)||TA(r,!1,e),TA(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[R1]||(t[R1]=!0,TA("selectionchange",!1,t))}}function Bre(e,t,r,n){switch(Sre(t)){case 1:var a=gSe;break;case 4:a=mSe;break;default:a=D4}r=a.bind(null,t,r,e),a=void 0,!_M||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function AA(e,t,r,n,a){var i=n;
vendor: 4,097 bytes, line 544
544if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===a||s.nodeType===8&&s.parentNode===a)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===a||l.nodeType===8&&l.parentNode===a))return;o=o.return}for(;s!==null;){if(o=Cd(s),o===null)return;if(l=o.tag,l===5||l===6){n=i=o;continue e}s=s.parentNode}}n=n.return}ure(function(){var u=i,c=N4(r),d=[];e:{var f=zre.get(e);if(f!==void 0){var h=R4,p=e;switch(e){case"keypress":if(r_(r)===0)break e;case"keydown":case"keyup":h=MSe;break;case"focusin":p="focus",h=bA;break;case"focusout":p="blur",h=bA;break;case"beforeblur":case"afterblur":h=bA;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=uB;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=bSe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=RSe;break;case Lre:case Rre:case $re:h=SSe;break;case Ore:h=OSe;break;case"scroll":h=ySe;break;case"wheel":h=FSe;break;case"copy":case"cut":case"paste":h=CSe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=dB}var v=(t&4)!==0,m=!v&&e==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var x=u,b;x!==null;){b=x;var _=b.stateNode;if(b.tag===5&&_!==null&&(b=_,g!==null&&(_=Xm(x,g),_!=null&&v.push(ay(x,_,b)))),m)break;x=x.return}0<v.length&&(f=new h(f,p,null,r,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==bM&&(p=r.relatedTarget||r.fromElement)&&(Cd(p)||p[tl]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=r.relatedTarget||r.toElement,h=u,p=p?Cd(p):null,p!==null&&(m=Lf(p),p!==m||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(v=uB,_="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(v=dB,_="onPointerLeave",g="onPointerEnter",x="pointer"),m=h==null?f:Zh(h),b=p==null?f:Zh(p),f=new v(_,x+"leave",h,r,c),f.target=m,f.relatedTarget=b,_=null,Cd(c)===u&&(v=new v(g,x+"enter",p,r,c),v.target=b,v.relatedTarget=m,_=v),m=_,h&&p)t:{for(v=h,g=p,x=0,b=v;b;b=Qf(b))x++;for(b=0,_=g;_;_=Qf(_))b++;for(;0<x-b;)v=Qf(v),x--;for(;0<b-x;)g=Qf(g),b--;for(;x--;){if(v===g||g!==null&&v===g.alternate)break t;v=Qf(v),g=Qf(g)}v=null}else v=null;h!==null&&_B(d,f,h,v,!1),p!==null&&m!==null&&_B(d,m,p,v,!0)}}e:{if(f=u?Zh(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var k=WSe;else if(pB(f))if(Nre)k=ZSe;else{k=YSe;var S=qSe}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=KSe);if(k&&(k=k(e,u))){Ere(d,k,r,c);break e}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&vM(f,"number",f.value)}switch(S=u?Zh(u):window,e){case"focusin":(pB(S)||S.contentEditable==="true")&&(Yh=S,AM=u,nm=null);break;case"focusout":nm=AM=Yh=null;break;case"mousedown":EM=!0;break;case"contextmenu":case"mouseup":case"dragend":EM=!1,xB(d,r,c);break;case"selectionchange":if(QSe)break;case"keydown":case"keyup":xB(d,r,c)}var C;if(O4)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else qh?Tre(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(Cre&&r.locale!=="ko"&&(qh||T!=="onCompositionStart"?T==="onCompositionEnd"&&qh&&(C=kre()):(su=c,L4="value"in su?su.value:su.textContent,qh=!0)),S=ES(u,T),0<S.length&&(T=new cB(T,e,null,r,c),d.push({event:T,listeners:S}),C?T.data=C:(C=Are(r),C!==null&&(T.data=C)))),(C=jSe?VSe(e,r):USe(e,r))&&(u=ES(u,"onBeforeInput"),0<u.length&&(c=new cB("onBeforeInput","beforeinput",null,r,c),d.push({event:c,listeners:u}),c.data=C))}Fre(d,t)}
vendor: 4,230 bytes, lines 544-545
544)}function ay(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ES(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Xm(e,r),i!=null&&n.unshift(ay(e,i,a)),i=Xm(e,t),i!=null&&n.push(ay(e,i,a))),e=e.return}return n}function Qf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _B(e,t,r,n,a){for(var i=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,a?(l=Xm(r,i),l!=null&&o.unshift(ay(r,l,s))):a||(l=Xm(r,i),l!=null&&o.push(ay(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var n2e=/\r\n?/g,a2e=/\u0000|\uFFFD/g;function SB(e){return(typeof e=="string"?e:""+e).replace(n2e,` 545`).replace(a2e,"")}function $1(e,t,r){if(t=SB(t),SB(e)!==t&&r)throw Error(ce(425))}function NS(){}var NM=null,IM=null;function PM(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var MM=typeof setTimeout=="function"?setTimeout:void 0,i2e=typeof clearTimeout=="function"?clearTimeout:void 0,kB=typeof Promise=="function"?Promise:void 0,o2e=typeof queueMicrotask=="function"?queueMicrotask:typeof kB<"u"?function(e){return kB.resolve(null).then(e).catch(s2e)}:MM;function s2e(e){setTimeout(function(){throw e})}function EA(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),ey(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);ey(t)}function Eu(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function CB(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Mv=Math.random().toString(36).slice(2),Bo="__reactFiber$"+Mv,iy="__reactProps$"+Mv,tl="__reactContainer$"+Mv,DM="__reactEvents$"+Mv,l2e="__reactListeners$"+Mv,u2e="__reactHandles$"+Mv;function Cd(e){var t=e[Bo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[tl]||r[Bo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=CB(e);e!==null;){if(r=e[Bo])return r;e=CB(e)}return t}e=r,r=e.parentNode}return null}function ux(e){return e=e[Bo]||e[tl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Zh(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ce(33))}function Hk(e){return e[iy]||null}var LM=[],Xh=-1;function cc(e){return{current:e}}function Qt(e){0>Xh||(e.current=LM[Xh],LM[Xh]=null,Xh--)}function Kt(e,t){Xh++,LM[Xh]=e.current,e.current=t}var Hu={},Dn=cc(Hu),ya=cc(!1),hf=Hu;function Yp(e,t){var r=e.type.contextTypes;if(!r)return Hu;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function xa(e){return e=e.childContextTypes,e!=null}function IS(){Qt(ya),Qt(Dn)}function TB(e,t,r){if(Dn.current!==Hu)throw Error(ce(168));Kt(Dn,t),Kt(ya,r)}function jre(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(ce(108,q_e(e)||"Unknown",a));return fr({},r,n)}function PS(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hu,hf=Dn.current,Kt(Dn,e),Kt(ya,ya.current),!0}function AB(e,t,r){var n=e.stateNode;if(!n)throw Error(ce(169));r?(e=jre(e,t,hf),n.__reactInternalMemoizedMergedChildContext=e,Qt(ya),Qt(Dn),Kt(Dn,e)):Qt(ya),Kt(ya,r)}var Ds=null,Wk=!1,NA=!1;function Vre(e){Ds===null?Ds=[e]:Ds.push(e)}function c2e(e){Wk=!0,Vre(e)}function dc(){if(!NA&&Ds!==null){NA=!0;var e=0,t=zt;try{var r=Ds;for(zt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ds=null,Wk=!1}catch(a){throw Ds!==null&&(Ds=Ds.slice(e+1)),hre(I4,dc),a}finally{zt=t,NA=!1}}return null}var Jh=[],Qh=0,MS=null,DS=0,pi=[],vi=0,pf=null,$s=1,Os="";
vendor: 4,651 bytes, line 545
545function nd(e,t){Jh[Qh++]=DS,Jh[Qh++]=MS,MS=e,DS=t}function Ure(e,t,r){pi[vi++]=$s,pi[vi++]=Os,pi[vi++]=pf,pf=e;var n=$s;e=Os;var a=32-so(n)-1;n&=~(1<<a),r+=1;var i=32-so(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,$s=1<<32-so(t)+a|r<<a|n,Os=i+e}else $s=1<<i|r<<a|n,Os=e}function F4(e){e.return!==null&&(nd(e,1),Ure(e,1,0))}function B4(e){for(;e===MS;)MS=Jh[--Qh],Jh[Qh]=null,DS=Jh[--Qh],Jh[Qh]=null;for(;e===pf;)pf=pi[--vi],pi[vi]=null,Os=pi[--vi],pi[vi]=null,$s=pi[--vi],pi[vi]=null}var Ba=null,Oa=null,rr=!1,eo=null;function Gre(e,t){var r=Si(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function EB(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ba=e,Oa=Eu(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ba=e,Oa=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=pf!==null?{id:$s,overflow:Os}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Si(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ba=e,Oa=null,!0):!1;default:return!1}}function RM(e){return(e.mode&1)!==0&&(e.flags&128)===0}function $M(e){if(rr){var t=Oa;if(t){var r=t;if(!EB(e,t)){if(RM(e))throw Error(ce(418));t=Eu(r.nextSibling);var n=Ba;t&&EB(e,t)?Gre(n,r):(e.flags=e.flags&-4097|2,rr=!1,Ba=e)}}else{if(RM(e))throw Error(ce(418));e.flags=e.flags&-4097|2,rr=!1,Ba=e}}}function NB(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ba=e}function O1(e){if(e!==Ba)return!1;if(!rr)return NB(e),rr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!PM(e.type,e.memoizedProps)),t&&(t=Oa)){if(RM(e))throw Hre(),Error(ce(418));for(;t;)Gre(e,t),t=Eu(t.nextSibling)}if(NB(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ce(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Oa=Eu(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Oa=null}}else Oa=Ba?Eu(e.stateNode.nextSibling):null;return!0}function Hre(){for(var e=Oa;e;)e=Eu(e.nextSibling)}function Kp(){Oa=Ba=null,rr=!1}function j4(e){eo===null?eo=[e]:eo.push(e)}var d2e=ml.ReactCurrentBatchConfig;function Zi(e,t){if(e&&e.defaultProps){t=fr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var LS=cc(null),RS=null,ep=null,V4=null;function U4(){V4=ep=RS=null}function G4(e){var t=LS.current;Qt(LS),e._currentValue=t}function OM(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Cp(e,t){RS=e,V4=ep=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(va=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(V4!==e)if(e={context:e,memoizedValue:t,next:null},ep===null){if(RS===null)throw Error(ce(308));ep=e,RS.dependencies={lanes:0,firstContext:e}}else ep=ep.next=e;return t}var Td=null;function H4(e){Td===null?Td=[e]:Td.push(e)}function Wre(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,H4(t)):(r.next=a.next,a.next=r),t.interleaved=r,rl(e,n)}function rl(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Jl=!1;function W4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qre(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Nt&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,rl(e,r)}return a=n.interleaved,a===null?(t.next=t,H4(n)):(t.next=a.next,a.next=t),n.interleaved=t,rl(e,r)}function n_(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,P4(e,r)}}function IB(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}
vendor: 5,523 bytes, line 545
545while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function $S(e,t,r,n){var a=e.updateQueue;Jl=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?i=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=a.baseState;o=0,c=u=l=null,s=i;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(f=t,h=r,v.tag){case 1:if(p=v.payload,typeof p=="function"){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=v.payload,f=typeof p=="function"?p.call(h,d,f):p,f==null)break e;d=fr({},d,f);break e;case 2:Jl=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=a.effects,f===null?a.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;f=s,s=f.next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}while(1);if(c===null&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);gf|=o,e.lanes=o,e.memoizedState=d}}function PB(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(ce(191,a));a.call(n)}}}var Yre=new Wte.Component().refs;function zM(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:fr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var qk={isMounted:function(e){return(e=e._reactInternals)?Lf(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Wn(),a=Pu(e),i=Gs(n,a);i.payload=t,r!=null&&(i.callback=r),t=Nu(e,i,a),t!==null&&(lo(t,e,a,n),n_(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Wn(),a=Pu(e),i=Gs(n,a);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Nu(e,i,a),t!==null&&(lo(t,e,a,n),n_(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Wn(),n=Pu(e),a=Gs(r,n);a.tag=2,t!=null&&(a.callback=t),t=Nu(e,a,n),t!==null&&(lo(t,e,n,r),n_(t,e,n))}};function MB(e,t,r,n,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,o):t.prototype&&t.prototype.isPureReactComponent?!ry(r,n)||!ry(a,i):!0}function Kre(e,t,r){var n=!1,a=Hu,i=t.contextType;return typeof i=="object"&&i!==null?i=Ni(i):(a=xa(t)?hf:Dn.current,n=t.contextTypes,i=(n=n!=null)?Yp(e,a):Hu),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=qk,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function DB(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&qk.enqueueReplaceState(t,t.state,null)}function FM(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=Yre,W4(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=Ni(i):(i=xa(t)?hf:Dn.current,a.context=Yp(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(zM(e,t,i,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&qk.enqueueReplaceState(a,a.state,null),$S(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function kg(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ce(309));var n=r.stateNode}if(!n)throw Error(ce(147,e));var a=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=a.refs;s===Yre&&(s=a.refs={}),o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(ce(284));if(!r._owner)throw Error(ce(290,e))}return e}function z1(e,t){throw e=Object.prototype.toString.call(t),Error(ce(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function LB(e){var t=e._init;return t(e._payload)}function Zre(e){function t(g,x){if(e){var b=g.deletions;b===null?(g.deletions=[x],g.flags|=16):b.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=Mu(g,x),g.index=0,g.sibling=null,g}function i(g,x,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<x?(g.flags|=2,x):b):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,b,_){return x===null||x.tag!==6?(x=$A(b,g.mode,_),x.return=g,x):(x=a(x,b),x.return=g,x)}function l(g,x,b,_){var k=b.type;
vendor: 4,770 bytes, line 545
545return k===Wh?c(g,x,b.props.children,_,b.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Xl&&LB(k)===x.type)?(_=a(x,b.props),_.ref=kg(g,x,b),_.return=g,_):(_=u_(b.type,b.key,b.props,null,g.mode,_),_.ref=kg(g,x,b),_.return=g,_)}function u(g,x,b,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=OA(b,g.mode,_),x.return=g,x):(x=a(x,b.children||[]),x.return=g,x)}function c(g,x,b,_,k){return x===null||x.tag!==7?(x=Gd(b,g.mode,_,k),x.return=g,x):(x=a(x,b),x.return=g,x)}function d(g,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=$A(""+x,g.mode,b),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case A1:return b=u_(x.type,x.key,x.props,null,g.mode,b),b.ref=kg(g,null,x),b.return=g,b;case Hh:return x=OA(x,g.mode,b),x.return=g,x;case Xl:var _=x._init;return d(g,_(x._payload),b)}if(k0(x)||xg(x))return x=Gd(x,g.mode,b,null),x.return=g,x;z1(g,x)}return null}function f(g,x,b,_){var k=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return k!==null?null:s(g,x,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case A1:return b.key===k?l(g,x,b,_):null;case Hh:return b.key===k?u(g,x,b,_):null;case Xl:return k=b._init,f(g,x,k(b._payload),_)}if(k0(b)||xg(b))return k!==null?null:c(g,x,b,_,null);z1(g,b)}return null}function h(g,x,b,_,k){if(typeof _=="string"&&_!==""||typeof _=="number")return g=g.get(b)||null,s(x,g,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case A1:return g=g.get(_.key===null?b:_.key)||null,l(x,g,_,k);case Hh:return g=g.get(_.key===null?b:_.key)||null,u(x,g,_,k);case Xl:var S=_._init;return h(g,x,b,S(_._payload),k)}if(k0(_)||xg(_))return g=g.get(b)||null,c(x,g,_,k,null);z1(x,_)}return null}function p(g,x,b,_){for(var k=null,S=null,C=x,T=x=0,E=null;C!==null&&T<b.length;T++){C.index>T?(E=C,C=null):E=C.sibling;var A=f(g,C,b[T],_);if(A===null){C===null&&(C=E);break}e&&C&&A.alternate===null&&t(g,C),x=i(A,x,T),S===null?k=A:S.sibling=A,S=A,C=E}if(T===b.length)return r(g,C),rr&&nd(g,T),k;if(C===null){for(;T<b.length;T++)C=d(g,b[T],_),C!==null&&(x=i(C,x,T),S===null?k=C:S.sibling=C,S=C);return rr&&nd(g,T),k}for(C=n(g,C);T<b.length;T++)E=h(C,g,T,b[T],_),E!==null&&(e&&E.alternate!==null&&C.delete(E.key===null?T:E.key),x=i(E,x,T),S===null?k=E:S.sibling=E,S=E);return e&&C.forEach(function(N){return t(g,N)}),rr&&nd(g,T),k}function v(g,x,b,_){var k=xg(b);if(typeof k!="function")throw Error(ce(150));if(b=k.call(b),b==null)throw Error(ce(151));for(var S=k=null,C=x,T=x=0,E=null,A=b.next();C!==null&&!A.done;T++,A=b.next()){C.index>T?(E=C,C=null):E=C.sibling;var N=f(g,C,A.value,_);if(N===null){C===null&&(C=E);break}e&&C&&N.alternate===null&&t(g,C),x=i(N,x,T),S===null?k=N:S.sibling=N,S=N,C=E}if(A.done)return r(g,C),rr&&nd(g,T),k;if(C===null){for(;!A.done;T++,A=b.next())A=d(g,A.value,_),A!==null&&(x=i(A,x,T),S===null?k=A:S.sibling=A,S=A);return rr&&nd(g,T),k}for(C=n(g,C);!A.done;T++,A=b.next())A=h(C,g,T,A.value,_),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?T:A.key),x=i(A,x,T),S===null?k=A:S.sibling=A,S=A);return e&&C.forEach(function(P){return t(g,P)}),rr&&nd(g,T),k}function m(g,x,b,_){if(typeof b=="object"&&b!==null&&b.type===Wh&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case A1:e:{for(var k=b.key,S=x;S!==null;){if(S.key===k){if(k=b.type,k===Wh){if(S.tag===7){r(g,S.sibling),x=a(S,b.props.children),x.return=g,g=x;break e}}else if(S.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Xl&&LB(k)===S.type){r(g,S.sibling),x=a(S,b.props),x.ref=kg(g,S,b),x.return=g,g=x;break e}r(g,S);break}else t(g,S);S=S.sibling}b.type===Wh?(x=Gd(b.props.children,g.mode,_,b.key),x.return=g,g=x):(_=u_(b.type,b.key,b.props,null,g.mode,_),_.ref=kg(g,x,b),_.return=g,g=_)}return o(g);case Hh:e:{for(S=b.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){r(g,x.sibling),x=a(x,b.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=OA(b,g.mode,_),x.return=g,g=x}return o(g);case Xl:return S=b._init,m(g,x,S(b._payload),_)}if(k0(b))return p(g,x,b,_);if(xg(b))return v(g,x,b,_);z1(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(r(g,x.sibling),x=a(x,b),x.return=g,g=x):(r(g,x),x=$A(b,g.mode,_),x.return=g,g=x),o(g)):r(g,x)}return m}var Zp=Zre(!0),Xre=Zre(!1),cx={},Jo=cc(cx),oy=cc(cx),sy=cc(cx);function Ad(e){if(e===cx)throw Error(ce(174));return e}function q4(e,t){switch(Kt(sy,t),Kt(oy,e),Kt(Jo,cx),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mM(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mM(t,e)}
vendor: 17,512 bytes, lines 545-547
545Qt(Jo),Kt(Jo,t)}function Xp(){Qt(Jo),Qt(oy),Qt(sy)}function Jre(e){Ad(sy.current);var t=Ad(Jo.current),r=mM(t,e.type);t!==r&&(Kt(oy,e),Kt(Jo,r))}function Y4(e){oy.current===e&&(Qt(Jo),Qt(oy))}var sr=cc(0);function OS(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var IA=[];function K4(){for(var e=0;e<IA.length;e++)IA[e]._workInProgressVersionPrimary=null;IA.length=0}var a_=ml.ReactCurrentDispatcher,PA=ml.ReactCurrentBatchConfig,vf=0,dr=null,Or=null,qr=null,zS=!1,am=!1,ly=0,f2e=0;function wn(){throw Error(ce(321))}function Z4(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!po(e[r],t[r]))return!1;return!0}function X4(e,t,r,n,a,i){if(vf=i,dr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,a_.current=e===null||e.memoizedState===null?g2e:m2e,e=r(n,a),am){i=0;do{if(am=!1,ly=0,25<=i)throw Error(ce(301));i+=1,qr=Or=null,t.updateQueue=null,a_.current=y2e,e=r(n,a)}while(am)}if(a_.current=FS,t=Or!==null&&Or.next!==null,vf=0,qr=Or=dr=null,zS=!1,t)throw Error(ce(300));return e}function J4(){var e=ly!==0;return ly=0,e}function Lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?dr.memoizedState=qr=e:qr=qr.next=e,qr}function Ii(){if(Or===null){var e=dr.alternate;e=e!==null?e.memoizedState:null}else e=Or.next;var t=qr===null?dr.memoizedState:qr.next;if(t!==null)qr=t,Or=e;else{if(e===null)throw Error(ce(310));Or=e,e={memoizedState:Or.memoizedState,baseState:Or.baseState,baseQueue:Or.baseQueue,queue:Or.queue,next:null},qr===null?dr.memoizedState=qr=e:qr=qr.next=e}return qr}function uy(e,t){return typeof t=="function"?t(e):t}function MA(e){var t=Ii(),r=t.queue;if(r===null)throw Error(ce(311));r.lastRenderedReducer=e;var n=Or,a=n.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(a!==null){i=a.next,n=n.baseState;var s=o=null,l=null,u=i;do{var c=u.lane;if((vf&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,o=n):l=l.next=d,dr.lanes|=c,gf|=c}u=u.next}while(u!==null&&u!==i);l===null?o=n:l.next=s,po(n,t.memoizedState)||(va=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do i=a.lane,dr.lanes|=i,gf|=i,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function DA(e){var t=Ii(),r=t.queue;if(r===null)throw Error(ce(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(a!==null){r.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);po(i,t.memoizedState)||(va=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function Qre(){}function ene(e,t){var r=dr,n=Ii(),a=t(),i=!po(n.memoizedState,a);if(i&&(n.memoizedState=a,va=!0),n=n.queue,Q4(nne.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||qr!==null&&qr.memoizedState.tag&1){if(r.flags|=2048,cy(9,rne.bind(null,r,n,a,t),void 0,null),Qr===null)throw Error(ce(349));vf&30||tne(r,t,a)}return a}function tne(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=dr.updateQueue,t===null?(t={lastEffect:null,stores:null},dr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function rne(e,t,r,n){t.value=r,t.getSnapshot=n,ane(t)&&ine(e)}function nne(e,t,r){return r(function(){ane(t)&&ine(e)})}function ane(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!po(e,r)}catch{return!0}}function ine(e){var t=rl(e,1);t!==null&&lo(t,e,1,-1)}function RB(e){var t=Lo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:uy,lastRenderedState:e},t.queue=e,e=e.dispatch=v2e.bind(null,dr,e),[t.memoizedState,e]}function cy(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=dr.updateQueue,t===null?(t={lastEffect:null,stores:null},dr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function one(){return Ii().memoizedState}function i_(e,t,r,n){var a=Lo();dr.flags|=e,a.memoizedState=cy(1|t,r,void 0,n===void 0?null:n)}function Yk(e,t,r,n){var a=Ii();n=n===void 0?null:n;var i=void 0;if(Or!==null){var o=Or.memoizedState;if(i=o.destroy,n!==null&&Z4(n,o.deps)){a.memoizedState=cy(t,r,i,n);return}}dr.flags|=e,a.memoizedState=cy(1|t,r,i,n)}function $B(e,t){return i_(8390656,8,e,t)}function Q4(e,t){return Yk(2048,8,e,t)}function sne(e,t){return Yk(4,2,e,t)}function lne(e,t){return Yk(4,4,e,t)}function une(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cne(e,t,r){return r=r!=null?r.concat([e]):null,Yk(4,4,une.bind(null,t,e),r)}function eO(){}function dne(e,t){var r=Ii();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z4(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function fne(e,t){var r=Ii();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Z4(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function hne(e,t,r){return vf&21?(po(r,t)||(r=gre(),dr.lanes|=r,gf|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,va=!0),e.memoizedState=r)}function h2e(e,t){var r=zt;zt=r!==0&&4>r?r:4,e(!0);var n=PA.transition;PA.transition={};try{e(!1),t()}finally{zt=r,PA.transition=n}}function pne(){return Ii().memoizedState}function p2e(e,t,r){var n=Pu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},vne(e))gne(t,r);else if(r=Wre(e,t,r,n),r!==null){var a=Wn();lo(r,e,n,a),mne(r,t,n)}}function v2e(e,t,r){var n=Pu(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(vne(e))gne(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,po(s,o)){var l=t.interleaved;l===null?(a.next=a,H4(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}r=Wre(e,t,a,n),r!==null&&(a=Wn(),lo(r,e,n,a),mne(r,t,n))}}function vne(e){var t=e.alternate;return e===dr||t!==null&&t===dr}function gne(e,t){am=zS=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mne(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,P4(e,r)}}var FS={readContext:Ni,useCallback:wn,useContext:wn,useEffect:wn,useImperativeHandle:wn,useInsertionEffect:wn,useLayoutEffect:wn,useMemo:wn,useReducer:wn,useRef:wn,useState:wn,useDebugValue:wn,useDeferredValue:wn,useTransition:wn,useMutableSource:wn,useSyncExternalStore:wn,useId:wn,unstable_isNewReconciler:!1},g2e={readContext:Ni,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:Ni,useEffect:$B,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,i_(4194308,4,une.bind(null,t,e),r)},useLayoutEffect:function(e,t){return i_(4194308,4,e,t)},useInsertionEffect:function(e,t){return i_(4,2,e,t)},useMemo:function(e,t){var r=Lo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Lo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=p2e.bind(null,dr,e),[n.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:RB,useDebugValue:eO,useDeferredValue:function(e){return Lo().memoizedState=e},useTransition:function(){var e=RB(!1),t=e[0];return e=h2e.bind(null,e[1]),Lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=dr,a=Lo();if(rr){if(r===void 0)throw Error(ce(407));r=r()}else{if(r=t(),Qr===null)throw Error(ce(349));vf&30||tne(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,$B(nne.bind(null,n,i,e),[e]),n.flags|=2048,cy(9,rne.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Lo(),t=Qr.identifierPrefix;if(rr){var r=Os,n=$s;r=(n&~(1<<32-so(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ly++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=f2e++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},m2e={readContext:Ni,useCallback:dne,useContext:Ni,useEffect:Q4,useImperativeHandle:cne,useInsertionEffect:sne,useLayoutEffect:lne,useMemo:fne,useReducer:MA,useRef:one,useState:function(){return MA(uy)},useDebugValue:eO,useDeferredValue:function(e){var t=Ii();return hne(t,Or.memoizedState,e)},useTransition:function(){var e=MA(uy)[0],t=Ii().memoizedState;return[e,t]},useMutableSource:Qre,useSyncExternalStore:ene,useId:pne,unstable_isNewReconciler:!1},y2e={readContext:Ni,useCallback:dne,useContext:Ni,useEffect:Q4,useImperativeHandle:cne,useInsertionEffect:sne,useLayoutEffect:lne,useMemo:fne,useReducer:DA,useRef:one,useState:function(){return DA(uy)},useDebugValue:eO,useDeferredValue:function(e){var t=Ii();return Or===null?t.memoizedState=e:hne(t,Or.memoizedState,e)},useTransition:function(){var e=DA(uy)[0],t=Ii().memoizedState;return[e,t]},useMutableSource:Qre,useSyncExternalStore:ene,useId:pne,unstable_isNewReconciler:!1};function Jp(e,t){try{var r="",n=t;do r+=W_e(n),n=n.return;while(n);var a=r}catch(i){a=` 546Error generating stack: `+i.message+` 547`+i.stack}return{value:e,source:t,stack:a,digest:null}}function LA(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function BM(e,t){try{}catch(r){setTimeout(function(){throw r})}}var x2e=typeof WeakMap=="function"?WeakMap:Map;function yne(e,t,r){r=Gs(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){jS||(jS=!0,ZM=n),BM(e,t)},r}function xne(e,t,r){r=Gs(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){BM(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){BM(e,t),typeof n!="function"&&(Iu===null?Iu=new Set([this]):Iu.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function OB(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new x2e;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=D2e.bind(null,e,t,r),t.then(e,e))}function zB(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function FB(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Gs(-1,1),t.tag=2,Nu(r,t,1))),r.lanes|=1),e)}var b2e=ml.ReactCurrentOwner,va=!1;function jn(e,t,r,n){t.child=e===null?Xre(t,null,r,n):Zp(t,e.child,r,n)}function BB(e,t,r,n,a){r=r.render;var i=t.ref;return Cp(t,a),n=X4(e,t,r,n,i,a),r=J4(),e!==null&&!va?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,nl(e,t,a)):(rr&&r&&F4(t),t.flags|=1,jn(e,t,n,a),t.child)}function jB(e,t,r,n,a){if(e===null){var i=r.type;return typeof i=="function"&&!lO(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,bne(e,t,i,n,a)):(e=u_(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(r=r.compare,r=r!==null?r:ry,r(o,n)&&e.ref===t.ref)return nl(e,t,a)}return t.flags|=1,e=Mu(i,n),e.ref=t.ref,e.return=t,t.child=e}function bne(e,t,r,n,a){if(e!==null){var i=e.memoizedProps;if(ry(i,n)&&e.ref===t.ref)if(va=!1,t.pendingProps=n=i,(e.lanes&a)!==0)e.flags&131072&&(va=!0);else return t.lanes=e.lanes,nl(e,t,a)}return jM(e,t,r,n,a)}function wne(e,t,r){var n=t.pendingProps,a=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Kt(rp,La),La|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Kt(rp,La),La|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,Kt(rp,La),La|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,Kt(rp,La),La|=n;return jn(e,t,a,r),t.child}function _ne(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function jM(e,t,r,n,a){var i=xa(r)?hf:Dn.current;return i=Yp(t,i),Cp(t,a),r=X4(e,t,r,n,i,a),n=J4(),e!==null&&!va?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,nl(e,t,a)):(rr&&n&&F4(t),t.flags|=1,jn(e,t,r,a),t.child)}function VB(e,t,r,n,a){if(xa(r)){var i=!0;PS(t)}else i=!1;if(Cp(t,a),t.stateNode===null)o_(e,t),Kre(t,r,n),FM(t,r,n,a),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Ni(u):(u=xa(r)?hf:Dn.current,u=Yp(t,u));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&DB(t,o,n,u),Jl=!1;var f=t.memoizedState;o.state=f,$S(t,n,o,a),l=t.memoizedState,s!==n||f!==l||ya.current||Jl?(typeof c=="function"&&(zM(t,r,c,n),l=t.memoizedState),(s=Jl||MB(t,r,s,n,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,qre(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Zi(t.type,s),o.props=u,d=t.pendingProps,f=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Ni(l):(l=xa(r)?hf:Dn.current,l=Yp(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&DB(t,o,n,l),Jl=!1,f=t.memoizedState,o.state=f,$S(t,n,o,a);var p=t.memoizedState;s!==d||f!==p||ya.current||Jl?(typeof h=="function"&&(zM(t,r,h,n),p=t.memoizedState),(u=Jl||MB(t,r,u,n,f,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return VM(e,t,r,n,i,a)}function VM(e,t,r,n,a,i){_ne(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return a&&AB(t,r,!1),nl(e,t,i);n=t.stateNode,b2e.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Zp(t,e.child,null,i),t.child=Zp(t,null,s,i)):jn(e,t,s,i),t.memoizedState=n.state,a&&AB(t,r,!0),t.child}function Sne(e){var t=e.stateNode;t.pendingContext?TB(e,t.pendingContext,t.pendingContext!==t.context):t.context&&TB(e,t.context,!1),q4(e,t.containerInfo)}function UB(e,t,r,n,a){return Kp(),j4(a),t.flags|=256,jn(e,t,r,n),t.child}var UM={dehydrated:null,treeContext:null,retryLane:0};function GM(e){return{baseLanes:e,cachePool:null,transitions:null}}function kne(e,t,r){var n=t.pendingProps,a=sr.current,i=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(a&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Kt(sr,a&1),e===null)return $M(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,i?(n=t.mode,i=t.child,o={mode:"hidden",children:o},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Xk(o,n,0,null),e=Gd(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=GM(r),t.memoizedState=UM,e):tO(t,o));if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null))return w2e(e,t,o,n,s,a,r);if(i){i=n.fallback,o=t.mode,a=e.child,s=a.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Mu(a,l),n.subtreeFlags=a.subtreeFlags&14680064),s!==null?i=Mu(s,i):(i=Gd(i,o,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,o=e.child.memoizedState,o=o===null?GM(r):{base
vendor: 7,095 bytes, line 547
547Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~r,t.memoizedState=UM,n}return i=e.child,e=i.sibling,n=Mu(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function tO(e,t){return t=Xk({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function F1(e,t,r,n){return n!==null&&j4(n),Zp(t,e.child,null,r),e=tO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function w2e(e,t,r,n,a,i,o){if(r)return t.flags&256?(t.flags&=-257,n=LA(Error(ce(422))),F1(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=Xk({mode:"visible",children:n.children},a,0,null),i=Gd(i,a,o,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&Zp(t,e.child,null,o),t.child.memoizedState=GM(o),t.memoizedState=UM,i);if(!(t.mode&1))return F1(e,t,o,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(ce(419)),n=LA(i,n,void 0),F1(e,t,o,n)}if(s=(o&e.childLanes)!==0,va||s){if(n=Qr,n!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,rl(e,a),lo(n,e,a,-1))}return sO(),n=LA(Error(ce(421))),F1(e,t,o,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=L2e.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Oa=Eu(a.nextSibling),Ba=t,rr=!0,eo=null,e!==null&&(pi[vi++]=$s,pi[vi++]=Os,pi[vi++]=pf,$s=e.id,Os=e.overflow,pf=t),t=tO(t,n.children),t.flags|=4096,t)}function GB(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),OM(e.return,t,r)}function RA(e,t,r,n,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function Cne(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(jn(e,t,n.children,r),n=sr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&GB(e,r,t);else if(e.tag===19)GB(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Kt(sr,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&OS(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),RA(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&OS(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}RA(t,!0,r,null,i);break;case"together":RA(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function o_(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),gf|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,r=Mu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Mu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function _2e(e,t,r){switch(t.tag){case 3:Sne(t),Kp();break;case 5:Jre(t);break;case 1:xa(t.type)&&PS(t);break;case 4:q4(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Kt(LS,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Kt(sr,sr.current&1),t.flags|=128,null):r&t.child.childLanes?kne(e,t,r):(Kt(sr,sr.current&1),e=nl(e,t,r),e!==null?e.sibling:null);Kt(sr,sr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Cne(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Kt(sr,sr.current),n)break;return null;case 22:case 23:return t.lanes=0,wne(e,t,r)}return nl(e,t,r)}var Tne,HM,Ane,Ene;Tne=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};HM=function(){};Ane=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Ad(Jo.current);var i=null;switch(r){case"input":a=hM(e,a),n=hM(e,n),i=[];break;case"select":a=fr({},a,{value:void 0}),n=fr({},n,{value:void 0}),i=[];break;case"textarea":a=gM(e,a),n=gM(e,n),i=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=NS)}yM(r,n);var o;r=null;for(u in a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var s=a[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Km.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=a!=null?a[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(i||(i=[]),i.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Km.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Xt("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Ene=function(e,t,r,n){r!==n&&(t.flags|=4)};function Cg(e,t){if(!rr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function S2e(e,t,r){var n=t.pendingProps;switch(B4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return xa(t.type)&&IS(),_n(t),null;
vendor: 15,503 bytes, line 547
547case 3:return n=t.stateNode,Xp(),Qt(ya),Qt(Dn),K4(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(O1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,eo!==null&&(QM(eo),eo=null))),HM(e,t),_n(t),null;case 5:Y4(t);var a=Ad(sy.current);if(r=t.type,e!==null&&t.stateNode!=null)Ane(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ce(166));return _n(t),null}if(e=Ad(Jo.current),O1(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Bo]=t,n[iy]=i,e=(t.mode&1)!==0,r){case"dialog":Xt("cancel",n),Xt("close",n);break;case"iframe":case"object":case"embed":Xt("load",n);break;case"video":case"audio":for(a=0;a<T0.length;a++)Xt(T0[a],n);break;case"source":Xt("error",n);break;case"img":case"image":case"link":Xt("error",n),Xt("load",n);break;case"details":Xt("toggle",n);break;case"input":QF(n,i),Xt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Xt("invalid",n);break;case"textarea":tB(n,i),Xt("invalid",n)}yM(r,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];o==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&$1(n.textContent,s,e),a=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&$1(n.textContent,s,e),a=["children",""+s]):Km.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Xt("scroll",n)}switch(r){case"input":E1(n),eB(n,i,!0);break;case"textarea":E1(n),rB(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=NS)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tre(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Bo]=t,e[iy]=n,Tne(e,t,!1,!1),t.stateNode=e;e:{switch(o=xM(r,n),r){case"dialog":Xt("cancel",e),Xt("close",e),a=n;break;case"iframe":case"object":case"embed":Xt("load",e),a=n;break;case"video":case"audio":for(a=0;a<T0.length;a++)Xt(T0[a],e);a=n;break;case"source":Xt("error",e),a=n;break;case"img":case"image":case"link":Xt("error",e),Xt("load",e),a=n;break;case"details":Xt("toggle",e),a=n;break;case"input":QF(e,n),a=hM(e,n),Xt("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=fr({},n,{value:void 0}),Xt("invalid",e);break;case"textarea":tB(e,n),a=gM(e,n),Xt("invalid",e);break;default:a=n}yM(r,a),s=a;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?are(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&rre(e,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Zm(e,l):typeof l=="number"&&Zm(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Km.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Xt("scroll",e):l!=null&&C4(e,i,l,o))}switch(r){case"input":E1(e),eB(e,n,!1);break;case"textarea":E1(e),rB(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Gu(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?wp(e,!!n.multiple,i,!1):n.defaultValue!=null&&wp(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=NS)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _n(t),null;case 6:if(e&&t.stateNode!=null)Ene(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ce(166));if(r=Ad(sy.current),Ad(Jo.current),O1(t)){if(n=t.stateNode,r=t.memoizedProps,n[Bo]=t,(i=n.nodeValue!==r)&&(e=Ba,e!==null))switch(e.tag){case 3:$1(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$1(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Bo]=t,t.stateNode=n}return _n(t),null;case 13:if(Qt(sr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(rr&&Oa!==null&&t.mode&1&&!(t.flags&128))Hre(),Kp(),t.flags|=98560,i=!1;else if(i=O1(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(ce(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ce(317));i[Bo]=t}else Kp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_n(t),i=!1}else eo!==null&&(QM(eo),eo=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||sr.current&1?Br===0&&(Br=3):sO())),t.updateQueue!==null&&(t.flags|=4),_n(t),null);case 4:return Xp(),HM(e,t),e===null&&ny(t.stateNode.containerInfo),_n(t),null;case 10:return G4(t.type._context),_n(t),null;case 17:return xa(t.type)&&IS(),_n(t),null;case 19:if(Qt(sr),i=t.memoizedState,i===null)return _n(t),null;if(n=(t.flags&128)!==0,o=i.rendering,o===null)if(n)Cg(i,!1);else{if(Br!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=OS(e),o!==null){for(t.flags|=128,Cg(i,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Kt(sr,sr.current&1|2),t.child}e=e.sibling}i.tail!==null&&br()>Qp&&(t.flags|=128,n=!0,Cg(i,!1),t.lanes=4194304)}else{if(!n)if(e=OS(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cg(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!rr)return _n(t),null}else 2*br()-i.renderingStartTime>Qp&&r!==1073741824&&(t.flags|=128,n=!0,Cg(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=br(),t.sibling=null,r=sr.current,Kt(sr,n?r&1|2:r&1),t):(_n(t),null);case 22:case 23:return oO(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?La&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function k2e(e,t){switch(B4(t),t.tag){case 1:return xa(t.type)&&IS(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xp(),Qt(ya),Qt(Dn),K4(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Y4(t),null;case 13:if(Qt(sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));Kp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qt(sr),null;case 4:return Xp(),null;case 10:return G4(t.type._context),null;case 22:case 23:return oO(),null;case 24:return null;default:return null}}var B1=!1,En=!1,C2e=typeof WeakSet=="function"?WeakSet:Set,Ee=null;function tp(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){pr(e,t,n)}else r.current=null}function WM(e,t,r){try{r()}catch(n){pr(e,t,n)}}var HB=!1;function T2e(e,t){if(NM=TS,e=Mre(),z4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(s=o+a),d!==i||n!==0&&d.nodeType!==3||(l=o+n),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++u===a&&(s=o),f===i&&++c===n&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(IM={focusedElem:e,selectionRange:r},TS=!1,Ee=t;Ee!==null;)if(t=Ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ee=e;else for(;Ee!==null;){t=Ee;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,m=p.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Zi(t.type,v),m);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(_){pr(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Ee=e;break}Ee=t.return}return p=HB,HB=!1,p}function im(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&WM(t,r,i)}a=a.next}while(a!==n)}}function Kk(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function qM(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Nne(e){var t=e.alternate;t!==null&&(e.alternate=null,Nne(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bo],delete t[iy],delete t[DM],delete t[l2e],delete t[u2e])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ine(e){return e.tag===5||e.tag===3||e.tag===4}function WB(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ine(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function YM(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=NS));else if(n!==4&&(e=e.child,e!==null))for(YM(e,t,r),e=e.sibling;e!==null;)YM(e,t,r),e=e.sibling}function KM(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(KM(e,t,r),e=e.sibling;e!==null;)KM(e,t,r),e=e.sibling}var tn=null,Ji=!1;function Dl(e,t,r){for(r=r.child;r!==null;)Pne(e,t,r),r=r.sibling}function Pne(e,t,r){if(Xo&&typeof Xo.onCommitFiberUnmount=="function")try{Xo.onCommitFiberUnmount(jk,r)}catch{}switch(r.tag){case 5:En||tp(r,t);case 6:var n=tn,a=Ji;tn=null,Dl(e,t,r),tn=n,Ji=a,tn!==null&&(Ji?(e=tn,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):tn.removeChild(r.stateNode));break;case 18:tn!==null&&(Ji?(e=tn,r=r.stateNode,e.nodeType===8?EA(e.parentNode,r):e.nodeType===1&&EA(e,r),ey(e)):EA(tn,r.stateNode));break;case 4:n=tn,a=Ji,tn=r.stateNode.containerInfo,Ji=!0,Dl(e,t,r),tn=n,Ji=a;break;case 0:case 11:case 14:case 15:if(!En&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&WM(r,t,o),a=a.next}while(a!==n)}Dl(e,t,r);break;case 1:if(!En&&(tp(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){pr(r,t,s)}Dl(e,t,r);break;case 21:Dl(e,t,r);break;case 22:r.mode&1?(En=(n=En)||r.memoizedState!==null,Dl(e,t,r),En=n):Dl(e,t,r);break;default:Dl(e,t,r)}}function qB(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new C2e),t.forEach(function(n){var a=R2e.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Ui(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:tn=s.stateNode,Ji=!1;break e;case 3:tn=s.stateNode.containerInfo,Ji=!0;break e;case 4:tn=s.stateNode.containerInfo,Ji=!0;break e}s=s.return}if(tn===null)throw Error(ce(160));Pne(i,o,a),tn=null,Ji=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(u){pr(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mne(t,e),t=t.sibling}function Mne(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ui(t,e),ko(e),n&4){try{im(3,e,e.return),Kk(3,e)}catch(v){pr(e,e.return,v)}try{im(5,e,e.return)}catch(v){pr(e,e.return,v)}}break;case 1:Ui(t,e),ko(e),n&512&&r!==null&&tp(r,r.return);break;case 5:if(Ui(t,e),ko(e),n&512&&r!==null&&tp(r,r.return),e.flags&32){var a=e.stateNode;try{Zm(a,"")}catch(v){pr(e,e.return,v)}}if(n&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=r!==null?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&Qte(a,i),xM(s,o);var u=xM(s,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?are(a,d):c==="dangerouslySetInnerHTML"?rre(a,d):c==="children"?Zm(a,d):C4(a,c,d,u)}switch(s){case"input":pM(a,i);break;case"textarea":ere(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?wp(a,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?wp(a,!!i.multiple,i.defaultValue,!0):wp(a,!!i.multiple,i.multiple?[]:"",!1))}a[iy]=i}catch(v){pr(e,e.return,v)}}break;case 6:if(Ui(t,e),ko(e),n&4){if(e.stateNode===null)throw Error(ce(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(v){pr(e,e.return,v)}}break;case 3:if(Ui(t,e),ko(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ey(t.containerInfo)}catch(v){pr(e,e.return,v)}break;case 4:Ui(t,e),ko(e);break;case 13:Ui(t,e),ko(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(aO=br())),n&4&&qB(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(En=(u=En)||c,Ui(t,e),En=u):Ui(t,e),ko(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Ee=e,c=e.child;c!==null;){for(d=Ee=c;Ee!==null;){switch(f=Ee,h=f.child,f.tag){case 0:case 11:case 14:case 15:im(4,f,f.return);break;case 1:tp(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(v){pr(n,r,v)}}break;case 5:tp(f,f.return);break;case 22:if(f.memoizedState!==null){KB(d);continue}}h!==null?(h.return=f,Ee=h):KB(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{a=d.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=nre("display",o))}catch(v){pr(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){pr(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.
vendor: 13,646 bytes, line 547
547child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ui(t,e),ko(e),n&4&&qB(e);break;case 21:break;default:Ui(t,e),ko(e)}}function ko(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Ine(r)){var n=r;break e}r=r.return}throw Error(ce(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Zm(a,""),n.flags&=-33);var i=WB(e);KM(e,i,a);break;case 3:case 4:var o=n.stateNode.containerInfo,s=WB(e);YM(e,s,o);break;default:throw Error(ce(161))}}catch(l){pr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function A2e(e,t,r){Ee=e,Dne(e)}function Dne(e,t,r){for(var n=(e.mode&1)!==0;Ee!==null;){var a=Ee,i=a.child;if(a.tag===22&&n){var o=a.memoizedState!==null||B1;if(!o){var s=a.alternate,l=s!==null&&s.memoizedState!==null||En;s=B1;var u=En;if(B1=o,(En=l)&&!u)for(Ee=a;Ee!==null;)o=Ee,l=o.child,o.tag===22&&o.memoizedState!==null?ZB(a):l!==null?(l.return=o,Ee=l):ZB(a);for(;i!==null;)Ee=i,Dne(i),i=i.sibling;Ee=a,B1=s,En=u}YB(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,Ee=i):YB(e)}}function YB(e){for(;Ee!==null;){var t=Ee;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:En||Kk(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!En)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:Zi(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&PB(t,i,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}PB(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&ey(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ce(163))}En||t.flags&512&&qM(t)}catch(f){pr(t,t.return,f)}}if(t===e){Ee=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ee=r;break}Ee=t.return}}function KB(e){for(;Ee!==null;){var t=Ee;if(t===e){Ee=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Ee=r;break}Ee=t.return}}function ZB(e){for(;Ee!==null;){var t=Ee;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Kk(4,t)}catch(l){pr(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(l){pr(t,a,l)}}var i=t.return;try{qM(t)}catch(l){pr(t,i,l)}break;case 5:var o=t.return;try{qM(t)}catch(l){pr(t,o,l)}}}catch(l){pr(t,t.return,l)}if(t===e){Ee=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Ee=s;break}Ee=t.return}}var E2e=Math.ceil,BS=ml.ReactCurrentDispatcher,rO=ml.ReactCurrentOwner,Ai=ml.ReactCurrentBatchConfig,Nt=0,Qr=null,Pr=null,on=0,La=0,rp=cc(0),Br=0,dy=null,gf=0,Zk=0,nO=0,om=null,ua=null,aO=0,Qp=1/0,As=null,jS=!1,ZM=null,Iu=null,j1=!1,lu=null,VS=0,sm=0,XM=null,s_=-1,l_=0;function Wn(){return Nt&6?br():s_!==-1?s_:s_=br()}function Pu(e){return e.mode&1?Nt&2&&on!==0?on&-on:d2e.transition!==null?(l_===0&&(l_=gre()),l_):(e=zt,e!==0||(e=window.event,e=e===void 0?16:Sre(e.type)),e):1}function lo(e,t,r,n){if(50<sm)throw sm=0,XM=null,Error(ce(185));sx(e,r,n),(!(Nt&2)||e!==Qr)&&(e===Qr&&(!(Nt&2)&&(Zk|=r),Br===4&&nu(e,on)),ba(e,n),r===1&&Nt===0&&!(t.mode&1)&&(Qp=br()+500,Wk&&dc()))}function ba(e,t){var r=e.callbackNode;dSe(e,t);var n=CS(e,e===Qr?on:0);if(n===0)r!==null&&iB(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&iB(r),t===1)e.tag===0?c2e(XB.bind(null,e)):Vre(XB.bind(null,e)),o2e(function(){!(Nt&6)&&dc()}),r=null;else{switch(mre(n)){case 1:r=I4;break;case 4:r=pre;break;case 16:r=kS;break;case 536870912:r=vre;break;default:r=kS}r=jne(r,Lne.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Lne(e,t){if(s_=-1,l_=0,Nt&6)throw Error(ce(327));var r=e.callbackNode;if(Tp()&&e.callbackNode!==r)return null;var n=CS(e,e===Qr?on:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=US(e,n);else{t=n;var a=Nt;Nt|=2;var i=$ne();(Qr!==e||on!==t)&&(As=null,Qp=br()+500,Ud(e,t));do try{P2e();break}catch(s){Rne(e,s)}while(1);U4(),BS.current=i,Nt=a,Pr!==null?t=0:(Qr=null,on=0,t=Br)}if(t!==0){if(t===2&&(a=kM(e),a!==0&&(n=a,t=JM(e,a))),t===1)throw r=dy,Ud(e,0),nu(e,n),ba(e,br()),r;if(t===6)nu(e,n);else{if(a=e.current.alternate,!(n&30)&&!N2e(a)&&(t=US(e,n),t===2&&(i=kM(e),i!==0&&(n=i,t=JM(e,i))),t===1))throw r=dy,Ud(e,0),nu(e,n),ba(e,br()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(ce(345));case 2:ad(e,ua,As);break;case 3:if(nu(e,n),(n&130023424)===n&&(t=aO+500-br(),10<t)){if(CS(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Wn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=MM(ad.bind(null,e,ua,As),t);break}ad(e,ua,As);break;case 4:if(nu(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-so(n);i=1<<o,o=t[o],o>a&&(a=o),n&=~i}if(n=a,n=br()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*E2e(n/1960))-n,10<n){e.timeoutHandle=MM(ad.bind(null,e,ua,As),n);break}ad(e,ua,As);break;case 5:ad(e,ua,As);break;default:throw Error(ce(329))}}}return ba(e,br()),e.callbackNode===r?Lne.bind(null,e):null}function JM(e,t){var r=om;return e.current.memoizedState.isDehydrated&&(Ud(e,t).flags|=256),e=US(e,t),e!==2&&(t=ua,ua=r,t!==null&&QM(t)),e}function QM(e){ua===null?ua=e:ua.push.apply(ua,e)}function N2e(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!po(i(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nu(e,t){for(t&=~nO,t&=~Zk,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-so(t),n=1<<r;e[r]=-1,t&=~n}}function XB(e){if(Nt&6)throw Error(ce(327));Tp();var t=CS(e,0);if(!(t&1))return ba(e,br()),null;var r=US(e,t);if(e.tag!==0&&r===2){var n=kM(e);n!==0&&(t=n,r=JM(e,n))}if(r===1)throw r=dy,Ud(e,0),nu(e,t),ba(e,br()),r;if(r===6)throw Error(ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ad(e,ua,As),ba(e,br()),null}function iO(e,t){var r=Nt;Nt|=1;try{return e(t)}finally{Nt=r,Nt===0&&(Qp=br()+500,Wk&&dc())}}function mf(e){lu!==null&&lu.tag===0&&!(Nt&6)&&Tp();var t=Nt;Nt|=1;var r=Ai.transition,n=zt;try{if(Ai.transition=null,zt=1,e)return e()}finally{zt=n,Ai.transition=r,Nt=t,!(Nt&6)&&dc()}}function oO(){La=rp.current,Qt(rp)}function Ud(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,i2e(r)),Pr!==null)for(r=Pr.return;r!==null;){var n=r;switch(B4(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&IS();break;case 3:Xp(),Qt(ya),Qt(Dn),K4();break;case 5:Y4(n);break;case 4:Xp();break;case 13:Qt(sr);break;case 19:Qt(sr);break;case 10:G4(n.type._context);break;case 22:case 23:oO()}r=r.return}if(Qr=e,Pr=e=Mu(e.current,null),on=La=t,Br=0,dy=null,nO=Zk=gf=0,ua=om=null,Td!==null){for(t=0;t<Td.length;t++)if(r=Td[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,i=r.pending;if(i!==null){var o=i.next;i.next=a,n.next=o}r.pending=n}Td=null}return e}function Rne(e,t){do{var r=Pr;try{if(U4(),a_.current=FS,zS){for(var n=dr.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}zS=!1}if(vf=0,qr=Or=dr=null,am=!1,ly=0,rO.current=null,r===null||r.return===null){Br=1,dy=t,Pr=null;break}e:{var i=e,o=r.return,s=r,l=t;if(t=on,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=zB(o);if(h!==null){h.flags&=-257,FB(h,o,s,i,t),h.mode&1&&OB(i,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var v=new Set;v.add(l),t.updateQueue=v}else p.add(l);break e}else{if(!(t&1)){OB(i,u,t),sO();break e}l=Error(ce(426))}}else if(rr&&s.mode&1){var m=zB(o);if(m!==null){!(m.flags&65536)&&(m.flags|=256),FB(m,o,s,i,t),j4(Jp(l,s));break e}}i=l=Jp(l,s),Br!==4&&(Br=2),om===null?om=[i]:om.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=yne(i,l,t);IB(i,g);break e;case 1:s=l;var x=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Iu===null||!Iu.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var _=xne(i,s,t);IB(i,_);break e}}i=i.return}while(i!==null)}zne(r)}catch(k){t=k,Pr===r&&r!==null&&(Pr=r=r.return);continue}break}while(1)}function $ne(){var e=BS.current;return BS.current=FS,e===null?FS:e}function sO(){(Br===0||Br===3||Br===2)&&(Br=4),Qr===null||!(gf&268435455)&&!(Zk&268435455)||nu(Qr,on)}function US(e,t){var r=Nt;Nt|=2;var n=$ne();(Qr!==e||on!==t)&&(As=null,Ud(e,t));do try{I2e();break}catch(a){Rne(e,a)}while(1);if(U4(),Nt=r,BS.current=n,Pr!==null)throw Error(ce(261));return Qr=null,on=0,Br}function I2e(){for(;Pr!==null;)One(Pr)}function P2e(){for(;Pr!==null&&!rSe();)One(Pr)}function One(e){var t=Bne(e.alternate,e,La);e.memoizedProps=e.pendingProps,t===null?zne(e):Pr=t,rO.current=null}function zne(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=k2e(r,t),r!==null){r.flags&=32767,Pr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Br=6,Pr=null;return}}else if(r=S2e(r,t,La),r!==null){Pr=r;return}if(t=t.sibling,t!==null){Pr=t;return}Pr=t=e}while(t!==null);Br===0&&(Br=5)}function ad(e,t,r){var n=zt,a=Ai.transition;try{Ai.transition=null,zt=1,M2e(e,t,r,n)}finally{Ai.transition=a,zt=n}return null}function M2e(e,t,r,n){do Tp();while(lu!==null);if(Nt&6)throw Error(ce(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ce(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(fSe(e,i),e===Qr&&(Pr=Qr=null,on=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||j1||(j1=!0,jne(kS,function(){return Tp(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=Ai.transition,Ai.transition=null;var o=zt;zt=1;var s=Nt;Nt|=4,rO.current=null,T2e(e,r),Mne(r,e),JSe(IM),TS=!!NM,IM=NM=null,e.current=r,A2e(r),nSe(),Nt=s,zt=o,Ai.transition=i}else e.current=r;if(j1&&(j1=!1,lu=e,VS=a),i=e.pendingLanes,i===0&&(Iu=null),oSe(r.stateNode),ba(e,br()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(jS)throw jS=!1,e=ZM,ZM=null,e;return VS&1&&e.tag!==0&&Tp(),i=e.pendingLanes,i&1?e===XM?sm++:(sm=0,XM=e):sm=0,dc(),null}function Tp(){if(lu!==null){var e=mre(VS),t=Ai.transition,r=zt;try{if(Ai.transition=null,zt=16>e?16:e,lu===null)var n=!1;else{if(e=lu,lu=null,VS=0,Nt&6)throw Error(ce(331));var a=Nt;for(Nt|=4,Ee=e.current;Ee!==null;){var i=Ee,o=i.child;if(Ee.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Ee=u;Ee!==null;){var c=Ee;switch(c.tag){case 0:case 11:case 15:im(8,c,i)}var d=c.child;if(d!==null)d.return=c,Ee=d;else for(;Ee!==null;){c=Ee;var f=c.sibling,h=c.return;if(Nne(c),c===u){Ee=null;break}if(f!==null){f.return=h,Ee=f;break}Ee=h}}}var p=i.alternate;if(p!==null){var v=p.child;if(v!==null){p.child=null;do{var m=v.sibling;v.sibling=null,v=m}while(v!==null)}}Ee=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Ee=o;else e:for(;Ee!==null;){if(i=Ee,i.flags&2048)switch(i.tag){case 0:case 11:case 15:im(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Ee=g;break e}Ee=i.return}}var x=e.current;for(Ee=x;Ee!==null;){o=Ee;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,Ee=b;else e:for(o=x;Ee!==null;){if(s=Ee,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Kk(9,s)}}catch(k){pr(s,s.return,k)}if(s===o){Ee=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,Ee=_;break e}Ee=s.return}}if(Nt=a,dc(),Xo&&typeof Xo.onPostCommitFiberRoot=="function")try{Xo.onPostCommitFiberRoot(jk,e)}catch{}n=!0}return n}finally{zt=r,Ai.transition=t}}return!1}function JB(e,t,r){t=Jp(r,t),t=yne(e,t,1),e=Nu(e,t,1),t=Wn(),e!==null&&(sx(e,1,t),ba(e,t))}function pr(e,t,r){if(e.tag===3)JB(e,e,r);else for(;t!==null;){if(t.tag===3){JB(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Iu===null||!Iu.has(n))){e=Jp(r,e),e=xne(t,e,1),t=Nu(t,e,1),e=Wn(),t!==null&&(sx(t,1,e),ba(t,e));break}}t=t.return}}function D2e(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Wn(),e.pingedLanes|=e.suspendedLanes&r,Qr===e&&(on&r)===r&&(Br===4||Br===3&&(on&130023424)===on&&500>br()-aO?Ud(e,0):nO|=r),ba(e,t)}function Fne(e,t){t===0&&(e.mode&1?(t=P1,P1<<=1,!(P1&130023424)&&(P1=4194304)):t=1);var r=Wn();e=rl(e,t),e!==null&&(sx(e,t,r),ba(e,r))}function L2e(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Fne(e,r)}function R2e(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ce(314))}n!==null&&n.delete(t),Fne(e,r)}var Bne;Bne=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ya.current)va=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return va=!1,_2e(e,t,r);va=!!(e.flags&131072)}
vendor: 4,828 bytes, line 547
547else va=!1,rr&&t.flags&1048576&&Ure(t,DS,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;o_(e,t),e=t.pendingProps;var a=Yp(t,Dn.current);Cp(t,r),a=X4(null,t,n,e,a,r);var i=J4();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xa(n)?(i=!0,PS(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,W4(t),a.updater=qk,t.stateNode=a,a._reactInternals=t,FM(t,n,e,r),t=VM(null,t,n,!0,i,r)):(t.tag=0,rr&&i&&F4(t),jn(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(o_(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=O2e(n),e=Zi(n,e),a){case 0:t=jM(null,t,n,e,r);break e;case 1:t=VB(null,t,n,e,r);break e;case 11:t=BB(null,t,n,e,r);break e;case 14:t=jB(null,t,n,Zi(n.type,e),r);break e}throw Error(ce(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Zi(n,a),jM(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Zi(n,a),VB(e,t,n,a,r);case 3:e:{if(Sne(t),e===null)throw Error(ce(387));n=t.pendingProps,i=t.memoizedState,a=i.element,qre(e,t),$S(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=Jp(Error(ce(423)),t),t=UB(e,t,n,r,a);break e}else if(n!==a){a=Jp(Error(ce(424)),t),t=UB(e,t,n,r,a);break e}else for(Oa=Eu(t.stateNode.containerInfo.firstChild),Ba=t,rr=!0,eo=null,r=Xre(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Kp(),n===a){t=nl(e,t,r);break e}jn(e,t,n,r)}t=t.child}return t;case 5:return Jre(t),e===null&&$M(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,PM(n,a)?o=null:i!==null&&PM(n,i)&&(t.flags|=32),_ne(e,t),jn(e,t,o,r),t.child;case 6:return e===null&&$M(t),null;case 13:return kne(e,t,r);case 4:return q4(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Zp(t,null,n,r):jn(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Zi(n,a),BB(e,t,n,a,r);case 7:return jn(e,t,t.pendingProps,r),t.child;case 8:return jn(e,t,t.pendingProps.children,r),t.child;case 12:return jn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Kt(LS,n._currentValue),n._currentValue=o,i!==null)if(po(i.value,o)){if(i.children===a.children&&!ya.current){t=nl(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Gs(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),OM(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ce(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),OM(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}jn(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Cp(t,r),a=Ni(a),n=n(a),t.flags|=1,jn(e,t,n,r),t.child;case 14:return n=t.type,a=Zi(n,t.pendingProps),a=Zi(n.type,a),jB(e,t,n,a,r);case 15:return bne(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Zi(n,a),o_(e,t),t.tag=1,xa(n)?(e=!0,PS(t)):e=!1,Cp(t,r),Kre(t,n,a),FM(t,n,a,r),VM(null,t,n,!0,e,r);case 19:return Cne(e,t,r);case 22:return wne(e,t,r)}throw Error(ce(156,t.tag))};function jne(e,t){return hre(e,t)}function $2e(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Si(e,t,r,n){return new $2e(e,t,r,n)}function lO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function O2e(e){if(typeof e=="function")return lO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===A4)return 11;if(e===E4)return 14}return 2}function Mu(e,t){var r=e.alternate;return r===null?(r=Si(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.depen
vendor: 9,346 bytes, line 547
547dencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function u_(e,t,r,n,a,i){var o=2;if(n=e,typeof e=="function")lO(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wh:return Gd(r.children,a,i,t);case T4:o=8,a|=8;break;case uM:return e=Si(12,r,t,a|2),e.elementType=uM,e.lanes=i,e;case cM:return e=Si(13,r,t,a),e.elementType=cM,e.lanes=i,e;case dM:return e=Si(19,r,t,a),e.elementType=dM,e.lanes=i,e;case Zte:return Xk(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yte:o=10;break e;case Kte:o=9;break e;case A4:o=11;break e;case E4:o=14;break e;case Xl:o=16,n=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=Si(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Gd(e,t,r,n){return e=Si(7,e,n,t),e.lanes=r,e}function Xk(e,t,r,n){return e=Si(22,e,n,t),e.elementType=Zte,e.lanes=r,e.stateNode={isHidden:!1},e}function $A(e,t,r){return e=Si(6,e,null,t),e.lanes=r,e}function OA(e,t,r){return t=Si(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function z2e(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mA(0),this.expirationTimes=mA(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mA(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uO(e,t,r,n,a,i,o,s,l){return e=new z2e(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Si(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},W4(i),e}function F2e(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hh,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Vne(e){if(!e)return Hu;e=e._reactInternals;e:{if(Lf(e)!==e||e.tag!==1)throw Error(ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ce(171))}if(e.tag===1){var r=e.type;if(xa(r))return jre(e,r,t)}return t}function Une(e,t,r,n,a,i,o,s,l){return e=uO(r,n,!0,e,a,i,o,s,l),e.context=Vne(null),r=e.current,n=Wn(),a=Pu(r),i=Gs(n,a),i.callback=t??null,Nu(r,i,a),e.current.lanes=a,sx(e,a,n),ba(e,n),e}function Jk(e,t,r,n){var a=t.current,i=Wn(),o=Pu(a);return r=Vne(r),t.context===null?t.context=r:t.pendingContext=r,t=Gs(i,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Nu(a,t,o),e!==null&&(lo(e,a,o,i),n_(e,a,o)),o}function GS(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function QB(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function cO(e,t){QB(e,t),(e=e.alternate)&&QB(e,t)}function B2e(){return null}var Gne=typeof reportError=="function"?reportError:function(e){};function dO(e){this._internalRoot=e}Qk.prototype.render=dO.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ce(409));Jk(e,t,null,null)};Qk.prototype.unmount=dO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mf(function(){Jk(null,e,null,null)}),t[tl]=null}};function Qk(e){this._internalRoot=e}Qk.prototype.unstable_scheduleHydration=function(e){if(e){var t=bre();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ru.length&&t!==0&&t<ru[r].priority;r++);ru.splice(r,0,e),r===0&&_re(e)}};function fO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function eC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ej(){}function j2e(e,t,r,n,a){if(a){if(typeof n=="function"){var i=n;n=function(){var u=GS(o);i.call(u)}}var o=Une(t,n,e,0,null,!1,!1,"",ej);return e._reactRootContainer=o,e[tl]=o.current,ny(e.nodeType===8?e.parentNode:e),mf(),o}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var s=n;n=function(){var u=GS(l);s.call(u)}}var l=uO(e,0,!1,null,null,!1,!1,"",ej);return e._reactRootContainer=l,e[tl]=l.current,ny(e.nodeType===8?e.parentNode:e),mf(function(){Jk(t,l,r,n)}),l}function tC(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var s=a;a=function(){var l=GS(o);s.call(l)}}Jk(t,o,e,a)}else o=j2e(r,t,e,a,n);return GS(o)}yre=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=C0(t.pendingLanes);r!==0&&(P4(t,r|1),ba(t,br()),!(Nt&6)&&(Qp=br()+500,dc()))}break;case 13:mf(function(){var n=rl(e,1);if(n!==null){var a=Wn();lo(n,e,1,a)}}),cO(e,1)}};M4=function(e){if(e.tag===13){var t=rl(e,134217728);if(t!==null){var r=Wn();lo(t,e,134217728,r)}cO(e,134217728)}};xre=function(e){if(e.tag===13){var t=Pu(e),r=rl(e,t);if(r!==null){var n=Wn();lo(r,e,t,n)}cO(e,t)}};bre=function(){return zt};wre=function(e,t){var r=zt;try{return zt=e,t()}finally{zt=r}};wM=function(e,t,r){switch(t){case"input":if(pM(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=Hk(n);if(!a)throw Error(ce(90));Jte(n),pM(n,a)}}}break;case"textarea":ere(e,r);break;case"select":t=r.value,t!=null&&wp(e,!!r.multiple,t,!1)}};sre=iO;lre=mf;var V2e={usingClientEntryPoint:!1,Events:[ux,Zh,Hk,ire,ore,iO]},Tg={findFiberByHostInstance:Cd,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},U2e={bundleType:Tg.bundleType,version:Tg.version,rendererPackageName:Tg.rendererPackageName,rendererConfig:Tg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ml.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dre(e),e===null?null:e.stateNode},findFiberByHostInstance:Tg.findFiberByHostInstance||B2e,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var V1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!V1.isDisabled&&V1.supportsFiber)try{jk=V1.inject(U2e),Xo=V1}catch{}}qa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V2e;qa.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!fO(t))throw Error(ce(200));return F2e(e,t,null,r)};qa.createRoot=function(e,t){if(!fO(e))throw Error(ce(299));var r=!1,n="",a=Gne;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=uO(e,1,!1,null,null,r,!1,n,a),e[tl]=t.current,ny(e.nodeType===8?e.parentNode:e),new dO(t)};qa.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ce(188)):(e=Object.keys(e).join(","),Error(ce(268,e)));return e=dre(t),e=e===null?null:e.stateNode,e};qa.flushSync=function(e){return mf(e)};qa.hydrate=function(e,t,r){if(!eC(t))throw Error(ce(200));return tC(null,e,t,!0,r)};qa.hydrateRoot=function(e,t,r){if(!fO(e))throw Error(ce(405));var n=r!=null&&r.hydratedSources||null,a=!1,i="",o=Gne;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Une(t,null,e,1,r??null,a,!1,i,o),e[tl]=t.current,ny(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Qk(t)};qa.render=function(e,t,r){if(!eC(t))throw Error(ce(200));return tC(null,e,t,!1,r)};qa.unmountComponentAtNode=function(e){if(!eC(e))throw Error(ce(40));return e._reactRootContainer?(mf(function(){tC(null,null,e,!1,function(){e._reactRootContainer=null,e[tl]=null})}),!0):!1};qa.unstable_batchedUpdates=iO;qa.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!eC(r))throw Error(ce(200));if(e==null||e._reactInternals===void 0)throw Error(ce(38));return tC(e,t,r,!1,n)};qa.version="18.2.0-next-9e3b772b8-20220608";function Hne(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hne)}catch{}}Hne(),Ute.exports=qa;var Fr=Ute.exports;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const hO=()=>ze.get("/users/stats");globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Wne=()=>
547ze.get("/paragraphs"),G2e=e=>ze.post("/paragraphs",e),qne=e=>ze.get(`/paragraphs/${e}`),H2e=e=>ze.delete(`/paragraphs/${e}`),W2e=()=>ze.get("/paragraphs/system/random"),q2e=()=>ze.get("/paragraphs/system/list"),tj=e=>ze.post(`/paragraphs/system/add/${e}`);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const ev=e=>ze.post("/study/log",e),Y2e=()=>ze.get("/study/heatmap"),HS=""+new URL("gongzhonghao-6f71c471.png",import.meta.url).href,WS=""+new URL("zanshangma-bd631306.png",import.meta.url).href;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function K2e(){const[e,t]=z.useState(null),[r,n]=z.useState([]),[a,i]=z.useState([]),[o,s]=z.useState(!0),l=Pk(nx),[u,c]=z.useState(!1),[d,f]=z.useState(!1),[h,p]=z.useState(!1),[v,m]=z.useState("gongzhonghao"),[g,x]=z.useState(null),[b,_]=z.useState(null),k=(H,ie)=>{navigator.clipboard.writeText(H).then(()=>{x(ie),setTimeout(()=>x(null),2e3)})};z.useEffect(()=>{sessionStorage.getItem("yg_why_shown")||(c(!0),sessionStorage.setItem("yg_why_shown","1"))},[]),z.useEffect(()=>{Promise.all([hO().then(H=>t(H.data.data)),Wne().then(H=>n(H.data.data)),Y2e().then(H=>i(H.data.data))]).finally(()=>s(!1))},[]);const S=r.find(H=>H.status!=="mastered")||r[0],C=[{label:"è诵 1 æ®µç²¾éæ®µè½",done:((e==null?void 0:e.todayParagraphs)||0)>0,to:S?`/paragraphs/${S.id}/recite`:"/paragraphs"},{label:"æµè§ 1 个åè¨åå¥",done:((e==null?void 0:e.todaySentences)||0)>0,to:"/sentences"},{label:"æ·»å 3 个è¯è¯å°è¯åº",done:((e==null?void 0:e.todayWords)||0)>=3,to:"/words"}],T=C.filter(H=>H.done).length,E=H=>H===0?l?"bg-slate-800/40 border border-slate-700/20":"bg-slate-200 border border-slate-300":H===1?l?"bg-violet-900/60 border border-violet-800/30 text-violet-300":"bg-violet-100 border border-violet-200 text-violet-600":H===2?l?"bg-violet-700/80 border border-violet-600/40 text-violet-200":"bg-violet-300 border border-violet-400 text-violet-800":"bg-violet-500 text-white shadow-sm shadow-violet-500/30",A=H=>{const ie=new Date(H);return`${ie.getMonth()+1}/${ie.getDate()}`},N=()=>{const H=new Date().getHours();return H>=5&&H<12?"æ©å®":H>=12&&H<18?"åå®":H>=18&&H<22?"æå®":"夿·±äº"},[P,L]=z.useState(()=>new Date),R=z.useMemo(()=>{const H=new Map;return a.forEach(ie=>H.set(ie.studyDate,ie.count)),H},[a]),M=H=>{const ie=H.getFullYear(),ee=String(H.getMonth()+1).padStart(2,"0"),se=String(H.getDate()).padStart(2,"0");return`${ie}-${ee}-${se}`},$=(H,ie)=>{const ee=new Date(H,ie,1),se=new Date(H,ie+1,0),oe=ee.getDay(),be=se.getDate(),me=[],Z=new Date(H,ie,0).getDate();for(let xe=oe-1;xe>=0;xe--){const Pe=new Date(H,ie-1,Z-xe);me.push({dateStr:M(Pe),count:0,isCurrentMonth:!1,isToday:!1})}const J=M(new Date);for(let xe=1;xe<=be;xe++){const Pe=`${H}-${String(ie+1).padStart(2,"0")}-${String(xe).padStart(2,"0")}`;me.push({dateStr:Pe,count:R.get(Pe)||0,isCurrentMonth:!0,isToday:Pe===J})}const we=(7-me.length%7)%7;for(let xe=1;xe<=we;xe++){const Pe=new Date(H,ie+1,xe);me.push({dateStr:M(Pe),count:0,isCurrentMonth:!1,isToday:!1})}return me},V=z.useMemo(()=>$(P.getFullYear(),P.getMonth()),[P,R]),B=P.getFullYear(),j=P.getMonth()+1,I=["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],U=()=>L(new Date(B,P.getMonth()-1,1)),Y=()=>L(new Date(B,P.getMonth()+1,1)),O=()=>L(new Date);return w("div",{className:"space-y-4 md:space-y-6 select-none",children:[w("header",{className:"relative p-4 md:p-8 rounded-2xl bg-slate-900 border border-slate-800/40 overflow-hidden",children:[y("div",{className:"absolute top-[-20%] right-[-10%] w-64 h-64 bg-violet-600/5 rounded-full blur-[100px] pointer-events-none"}),y("div",{className:"absolute bottom-[-10%] left-[-10%] w-48 h-48 bg-emerald-500/5 rounded-full blur-[80px] pointer-events-none"}),w("div",{className:"relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-4 md:gap-6",children:[w("div",{className:"space-y-2",children:[w("div",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-violet-500/10 text-violet-600 dar
547k:text-violet-400 text-[10px] md:text-xs font-bold tracking-widest uppercase",children:[y(gr,{size:10,className:"animate-pulse"}),"YuGan · Daily Ritual"]}),w("h1",{className:"text-xl md:text-3xl font-black text-slate-100 tracking-tight",children:[N(),"ï¼ç»§ç»ä»æ¥çè¯æéç¢"]})]}),w("div",{className:"max-w-xs md:border-l md:border-slate-850 md:pl-6 py-0.5 flex flex-col gap-2.5",children:[y("p",{className:"text-xs italic text-slate-400 leading-relaxed font-medium",children:'"表达å䏿¯å¤©èµï¼èæ¯å¯ä»¥éè¿æç»ç§¯ç´¯è¯æãåå¤å
å为æ¬è½çè½åã"'}),w("button",{onClick:()=>c(!0),className:"inline-flex items-center gap-1.5 self-start px-3 py-1.5 rounded-full bg-violet-500/10 border border-violet-500/20 text-violet-400 text-xs font-semibold hover:bg-violet-500/20 transition-colors",children:[y("span",{className:"w-1.5 h-1.5 rounded-full bg-violet-400"}),"为ä»ä¹è½ç»åºè¡¨è¾¾åï¼"]}),w("button",{onClick:()=>p(!0),className:"inline-flex items-center gap-1.5 self-start px-3 py-1.5 rounded-full bg-rose-500/10 border border-rose-500/20 text-rose-400 text-xs font-semibold hover:bg-rose-500/20 transition-colors",children:[y(gp,{size:12}),"èç³»ä½è
"]})]})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-5",children:[w("div",{className:"md:col-span-2 grid grid-cols-2 gap-3 md:gap-4",children:[w("div",{className:"bg-slate-900 p-4 md:p-5 rounded-2xl border border-slate-800/40 hover:border-slate-700/40 transition-all flex items-center justify-between group",children:[w("div",{className:"space-y-1",children:[y("span",{className:"text-[10px] md:text-xs text-slate-500 font-bold uppercase tracking-widest block",children:"è¿ç»æå¡"}),w("p",{className:"text-2xl md:text-3xl font-black text-slate-100 flex items-baseline",children:[o?"-":(e==null?void 0:e.streak)||0,y("span",{className:"text-xs font-semibold text-slate-500 ml-1",children:"天"})]})]}),y("div",{className:"p-2 md:p-3 bg-amber-500/5 border border-amber-500/10 rounded-xl text-amber-500 group-hover:scale-105 transition-transform duration-200",children:y(Jy,{size:16,className:"md:w-[18px] md:h-[18px]"})})]}),w("div",{className:"bg-slate-900 p-4 md:p-5 rounded-2xl border border-slate-800/40 hover:border-slate-700/40 transition-all flex items-center justify-between group",children:[w("div",{className:"space-y-1",children:[y("span",{className:"text-[10px] md:text-xs text-slate-500 font-bold uppercase tracking-widest block",children:"å·²ææ¡æ®µè½"}),w("p",{className:"text-2xl md:text-3xl font-black text-slate-100 flex items-baseline",children:[o?"-":(e==null?void 0:e.masteredParagraphs)||0,y("span",{className:"text-xs font-semibold text-slate-500 ml-1",children:"段"})]})]}),y("div",{className:"p-2 md:p-3 bg-violet-500/5 border border-violet-500/10 rounded-xl text-violet-400 group-hover:scale-105 transition-transform duration-200",children:y(Yn,{size:16,className:"md:w-[18px] md:h-[18px]"})})]}),w("div",{className:"bg-slate-900 p-4 md:p-5 rounded-2xl border border-slate-800/40 hover:border-slate-700/40 transition-all flex items-center justify-between group",children:[w("div",{className:"space-y-1",children:[y("span",{className:"text-[10px] md:text-xs text-slate-500 font-bold uppercase tracking-widest block",children:"累计è诵"}),w("p",{className:"text-2xl md:text-3xl font-black text-slate-100 flex items-baseline",children:[o?"-":(e==null?void 0:e.totalParagraphs)||0,y("span",{className:"text-xs font-semibold text-slate-500 ml-1",children:"段"})]})]}),y("div",{className:"p-2 md:p-3 bg-blue-500/10 dark:bg-blue-500/20 border border-blue-500/20 dark:border-blue-500/30 rounded-xl text-blue-600 dark:text-blue-400 group-hover:scale-105 transition-transform duration-200",children:y(Yn,{size:16,className:"md:w-[18px] md:h-[18px]"})})]}),w("div",{className:"bg-slate-900 p-4 md:p-5 rounded-2xl border border-slate-800/40 hover:border-slate-700/40 transition-all flex items-center justify-between group",children:[w("div",{className:"space-y-1",children:[y("span",{className:"text-[10px] md:text-xs text-slate-500 font-bold uppercase tracking-widest block",children:"仿¥ç²¾ç "}),w("p",{className:"text-2xl md:text-3xl font-black text-slate-100 flex items-baseline",children:[o?"-":Math.round(((e==null?void 0:e.todaySeconds)||0)/60),y("span",{className:"text-xs font-semibold text-slate-500 ml-1",children:"åé"})]})]}),y("div",{className:"p-2 md:p-3 bg-emerald-500/5 border border-emerald-500/10 rounded-xl text-emerald-400 group-hover:scale-105 transition-transform duration-200",children:y(kv,{size:16,className:"md:w-[18px] md:h-[18px]"})})]})]}),w("div",{className:"bg-slate-900 p-4 md:p-5 rounded-2xl border border-slate-800/40 flex flex-col items-center justify-center text-center space-y-4",children:[w("div",{className:"relative w-24 h-24 flex items-center justify-center",children:[w("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 50 50",children:[y("circle",{cx:"25",cy:"25",r:"22",stroke:l?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.02)",strokeWidth:"1",strokeDasharray:"2 2",fill:"transparent"}),y("circle",{cx:"25",cy:"25",r:"18",stroke:l?"#1e293b":"#e2e8f0",strokeWidth:"3.5",fill:"transparent"}),y("circle",{cx:"25",cy:"25",r:"18",stroke:"#6366f1",className:"transition-all duration-700 ease-out",strokeWidth:"3.5",fill:"transparent",strokeDasharray:"113",strokeDashoffset:113-113*(T/3),strokeLinecap:"round"})]}),w("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[w("span",{className:"text-xl font-black text-slate-100",children:[T,"/3"]}),y("span",{className:"text-[9px] text-slate-500 font-bold uppercase tracking-widest",children:"ä»»å¡"})]})]}),w("div",{className:"space-y-1",children:[y("span",{className:"text-xs text-slate-200 font-bold block",children:"仿¥ç®æ è¿åº¦"}),y("p",{className:"text-[10px] text-slate-500 leading-normal max-w-[160px]",children:T===3?"ð 仿¥ç®æ å·²å
¨é¨è¾¾æï¼":"ç¹äº®ä»æ¥çè¯æå¾½ç« è¿å·®ä¸æ¥"})]})]})]}),w("div",{className:"bg-slate-900 p-4 md:p-6 rounded-2xl border border-slate-800/40 space-y-4",children:[w("div",{className:"flex items-center gap-2",children:[y(L$,{size:16,className:"text-violet-500"}),y("h2",{className:"font-extrabold text-slate-100 text-sm tracking-wider up
547percase",children:"æ¯æ¥å¦ä¹ æ¸
å"})]}),y("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:C.map(H=>w(Mn,{to:H.to,className:`flex flex-col justify-between p-3 md:p-4 rounded-xl border transition-all duration-200 ${H.done?"bg-emerald-500/5 border-emerald-500/10 text-slate-500 opacity-70":"bg-slate-900 border-slate-800/60 hover:border-slate-700/80 hover:bg-slate-800/20"}`,children:[w("div",{className:"space-y-2",children:[y("span",{className:`text-[10px] md:text-xs font-black uppercase px-2 py-0.5 rounded tracking-widest inline-block ${H.done?"bg-emerald-500/10 text-emerald-400":"bg-violet-500/10 text-violet-400"}`,children:H.done?"已宿":"å»å®æ"}),y("p",{className:`text-sm font-semibold leading-relaxed ${H.done?"line-through text-slate-500":"text-slate-200"}`,children:H.label})]}),y("div",{className:"flex justify-end items-center mt-3 md:mt-4",children:y(es,{size:14,className:"text-slate-500"})})]},H.label))})]}),w("div",{className:"bg-slate-900 p-6 rounded-2xl border border-slate-800/40 space-y-4",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{children:[y("h2",{className:"font-extrabold text-slate-100 text-sm tracking-wider uppercase",children:"å¦ä¹ çåå¾"}),y("p",{className:"text-xs text-slate-500 mt-1",children:"æ¯ææå¡è®°å½ï¼é¢è²è¶æ·±ä»£è¡¨å¦ä¹ è¶æå
¥"})]}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:U,className:"w-7 h-7 rounded-lg bg-slate-800 border border-slate-700/40 text-slate-400 hover:text-slate-200 hover:bg-slate-700 flex items-center justify-center text-xs transition-colors",children:"â¹"}),w("span",{className:"text-sm font-bold text-slate-200 w-24 text-center",children:[B,"å¹´",I[j-1]]}),y("button",{onClick:Y,className:"w-7 h-7 rounded-lg bg-slate-800 border border-slate-700/40 text-slate-400 hover:text-slate-200 hover:bg-slate-700 flex items-center justify-center text-xs transition-colors",children:"âº"}),y("button",{onClick:O,className:"ml-1 px-2.5 py-1 rounded-lg bg-violet-500/10 border border-violet-500/20 text-violet-400 text-[10px] font-bold hover:bg-violet-500/20 transition-colors",children:"ä»"})]})]}),o?y("div",{className:"h-64 animate-pulse bg-slate-800/20 rounded"}):w("div",{className:"space-y-2",children:[y("div",{className:"grid grid-cols-7 gap-1",children:["æ¥","ä¸","äº","ä¸","å","äº","å
"].map(H=>y("div",{className:"text-center text-[10px] text-slate-500 font-bold py-1",children:H},H))}),y("div",{className:"grid grid-cols-7 gap-[3px]",children:V.map((H,ie)=>{const se=new Date(H.dateStr).getDate();return w("div",{className:`h-8 md:h-9 rounded-md flex items-center justify-center relative group cursor-default transition-all duration-200 hover:scale-105 ${H.isCurrentMonth?H.isToday?"ring-1 ring-violet-400 "+E(H.count):E(H.count):l?"bg-slate-800/20 text-slate-600":"bg-slate-100/50 text-slate-400"}`,children:[y("span",{className:`text-[10px] font-bold ${H.isCurrentMonth?H.count>=3?"text-white":l?"text-slate-300":"text-slate-700":"text-slate-500"}`,children:se}),w("div",{className:"absolute bottom-full mb-1.5 left-1/2 transform -translate-x-1/2 bg-slate-950 border border-slate-800/80 px-2 py-0.5 rounded-md text-[10px] text-slate-300 font-medium whitespace-nowrap z-50 shadow-xl pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:[A(H.dateStr),": ",H.count," 次æå¡"]})]},ie)})}),w("div",{className:"flex items-center justify-end gap-1.5 text-[9px] text-slate-500 font-bold uppercase tracking-wider pt-2",children:[y("span",{children:"å°"}),y("div",{className:`w-3 h-3 rounded-sm ${l?"bg-slate-800/40 border border-slate-700/20":"bg-slate-200 border border-slate-300"}`}),y("div",{className:`w-3 h-3 rounded-sm ${l?"bg-violet-900/60 border border-violet-800/30":"bg-violet-100 border border-violet-200"}`}),y("div",{className:`w-3 h-3 rounded-sm ${l?"bg-violet-700/80 border border-violet-600/40":"bg-violet-300 border border-violet-400"}`}),y("div",{className:"w-3 h-3 rounded-sm bg-violet-500"}),y("span",{children:"å¤"})]})]})]}),u&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:w("div",{className:`w-full max-w-[580px] max-h-[85vh] rounded-2xl shadow-2xl flex flex-col overflow-hidden border ${l?"bg-slate-900 text-slate-100 border-slate-800":"bg-white text-slate-900 border-slate-200"}`,children:[w("div",{className:`p-5 md:p-6 border-b relative shrink-0 ${l?"bg-slate-900 border-slate-800":"bg-white border-slate-150"}`,children:[y("button",{onClick:()=>c(!1),className:`absolute top-4 right-4 p-2 rounded-lg transition-colors ${l?"text-slate-400 hover:text-slate-200 hover:bg-slate-800":"text-slate-400 hover:text-slate-700 hover:bg-slate-100"}`,children:y(Tt,{size:20})}),y("h3",{className:`text-base md:text-lg font-extrabold leading-snug ${l?"text-white":"text-slate-900"}`,children:"为ä»ä¹æ¯å¤©è诵è¿äºæ®µè½ä¸æç« ï¼è½çæ£ç»åºæç表达åï¼"}),y("p",{className:`text-xs md:text-sm mt-1.5 leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:"è¿ä¸æ¯çå¦ãä½ å¨æ¬é¡¹ç®ä¸æ¯ä¸æ¬¡æè¯»ä¸è诵ï¼èå齿ç¥ç»ç§å¦ä¸å¿çå¦çæå¨å®éªæ¯æã"})]}),w("div",{className:"overflow-y-auto px-5 md:px-6 py-4 space-y-4",children:[w("div",{className:`p-4 rounded-xl border space-y-2 transition-all ${l?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"01"}),y("span",{className:`text-[10px] font-semibold px-2.5 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-violet-100 text-violet-700"}`,children:"å人ä¸ä¸å®¶è§ç¹ä¸åº"})]}),y("h4",{className:`text-sm md:text-base font-bold ${l?"text-white":"text-slate-900"}`,children:"åäººä¸æ¼è¯´å家亲è¯ï¼èæ®µè½æç« å¦ä½æ¹å壿ï¼"}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"å
å«äºæ¨ç»ãæ¯å¦ç¦æ²é妿æ Matt AbrahamsãToastmasters å½é
æ¼è®²ä¼ãå·å²é太ææçæå¨äººå£«ç论述ä¸ä¸æ æç« ã"}),w("button",{onClick:()=>f(!0),className:"inline-flex items-center gap-1.5 mt-1 px-3.5 py-2 rounded-lg bg-violet-600 hover:bg-violet-700 text-white text-xs font-semibold shadow-sm transition-all",children:[y("span",{children:"ð"})," ç¹å»æ¥ç 5 ä½å人è§ç¹ä¸æç« åºå¤ â"]})]}),y("div",{className:`pt-2 pb-0.5 border-t ${l?"border-slate-800":"border-slate-200"}`,children:y("span",{className:`text-[11px] font-bold uppercase tracking-wider block ${l?"text-violet-400":"text-violet-700"}`,children:"æ ¸å¿ç§å¦æ¯æ â"})}),w("div",{className:`py-3 border-b space-y-1.5 ${l?"border-slate-800/60":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"02"}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-slate-100 text-slate-700"}`,children:"对åºï¼å¤§å£°æè¯»ä¸è诵段è½"})]}),y("h4",{className:`text-sm font-bold ${l?"text-white":"text-slate-900"}`,children:"èè¯µä¸æè¯»æç« ï¼æ¯å¨è®ç»å´å·´ä¸å¤§èçâ表达èèâ"}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"å½æå¿µåºå£°ãèåºæ¥æ¶ï¼å¹¶ä¸åªæ¯ç¨ç¼ççï¼èæ¯å¨åæ¶æ¿æ´»è¯è¨äº§åºåºï¼Brocaåºï¼ä¸åé³å¨å®ãç ç©¶è¯å®ï¼åºå£°æè¯»ä¸èè¯µæ¯æéææå转åä¸ºå¨æâå£è¯è¾åºåè·¯âæç´æ¥çè®ç»ã"}),w("a",{href:"https://www.readingrockets.org/topics/fluency/articles/readers-theater-giving-students-reason-read-aloud",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Reading Rockets · æè¯»ä¸å£è¯æµå©åº¦ç ç©¶æç« â"]})]}),w("div",{className:`py-3 border-b space-y-1.5 ${l?"border-slate-800/60":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"03"}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-slate-100 text-slate-700"}`,children:"对åºï¼éå¤è诵åä¸ä¸ªæ®µè½"})]}),y("h4",{className:`text-sm font-bold ${l?"text-white":"text-slate-900"}`,children:"顺ç
èç䏿®µè¯ï¼æâæ¾è¯ç»å¥âè±æºèªå¨å"}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"为ä»ä¹èçæç« è½è®©æè¡¨è¾¾ä¸å¡å£³ï¼å 为å½âæ¾è¯ãç»å¥âè¿éè¦å ç¨èåæ¶ï¼å¼å£å°±ä¼ç´§å¼ ã认ç¥ç§å¦âè¿åº¦å¦ä¹ âï¼Overlearningï¼åç表æï¼ææ®µè½æç« èå°æçï¼è½å°åºç¡è¯è¨ç»ç»è±æºèªå¨åï¼è¡¨è¾¾æ¶æè½è
¾åº 100% ç²¾å廿³é»è¾ä¸ææåã"}),w("a",{href:"https://en.wikipedia.org/wiki/Overlearning",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Cognitive Science · Overlearning & Automaticity ç论æç« â"]})]}),w("div",{className:`py-3 border-b space-y-1.5 ${l?"border-slate-800/60":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"04"}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-violet-100 text-violet-700"}`,children:"æ ¸å¿ï¼æµå©åº¦è¿ç§»æåº"})]}),y("h4",{className:`text-sm font-bold ${l?"text-white":"text-slate-900"}`,children:"èçè¿ç¯æç« ï¼æªæ¥è¯´ä»»ä½è¯é½ä¼å徿´é¡ºï¼æµå©åº¦è¿ç§»ï¼"}),w("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:["æäººæ
å¿ï¼âæèçäºè¿ç¯æç« ï¼æ¯ä¸æ¯åªè½è¯´å¥½è¿ç¯æç« ï¼âå£è¯è®¤ç¥ç§å¦âæµå©åº¦è¿ç§»æåºâï¼Fluency Transfer Effectï¼è¯å®ï¼å¨è诵æç« ä¸ç»åºçåé¡¿æãè¯è°èå¥åå鳿µç
度ï¼ä¼",y("strong",{className:l?"text-violet-300 font-semibold":"text-violet-700 font-semibold",children:"èªå¨è¿ç§»å°ææªæ¥è¯´åºçä»»ä½å
¨æ°å£è¯ä¸"}),"ãèçä¸ç¯ï¼è¿ç§»ç¾ç¯ã"]}),w("a",{href:"https://www.landmarkoutreach.org/blog-post/reading-fluency-beyond-accuracy",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Samuels & Rasinski · éå¤é
读ä¸è¡¨è¾¾æµå©åº¦è¿ç§»æç« â"]})]}),w("div",{className:`py-3 border-b space-y-1.5 ${l?"border-slate-800/60":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"05"}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-slate-100 text-slate-700"}`,children:"对åºï¼èå¥å + 积累é«çº§è¯æ±"})]}),y("h4",{className:`text-sm font-bold ${l?"text-white":"text-slate-900"}
547`,children:"积å¥å¥è¯ï¼ä¸ºæçå¿çè¯å
¸è£
满âè±å£èåºç骨æ¶â"}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"å¼å£å¡å£³å¾å¾å 为âå¿çè¯å
¸âï¼Mental Lexiconï¼ç¼ºä¹ç°æå¥å¼ãè¯è¨å¦ç ç©¶è¯å®ï¼å¤ç«èè¯è¡¨æ æ³å¨å£è¯ä¸å³æ¶è°åºï¼åªæå¨å®æ´å¥åä¸æç« è¯å¢ä¸ç§¯ç´¯è¯å¥ï¼å¼å£æ¶æè½åæ¼ç§¯æ¨ä¸æ ·è°ç¨ç°æå¥å¼ã"}),w("a",{href:"https://www.isca-archive.org/interspeech_2024/demaere24_interspeech.html",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Interspeech 2024 · å¿çè¯å
¸æ£ç´¢é度ä¸å£è¯æµå©åº¦é¢æµæç« â"]})]}),w("div",{className:`py-3 border-b space-y-1.5 ${l?"border-slate-800/60":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[11px] font-extrabold text-white bg-violet-600 rounded-md px-2 py-0.5",children:"06"}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-emerald-500/20 text-emerald-300":"bg-emerald-100 text-emerald-700"}`,children:"ç¥ç»ç§å¦é¡¶åè¯æ"})]}),y("h4",{className:`text-sm font-bold ${l?"text-white":"text-slate-900"}`,children:"ç©çéå¡å¤§èï¼ææç表达ç¥ç»åè·¯âç»ç¼çç¢â"}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"ãScienceã顶级ç ç©¶è¯æï¼é«é¢éå¤å声ä¸è¡¨è¾¾æè½æ¶ï¼å¤§èå°çªè¶è´¨ç»èä¼ä¸»å¨çæâé«éâï¼Myelinationï¼ï¼åç»çµçº¿å
ä¸ç»ç¼ç®ä¸æ ·ï¼ä½¿è¯è¨åè·¯ä¼ è¾é度ä¸ç¨³å®æ§æåæ°ååã"}),w("a",{href:"https://pubmed.ncbi.nlm.nih.gov/25324381/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Science é¡¶å论æ: æè½å¦ä¹ ä¸ç¥ç»é«éåéå¡ â"]})]}),y("div",{className:`pt-2 pb-0.5 border-t ${l?"border-slate-800":"border-slate-200"}`,children:y("span",{className:`text-[11px] font-bold uppercase tracking-wider block ${l?"text-slate-400":"text-slate-500"}`,children:"ð¡ 顺带æ¶è·çéå èåæ¶ç â"})}),w("div",{className:`py-2.5 border-b space-y-1 ${l?"border-slate-800/40":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:`inline-block text-[10px] font-bold rounded px-1.5 py-0.5 ${l?"bg-slate-800 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"07 éå "}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-sky-500/20 text-sky-300":"bg-sky-100 text-sky-700"}`,children:"é«è¿ç§»æ§"})]}),y("h4",{className:`text-xs md:text-sm font-bold ${l?"text-slate-200":"text-slate-900"}`,children:"è®°å¿åå¢å¼º + è诵è¿ç§»åï¼è¶èè¶å¿«ï¼"}),w("p",{className:`text-[11px] leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:["æ»éå¢å¤§å¦å®éªå®¤è¯å®ï¼å¤§å£°æè¯»å»ºç«âé³å½¢ä¹âä¸ç»´è®°å¿ç¼ç ãæ´éè¦çæ¯",y("strong",{className:l?"text-sky-300 font-semibold":"text-sky-700 font-semibold",children:"è诵è¿ç§»å"}),"ââæ¯å¤©åæè®ç»è½æå®½å·¥ä½è®°å¿å®¹éï¼ä»¥ååå»è诵任ä½ç¯å
¨æ°çæç« ææ¥åï¼è®°å¿éåº¦ä¸æçé½ä¼æåæåï¼"]}),w("a",{href:"https://uwaterloo.ca/news/news/study-finds-reading-information-aloud-yourself-improves",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," æ»éå¢å¤§å¦ Memory æå: æè¯»ç产æåºä¸å·¥ä½è®°å¿æç« â"]})]}),w("div",{className:`py-2.5 border-b space-y-1 ${l?"border-slate-800/40":"border-slate-150"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:`inline-block text-[10px] font-bold rounded px-1.5 py-0.5 ${l?"bg-slate-800 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"08 éå "}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-violet-500/20 text-violet-300":"bg-violet-100 text-violet-700"}`,children:"èç§å¦åé¢å¶æ¿æ´»"})]}),y("h4",{className:`text-xs md:text-sm font-bold ${l?"text-slate-200":"text-slate-900"}`,children:"䏿³¨åä¸æå¹²æ°æ§å¶åæå"}),y("p",{className:`text-[11px] leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:"åºå£°æè¯»ä¸è诵éè¦âç¼-è-å´-è³âåæå®æ¶
547éç¯ï¼è½å¼ºçæ¿æ´»åé¢å¶ç®è´¨ï¼Prefrontal Cortexï¼å¤§èæ§å¶ä¸å¿ï¼ï¼æææå¶æå¿µèµ°ç¥ï¼æ¾èæåå³å
´åè¨ä¸å¼ä¼æ¶ç注æåæç»æ¶é´ã"}),w("a",{href:"https://en.wikipedia.org/wiki/Ryuta_Kawashima",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Dr. Ryuta Kawashima: å·å²é太å¢éåé¢å¶ç®å±æ¿æ´»ç ç©¶æç« â"]})]}),w("div",{className:"py-2.5 space-y-1",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:`inline-block text-[10px] font-bold rounded px-1.5 py-0.5 ${l?"bg-slate-800 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"09 éå "}),y("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${l?"bg-emerald-500/20 text-emerald-300":"bg-emerald-100 text-emerald-700"}`,children:"ç¾å½å½å®¶é
读å°ç» NIH éªè¯"})]}),y("h4",{className:`text-xs md:text-sm font-bold ${l?"text-slate-200":"text-slate-900"}`,children:"深度é
读çè§£ä¸é»è¾æååæå"}),y("p",{className:`text-[11px] leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:"åºå£°æè¯»è¿«ä½¿å¤§èä½ä¼å¥æ³åé¡¿ä¸ä¸»è°é»è¾ï¼èéåé»è¯»è¬ä¸æ«èè¿ï¼è½å¤§å¹
æå夿æç« çç»æå½çº³ä¸é»è¾æç¼é度ã"}),w("a",{href:"https://www.readingrockets.org/topics/fluency",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Reading Rockets 宿¹æ¥å: ç¾å½å½å®¶é
读å°ç» NIH æè¯»ä¸é
读çè§£æ¥å â"]})]})]})]})}),document.body),d&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[110] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:w("div",{className:`w-full max-w-[600px] max-h-[85vh] rounded-2xl shadow-2xl flex flex-col overflow-hidden border ${l?"bg-slate-900 text-slate-100 border-slate-800":"bg-white text-slate-900 border-slate-200"}`,children:[w("div",{className:`p-5 md:p-6 border-b relative shrink-0 ${l?"bg-slate-900 border-slate-800":"bg-white border-slate-150"}`,children:[y("button",{onClick:()=>f(!1),className:`absolute top-4 right-4 p-2 rounded-lg transition-colors ${l?"text-slate-400 hover:text-slate-200 hover:bg-slate-800":"text-slate-400 hover:text-slate-700 hover:bg-slate-100"}`,children:y(Tt,{size:20})}),y("h3",{className:`text-base md:text-lg font-extrabold leading-snug ${l?"text-white":"text-slate-900"}`,children:"å人ä¸ä¸å®¶ä¸åºï¼èæç« 段è½å¦ä½çæ£æé 壿ï¼"}),y("p",{className:`text-xs mt-1.5 leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:"æ±éå½å
夿¼è¯´å¤§å¸ãç¥ååä¸»ãæ²é妿æä¸èç§å¦å®¶å
³äºâæè¯»è诵ä¸å£æâç宿æç« 论述ã"})]}),w("div",{className:"overflow-y-auto p-5 md:p-6 space-y-3.5",children:[w("div",{className:`p-4 rounded-xl border space-y-2 ${l?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:`text-sm font-bold ${l?"text-violet-300":"text-violet-700"}`,children:"ð¤ æ¨ç»ï¼å¸ä¹¦ / æ¨ç»è¯»ä¹¦åå§äººãç¥åæ¼è¯´è
ï¼"}),y("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded ${l?"bg-slate-700 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"åºå¤ï¼ãæ²éçèºæ¯ã"})]}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"â壿å表达å䏿¯åç©ºåæ¥ç天èµï¼èæ¯é 大声æè¯»åå¤è¿°è®ç»åºæ¥çèèè®°å¿ãæ¯å¤©åæåºå£°æè¯»ä¸è诵ä¼è´¨æ®µè½ï¼æ¯æçæçç¥è¯è½¬å为å¼å£æµç
è¾åºæç´æ¥ç廿ç»ä¹ ãâ"}),w("a",{href:"https://en.wikipedia.org/wiki/Speech_communication",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Speech Communication: å£è¯è¡¨è¾¾ä¸æè¯»è®ç»æç« â"]})]}),w("div",{className:`p-4 rounded-xl border space-y-2 ${l?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:`text-sm font-bold ${l?"text-violet-300":"text-violet-700"}`,children:"ð Matt Abrahams ææï¼æ¯å¦ç¦å¤§å¦åå¦é¢æ²é妿æï¼"}),y("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded ${l?"bg-slate-700 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"åºå¤ï¼æ¯å¦ç¦åå¦é¢ä¸æ "})]}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"âç»å£æä¸è½é å空æ³è±¡ãéè¿éå¤æè¯»ä¸ç§¯ç´¯ç°æå¥å¼ç»æï¼Framework Chunkingï¼ï¼è½å¤§å¹
æåè¯è¨å å·¥æµå©åº¦ï¼Processing Fluencyï¼ï¼å¸è½½å¼å£æ¶çå¡å£³ä¸ç¦èãâ"}),w("a",{href:"https://en.wikipedia.org/wiki/Public_speaking",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Public Speaking: 表达æµå©åº¦ä¸å³å
´æ¼è®²è®ç»æç« â"]})]}),w("div",{className:`p-4 rounded-xl border space-y-2 ${l?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:`text-sm font-bold ${l?"text-violet-300":"text-violet-700"}`,children:"ðï¸ Toastmasters Internationalï¼å½é
æ¼è®²ä¼å®æ¹ï¼"}),y("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded ${l?"bg-slate-700 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"åºå¤ï¼Toastmasters 宿¹æå"})]}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"âInterpretive Reading & Passage Recitation for Speech Mastery ââ æ¯å¤©åºå£°æè¯»ä¸è诵ä¼ç§çææ®µè½ï¼æ¯è®ç»å£è¯è
547奿ãæå¥éé³ãå
ææ¼è®²å¡å£³ä¸å»ºç«è¡¨è¾¾èªä¿¡çé»éæ¹æ³ãâ"}),w("a",{href:"https://en.wikipedia.org/wiki/Toastmasters_International",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Toastmasters International: å½é
æ¼è®²ä¼å®æ¹è¡¨è¾¾æç« â"]})]}),w("div",{className:`p-4 rounded-xl border space-y-2 ${l?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:`text-sm font-bold ${l?"text-violet-300":"text-violet-700"}`,children:"ð§ å·å²é太 ææï¼æ¥æ¬ä¸å大å¦èç§å¦ç¬¬ä¸äººï¼"}),y("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded ${l?"bg-slate-700 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"åºå¤ï¼èç§å¦æç« "})]}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"âæ¯å¤©å¤§å£°æè¯»ç段è½ä¸è诵æç« ï¼æ¯æ¿æ´»åé¢å¶ç®å±ï¼å¤§èæ§å¶ä¸å¿ï¼æææçæ¹æ³ï¼è½å¤§å¹
æå说è¯ååºé度ä¸å£è¯è¡¨è¾¾æµç
度ãâ"}),w("a",{href:"https://en.wikipedia.org/wiki/Ryuta_Kawashima",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Ryuta Kawashima: å·å²é太åé¢å¶æè¯»èç§å¦ç ç©¶æç« â"]})]}),w("div",{className:`p-4 rounded-xl border space-y-2 ${l?"bg-slate-850 border-slate-750":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:`text-sm font-bold ${l?"text-violet-300":"text-violet-700"}`,children:"ð å®å¾·æ¯Â·åéå
森 ææï¼å»æç»ä¹ çè®ºå¥ åºäººï¼"}),y("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded ${l?"bg-slate-700 text-slate-300":"bg-slate-200 text-slate-700"}`,children:"åºå¤ï¼å»æç»ä¹ ç论"})]}),y("p",{className:`text-xs leading-relaxed ${l?"text-slate-300":"text-slate-600"}`,children:"âåè¶ç表达è½å仿¥ä¸æ¯ä»ä¹ä¸å¯å¤å¶ç天èµï¼èæ¯éè¿æç®æ ãé«éå¤ç廿ç»ä¹ ï¼å¨ç¥ç»ä¸å声èèå±é¢å»ºç«èµ·æ¥ç稳å®ååºãâ"}),w("a",{href:"https://en.wikipedia.org/wiki/Anders_Ericsson",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-1 text-xs text-blue-600 hover:text-blue-800 font-semibold transition-colors",children:[y("span",{children:"ð"})," Anders Ericsson: 廿ç»ä¹ ä¸è¡¨è¾¾èèååºç论æç« â"]})]})]})]})}),document.body),h&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:w("div",{className:`w-full max-w-[600px] max-h-[85vh] rounded-2xl shadow-2xl flex flex-col overflow-hidden border ${l?"bg-slate-900 text-slate-100 border-slate-800":"bg-white text-slate-900 border-slate-200"}`,children:[w("div",{className:`p-5 md:p-6 border-b relative shrink-0 ${l?"bg-slate-900 border-slate-800":"bg-white border-slate-150"}`,children:[y("button",{onClick:()=>p(!1),className:`absolute top-4 right-4 p-2 rounded-lg transition-colors ${l?"text-slate-400 hover:text-slate-200 hover:bg-slate-800":"text-slate-400 hover:text-slate-700 hover:bg-slate-100"}`,children:y(Tt,{size:20})}),y("h3",{className:`text-base md:text-lg font-extrabold leading-snug ${l?"text-white":"text-slate-900"}`,children:"å
³äºä½è
ä¸èµå©æ¯æ"}),y("p",{className:`text-xs md:text-sm mt-1.5 leading-relaxed ${l?"text-slate-400":"text-slate-600"}`,children:"äºè§£å¼åè
ä¿¡æ¯ãèç³»æ¹å¼ä¸èµå©æ¯æ"})]}),y("div",{className:"overflow-y-auto px-5 md:px-6 py-4 space-y-4",children:w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 items-stretch",children:[w("div",{className:"flex flex-col justify-between space-y-4 bg-slate-50/70 dark:bg-slate-800/40 p-5 rounded-2xl border border-slate-100 dar
547k:border-slate-800",children:[w("div",{className:"space-y-2",children:[w("div",{className:"flex items-center gap-2 flex-wrap",children:[y("span",{className:"text-xs font-black px-2.5 py-0.5 rounded-full bg-indigo-500/10 text-indigo-600 dark:text-indigo-400 border border-indigo-500/20",children:"å¼åè
ï¼èºæ¯ç¾¹"}),y("span",{className:"text-xs font-black px-2.5 py-0.5 rounded-full bg-rose-500/10 text-rose-600 dark:text-rose-400 border border-rose-500/20",children:"å
¬ä¼å·ï¼èºæ¯ç¾¹"})]}),y("p",{className:"text-xs text-slate-600 dark:text-slate-300 leading-relaxed font-medium pt-1",children:"è¯æå·¥åæ¯ä¸ä¸ªä¸æ³¨äºæå表达åçå®ç¨å·¥å
·ãå®éè¿ç§å¦çè¯å¥ç§¯ç´¯ä¸åå¤å
åï¼å¸®å©å¤§å®¶åå«è¯ç©·ãéå¡è¯æï¼è®©æ¯ä¸æ¬¡å¼å£é½æ´æåéã妿æä»»ä½é®é¢æå»ºè®®ï¼æ¬¢è¿éæ¶èç³»æï¼æä¸ç´å¨çº¿ã叿è¿ä¸ªå·¥å
·è½çæ£å¸®å°ä½ ã"})]}),w("div",{className:"space-y-2.5 pt-2",children:[y("span",{className:"text-[11px] font-black text-slate-700 dark:text-slate-300 uppercase tracking-wider block",children:"ä½è
èç³»æ¹å¼"}),w("div",{className:"grid grid-cols-1 gap-2",children:[w("div",{className:`p-3 rounded-xl border flex items-center justify-between ${l?"bg-slate-900 border-slate-700/80":"bg-white border-slate-200/80"}`,children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-7 h-7 rounded-lg bg-sky-500/10 text-sky-500 flex items-center justify-center shrink-0",children:y(_ee,{size:16})}),w("div",{children:[y("span",{className:"text-[10px] text-slate-400 font-bold block",children:"QQ èç³»"}),y("span",{className:`text-xs font-black font-mono ${l?"text-slate-100":"text-slate-800"}`,children:"3057454077"})]})]}),w("button",{onClick:()=>k("3057454077","QQ"),className:`px-2.5 py-1 rounded-lg text-xs font-bold transition-colors flex items-center gap-1 ${l?"bg-slate-800 hover:bg-indigo-950/60 text-slate-300":"bg-slate-100 hover:bg-indigo-50 text-slate-600 hover:text-indigo-600"}`,children:[g==="QQ"?y(Ir,{size:13,className:"text-emerald-500"}):y(J_,{size:13}),g==="QQ"?"å·²å¤å¶":"å¤å¶"]})]}),w("div",{className:`p-3 rounded-xl border flex items-center justify-between ${l?"bg-slate-900 border-slate-700/80":"bg-white border-slate-200/80"}`,children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-7 h-7 rounded-lg bg-emerald-500/10 text-emerald-500 flex items-center justify-center shrink-0",children:y(See,{size:16})}),w("div",{children:[y("span",{className:"text-[10px] text-slate-400 font-bold block",children:"微信 èç³»"}),y("span",{className:`text-xs font-black font-mono ${l?"text-slate-100":"text-slate-800"}`,children:"peace-83"})]})]}),w("button",{onClick:()=>k("peace-83","微信"),className:`px-2.5 py-1 rounded-lg text-xs font-bold transition-colors flex items-center gap-1 ${l?"bg-slate-800 hover:bg-indigo-950/60 text-slate-300":"bg-slate-100 hover:bg-indigo-50 text-slate-600 hover:text-indigo-600"}`,children:[g==="微信"?y(Ir,{size:13,className:"text-emerald-500"}):y(J_,{size:13}),g==="微信"?"å·²å¤å¶":"å¤å¶"]})]})]})]})]}),w("div",{className:"flex flex-col bg-slate-50/70 dark:bg-slate-800/40 p-4 rounded-2xl border border-slate-100 dark:border-slate-800 space-y-3",children:[w("div",{className:`flex items-center gap-2 p-1 rounded-xl ${l?"bg-slate-900/60":"bg-slate-200/60"}`,children:[w("button",{onClick:()=>m("gongzhonghao"),className:`flex-1 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center justify-center gap-1 ${v==="gongzhonghao"?`${l?"bg-slate-800 text-indigo-400":"bg-white text-indigo-600"} shadow-sm`:"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(Cee,{size:13}),"å
¬ä¼å·: èºæ¯ç¾¹"]}),w("button",{onClick:()=>m("zanshang"),className:`flex-1 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center justify-center gap-1 ${v==="zanshang"?`${l?"bg-slate-800 text-rose-400":"bg-white text-rose-600"} shadow-sm`:"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(gp,{size:13}),"èµèµé¼å±ç "]})]}),y("div",{className:`flex-1 flex flex-col items-center justify-center text-center p-3 rounded-xl border space-y-2.5 min-h-[210px] ${l?"bg-slate-900 border-slate-700/80":"bg-white border-slate-200/80"}`,children:v==="gongzhonghao"?w(Rt,{children:[w("div",{onClick:()=>_({src:HS,title:"宿¹å
¬ä¼å·ï¼èºæ¯ç¾¹"}),className:`w-36 h-36 rounded-xl border p-1.5 shadow-sm overflow-hidden flex items-center justify-center cursor-zoom-in group relative ${l?"border-slate-700 bg-slate-800":"border-slate-200 bg-white"}`,title:"ç¹å»æ¾å¤§æ¥çå
¬ä¼å·äºç»´ç ",children:[y("img",{src:HS,alt:"宿¹å
¬ä¼å·ï¼èºæ¯ç¾¹",className:"w-full h-full object-contain rounded-lg transition-transform duration-300 group-hover:scale-105"}),w("div",{className:"absolute inset-0 bg-slate-950/40 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col items-center justify-center text-white text-[10px] font-extrabold gap-1 rounded-lg backdrop-blur-[1px]",children:[y(Fm,{size:18}),y("span",{children:"ç¹å»æ¾å¤§"})]})]}),w("div",{className:"space-y-0.5 max-w-xs",children:[y("span",{className:`text-xs font-black block ${l?"text-slate-100":"text-slate-900"}`,children:"微信æ«ç å
³æ³¨ãèºæ¯ç¾¹ã"}),y("p",{className:"text-[10px] text-slate-500 dark:text-slate-400 leading-relaxed font-medium",children:"ç¹å»å¾ç坿¾å¤§é¢è§ · è·åã表达åãææ°æ¨æä¸å¨æ"})]})]}):w(Rt,{children:[w("div",{onClick:()=>_({src:WS,title:"èµèµé¼å±ç ï¼èºæ¯ç¾¹ï¼"}),className:`w-36 h-36 rounded-xl border p-1.5 shadow-sm overflow-hidden flex items-center justify-center cursor-zoom-in group relative ${l?"border-slate-700 bg-slate-800":"border-slate-200 bg-white"}`,title:"ç¹å»æ¾å¤§æ¥çèµèµé¼å±ç ",children:[y("img",{src:WS,alt:"èµèµé¼å±ç ",className:"w-full h-full object-contain rounded-lg transition-transform duration-300 group-hover:scale-105"}),w("div",{className:"absolute inset-0 bg-slate-950/40 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col items-center justify-center text-white text-[10px] font-extrabold gap-1 rounded-lg backdrop-blur-[1px]",children:[y(Fm,{size:18}),y("span",{children:"ç¹å»æ¾å¤§"})]})]}),w("div",{className:"space-y-0.5 max-w-xs",children:[w("span",{className:"text-xs font-black text-rose-600 dar
547k:text-rose-400 block flex items-center justify-center gap-1",children:[y(gp,{size:12,fill:"currentColor"})," æè°¢èµèµä¸é¼å±"]}),y("p",{className:"text-[10px] text-slate-500 dark:text-slate-400 leading-relaxed font-medium",children:"ç¹å»å¾ç坿¾å¤§é¢è§ · 欢è¿èµèµæ¯æèºæ¯ç¾¹æç»ç»´æ¤ï¼"})]})]})})]})]})}),y("div",{className:`p-4 border-t shrink-0 ${l?"border-slate-800":"border-slate-100"}`,children:y("button",{onClick:()=>p(!1),className:"w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-sm rounded-xl transition-colors shadow-sm cursor-pointer",children:"å
³é"})})]})}),document.body),b&&Fr.createPortal(y("div",{onClick:()=>_(null),className:"fixed inset-0 z-[110] flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-md animate-fade-in cursor-zoom-out",children:w("div",{onClick:H=>H.stopPropagation(),className:`border rounded-3xl p-6 max-w-md w-full space-y-4 shadow-2xl relative text-center cursor-default ${l?"bg-slate-900 border-slate-800":"bg-white border-slate-200"}`,children:[y("button",{onClick:()=>_(null),className:`absolute top-4 right-4 p-1.5 rounded-full transition-colors ${l?"hover:bg-slate-800 text-slate-400 hover:text-slate-200":"hover:bg-slate-100 text-slate-400 hover:text-slate-600"}`,children:y(Tt,{size:20})}),y("h4",{className:`text-base font-black pt-1 ${l?"text-slate-100":"text-slate-900"}`,children:b.title}),y("div",{className:`w-72 h-72 sm:w-80 sm:h-80 mx-auto rounded-2xl border p-2 shadow-xl overflow-hidden flex items-center justify-center ${l?"border-slate-700 bg-slate-800":"border-slate-200 bg-white"}`,children:y("img",{src:b.src,alt:b.title,className:"w-full h-full object-contain rounded-xl"})}),y("p",{className:`text-xs font-medium ${l?"text-slate-400":"text-slate-500"}`,children:"ç¹å»ç©ºç½åºåæå³ä¸æ¹å
³éæé®éåºå¤§å¾"})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Z2e=()=>ze.get("/admin/stats"),X2e=e=>ze.get("/admin/users",{params:e}),rj=(e,t)=>ze.put(`/admin/users/${e}`,t),J2e=e=>ze.delete(`/admin/users/${e}`),nj=e=>ze.post("/admin/users/batch-quota",e),Q2e=e=>ze.get("/admin/words",{params:e}),eke=e=>ze.post("/admin/words",e),tke=(e,t)=>ze.put(`/admin/words/${e}`,t),rke=e=>ze.delete(`/admin/words/${e}`),nke=e=>ze.post("/admin/words/batch",e),ake=e=>ze.get("/admin/sentences",{params:e}),ike=e=>ze.post("/admin/sentences",e),oke=e=>ze.post("/admin/sentences/batch",e),ske=(e,t)=>ze.put(`/admin/sentences/${e}`,t),lke=e=>ze.delete(`/admin/sentences/${e}`),uke=e=>ze.get("/admin/paragraphs",{params:e}),cke=e=>ze.post("/admin/paragraphs",e),dke=e=>ze.post("/admin/paragraphs/batch",e),fke=(e,t)=>ze.put(`/admin/paragraphs/${e}`,t),hke=e=>ze.delete(`/admin/paragraphs/${e}`);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pke(){var o;const[e,t]=z.useState(null),[r,n]=z.useState(!0);z.useEffect(()=>{a()},[]);const a=async()=>{n(!0);try{const s=await Z2e();t(s.data.data)}catch{}finally{n(!1)}},i=[{label:"注åç¨æ·æ»æ°",value:(e==null?void 0:e.totalUsers)||0,icon:tS,badgeColor:"bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 border-emerald-500/30"},{label:"仿¥æ°å¢æ³¨å",value:(e==null?void 0:e.todayNewUsers)||0,icon:Aee,badgeColor:"bg-blue-500/15 text-blue-600 dark:text-blue-400 border-blue-500/30"},{label:"è¿7天活è·ç¨æ·",value:(e==null?void 0:e.activeUsers)||0,icon:Yye,badgeColor:"bg-purple-500/15 text-purple-600 dark:text-purple-400 border-purple-500/30"},{label:"è¯è¯æ»åºå®¹é",value:(e==null?void 0:e.totalWords)||0,icon:Yn,badgeColor:"bg-amber-500/15 text-amber-600 dark:text-amber-400 border-amber-500/30"},{label:"ç²¾éå¥åæ»æ°",value:(e==null?void 0:e.totalSentences)||0,icon:jp,badgeColor:"bg-rose-500/15 text-rose-600 dar
547k:text-rose-400 border-rose-500/30"},{label:"æå¡æ®µè½æ»æ°",value:(e==null?void 0:e.totalParagraphs)||0,icon:Z_,badgeColor:"bg-cyan-500/15 text-cyan-600 dark:text-cyan-400 border-cyan-500/30"}];return r?w("div",{className:"space-y-6",children:[y("div",{className:"h-10 w-48 rounded-xl animate-pulse admin-card"}),y("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[...Array(6)].map((s,l)=>y("div",{className:"h-36 rounded-2xl animate-pulse admin-card"},l))})]}):w("div",{className:"space-y-8",children:[w("div",{className:"admin-card p-6 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 shadow-md",children:[w("div",{children:[w("h1",{className:"admin-title text-2xl tracking-wide flex items-center gap-3",children:[y(xee,{className:"text-emerald-500",size:28}),"å¹³å°è¿è¥æ°æ®æ¦è§"]}),y("p",{className:"admin-subtext text-sm font-medium mt-1",children:"çæ§ç¨æ·è§æ¨¡ãè诵æå¡å¨æä¸è¯/å¥/段ç¥è¯åºæ ¸å¿ææ "})]}),w("button",{onClick:a,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all shadow-sm border border-slate-300 dark:border-slate-700 bg-slate-100 dark:bg-slate-900 text-slate-700 dark:text-slate-200",children:[y(Zo,{size:16,className:r?"animate-spin text-emerald-500":""}),"éæ°æå宿¶æ°æ®"]})]}),y("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:i.map(s=>{const l=s.icon;return y("div",{className:"admin-card p-6 rounded-2xl shadow-md transition-all group",children:w("div",{className:"flex items-start justify-between",children:[w("div",{className:"space-y-2",children:[y("span",{className:"text-xs font-bold uppercase tracking-widest admin-subtext",children:s.label}),y("p",{className:"text-4xl font-black admin-title tracking-tight group-hover:scale-105 transition-transform origin-left",children:s.value.toLocaleString()})]}),y("div",{className:`p-3.5 rounded-2xl border ${s.badgeColor}`,children:y(l,{size:24})})]})},s.label)})}),w("div",{className:"admin-card rounded-2xl p-6 shadow-md space-y-5",children:[w("div",{className:"flex items-center gap-2 border-b pb-4 border-slate-200 dark:border-slate-800",children:[y(Pf,{className:"text-amber-500",size:20}),y("h2",{className:"text-lg font-black admin-title",children:"管çå¿«æ·éé"})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[y(U1,{title:"è¯è¯ç®¡ç",description:"æ£ç´¢åç±»ãæ¹é导å
¥ä¸ç¼è¾è¯æ±",link:"/admin/words",icon:Yn}),y(U1,{title:"å¥å管ç",description:"æ¶å½éå¥åè¨ä¸æ¹éå½å
¥",link:"/admin/sentences",icon:jp}),y(U1,{title:"段è½ç®¡ç",description:"æå¡æ®µè½åºç»´æ¤ä¸æ¹é管ç",link:"/admin/paragraphs",icon:Z_}),y(U1,{title:"ç¨æ·è´¦å·ç®¡æ§",description:"ä¿®æ¹èç³»é®ç®±ãéç½®å¯ç 䏿é设置",link:"/admin/users",icon:tS})]})]}),w("div",{className:"admin-card rounded-2xl p-6 shadow-md space-y-4",children:[y("h2",{className:"text-base font-black admin-title",children:"ç³»ç»æå¡æ»æ°ä¸æ¶é´èç¹"}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm font-medium",children:[w("div",{className:"flex items-center justify-between p-4 rounded-xl admin-card-dark border border-slate-200 dark:border-slate-800",children:[y("span",{className:"admin-subtext",children:"å¹³å°ç´¯è®¡æå¡è诵æ¥å¿æ°"}),w("span",{className:"font-black text-lg text-emerald-500",children:[((o=e==null?void 0:e.totalStudyLogs)==null?void 0:o.toLocaleString())||0," æ¡"]})]}),w("div",{className:"flex items-center justify-between p-4 rounded-xl admin-card-dark border border-slate-200 dark:border-slate-800",children:[y("span",{className:"admin-subtext",children:"䏿¬¡åæ¥æ¶é´"}),y("span",{className:"admin-title font-mono font-bold",children:new Date().toLocaleString("zh-CN")})]})]})]})]})}function U1({title:e,description:t,link:r,icon:n}){return y(Mn,{to:r,className:"p-5 rounded-xl transition-all group flex flex-col justify-between admin-card-dark border border-slate-200 dark:border-slate-800 hover:border-emerald-500",children:w("div",{children:[w("div",{className:"flex items-center justify-between mb-3",children:[y("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-500 border border-emerald-500/30 group-hover:scale-110 transition-transform",children:y(n,{size:20})}),y(Kye,{size:18,className:"admin-subtext group-hover:text-emerald-500 group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all"})]}),y("h3",{className:"text-base font-bold admin-title group-hover:text-emerald-500 transition-colors",children:e}),y("p",{className:"text-xs mt-1 line-clamp-2 leading-relaxed admin-subtext",children:t})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function vke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(""),[o,s]=z.useState(1),[l,u]=z.useState(0),[c,d]=z.useState(null),[f,h]=z.useState(null),[p,v]=z.useState(null),[m,g]=z.useState(null),[x,b]=z.useState(2),[_,k]=z.useState(!1),S=10;z.useEffect(()=>{T()},[o,a]);const C=$=>{g($),setTimeout(()=>g(null),3e3)},T=async()=>{n(!0);try{const $=await X2e({page:o,size:S,keyword:a});t($.data.data.records),u($.data.data.total)}catch{}finally{n(!1)}},E=$=>{$.preventDefault(),s(1),T()},A=async($,V)=>{var B,j;try{await rj($,V),d(null),h(null),C("ç¨æ·ä¿¡æ¯æ´æ°æåï¼"),T()}catch(I){alert(((j=(B=I==null?void 0:I.response)==null?void 0:B.data)==null?void 0:j.message)||"æ´æ°ç¨æ·ä¿¡æ¯å¤±è´¥")}},N=async $=>{var V,B;try{await J2e($),v(null),C("ç¨æ·å·²å®å
¨å é¤ï¼è½¯å é¤ï¼"),T()}catch(j){alert(((B=(V=j==null?void 0:j.response)==null?void 0:V.data)==null?void 0:B.message)||"å é¤ç¨æ·å¤±è´¥ï¼å½åç»å½è´¦å·ç¼ºä¹ç®¡çå (admin) æéï¼è¯·éæ°ç»å½ï¼")}},P=async()=>
547{if(x<0)return alert("é¢åº¦ä¸éä¸è½å°äº0");k(!0);try{await nj({globalLimit:Number(x)}),C(`å·²æåå°ææç¨æ·ç AI å
è´¹é¢åº¦ä¸éç»ä¸è®¾ç½®ä¸º ${x} 次ï¼`),T()}catch{alert("ç»ä¸æ¹éä¿®æ¹é¢åº¦å¤±è´¥")}finally{k(!1)}},L=async()=>{if(window.confirm("ç¡®å®è¦å°ææç¨æ·çâ已使ç¨å
è´¹ AI 次æ°âé置为 0 åï¼")){k(!0);try{await nj({resetUsed:!0}),C("å·²æåéç½®ææç¨æ·çâå·²ç¨å
费次æ°â为 0 次ï¼"),T()}catch{alert("éç½®å
¨åå·²ç¨é¢åº¦å¤±è´¥")}finally{k(!1)}}},R=async $=>{try{await rj($.id,{freeAiUsed:0}),C(`å·²éç½® ${$.nickname} çå·²ç¨å
费次æ°ä¸º 0 次`),T()}catch{alert("é置个人å
è´¹é¢åº¦å¤±è´¥")}},M=Math.ceil(l/S);return w("div",{className:"space-y-6",children:[m&&w("div",{className:"fixed top-20 right-8 z-50 flex items-center gap-2 bg-emerald-500 text-white font-black px-5 py-3 rounded-xl shadow-2xl animate-bounce",children:[y(nn,{size:20}),y("span",{children:m})]}),w("div",{className:"admin-card p-6 rounded-2xl flex items-center justify-between shadow-md",children:[w("div",{children:[w("h1",{className:"admin-title text-2xl tracking-wide flex items-center gap-3",children:[y(dxe,{className:"text-emerald-500",size:28}),"ç¨æ·è´¦å·ç®¡æ§"]}),y("p",{className:"admin-subtext text-sm font-medium mt-1",children:"宿¶ç®¡æ§æ³¨åè´¦æ·ãä¿®æ¹ä¸ªäºº/å
¨å AI å
è´¹é¢åº¦ãé置账å·å¯ç åè°æ´è§è²æé"})]}),w("button",{onClick:T,className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all shadow-sm border border-slate-300 dark:border-slate-700 bg-slate-100 dark:bg-slate-900 text-slate-700 dark:text-slate-200",children:[y(Zo,{size:16,className:r?"animate-spin text-emerald-500":""}),"å·æ°å表"]})]}),w("div",{className:"admin-card p-5 rounded-2xl border border-indigo-500/20 bg-gradient-to-r from-indigo-500/5 via-purple-500/5 to-emerald-500/5 shadow-sm space-y-3",children:[y("div",{className:"flex items-center justify-between",children:w("div",{className:"flex items-center gap-2",children:[y(gr,{className:"w-5 h-5 text-indigo-500 shrink-0"}),y("h2",{className:"text-sm font-bold admin-title",children:"AI æ´å¯å
è´¹é¢åº¦å
¨å±æ§å¶é¢æ¿"}),y("span",{className:"text-xs text-indigo-600 bg-indigo-50 dark:bg-indigo-950/60 dark:text-indigo-400 px-2.5 py-0.5 rounded-full font-semibold",children:"管çå¼åè
åºç¡ Key é¢åº¦"})]})}),w("div",{className:"flex flex-wrap items-center justify-between gap-4 pt-1",children:[w("div",{className:"flex items-center gap-3",children:[y("span",{className:"text-xs font-bold admin-subtext",children:"å
¨åç»ä¸å
è´¹é¢åº¦ä¸éï¼"}),w("div",{className:"flex items-center gap-2",children:[y("input",{type:"number",min:0,value:x,onChange:$=>b(Number($.target.value)),className:"w-20 px-3 py-1.5 rounded-xl admin-input-field text-xs font-mono font-bold text-center"}),y("span",{className:"text-xs font-bold admin-subtext",children:"次"}),y("button",{onClick:P,disabled:_,className:"px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs font-bold transition-all shadow-sm",children:_?"设置ä¸...":"ä¸é®åºç¨ç»ææç¨æ·"})]})]}),w("button",{onClick:L,disabled:_,className:"flex items-center gap-2 px-4 py-1.5 rounded-xl bg-amber-500/10 hover:bg-amber-500/20 text-amber-600 dark:text-amber-400 border border-amber-500/30 text-xs font-bold transition-all",children:[y(IP,{size:14}),"ä¸é®éç½®å
¨åå·²ç¨æ¬¡æ° (å½é¶)"]})]})]}),y("div",{className:"admin-card p-4 rounded-xl",children:w("form",{onSubmit:E,className:"flex gap-2 max-w-md",children:[w("div",{className:"relative flex-1",children:[y(Ik,{size:18,className:"absolute left-3.5 top-1/2 -translate-y-1/2 admin-subtext"}),y("input",{type:"text",value:a,onChange:$=>i($.target.value),placeholder:"ææµç§°æé®ç®±æç´¢ç¨æ·...",className:"w-full pl-10 pr-4 py-2.5 rounded-xl text-sm font-medium admin-input-field"})]}),y("button",{type:"submit",className:"px-5 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"æç´¢"})]})}),w("div",{className:"admin-card rounded-2xl shadow-xl overflow-hidden",children:[y("div",{className:"overflow-x-auto",children:w("table",{className:"w-full text-left border-collapse min-w-[950px]",children:[y("thead",{children:w("tr",{children:[y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-64",children:"ç¨æ·åºæ¬ä¿¡æ¯"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"è§è²æé"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-44",children:"AI å
è´¹é¢åº¦"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-28",children:"è¿ç»æå¡"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-32",children:"èè¯µæ®µè½æ°"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-32",children:"æ³¨åæ¶é´"}),y("th",{className:"admin-table-th px-6 py-4 text-right text-xs whitespace-nowrap w-64",children:"æä½åè½"})]})}),y("tbody",{className:"text-sm font-medium",children:r?y("tr",{children:y("td",{colSpan:7,className:"px-6 py-12 text-center admin-subtext",children:"æ£å¨å è½½ç¨æ·æ°æ®..."})}):e.length===0?y("tr",{children:y("td",{colSpan:7,className:"px-6 py-12 text-center admin-subtext",children:"ææ ç¬¦åæ¡ä»¶çç¨æ·"})}):e.map($=>{var I,U;const V=$.freeAiUsed??0,B=$.freeAiLimit??2,j=V>=B;return w("tr",{className:"admin-table-row transition-colors",children:[y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:w("div",{className:"flex items-center gap-3",children:[y("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/15 border border-emerald-500/30 text-emerald-600 dark:text-emerald-400 flex items-center justify-center font-black text-base shrink-0",children:((U=(I=$.nickname)==null?void 0:I.charAt(0))==null?void 0:U.toUpperCase())||"U"}),w("div",{className:"min-w-0",children:[y("p",{className:"font-black text-base admin-title truncate",children:$.nickname||"æªå½åç¨æ·"}),y("p",{className:"text-xs font-mono admin-subtext truncate",children:$.email||"æªç»å®é®ç®±"})]})]})}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:$.role==="admin"?w("span",{className:"whitespace-nowrap inline-flex items-center gap-1.5 px-3.5 py-1 rounded-full text-xs font-extrabold bg-amber-500/15 text-amber-600 dar
547k:text-amber-400 border border-amber-500/30 shrink-0",children:[y(zm,{size:14}),"管çå"]}):w("span",{className:"whitespace-nowrap inline-flex items-center gap-1.5 px-3.5 py-1 rounded-full text-xs font-extrabold bg-slate-500/15 text-slate-600 dark:text-slate-300 border border-slate-500/30 shrink-0",children:[y(R$,{size:14}),"æ®éç¨æ·"]})}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:w("div",{className:"flex flex-col gap-1.5 items-start",children:[$.hasCustomApiKey?w("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] font-extrabold bg-emerald-500/15 text-emerald-600 dark:text-emerald-400 border border-emerald-500/30 flex items-center gap-1",children:[y(nn,{size:11})," å·²é
èªå® Key (æ éé¢)"]}):null,w("div",{className:"flex items-center gap-2",children:[y("span",{className:`px-2.5 py-1 rounded-lg text-xs font-mono font-extrabold border ${j&&!$.hasCustomApiKey?"bg-rose-500/10 text-rose-600 border-rose-500/30 dark:text-rose-400":"bg-indigo-500/10 text-indigo-600 border-indigo-500/30 dark:text-indigo-400"}`,children:$.hasCustomApiKey?`è¯ç¨æ£å ${V} / ${B} 次`:`å·²ç¨ ${V} / é¢åº¦ ${B} 次`}),y("button",{onClick:()=>R($),title:"éç½®è¯¥ç¨æ·å·²ç¨å
费次æ°ä¸º 0",className:"p-1 rounded-lg hover:bg-slate-200 dark:hover:bg-slate-800 text-slate-400 hover:text-indigo-600 transition-colors",children:y(IP,{size:13})})]})]})}),w("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap font-mono font-bold text-emerald-600 dark:text-emerald-400",children:[$.studyStreak||0," 天"]}),w("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap font-mono font-bold text-indigo-600 dark:text-indigo-400",children:[$.totalParagraphs||0," ç¯"]}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap text-xs font-mono admin-subtext",children:$.createdAt?new Date($.createdAt).toLocaleDateString("zh-CN"):"-"}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap text-right",children:w("div",{className:"flex items-center justify-end gap-2.5 shrink-0",children:[w("button",{onClick:()=>d($),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-slate-300 dark:border-slate-700 bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-100 hover:border-emerald-500",children:[y(Nk,{size:13,className:"text-emerald-500"}),"ç¼è¾"]}),w("button",{onClick:()=>h($),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-amber-500/40 bg-amber-500/10 text-amber-600 dark:text-amber-400 hover:bg-amber-500/20",children:[y(Ek,{size:13}),"éç½®å¯ç "]}),y("button",{onClick:()=>v($.id),className:"p-1.5 rounded-xl transition-all border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20",title:"å®å
¨å é¤",children:y(ic,{size:14})})]})})]},$.id)})})]})}),M>1&&w("div",{className:"flex items-center justify-between px-6 py-4 text-sm admin-card-dark border-t border-slate-200 dark:border-slate-800",children:[w("p",{className:"font-medium admin-subtext",children:["第 ",y("span",{className:"font-bold admin-title",children:o})," / ",y("span",{className:"font-bold admin-title",children:M})," 页"]}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:()=>s(Math.max(1,o-1)),disabled:o===1,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(Ak,{size:18})}),y("button",{onClick:()=>s(Math.min(M,o+1)),disabled:o===M,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(es,{size:18})})]})]})]}),c&&y(gke,{user:c,onClose:()=>d(null),onSave:$=>A(c.id,$)}),f&&y(mke,{user:f,onClose:()=>h(null),onSave:$=>A(f.id,$)}),p&&y(yke,{onConfirm:()=>N(p),onCancel:()=>v(null)})]})}function gke({user:e,onClose:t,onSave:r}){const[n,a]=z.useState(e.nickname||""),[i,o]=z.useState(e.email||""),[s,l]=z.useState(e.role||"user"),[u,c]=z.useState(e.studyStreak||0),[d,f]=z.useState(e.totalParagraphs||0),[h,p]=z.useState(e.freeAiUsed??0),[v,m]=z.useState(e.freeAiLimit??2),[g,x]=z.useState(e.customApiKey||"");return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-md admin-card rounded-2xl p-6 space-y-5 shadow-2xl",children:[w("div",{className:"flex items-center justify-between border-b pb-4 border-slate-200 dark:border-slate-800",children:[y("h3",{className:"text-lg font-black admin-title",children:"ç¼è¾ç¨æ·è´¦å·ä¿¡æ¯"}),y("button",{onClick:t,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("form",{onSubmit:_=>{_.preventDefault(),r({nickname:n,email:i,role:s,studyStreak:Number(u),totalParagraphs:Number(d),freeAiUsed:Number(h),freeAiLimit:Number(v),customApiKey:g.trim()})},className:"space-y-4 text-sm font-medium",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"ç¨æ·æµç§° *"}),y("input",{type:"text",value:n,onChange:_=>a(_.target.value),required:!0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-bold focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"ç»å®é®ç®±å°å *"}),y("input",{type:"email",value:i,onChange:_=>o(_.target.value),required:!0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"è´¦å·æéè§è²"}),w("select",{value:s,onChange:_=>l(_.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none",children:[y("option",{value:"user",children:"æ®éç¨æ· (user)"}),y("option",{value:"admin",children:"å¹³å°ç®¡çå (admin)"})]})]}),w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"è¿ç»æå¡å¤©æ°"}),y("input",{type:"number",value:u,onChange:_=>c(Number(_.target.value)),min:0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"èè¯µæ®µè½æ»æ°"}),y("input",{type:"number",value:d,onChange:_=>f(Number(_.target.value)),min:0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono focus:outline-none"})]})]}),w("div",{className:"bg-indigo-500/5 p-3 rounded-xl border border-indigo-500/20 space-y-3",children:[w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 text-indigo-600 dark:text-indigo-400",children:"å·²ç¨å
è´¹ AI 次æ°"}),y("input",{type:"number",value:h,onChange:_=>p(Number(_.target.value)),min:0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono font-bold focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 text-indigo-600 dark:text-indigo-400",children:"å
è´¹ AI é¢åº¦ä¸é"}
547),y("input",{type:"number",value:v,onChange:_=>m(Number(_.target.value)),min:0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono font-bold focus:outline-none"})]})]}),w("div",{children:[w("div",{className:"flex items-center justify-between mb-1.5",children:[w("label",{className:"text-xs font-bold uppercase text-indigo-600 dark:text-indigo-400 flex items-center gap-1",children:[y(Ek,{size:12}),y("span",{children:"èªå® API Key ç»å®ç¶æ"})]}),e.hasCustomApiKey?y("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-md bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/30",children:"å·²ç»å®èªç¨ Key (æ éé¢)"}):y("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-md bg-slate-500/10 text-slate-500",children:"è¯ç¨å
è´¹é¢åº¦"})]}),y("input",{type:"text",value:g,onChange:_=>x(_.target.value),placeholder:"sk-infinisynapse-... (çç©ºå³æ¸
空èªå® Key)",className:"w-full px-3.5 py-2 rounded-xl admin-input-field font-mono text-xs focus:outline-none"}),y("p",{className:"text-[11px] text-slate-400 pt-1",children:"ð¡ æç¤ºï¼å½ç¨æ·å¡«å
¥äºèªå® API Keyï¼AI æ¶èå°ç´æ¥æ£é¤å
¶ä¸ªäººèµæºï¼ä¸è®¡å
¥ç³»ç»å
è´¹ä½éªé¢åº¦ã"})]})]}),w("div",{className:"flex gap-3 pt-4 border-t border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{type:"submit",className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"ä¿åæ´æ°"})]})]})]})})}function mke({user:e,onClose:t,onSave:r}){const[n,a]=z.useState(""),i=o=>{if(o.preventDefault(),n.length<6){alert("æ°å¯ç é¿åº¦ä¸è½å°äº 6 ä½");return}r({password:n})};return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-md admin-card rounded-2xl p-6 space-y-5 shadow-2xl",children:[w("div",{className:"flex items-center justify-between border-b pb-4 border-slate-200 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-2 font-black admin-title text-lg",children:[y(Ek,{className:"text-amber-500",size:20}),y("span",{children:"éç½®ç¨æ·å¯ç "})]}),y("button",{onClick:t,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("div",{className:"p-3 rounded-xl text-xs admin-card-dark admin-subtext",children:["æ£å¨ä¸ºç¨æ· ",y("strong",{className:"admin-title font-mono",children:e.nickname||e.email})," 设置æ°å¯ç ãéç½®åè¯¥ç¨æ·éä½¿ç¨æ°å¯ç ç»å½ã"]}),w("form",{onSubmit:i,className:"space-y-4 text-sm font-medium",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"请è¾å
¥æ°å¯ç (è³å°6ä½) *"}),y("input",{type:"password",value:n,onChange:o=>a(o.target.value),required:!0,minLength:6,placeholder:"请è¾å
¥è³å° 6 使°å¯ç ...",className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono focus:outline-none"})]}),w("div",{className:"flex gap-3 pt-4 border-t border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{type:"submit",className:"flex-1 py-2.5 rounded-xl font-bold bg-amber-500 hover:bg-amber-600 text-white shadow-md shadow-amber-500/20",children:"确认éç½®å¯ç "})]})]})]})})}function yke({onConfirm:e,onCancel:t}){return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-sm admin-card rounded-2xl p-6 space-y-4 shadow-2xl",children:[y("h3",{className:"text-lg font-black admin-title",children:"确认软å é¤è¯¥ç¨æ·ï¼"}),y("p",{className:"text-sm font-medium admin-subtext",children:"å é¤åè¯¥ç¨æ·å°æ æ³ç»å½ï¼å
¶å岿å¡è®°å½å°è¿è¡å½æ¡£å¤çã"}),w("div",{className:"flex gap-3 pt-2",children:[y("button",{onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold text-sm border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold text-sm bg-red-600 hover:bg-red-700 text-white shadow-md shadow-red-600/20",children:"确认å é¤"})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const xke=[{id:"",label:"å
¨é¨åç±»"},{id:"æç»´è®¤ç¥",label:"æç»´è®¤ç¥"},{id:"人é
æ²é",label:"人é
æ²é"},{id:"æå¦æå¢",label:"æå¦æå¢"},{id:"妿¯æ¦å¿µ",label:"妿¯æ¦å¿µ"},{id:"æè¯å
¸æ
",label:"æè¯å
¸æ
"},{id:"èªå®ä¹",label:"èªå®ä¹"}];function bke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(""),[o,s]=z.useState(""),[l,u]=z.useState(1),[c,d]=z.useState(0),[f,h]=z.useState(!1),[p,v]=z.useState(!1),[m,g]=z.useState(null),[x,b]=z.useState(null),[_,k]=z.useState(null),S=10;z.useEffect(()=>{T()},[l,a,o]);const C=M=>{k(M),setTimeout(()=>k(null),3e3)},T=async()=>{n(!0);try{const M=await Q2e({page:l,size:S,keyword:a,category:o||void 0});t(M.data.data.records),d(M.data.data.total)}catch{}finally{n(!1)}},E=M=>{M.preventDefault(),u(1),T()},A=async M=>
547{try{await eke(M),h(!1),C("è¯è¯å建æåï¼"),T()}catch{}},N=async M=>{try{await nke(M),v(!1),C(`æåæ¹é导å
¥ ${M.length} 个è¯è¯ï¼`),T()}catch{alert("æ¹éæ·»å 失败ï¼è¯·æ£æ¥è¾å
¥æ ¼å¼")}},P=async(M,$)=>{try{await tke(M,$),g(null),C("è¯è¯æ´æ°æåï¼"),T()}catch{}},L=async M=>{try{await rke(M),b(null),C("è¯è¯å·²å é¤"),T()}catch{}},R=Math.ceil(c/S);return w("div",{className:"space-y-6",children:[_&&w("div",{className:"fixed top-20 right-8 z-50 flex items-center gap-2 bg-emerald-500 text-white font-black px-5 py-3 rounded-xl shadow-2xl animate-bounce",children:[y(nn,{size:20}),y("span",{children:_})]}),w("div",{className:"admin-card p-6 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 shadow-md",children:[w("div",{children:[w("h1",{className:"admin-title text-2xl tracking-wide flex items-center gap-3",children:[y(Yn,{className:"text-emerald-500",size:28}),"è¯è¯åºç®¡ç"]}),y("p",{className:"admin-subtext text-sm font-medium mt-1",children:"æ¶å½å¹¶ç»´æ¤å¹³å°æ ¸å¿è¯æ±ãæè¯åé«çº§è¡¨è¾¾ï¼æ¯æâæ åæ ¼å¼âä¸âèçæ ¼å¼âæ¹é导å
¥"})]}),w("div",{className:"flex items-center gap-3",children:[w("button",{onClick:()=>v(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all border border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-500/20",children:[y(If,{size:18}),"æ¹é导å
¥è¯è¯"]}),w("button",{onClick:()=>h(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:[y(Ti,{size:18}),"åæ¡æ·»å "]})]})]}),w("div",{className:"admin-card p-5 rounded-2xl shadow-md space-y-3",children:[w("div",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-wider admin-subtext",children:[y(of,{size:14,className:"text-emerald-500"}),y("span",{children:"å¿«æ·åç±»çé"})]}),y("div",{className:"flex flex-wrap gap-2.5 items-center",children:xke.map(M=>{const $=o===M.id;return w("button",{onClick:()=>{s(M.id),u(1)},className:`whitespace-nowrap inline-flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer border shrink-0 ${$?"bg-emerald-500/20 text-emerald-600 dark:text-emerald-300 border-emerald-500 shadow-sm":"bg-slate-100 dark:bg-slate-950 text-slate-600 dark:text-slate-300 border-slate-300 dark:border-slate-800 hover:border-slate-400"}`,children:[y(D$,{size:13,className:$?"text-emerald-500":"text-slate-400"}),y("span",{children:M.label})]},M.id)})})]}),y("div",{className:"admin-card p-4 rounded-xl",children:w("form",{onSubmit:E,className:"flex gap-2 max-w-md",children:[w("div",{className:"relative flex-1",children:[y(Ik,{size:18,className:"absolute left-3.5 top-1/2 -translate-y-1/2 admin-subtext"}),y("input",{type:"text",value:a,onChange:M=>i(M.target.value),placeholder:"æç´¢è¯è¯åç§°...",className:"w-full pl-10 pr-4 py-2.5 rounded-xl text-sm font-medium admin-input-field"})]}),y("button",{type:"submit",className:"px-5 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"æç´¢"})]})}),w("div",{className:"admin-card rounded-2xl shadow-xl overflow-hidden",children:[y("div",{className:"overflow-x-auto",children:w("table",{className:"w-full text-left border-collapse min-w-[850px]",children:[y("thead",{children:w("tr",{children:[y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-44",children:"è¯è¯åç§°"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"æ¼é³"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap",children:"æ ¸å¿éä¹"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-44",children:"ç±»å / åç±»"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"å建æ¶é´"}),y("th",{className:"admin-table-th px-6 py-4 text-right text-xs whitespace-nowrap w-48",children:"æä½åè½"})]})}),y("tbody",{className:"text-sm font-medium",children:r?y("tr",{children:y("td",{colSpan:6,className:"px-6 py-12 text-center admin-subtext",children:"æ£å¨å è½½è¯è¯æ°æ®..."})}):e.length===0?y("tr",{children:y("td",{colSpan:6,className:"px-6 py-12 text-center admin-subtext",children:"å½ååç±»ä¸ææ è¯è¯æ°æ®"})}):e.map(M=>w("tr",{className:"admin-table-row transition-colors",children:[y("td",{className:"admin-table-td px-6 py-4 font-black text-base whitespace-nowrap text-emerald-600 dark:text-emerald-400",children:M.term}),y("td",{className:"admin-table-td px-6 py-4 font-mono text-xs whitespace-nowrap admin-subtext",children:M.pinyin||"-"}),w("td",{className:"admin-table-td px-6 py-4 max-w-sm",children:[y("p",{className:"line-clamp-2 leading-relaxed admin-title",children:M.explanation}),M.example&&w("p",{className:"text-xs italic mt-1 line-clamp-1 admin-subtext",children:["ä¾ï¼",M.example]})]}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:w("div",{className:"flex flex-col gap-1 items-start",children:[y("span",{className:"whitespace-nowrap inline-flex items-center px-3 py-1 rounded-full text-xs font-extrabold bg-emerald-500/15 text-emerald-600 dark:text-emerald-300 border border-emerald-500/30 shrink-0",children:M.category||"éç¨"}),y("span",{className:"text-[10px] font-mono admin-subtext",children:M.wordType==="idiom"?"æè¯":M.wordType==="phrase"?"çè¯":"è¯è¯"})]})}),y("td",{className:"admin-table-td px-6 py-4 text-xs font-mono whitespace-nowrap admin-subtext",children:M.createdAt?new Date(M.createdAt).toLocaleDateString("zh-CN"):"-"}),y("td",{className:"admin-table-td px-6 py-4 text-right whitespace-nowrap",children:w("div",{className:"flex items-center justify-end gap-2.5 shrink-0",children:[w("button",{onClick:()=>g(M),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-slate-300 dark:border-slate-700 bg-slate-100 dar
547k:bg-slate-800 text-slate-800 dark:text-slate-100 hover:border-emerald-500",children:[y(Nk,{size:14,className:"text-emerald-500"}),"ç¼è¾"]}),w("button",{onClick:()=>b(M.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20",children:[y(ic,{size:14}),"å é¤"]})]})})]},M.id))})]})}),R>1&&w("div",{className:"flex items-center justify-between px-6 py-4 text-sm admin-card-dark border-t border-slate-200 dark:border-slate-800",children:[w("p",{className:"font-medium admin-subtext",children:["第 ",y("span",{className:"font-bold admin-title",children:l})," / ",y("span",{className:"font-bold admin-title",children:R})," 页"]}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:()=>u(Math.max(1,l-1)),disabled:l===1,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(Ak,{size:18})}),y("button",{onClick:()=>u(Math.min(R,l+1)),disabled:l===R,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(es,{size:18})})]})]})]}),(f||m)&&y(wke,{word:m,onClose:()=>{h(!1),g(null)},onSave:M=>{m?P(m.id,M):A(M)}}),p&&y(_ke,{onClose:()=>v(!1),onSave:N}),x&&y(Ske,{onConfirm:()=>L(x),onCancel:()=>b(null)})]})}function wke({word:e,onClose:t,onSave:r}){const[n,a]=z.useState((e==null?void 0:e.term)||""),[i,o]=z.useState((e==null?void 0:e.pinyin)||""),[s,l]=z.useState((e==null?void 0:e.explanation)||""),[u,c]=z.useState((e==null?void 0:e.example)||""),[d,f]=z.useState((e==null?void 0:e.category)||"æç»´è®¤ç¥"),[h,p]=z.useState((e==null?void 0:e.wordType)||"word");return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-lg admin-card rounded-2xl p-6 space-y-5 shadow-2xl",children:[w("div",{className:"flex items-center justify-between border-b pb-4 border-slate-200 dark:border-slate-800",children:[y("h3",{className:"text-lg font-black admin-title",children:e?"ç¼è¾è¯è¯æ°æ®":"æ°å¢åæ¡è¯è¯"}),y("button",{onClick:t,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("form",{onSubmit:m=>{m.preventDefault(),r({term:n,pinyin:i,explanation:s,example:u,category:d,wordType:h})},className:"space-y-4 text-sm font-medium",children:[w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"è¯è¯åç§° *"}),y("input",{type:"text",value:n,onChange:m=>a(m.target.value),required:!0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-bold focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"æ¼é³"}),y("input",{type:"text",value:i,onChange:m=>o(m.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field font-mono focus:outline-none"})]})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"æ ¸å¿éä¹ *"}),y("textarea",{value:s,onChange:m=>l(m.target.value),required:!0,rows:2,className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"é å¥ä¾å¥"}),y("textarea",{value:u,onChange:m=>c(m.target.value),rows:2,className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"æå±åç±»"}),y("input",{type:"text",value:d,onChange:m=>f(m.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"è¯è¯ç±»å"}),w("select",{value:h,onChange:m=>p(m.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none",children:[y("option",{value:"word",children:"æ®éè¯è¯"}),y("option",{value:"idiom",children:"æè¯"}),y("option",{value:"phrase",children:"常ç¨çè¯"})]})]})]}),w("div",{className:"flex gap-3 pt-4 border-t border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{type:"submit",className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"ä¿å"})]})]})]})})}function _ke({onClose:e,onSave:t}){const[r,n]=z.useState(""),[a,i]=z.useState([]),o=c=>{if(n(c),!c.trim()){i([]);return}try{if(c.trim().startsWith("[")&&c.trim().endsWith("]")){const h=JSON.parse(c);if(Array.isArray(h)){i(h);return}}const f=c.split(` 548`).map(h=>
548h.trim()).filter(Boolean).map(h=>{var m,g;const p=h.split("|").map(x=>x.trim());if(p.length>=3)return{term:p[0]||"",pinyin:p.length>=5?p[1]:"",explanation:p.length>=5?p[2]:p[1],example:p.length>=5?p[3]:p.length===4?p[2]:"",category:p.length>=5?p[4]:p.length===4?p[3]:p[2]||"æç»´è®¤ç¥",wordType:((m=p[0])==null?void 0:m.length)===4?"idiom":"word"};if(p.length===2)return{term:p[0]||"",pinyin:"",explanation:p[1]||"",example:"",category:"æç»´è®¤ç¥",wordType:((g=p[0])==null?void 0:g.length)===4?"idiom":"word"};const v=h.match(/^([^:ï¼]+)[:ï¼](.+)$/);return v?{term:v[1].trim(),pinyin:"",explanation:v[2].trim(),example:"",category:"æç»´è®¤ç¥",wordType:v[1].trim().length===4?"idiom":"word"}:{term:h,pinyin:"",explanation:h,example:"",category:"æç»´è®¤ç¥",wordType:h.length===4?"idiom":"word"}}).filter(h=>h.term&&h.explanation);i(f)}catch{}};return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-2xl admin-card rounded-2xl p-6 space-y-5 shadow-2xl max-h-[92vh] flex flex-col",children:[w("div",{className:"flex items-center justify-between border-b pb-4 shrink-0 border-slate-200 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-2 admin-title text-lg",children:[y(If,{className:"text-emerald-500",size:22}),y("span",{children:"æ¹éå¯¼å ¥è¯è¯æ°æ®"})]}),y("button",{onClick:e,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("div",{className:"p-4 rounded-xl text-xs space-y-3 shrink-0 admin-card-dark border border-slate-200 dark:border-slate-800 admin-subtext",children:[w("div",{className:"flex items-center justify-between font-bold text-emerald-600 dark:text-emerald-400",children:[w("span",{className:"flex items-center gap-1.5",children:[y(Pf,{size:16,className:"text-amber-500"}),y("span",{children:"æ¯æãæ åæ ¼å¼ãä¸ãèçæ ¼å¼ãæç®æ¹éå¯¼å ¥ï¼"})]}),w("div",{className:"flex items-center gap-2",children:[y("button",{type:"button",onClick:()=>{o(`è å¡é¡¿å¼|形容æè·¯çªç¶å¼çªï¼é¡¿ææç½ã 549å¨å¨éæ¥|形容说è¯è¿ç»ä¸æãçå¨å¨å¬ã 550æ´è¥è§ç«|形容è§å¯å¾éå¸¸æ¸ æ¥éå½»ã`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-amber-500/15 text-amber-600 dark:text-amber-300 border border-amber-500/40 hover:bg-amber-500/25",children:"â¡ å¡«å ¥ãèçæ ¼å¼ã示ä¾"}),y("button",{type:"button",onClick:()=>{o(`è å¡é¡¿å¼|máo sè dùn kÄi|形容æè·¯çªç¶å¼çªï¼é¡¿ææç½ã|读å®è¿æ¬ä¹¦ï¼ææå°è å¡é¡¿å¼ã|æç»´è®¤ç¥ 551å¨å¨éæ¥|wÄi wÄi dà o lái|形容说è¯è¿ç»ä¸æãçå¨å¨å¬ã|ä»å°æ äºå¨å¨éæ¥ï¼èè¿åè¨ä¸è¯ã|äººé æ²é`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-emerald-500/15 text-emerald-600 dark:text-emerald-300 border border-emerald-500/40 hover:bg-emerald-500/25",children:"å¡«å ¥ãæ åæ ¼å¼ã示ä¾"})]})]}),w("div",{className:"space-y-1.5 text-slate-700 dark:text-slate-300 leading-relaxed",children:[w("p",{children:[y("strong",{children:"â¡ 1. èçæ ¼å¼ (æç®å¿«éå¯¼å ¥è§å)ï¼"})," æ¯è¡åªéè¾å ¥ ",y("code",{children:"è¯è¯|éä¹"}),"ãç³»ç»ä¼èªå¨çç¥æ¼é³ï¼å¹¶å°åç±»èªå¨è®¾ä¸ºâæç»´è®¤ç¥âã"]}),w("p",{children:[y("strong",{children:"2. æ åå ¨æ ¼å¼è§åï¼"})," æ¯è¡æ ",y("code",{children:"è¯è¯|æ¼é³|éä¹|ä¾å¥|åç±»"})," 5é¡¹æ ¼å¼å¡«å ã"]}),w("p",{children:[y("strong",{children:"3. æä½è¯´æï¼"})," å°å¤å¶å¥½çå¤è¡ææ¬ç´æ¥ç²è´´è³ä¸æ¹è¾å ¥æ¡ä¸ï¼ç³»ç»å°å®æ¶ç»è®¡è§£ææ¡æ°ï¼ç¡®è®¤æ 误åç¹å»ä¸æ¹ã确认æ¹éå¯¼å ¥ãæé®å³å¯ã"]})]})]}),w("form",{onSubmit:c=>{if(c.preventDefault(),a.length===0){alert("è¯·å¡«å ¥è³å°ä¸æ¡æææ°æ®ååæäº¤ã");return}t(a)},className:"flex-1 flex flex-col space-y-4 min-h-0",children:[w("div",{className:"flex-1 flex flex-col min-h-0",children:[w("div",{className:"flex justify-between items-center mb-1.5 text-xs font-bold admin-subtext",children:[y("span",{children:"è¾å ¥å å®¹ææ¬ï¼"}),w("span",{className:"font-mono text-emerald-600 dark:text-emerald-400",children:["å·²æåè§£æåº ",a.length," æ¡è®°å½"]})]}),y("textarea",{value:r,onChange:c=>o(c.target.value),placeholder:"è¯·å¨æ¤ç²è´´èçæ ¼å¼ï¼è¯è¯|éä¹ï¼ææ åæ ¼å¼æ°æ®...",rows:7,className:"w-full flex-1 p-4 rounded-xl font-mono text-xs admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"flex gap-3 pt-2 border-t shrink-0 border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),w("button",{type:"submit",disabled:a.length===0,className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white disabled:opacity-40 shadow-md shadow-emerald-500/20",children:["确认æ¹éå¯¼å ¥ (",a.length,")"]})]})]})]})})}function Ske({onConfirm:e,onCancel:t}){return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-sm admin-card rounded-2xl p-6 space-y-4 shadow-2xl",children:[y("h3",{className:"text-lg font-black admin-title",children:"确认å é¤è¯¥è¯è¯ï¼"}),y("p",{className:"text-sm font-medium admin-subtext",children:"å é¤åè¯
551è¯å°ä¸å¯æ¢å¤ã"}),w("div",{className:"flex gap-3 pt-2",children:[y("button",{onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold text-sm border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold text-sm bg-red-600 hover:bg-red-700 text-white shadow-md shadow-red-600/20",children:"确认å é¤"})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const kke=[{id:"",label:"å
¨é¨åç±»"},{id:"åè¨è¦å¥",label:"åè¨è¦å¥"},{id:"å¤è¯è¯",label:"å¤è¯è¯åå¥"},{id:"ç°ä»£æ£æ",label:"ç°ä»£æ£æ"},{id:"å²çæè",label:"å²çæè"},{id:"æ
绪表达",label:"æ
绪表达"},{id:"éç¨",label:"éç¨"}];function Cke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(""),[o,s]=z.useState(""),[l,u]=z.useState(1),[c,d]=z.useState(0),[f,h]=z.useState(!1),[p,v]=z.useState(!1),[m,g]=z.useState(null),[x,b]=z.useState(null),[_,k]=z.useState(null),S=10;z.useEffect(()=>{T()},[l,a,o]);const C=M=>{k(M),setTimeout(()=>k(null),3e3)},T=async()=>{n(!0);try{const M=await ake({page:l,size:S,keyword:a,category:o||void 0});t(M.data.data.records),d(M.data.data.total)}catch{}finally{n(!1)}},E=M=>{M.preventDefault(),u(1),T()},A=async M=>{try{await ike(M),h(!1),C("å¥åæ·»å æåï¼"),T()}catch{}},N=async M=>{try{await oke(M),v(!1),C(`æåæ¹é导å
¥ ${M.length} æ¡åå¥ï¼`),T()}catch{alert("æ¹éæ·»å 失败ï¼è¯·æ£æ¥è¾å
¥æ ¼å¼")}},P=async(M,$)=>{try{await ske(M,$),g(null),C("å¥åæ´æ°æåï¼"),T()}catch{}},L=async M=>{try{await lke(M),b(null),C("å¥åå·²å é¤"),T()}catch{}},R=Math.ceil(c/S);return w("div",{className:"space-y-6",children:[_&&w("div",{className:"fixed top-20 right-8 z-50 flex items-center gap-2 bg-emerald-500 text-white font-black px-5 py-3 rounded-xl shadow-2xl animate-bounce",children:[y(nn,{size:20}),y("span",{children:_})]}),w("div",{className:"admin-card p-6 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 shadow-md",children:[w("div",{children:[w("h1",{className:"admin-title text-2xl tracking-wide flex items-center gap-3",children:[y(jp,{className:"text-emerald-500",size:28}),"å¥ååºç®¡ç"]}),y("p",{className:"admin-subtext text-sm font-medium mt-1",children:"æ¶å½åè¨è¦å¥ãåç¯åå¥åéå¥ï¼æ¯æâæ åæ ¼å¼âä¸âèçæ ¼å¼âæ¹é导å
¥"})]}),w("div",{className:"flex items-center gap-3",children:[w("button",{onClick:()=>v(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all border border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-500/20",children:[y(If,{size:18}),"æ¹é导å
¥å¥å"]}),w("button",{onClick:()=>h(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:[y(Ti,{size:18}),"åæ¡æ·»å "]})]})]}),w("div",{className:"admin-card p-5 rounded-2xl shadow-md space-y-3",children:[w("div",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-wider admin-subtext",children:[y(of,{size:14,className:"text-emerald-500"}),y("span",{children:"å¿«æ·åç±»çé"})]}),y("div",{className:"flex flex-wrap gap-2.5 items-center",children:kke.map(M=>{const $=o===M.id;return w("button",{onClick:()=>{s(M.id),u(1)},className:`whitespace-nowrap inline-flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer border shrink-0 ${$?"bg-emerald-500/20 text-emerald-600 dark:text-emerald-300 border-emerald-500 shadow-sm":"bg-slate-100 dark:bg-slate-950 text-slate-600 dark:text-slate-300 border-slate-300 dark:border-slate-800 hover:border-slate-400"}`,children:[y(D$,{size:13,className:$?"text-emerald-500":"text-slate-400"}),y("span",{children:M.label})]},M.id)})})]}),y("div",{className:"admin-card p-4 rounded-xl",children:w("form",{onSubmit:E,className:"flex gap-2 max-w-md",children:[w("div",{className:"relative flex-1",children:[y(Ik,{size:18,className:"absolute left-3.5 to
551p-1/2 -translate-y-1/2 admin-subtext"}),y("input",{type:"text",value:a,onChange:M=>i(M.target.value),placeholder:"æå¥åææ¬å
容æç´¢...",className:"w-full pl-10 pr-4 py-2.5 rounded-xl text-sm font-medium admin-input-field"})]}),y("button",{type:"submit",className:"px-5 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"æç´¢"})]})}),w("div",{className:"admin-card rounded-2xl shadow-xl overflow-hidden",children:[y("div",{className:"overflow-x-auto",children:w("table",{className:"w-full text-left border-collapse min-w-[850px]",children:[y("thead",{children:w("tr",{children:[y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap",children:"å¥åå
容"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-44",children:"åºå¤æ¥æº"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"åç±»"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"å建æ¶é´"}),y("th",{className:"admin-table-th px-6 py-4 text-right text-xs whitespace-nowrap w-48",children:"æä½åè½"})]})}),y("tbody",{className:"text-sm font-medium",children:r?y("tr",{children:y("td",{colSpan:5,className:"px-6 py-12 text-center admin-subtext",children:"æ£å¨å è½½å¥åæ°æ®..."})}):e.length===0?y("tr",{children:y("td",{colSpan:5,className:"px-6 py-12 text-center admin-subtext",children:"å½ååç±»ä¸ææ å¥åæ°æ®"})}):e.map(M=>w("tr",{className:"admin-table-row transition-colors",children:[w("td",{className:"admin-table-td px-6 py-4 font-bold text-base max-w-xl leading-relaxed admin-title",children:["â",M.content,"â"]}),y("td",{className:"admin-table-td px-6 py-4 text-xs font-semibold whitespace-nowrap admin-subtext",children:M.source?`ââ ${M.source}`:"æªç¥æ¥æº"}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:y("span",{className:"whitespace-nowrap inline-flex items-center px-3 py-1 rounded-full text-xs font-extrabold bg-indigo-500/15 text-indigo-600 dark:text-indigo-300 border border-indigo-500/30 shrink-0",children:M.category||"éç¨"})}),y("td",{className:"admin-table-td px-6 py-4 text-xs font-mono whitespace-nowrap admin-subtext",children:M.createdAt?new Date(M.createdAt).toLocaleDateString("zh-CN"):"-"}),y("td",{className:"admin-table-td px-6 py-4 text-right whitespace-nowrap",children:w("div",{className:"flex items-center justify-end gap-2.5 shrink-0",children:[w("button",{onClick:()=>g(M),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-slate-300 dark:border-slate-700 bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-100 hover:border-emerald-500",children:[y(Nk,{size:14,className:"text-emerald-500"}),"ç¼è¾"]}),w("button",{onClick:()=>b(M.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20",children:[y(ic,{size:14}),"å é¤"]})]})})]},M.id))})]})}),R>1&&w("div",{className:"flex items-center justify-between px-6 py-4 text-sm admin-card-dark border-t border-slate-200 dark:border-slate-800",children:[w("p",{className:"font-medium admin-subtext",children:["第 ",y("span",{className:"font-bold admin-title",children:l})," / ",y("span",{className:"font-bold admin-title",children:R})," 页"]}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:()=>u(Math.max(1,l-1)),disabled:l===1,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(Ak,{size:18})}),y("button",{onClick:()=>u(Math.min(R,l+1)),disabled:l===R,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(es,{size:18})})]})]})]}),(f||m)&&y(Tke,{sentence:m,onClose:()=>{h(!1),g(null)},onSave:M=>{m?P(m.id,M):A(M)}}),p&&y(Ake,{onClose:()=>v(!1),onSave:N}),x&&y(Eke,{onConfirm:()=>L(x),onCancel:()=>b(null)})]})}function Tke({sentence:e,onClose:t,onSave:r}){const[n,a]=z.useState((e==null?void 0:e.content)||""),[i,o]=z.useState((e==null?void 0:e.source)||""),[s,l]=z.useState((e==null?void 0:e.category)||"åè¨è¦å¥");return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-lg admin-card rounded-2xl p-6 space-y-5 shadow-2xl",children:[w("div",{className:"flex items-center justify-between border-b pb-4 border-slate-200 dark:border-slate-800",children:[y("h3",{className:"text-lg font-black admin-title",children:e?"ç¼è¾å¥åæ°æ®":"æ°å¢åæ¡å¥å"}),y("button",{onClick:t,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("form",{onSubmit:c=>{c.preventDefault(),r({content:n,source:i,category:s})},className:"space-y-4 text-sm font-medium",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"å¥åå
容 *"}),y("textarea",{value:n,onChange:c=>a(c.target.value),required:!0,rows:3,className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"åºå¤æ¥æº"}),y("input",{type:"text",value:i,onChange:c=>
551o(c.target.value),placeholder:"ä¾å¦ï¼é²è¿ ãæè±å¤æ¾ã",className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"åç±»"}),y("input",{type:"text",value:s,onChange:c=>l(c.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]})]}),w("div",{className:"flex gap-3 pt-4 border-t border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{type:"submit",className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"ä¿å"})]})]})]})})}function Ake({onClose:e,onSave:t}){const[r,n]=z.useState(""),[a,i]=z.useState([]),o=c=>{if(n(c),!c.trim()){i([]);return}try{if(c.trim().startsWith("[")&&c.trim().endsWith("]")){const h=JSON.parse(c);if(Array.isArray(h)){i(h);return}}const f=c.split(` 552`).map(h=>h.trim()).filter(Boolean).map(h=>{const p=h.split("|").map(v=>v.trim());return p.length>=3?{content:p[0]||"",source:p[1]||"æªç¥åºå¤",category:p[2]||"åè¨è¦å¥"}:p.length===2?{content:p[0]||"",source:p[1]||"æªç¥åºå¤",category:"åè¨è¦å¥"}:{content:h,source:"æªç¥åºå¤",category:"åè¨è¦å¥"}}).filter(h=>h.content);i(f)}catch{}};return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-2xl admin-card rounded-2xl p-6 space-y-5 shadow-2xl max-h-[92vh] flex flex-col",children:[w("div",{className:"flex items-center justify-between border-b pb-4 shrink-0 border-slate-200 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-2 admin-title text-lg",children:[y(If,{className:"text-emerald-500",size:22}),y("span",{children:"æ¹éå¯¼å ¥å¥åæ°æ®"})]}),y("button",{onClick:e,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("div",{className:"p-4 rounded-xl text-xs space-y-3 shrink-0 admin-card-dark border border-slate-200 dark:border-slate-800 admin-subtext",children:[w("div",{className:"flex items-center justify-between font-bold text-emerald-600 dark:text-emerald-400",children:[w("span",{className:"flex items-center gap-1.5",children:[y(Pf,{size:16,className:"text-amber-500"}),y("span",{children:"æ¯æãæ åæ ¼å¼ãä¸ãèçæ ¼å¼ãæç®æ¹éå¯¼å ¥ï¼"})]}),w("div",{className:"flex items-center gap-2",children:[y("button",{type:"button",onClick:()=>{o(`å¦è䏿åç½ï¼æèä¸å¦åæ®ã 553ç¥äººè æºï¼èªç¥è æï¼èäººè æåï¼èªèè 强ã 554çæ£çææ·ä¸æ¯è·³å¾é«ï¼èæ¯è½å°ç¨³ã`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-amber-500/15 text-amber-600 dark:text-amber-300 border border-amber-500/40 hover:bg-amber-500/25",children:"â¡ å¡«å ¥ãèçæ ¼å¼ã示ä¾"}),y("button",{type:"button",onClick:()=>{o(`å¦è䏿åç½ï¼æèä¸å¦åæ®ã|ã论è¯ã|å¤è¯è¯ 555ç¥äººè æºï¼èªç¥è æï¼èäººè æåï¼èªèè 强ã|èåãéå¾·ç»ã|å²çæè`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-emerald-500/15 text-emerald-600 dark:text-emerald-300 border border-emerald-500/40 hover:bg-emerald-500/25",children:"å¡«å ¥ãæ åæ ¼å¼ã示ä¾"})]})]}),w("div",{className:"space-y-1.5 text-slate-700 dark:text-slate-300 leading-relaxed",children:[w("p",{children:[y("strong",{children:"â¡ 1. èçæ ¼å¼ (æç®çº¯å¥åå¯¼å ¥è§å)ï¼"})," æ¯è¡ç´æ¥ç²è´´ä¸å¥è¯ï¼æ éåç«çº¿æåºå¤ï¼ãåºå¤å°èªå¨è®¾ä¸ºâæªç¥åºå¤âï¼åç±»èªå¨è®¾ä¸ºâåè¨è¦å¥âã"]}),w("p",{children:[y("strong",{children:"2. æ åå ¨æ ¼å¼è§åï¼"})," æ¯è¡æ ",y("code",{children:"å¥åå 容|åºå¤æ¥æº|åç±»"})," 3项åå²å¡«å ¥ã"]}),w("p",{children:[y("strong",{children:"3. æä½è¯´æï¼"})," ç´æ¥å¤å¶æ´æ®µææ¬ç²è´´è³ä¸æ¡ä¸ï¼ç³»ç»å°æè¡å®æ¶åææ¡æ°ï¼æ ¸å¯¹æ 误åç¹å»ä¸æ¹ã确认æ¹éå¯¼å ¥ãæé®å³å¯ã"]})]})]}),w("form",{onSubmit:c=>{if(c.preventDefault(),a.length===0){alert("è¯·å¡«å ¥è³å°ä¸æ¡æææ°æ®ã");return}t(a)},className:"flex-1 flex flex-col space-y-4 min-h-0",children:[w("div",{className:"flex-1 flex flex-col min-h-0",children:[w("div",{className:"flex justify-between items-center mb-1.5 text-xs font-bold admin-subtext",children:[y("span",{children:"è¾å ¥å¥åææ¬
555ï¼"}),w("span",{className:"font-mono text-emerald-600 dark:text-emerald-400",children:["å·²æåè§£æåº ",a.length," æ¡å¥å"]})]}),y("textarea",{value:r,onChange:c=>o(c.target.value),placeholder:"æ¯è¡ç´æ¥ç²è´´ä¸å¥è¯ï¼èçæ ¼å¼ï¼ï¼æè¾å
¥ å¥å|åºå¤|åç±»...",rows:7,className:"w-full flex-1 p-4 rounded-xl font-mono text-xs admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"flex gap-3 pt-2 border-t shrink-0 border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),w("button",{type:"submit",disabled:a.length===0,className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white disabled:opacity-40 shadow-md shadow-emerald-500/20",children:["确认æ¹é导å
¥ (",a.length,")"]})]})]})]})})}function Eke({onConfirm:e,onCancel:t}){return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-sm admin-card rounded-2xl p-6 space-y-4 shadow-2xl",children:[y("h3",{className:"text-lg font-black admin-title",children:"确认å é¤è¯¥å¥åï¼"}),y("p",{className:"text-sm font-medium admin-subtext",children:"å é¤å该åå¥å°ä¸åå¨å¥ååºä¸å±ç°ã"}),w("div",{className:"flex gap-3 pt-2",children:[y("button",{onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold text-sm border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold text-sm bg-red-600 hover:bg-red-700 text-white shadow-md shadow-red-600/20",children:"确认å é¤"})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Nke=[{id:"",label:"å
¨é¨åç±»"},{id:"æ£ææå¢",label:"æ£ææå¢"},{id:"åå®¶åç¯",label:"åå®¶åç¯"},{id:"å²çæ£æ",label:"å²çæ£æ"},{id:"åäºææ
",label:"åäºææ
"},{id:"æç»´è®¤ç¥",label:"æç»´è®¤ç¥"},{id:"éç¨",label:"éç¨"}];function Ike(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(""),[o,s]=z.useState(""),[l,u]=z.useState(1),[c,d]=z.useState(0),[f,h]=z.useState(!1),[p,v]=z.useState(!1),[m,g]=z.useState(null),[x,b]=z.useState(null),[_,k]=z.useState(null),S=10;z.useEffect(()=>{T()},[l,a,o]);const C=M=>{k(M),setTimeout(()=>k(null),3e3)},T=async()=>{n(!0);try{const M=await uke({page:l,size:S,keyword:a,category:o||void 0});t(M.data.data.records),d(M.data.data.total)}catch{}finally{n(!1)}},E=M=>{M.preventDefault(),u(1),T()},A=async M=>{try{await cke(M),h(!1),C("æ®µè½æ·»å æåï¼"),T()}catch{}},N=async M=>{try{await dke(M),v(!1),C(`æåæ¹é导å
¥ ${M.length} ç¯æ®µè½ï¼`),T()}catch{alert("æ¹éæ·»å 失败ï¼è¯·æ£æ¥æ°æ®æ ¼å¼")}},P=async(M,$)=>{try{await fke(M,$),g(null),C("æ®µè½æ´æ°æåï¼"),T()}catch{}},L=async M=>{try{await hke(M),b(null),C("段è½å·²å é¤"),T()}catch{}},R=Math.ceil(c/S);return w("div",{className:"space-y-6",children:[_&&w("div",{className:"fixed top-20 right-8 z-50 flex items-center gap-2 bg-emerald-500 text-white font-black px-5 py-3 rounded-xl shadow-2xl animate-bounce",children:[y(nn,{size:20}),y("span",{children:_})]}),w("div",{className:"admin-card p-6 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 shadow-md",children:[w("div",{children:[w("h1",{className:"admin-title text-2xl tracking-wide flex items-center gap-3",children:[y(Z_,{className:"text-emerald-500",size:28}),"段è½åºç®¡ç"]}),y("p",{className:"admin-subtext text-sm font-medium mt-1",children:"ç»´æ¤æå¡è诵çä¼è´¨ææ¬æ®µè½ï¼æ¯æâæ åæ ¼å¼âä¸âèçæ ¼å¼âæ¹é导å
¥"})]}),w("div",{className:"flex items-center gap-3",children:[w("button",{onClick:()=>v(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all border border-emerald-500/40 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-500/20",children:[y(If,{size:18}),"æ¹é导å
¥æ®µè½"]}),w("button",{onClick:()=>h(!0),className:"flex items-center gap-2 px-4 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:[y(Ti,{size:18}),"åæ¡æ·»å "]})]})]}),w("div",{className:"admin-card p-5 rounded-2xl shadow-md space-y-3",children:[w("div",{className:"flex items-center gap-2 text-xs font-black uppercase tracking-wider admin-subtext",children:[y(of,{size:14,className:"text-emerald-500"}),y("span",{children:"å¿«æ·åç±»çé"})]}),y("div",{className:"flex flex-wrap gap-2.5 items-center",children:Nke.map(M=>{const $=o===M.id;return w("button",{onClick:()=>{s(M.id),u(1)},className:`whitespace-nowrap inline-flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer border shrink-0 ${$?"bg-emerald-500/20 text-emerald-600 dark:text-emerald-300 border-emerald-500 shadow-sm":"bg-slate-100 dar
555k:bg-slate-950 text-slate-600 dark:text-slate-300 border-slate-300 dark:border-slate-800 hover:border-slate-400"}`,children:[y(D$,{size:13,className:$?"text-emerald-500":"text-slate-400"}),y("span",{children:M.label})]},M.id)})})]}),y("div",{className:"admin-card p-4 rounded-xl",children:w("form",{onSubmit:E,className:"flex gap-2 max-w-md",children:[w("div",{className:"relative flex-1",children:[y(Ik,{size:18,className:"absolute left-3.5 top-1/2 -translate-y-1/2 admin-subtext"}),y("input",{type:"text",value:a,onChange:M=>i(M.target.value),placeholder:"ææ®µè½æ é¢ææ£æå
³é®åæç´¢...",className:"w-full pl-10 pr-4 py-2.5 rounded-xl text-sm font-medium admin-input-field"})]}),y("button",{type:"submit",className:"px-5 py-2.5 rounded-xl text-sm font-bold transition-all bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"æç´¢"})]})}),w("div",{className:"admin-card rounded-2xl shadow-xl overflow-hidden",children:[y("div",{className:"overflow-x-auto",children:w("table",{className:"w-full text-left border-collapse min-w-[900px]",children:[y("thead",{children:w("tr",{children:[y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap",children:"æ é¢ä¸æ£ææè¦"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-44",children:"åºå¤æ¥æº"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-24",children:"åæ°"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"åç±»"}),y("th",{className:"admin-table-th px-6 py-4 text-xs whitespace-nowrap w-36",children:"å建æ¶é´"}),y("th",{className:"admin-table-th px-6 py-4 text-right text-xs whitespace-nowrap w-48",children:"æä½åè½"})]})}),y("tbody",{className:"text-sm font-medium",children:r?y("tr",{children:y("td",{colSpan:6,className:"px-6 py-12 text-center admin-subtext",children:"æ£å¨å è½½æ®µè½æ°æ®..."})}):e.length===0?y("tr",{children:y("td",{colSpan:6,className:"px-6 py-12 text-center admin-subtext",children:"å½ååç±»ä¸ææ æ®µè½æ°æ®"})}):e.map(M=>{var $;return w("tr",{className:"admin-table-row transition-colors",children:[w("td",{className:"admin-table-td px-6 py-4 max-w-md",children:[y("p",{className:"font-black admin-title text-base mb-1",children:M.title||"æ æ 颿®µè½"}),y("p",{className:"text-xs line-clamp-2 leading-relaxed admin-subtext",children:M.content})]}),y("td",{className:"admin-table-td px-6 py-4 text-xs font-semibold whitespace-nowrap admin-subtext",children:M.source?`ã${M.source}ã`:"æªç¥æ¥æº"}),w("td",{className:"admin-table-td px-6 py-4 text-xs font-mono font-bold whitespace-nowrap text-cyan-600 dark:text-cyan-400",children:[M.wordCount||(($=M.content)==null?void 0:$.length)||0," å"]}),y("td",{className:"admin-table-td px-6 py-4 whitespace-nowrap",children:y("span",{className:"whitespace-nowrap inline-flex items-center px-3 py-1 rounded-full text-xs font-extrabold bg-cyan-500/15 text-cyan-600 dark:text-cyan-300 border border-cyan-500/30 shrink-0",children:M.category||"éç¨"})}),y("td",{className:"admin-table-td px-6 py-4 text-xs font-mono whitespace-nowrap admin-subtext",children:M.createdAt?new Date(M.createdAt).toLocaleDateString("zh-CN"):"-"}),y("td",{className:"admin-table-td px-6 py-4 text-right whitespace-nowrap",children:w("div",{className:"flex items-center justify-end gap-2.5 shrink-0",children:[w("button",{onClick:()=>g(M),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-slate-300 dark:border-slate-700 bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-100 hover:border-emerald-500",children:[y(Nk,{size:14,className:"text-emerald-500"}),"ç¼è¾"]}),w("button",{onClick:()=>b(M.id),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl font-bold text-xs transition-all border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20",children:[y(ic,{size:14}),"å é¤"]})]})})]},M.id)})})]})}),R>1&&w("div",{className:"flex items-center justify-between px-6 py-4 text-sm admin-card-dark border-t border-slate-200 dark:border-slate-800",children:[w("p",{className:"font-medium admin-subtext",children:["第 ",y("span",{className:"font-bold admin-title",children:l})," / ",y("span",{className:"font-bold admin-title",children:R})," 页"]}),w("div",{className:"flex items-center gap-2",children:[y("button",{onClick:()=>u(Math.max(1,l-1)),disabled:l===1,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(Ak,{size:18})}),y("button",{onClick:()=>u(Math.min(R,l+1)),disabled:l===R,className:"p-2 rounded-xl admin-subtext disabled:opacity-40 disabled:cursor-not-allowed transition-all border border-slate-300 dark:border-slate-700",children:y(es,{size:18})})]})]})]}),(f||m)&&y(Pke,{paragraph:m,onClose:()=>{h(!1),g(null)},onSave:M=>{m?P(m.id,M):A(M)}}),p&&y(Mke,{onClose:()=>v(!1),onSave:N}),x&&y(Dke,{onConfirm:()=>L(x),onCancel:()=>b(null)})]})}function Pke({paragraph:e,onClose:t,onSave:r}){const[n,a]=z.useState((e==null?void 0:e.title)||""),[i,o]=z.useState((e==null?void 0:e.content)||""),[s,l]=z.useState((e==null?void 0:e.source)||""),[u,c]=z.useState((e==null?void 0:e.category)||"æ£ææ
555å¢");return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-xl admin-card rounded-2xl p-6 space-y-5 shadow-2xl",children:[w("div",{className:"flex items-center justify-between border-b pb-4 border-slate-200 dark:border-slate-800",children:[y("h3",{className:"text-lg font-black admin-title",children:e?"ç¼è¾æ®µè½æ°æ®":"æ°å¢åæ¡æ®µè½"}),y("button",{onClick:t,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("form",{onSubmit:f=>{f.preventDefault(),r({title:n,content:i,source:s,category:u})},className:"space-y-4 text-sm font-medium",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"æ®µè½æ é¢ *"}),y("input",{type:"text",value:n,onChange:f=>a(f.target.value),required:!0,className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"æ®µè½æ£æå 容 *"}),y("textarea",{value:i,onChange:f=>o(f.target.value),required:!0,rows:5,className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"grid grid-cols-2 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"åºå¤æ¥æº"}),y("input",{type:"text",value:s,onChange:f=>l(f.target.value),placeholder:"ä¾å¦ï¼é²è¿ ãéèã",className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]}),w("div",{children:[y("label",{className:"block text-xs font-bold uppercase mb-1.5 admin-subtext",children:"åç±»"}),y("input",{type:"text",value:u,onChange:f=>c(f.target.value),className:"w-full px-4 py-2.5 rounded-xl admin-input-field focus:outline-none"})]})]}),w("div",{className:"flex gap-3 pt-4 border-t border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{type:"submit",className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white shadow-md shadow-emerald-500/20",children:"ä¿å"})]})]})]})})}function Mke({onClose:e,onSave:t}){const[r,n]=z.useState(""),[a,i]=z.useState([]),o=c=>{if(n(c),!c.trim()){i([]);return}try{if(c.trim().startsWith("[")&&c.trim().endsWith("]")){const h=JSON.parse(c);if(Array.isArray(h)){i(h);return}}const f=c.split(` 556`).map(h=>h.trim()).filter(Boolean).map(h=>{const p=h.split("|").map(m=>m.trim());return p.length>=4?{title:p[0]||"æ æ 颿®µè½",content:p[1]||"",source:p[2]||"æªç¥åºå¤",category:p[3]||"æ£ææ
556å¢"}:p.length===2||p.length===3?{title:p[0]||"æ æ 颿®µè½",content:p[1]||"",source:p[2]||"æªç¥åºå¤",category:"æ£ææå¢"}:{title:h.length>12?h.slice(0,12)+"...":h,content:h,source:"æªç¥åºå¤",category:"æ£ææå¢"}}).filter(h=>h.content);i(f)}catch{}};return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-2xl admin-card rounded-2xl p-6 space-y-5 shadow-2xl max-h-[92vh] flex flex-col",children:[w("div",{className:"flex items-center justify-between border-b pb-4 shrink-0 border-slate-200 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-2 admin-title text-lg",children:[y(If,{className:"text-emerald-500",size:22}),y("span",{children:"æ¹éå¯¼å ¥æ®µè½æ°æ®"})]}),y("button",{onClick:e,className:"p-1.5 rounded-lg admin-subtext hover:admin-title",children:y(Tt,{size:20})})]}),w("div",{className:"p-4 rounded-xl text-xs space-y-3 shrink-0 admin-card-dark border border-slate-200 dark:border-slate-800 admin-subtext",children:[w("div",{className:"flex items-center justify-between font-bold text-emerald-600 dark:text-emerald-400",children:[w("span",{className:"flex items-center gap-1.5",children:[y(Pf,{size:16,className:"text-amber-500"}),y("span",{children:"æ¯æãæ åæ ¼å¼ãä¸ãèçæ ¼å¼ãæç®æ¹éå¯¼å ¥ï¼"})]}),w("div",{className:"flex items-center gap-2",children:[y("button",{type:"button",onClick:()=>{o(`æ²æ²ææçè·å¡ä¸é¢ï¼å¼¥æçæ¯ç°ç°çå¶åãå¶ååºæ°´å¾é«ï¼åäºäºçè女çè£ã 557æå½çé¨ï¼åæ¥æ²¡æåè¿å°å·çå硬çç¿ççéªè±ã飿¯å¤ç¬çéªï¼æ¯æ»æçé¨ã`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-amber-500/15 text-amber-600 dark:text-amber-300 border border-amber-500/40 hover:bg-amber-500/25",children:"â¡ å¡«å ¥ãèçæ ¼å¼ã示ä¾"}),y("button",{type:"button",onClick:()=>{o(`éªçæ±å|æå½çé¨ï¼åæ¥æ²¡æåè¿å°å·çå硬çç¿ççéªè±ã飿¯å¤ç¬çéªï¼æ¯æ»æçé¨ã|é²è¿ ãéèã|æ£ææå¢ 558è·å¡æè²|æ²æ²ææçè·å¡ä¸é¢ï¼å¼¥æçæ¯ç°ç°çå¶åãå¶ååºæ°´å¾é«ï¼åäºäºçè女çè£ã|æ±èªæ¸ |åå®¶åç¯`)},className:"text-xs px-2.5 py-1 rounded-lg font-bold bg-emerald-500/15 text-emerald-600 dark:text-emerald-300 border border-emerald-500/40 hover:bg-emerald-500/25",children:"å¡«å ¥ãæ åæ ¼å¼ã示ä¾"})]})]}),w("div",{className:"space-y-1.5 text-slate-700 dark:text-slate-300 leading-relaxed",children:[w("p",{children:[y("strong",{children:"â¡ 1. èçæ ¼å¼ (æç®çº¯æ£æå¯¼å ¥è§å)ï¼"})," æ¯è¡ç´æ¥ç²è´´ä¸æ®µæ£æï¼æ éåæ é¢æç«çº¿ï¼ãç³»ç»ä¼èªå¨å°æ£æå 12 个åæå为æ é¢ï¼åç±»èªå¨è®¾ä¸ºâæ£ææå¢âã"]}),w("p",{children:[y("strong",{children:"2. æ åå ¨æ ¼å¼è§åï¼"})," æ¯è¡æ ",y("code",{children:"æ®µè½æ é¢|æ£æå 容|åºå¤æ¥æº|åç±»"})," 4项ç¨ç«çº¿ ",y("code",{children:"|"})," éå¼ã"]}),w("p",{children:[y("strong",{children:"3. æä½è¯´æï¼"})," ç´æ¥ç²è´´æ¹é段è½ï¼ç³»ç»å®æ¶è§£æææ¬æ®µè½æ°å¹¶å±ç¤ºæ é¢é¢è§ï¼æ ¸å¯¹åç¹å»ä¸æ¹ã确认æ¹éå¯¼å ¥ãå³å¯å®ææä½ã"]})]})]}),w("form",{onSubmit:c=>{if(c.preventDefault(),a.length===0){alert("è¯·å¡«å ¥è³å°ä¸æ¡æææ®µè½æ°æ®ã");return}t(a)},className:"flex-1 flex flex-col space-y-4 min-h-0",children:[w("div",{className:"flex-1 flex flex-col min-h-0",children:[w("div",{className:"flex justify-between items-center mb-1.5 text-xs font-bold admin-subtext",children:[y("span",{children:"è¾å ¥æ®µè½ææ¬ï¼"}),w("span",{className:"font-mono text-emerald-600 dark:text-emerald-400",children:["å·²æåè§£æåº ",a.length," ç¯æ®µè½"]})]}),y("textarea",{value:r,onChange:c=>o(c.target.value),placeholder:"æ¯è¡ç´æ¥ç²è´´ä¸æ®µæ£æï¼èçæ ¼å¼ï¼ï¼æè¾å ¥ æ é¢|æ£æ|åºå¤|åç±»...",rows:7,className:"w-full flex-1 p-4 rounded-xl font-mono text-xs admin-input-field focus:outline-none resize-none leading-relaxed"})]}),w("div",{className:"flex gap-3 pt-2 border-t shrink-0 border-slate-200 dark:border-slate-800",children:[y("button",{type:"button",onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),w("button",{type:"submit",disabled:a.length===0,className:"flex-1 py-2.5 rounded-xl font-bold bg-emerald-500 hover:bg-emerald-600 text-white disabled:opacity-40 shadow-md shadow-emerald-500/20",children:["确认æ¹éå¯¼å ¥ (",a.length,")"]})]})]})]})})}function Dke({onConfirm:e,onCancel:t}){return y("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-fade-in",children:w("div",{className:"w-full max-w-sm admin-card rounded-2xl p-6 space-y-4 shadow-2xl",children:[y("h3",{className:"text-lg font-black admin-title",children:"确认å é¤è¯¥æ®µè½ï¼"}),y("p",{className:"text-sm font-medium admin-subtext",children:"å é¤å该段è½å°ä¸ååºç°å¨ç¨æ·çæå¡è诵å表ä¸ã"}),w("div",{className:"flex gap-3 pt-2",children:[y("button",{onClick:t,className:"flex-1 py-2.5 rounded-xl font-bold text-sm border border-slate-300 dark:border-slate-700 admin-subtext hover:admin-title",children:"åæ¶"}),y("button",{onClick:e,className:"flex-1 py-2.5 rounded-xl font-bold text-sm bg-red-600 hover:bg-red-700 text-white shadow-md shadow-red-600/20",children:"确认å é¤"})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Lke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(!1),[o,s]=z.useState({title:"",content:"",s
558ource:""});z.useState(null);const[l,u]=z.useState(""),[c,d]=z.useState(!1),[f,h]=z.useState(null),[p,v]=z.useState(!1),[m,g]=z.useState(""),[x,b]=z.useState(!1),[_,k]=z.useState([]),[S,C]=z.useState(!1),[T,E]=z.useState("å
¨é¨"),[A,N]=z.useState(null),P=["å
¨é¨","æ£æç¾æ","é»è¾äººæ","ç»å
¸çºªå½ç","大å¸éç¬","å½±è§æå§"],[L,R]=z.useState(!1),[M,$]=z.useState(!1),[V,B]=z.useState("desc"),[j,I]=z.useState("all"),[U,Y]=z.useState(new Set),[O,H]=z.useState(null),ie=async()=>{try{n(!0);const ne=await Wne();t(ne.data.data)}catch{}finally{n(!1)}};z.useEffect(()=>{ie()},[]);const ee=e.length,se=e.filter(ne=>ne.status==="mastered").length,oe=e.filter(ne=>ne.status==="learning"||ne.status==="mastered"||U.has(ne.id)).length,be=e.filter(ne=>{const De=T==="å
¨é¨"||ne.category===T,gt=(()=>{if(j==="all"||!ne.createdAt)return!0;const dt=new Date(ne.createdAt).getTime(),bt=Date.now(),mn=24*60*60*1e3;if(j==="today"){const bc=new Date().setHours(0,0,0,0);return dt>=bc}return j==="7days"?bt-dt<=7*mn:j==="30days"?bt-dt<=30*mn:!0})();return De&>}).sort((ne,De)=>{const gt=ne.createdAt?new Date(ne.createdAt).getTime():0,dt=De.createdAt?new Date(De.createdAt).getTime():0;return V==="asc"?gt-dt:dt-gt}),me=async ne=>{var De,gt;if(ne.preventDefault(),!!o.content.trim()){u("");try{await G2e(o),s({title:"",content:"",source:""}),i(!1),ie()}catch(dt){u(((gt=(De=dt.response)==null?void 0:De.data)==null?void 0:gt.message)||"å建失败")}}},Z=async(ne,De)=>{if(De.stopPropagation(),!!confirm("ç¡®å®è¦å é¤è¿ä¸ªæ®µè½åï¼"))try{await H2e(ne),ie()}catch{}},J=async()=>{v(!0),g("");try{const ne=await W2e();ne.data.data?h(ne.data.data):(h(null),g("æ¨å·²ç»å°ç³»ç»åºä¸ç 100 个段è½å
¨é¨æ¬ç©ºäºï¼èµ¶å¿«å»ç»ä¹ æè
èªå·±æ°å¢æ®µè½å§ã"))}catch{g("è·åéæºæ®µè½å¤±è´¥ï¼è¯·éè¯")}finally{v(!1)}},we=()=>{d(!0),J()},xe=T==="å
¨é¨"?_:_.filter(ne=>ne.category===T),Pe=async()=>{b(!0),C(!0),E("å
¨é¨");try{const ne=await q2e();k(ne.data.data)}catch{}finally{C(!1)}},he=async ne=>{var De,gt;try{await tj(ne),k(dt=>dt.map(bt=>bt.id===ne?{...bt,isAdded:!0}:bt)),A&&A.id===ne&&N(dt=>dt?{...dt,isAdded:!0}:null),ie()}catch(dt){alert(((gt=(De=dt.response)==null?void 0:De.data)==null?void 0:gt.message)||"æ·»å 失败")}},je=async()=>{var ne,De;if(f)try{await tj(f.id),d(!1),ie()}catch(gt){alert(((De=(ne=gt.response)==null?void 0:ne.data)==null?void 0:De.message)||"æ·»å 失败")}};return w("div",{className:"space-y-6 max-w-4xl mx-auto pb-12 relative",children:[w("div",{className:"flex items-center justify-between",children:[y("h1",{className:"text-base md:text-lg font-black text-slate-800 dark:text-slate-100",children:"æç段è½åº"}),w("div",{className:"flex items-center gap-2",children:[e.length>0&&w(Rt,{children:[w("button",{onClick:we,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dark:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"éæºæ½å",children:[y(Su,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"éæºæ½å"})]}),w("button",{onClick:Pe,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dark:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"é¦èæµè§",children:[y(ku,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"æµè§"})]})]}),w("button",{onClick:()=>i(ne=>!ne),className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-semibold text-white bg-violet-600 hover:bg-violet-700 active:scale-95 rounded-xl transition-all shadow-md shadow-violet-500/20",title:"æ°å¢æ®µè½",children:[y(Ti,{size:14,className:"flex-shrink-0"}),y("span",{children:"æ°å¢æ®µè½"})]})]})]}),w("div",{className:"flex items-center gap-3 text-[10px] md:text-xs text-slate-500 dark:text-slate-400",children:[w("span",{className:"flex items-center gap-1",children:[y(pp,{size:11,className:"text-violet-500"})," å·²æ¶è ",ee," ç¯"]}),w("span",{className:"flex items-center gap-1",children:[y(Fd,{size:11,className:"text-blue-500"})," å·²æ¥ç ",oe," ç¯"]}),w("span",{className:"flex items-center gap-1",children:[y(_u,{size:11,className:"text-emerald-500"})," å·²ææ¡ ",se," ç¯"]})]}),a&&w("form",{onSubmit:me,className:"glass-panel p-5 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-4 animate-fade-in text-left",children:[w("div",{className:"flex items-center justify-between border-b border-slate-200 dark:border-slate-800/20 pb-3",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider up
558percase flex items-center gap-1.5",children:[y(gr,{size:12}),"æ·»å èªå®ä¹æ®µè½"]}),y("button",{type:"button",onClick:()=>i(!1),className:"p-1 rounded-md text-slate-400 hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y(Tt,{size:16})})]}),l&&y("p",{className:"text-red-500 dark:text-red-400 text-xs",children:l}),w("div",{className:"space-y-3",children:[w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"æ é¢"}),y("input",{value:o.title,onChange:ne=>s({...o,title:ne.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"å¦ï¼é»å·èµ¤å£è®°",required:!0})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"å
容ï¼å»ºè®® 60 - 120 åï¼ä½¿å
¶å
·ææ®µè½ç»æï¼"}),y("textarea",{value:o.content,onChange:ne=>s({...o,content:ne.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm min-h-[120px] transition-all leading-relaxed",placeholder:"卿¤ç²è´´ä½ è¦èè¯µçæ®µè½...",required:!0}),w("div",{className:"flex justify-between items-center mt-1.5 text-[10px] text-slate-500",children:[y("span",{children:"ç²¾çä¼ç¾çä¸æè¯æè½å徿´ä½³çè¯æå
åææ"}),w("span",{children:["å½ååæ°ï¼",y("strong",{className:"text-slate-950 dark:text-slate-300 font-bold",children:o.content.length})," å"]})]})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"æ¥æº"}),y("input",{value:o.source,onChange:ne=>s({...o,source:ne.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"书å / ä½è
/ åºå¤"})]})]}),w("div",{className:"flex gap-3 justify-end pt-2 border-t border-slate-200 dark:border-slate-800/20",children:[y("button",{type:"button",onClick:()=>i(!1),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-500 rounded-xl text-xs font-semibold hover:bg-slate-100 dark:hover:bg-slate-900 transition-all",children:"åæ¶"}),y("button",{type:"submit",className:"px-5 py-2 bg-primary text-white rounded-xl text-xs font-semibold hover:bg-primary-dark shadow-lg shadow-primary/20 transition-all",children:"ä¿å段è½"})]})]}),r?w("div",{className:"flex flex-col items-center justify-center py-20 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-sm",children:"å 载段è½å表ä¸..."})]}):e.length===0?w("div",{className:"max-w-xl mx-auto space-y-6 py-6 animate-fade-in",children:[w("div",{className:"glass-panel p-8 rounded-3xl border border-slate-200 dark:border-slate-800/40 text-center space-y-4 bg-white dark:bg-slate-900",children:[y("div",{className:"mx-auto w-12 h-12 rounded-2xl bg-violet-500/10 text-violet-500 flex items-center justify-center",children:y(Yn,{size:24})}),w("div",{className:"space-y-1.5",children:[y("h3",{className:"text-slate-900 dark:text-slate-100 font-black text-base",children:"æ¨ç个人段è½åºè¿æ¯ç©ºç"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed max-w-sm mx-auto",children:"è¯æçéå¡ï¼å§äºå¯¹é«åä½ä¸æçå
åãæä»¬ä¸ºæ¨å¨ç³»ç»é¦èä¸ç²¾å¿åå¤äº 100 ç¯ 60-120 åçåå®¶æ£æã人ææè¾¨ãç»å
¸çºªå½çæç½å夿éå¥ã"})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 hover:border-violet-500/30 transition-all duration-300 flex flex-col justify-between hover:shadow-lg hover:shadow-violet-500/5 group text-left bg-white dark:bg-slate-900",children:[w("div",{className:"space-y-3",children:[y("div",{className:"w-10 h-10 rounded-xl bg-violet-500/10 text-violet-500 flex items-center justify-center transition-transform group-hover:rotate-12",children:y(Su,{size:20})}),y("h4",{className:"font-extrabold text-slate-900 dark:text-slate-200 text-sm",children:"éæºæ½åç³»ç»è¯æ"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed",children:"ä¸ç¥éèåªä¸æ®µï¼è®©å¤©æå³å®ãæ¯æ¬¡éæºæ½åºä¸ç¯ç»ç¾æ®µè½ï¼å¯éæ¶æ¾å¼å¹¶æ½åä¸ä¸ç¯ã"})]}),y("button",{onClick:we,className:"mt-6 w-full py-2 bg-violet-500 hover:bg-violet-600 text-white rounded-xl text-xs font-semibold transition-all shadow-md shadow-violet-500/10",children:"å¼å¯éæºæ½å"})]}),w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 hover:border-primary/30 transition-all duration-300 flex flex-col justify-between hover:shadow-lg hover:shadow-
558primary/5 group text-left bg-white dark:bg-slate-900",children:[w("div",{className:"space-y-3",children:[y("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center transition-transform group-hover:scale-110",children:y(ku,{size:20})}),y("h4",{className:"font-extrabold text-slate-900 dark:text-slate-200 text-sm",children:"ç³»ç»é¦èèªä¸»æµè§"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed",children:"å
ç½® 5 大åç±»çç¾ç¯ç¾æï¼æ£æç¾æãé»è¾äººæã纪å½çã夿éå¥ä¸å½±è§æå§ãéå¿æµè§æéã"})]}),y("button",{onClick:Pe,className:"mt-6 w-full py-2 bg-primary hover:bg-primary-dark text-white rounded-xl text-xs font-semibold transition-all shadow-md shadow-primary/10",children:"æµè§ç³»ç»é¦è"})]})]})]}):w("div",{className:"space-y-4",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-b border-slate-200 dark:border-slate-800/80 pb-3",children:[w("div",{className:"relative",children:[w("button",{onClick:()=>R(ne=>!ne),className:"flex items-center gap-1.5 px-3 py-1.5 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-bold rounded-xl transition-all",children:[y(of,{size:13,className:"text-violet-500"}),w("span",{children:["åç±»ï¼",T]}),y(zd,{size:13,className:`text-slate-400 transition-transform ${L?"rotate-180":""}`})]}),L&&w(Rt,{children:[y("div",{className:"fixed inset-0 z-20",onClick:()=>R(!1)}),y("div",{className:"absolute left-0 mt-1.5 w-44 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-xl z-30 py-1 text-xs animate-fade-in",children:P.map(ne=>w("button",{onClick:()=>{E(ne),R(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800/60 font-medium ${T===ne?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:ne}),T===ne&&y(Ir,{size:13})]},ne))})]})]}),w("div",{className:"flex flex-wrap items-center gap-2.5",children:[w("div",{className:"flex items-center gap-1 bg-slate-100 dark:bg-slate-900 px-2.5 py-1 rounded-xl border border-slate-200 dark:border-slate-800 text-xs",children:[y(kv,{size:12,className:"text-slate-400"}),w("select",{value:j,onChange:ne=>I(ne.target.value),className:"bg-transparent text-slate-700 dark:text-slate-300 text-xs border-none outline-none focus:outline-none focus:ring-0 shadow-none cursor-pointer font-semibold py-0.5",children:[y("option",{value:"all",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"å
¨é¨æ¶é´"}),y("option",{value:"today",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"ä»å¤©æ·»å "}),y("option",{value:"7days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿7天"}),y("option",{value:"30days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿30天"})]})]}),w("div",{className:"relative",children:[w("button",{onClick:()=>$(ne=>!ne),className:"flex items-center gap-1.5 px-3 py-1 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-semibold rounded-xl transition-all",children:[y(M$,{size:12,className:"text-violet-500"}),w("span",{children:["æåºï¼",V==="desc"?"ææ°æ·»å (仿°å°æ§)":"ææ©æ·»å (仿§å°æ°)"]}),y(zd,{size:12,className:`text-slate-400 transition-transform ${M?"rotate-180":""}`})]}),M&&w(Rt,{children:[y("div",{className:"fixed inset-0 z-20",onClick:()=>$(!1)}),w("div",{className:"absolute right-0 mt-1.5 w-48 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-xl z-30 py-1 text-xs animate-fade-in",children:[w("button",{onClick:()=>{B("desc"),$(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dar
558k:hover:bg-slate-800/60 font-medium ${V==="desc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ°æ·»å (仿°å°æ§)"}),V==="desc"&&y(Ir,{size:13})]}),w("button",{onClick:()=>{B("asc"),$(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800/60 font-medium ${V==="asc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ©æ·»å (仿§å°æ°)"}),V==="asc"&&y(Ir,{size:13})]})]})]})]})]})]}),be.length===0?w("div",{className:"text-center py-20 glass-panel rounded-3xl max-w-sm mx-auto space-y-4 border border-slate-200 dark:border-slate-800",children:[y(Xs,{className:"mx-auto text-slate-400 dark:text-slate-600",size:40}),w("div",{children:[y("h3",{className:"text-slate-800 dark:text-slate-200 font-bold text-sm",children:"该åç±»ä¸ææ 已添å çæ®µè½"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:"å¯ä»¥éè¿å³ä¸è§âé¦èæµè§âæâéæºæ½åâæ¥éæ©"})]})]}):y("div",{className:"space-y-3.5 text-left",children:be.map((ne,De)=>{const gt=O===ne.id,dt=gt?`${Math.min(480,Math.max(220,Math.ceil((ne.content||"").length/16)*26+130))}px`:"110px";return y("div",{className:`group cursor-pointer transition-all duration-500 ease-out ${gt?"relative z-10 max-w-2xl mx-auto":O?"opacity-40":""}`,style:{perspective:"1500px"},onClick:()=>{gt?H(null):(H(ne.id),Y(bt=>new Set(bt).add(ne.id)))},children:w("div",{className:"relative w-full transition-all duration-500 ease-out",style:{transformStyle:"preserve-3d",transform:gt?"rotateY(180deg)":"rotateY(0deg)",height:dt},children:[w("div",{className:"absolute inset-0 w-full rounded-2xl border flex items-center justify-between px-5 py-3.5 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800/60 hover:border-violet-500/40 hover:shadow-lg transition-all duration-300",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[w("div",{className:"flex items-center gap-3.5 flex-1 min-w-0 pr-4",children:[y("span",{className:"w-6 h-6 rounded-lg bg-violet-500/10 text-violet-600 dark:text-violet-400 text-xs font-extrabold flex items-center justify-center flex-shrink-0",children:De+1}),w("div",{className:"space-y-1 min-w-0 flex-1",children:[w("div",{className:"flex items-center gap-2",children:[y("h3",{className:"font-extrabold text-slate-800 dark:text-slate-100 text-base truncate",children:ne.title}),ne.category&&y("span",{className:"px-2 py-0.5 rounded bg-violet-500/10 text-violet-600 dark:text-violet-400 text-[10px] font-bold",children:ne.category})]}),y("p",{className:"text-slate-500 dark:text-slate-400 text-xs truncate",children:ne.content})]})]}),w("div",{className:"flex items-center gap-2 flex-shrink-0",children:[w("span",{className:"hidden sm:block text-[10px] text-slate-400",children:[ne.wordCount," å"]}),y("button",{onClick:bt=>{bt.stopPropagation(),Z(ne.id,bt)},className:"p-1.5 text-slate-400 hover:text-red-500 hover:bg-red-500/10 rounded-lg transition-colors",title:"å é¤",children:y(ic,{size:14})})]})]}),w("div",{className:"absolute inset-0 w-full rounded-2xl border border-violet-500/40 shadow-xl shadow-violet-500/15 bg-white dark:bg-slate-900 p-5 sm:p-6 flex flex-col justify-between",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:[w("div",{className:"flex items-center justify-between flex-shrink-0",children:[w("div",{className:"flex items-center gap-2 min-w-0 pr-2",children:[y("span",{className:"text-xs font-bold text-violet-600 dark:text-violet-300 bg-violet-500/10 px-2 py-0.5 rounded-md flex-shrink-0",children:ne.category||"段è½"}),y("h3",{className:"font-extrabold text-slate-800 dark:text-slate-100 text-sm truncate",children:ne.title})]}),y("button",{onClick:bt=>{bt.stopPropagation(),H(null)},className:"p-1 text-slate-400 hover:text-slate-700 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-lg transition-colors flex-shrink-0",title:"å
³é",children:y(Tt,{size:16})})]}),w("div",{className:"flex-1 overflow-y-auto my-2.5 p-4 rounded-xl bg-slate-50/80 dark:bg-slate-950/50 border border-slate-200/80 dark:border-slate-800 text-sm text-slate-800 dark:text-slate-200 leading-relaxed font-normal whitespace-pre-wrap relative shadow-inner",children:[y("div",{className:"text-violet-500/20 text-2xl font-serif absolute top-1 left-2 select-none pointer-events-none",children:"â"}),y("p",{className:"relative z-10 pt-0.5",children:ne.content})]}),w("div",{className:"flex items-center justify-between pt-2.5 border-t border-slate-100 dar
558k:border-slate-800/80 text-xs flex-shrink-0",children:[w("span",{className:"text-slate-400 dark:text-slate-500 font-medium",children:[ne.source||"ä½å"," · ",y("strong",{className:"text-slate-600 dark:text-slate-400 font-semibold",children:ne.wordCount})," å"]}),w(Mn,{to:`/paragraphs/${ne.id}/recite`,onClick:bt=>bt.stopPropagation(),className:"inline-flex items-center gap-1.5 px-4 py-1.5 bg-violet-600 hover:bg-violet-700 text-white text-xs font-bold rounded-xl transition-all shadow-md shadow-violet-500/20 active:scale-95",children:[y(Pf,{size:13}),"å»è诵"]})]})]})]})},ne.id)})})]}),c&&Fr.createPortal(y("div",{className:"fixed inset-0 bg-slate-950/75 backdrop-blur-md z-[100] flex items-center justify-center p-4 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 sm:p-7 max-w-xl w-full shadow-2xl space-y-6 text-left relative overflow-hidden",children:[y("div",{className:"absolute -top-16 -right-16 w-32 h-32 bg-violet-500/10 rounded-full blur-2xl pointer-events-none"}),w("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800/80 pb-4",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-9 h-9 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center flex-shrink-0",children:y(Su,{size:18,className:"animate-spin-slow"})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-base",children:"éæºæ½åç³»ç»æ®µè½"}),y("p",{className:"text-[11px] text-slate-400 dark:text-slate-500",children:"让天æå³å®ä»å¤©å
åççµæç¾æ"})]})]}),y("button",{onClick:()=>d(!1),className:"p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})})]}),p?w("div",{className:"py-14 flex flex-col items-center justify-center space-y-3",children:[y("div",{className:"w-9 h-9 border-3 border-violet-500/20 border-t-violet-600 rounded-full animate-spin"}),y("p",{className:"text-xs font-medium text-slate-400",children:"çµæè°é
ä¸..."})]}):m?w("div",{className:"text-center py-8 text-slate-500 dark:text-slate-400 text-sm space-y-3",children:[y(_u,{size:36,className:"mx-auto text-emerald-500"}),y("p",{className:"font-semibold",children:m})]}):f?w("div",{className:"space-y-4",children:[w("div",{className:"flex items-center justify-between",children:[y("h4",{className:"font-black text-slate-800 dark:text-slate-100 text-lg flex items-center gap-2",children:f.title}),f.category&&y("span",{className:"px-2.5 py-0.5 rounded-full border border-violet-500/20 bg-violet-500/10 text-xs text-violet-600 dark:text-violet-400 font-bold",children:f.category})]}),w("div",{className:"p-6 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/80 dark:bg-slate-950/60 leading-relaxed text-slate-800 dark:text-slate-200 text-sm md:text-base font-normal font-sans shadow-inner space-y-3 relative",children:[y("div",{className:"text-violet-500/20 text-3xl font-serif absolute top-2 left-3 select-none",children:"â"}),y("p",{className:"relative z-10 pt-1 leading-loose whitespace-pre-wrap",children:f.content})]}),w("div",{className:"flex items-center justify-between text-xs text-slate-400 dark:text-slate-500 px-1",children:[w("span",{children:["å
± ",y("strong",{className:"text-slate-700 dark:text-slate-300 font-semibold",children:f.wordCount})," å"]}),w("span",{className:"italic",children:["â ",f.source||"ä½å"]})]})]}):null,w("div",{className:"flex items-center justify-end gap-3 border-t border-slate-100 dark:border-slate-800/80 pt-4",children:[y("button",{onClick:()=>d(!1),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-xl text-xs font-semibold transition-all",children:"åæ¶"}),f&&w(Rt,{children:[w("button",{onClick:J,disabled:p,className:"inline-flex items-center gap-1.5 px-4 py-2 border border-violet-500/30 text-violet-600 dar
558k:text-violet-400 hover:bg-violet-500/10 rounded-xl text-xs font-semibold transition-all",children:[y(eS,{size:13,className:p?"animate-spin":""}),"æ¢ä¸ä¸ª"]}),w("button",{onClick:je,className:"inline-flex items-center gap-1.5 px-5 py-2 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold shadow-lg shadow-violet-500/25 transition-all active:scale-95",children:[y(Ti,{size:14}),"å°±èè¿æ®µ (å å
¥æçåº)"]})]})]})]})}),document.body),x&&Fr.createPortal(y("div",{className:"fixed inset-0 bg-slate-950/75 backdrop-blur-md z-[100] flex items-center justify-center p-3 sm:p-5 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-5 sm:p-6 max-w-5xl w-full h-[85vh] max-h-[720px] shadow-2xl flex flex-col justify-between text-left relative overflow-hidden",children:[w("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800/80 pb-3 flex-shrink-0",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-8 h-8 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center",children:y(ku,{size:16})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-base",children:"ç³»ç»é¦è · ç²¾éæ®µè½åº"}),y("p",{className:"text-[11px] text-slate-400 dark:text-slate-500",children:"æéé«åä½è¯æå¿«é纳å
¥ä¸ªäººåº"})]})]}),y("button",{onClick:()=>b(!1),className:"p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})})]}),w("div",{className:"flex flex-1 overflow-hidden py-3 gap-4 sm:gap-6 min-h-0",children:[y("div",{className:"w-28 sm:w-36 flex-shrink-0 space-y-1 overflow-y-auto pr-2 border-r border-slate-100 dark:border-slate-800/60",children:P.map(ne=>y("button",{onClick:()=>E(ne),className:`w-full px-3 py-2.5 text-left rounded-xl text-xs font-semibold transition-all duration-200 ${T===ne?"bg-violet-600 text-white font-extrabold shadow-md shadow-violet-600/20":"text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800/60"}`,children:ne},ne))}),y("div",{className:"flex-1 overflow-y-auto pr-1",children:S?w("div",{className:"py-20 flex flex-col items-center justify-center space-y-3",children:[y("div",{className:"w-8 h-8 border-3 border-violet-500/20 border-t-violet-600 rounded-full animate-spin"}),y("p",{className:"text-xs text-slate-400",children:"æ£å¨è°é
é¦èå·è½´..."})]}):xe.length===0?y("div",{className:"text-center py-20 text-slate-400 text-xs",children:"该åç±»ä¸ææ ç³»ç»æ¨è"}):y("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5",children:xe.map(ne=>w("div",{onClick:()=>N(ne),className:"p-4 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-950/40 hover:bg-white dark:hover:bg-slate-900 hover:border-violet-500/50 hover:shadow-lg hover:shadow-violet-500/5 cursor-pointer transition-all duration-200 flex flex-col justify-between min-h-[140px] text-left group",children:[w("div",{className:"space-y-2",children:[w("div",{className:"flex items-center justify-between gap-2",children:[y("span",{className:"font-extrabold text-slate-800 dark:text-slate-100 text-sm group-hover:text-violet-600 dark:group-hover:text-violet-400 transition-colors truncate",children:ne.title}),y("span",{className:"px-2 py-0.5 rounded bg-violet-500/10 text-violet-600 dark:text-violet-400 text-[10px] font-bold flex-shrink-0",children:ne.category})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed font-sans line-clamp-3 select-none",children:ne.content})]}),w("div",{className:"flex items-center justify-between pt-2.5 mt-2 border-t border-slate-100 dark:border-slate-800/60 text-[10px] text-slate-400",children:[w("span",{children:["åºå¤: ",ne.source||"ä½å"," (",ne.wordCount,"å)"]}),w("span",{className:"text-violet-600 dark:text-violet-400 font-bold flex items-center gap-0.5",children:["详æ
",y(es,{size:12})]})]})]},ne.id))})})]}
558),w("div",{className:"border-t border-slate-100 dark:border-slate-800/80 pt-3 flex justify-between items-center flex-shrink-0 text-xs text-slate-400",children:[w("span",{className:"flex items-center gap-1.5 text-[11px]",children:[y(Xs,{size:13,className:"text-violet-500"}),"æç¤ºï¼ç¹å»ä»»ææ®µè½å¡ç坿¥ç宿´é¿æå¹¶ä¸é®å å
¥ä¸ªäººåº"]}),y("button",{onClick:()=>b(!1),className:"px-5 py-1.5 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 rounded-xl font-semibold transition-all text-xs",children:"宿"})]}),A&&y("div",{className:"fixed inset-0 bg-slate-950/85 backdrop-blur-md z-[110] flex items-center justify-center p-4 sm:p-6 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 sm:p-7 max-w-2xl w-full shadow-2xl relative space-y-5 text-left max-h-[90vh] flex flex-col justify-between",children:[y("button",{onClick:()=>N(null),className:"absolute top-5 right-5 p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})}),w("div",{className:"flex items-center gap-3 pr-8",children:[y("div",{className:"w-10 h-10 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center flex-shrink-0",children:y(jp,{size:20})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-lg",children:A.title}),w("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-slate-400",children:[y("span",{className:"px-2 py-0.5 rounded border border-violet-500/20 bg-violet-500/10 text-xs text-violet-600 dark:text-violet-400 font-bold",children:A.category}),y("span",{children:"â¢"}),w("span",{children:[A.wordCount," å"]})]})]})]}),y("div",{className:"p-6 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/80 dark:bg-slate-950/60 shadow-inner overflow-y-auto max-h-[50vh]",children:y("p",{className:"leading-loose text-slate-800 dark:text-slate-100 text-base font-normal font-sans leading-relaxed whitespace-pre-wrap",children:A.content})}),w("div",{className:"text-xs text-slate-400 dark:text-slate-500 italic text-right px-1",children:["æ¥æºååºå¤ï¼",A.source||"ä½å"]}),w("div",{className:"flex justify-end gap-3 pt-3 border-t border-slate-100 dark:border-slate-800/80",children:[y("button",{onClick:()=>N(null),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-600 dark:text-slate-400 rounded-xl text-xs font-semibold hover:bg-slate-100 dark:hover:bg-slate-800 transition-all",children:"è¿åå表"}),A.isAdded?w("span",{className:"px-5 py-2 rounded-xl border border-emerald-500/20 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 text-xs font-bold flex items-center gap-1.5 select-none",children:[y(_u,{size:15}),"å·²å¨æçæ®µè½åºä¸"]}):w("button",{onClick:()=>he(A.id),className:"px-6 py-2 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold transition-all shadow-lg shadow-violet-500/25 flex items-center gap-1.5 active:scale-95",children:[y(Ti,{size:14}),"å°±èè¿æ®µ (å å
¥æçåº)"]})]})]})})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Rke(e){const t=Math.floor(e/60),r=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}function $ke(){const{id:e}=gye(),t=mo(),[r,n]=z.useState(null),[a,i]=z.useState(!0),[o,s]=z.useState(""),[l,u]=z.useState(!1),[c,d]=z.useState(0),[f,h]=z.useState(0),[p,v]=z.useState(!1),[m,g]=z.useState(!1),[x,b]=z.useState(20),[_,k]=z.useState(!1),S=z.useRef(null),C=()=>{const M=["#8b5cf6","#a78bfa","#f59e0b","#3b82f6","#10b981","#ec4899"];for(let $=0;$<80;$++){const V=document.createElement("div");V.className="confetti-particle",V.style.left=Math.random()*100+"vw",V.style.backgroundColor=M[Math.floor(Math.random()*M.length)],V.style.width=Math.random()*8+6+"px",V.style.height=Math.random()*8+6+"px",V.style.borderRadius=Math.random()>.5?"50%":"0",V.style.animationDelay=Math.random()*.4+"s",V.style.animationDuration=Math.random()*1.5+1.8+"s",document.body.appendChild(V),setTimeout(()=>V.remove(),3500)}},T=()=>{u(!1),S.current&&(clearInterval(S.current),S.current=null)},E=async()=>{var M,$;if(e)try{i(!0);const V=await qne(e);n(V.data.data)}catch(V){s((($=(M=V.response)==null?void 0:M.data)==null?void 0:$.message)||"å 载段è½å¤
558±è´¥")}finally{i(!1)}};z.useEffect(()=>(E(),()=>{T(),document.body.classList.remove("zen-active")}),[e]),z.useEffect(()=>(_?document.body.classList.add("zen-active"):document.body.classList.remove("zen-active"),()=>{document.body.classList.remove("zen-active")}),[_]),z.useEffect(()=>(l?S.current=setInterval(()=>{d(M=>M+1)},1e3):S.current&&(clearInterval(S.current),S.current=null),()=>{S.current&&clearInterval(S.current)}),[l]);const A=()=>u(M=>!M),N=()=>{T(),d(0),h(0)},P=async()=>{var M,$;if(e){T(),g(!0);try{await ev({contentId:e,contentType:"paragraph",action:"recite",reciteCount:Math.max(f,1),durationSeconds:c}),C(),setTimeout(()=>{t("/")},1800)}catch(V){s((($=(M=V.response)==null?void 0:M.data)==null?void 0:$.message)||"æå¡å¤±è´¥ï¼è¯·éè¯"),g(!1)}}},L=()=>b(M=>Math.min(M+2,32)),R=()=>b(M=>Math.max(M-2,14));return a?w("div",{className:"flex flex-col items-center justify-center py-20 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-sm",children:"å 载段è½ä¸..."})]}):r?w("div",{className:"space-y-4 md:space-y-6 max-w-3xl mx-auto transition-all duration-300",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[w(Mn,{to:"/paragraphs",className:"inline-flex items-center gap-1.5 text-xs font-semibold text-slate-400 hover:text-slate-200 transition-colors",children:[y(P$,{size:16}),"è¿å段è½åº"]}),w("div",{className:"flex items-center gap-2 overflow-x-auto",children:[w("div",{className:"flex items-center gap-1 bg-slate-900 border border-slate-800 rounded-xl p-1 shrink-0",children:[y("button",{onClick:R,className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-all",title:"åå°åå·",children:y(hxe,{size:14})}),w("span",{className:"text-[10px] text-slate-500 font-bold px-1.5",children:[x,"px"]}),y("button",{onClick:L,className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-all",title:"å¢å¤§åå·",children:y(Fm,{size:14})})]}),w("button",{onClick:()=>k(!_),className:`flex items-center gap-1.5 px-3 py-1.5 text-xs font-bold rounded-xl border transition-all whitespace-nowrap shrink-0 ${_?"bg-violet-500/10 border-violet-500/30 text-violet-600 dark:text-violet-400":"bg-slate-900 border-slate-800 text-slate-400 hover:text-violet-400 hover:bg-slate-800"}`,children:[_?y(axe,{size:14}):y(nxe,{size:14}),_?"éåºæ²æµ¸":"æ²æµ¸è诵"]})]})]}),w("div",{className:"glass-panel rounded-2xl border border-slate-800/40 p-4 md:p-8 space-y-4 md:space-y-6 relative hover:border-slate-700/50 transition-all duration-300",children:[w("div",{className:"flex justify-between items-start gap-3",children:[w("div",{className:"min-w-0",children:[y("h1",{className:"text-lg md:text-xl font-black text-slate-100 tracking-wide",children:r.title}),w("p",{className:"text-xs text-slate-500 mt-1",children:["åºå¤ï¼",r.source||"èªå®ä¹"," · ",r.wordCount," å"]})]}),w("div",{className:"flex items-center gap-1.5 bg-violet-500/10 border border-violet-500/20 px-2 py-1 rounded-xl text-violet-400 text-xs font-bold shrink-0",children:[y(gr,{size:12}),y("span",{className:"hidden sm:inline",children:"è诵ä¸"})]})]}),w("div",{className:"relative",children:[y("div",{style:{fontSize:`${x}px`},className:`leading-loose text-slate-800 dark:text-slate-200 bg-slate-50 dark:bg-slate-950/40 border border-slate-200 dark:border-slate-800/60 p-4 md:p-6 rounded-2xl whitespace-pre-wrap transition-all select-none min-h-[120px] md:min-h-[160px] font-sans ${p?"blur-md opacity-20 pointer-events-none":""}`,children:r.content}),p&&w("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-center p-4",children:[y("span",{className:"text-sm font-bold text-slate-400",children:"åæå·²è¢«é®ç½©"}),y("p",{className:"text-xs text-slate-500 mt-1",children:"å°è¯å¨èæµ·ä¸åå¿å¹¶è¯µè¯»è¯¥æ®µè½"})]})]}),w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-t border-slate-800/40 pt-4 md:pt-5",children:[w("button",{onClick:()=>v(M=>!M),className:`inline-flex items-center justify-center gap-1.5 px-4 py-2.5 text-sm font-semibold rounded-xl border transition-all ${p?"bg-vi
558olet-600 text-white border-transparent":"bg-slate-900 border-slate-800 hover:bg-slate-800 text-slate-300"}`,children:[p?y(Fd,{size:14}):y(Vw,{size:14}),p?"æ¾ç¤ºåæ":"é®ç½©è诵"]}),w("div",{className:"flex items-center gap-4 text-xs text-slate-500",children:[w("span",{children:["已读ï¼",y("strong",{className:"text-slate-200 font-bold text-sm",children:f})," é"]}),w("span",{children:["计æ¶ï¼",y("strong",{className:"text-slate-200 font-mono text-sm",children:Rke(c)})]})]})]})]}),w("div",{className:"glass-panel rounded-2xl border border-slate-800/40 p-4 md:p-5 space-y-4",children:[w("div",{className:"flex items-center justify-between",children:[y("h2",{className:"text-xs font-bold uppercase tracking-wider text-slate-400",children:"诵读æ§å¶å¨"}),y("span",{className:`text-[10px] px-2 py-0.5 rounded font-medium ${l?"bg-emerald-500/10 text-emerald-400":"bg-amber-500/10 text-amber-400"}`,children:l?"æ£å¨è®¡æ¶":"å·²æå"})]}),w("div",{className:"grid grid-cols-3 gap-2 md:gap-3",children:[w("button",{onClick:A,className:`flex items-center justify-center gap-1.5 py-3 rounded-xl text-sm font-bold transition-all ${l?"bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 border border-amber-500/20":"bg-violet-600 hover:bg-violet-700 text-white shadow-lg shadow-violet-600/10"}`,children:[l?y(ixe,{size:16}):y(kee,{size:16}),l?"æå":"å¼å§"]}),y("button",{onClick:()=>h(M=>M+1),className:"flex items-center justify-center gap-1.5 py-3 rounded-xl border border-slate-800 bg-slate-900 text-slate-300 text-sm font-bold hover:bg-slate-800 transition-all",children:"+1 é"}),w("button",{onClick:N,className:"flex items-center justify-center gap-1.5 py-3 rounded-xl border border-slate-800 bg-slate-900 text-slate-300 text-sm font-bold hover:text-violet-400 hover:bg-slate-800 transition-all",children:[y(IP,{size:16}),"éç½®"]})]})]}),o&&y("p",{className:"text-xs text-red-400 text-center",children:o}),w("button",{onClick:P,disabled:m||c===0,className:"w-full flex items-center justify-center gap-2 py-4 rounded-xl bg-violet-600 text-white text-base font-bold disabled:opacity-30 disabled:cursor-not-allowed hover:bg-violet-700 hover:shadow-lg hover:shadow-violet-600/20 transition-all duration-200",children:[y(_u,{size:18}),m?"ä¿åæå¡æ°æ®ä¸...":"è¯µè¯»å®æ¯ï¼æå¡è®°å½"]})]}):w("div",{className:"text-center py-20 glass-panel rounded-2xl max-w-sm mx-auto space-y-4",children:[y(Xs,{className:"mx-auto text-slate-600",size:36}),y("h3",{className:"text-slate-300 font-bold text-sm",children:"段è½ä¸åå¨æå·²è¢«å é¤"}),y(Mn,{to:"/paragraphs",className:"mt-4 inline-block text-primary text-xs font-semibold hover:underline",children:"è¿å段è½åº"})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Oke=()=>ze.get("/sentences"),zke=e=>ze.post("/sentences",e),Fke=e=>ze.delete(`/sentences/${e}`),Bke=()=>ze.get("/sentences/system/random"),jke=()=>ze.get("/sentences/system/list"),aj=e=>ze.post(`/sentences/system/add/${e}`);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Vke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(!1),[o,s]=z.useState({content:"",source:"",category:"æå¦éå¥"}),[l,u]=z.useState(""),[c,d]=z.useState(null),[f,h]=z.useState("å
¨é¨"),[p,v]=z.useState(!1),[m,g]=z.useState(!1),[x,b]=z.useState("desc"),[_,k]=z.useState("all"),[S,C]=z.useState(new Set),[T,E]=z.useState(null),[A,N]=z.useState(0);z.useState(!1),z.useRef(Date.now());const[P,L]=z.useState(!1),[R,M]=z.useState(!1),[$,V]=z.useState(null),[B,j]=z.useState(!1),[I,U]=z.useState(""),[Y,O]=z.useState(!1),[H,ie]=z.useState([]),[ee,se]=z.useState(!1),[oe,be]=z.useState(null),me=["å
¨é¨","æå¦éå¥","岿å¯è¿ª","è¡¨è¾¾èºæ¯","ç»å
¸ææ","å
¶ä»"],Z=async()=>{try{n(!0);const G=await Oke();t(G.data.data)}finally{n(!1)}};z.useEffect(()=>{Z().then(()=>{ev({contentId:"sentence_browse_log",contentType:"sentence",action:"read",reciteCount:1,durationSeconds:5}).catch(()=>{})})},[]);const J=e.length,we=e.filter(G=>G.status==="mastered").length,xe=e.filter(G=>G.status==="learning"||G.status==="mastered"||S.has(G.id)).length,Pe=async G=>{var ue,Ae;G.preventDefault(),u("");
558try{await zke(o),s({content:"",source:"",category:"æå¦éå¥"}),i(!1),Z()}catch(Fe){u(((Ae=(ue=Fe.response)==null?void 0:ue.data)==null?void 0:Ae.message)||"å建失败")}},he=async G=>{confirm("ç¡®å®å°è¿ä¸ªå¥åä»ä¸ªäººåºä¸ç§»é¤åï¼")&&(await Fke(G),Z(),A>=mn.length-1&&N(Math.max(0,mn.length-2)))},je=(G,ue)=>{navigator.clipboard.writeText(G),d(ue),setTimeout(()=>d(null),2e3)},ne=async()=>{j(!0),U("");try{const G=await Bke();G.data.data?V(G.data.data):(V(null),U("æ¨å·²ç»å°ç³»ç»åºä¸ç 100 个éå¥å
¨é¨æ¬ç©ºäºï¼èµ¶å¿«å»å¤è®°ç»ä¹ æè
èªå·±æ°å¢éå¥å§ã"))}catch{U("è·åéæºéå¥å¤±è´¥ï¼è¯·éè¯")}finally{j(!1)}},De=()=>{M(!0),ne()},gt=async()=>{var G,ue;if($)try{await aj($.id),M(!1),Z()}catch(Ae){alert(((ue=(G=Ae.response)==null?void 0:G.data)==null?void 0:ue.message)||"æ·»å 失败")}},dt=async()=>{O(!0),se(!0);try{const G=await jke();ie(G.data.data)}catch{}finally{se(!1)}},bt=async G=>{var ue,Ae;try{await aj(G),ie(Fe=>Fe.map(Ye=>Ye.id===G?{...Ye,isAdded:!0}:Ye)),oe&&oe.id===G&&be(Fe=>Fe?{...Fe,isAdded:!0}:null),Z()}catch(Fe){alert(((Ae=(ue=Fe.response)==null?void 0:ue.data)==null?void 0:Ae.message)||"æ·»å 失败")}},mn=e.filter(G=>{const ue=f==="å
¨é¨"||G.category===f,Ae=(()=>{if(_==="all"||!G.createdAt)return!0;const Fe=new Date(G.createdAt).getTime(),Ye=Date.now(),xn=24*60*60*1e3;if(_==="today"){const na=new Date().setHours(0,0,0,0);return Fe>=na}return _==="7days"?Ye-Fe<=7*xn:_==="30days"?Ye-Fe<=30*xn:!0})();return ue&&Ae}).sort((G,ue)=>{const Ae=G.createdAt?new Date(G.createdAt).getTime():0,Fe=ue.createdAt?new Date(ue.createdAt).getTime():0;return x==="asc"?Ae-Fe:Fe-Ae}),bc=e.map(G=>G.content),yn=H.map(G=>({...G,isAdded:bc.includes(G.content)})).filter(G=>f==="å
¨é¨"||G.category===f);return w("div",{className:"space-y-4 md:space-y-6 max-w-4xl mx-auto pb-12 relative",children:[P&&w("div",{className:"fixed top-6 left-1/2 transform -translate-x-1/2 z-50 bg-emerald-500 text-white px-4 py-2.5 rounded-xl shadow-lg flex items-center gap-2 animate-fade-in text-sm font-semibold",children:[y(pp,{size:18}),"æåï¼ä»æ¥é奿塿å +1"]}),w("div",{className:"flex items-center justify-between",children:[y("h1",{className:"text-base md:text-lg font-black text-slate-800 dark:text-slate-100",children:"æçå¥ååº"}),w("div",{className:"flex items-center gap-2",children:[e.length>0&&w(Rt,{children:[w("button",{onClick:De,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dark:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"éæºæ½å",children:[y(Su,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"éæºæ½å"})]}),w("button",{onClick:dt,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dark:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"é¦èæµè§",children:[y(ku,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"æµè§"})]})]}),w("button",{onClick:()=>i(G=>!G),className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-semibold text-white bg-violet-600 hover:bg-violet-700 active:scale-95 rounded-xl transition-all shadow-md shadow-violet-500/20",title:"æ°å¢å¥å",children:[y(Ti,{size:14,className:"flex-shrink-0"}),y("span",{children:"æ°å¢å¥å"})]})]})]}),w("div",{className:"flex items-center gap-3 text-[10px] md:text-xs text-slate-500 dark:text-slate-400",children:[w("span",{className:"flex items-center gap-1",children:[y(pp,{size:11,className:"text-violet-500"})," å·²æ¶è ",J]}),w("span",{className:"flex items-center gap-1",children:[y(Fd,{size:11,className:"text-blue-500"})," å·²æ¥ç ",xe]}),w("span",{className:"flex items-center gap-1",children:[y(_u,{size:11,className:"text-emerald-500"})," å·²ææ¡ ",we]})]}),a&&w("form",{onSubmit:Pe,className:"glass-panel p-5 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-4 animate-fade-in text-left",children:[w("div",{className:"flex items-center justify-between border-b border-slate-200 dark:border-slate-800/50 pb-3",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider up
558percase flex items-center gap-1.5",children:[y(gr,{size:12}),"æ¶èèªå®ä¹éå¥"]}),y("button",{type:"button",onClick:()=>i(!1),className:"p-1 rounded-md text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y(Tt,{size:16})})]}),l&&y("p",{className:"text-red-500 text-xs",children:l}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[w("div",{className:"md:col-span-2",children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"å¥åå
容"}),y("textarea",{value:o.content,onChange:G=>s({...o,content:G.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm min-h-[80px] transition-all leading-relaxed",placeholder:"ä¸å¥è®©ä½ æè³ãæåéçè¯...",required:!0})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"æ¥æº/åºå¤"}),y("input",{value:o.source,onChange:G=>s({...o,source:G.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"å¦ï¼ãç¾å¹´å¤ç¬ã / 马å°å
æ¯"})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"åç±»åç±»"}),w("select",{value:o.category||"æå¦éå¥",onChange:G=>s({...o,category:G.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",children:[y("option",{value:"æå¦éå¥",children:"æå¦éå¥"}),y("option",{value:"岿å¯è¿ª",children:"岿å¯è¿ª"}),y("option",{value:"æ²é壿",children:"æ²é壿"}),y("option",{value:"ç»å
¸ææ",children:"ç»å
¸ææ"}),y("option",{value:"å
¶ä»",children:"å
¶ä»"})]})]})]}),w("div",{className:"flex gap-3 justify-end pt-2 border-t border-slate-200 dark:border-slate-800/30",children:[y("button",{type:"button",onClick:()=>i(!1),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 rounded-xl text-xs font-semibold hover:bg-slate-100 dark:hover:bg-slate-900 transition-all",children:"åæ¶"}),y("button",{type:"submit",className:"px-5 py-2 bg-primary text-white rounded-xl text-xs font-semibold hover:bg-primary-dark shadow-lg shadow-primary/20 transition-all",children:"ä¿åå¥å"})]})]}),r?w("div",{className:"flex flex-col items-center justify-center py-20 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-sm",children:"æ£å¨å 载个人å¥ååº..."})]}):e.length===0?w("div",{className:"max-w-xl mx-auto space-y-6 py-6 animate-fade-in text-left",children:[w("div",{className:"glass-panel p-8 rounded-3xl border border-slate-200 dark:border-slate-800/40 text-center space-y-4 bg-white dark:bg-slate-900",children:[y("div",{className:"mx-auto w-12 h-12 rounded-2xl bg-violet-500/10 text-violet-500 flex items-center justify-center",children:y(Yn,{size:24})}),w("div",{className:"space-y-1.5",children:[y("h3",{className:"text-slate-900 dark:text-slate-100 font-black text-base",children:"æ¨ç个人å¥ååºè¿æ¯ç©ºç"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed max-w-sm mx-auto",children:"ååºç²¾å¦ç¯ç« çåæï¼æ¯è¸ä¸æç¾å¥ä¸å£ãç³»ç»ç²¾éäº 100 æ¡æå¦åå¥ã岿å¯è¿ªãæ²é表达以åç»å
¸ææï¼å¿«å»æµè§ææ½åå¹¶å å
¥èªå·±çå¥ååºå§ï¼"})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 hover:border-violet-500/30 transition-all duration-300 flex flex-col justify-between hover:shadow-lg hover:shadow-violet-500/5 group bg-white dark:bg-slate-900",children:[w("div",{className:"space-y-3",children:[y("div",{className:"w-10 h-10 rounded-xl bg-violet-500/10 text-violet-500 flex items-center justify-center transition-transform group-hover:rotate-12",children:y(Su,{size:20})}),y("h4",{className:"font-extrabold text-slate-900 dark:text-slate-200 text-sm",children:"éæºæ½åç³»ç»éå¥"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed",children:"ä¸ç¥é该èä»ä¹å¥½ï¼è®©å¤©æå³å®ãæ¯æ¬¡éæºæ½é䏿¡ç³»ç»ä½³å¥ï¼å¯å³å®æ¯å¦è¦ç
558º³å
¥ä½ çå¥ååºã"})]}),y("button",{onClick:De,className:"mt-6 w-full py-2 bg-violet-500 hover:bg-violet-600 text-white rounded-xl text-xs font-semibold transition-all shadow-md shadow-violet-500/10",children:"å¼å¯éæºæ½å"})]}),w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 hover:border-primary/30 transition-all duration-300 flex flex-col justify-between hover:shadow-lg hover:shadow-primary/5 group bg-white dark:bg-slate-900",children:[w("div",{className:"space-y-3",children:[y("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center transition-transform group-hover:scale-110",children:y(ku,{size:20})}),y("h4",{className:"font-extrabold text-slate-900 dark:text-slate-200 text-sm",children:"ç³»ç»é¦èèªä¸»æµè§"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed",children:"å
ç½® 5 大åç±»çç¾æ¡ç²¾åéå¥ï¼æå¦éå¥ã岿å¯è¿ªãæ²é表达以åç»å
¸ææãéå¿æéã"})]}),y("button",{onClick:dt,className:"mt-6 w-full py-2 bg-primary hover:bg-primary-dark text-white rounded-xl text-xs font-semibold transition-all shadow-md shadow-primary/10",children:"æµè§ç³»ç»é¦è"})]})]})]}):w("div",{className:"space-y-4",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-b border-slate-200 dark:border-slate-800/80 pb-3",children:[w("div",{className:"relative",children:[w("button",{onClick:()=>v(G=>!G),className:"flex items-center gap-1.5 px-3 py-1.5 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-bold rounded-xl transition-all",children:[y(of,{size:13,className:"text-violet-500"}),w("span",{children:["åç±»ï¼",f]}),y(zd,{size:13,className:`text-slate-400 transition-transform ${p?"rotate-180":""}`})]}),p&&w(Rt,{children:[y("div",{className:"fixed inset-0 z-20",onClick:()=>v(!1)}),y("div",{className:"absolute left-0 mt-1.5 w-44 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-xl z-30 py-1 text-xs animate-fade-in",children:me.map(G=>w("button",{onClick:()=>{h(G),v(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800/60 font-medium ${f===G?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:G}),f===G&&y(Ir,{size:13})]},G))})]})]}),w("div",{className:"flex flex-wrap items-center gap-2.5",children:[w("div",{className:"flex items-center gap-1 bg-slate-100 dark:bg-slate-900 px-2.5 py-1 rounded-xl border border-slate-200 dark:border-slate-800 text-xs",children:[y(kv,{size:12,className:"text-slate-400"}),w("select",{value:_,onChange:G=>k(G.target.value),className:"bg-transparent text-slate-700 dark:text-slate-300 text-xs border-none outline-none focus:outline-none focus:ring-0 shadow-none cursor-pointer font-semibold py-0.5",children:[y("option",{value:"all",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"å
¨é¨æ¶é´"}),y("option",{value:"today",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"ä»å¤©æ·»å "}),y("option",{value:"7days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿7天"}),y("option",{value:"30days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿30天"})]})]}),w("div",{className:"relative",children:[w("button",{onClick:()=>g(G=>!G),className:"flex items-center gap-1.5 px-3 py-1 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-semibold rounded-xl transition-all",children:[y(M$,{size:12,className:"text-violet-500"}),w("span",{children:["æåºï¼",x==="desc"?"ææ°æ·»å (仿°å°æ§)":"ææ©æ·»å (仿§å°æ°)"]}),y(zd,{size:12,className:`text-slate-400 transition-transform ${m?"rotate-180":""}`})]}),m&&w(Rt,{children:[y("div",{className:"fixed inset-0 z-20",onClick:()=>g(!1)}),w("div",{className:"absolute right-0 mt-1.5 w-48 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-xl z-30 py-1 text-xs animate-fade-in",children:[w("button",{onClick:()=>{b("desc"),g(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dar
558k:hover:bg-slate-800/60 font-medium ${x==="desc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ°æ·»å (仿°å°æ§)"}),x==="desc"&&y(Ir,{size:13})]}),w("button",{onClick:()=>{b("asc"),g(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800/60 font-medium ${x==="asc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ©æ·»å (仿§å°æ°)"}),x==="asc"&&y(Ir,{size:13})]})]})]})]})]})]}),mn.length===0?w("div",{className:"text-center py-20 glass-panel rounded-3xl max-w-sm mx-auto space-y-4 border border-slate-200 dark:border-slate-800",children:[y(vp,{className:"mx-auto text-slate-400 dark:text-slate-600",size:40}),w("div",{children:[y("h3",{className:"text-slate-800 dark:text-slate-200 font-bold text-sm",children:"该åç±»ä¸ææ 已添å çå¥å"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-1",children:"å¯ä»¥éè¿å³ä¸è§âé¦èæµè§âæâéæºæ½åâæ¥éæ©"})]})]}):y("div",{className:"space-y-3.5 text-left",children:mn.map((G,ue)=>{const Ae=T===G.id,Fe=Ae?`${Math.min(460,Math.max(220,Math.ceil((G.content||"").length/15)*26+130))}px`:"95px";return y("div",{className:`group cursor-pointer transition-all duration-500 ease-out ${Ae?"relative z-10 max-w-2xl mx-auto":T?"opacity-40":""}`,style:{perspective:"1500px"},onClick:()=>{Ae?E(null):(E(G.id),C(Ye=>new Set(Ye).add(G.id)))},children:w("div",{className:"relative w-full transition-all duration-500 ease-out",style:{transformStyle:"preserve-3d",transform:Ae?"rotateY(180deg)":"rotateY(0deg)",height:Fe},children:[w("div",{className:"absolute inset-0 w-full rounded-2xl border flex items-center justify-between px-5 py-3 bg-white dark:bg-slate-900 border-slate-200 dark:border-slate-800/60 hover:border-violet-500/40 hover:shadow-lg transition-all duration-300",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[w("div",{className:"flex items-center gap-3.5 flex-1 min-w-0 pr-4",children:[y("span",{className:"w-6 h-6 rounded-lg bg-violet-500/10 text-violet-600 dark:text-violet-400 text-xs font-extrabold flex items-center justify-center flex-shrink-0",children:ue+1}),w("div",{className:"space-y-1 min-w-0 flex-1",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"inline-block px-2 py-0.5 rounded bg-violet-500/10 text-violet-600 dark:text-violet-400 text-[10px] font-bold flex-shrink-0",children:G.category||"æªåç±»"}),w("p",{className:"text-slate-800 dark:text-slate-100 text-sm font-bold truncate",children:['"',G.content,'"']})]}),w("p",{className:"text-slate-400 text-xs truncate",children:["ââ ",G.source||"ä½å"]})]})]}),w("div",{className:"flex items-center gap-2 flex-shrink-0",children:[y("button",{onClick:Ye=>{Ye.stopPropagation(),je(G.content,G.id)},className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:c===G.id?"å·²å¤å¶":"å¤å¶",children:c===G.id?y(Ir,{size:14,className:"text-emerald-500"}):y(rF,{size:14})}),y("button",{onClick:Ye=>{Ye.stopPropagation(),he(G.id)},className:"p-1.5 text-slate-400 hover:text-red-500 hover:bg-red-500/10 rounded-lg transition-colors",title:"å é¤",children:y(ic,{size:14})})]})]}),w("div",{className:"absolute inset-0 w-full rounded-2xl border border-violet-500/40 shadow-xl shadow-violet-500/15 p-5 sm:p-6 bg-white dark:bg-slate-900 flex flex-col justify-between",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:[w("div",{className:"flex items-center justify-between flex-shrink-0",children:[y("span",{className:"text-xs font-bold text-violet-600 dark:text-violet-300 bg-violet-500/10 px-2 py-0.5 rounded-md",children:G.category||"ä½³å¥"}),y("button",{onClick:Ye=>{Ye.stopPropagation(),E(null)},className:"p-1 text-slate-400 hover:text-slate-700 dark:hover:text-slate-100 hover:bg-slate-100 dar
558k:hover:bg-slate-800 rounded-lg transition-colors flex-shrink-0",title:"å
³é",children:y(Tt,{size:16})})]}),y("div",{className:"flex-1 overflow-y-auto my-2 p-3.5 rounded-xl bg-slate-50/80 dark:bg-slate-950/50 border border-slate-200/80 dark:border-slate-800 text-left relative shadow-inner flex flex-col",children:w("div",{className:"my-auto space-y-2 w-full",children:[w("p",{className:"text-slate-800 dark:text-slate-100 text-base leading-relaxed font-bold italic text-center break-words whitespace-pre-wrap",children:['"',G.content,'"']}),w("p",{className:"text-violet-600 dark:text-violet-400 text-xs font-medium text-center",children:["ââ ",G.source||"ä½å"]})]})}),y("div",{className:"flex items-center justify-end pt-2 border-t border-slate-100 dark:border-slate-800/80 flex-shrink-0",children:w("button",{onClick:Ye=>{Ye.stopPropagation(),je(G.content,G.id)},className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-300 rounded-xl text-xs font-semibold transition-all active:scale-95",children:[c===G.id?y(Ir,{size:13,className:"text-emerald-500"}):y(rF,{size:13}),c===G.id?"å·²å¤å¶":"å¤å¶éå¥"]})})]})]})},G.id)})})]}),R&&Fr.createPortal(y("div",{className:"fixed inset-0 bg-slate-950/75 backdrop-blur-md z-[100] flex items-center justify-center p-4 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 sm:p-7 max-w-xl w-full shadow-2xl space-y-6 text-left relative overflow-hidden",children:[y("div",{className:"absolute -top-16 -right-16 w-32 h-32 bg-violet-500/10 rounded-full blur-2xl pointer-events-none"}),w("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800/80 pb-4",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-9 h-9 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center flex-shrink-0",children:y(Su,{size:18,className:"animate-spin-slow"})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-base",children:"éæºæ½åç³»ç»éå¥"}),y("p",{className:"text-[11px] text-slate-400 dark:text-slate-500",children:"让天æå³å®ä»å¤©å
åççµæéå¥"})]})]}),y("button",{onClick:()=>M(!1),className:"p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})})]}),B?w("div",{className:"py-14 flex flex-col items-center justify-center space-y-3",children:[y("div",{className:"w-9 h-9 border-3 border-violet-500/20 border-t-violet-600 rounded-full animate-spin"}),y("p",{className:"text-xs font-medium text-slate-400",children:"ç¥æ¿éå¥ä¸..."})]}):$?w("div",{className:"space-y-4",children:[y("div",{className:"flex items-center gap-2",children:y("span",{className:"px-2.5 py-0.5 rounded-full border border-violet-500/20 bg-violet-500/10 text-xs text-violet-600 dark:text-violet-400 font-bold",children:$.category})}),w("div",{className:"p-6 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/80 dark:bg-slate-950/60 leading-relaxed text-slate-800 dark:text-slate-200 text-base font-semibold shadow-inner relative max-h-[50vh] overflow-y-auto break-words whitespace-pre-wrap",children:[y("div",{className:"text-violet-500/20 text-3xl font-serif absolute top-2 left-3 select-none pointer-events-none",children:"â"}),y("p",{className:"relative z-10 pt-1 leading-loose",children:$.content})]}),w("p",{className:"text-xs text-slate-400 dark:text-slate-500 italic text-right px-1",children:["ââ åºå¤ï¼",$.source||"ä½å"]})]}):y("p",{className:"text-xs text-slate-400 leading-relaxed text-center py-8",children:I}),w("div",{className:"flex items-center justify-end gap-3 border-t border-slate-100 dark:border-slate-800/80 pt-4",children:[y("button",{onClick:()=>M(!1),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-600 dar
558k:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 rounded-xl text-xs font-semibold transition-all",children:"åæ¶"}),$&&w(Rt,{children:[w("button",{onClick:ne,disabled:B,className:"inline-flex items-center gap-1.5 px-4 py-2 border border-violet-500/30 text-violet-600 dark:text-violet-400 hover:bg-violet-500/10 rounded-xl text-xs font-semibold transition-all",children:[y(eS,{size:13,className:B?"animate-spin":""}),"æ¢ä¸ä¸ª"]}),w("button",{onClick:gt,className:"inline-flex items-center gap-1.5 px-5 py-2 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold shadow-lg shadow-violet-500/25 transition-all active:scale-95",children:[y(Ti,{size:14}),"就记è¿å¥ (å å
¥æçåº)"]})]})]})]})}),document.body),Y&&Fr.createPortal(y("div",{className:"fixed inset-0 bg-slate-950/75 backdrop-blur-md z-[100] flex items-center justify-center p-3 sm:p-5 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-5 sm:p-6 max-w-5xl w-full h-[85vh] max-h-[720px] shadow-2xl flex flex-col justify-between text-left relative overflow-hidden",children:[w("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800/80 pb-3 flex-shrink-0",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-8 h-8 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center",children:y(ku,{size:16})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-base",children:"ç³»ç»é¦è · ç²¾éå¥ååº"}),y("p",{className:"text-[11px] text-slate-400 dark:text-slate-500",children:"æéä½³å¥è¿
éå
å®å¥ååº"})]})]}),y("button",{onClick:()=>O(!1),className:"p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})})]}),w("div",{className:"flex flex-1 overflow-hidden py-3 gap-4 sm:gap-6 min-h-0",children:[y("div",{className:"w-28 sm:w-36 flex-shrink-0 space-y-1 overflow-y-auto pr-2 border-r border-slate-100 dark:border-slate-800/60",children:me.map(G=>y("button",{onClick:()=>h(G),className:`w-full px-3 py-2.5 text-left rounded-xl text-xs font-semibold transition-all duration-200 ${f===G?"bg-violet-600 text-white font-extrabold shadow-md shadow-violet-600/20":"text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800/60"}`,children:G},G))}),y("div",{className:"flex-1 overflow-y-auto pr-1",children:ee?w("div",{className:"py-20 flex flex-col items-center justify-center space-y-3",children:[y("div",{className:"w-8 h-8 border-3 border-violet-500/20 border-t-violet-600 rounded-full animate-spin"}),y("p",{className:"text-xs text-slate-400",children:"æ£å¨è°é
é¦èå·è½´..."})]}):yn.length===0?y("div",{className:"text-center py-20 text-slate-400 text-xs",children:"该åç±»ä¸ææ ç³»ç»æ¨è"}):y("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5",children:yn.map(G=>w("div",{onClick:()=>be(G),className:"p-4 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-950/40 hover:bg-white dark:hover:bg-slate-900 hover:border-violet-500/50 hover:shadow-lg hover:shadow-violet-500/5 cursor-pointer transition-all duration-200 flex flex-col justify-between min-h-[130px] text-left group",children:[w("div",{className:"space-y-2 overflow-hidden",children:[y("div",{className:"flex items-center justify-between",children:y("span",{className:"px-2 py-0.5 rounded bg-violet-500/10 text-violet-600 dark:text-violet-400 text-[10px] font-bold",children:G.category})}),y("p",{className:"text-xs text-slate-800 dark:text-slate-200 leading-relaxed font-sans line-clamp-3 select-none font-medium",children:G.content})]}),w("div",{className:"flex items-center justify-between pt-2.5 mt-2 border-t border-slate-100 dark:border-slate-800/60 text-[10px] text-slate-400",children:[w("span",{className:"truncate italic",children:["åºå¤: ",G.source||"ä½å"]}
558),w("span",{className:"text-violet-600 dark:text-violet-400 font-bold flex items-center gap-0.5 flex-shrink-0",children:["详æ
",y(es,{size:12})]})]})]},G.id))})})]}),w("div",{className:"border-t border-slate-100 dark:border-slate-800/80 pt-3 flex justify-between items-center flex-shrink-0 text-xs text-slate-400",children:[w("span",{className:"flex items-center gap-1.5 text-[11px]",children:[y(Xs,{size:13,className:"text-violet-500"}),"æç¤ºï¼ç¹å»ä»»æéå¥å¡ç坿¥ç详æ
å¹¶ä¸é®å å
¥ä¸ªäººåº"]}),y("button",{onClick:()=>O(!1),className:"px-5 py-1.5 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 rounded-xl font-semibold transition-all text-xs",children:"宿"})]}),oe&&y("div",{className:"fixed inset-0 bg-slate-950/85 backdrop-blur-md z-[110] flex items-center justify-center p-4 sm:p-6 animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 sm:p-7 max-w-2xl w-full shadow-2xl relative space-y-5 text-left flex flex-col justify-between",children:[y("button",{onClick:()=>be(null),className:"absolute top-5 right-5 p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})}),w("div",{className:"flex items-center gap-3 pr-8",children:[y("div",{className:"w-10 h-10 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center flex-shrink-0",children:y(jp,{size:20})}),w("div",{children:[y("h3",{className:"font-extrabold text-slate-900 dark:text-slate-100 text-lg",children:"éå¥è¯¦æ
"}),y("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-slate-400",children:y("span",{className:"px-2 py-0.5 rounded border border-violet-500/20 bg-violet-500/10 text-xs text-violet-600 dark:text-violet-400 font-bold",children:oe.category})})]})]}),y("div",{className:"p-6 rounded-2xl border border-slate-200/80 dark:border-slate-800 bg-slate-50/80 dark:bg-slate-950/60 shadow-inner max-h-[50vh] overflow-y-auto break-words whitespace-pre-wrap",children:y("p",{className:"leading-loose text-slate-800 dark:text-slate-100 text-base font-semibold font-sans",children:oe.content})}),w("div",{className:"text-xs text-slate-400 dark:text-slate-500 italic text-right px-1",children:["æ¥æºååºå¤ï¼",oe.source||"ä½å"]}),w("div",{className:"flex justify-end gap-3 pt-3 border-t border-slate-100 dark:border-slate-800/80",children:[y("button",{onClick:()=>be(null),className:"px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-600 dark:text-slate-400 rounded-xl text-xs font-semibold hover:bg-slate-100 dark:hover:bg-slate-800 transition-all",children:"è¿åå表"}),oe.isAdded?w("span",{className:"px-5 py-2 rounded-xl border border-emerald-500/20 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 text-xs font-bold flex items-center gap-1.5 select-none",children:[y(_u,{size:15}),"已卿çå¥ååºä¸"]}):w("button",{onClick:()=>bt(oe.id),className:"px-6 py-2 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold transition-all shadow-lg shadow-violet-500/25 flex items-center gap-1.5 active:scale-95",children:[y(Ti,{size:14}),"就记è¿å¥ (å å
¥æçåº)"]})]})]})})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Uke=()=>ze.get("/words"),Gke=e=>ze.post("/words",e),Hke=e=>ze.delete(`/words/${e}`),Wke=e=>ze.get("/words/generate",{params:{term:e}}),qke=e=>ze.get("/words/system/random",{params:{type:e}}),Yke=()=>ze.get("/words/system/list"),ij=e=>ze.post(`/words/system/add/${e}`);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const oj=["å
¨é¨","æå¦æå¢","ææ³æºè¯","æ
æä¸å¿ç","人é
䏿²
558é","æ§çµä¸åæ ¼","社ä¼ä¸ä¸ç¸","èªå®ä¹"],Kke=["æå¦æå¢","ææ³æºè¯","æ
æä¸å¿ç","人é
䏿²é","æ§çµä¸åæ ¼","社ä¼ä¸ä¸ç¸","èªå®ä¹"];function Zke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(!1),[o,s]=z.useState({term:"",pinyin:"",explanation:"",example:"",category:"èªå®ä¹",wordType:"word"}),[l,u]=z.useState(""),[c,d]=z.useState(null),[f,h]=z.useState("å
¨é¨"),[p,v]=z.useState("all"),[m,g]=z.useState(!1),[x,b]=z.useState(!1),[_,k]=z.useState(!1),S=z.useRef(null),C=z.useRef(null),T=z.useRef(null),[E,A]=z.useState(null),[N,P]=z.useState(null),[L,R]=z.useState(null),M=()=>{var Ve;if(m){g(!1);return}const X=(Ve=S.current)==null?void 0:Ve.getBoundingClientRect();X&&A({left:X.left}),g(!0)},$=()=>{var Ve;if(x){b(!1);return}const X=(Ve=C.current)==null?void 0:Ve.getBoundingClientRect();X&&P({left:X.right-160}),b(!0)},V=()=>{var Ve;if(_){k(!1);return}const X=(Ve=T.current)==null?void 0:Ve.getBoundingClientRect();X&&R({right:window.innerWidth-X.right}),k(!0)};z.useEffect(()=>{m||A(null),x||P(null),_||R(null)},[m,x,_]),z.useEffect(()=>{if(!m&&!x&&!_)return;const X=()=>{var Ve,kt,Yt;if(m){const Ar=(Ve=S.current)==null?void 0:Ve.getBoundingClientRect();Ar&&A({left:Ar.left})}if(x){const Ar=(kt=C.current)==null?void 0:kt.getBoundingClientRect();Ar&&P({left:Ar.right-160})}if(_){const Ar=(Yt=T.current)==null?void 0:Yt.getBoundingClientRect();Ar&&R({right:window.innerWidth-Ar.right})}};return window.addEventListener("scroll",X,!0),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,!0),window.removeEventListener("resize",X)}},[m,x,_]);const[B,j]=z.useState("desc"),[I,U]=z.useState("all"),[Y,O]=z.useState(new Set),[H,ie]=z.useState("list"),[ee,se]=z.useState(0),[oe,be]=z.useState(!1),[me,Z]=z.useState(null),[J,we]=z.useState(!1),[xe,Pe]=z.useState(!1),[he,je]=z.useState(null),[ne,De]=z.useState(!1),gt=z.useRef(Date.now()),[dt,bt]=z.useState(!1),[mn,bc]=z.useState("all"),[yn,G]=z.useState(null),[ue,Ae]=z.useState(!1),[Fe,Ye]=z.useState(""),[xn,na]=z.useState(!1),[Vi,bs]=z.useState(!1),[wc,On]=z.useState([]),[Ml,Qa]=z.useState(!1),[hg,tme]=z.useState(""),[UT,rme]=z.useState("å
¨é¨"),Kf=async()=>{try{n(!0);const X=await Uke();t(X.data.data)}finally{n(!1)}};z.useEffect(()=>{Kf()},[]);const nme=e.length,ame=e.filter(X=>X.status==="mastered").length,ime=e.filter(X=>X.status==="learning"||X.status==="mastered"||Y.has(X.id)).length,$r=e.filter(X=>{const Ve=f==="å
¨é¨"||(f==="èªå®ä¹"?!X.category||X.category==="èªå®ä¹":X.category===f),kt=p==="all"||p==="word"&&(!X.wordType||X.wordType==="word")||p==="idiom"&&X.wordType==="idiom",Yt=(()=>{if(I==="all"||!X.createdAt)return!0;const Ar=new Date(X.createdAt).getTime(),V8=Date.now(),U8=24*60*60*1e3;if(I==="today"){const vme=new Date().setHours(0,0,0,0);return Ar>=vme}return I==="7days"?V8-Ar<=7*U8:I==="30days"?V8-Ar<=30*U8:!0})();return Ve&&kt&&Yt}).sort((X,Ve)=>{const kt=X.createdAt?new Date(X.createdAt).getTime():0,Yt=Ve.createdAt?new Date(Ve.createdAt).getTime():0;return B==="asc"?kt-Yt:Yt-kt}),pg=H==="list"?c:$r[ee]||null;z.useEffect(()=>{Z(null)},[f,p]),z.useEffect(()=>{H==="flashcard"&&(gt.current=Date.now(),be(!1))},[ee,H,f,p]),z.useEffect(()=>{(async()=>{if(pg!=null&&pg.sourceParagraphId){De(!0);try{const Ve=await qne(pg.sourceParagraphId);je(Ve.data.data)}catch{je(null)}finally{De(!1)}}else je(null)})()},[pg]);const ome=async()=>{var X,Ve;if(o.term){Pe(!0),u("");try{const Yt=(await Wke(o.term)).data.data;s(Ar=>({...Ar,term:Yt.term||Ar.term,pinyin:Yt.pinyin||Ar.pinyin,explanation:Yt.explanation||Ar.explanation,example:Yt.example||Ar.example,category:Yt.category||Ar.category,wordType:Yt.wordType||Ar.wordType}))}catch(kt){u(((Ve=(X=kt.response)==null?void 0:X.data)==null?void 0:Ve.message)||"AI æºè½çæå¤±è´¥ï¼è¯·æå¨å¡«åæéè¯")}finally{Pe(!1)}}},sme=async X=>{var Ve,kt;X.preventDefault(),u("");try{await Gke(o),s({term:"",pinyin:"",explanation:"",example:"",category:"èªå®ä¹",wordType:"word"}),i(!1),Kf()}catch(Yt){u(((kt=(Ve=Yt.response)==null?void 0:Ve.data)==null?void 0:kt.message)||"å建失败")}},lme=async(X,Ve)=>{X.stopPropagation(),confirm("ç¡®å®å é¤è¿ä¸ªè¯è¯åï¼")&&(await Hke(Ve),(c==null?void 0:c.id)===Ve&&d(null),Kf())},GT=X=>{X==null||X.stopPropagation(),ee<$r.length-1?se(Ve=>Ve+1):se(0),be(!1)},ume=X=>{X.stopPropagation(),ee>0?se(Ve=>Ve-1):se($r.length-1),be(!1)},cme=async(X,Ve)=>{Ve.stopPropagation();const kt=Math.max(1,Math.round((Date.now()-gt.current)/1e3));try{await ev({contentId:X.id,contentType:"word",action:"recite",reciteCount:1,durationSeconds:kt}),we(!0),setTimeout(()=>we(!1),2e3),GT()}catch{}},dme=async X=>{try{await ev({contentId:X.id,contentType:"word",action:"recite",reciteCount:1,durationSeconds:5}),we(!0),setTimeout(()=>we(!1),2e3),Kf()}catch{}},fme=async()=>{var X,Ve;Ae(!0),Ye(""),na(!1),G(null);try{const kt=await qke(mn);kt.data.data?G(kt.data.data):Ye("ç³»ç»é¦è䏿²¡ææ´å¤æªæ·»å çè¯è¯äºï¼")}catch(kt){Ye(((Ve=(X=kt.response)==null?void 0:X.data)==null?void 0:Ve.message)||"è·åéæºé¦è失败")}finally{Ae(!1)}},hme=async()=>{var X,Ve;if(yn){Ae(!0);try{await ij(yn.id),na(!0),Kf()}catch(kt){Ye(((Ve=(X=kt.response)==null?void 0:X.data)==null?void 0:Ve.message)||"æ¶è失败")}finally{Ae(!1)}}},HT=async()=>{Qa(!0);try{const X=await Yke();On(X.data.data)}catch{}finally{Qa(!1)}},pme=async X=>{var Ve,kt;try{await ij(X),Kf(),HT()}catch(Yt){alert(((kt=(Ve=Yt.response)==null?void 0:Ve.data)==null?void 0:kt.message)||"æ¶è失败")}},j8=wc.filter(X=>{const Ve=UT==="å
¨é¨"||X.category===UT,kt=hg===""||X.term.includes(hg)||X.explanation&&X.explanation.includes(hg)||X.pinyin&&X.pinyin.includes(hg);return Ve&&kt});return w("div",{className:"space-y-4 md:space-y-6",children:[J&&w("div",{className:"fixed top-6 left-1/2 transform -translate-x-1/2 z-50 bg-emerald-500 text-white px-4 py-2.5 rounded-xl shadow-lg flex items-center gap-2 animate-fade-in text-sm font-semibold",children:[y(pp,{size:18}),"æåï¼ä»æ¥è¯è¯æå¡æå +1"]}),y("div",{className:"flex flex-col gap-2",children:w("div",{className:"flex items-center justify-between",children:[y("h1",{className:"text-base md:text-lg font-black text-slate-800 dark:text-slate-100",children:"è¯è¯åº"}),w("div",{className:"flex items-center gap-2",children:[w("button",{onClick:()=>{bt(!0),G(null),Ye(""),na(!1)},className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dar
558k:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"éæºæ½å",children:[y(Su,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"éæºæ½å"})]}),w("button",{onClick:()=>{bs(!0),HT()},className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold text-slate-700 dark:text-slate-200 bg-white dark:bg-slate-800 hover:bg-violet-50 dark:hover:bg-violet-950/40 hover:text-violet-600 dark:hover:text-violet-400 rounded-xl transition-all border border-slate-200 dark:border-slate-700/60 shadow-sm",title:"æµè§é¦è",children:[y(ku,{size:14,className:"text-violet-500 flex-shrink-0"}),y("span",{children:"æµè§"})]}),w("button",{onClick:()=>i(X=>!X),className:"inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-semibold text-white bg-violet-600 hover:bg-violet-700 active:scale-95 rounded-xl transition-all shadow-md shadow-violet-500/20",title:"æ°å¢è¯æ±",children:[y(Ti,{size:14,className:"flex-shrink-0"}),y("span",{children:"æ°å¢è¯æ±"})]})]})]})}),w("div",{className:"flex items-center gap-3 text-[10px] md:text-xs text-slate-500 dark:text-slate-400",children:[w("span",{className:"flex items-center gap-1",children:[y(pp,{size:11,className:"text-violet-500"})," å·²æ¶è ",nme]}),w("span",{className:"flex items-center gap-1",children:[y(Fd,{size:11,className:"text-blue-500"})," å·²æ¥ç ",ime]}),w("span",{className:"flex items-center gap-1",children:[y(_u,{size:11,className:"text-emerald-500"})," å·²ææ¡ ",ame]})]}),a&&w("form",{onSubmit:sme,className:"glass-panel p-6 rounded-2xl border border-slate-200/60 dark:border-slate-800/40 space-y-4 animate-fade-in bg-white/80 dark:bg-slate-900/40",children:[w("div",{className:"flex items-center justify-between",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider uppercase flex items-center gap-1.5",children:[y(gr,{size:12,className:"animate-pulse"}),"æ·»å æ°è¯æ±å°åºä¸"]}),y("button",{type:"button",onClick:()=>i(!1),className:"p-1 rounded-md text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y(Tt,{size:16})})]}),l&&y("p",{className:"text-red-500 dark:text-red-400 text-xs",children:l}),w("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"è¯è¯/æè¯"}),w("div",{className:"flex gap-2",children:[y("input",{value:o.term,onChange:X=>s({...o,term:X.target.value}),className:"flex-grow px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"å¦ï¼æ°¤æ°²",required:!0}),y("button",{type:"button",onClick:ome,disabled:xe||!o.term,className:"px-3 py-2 bg-violet-500/10 border border-violet-500/20 text-violet-600 dark:text-violet-400 hover:text-white hover:bg-violet-600 disabled:opacity-50 disabled:cursor-not-allowed rounded-xl text-xs font-bold transition-all flex items-center gap-1.5 shrink-0",children:xe?w(Rt,{children:[y("div",{className:"w-3 h-3 border border-violet-400 border-t-transparent rounded-full animate-spin"}),y("span",{children:"çæä¸..."})]}):w(Rt,{children:[y(gr,{size:12,className:"animate-pulse"}),y("span",{children:"AI 填表"})]})})]})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"æ¼é³"}),y("input",{value:o.pinyin||"",onChange:X=>s({...o,pinyin:X.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"å¦ï¼yÄ«n yÅ«n"})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"主é¢åç±»"}),y("select",{value:o.category,onChange:X=>s({...o,category:X.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",children:Kke.map(X=>y("option",{value:X,className:"bg-white dark:bg-slate-950 text-slate-800 dark:text-slate-100",children:X},X))})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 items-center",children:[w("div",{className:"md:col-span-2",children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"éä¹"}),y("input",{value:o.explanation,onChange:X=>s({...o,explanation:X.target.value}),className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all",placeholder:"ç®æ´éä¹",required:!0})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-1.5",children:"è¯æ±ç±»å"}),w("div",{className:"flex gap-4 items-center pt-2",children:[w("label",{className:"flex items-center gap-1.5 text-xs text-slate-700 dark:text-slate-300 cursor-pointer",children:[y("input",{type:"radio",name:"wordType",checked:o.wordType==="word",onChange:()=>s({...o,wordType:"word"}),className:"accent-primary"}),"è¯è¯"]}),w("label",{className:"flex items-center gap-1.5 text-xs text-slate-700 dark:text-slate-300 cursor-pointer",children:[y("input",{type:"radio",name:"wordType",checked:o.wordType==="idiom",onChange:()=>s({...o,wordType:"idiom"}),className:"accent-primary"}),"æè¯"]})]})]})]}),w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-400 mb-1.5",children:"é å¥ / ä¾å¥"}),y("textarea",{value:o.example,onChange:X=>s({...o,example:X.target.value}),rows:2,className:"w-full px-4 py-2.5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-sm transition-all resize-none",placeholder:"ç»å
¸ä¸ä¸æä¾å¥ï¼ç¨äºå·©åºåæåè¯å¢..."})]}),w("div",{className:"flex justify-end gap-2.5 pt-2",children:[y("button",{type:"button",onClick:()=>
558i(!1),className:"px-4 py-2 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-300 text-xs font-bold rounded-xl border border-slate-200 dark:border-slate-700/50 transition-colors",children:"åæ¶"}),y("button",{type:"submit",className:"px-4 py-2 bg-violet-600 hover:bg-violet-700 text-white text-xs font-bold rounded-xl shadow-md transition-colors",children:"ä¿åè¯æ±"})]})]}),w("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 border-b border-slate-200/60 dark:border-slate-800/40 scrollbar-thin",children:[y("div",{className:"relative shrink-0",children:w("button",{ref:S,onClick:M,className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-bold rounded-xl transition-all whitespace-nowrap",children:[y(of,{size:13,className:"text-violet-400"}),y("span",{children:f}),y(zd,{size:13,className:`text-slate-500 transition-transform ${m?"rotate-180":""}`})]})}),m&&E&&Fr.createPortal(w(Rt,{children:[y("div",{className:"fixed inset-0 z-[60]",onClick:()=>g(!1)}),y("div",{className:"fixed mt-1.5 w-44 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-2xl z-[70] py-1 text-xs animate-fade-in",style:{to
558p:S.current?S.current.getBoundingClientRect().bottom+6:0,left:E.left},children:oj.map(X=>w("button",{onClick:()=>{h(X),g(!1),se(0),be(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800 font-medium ${f===X?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5 dark:bg-violet-500/10":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:X}),f===X&&y(Ir,{size:13})]},X))})]}),document.body),w("div",{className:"flex items-center gap-2 shrink-0",children:[w("div",{className:"flex items-center gap-1 bg-white dark:bg-slate-900 px-2.5 py-1 rounded-xl border border-slate-200 dark:border-slate-800 text-xs",children:[y(kv,{size:12,className:"text-slate-400"}),w("select",{value:I,onChange:X=>U(X.target.value),className:"bg-transparent text-slate-700 dark:text-slate-300 text-xs border-none outline-none focus:outline-none focus:ring-0 shadow-none cursor-pointer font-semibold py-0.5",children:[y("option",{value:"all",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"å
¨é¨æ¶é´"}),y("option",{value:"today",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"ä»å¤©æ·»å "}),y("option",{value:"7days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿7天"}),y("option",{value:"30days",className:"bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-200",children:"è¿30天"})]})]}),y("div",{className:"relative",children:w("button",{ref:T,onClick:V,className:"flex items-center gap-1.5 px-3 py-1 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-semibold rounded-xl transition-all",children:[y(M$,{size:12,className:"text-violet-500 dark:text-violet-400"}),w("span",{children:["æåºï¼",B==="desc"?"ææ°æ·»å (仿°å°æ§)":"ææ©æ·»å (仿§å°æ°)"]}),y(zd,{size:12,className:`text-slate-500 transition-transform ${_?"rotate-180":""}`})]})}),_&&L&&Fr.createPortal(w(Rt,{children:[y("div",{className:"fixed inset-0 z-[60]",onClick:()=>k(!1)}),w("div",{className:"fixed mt-1.5 w-48 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-2xl z-[70] py-1 text-xs animate-fade-in",style:{to
558p:T.current?T.current.getBoundingClientRect().bottom+6:0,right:L.right},children:[w("button",{onClick:()=>{j("desc"),k(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800 font-medium ${B==="desc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5 dark:bg-violet-500/10":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ°æ·»å (仿°å°æ§)"}),B==="desc"&&y(Ir,{size:13})]}),w("button",{onClick:()=>{j("asc"),k(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800 font-medium ${B==="asc"?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5 dark:bg-violet-500/10":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:"ææ©æ·»å (仿§å°æ°)"}),B==="asc"&&y(Ir,{size:13})]})]})]}),document.body),y("div",{className:"relative",children:w("button",{ref:C,onClick:$,className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-700 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-100 text-xs font-bold rounded-xl transition-all whitespace-nowrap",children:[y(of,{size:13,className:"text-violet-400"}),w("span",{children:["ç±»åï¼",p==="all"?"å
¨é¨":p==="word"?"è¯è¯":"æè¯"]}),y(zd,{size:13,className:`text-slate-500 transition-transform ${x?"rotate-180":""}`})]})}),x&&N&&Fr.createPortal(w(Rt,{children:[y("div",{className:"fixed inset-0 z-[60]",onClick:()=>b(!1)}),y("div",{className:"fixed mt-1.5 w-40 bg-white dark:bg-slate-900 rounded-xl border border-slate-200 dark:border-slate-800 shadow-2xl z-[70] py-1 text-xs animate-fade-in",style:{to
558p:C.current?C.current.getBoundingClientRect().bottom+6:0,left:N.left},children:[{value:"all",label:"å
¨é¨"},{value:"word",label:"è¯è¯"},{value:"idiom",label:"æè¯"}].map(X=>{const Ve=p===X.value;return w("button",{onClick:()=>{v(X.value),b(!1),se(0),be(!1)},className:`w-full text-left px-3 py-2 flex items-center justify-between hover:bg-slate-100 dark:hover:bg-slate-800 font-medium ${Ve?"text-violet-600 dark:text-violet-400 font-bold bg-violet-500/5 dark:bg-violet-500/10":"text-slate-700 dark:text-slate-300"}`,children:[y("span",{children:X.label}),Ve&&y(Ir,{size:13})]},X.value)})})]}),document.body),w("div",{className:"flex items-center gap-1 bg-slate-100 dark:bg-slate-950 p-1 rounded-xl border border-slate-200 dark:border-slate-800/40",children:[w("button",{onClick:()=>ie("list"),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all ${H==="list"?"bg-white dark:bg-slate-800 text-slate-800 dark:text-slate-100 shadow-sm font-bold":"text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200"}`,children:[y(Yn,{size:13}),"æ¸
忍¡å¼"]}),w("button",{onClick:()=>{ie("flashcard"),se(0),be(!1)},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all ${H==="flashcard"?"bg-white dark:bg-slate-800 text-slate-800 dark:text-slate-100 shadow-sm font-bold":"text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200"}`,children:[y(If,{size:13}),"éªå¡æ¨¡å¼"]})]})]})]}),r?w("div",{className:"flex flex-col items-center justify-center py-20 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-sm",children:"æ£å¨å è½½è¯æ±åº..."})]}):$r.length===0?w("div",{className:"text-center py-16 glass-panel rounded-2xl max-w-sm mx-auto space-y-4 bg-white/80 dark:bg-slate-900/20 border border-slate-200 dark:border-slate-800 shadow-xl",children:[y(Xs,{className:"mx-auto text-slate-400 dark:text-slate-600 animate-pulse",size:40}),w("div",{className:"space-y-1",children:[y("h3",{className:"text-slate-700 dark:text-slate-300 font-bold text-sm",children:"æ¨çè¯è¯åºè¿æ¯ç©ºç"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-500 max-w-[250px] mx-auto leading-relaxed",children:"æ¨å¯ä»¥ä»ç³»ç»å
ç½®é¦èä¸éæºæ½åè¯æè¯ï¼æè
ç´æ¥æµè§ç³»ç»è¯æ±è¿è¡æ¶èã"})]}),w("div",{className:"flex justify-center gap-2 pt-2",children:[y("button",{onClick:()=>{bt(!0),G(null),Ye(""),na(!1)},className:"px-3.5 py-2 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold transition-all shadow-md shadow-violet-600/20",children:"éæºæ½å"}),y("button",{onClick:()=>{bs(!0),HT()},className:"px-3.5 py-2 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-300 rounded-xl text-xs font-bold transition-all border border-slate-200 dark:border-slate-700/50",children:"æµè§é¦è"})]})]}):H==="list"?y("div",{className:"grid gap-3 md:gap-4 animate-fade-in grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:$r.map((X,Ve)=>{const kt=me===X.id;return y("div",{className:`group cursor-pointer transition-all duration-500 ease-out ${kt?"z-10":me?"opacity-40":""}`,style:{perspective:"1500px"},onClick:()=>{kt?Z(null):(Z(X.id),O(Yt=>new Set(Yt).add(X.id)))},children:w("div",{className:"relative w-full transition-all duration-500 ease-out",style:{transformStyle:"preserve-3d",transform:kt?"rotateY(180deg)":"rotateY(0deg)",height:kt?"420px":"180px"},children:[w("div",{className:"absolute inset-0 w-full rounded-2xl border border-slate-200 dark:border-slate-800/45 bg-white dark:bg-slate-900 flex flex-col justify-between p-4 group-hover:border-violet-500/30 group-hover:shadow-lg transition-shadow duration-300",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[w("div",{className:"flex items-center justify-between w-full",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"w-5 h-5 rounded-md bg-vi
558olet-500/10 text-violet-600 dark:text-violet-400 text-[10px] font-extrabold flex items-center justify-center",children:Ve+1}),y("span",{className:"text-[9px] uppercase font-bold text-violet-600 dark:text-violet-400 bg-violet-500/10 px-2 py-0.5 rounded-md",children:X.category||"èªå®ä¹"})]}),y("button",{onClick:Yt=>{Yt.stopPropagation(),lme(Yt,X.id)},className:"p-1.5 text-slate-400 hover:text-red-500 hover:bg-red-500/10 rounded-lg transition-colors",title:"å é¤",children:y(ic,{size:13})})]}),w("div",{className:"flex-1 flex flex-col items-center justify-center text-center",children:[X.pinyin&&y("p",{className:"text-[11px] font-medium text-slate-500 dark:text-slate-400 font-mono tracking-widest mb-1",children:X.pinyin}),y("h3",{className:"font-extrabold text-slate-800 dark:text-slate-100 text-2xl tracking-wider",children:X.term})]}),w("div",{className:"flex items-center justify-between text-[9px] text-slate-400 border-t border-slate-200 dark:border-slate-800/50 pt-2",children:[y("span",{className:"font-medium",children:X.wordType==="idiom"?"æè¯":"è¯è¯"}),w("span",{className:"flex items-center gap-0.5 text-violet-600 dark:text-violet-400 opacity-0 group-hover:opacity-100 transition-opacity",children:[y(eS,{size:10}),"ç¹å»ç¿»è½¬"]})]})]}),w("div",{className:"absolute inset-0 w-full rounded-2xl border border-violet-500/40 shadow-xl shadow-violet-500/20 bg-white dark:bg-slate-900 p-5 flex flex-col",style:{backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"rotateY(180deg)"},children:[w("div",{className:"flex items-center justify-between mb-3",children:[y("span",{className:"text-xs font-bold text-violet-600 dark:text-violet-300 bg-violet-500/10 px-2 py-0.5 rounded-md",children:X.category||"èªå®ä¹"}),y("button",{onClick:Yt=>{Yt.stopPropagation(),Z(null)},className:"p-1 text-slate-400 hover:text-slate-700 dark:hover:text-slate-100 hover:bg-slate-100 dark:hover:bg-slate-800 rounded transition-colors",children:y(Tt,{size:16})})]}),w("div",{className:"text-center mb-3",children:[y("h2",{className:"text-3xl font-black text-slate-800 dark:text-slate-100 tracking-wider",children:X.term}),X.pinyin&&y("p",{className:"text-sm text-violet-600 dark:text-violet-400 font-mono tracking-widest mt-1",children:X.pinyin})]}),w("div",{className:"flex-1 space-y-3 overflow-y-auto text-sm",children:[w("div",{children:[y("span",{className:"text-[10px] text-violet-600 dark:text-violet-400 font-bold uppercase tracking-wider",children:"è¯ä¹è§£é"}),y("p",{className:"text-slate-700 dark:text-slate-200 mt-1 leading-relaxed",children:X.explanation})]}),X.example&&w("div",{children:[y("span",{className:"text-[10px] text-emerald-600 dark:text-emerald-400 font-bold uppercase tracking-wider",children:"ä¾å¥"}),w("p",{className:"text-slate-600 dark:text-slate-300 mt-1 italic text-xs leading-relaxed",children:['"',X.example,'"']})]})]}),y("div",{className:"text-center text-[10px] text-slate-400 mt-3 pt-2 border-t border-slate-200 dark:border-slate-800",children:"ç¹å»å¡çè¿å"})]})]})},X.id)})}):w("div",{className:"flex flex-col items-center justify-center py-6 space-y-8 animate-fade-in",children:[y("div",{className:"w-full max-w-xl h-80 perspective-1000 cursor-pointer select-none",onClick:()=>be(X=>!X),children:w("div",{className:`relative w-full h-full duration-500 transform-style-3d ${oe?"rotate-y-180":""}`,children:[w("div",{className:"absolute inset-0 w-full h-full backface-hidden glass-panel p-8 flex flex-col justify-between rounded-3xl border border-slate-200/60 dark:border-slate-800/60 shadow-xl bg-white/90 dark:bg-slate-900/60",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"px-2.5 py-0.5 rounded-full bg-violet-500/10 text-violet-600 dark:text-violet-400 text-xs font-black tracking-wide",children:$r[ee].category||"èªå®ä¹"}),y("span",{className:"px-2 py-0.5 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 text-[10px] font-bold",children:$r[ee].wordType==="idiom"?"æè¯":"è¯è¯"})]}),y("span",{className:"text-[10px] font-bold text-slate-500",children:"æ£é¢ (å¡é¢)"})]}),w("div",{className:"flex-1 flex flex-col items-center justify-center py-4 space-y-2",children:[y("h2",{className:"text-slate-800 dark:text-slate-100 text-center text-4xl font-extrabold tracking-wider",children:$r[ee].term}),$r[ee].pinyin&&y("p",{className:"text-slate-500 dark:text-slate-400 text-center text-sm font-semibold font-mono tracking-wide",children:$r[ee].pinyin})]}),w("div",{className:"text-center text-[10px] font-bold text-slate-500 uppercase tracking-widest flex items-center justify-center gap-1",children:[y(eS,{size:10,
558className:"animate-spin-slow"}),"ç¹å»å¡çç¿»é¢ä»¥æ¥çéä¹ä¸ä¾å¥"]})]}),w("div",{className:"absolute inset-0 w-full h-full backface-hidden rotate-y-180 glass-panel p-8 flex flex-col justify-between rounded-3xl border border-slate-200 dark:border-slate-800 shadow-xl bg-white/95 dark:bg-slate-900/80",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"px-2.5 py-0.5 rounded-full bg-violet-500/10 text-violet-600 dark:text-violet-400 text-xs font-black tracking-wide",children:$r[ee].category||"èªå®ä¹"}),y("span",{className:"px-2 py-0.5 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 text-[10px] font-bold",children:$r[ee].wordType==="idiom"?"æè¯":"è¯è¯"})]}),y("span",{className:"text-[10px] font-bold text-slate-500",children:"èé¢ (éä¹)"})]}),w("div",{className:"flex-1 flex flex-col items-center justify-center py-4 space-y-3 text-left w-full overflow-y-auto max-h-40 px-2 scrollbar-thin",children:[w("div",{className:"w-full text-center space-y-1",children:[y("h3",{className:"text-xl font-bold text-slate-800 dark:text-slate-100",children:$r[ee].term}),y("p",{className:"text-slate-700 dark:text-slate-200 text-xs font-semibold leading-relaxed",children:$r[ee].explanation})]}),$r[ee].example&&w("p",{className:"text-slate-500 dark:text-slate-400 text-xs italic leading-relaxed text-center w-full px-4 border-t border-slate-200/60 dark:border-slate-800/40 pt-2",children:['"',$r[ee].example,'"']}),$r[ee].sourceParagraphId&&y("div",{className:"w-full border-t border-slate-200/60 dark:border-slate-800/40 pt-2 flex items-center justify-center gap-2",children:ne?y("span",{className:"text-[10px] text-slate-500 animate-pulse",children:"å è½½æºæµä¸..."}):he?w("div",{className:"flex items-center gap-1.5 text-[10px] justify-center",children:[y("span",{className:"text-slate-500",children:"æºèªæ®µè½:"}),y("span",{className:"text-violet-600 dark:text-violet-400 font-bold truncate max-w-[100px]",children:he.title}),w(Mn,{to:`/paragraphs/${he.id}/recite`,onClick:X=>X.stopPropagation(),className:"text-violet-600 dark:text-violet-400 hover:text-violet-500 dark:hover:text-violet-300 font-bold hover:underline inline-flex items-center gap-0.5",children:["å»è诵",y(AP,{size:8})]})]}):null})]}),w("div",{className:"flex items-center justify-center gap-3",children:[w("button",{onClick:X=>cme($r[ee],X),className:"px-5 py-2 bg-emerald-600 text-white rounded-xl text-xs font-bold hover:bg-emerald-700 transition-all flex items-center gap-1 shadow-md shadow-emerald-600/10",children:[y(_u,{size:14}),"è®°ä½äº (æå¡)"]}),y("button",{onClick:X=>GT(X),className:"px-5 py-2 bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 rounded-xl text-xs font-bold hover:bg-slate-200 dark:hover:bg-slate-700 transition-all",children:"ä¸ä¸ä¸ª"})]})]})]})}),w("div",{className:"flex items-center gap-6",children:[y("button",{onClick:X=>ume(X),className:"p-2.5 rounded-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 hover:bg-violet-50 dark:hover:bg-violet-950/20 hover:border-violet-200 dark:hover:border-violet-900/30 hover:text-violet-600 dark:hover:text-violet-400 transition-all duration-200",children:y(P$,{size:16})}),w("span",{className:"text-sm font-bold text-slate-600 dark:text-slate-400",children:["第 ",y("span",{className:"text-violet-600 dark:text-violet-400",children:ee+1})," / ",$r.length," 个è¯è¯"]}),y("button",{onClick:X=>GT(X),className:"p-2.5 rounded-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 hover:bg-violet-50 dark:hover:bg-violet-950/20 hover:border-violet-200 dark:hover:border-violet-900/30 hover:text-violet-600 dark:hover:text-violet-400 transition-all duration-200",children:y(af,{size:16})})]})]}),H==="list"&&c&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-950/75 backdrop-blur-md animate-fade-in",onClick:()=>d(null),children:w("div",{className:"w-full max-w-md bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 md:p-8 space-y-6 shadow-2xl relative animate-scale-up",onClick:X=>X.stopPropagation(),children:[y("button",{onClick:()=>d(null),className:"absolute top-4 right-4 p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dar
558k:hover:bg-slate-800 transition-colors",children:y(Tt,{size:18})}),w("div",{className:"text-center space-y-3 pt-2",children:[w("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-violet-500/10 border border-violet-500/20 text-violet-600 dark:text-violet-400 text-[10px] font-bold tracking-wider",children:[y("span",{children:c.category||"èªå®ä¹"}),y("span",{className:"w-1 h-1 rounded-full bg-slate-300 dark:bg-slate-700"}),y("span",{children:c.wordType==="idiom"?"æè¯":"è¯è¯"})]}),w("div",{className:"space-y-1",children:[y("h2",{className:"text-3xl font-black text-slate-800 dark:text-slate-100 tracking-wider",children:c.term}),c.pinyin&&w("p",{className:"text-sm font-semibold text-slate-500 dark:text-slate-400 font-mono tracking-wide",children:["[ ",c.pinyin," ]"]})]})]}),y("hr",{className:"border-slate-200 dark:border-slate-800"}),w("div",{className:"space-y-4",children:[w("div",{className:"space-y-1.5 text-left",children:[y("span",{className:"text-[10px] text-slate-500 dark:text-slate-550 font-bold uppercase tracking-widest block",children:"è¯ä¹è§£é"}),y("p",{className:"text-slate-700 dark:text-slate-200 text-sm leading-relaxed font-semibold",children:c.explanation})]}),c.example&&w("div",{className:"space-y-2 text-left",children:[y("span",{className:"text-[10px] text-slate-500 dark:text-slate-550 font-bold uppercase tracking-widest block",children:"é å¥ / ä¾å¥"}),y("div",{className:"p-4 bg-slate-100 dark:bg-slate-950/85 border border-slate-200 dark:border-slate-800 rounded-2xl",children:w("p",{className:"text-slate-700 dark:text-slate-300 italic text-xs leading-relaxed font-medium",children:['"',c.example,'"']})})]}),w("button",{onClick:()=>dme(c),className:"w-full py-2.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-2 shadow-md shadow-emerald-600/10",children:[y(pp,{size:14}),"è®°ä½äº (æå¡)"]}),c.sourceParagraphId&&y("div",{className:"border-t border-slate-200 dark:border-slate-850 pt-3",children:ne?w("div",{className:"flex items-center justify-center gap-2 text-slate-500 text-xs",children:[y("div",{className:"w-3 h-3 border border-slate-500 border-t-transparent rounded-full animate-spin"}),"å è½½æºæµä¸..."]}):he?w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2 text-xs",children:[y("span",{className:"text-slate-500",children:"æºèª:"}),y("span",{className:"text-violet-600 dark:text-violet-400 font-bold",children:he.title})]}),w(Mn,{to:`/paragraphs/${he.id}/recite`,onClick:()=>d(null),className:"text-violet-600 dark:text-violet-400 hover:text-violet-500 dark:hover:text-violet-300 text-xs font-bold flex items-center gap-1",children:["å»è诵 ",y(AP,{size:10})]})]}):null})]})]})}),document.body),dt&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-950/75 backdrop-blur-md animate-fade-in text-left",onClick:()=>d(null),children:w("div",{className:"w-full max-w-md bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 md:p-8 space-y-6 shadow-2xl relative animate-scale-up",onClick:X=>X.stopPropagation(),children:[y("button",{onClick:()=>bt(!1),className:"absolute top-4 right-4 p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})}),w("div",{className:"text-center space-y-2",children:[y("h2",{className:"text-xl font-black text-slate-800 dark:text-slate-100",children:"éæºæ½åé¦èè¯æ±"}),y("p",{className:"text-xs text-slate-400 dark:text-slate-500",children:"ä»ç³»ç»å
ç½®è¯åºä¸éæºè·åæ ¸å¿è¯æ±"})]}),w("div",{className:"space-y-4",children:[w("div",{children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-2",children:"è¯è¯ç±»å"}),y("div",{className:"flex gap-2",children:[{value:"all",label:"å
¨é¨"},{value:"word",label:"è¯è¯"},{value:"idiom",label:"æè¯"}].map(X=>y("button",{onClick:()=>
558bc(X.value),className:`flex-1 py-2 rounded-xl text-xs font-bold transition-all ${mn===X.value?"bg-violet-600 text-white shadow-md shadow-violet-600/20":"bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700"}`,children:X.label},X.value))})]}),y("button",{onClick:fme,disabled:ue,className:"w-full py-3 bg-violet-600 hover:bg-violet-700 disabled:opacity-50 text-white rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-2 shadow-lg shadow-violet-500/25 active:scale-95",children:ue?w(Rt,{children:[y("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"æ½åä¸..."]}):w(Rt,{children:[y(Su,{size:16}),"å¼å§æ½å"]})})]}),Fe&&y("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-xl text-red-500 dark:text-red-400 text-xs text-center",children:Fe}),yn&&w("div",{className:"space-y-4",children:[w("div",{className:"p-5 bg-slate-50 dark:bg-slate-950/60 rounded-2xl border border-slate-200/80 dark:border-slate-800 space-y-3",children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:"text-violet-600 dark:text-violet-400 text-xs font-bold",children:yn.category||"èªå®ä¹"}),y("span",{className:"text-slate-400 text-xs",children:yn.wordType==="idiom"?"æè¯":"è¯è¯"})]}),w("div",{className:"text-center space-y-1",children:[y("h3",{className:"text-2xl font-black text-slate-800 dark:text-slate-100",children:yn.term}),yn.pinyin&&w("p",{className:"text-xs text-slate-400 dark:text-slate-500 font-mono",children:["[",yn.pinyin,"]"]})]}),y("p",{className:"text-slate-700 dark:text-slate-200 text-xs leading-relaxed font-normal",children:yn.explanation}),yn.example&&w("p",{className:"text-slate-400 dark:text-slate-500 text-xs italic",children:['"',yn.example,'"']})]}),xn?w("div",{className:"p-3 bg-emerald-500/10 border border-emerald-500/20 rounded-xl text-emerald-600 dark:text-emerald-400 text-xs text-center flex items-center justify-center gap-2 font-bold",children:[y(Ir,{size:14}),"å·²æ¶èå°æ¨çè¯è¯åº"]}):w("button",{onClick:hme,disabled:ue,className:"w-full py-2.5 bg-emerald-600 hover:bg-emerald-700 disabled:opacity-50 text-white rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-2 shadow-md",children:[y(Ti,{size:14}),"æ¶èå°æçè¯åº"]})]})]})}),document.body),Vi&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 bg-slate-950/75 backdrop-blur-md animate-fade-in text-left",onClick:()=>d(null),children:w("div",{className:"w-full max-w-2xl max-h-[80vh] bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 md:p-7 space-y-5 shadow-2xl relative animate-scale-up flex flex-col",onClick:X=>X.stopPropagation(),children:[y("button",{onClick:()=>bs(!1),className:"absolute top-4 right-4 p-1.5 rounded-xl text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",title:"å
³é",children:y(Tt,{size:18})}),w("div",{className:"flex items-center gap-2.5 border-b border-slate-100 dark:border-slate-800/80 pb-3",children:[y("div",{className:"w-8 h-8 rounded-xl bg-violet-500/10 text-violet-600 dark:text-violet-400 flex items-center justify-center",children:y(ku,{size:16})}),w("div",{children:[y("h2",{className:"text-base font-extrabold text-slate-900 dark:text-slate-100",children:"æµè§ç³»ç»é¦èè¯æ±"}),y("p",{className:"text-[11px] text-slate-400 dark:text-slate-500",children:"æç´¢å¹¶æéç³»ç»è¯æ±çº³å
¥ä¸ªäººè¯åº"})]})]}),w("div",{className:"flex flex-col sm:flex-row gap-3",children:[y("input",{type:"text",value:hg,onChange:X=>tme(X.target.value),placeholder:"æç´¢è¯è¯...",className:"flex-1 px-4 py-2 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:ring-2 focus:ring-violet-500/20 text-xs"}),y("select",{value:UT,onChange:X=>rme(X.target.value),className:"px-4 py-2 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 focus:outline-none focus:ring-2 focus:ring-violet-500/20 text-xs",children:oj.map(X=>y("option",{value:X,className:"bg-white dark:bg-slate-950 text-slate-800 dark:text-slate-100",children:X},X))})]}),y("div",{className:"flex-1 overflow-y-auto space-y-2 min-h-[300px] pr-1",children:Ml?w("div",{className:"flex flex-col items-center justify-center py-16 space-y-2",children:[y("div",{className:"w-6 h-6 border-2 border-violet-500 border-t-transparent roun
558ded-full animate-spin"}),y("span",{className:"text-xs text-slate-400",children:"è¯åºæ£ç´¢ä¸..."})]}):j8.length===0?y("div",{className:"text-center py-16 text-slate-400 text-xs",children:"ææ æç´¢ç»æ"}):j8.map(X=>{const Ve=e.some(kt=>kt.term===X.term);return w("div",{className:"flex items-center justify-between p-3.5 bg-slate-50/60 dark:bg-slate-950/40 rounded-xl border border-slate-200/80 dark:border-slate-800/60 hover:border-violet-500/30 transition-all",children:[w("div",{className:"flex-1 min-w-0 pr-3",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs font-extrabold text-slate-800 dark:text-slate-100",children:X.term}),X.pinyin&&w("span",{className:"text-[10px] text-slate-400 font-mono",children:["[",X.pinyin,"]"]})]}),y("p",{className:"text-[11px] text-slate-500 dark:text-slate-400 truncate mt-0.5",children:X.explanation})]}),Ve?w("span",{className:"text-emerald-600 dark:text-emerald-400 text-xs font-bold flex items-center gap-1 flex-shrink-0",children:[y(Ir,{size:13})," å·²æ¶è"]}):w("button",{onClick:()=>pme(X.id),className:"px-3 py-1.5 bg-violet-600 hover:bg-violet-700 text-white rounded-xl text-xs font-bold transition-all flex items-center gap-1 flex-shrink-0 active:scale-95",children:[y(Ti,{size:12})," æ¶è"]})]},X.id)})})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Xke=()=>ze.get("/reviews"),Jke=e=>ze.post(`/reviews/${e}/done`);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Qke(){const[e,t]=z.useState([]),[r,n]=z.useState(!0),[a,i]=z.useState(""),[o,s]=z.useState("all"),l=async()=>{var p,v;try{n(!0);const m=await Xke();t(m.data.data)}catch(m){i(((v=(p=m.response)==null?void 0:p.data)==null?void 0:v.message)||"è·åå¤ä¹ å表失败")}finally{n(!1)}};z.useEffect(()=>{l()},[]);const u=async p=>{var v,m;try{await Jke(p),t(g=>g.filter(x=>x.id!==p))}catch(g){i(((m=(v=g.response)==null?void 0:v.data)==null?void 0:m.message)||"æäº¤å¤ä¹ è®°å½å¤±è´¥")}},c=e.filter(p=>o==="all"?!0:p.contentType===o),d=p=>{switch(p){case"paragraph":return"bg-violet-100 text-violet-700 dark:bg-violet-500/10 dark:text-violet-400 border border-violet-200 dark:border-violet-500/20";case"sentence":return"bg-blue-100 text-blue-700 dark:bg-blue-500/10 dark:text-blue-400 border border-blue-200 dark:border-blue-500/20";case"word":return"bg-amber-100 text-amber-700 dark:bg-amber-500/10 dark:text-amber-400 border border-amber-200 dark:border-amber-500/20";default:return"bg-slate-100 text-slate-700 dark:bg-slate-500/10 dark:text-slate-400 border border-slate-200 dark:border-slate-500/20"}},f=p=>{switch(p){case"paragraph":return"段è½";case"sentence":return"å¥å";case"word":return"è¯æ±";default:return"æªç¥"}},h=p=>{const v=new Date;return v.setHours(0,0,0,0),new Date(p)<v};return w("div",{className:"space-y-6",children:[w("header",{className:"flex items-center justify-between",children:[w("div",{children:[y("h1",{className:"text-2xl font-black text-slate-100",children:"å¤ä¹ ä¸å¿"}),y("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-1",children:"è¾å®¾æµ©æ¯æéå¿æç¨ï¼ç§å¦å·©åºä½ çè¯æèè"})]}),y("button",{onClick:l,className:"p-2 rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 hover:bg-slate-50 dark:hover:bg-slate-750 transition-all text-slate-700 dark:text-slate-300 shadow-sm",title:"å·æ°",children:y(Zo,{size:18})})]}),y("div",{className:"flex gap-2 p-1 bg-slate-100 dark:bg-slate-900/60 rounded-xl border border-slate-200 dark:border-slate-800 max-w-sm",children:["all","paragraph","sentence","word"].map(p=>y("button",{onClick:()=>{s(p)},className:`flex-1 py-1.5 text-xs font-bold rounded-lg capitalize transition-all ${o===p?"bg-violet-600 text-white shadow-sm":"text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200"}`,children:p==="all"?"å
¨é¨":f(p)},p))}),a&&y("div",{className:"p-4 bg-red-500/10 border border-red-500/20 text-red-400 text-sm rounded-xl",children:a}),r?w("div",{className:"flex flex-col items-center justify-center py-20 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-2 border-violet-600 border-t-transparent roun
558ded-full animate-spin"}),y("span",{className:"text-sm",children:"å è½½å¤ä¹ å表ä¸..."})]}):c.length===0?w("div",{className:"glass-panel p-8 rounded-2xl text-center max-w-md mx-auto space-y-4",children:[y("div",{className:"w-16 h-16 bg-violet-500/10 border border-violet-500/20 rounded-full flex items-center justify-center text-violet-500 mx-auto shadow-sm",children:y(X_,{size:32})}),y("h2",{className:"text-lg font-bold text-slate-800 dark:text-slate-200",children:"å¤ä¹ æ± å·²æ¸
空ï¼"}),y("p",{className:"text-sm text-slate-500 dark:text-slate-400 leading-relaxed",children:"ä»å¤©ææå®æçå¤ä¹ ä»»å¡å已宿ãåæä¸å»ï¼å¤§èæ£å¨æ
¢æ
¢åºåä½ çç²¾ç¾è¯è¨ç»æï¼"})]}):y("div",{className:"space-y-4",children:c.map(p=>{const v=h(p.nextReviewAt);return w("div",{className:"relative overflow-hidden p-5 bg-slate-900 border border-slate-800/40 rounded-2xl hover:border-slate-700/40 transition-all duration-200",children:[v&&y("div",{className:"absolute top-0 right-0 px-3 py-1 bg-amber-500/10 border-l border-b border-amber-500/20 rounded-bl-xl text-[10px] font-bold text-amber-400",children:"已龿"}),w("div",{className:"flex flex-col md:flex-row md:items-start gap-4",children:[w("div",{className:"flex-1 space-y-3",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:`text-[10px] px-2 py-0.5 rounded-full font-medium ${d(p.contentType)}`,children:f(p.contentType)}),w("span",{className:"text-[11px] text-slate-500",children:["å·²å¤ä¹ ",p.reviewCount," 次"]})]}),y("div",{className:"relative",children:y("p",{className:"text-slate-200 font-medium leading-relaxed text-base",children:p.contentType==="paragraph"?w("span",{className:"text-lg font-bold text-slate-100",children:["ã",p.contentText,"ã"]}):p.contentText})})]}),y("div",{className:"flex items-center gap-2 mt-2 md:mt-0 shrink-0 self-end md:self-center",children:p.contentType==="paragraph"?w(Mn,{to:`/paragraphs/${p.contentId}/recite`,className:"flex items-center gap-1.5 px-4 py-2 bg-violet-600 text-white text-xs font-bold rounded-xl hover:bg-violet-750 shadow-md shadow-violet-600/10 transition-all",children:["å»è诵å¤ä¹ ",y(af,{size:14})]}):w("button",{onClick:()=>u(p.id),className:"flex items-center justify-center gap-1 px-4 py-2 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 hover:bg-emerald-500/10 hover:border-emerald-500/30 hover:text-emerald-600 dark:hover:text-emerald-400 text-slate-700 dark:text-slate-300 text-xs font-semibold rounded-xl transition-all shadow-sm",children:[y(Ir,{size:14}),"è®°ä½äº"]})})]})]},p.id)})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function eCe(e){return ze.put("/users/profile",e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const tCe=()=>ze.get("/achievements");globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Yne=(e="cultivation",t=30)=>ze.get("/users/leaderboard",{params:{type:e,limit:t}});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const G1={èè½:{id:"sprout",name:"èè½",category:"growth",description:"宿馿¬¡æå¡è诵",lore:"âè¯æå¦èæ¨èè½ï¼ç ´åèåºï¼å§äºè¶³ä¸ãâ",icon:lxe,colorGradient:"from-emerald-400 to-teal-500",badgeBg:"bg-emerald-50 dark:bg-emerald-950/60",iconColor:"text-emerald-500 dark:text-emerald-400",borderColor:"border-emerald-300 dark:border-emerald-800",glowColor:"shadow-emerald-500/20"},çæ ¹:{id:"root",name:"çæ ¹",category:"streak",description:"è¿ç»æå¡ 7 天",lore:"âæ ¹æ·±åå¶èï¼ç§¯è·¬æ¥ä»¥è´åéãâ",icon:Uo,colorGradient:"from-amber-400 to-orange-500",badgeBg:"bg-amber-50 dark:bg-amber-950/60",iconColor:"text-amber-500 dark:text-amber-400",borderColor:"border-amber-300 dark:border-amber-800",glowColor:"shadow-amber-500/20"},æ½æ:{id:"branch",name:"æ½æ",category:"growth",description:"è诵å®ç¬¬ä¸æ®µ",lore:"âè¯å¥å¦ç»¿æå»¶ä¼¸ï¼ç´è§æ¸èµ·ï¼èªæé£éª¨ãâ",icon:gr,colorGradient:"from-violet-500 to-indigo-600",badgeBg:"bg-violet-50 dark:bg-violet-950/60",iconColor:"text-violet-500 dark:text-violet-400",borderColor:"border-violet-300 dark:border-violet-800",glowColor:"shadow-violet-500/20"},å±å¶:{id:"leaf",name:"å±å¶",category:"mastery",description:"累计è诵 10 段",lore:"âç¹èå±å¶ï¼é«åä½ä¸æè¡¨è¾¾ç
è¾¾æ é»ãâ",icon:txe,colorGradient:"from-sky-4
55800 to-blue-600",badgeBg:"bg-sky-50 dark:bg-sky-950/60",iconColor:"text-sky-500 dark:text-sky-400",borderColor:"border-sky-300 dark:border-sky-800",glowColor:"shadow-sky-500/20"},å«è:{id:"bud",name:"å«è",category:"streak",description:"è¿ç»æå¡ 30 天",lore:"âå«èå¾
æ¾ï¼èå¿å¾
åï¼ä¸åæ¥åå°èªç¶æãâ",icon:Qye,colorGradient:"from-rose-400 to-pink-600",badgeBg:"bg-rose-50 dark:bg-rose-950/60",iconColor:"text-rose-500 dark:text-rose-400",borderColor:"border-rose-300 dark:border-rose-800",glowColor:"shadow-rose-500/20"},ç¬æ¨ææ:{id:"forest",name:"ç¬æ¨ææ",category:"mastery",description:"综åä¿®ä¸ºç ´ 1000 å",lore:"âç¬æ¨ææï¼è¯æèªæä½ç³»ï¼è¿å
¥å¤§å¸å¢çãâ",icon:cxe,colorGradient:"from-emerald-400 via-indigo-500 to-purple-600",badgeBg:"bg-indigo-50 dark:bg-indigo-950/60",iconColor:"text-indigo-500 dark:text-indigo-400",borderColor:"border-indigo-300 dark:border-indigo-800",glowColor:"shadow-indigo-500/30"}};function rCe(){var me;const e=Jr(Z=>Z.user),t=Jr(Z=>Z.updateUser),r=Jr(Z=>Z.clearAuth),n=mo(),[a,i]=_d(c4),[o,s]=_d(d4),[l,u]=_d(f4),[c,d]=z.useState(!1),[f,h]=z.useState("preferences"),[p,v]=z.useState("gongzhonghao"),[m,g]=z.useState(null),[x,b]=z.useState(null),_=(Z,J)=>{navigator.clipboard.writeText(Z).then(()=>{g(J),setTimeout(()=>g(null),2e3)})},[k,S]=z.useState([]),[C,T]=z.useState(null),[E,A]=z.useState(null),[N,P]=z.useState(!0),[L,R]=z.useState(""),[M,$]=z.useState(null),[V,B]=z.useState("all"),j=e?`user_avatar_${e.id}`:"user_avatar_default",[I,U]=z.useState(()=>(e==null?void 0:e.avatarUrl)||localStorage.getItem(j)||""),[Y,O]=z.useState(""),H=Z=>{var he;const J=(he=Z.target.files)==null?void 0:he[0];if(!J)return;if(J.size>2*1024*1024){O("â æä»¶éå¶ï¼å¤´åå¾çä¸è½è¶
è¿ 2MBï¼");return}if(!["image/jpeg","image/png","image/webp"].includes(J.type)){O("â æ ¼å¼éæ³ï¼ä»
å
许ä¸ä¼ JPG / PNG / WebP æ ¼å¼çåæ³å¾çï¼");return}const xe=new Image,Pe=URL.createObjectURL(J);xe.src=Pe,xe.onload=()=>{const je=document.createElement("canvas");je.width=256,je.height=256;const ne=je.getContext("2d");if(ne){ne.drawImage(xe,0,0,256,256);const De=je.toDataURL("image/webp",.85);localStorage.setItem(j,De),U(De),t({avatarUrl:De}),eCe({avatarUrl:De}).catch(console.error),O("â
头åå·²åæ¥è³æ°æ®åºä¸å
¨å±ï¼å
¨ç«ç»ä»¶å³å»çæï¼"),setTimeout(()=>O(""),4e3)}URL.revokeObjectURL(Pe)},xe.onerror=()=>{O("â å¾çæä»¶å·²æåæå
嫿 æ³è§£æçéå¾åæ°æ®ï¼"),URL.revokeObjectURL(Pe)}};z.useEffect(()=>{P(!0),Promise.all([tCe(),hO(),Yne("cultivation",200)]).then(([Z,J,we])=>{S(Z.data.data),T(J.data.data);const xe=e!=null&&e.id?we.data.data.find(Pe=>Pe.userId===e.id):void 0;A((xe==null?void 0:xe.cultivationScore)??0)}).catch(Z=>{var J,we;return R(((we=(J=Z.response)==null?void 0:J.data)==null?void 0:we.message)||"è·åä¸ªäººæ°æ®å¤±è´¥")}).finally(()=>P(!1))},[e==null?void 0:e.id]);const ie=()=>{r(),n("/login")},ee=Z=>{if(!Z)return"";const J=new Date(Z);return`${J.getFullYear()}/${J.getMonth()+1}/${J.getDate()}`},se=k.filter(Z=>Z.unlocked).length,oe=(Z,J)=>{if(J)return{current:100,total:100,percent:100,text:"已解é"};if(!C)return{current:0,total:100,percent:0,text:"0%"};switch(Z){case"èè½":return{current:C.streak>0?1:0,total:1,percent:C.streak>0?100:0,text:C.streak>0?"已解é":"宿 1 次æå¡"};case"çæ ¹":{const we=Math.min(C.streak,6);return{current:we,total:7,percent:Math.round(we/7*100),text:`${C.streak}/7 天`}}case"æ½æ":{const we=Math.min(C.masteredParagraphs,1);return{current:we,total:1,percent:we>0?100:0,text:`${C.masteredParagraphs}/1 段`}}case"å±å¶":{const we=Math.min(C.masteredParagraphs,9);return{current:we,total:10,percent:Math.round(we/10*100),text:`${C.masteredParagraphs}/10 段`}}case"å«è":{const we=Math.min(C.streak,29);return{current:we,total:30,percent:Math.round(we/30*100),text:`${C.streak}/30 天`}}default:return{current:0,total:100,percent:0,text:"è¿è¡ä¸"}}},be=k.filter(Z=>{if(V==="all")return!0;const J=G1[Z.name];return J&&J.category===V}).sort((Z,J)=>Number(J.unlocked)-Number(Z.unlocked));return w("div",{className:"space-y-8 pb-12 max-w-5xl mx-auto",children:[w("div",{className:"bg-white dark:bg-slate-900 rounded-3xl border border-slate-200/80 dark:border-slate-800/80 p-6 md:p-8 shadow-sm",children:[w("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6",children:[w("div",{className:"flex flex-col sm:flex-row items-center gap-5 text-center sm:text-left",children:[w("div",{className:"relative group cursor-pointer",children:[w("div",{className:"w-16 h-16 rounded-2xl bg-indigo-50 dark:bg-indigo-950/60 border border-indigo-200 dark:border-indigo-800 text-indigo-600 dark:text-indigo-400 flex items-center justify-center font-black text-2xl uppercase shadow-sm overflow-hidden relative",children:[I?y("img",{src:I,alt:"User Avatar",className:"w-full h-full object-cover"}):e!=null&&e.nickname?e.nickname.slice(0,1):y(R$,{size:24}),y("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center text-white text-xs font-bold gap-1",children:y(Xye,{size:16})})]}),y("input",{type:"file",accept:"image/png, image/jpeg, image/webp",onChange:H,className:"absolute inset-0 opacity-0 cursor-pointer w-full h-full",title:"ç¹å»æ´æ¢ä¸ªäººå¤´å (èªå¸¦ Canvas åç´ è§£æ¯é²æ¤)"})]}),w("div",{className:"space-y-1",children:[w("div",{className:"flex items-center gap-2 justify-center sm:justify-start",children:[y("h1",{className:"text-2xl font-black text-slate-900 dark:text-slate-100",children:(e==null?void 0:e.nickname)||"è¯æä¿®ç¼è
"}),w("span",{className:"px-2 py-0.5 rounded-full text-[10px] font-semibold bg-vi
558olet-500/10 text-violet-400 border border-violet-500/20 flex items-center gap-1",children:[y(b0,{size:10}),"å®å
¨é²å®å¼å¯"]})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:e==null?void 0:e.email}),Y&&y("div",{className:"text-xs font-bold text-emerald-500 animate-fade-in pt-0.5",children:Y}),w("div",{className:"flex items-center gap-3 text-xs text-slate-500 dark:text-slate-400 pt-1 font-medium",children:[w("span",{className:"flex items-center gap-1",children:[y(vp,{size:13,className:"text-slate-400"}),"注åäº ",ee((e==null?void 0:e.createdAt)||null)||"è¿æ"]}),y("span",{children:"â¢"}),w("span",{children:["å
¨ææå积å: ",w("strong",{className:"text-indigo-600 dark:text-indigo-400 font-bold",children:[E??0," å"]})]})]})]})]}),w("div",{className:"flex items-center gap-2.5 shrink-0",children:[w("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 px-4 py-2 bg-indigo-50 hover:bg-indigo-100 dark:bg-indigo-950/60 dark:hover:bg-indigo-900/80 text-indigo-600 dark:text-indigo-300 border border-indigo-200 dark:border-indigo-800 text-xs font-bold rounded-xl transition-all shadow-sm cursor-pointer",children:[y(KT,{size:14}),"设置"]}),w("button",{onClick:ie,className:"flex items-center gap-1.5 px-4 py-2 bg-slate-50 hover:bg-rose-50 dark:bg-slate-800 dark:hover:bg-rose-950/50 text-slate-600 hover:text-rose-600 dar
558k:text-slate-300 dark:hover:text-rose-400 border border-slate-200 dark:border-slate-700 text-xs font-bold rounded-xl transition-all cursor-pointer",children:[y(Q_,{size:14}),"éåºç»å½"]})]})]}),w("div",{className:"mt-6 pt-6 border-t border-slate-100 dark:border-slate-800/80 grid grid-cols-2 sm:grid-cols-4 gap-4",children:[w("div",{className:"p-4 rounded-2xl bg-slate-50/60 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800 flex items-center gap-3.5",children:[y("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 text-amber-500 flex items-center justify-center shrink-0",children:y(Jy,{size:20,className:"animate-pulse"})}),w("div",{children:[y("span",{className:"text-[11px] text-slate-500 dark:text-slate-400 font-bold block",children:"è¿ç»ä¿®è¡æå¡"}),w("span",{className:"text-lg font-black text-slate-900 dark:text-slate-100 font-mono",children:[(C==null?void 0:C.streak)||0," 天"]})]})]}),w("div",{className:"p-4 rounded-2xl bg-slate-50/60 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800 flex items-center gap-3.5",children:[y("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 text-indigo-500 flex items-center justify-center shrink-0",children:y(Yn,{size:20})}),w("div",{children:[y("span",{className:"text-[11px] text-slate-500 dark:text-slate-400 font-bold block",children:"段è½åºææ¡"}),w("span",{className:"text-lg font-black text-slate-900 dark:text-slate-100 font-mono",children:[(C==null?void 0:C.masteredParagraphs)||0," / ",(C==null?void 0:C.totalParagraphs)||0," ç¯"]})]})]}),w("div",{className:"p-4 rounded-2xl bg-slate-50/60 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800 flex items-center gap-3.5",children:[y("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-500 flex items-center justify-center shrink-0",children:y(nn,{size:20})}),w("div",{children:[y("span",{className:"text-[11px] text-slate-500 dark:text-slate-400 font-bold block",children:"éå¥ä¸è¯è¯ç§¯ç´¯"}),w("span",{className:"text-lg font-black text-slate-900 dark:text-slate-100 font-mono",children:[((C==null?void 0:C.todaySentences)||0)+((C==null?void 0:C.todayWords)||0)+31," 项"]})]})]}),w("div",{className:"p-4 rounded-2xl bg-slate-50/60 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800 flex items-center gap-3.5",children:[y("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 text-sky-500 flex items-center justify-center shrink-0",children:y(kv,{size:20})}),w("div",{children:[y("span",{className:"text-[11px] text-slate-500 dark:text-slate-400 font-bold block",children:"仿¥ä¸æ³¨æ¶é´"}),w("span",{className:"text-lg font-black text-slate-900 dark:text-slate-100 font-mono",children:[Math.round(((C==null?void 0:C.todaySeconds)||0)/60)," åé"]})]})]})]})]}),w("div",{className:"bg-white dark:bg-slate-900 p-6 md:p-8 rounded-3xl border border-slate-200 dark:border-slate-800 shadow-sm space-y-6",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-slate-100 dark:border-slate-800 pb-5",children:[w("div",{className:"flex items-center gap-3.5",children:[y("div",{className:"p-3 bg-gradient-to-tr from-amber-400 to-orange-500 rounded-2xl text-white shadow-md shadow-amber-500/20",children:y(Uo,{className:"w-6 h-6"})}),w("div",{children:[y("h2",{className:"font-black text-slate-900 dark:text-slate-100 text-xl flex items-center gap-2",children:"è¯ææå°±åç« å¢"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:"è®°å½ä½ å¨ã表达åãä¸çæ¯ä¸æ¬¡èè¯µç ´è§ä¸ç§¯ç´¯é£è·"})]})]}),y("div",{className:"flex items-center gap-2",children:w("span",{className:"text-xs font-black text-amber-600 dark:text-amber-400 bg-amber-50 dark:bg-amber-950/80 px-4 py-2 rounded-2xl border border-amber-200 dark:border-amber-800/80 shadow-sm",children:["已解é ",se," / ",k.length," åç« (",Math.round(se/(k.length||1)*100),"%)"]})})]}),w("div",{className:"flex items-center gap-2 overflow-x-auto pb-1",children:[w("button",{onClick:()=>B("all"),className:`px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all ${V==="all"?"bg-indigo-600 text-white shadow-sm":"bg-slate-100 dar
558k:bg-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-200"}`,children:["ð å
¨é¨åç« (",k.length,")"]}),y("button",{onClick:()=>B("growth"),className:`px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all ${V==="growth"?"bg-indigo-600 text-white shadow-sm":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-200"}`,children:"ð± è¯æç ´è§"}),y("button",{onClick:()=>B("streak"),className:`px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all ${V==="streak"?"bg-indigo-600 text-white shadow-sm":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-200"}`,children:"ð¥ å¤ä¿®æå¡"}),y("button",{onClick:()=>B("mastery"),className:`px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all ${V==="mastery"?"bg-indigo-600 text-white shadow-sm":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-200"}`,children:"ð è诵é 诣"})]}),L&&w("div",{className:"p-4 bg-rose-500/10 border border-rose-500/20 text-rose-600 dar
558k:text-rose-400 text-xs rounded-2xl flex items-center gap-2",children:[y(Tee,{size:16}),L]}),N?w("div",{className:"flex flex-col items-center justify-center py-16 text-slate-400 space-y-3",children:[y("div",{className:"w-8 h-8 border-3 border-indigo-500 border-t-transparent rounded-full animate-spin"}),y("span",{className:"text-xs font-bold",children:"æ£å¨é¸é 个人åç« å¾é´..."})]}):y("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:be.map(Z=>{const J=G1[Z.name]||{name:Z.name,description:Z.description,lore:"â积累跬æ¥ï¼ä»¥è´åéãâ",icon:X_,colorGradient:"from-indigo-400 to-purple-500",badgeBg:"bg-indigo-50 dark:bg-indigo-950/50",iconColor:"text-indigo-500",borderColor:"border-indigo-200 dark:border-indigo-800",glowColor:"shadow-indigo-500/20"},we=J.icon,xe=oe(Z.name,Z.unlocked);return w("div",{onClick:()=>$(Z),className:`group relative p-6 rounded-3xl border-2 transition-all duration-300 flex flex-col items-center text-center space-y-4 cursor-pointer ${Z.unlocked?`bg-white dark:bg-slate-900 ${J.borderColor} hover:border-indigo-500 shadow-md hover:shadow-xl ${J.glowColor} hover:-translate-y-1.5`:"bg-slate-50/70 dark:bg-slate-950/40 border-slate-200 dark:border-slate-800 opacity-60 hover:opacity-90"}`,children:[Z.unlocked?w("span",{className:"absolute top-4 right-4 text-emerald-700 dark:text-emerald-400 bg-emerald-100/90 dark:bg-emerald-950/90 px-2.5 py-0.5 rounded-full text-[10px] font-black tracking-wider border border-emerald-300 dark:border-emerald-800 shadow-sm flex items-center gap-1",children:[y(Ir,{size:11}),"å·²æ©è·"]}):w("span",{className:"absolute top-4 right-4 text-slate-400 dark:text-slate-500 flex items-center gap-1 text-[10px] font-bold bg-slate-200/80 dark:bg-slate-800 px-2 py-0.5 rounded-full border border-slate-300/50 dark:border-slate-700/50",children:[y(bee,{size:10})," æªè§£é"]}),y("div",{className:`w-20 h-20 aspect-square rounded-2xl p-0.5 bg-gradient-to-tr ${Z.unlocked?J.colorGradient:"from-slate-300 to-slate-400 dark:from-slate-700 dark:to-slate-800"} shadow-md transition-transform duration-300 group-hover:scale-105 shrink-0 flex items-center justify-center`,children:y("div",{className:`w-full h-full rounded-[14px] ${Z.unlocked?J.badgeBg:"bg-slate-100 dark:bg-slate-800/80"} flex items-center justify-center`,children:y(we,{className:`w-9 h-9 ${Z.unlocked?J.iconColor:"text-slate-400 opacity-40 dark:text-slate-500"} drop-shadow-sm`})})}),w("div",{className:"space-y-1.5 w-full",children:[y("h3",{className:`font-black text-lg ${Z.unlocked?"text-slate-900 dark:text-slate-100":"text-slate-500 dark:text-slate-400"}`,children:Z.name}),y("p",{className:"text-xs text-slate-600 dark:text-slate-400 leading-relaxed px-1 font-medium",children:Z.description})]}),Z.unlocked?y("div",{className:"w-full pt-1",children:w("span",{className:"inline-flex items-center gap-1 text-[10px] text-indigo-700 dark:text-indigo-300 bg-indigo-50 dark:bg-indigo-950/80 px-3 py-1 rounded-full font-bold border border-indigo-200 dark:border-indigo-900/60",children:[y(vp,{size:11}),ee(Z.unlockedAt)," è§£é"]})}):w("div",{className:"w-full space-y-1.5 pt-1",children:[w("div",{className:"flex items-center justify-between text-[10px] font-bold text-slate-400",children:[y("span",{children:"è§£éè¿åº¦"}),w("span",{children:[xe.percent,"%"]})]}),y("div",{className:"w-full bg-slate-200 dark:bg-slate-800 h-1.5 rounded-full overflow-hidden",children:y("div",{className:"bg-indigo-500 h-full rounded-full transition-all duration-500",style:{width:`${xe.percent}%`}})})]})]},Z.id)})})]}),M&&y("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/60 backdrop-blur-sm animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-3xl p-6 sm:p-8 max-w-sm w-full space-y-5 text-center shadow-2xl relative",children:[y("button",{onClick:()=>$(null),className:"absolute top-4 right-4 p-1.5 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 transition-colors",children:y(Tt,{size:18})}),y("div",{className:"w-24 h-24 aspect-square mx-auto rounded-3xl p-0.5 bg-gradient-to-tr from-amber-400 to-orange-500 shadow-xl flex items-center justify-center",children:y("div",{className:"w-full h-full rounded-[22px] bg-amber-50 dark:bg-amber-950/60 flex items-center justify-center",children:(()=>{var J;
558const Z=((J=G1[M.name])==null?void 0:J.icon)||Uo;return y(Z,{className:"w-12 h-12 text-amber-500"})})()})}),w("div",{className:"space-y-2",children:[w("h3",{className:"text-xl font-black text-slate-900 dark:text-slate-100",children:[M.name," åç« "]}),y("p",{className:"text-xs text-slate-600 dark:text-slate-400 leading-relaxed font-medium",children:M.description}),y("p",{className:"text-xs italic text-indigo-600 dark:text-indigo-400 font-serif pt-1",children:((me=G1[M.name])==null?void 0:me.lore)||"â积累跬æ¥ï¼ä»¥è´åéãâ"})]}),y("div",{className:"p-3.5 rounded-2xl bg-slate-50 dark:bg-slate-950 text-xs border border-slate-200 dark:border-slate-800",children:M.unlocked?w("span",{className:"text-emerald-600 dark:text-emerald-400 font-bold flex items-center justify-center gap-1",children:[y(nn,{size:14}),"ä½ å·²äº ",ee(M.unlockedAt)," è£èæ©è·æ¤åç« ï¼"]}):y("span",{className:"text-amber-600 dark:text-amber-400 font-bold",children:"ð åç« å°å¤äºæªè§£éç¶æï¼ç»§ç»è诵æå¡å³å¯ä¸é®æ¿æ´»ï¼"})})]})}),c&&Fr.createPortal(y("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6 bg-slate-950/60 backdrop-blur-sm animate-fade-in",children:w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-3xl p-6 sm:p-8 max-w-2xl w-full space-y-6 shadow-2xl relative max-h-[90vh] overflow-y-auto",children:[w("div",{className:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800 pb-4",children:[w("div",{className:"flex items-center gap-3",children:[y("div",{className:"p-2.5 bg-indigo-500/10 text-indigo-500 dark:text-indigo-400 rounded-2xl",children:y(KT,{className:"w-5 h-5"})}),w("div",{children:[y("h3",{className:"text-lg font-black text-slate-900 dark:text-slate-100",children:"ç³»ç»è®¾ç½®ä¸å
³äº"}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400",children:"èªå®ä¹åè½å好 · å
³äºä½è
ä¸èµå©æ¯æ"})]})]}),y("button",{onClick:()=>d(!1),className:"p-1.5 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 transition-colors",children:y(Tt,{size:18})})]}),w("div",{className:"flex items-center gap-2 bg-slate-100 dark:bg-slate-800/60 p-1 rounded-2xl",children:[w("button",{onClick:()=>h("preferences"),className:`flex-1 py-2 rounded-xl text-xs font-extrabold transition-all flex items-center justify-center gap-2 ${f==="preferences"?"bg-white dark:bg-slate-900 text-indigo-600 dark:text-indigo-400 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200"}`,children:[y(KT,{size:14}),"åè½å好设置"]}),w("button",{onClick:()=>h("about"),className:`flex-1 py-2 rounded-xl text-xs font-extrabold transition-all flex items-center justify-center gap-2 ${f==="about"?"bg-white dark:bg-slate-900 text-rose-600 dar
558k:text-rose-400 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200"}`,children:[y(gp,{size:14}),"å
³äºä½è
ä¸èµå©"]})]}),f==="preferences"&&w("div",{className:"space-y-3 animate-fade-in py-2",children:[w("div",{className:"flex items-center justify-between p-4 rounded-2xl bg-slate-50/70 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-3.5",children:[y("div",{className:`p-2.5 rounded-xl ${o?"bg-indigo-500/10 text-indigo-500":"bg-slate-200 dark:bg-slate-700 text-slate-400"}`,children:y(vp,{className:"w-5 h-5"})}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-sm font-bold text-slate-900 dark:text-slate-100",children:"æ¾ç¤ºå¥ååº"}),o?w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-emerald-50 dark:bg-emerald-950/60 text-emerald-600 dark:text-emerald-400 border border-emerald-200 dark:border-emerald-800 flex items-center gap-1",children:[y(Fd,{size:11})," å·²å¼å¯"]}):w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-slate-400 border border-slate-200 dark:border-slate-700 flex items-center gap-1",children:[y(Vw,{size:11})," å·²éè"]})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:"æ§å¶å¯¼èªæ ä¸âå¥ååºâèåå
¥å£çæ¾ç¤ºç¶æï¼é»è®¤æ¾ç¤ºï¼å
³éåå¯¼èªæ å°èªå¨éèå¥ååºï¼"})]})]}),y("button",{onClick:()=>s(!o),className:`relative inline-flex h-7 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${o?"bg-indigo-600":"bg-slate-300 dark:bg-slate-700"}`,role:"switch","aria-checked":o,children:y("span",{className:`pointer-events-none inline-block h-6 w-6 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out ${o?"translate-x-5":"translate-x-0"}`})})]}),w("div",{className:"flex items-center justify-between p-4 rounded-2xl bg-slate-50/70 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-3.5",children:[y("div",{className:`p-2.5 rounded-xl ${l?"bg-indigo-500/10 text-indigo-500":"bg-slate-200 dark:bg-slate-700 text-slate-400"}`,children:y(EP,{className:"w-5 h-5"})}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-sm font-bold text-slate-900 dark:text-slate-100",children:"æ¾ç¤ºè¯è¯åº"}),l?w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-emerald-50 dark:bg-emerald-950/60 text-emerald-600 dark:text-emerald-400 border border-emerald-200 dark:border-emerald-800 flex items-center gap-1",children:[y(Fd,{size:11})," å·²å¼å¯"]}):w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-slate-400 border border-slate-200 dark:border-slate-700 flex items-center gap-1",children:[y(Vw,{size:11})," å·²éè"]})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:"æ§å¶å¯¼èªæ ä¸âè¯è¯åºâèåå
¥å£çæ¾ç¤ºç¶æï¼é»è®¤æ¾ç¤ºï¼å
³éåå¯¼èªæ å°èªå¨éèè¯è¯åºï¼"})]})]}),y("button",{onClick:()=>u(!l),className:`relative inline-flex h-7 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${l?"bg-indigo-600":"bg-slate-300 dark:bg-slate-700"}`,role:"switch","aria-checked":l,children:y("span",{className:`pointer-events-none inline-block h-6 w-6 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out ${l?"translate-x-5":"translate-x-0"}`})})]}),w("div",{className:"flex items-center justify-between p-4 rounded-2xl bg-slate-50/70 dark:bg-slate-800/40 border border-slate-100 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-3.5",children:[y("div",{className:`p-2.5 rounded-xl ${a?"bg-indigo-500/10 text-indigo-500":"bg-slate-200 dark:bg-slate-700 text-slate-400"}
558`,children:y(Zo,{className:"w-5 h-5"})}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-sm font-bold text-slate-900 dark:text-slate-100",children:"æ¾ç¤ºå¤ä¹ ä¸å¿"}),a?w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-emerald-50 dark:bg-emerald-950/60 text-emerald-600 dark:text-emerald-400 border border-emerald-200 dark:border-emerald-800 flex items-center gap-1",children:[y(Fd,{size:11})," å·²å¼å¯"]}):w("span",{className:"text-[10px] font-extrabold px-2 py-0.5 rounded-full bg-slate-100 dark:bg-slate-800 text-slate-500 dark:text-slate-400 border border-slate-200 dark:border-slate-700 flex items-center gap-1",children:[y(Vw,{size:11})," å·²éè"]})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:"æ§å¶å¯¼èªæ ä¸âå¤ä¹ âèåå
¥å£çæ¾ç¤ºç¶æï¼é»è®¤æ¾ç¤ºï¼å
³éåå¯¼èªæ å°èªå¨éèå¤ä¹ å
¥å£ï¼"})]})]}),y("button",{onClick:()=>i(!a),className:`relative inline-flex h-7 w-12 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${a?"bg-indigo-600":"bg-slate-300 dark:bg-slate-700"}`,role:"switch","aria-checked":a,children:y("span",{className:`pointer-events-none inline-block h-6 w-6 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out ${a?"translate-x-5":"translate-x-0"}`})})]})]}),f==="about"&&y("div",{className:"space-y-6 animate-fade-in pt-1",children:w("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-5 items-stretch",children:[w("div",{className:"md:col-span-6 flex flex-col justify-between space-y-4 bg-slate-50/70 dark:bg-slate-800/40 p-5 rounded-2xl border border-slate-100 dark:border-slate-800",children:[w("div",{className:"space-y-2",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs font-black px-2.5 py-0.5 rounded-full bg-indigo-500/10 text-indigo-600 dark:text-indigo-400 border border-indigo-500/20",children:"å¼åè
ï¼èºæ¯ç¾¹"}),y("span",{className:"text-xs font-black px-2.5 py-0.5 rounded-full bg-rose-500/10 text-rose-600 dar
558k:text-rose-400 border border-rose-500/20",children:"å
¬ä¼å·ï¼èºæ¯ç¾¹"})]}),y("p",{className:"text-xs text-slate-600 dark:text-slate-300 leading-relaxed font-medium pt-1",children:"è¯æå·¥åæ¯ä¸ä¸ªä¸æ³¨äºæå表达åçå®ç¨å·¥å
·ãå®éè¿ç§å¦çè¯å¥ç§¯ç´¯ä¸åå¤å
åï¼å¸®å©å¤§å®¶åå«è¯ç©·ãéå¡è¯æï¼è®©æ¯ä¸æ¬¡å¼å£é½æ´æåéã妿æä»»ä½é®é¢æå»ºè®®ï¼æ¬¢è¿éæ¶èç³»æï¼æä¸ç´å¨çº¿ã叿è¿ä¸ªå·¥å
·è½çæ£å¸®å°ä½ ã"})]}),w("div",{className:"space-y-2.5 pt-2",children:[y("span",{className:"text-[11px] font-black text-slate-700 dark:text-slate-300 uppercase tracking-wider block",children:"ð¬ ä½è
èç³»æ¹å¼"}),w("div",{className:"grid grid-cols-1 gap-2",children:[w("div",{className:"p-3 rounded-xl bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-700/80 flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-7 h-7 rounded-lg bg-sky-500/10 text-sky-500 flex items-center justify-center shrink-0",children:y(_ee,{size:16})}),w("div",{children:[y("span",{className:"text-[10px] text-slate-400 font-bold block",children:"QQ èç³»"}),y("span",{className:"text-xs font-black text-slate-800 dark:text-slate-100 font-mono",children:"3057454077"})]})]}),w("button",{onClick:()=>_("3057454077","QQ"),className:"px-2.5 py-1 rounded-lg text-xs font-bold bg-slate-100 hover:bg-indigo-50 dark:bg-slate-800 dark:hover:bg-indigo-950/60 text-slate-600 hover:text-indigo-600 dark:text-slate-300 transition-colors flex items-center gap-1",children:[m==="QQ"?y(Ir,{size:13,className:"text-emerald-500"}):y(J_,{size:13}),m==="QQ"?"å·²å¤å¶":"å¤å¶"]})]}),w("div",{className:"p-3 rounded-xl bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-700/80 flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-7 h-7 rounded-lg bg-emerald-500/10 text-emerald-500 flex items-center justify-center shrink-0",children:y(See,{size:16})}),w("div",{children:[y("span",{className:"text-[10px] text-slate-400 font-bold block",children:"微信 èç³»"}),y("span",{className:"text-xs font-black text-slate-800 dark:text-slate-100 font-mono",children:"peace-83"})]})]}),w("button",{onClick:()=>_("peace-83","微信"),className:"px-2.5 py-1 rounded-lg text-xs font-bold bg-slate-100 hover:bg-indigo-50 dark:bg-slate-800 dark:hover:bg-indigo-950/60 text-slate-600 hover:text-indigo-600 dark:text-slate-300 transition-colors flex items-center gap-1",children:[m==="微信"?y(Ir,{size:13,className:"text-emerald-500"}):y(J_,{size:13}),m==="微信"?"å·²å¤å¶":"å¤å¶"]})]})]})]})]}),w("div",{className:"md:col-span-6 flex flex-col bg-slate-50/70 dark:bg-slate-800/40 p-4 rounded-2xl border border-slate-100 dark:border-slate-800 space-y-3",children:[w("div",{className:"flex items-center gap-2 bg-slate-200/60 dark:bg-slate-900/60 p-1 rounded-xl",children:[w("button",{onClick:()=>v("gongzhonghao"),className:`flex-1 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center justify-center gap-1 ${p==="gongzhonghao"?"bg-white dark:bg-slate-800 text-indigo-600 dark:text-indigo-400 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(Cee,{size:13}),"å
¬ä¼å·: èºæ¯ç¾¹"]}),w("button",{onClick:()=>v("zanshang"),className:`flex-1 py-1.5 rounded-lg text-xs font-bold transition-all flex items-center justify-center gap-1 ${p==="zanshang"?"bg-white dark:bg-slate-800 text-rose-600 dar
558k:text-rose-400 shadow-sm":"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(gp,{size:13}),"èµèµé¼å±ç "]})]}),y("div",{className:"flex-1 flex flex-col items-center justify-center text-center p-3 bg-white dark:bg-slate-900 rounded-xl border border-slate-200/80 dark:border-slate-700/80 space-y-2.5 min-h-[210px]",children:p==="gongzhonghao"?w(Rt,{children:[w("div",{onClick:()=>b({src:HS,title:"宿¹å
¬ä¼å·ï¼èºæ¯ç¾¹"}),className:"w-36 h-36 rounded-xl border border-slate-200 dark:border-slate-700 p-1.5 bg-white shadow-sm overflow-hidden flex items-center justify-center cursor-zoom-in group relative",title:"ç¹å»æ¾å¤§æ¥çå
¬ä¼å·äºç»´ç ",children:[y("img",{src:HS,alt:"宿¹å
¬ä¼å·ï¼èºæ¯ç¾¹",className:"w-full h-full object-contain rounded-lg transition-transform duration-300 group-hover:scale-105"}),w("div",{className:"absolute inset-0 bg-slate-950/40 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col items-center justify-center text-white text-[10px] font-extrabold gap-1 rounded-lg backdrop-blur-[1px]",children:[y(Fm,{size:18}),y("span",{children:"ç¹å»æ¾å¤§"})]})]}),w("div",{className:"space-y-0.5 max-w-xs",children:[y("span",{className:"text-xs font-black text-slate-900 dark:text-slate-100 block",children:"微信æ«ç å
³æ³¨ãèºæ¯ç¾¹ã"}),y("p",{className:"text-[10px] text-slate-500 dark:text-slate-400 leading-relaxed font-medium",children:"ç¹å»å¾ç坿¾å¤§é¢è§ · è·åã表达åãææ°æ¨æä¸å¨æ"})]})]}):w(Rt,{children:[w("div",{onClick:()=>b({src:WS,title:"èµèµé¼å±ç ï¼èºæ¯ç¾¹ï¼"}),className:"w-36 h-36 rounded-xl border border-slate-200 dark:border-slate-700 p-1.5 bg-white shadow-sm overflow-hidden flex items-center justify-center cursor-zoom-in group relative",title:"ç¹å»æ¾å¤§æ¥çèµèµé¼å±ç ",children:[y("img",{src:WS,alt:"èµèµé¼å±ç ",className:"w-full h-full object-contain rounded-lg transition-transform duration-300 group-hover:scale-105"}),w("div",{className:"absolute inset-0 bg-slate-950/40 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col items-center justify-center text-white text-[10px] font-extrabold gap-1 rounded-lg backdrop-blur-[1px]",children:[y(Fm,{size:18}),y("span",{children:"ç¹å»æ¾å¤§"})]})]}),w("div",{className:"space-y-0.5 max-w-xs",children:[w("span",{className:"text-xs font-black text-rose-600 dar
558k:text-rose-400 block flex items-center justify-center gap-1",children:[y(gp,{size:12,fill:"currentColor"})," æè°¢èµèµä¸é¼å±"]}),y("p",{className:"text-[10px] text-slate-500 dark:text-slate-400 leading-relaxed font-medium",children:"ç¹å»å¾ç坿¾å¤§é¢è§ · 欢è¿èµèµæ¯æèºæ¯ç¾¹æç»ç»´æ¤ï¼"})]})]})})]})]})}),y("div",{className:"pt-2 border-t border-slate-100 dark:border-slate-800",children:y("button",{onClick:()=>d(!1),className:"w-full py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-sm rounded-xl transition-colors shadow-sm cursor-pointer",children:"å
³é"})})]})}),document.body),x&&Fr.createPortal(y("div",{onClick:()=>b(null),className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-md animate-fade-in cursor-zoom-out",children:w("div",{onClick:Z=>Z.stopPropagation(),className:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-3xl p-6 max-w-md w-full space-y-4 shadow-2xl relative text-center cursor-default",children:[y("button",{onClick:()=>b(null),className:"absolute top-4 right-4 p-1.5 rounded-full hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200 transition-colors",children:y(Tt,{size:20})}),y("h4",{className:"text-base font-black text-slate-900 dark:text-slate-100 pt-1",children:x.title}),y("div",{className:"w-72 h-72 sm:w-80 sm:h-80 mx-auto rounded-2xl border border-slate-200 dark:border-slate-700 p-2 bg-white shadow-xl overflow-hidden flex items-center justify-center",children:y("img",{src:x.src,alt:x.title,className:"w-full h-full object-contain rounded-xl"})}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 font-medium",children:"ç¹å»ç©ºç½åºåæå³ä¸æ¹å
³éæé®éåºå¤§å¾"})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const nCe=[{id:"8fa64741-f6be-451e-84b2-297e20340b11",content:"åéä¹è¡ï¼å§äºè¶³ä¸ã",source:"ãèåã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b12",content:"å·±æä¸æ¬²ï¼å¿æ½äºäººã",source:"ã论è¯ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b13",content:"工欲åå
¶äºï¼å¿
å
å©å
¶å¨ã",source:"ã论è¯ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b14",content:"å®å±±ä¹ç³ï¼å¯ä»¥æ»çã",source:"ãè¯ç»ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b15",content:"è¡ç¾éè
åä¹åã",source:"ãæå½çã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b16",content:"åè§è约åï¼å积èèåã",source:"èè½¼",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b17",content:"è¯»ä¹¦ç ´ä¸å·ï¼ä¸ç¬å¦æç¥ã",source:"æç«",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b18",content:"æè好å¦ï¼ä¸è»ä¸é®ã",source:"ã论è¯ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b19",content:"温æ
èç¥æ°ï¼å¯ä»¥ä¸ºå¸ç£ã",source:"ã论è¯ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b20",content:"å¦è䏿åç½ï¼æèä¸å¦åæ®ã",source:"ã论è¯ã",difficulty:"easy"},{id:"8fa64741-f6be-451e-84b2-297e20340b21",content:"ä¸ç§¯è·¬æ¥ï¼æ 以è³åéï¼ä¸ç§¯å°æµï¼æ ä»¥ææ±æµ·ã",source:"ãèå·åå¦ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b22",content:"é²èèä¹ï¼æ½æ¨ä¸æï¼é²èä¸èï¼éç³å¯éã",source:"ãèå·åå¦ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b23",content:"海纳ç¾å·ï¼æå®¹ä¹å¤§ï¼å£ç«åä»ï¼æ 欲ååã",source:"æåå¾",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b24",content:"积åæå±±ï¼é£é¨å
´çï¼ç§¯æ°´ææ¸ï¼èé¾ççã",source:"ãèå·åå¦ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b25",content:"æµæ°´ä¸è
ï¼æ·æ¢ä¸è ¹ï¼å¨ä¹ã",source:"ãåæ°æ¥ç§ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b26",content:"ç¥ä¹è
ä¸å¦å¥½ä¹è
ï¼å¥½ä¹è
ä¸å¦ä¹ä¹è
ã",source:"ã论è¯ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b27",content:"ååå¦è¡è¡ï¼å°äººé¿ææã",source:"ã论è¯ã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b28",content:"çäºå¿§æ£èæ»äºå®ä¹ã",source:"ãååã",difficulty:"medium"},{id:"8fa64741-f6be-451e-84b2-297e20340b29",content:"æ
天å°éå¤§ä»»äºæ¯äººä¹ï¼å¿
å
è¦å
¶å¿å¿ï¼å³å
¶ç骨ï¼é¥¿å
¶ä½è¤ï¼ç©ºä¹å
¶èº«ï¼è¡æä¹±å
¶æä¸ºã",source:"ãååã",difficulty:"hard"},{id:"8fa64741-f6be-451e-84b2-297e20340b30",content:"大å¦ä¹éï¼å¨ææå¾·ï¼å¨äº²æ°ï¼å¨æ¢äºè³åãç¥æ¢èåæå®ï¼å®èåè½éï¼éèåè½å®ã",source:"ã大å¦ã",difficulty:"hard"},{id:"8fa64741-f6be-451e-84b2-297e20340b31",content:"天è¡å¥ï¼åå以èªå¼ºä¸æ¯ï¼å°å¿å¤ï¼åå以åå¾·è½½ç©ã",source:"ã卿ã",difficulty:"hard"},{id:"8fa64741-f6be-451e-84b2-297e20340b32",content:"èå¾èï¼ä»¥å人ä¹èï¼å¹¼å¾å¹¼ï¼ä»¥å人ä¹å¹¼ã天ä¸å¯è¿äºæã",source:"ãååã",difficulty:"hard"}];function eD(e){return e.replace(/[^\p{L}\p{N}]/gu,"")}function aCe(e){let t="",r=!1;for(let n=0;n<e.length;n++){const a=e[n];/[\p{L}\p{N}]/u.test(a)?r?t+=" _":(t+=a,r=!0):(t+=a,r=!1)}return t}function Kne(e){return e<0?{name:"èæ§",level:0,color:"text-slate-400 dark:text-slate-500",bgColor:"bg-slate-500/10",borderColor:"border-slate-500/20"}:e<10?{name:"å¯è",level:1,color:"text-emerald-500",bgColor:"bg-emerald-500/10",borderColor:"border-emerald-500/20"}:e<25?{name:"积累",level:2,color:"text-cyan-500",bgColor:"bg-cyan-500/10",borderColor:"border-cyan-500/20"}:e<50?{name:"ç²¾è¿",level:3,color:"text-blue-500",bgColor:"bg-blue-500/10",borderColor:"border-blue-500/20"}:e<100?{name:"éè¾¾",level:4,color:"text-purple-500",bgColor:"bg-purple-500/10",borderColor:"border-purple-500/20"}:e<200?{name:"åé
",level:5,color:"text-amber-500",bgColor:"bg-
558amber-500/10",borderColor:"border-amber-500/20"}:{name:"å®å¸",level:6,color:"text-rose-500 font-extrabold",bgColor:"bg-rose-500/10",borderColor:"border-rose-500/30"}}function iCe(e,t){const r=eD(e),n=eD(t),a=r.length,i=n.length,o=Array.from({length:a+1},()=>Array(i+1).fill(0));for(let c=1;c<=a;c++)for(let d=1;d<=i;d++)r[c-1]===n[d-1]?o[c][d]=o[c-1][d-1]+1:o[c][d]=Math.max(o[c-1][d],o[c][d-1]);const s=[];let l=a,u=i;for(;l>0||u>0;)l>0&&u>0&&r[l-1]===n[u-1]?(s.unshift({char:r[l-1],type:"match"}),l--,u--):u>0&&(l===0||o[l][u-1]>=o[l-1][u])?(s.unshift({char:n[u-1],type:"insert"}),u--):(s.unshift({char:r[l-1],type:"delete"}),l--);return s}function oCe(){const e=Pk(nx),[t,r]=z.useState("idle"),[n,a]=z.useState("easy"),[i,o]=z.useState("challenge"),[s,l]=z.useState(null),[u,c]=z.useState(""),[d,f]=z.useState(0),[h,p]=z.useState(0),[v,m]=z.useState(!1),[g,x]=z.useState(!1),[b,_]=z.useState(0),[k,S]=z.useState([]),[C,T]=z.useState(null),[E,A]=z.useState(!1),[N,P]=z.useState(!1),[L,R]=z.useState(!1),[M,$]=z.useState(null),V=z.useRef(0),B=z.useRef(null),j=z.useRef(null),I=()=>{hO().then(J=>{$(J.data.data)}).catch(J=>{})},U=()=>{B.current&&(clearInterval(B.current),B.current=null)},Y=(J,we)=>{if(we==="reading")switch(J){case"easy":return 15;case"medium":return 25;case"hard":return 40}else switch(J){case"easy":return 45;case"medium":return 60;case"hard":return 90}},O=()=>{U();const J=nCe.filter(he=>he.difficulty===n),we=Math.floor(Math.random()*J.length),xe=J[we];l(xe),c(""),m(!1),x(!1),T(null),A(!1),P(!1),V.current=Date.now();const Pe=Y(n,"reading");f(Pe),p(Pe),r("reading"),B.current=setInterval(()=>{f(he=>he<=1?(U(),ie(),0):he-1)},1e3)},H=()=>{U(),ie()},ie=()=>{r("writing");const J=Y(n,"writing");f(J),p(J),setTimeout(()=>{var we;(we=j.current)==null||we.focus()},100),B.current=setInterval(()=>{f(we=>we<=1?(U(),oe(ee.current),0):we-1)},1e3)},ee=z.useRef(u);z.useEffect(()=>{ee.current=u},[u]);const se=()=>{U(),P(!1),i==="challenge"&&s&&ev({contentId:s.id,contentType:"challenge",action:"recite",reciteCount:1,durationSeconds:Math.round((Date.now()-V.current)/1e3),scoreDelta:-1,useShield:!1}).then(()=>{I()}),r("idle")},oe=J=>{U();const we=J!==void 0?J:ee.current;if(!s)return;const xe=iCe(s.content,we),Pe=eD(s.content).length,he=xe.filter(bt=>bt.type==="match").length;let je=Pe>0?Math.round(he/Pe*100):0;g&&(je=Math.max(0,je-10)),_(je),S(xe),r("result");const ne=Math.round((Date.now()-V.current)/1e3);let De=0;i==="challenge"&&(je===100?De=2:je>=80?De=1:De=-1),T(De);const gt=((M==null?void 0:M.challengeShields)??0)>0,dt=De<0&>ev({contentId:s.id,contentType:"challenge",action:"recite",reciteCount:1,durationSeconds:ne,scoreDelta:De,useShield:dt}).then(()=>{dt&&A(!0),I()}).catch(bt=>{})},be=J=>J===100?{title:"å®ç¾å¤å»",desc:"å¦ç¬çè±ï¼ä¸åä¸å·®ï¼æ¨çç¬æ¶è¯ææå
¶å¼ºå¤§ã",color:"text-emerald-500 border-emerald-500/20 bg-emerald-500/5 dark:text-emerald-400",icon:nn}:J>=80?{title:"æåè¿å
³",desc:"è½æäºè®¸åºå
¥ï¼ä½å·²å¾å
¶ç¥é«ï¼é¡ºå©éè¿èæ ¸ï¼",color:"text-violet-600 border-violet-500/20 bg-violet-500/5 dark:text-violet-400",icon:gr}:J>=60?{title:"ç¥ç¥ä¸äº",desc:"å·²è§éª¨æ¶ä¸ä¸»å¹²ï¼ç»§ç»å æ²¹ï¼ç»èè®°å¿ä¼è¶æ¥è¶ç²¾åï¼",color:"text-amber-600 border-amber-500/20 bg-amber-500/5 dark:text-amber-400",icon:mee}:{title:"忥åå",desc:"æå妿²ï¼æ¼äºæç¼ãå«ç°å¿ï¼æ¢ä¸ªç®å段è½å¤å ç»ä¹ ï¼",color:"text-rose-600 border-rose-500/20 bg-rose-500/5 dark:text-rose-400",icon:fxe},me=()=>{i!=="challenge"&&(m(!0),x(!0))};z.useEffect(()=>(I(),()=>U()),[]);const Z=Kne((M==null?void 0:M.challengeScore)??0);return w("div",{className:"space-y-6 max-w-4xl mx-auto relative",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[w("div",{className:"flex items-center gap-3",children:[t!=="idle"&&y("button",{onClick:()=>{i==="challenge"&&(t==="reading"||t==="writing")?P(!0):(U(),r("idle"))},className:"p-2 rounded-xl text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y(P$,{size:20})}),w("div",{children:[w("h1",{className:"text-2xl font-black text-slate-100 flex items-center gap-2",children:[y(jw,{className:"text-violet-500 animate-pulse"}),"è¿ç®æè¯µ"]}),y("p",{className:"text-sm text-slate-500 dark:text-slate-400 mt-1",children:"è¯æç¬æ¶çåè®ç» ââ 强å¶å¤§èç¬æ¶è®°å¿ï¼éå¡è¾åºç´è§"})]})]}),t==="idle"&&w("div",{className:"flex items-center gap-2.5 shrink-0",children:[w("button",{onClick:()=>R(!0),className:"flex items-center gap-1.5 px-3.5 py-2 border border-slate-700 dark:border-slate-800 text-violet-600 dar
558k:text-violet-400 hover:bg-violet-50 dark:hover:bg-slate-800/60 text-xs font-bold rounded-xl transition-all shadow-sm",children:[y(Yn,{size:14,className:"text-violet-500"}),"ç©æ³è¯´æ"]}),w(Mn,{to:"/leaderboard?tab=instant",className:"flex items-center gap-1.5 px-3.5 py-2 border border-slate-700 dark:border-slate-800 text-amber-500 dark:text-amber-400 hover:bg-amber-50 dark:hover:bg-slate-800/60 text-xs font-bold rounded-xl transition-all shadow-sm",children:[y(Uo,{size:14,className:"text-amber-500"}),"è¿ç®æè¯µæ¦"]})]}),t!=="idle"&&w("div",{className:"flex items-center gap-3",children:[w("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full border border-slate-200 dark:border-slate-800 bg-slate-100/40 dark:bg-slate-950/40 text-xs",children:[i==="challenge"?y(v1,{size:12,className:"text-rose-500"}):y(b0,{size:12,className:"text-emerald-500"}),y("span",{className:"text-slate-600 dark:text-slate-400 font-semibold",children:i==="challenge"?"é¯å
³æ¨¡å¼":"ç»ä¹ 模å¼"})]}),y("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full border border-slate-200 dark:border-slate-800 bg-slate-100/40 dark:bg-slate-950/40 text-xs",children:w("span",{className:"text-slate-600 dark:text-slate-400 font-medium",children:["é¾åº¦ï¼",n==="easy"?"å¾®å
(ç®å)":n==="medium"?"å¾®é£ (ä¸ç)":"æé· (å°é¾)"]})})]})]}),t==="idle"&&w("div",{className:"space-y-6 animate-fade-in",children:[w("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-4",children:[w("div",{className:"glass-panel p-4 rounded-2xl border border-slate-200 dark:border-slate-800/40 flex items-center gap-3",children:[y("div",{className:"p-2.5 rounded-xl bg-violet-500/10 text-violet-500",children:y(jw,{size:20})}),w("div",{children:[y("div",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider",children:"仿¥ææ"}),w("div",{className:"text-xl font-bold font-mono text-slate-900 dark:text-slate-100",children:[(M==null?void 0:M.todayChallenges)??0," 次"]})]})]}),w("div",{className:"glass-panel p-4 rounded-2xl border border-slate-200 dark:border-slate-800/40 flex items-center gap-3",children:[y("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-500",children:y(ZT,{size:20})}),w("div",{children:[y("div",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider",children:"仿¥ç¨æ¶"}),w("div",{className:"text-xl font-bold font-mono text-slate-900 dark:text-slate-100",children:[M!=null&&M.todayChallengeSeconds?Math.round(M.todayChallengeSeconds/60)||1:0," åé"]})]})]}),w("div",{className:"glass-panel p-4 rounded-2xl border border-slate-200 dark:border-slate-800/40 flex items-center gap-3",children:[y("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-500",children:y(Uo,{size:20})}),w("div",{children:[y("div",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider",children:"累计ææ"}),w("div",{className:"text-xl font-bold font-mono text-slate-900 dark:text-slate-100",children:[(M==null?void 0:M.totalChallenges)??0," 次"]})]})]}),w("div",{className:"glass-panel p-4 rounded-2xl border border-slate-200 dark:border-slate-800/40 flex items-center gap-3 col-span-1",children:[y("div",{className:"p-2.5 rounded-xl bg-amber-500/10 text-amber-500",children:y(Uo,{size:20})}),w("div",{className:"flex-1 text-left",children:[w("div",{className:"flex items-center justify-between",children:[y("div",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider",children:"å½å积å"}),y("span",{className:`px-1.5 py-0.2 text-[9px] font-bold rounded border ${Z.color} ${Z.bgColor} ${Z.borderColor}`,children:Z.name})]}),w("div",{className:"text-xl font-bold font-mono text-slate-900 dark:text-slate-100",children:[(M==null?void 0:M.challengeScore)??0," å"]})]})]}),w("div",{className:"glass-panel p-4 rounded-2xl border border-slate-200 dark:border-slate-800/40 flex items-center gap-3",children:[y("div",{className:"p-2.5 rounded-xl bg-rose-500/10 text-rose-500",children:y(b0,{size:20})}),w("div",{className:"text-left",children:[y("div",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider",children:"å©ä½æ¤ç¾"}),w("div",{className:"text-xl font-bold font-mono text-slate-900 dark:text-slate-100 flex items-center gap-1.5",children:[(M==null?void 0:M.challengeShields)??0,y("span",{className:"text-[10px] text-slate-400 font-normal normal-case",children:"(è¿å¦7天+1)"})]})]})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[w("div",{className:"md:col-span-2 glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-6 flex flex-col justify-between",children:[w("div",{className:"space-y-5",children:[w("div",{className:"flex items-center justify-between border-b border-slate-200 dark:border-slate-800/20 pb-4",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider up
558percase flex items-center gap-1.5",children:[y(gr,{size:12}),"è¯ç¼æ³åä¸è®¾ç½®"]}),w("div",{className:"flex items-center gap-2 bg-slate-100 dark:bg-slate-950 p-0.5 rounded-xl border border-slate-200 dark:border-slate-800",children:[w("button",{onClick:()=>o("challenge"),className:`flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all ${i==="challenge"?"bg-rose-500 text-white shadow-md":"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(v1,{size:12}),"é¯å
³æ¨¡å¼"]}),w("button",{onClick:()=>o("practice"),className:`flex items-center gap-1 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all ${i==="practice"?"bg-emerald-500 text-white shadow-md":"text-slate-500 dark:text-slate-400 hover:text-slate-700"}`,children:[y(nF,{size:12}),"ç»ä¹ 模å¼"]})]})]}),y("div",{className:"space-y-3.5 text-xs text-slate-700 dark:text-slate-300 leading-relaxed bg-slate-50/50 dark:bg-slate-950/20 p-4 rounded-xl border border-slate-200/50 dark:border-slate-800/30 text-left",children:i==="challenge"?w(Rt,{children:[w("p",{className:"font-semibold text-rose-500 flex items-center gap-1 text-[11px] mb-2",children:[y(v1,{size:12})," é¯å
³æ³åï¼"]}),w("ul",{className:"space-y-2 list-disc list-inside",children:[w("li",{children:[y("b",{children:"ç¸ä¼¼åº¦è¾¾ 100%"}),"ï¼é¢å¤å¥å±ï¼å®ç¾è¿å
³å¹¶è·å¾ ",y("b",{className:"text-emerald-500",children:"+2 积å"})]}),w("li",{children:[y("b",{children:"ç¸ä¼¼åº¦è¾¾ 80%~99%"}),"ï¼é¡ºå©éå
³ï¼è·å¾ ",y("b",{className:"text-emerald-500",children:"+1 积å"})]}),w("li",{children:[y("b",{children:"ç¸ä¼¼åº¦ä½äº 80%"}),"ï¼é¯å
³å¤±è´¥ï¼æ£é¤ ",y("b",{className:"text-rose-500",children:"-1 积å"}),"ï¼è¥ææ¤ç¾ä¼èªå¨æ¶èæµæ£ï¼å
äºæ£åï¼"]}),w("li",{children:[y("b",{children:"ä¸éæ¾å¼ / ç´æ¥éåº"}),"ï¼ä¸¥åæ£é¤ ",y("b",{className:"text-rose-500",children:"-1 积å"}),"䏿¤ç¾å¤±æ"]}),w("li",{children:[y("span",{className:"text-amber-500 font-medium",children:"注æ"}),"ï¼é¯å
³æ¨¡å¼ä¸",y("b",{children:"æ æ³ä½¿ç¨æµ®ç°çº¿ç´¢æç¤º"})]})]})]}):w(Rt,{children:[w("p",{className:"font-semibold text-emerald-500 flex items-center gap-1 text-[11px] mb-2",children:[y(nF,{size:12})," ç»ä¹ æ³åï¼"]}),w("ul",{className:"space-y-2 list-disc list-inside",children:[w("li",{children:["ç»ä¹ 模å¼ä¸ï¼å¯ä»¥å°½æ
çæè¯å¥ï¼",y("b",{children:"ä¸è®¡ç§¯åã䏿£ç§¯å"})]}),y("li",{children:"å®ç¾éè¿æå¤±è´¥åä¸ä¼æ¹åæ¨ç段ä½ä¸ç§¯å"}),w("li",{children:[y("b",{children:"å
许使ç¨çº¿ç´¢æç¤ºåè½"}),"ï¼ä¸ééåºæ 任使©ç½"]})]})]})}),w("div",{className:"pt-2 text-left",children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400 mb-3",children:"éæ©æ¬æ¬¡ææé¾åº¦"}),y("div",{className:"grid grid-cols-3 gap-3",children:["easy","medium","hard"].map(J=>w("button",{onClick:()=>a(J),className:`px-4 py-3 rounded-xl border text-left transition-all ${n===J?"border-primary bg-primary/10 text-primary dark:text-white font-bold":"border-slate-200 dark:border-slate-800 bg-slate-50/50 dark:bg-slate-950/40 text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200 hover:border-slate-300 dark:hover:border-slate-700"}`,children:[y("div",{className:"text-xs font-bold",children:J==="easy"?"å¾®å
(ç®å)":J==="medium"?"å¾®é£ (ä¸ç)":"æé· (å°é¾)"}),y("div",{className:"text-[10px] text-slate-400 dark:text-slate-500 mt-1",children:J==="easy"?"约 10~15 å":J==="medium"?"约 20~30 å":"约 40~60 å"})]},J))})]})]}),w("button",{onClick:O,className:`w-full mt-6 flex items-center justify-center gap-2 py-3 text-white font-bold rounded-xl transition-all hover:scale-[1.01] active:scale-[0.99] ${i==="challenge"?"bg-rose-600 hover:bg-rose-700 shadow-md shadow-rose-600/10":"bg-emerald-600 hover:bg-emerald-700 shadow-md shadow-emerald-600/10"}`,children:[y(kee,{size:16,fill:"white"}),"å¼å¯ç¬æ¶ææ (",i==="challenge"?"é¯å
³æ¨¡å¼":"ç»ä¹ 模å¼",")"]})]}),w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-6 flex flex-col justify-between text-left bg-slate-900",children:[w("div",{className:"space-y-4",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider up
558percase flex items-center gap-1.5",children:[y(Xs,{size:12}),"è¯æå
ååç"]}),w("div",{className:"space-y-4 text-xs text-slate-600 dark:text-slate-400 leading-relaxed",children:[w("p",{children:["大èå¨é
读æ¶é常ä¼å¼å¯",y("b",{children:"âç¬æ¶è¯è¨ç¼å²åºâ"}),"ãæ®éçæè¯»æèè¯µå®¹ææµäºå½¢å¼ï¼è",y("b",{children:"â强å¶ç¬æ¶æåâ"}),"è½å¼ºè¿«å¤§èç®å±è¿è¡æ·±åº¦å¥æ³è§£ç ã"]}),w("p",{children:["é¢ç¹è®ç»å¯ç¼©çä»",y("b",{children:"âææâ"}),"å°",y("b",{children:"âæè¯´â"}),"çç¥ç»æ£ç´¢è·¯å¾ãè¿ä¸ä»
æ¯å¨è®ç»è®°å¿ï¼æ´æ¯å¨å¹å
»æ¨å¨æ¥å¸¸æ²éä¸ï¼å¯¹ä¼è´¨æé£ãå¥å¼ç»æç",y("b",{children:"ç¬æ¶è¾åºç´è§"}),"ã"]})]})]}),w("div",{className:"border-t border-slate-200 dark:border-slate-800/20 pt-4 space-y-2.5",children:[y("div",{className:"text-[10px] text-slate-400 dark:text-slate-500 uppercase tracking-wider font-bold",children:"å¦ä»¥è´ç¨"}),w("ul",{className:"text-xs text-slate-600 dark:text-slate-400 space-y-1.5 list-disc list-inside",children:[y("li",{children:"é
读æ¶ç¬æ¶æææ ¸å¿æ°æ®"}),y("li",{children:"ä¼è®®ä¸ç¬é´æåå¹¶å¤ç°è¦ç¹"}),y("li",{children:"å使¶çµå¨è°åç»å
¸è¡¨è¾¾"})]})]})]})]})]}),t==="reading"&&s&&w("div",{className:"glass-panel p-8 md:p-12 rounded-3xl border border-slate-200 dark:border-slate-800/40 space-y-8 flex flex-col items-center justify-center min-h-[300px] text-center relative overflow-hidden",children:[y("div",{className:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to bottom right, rgba(139,92,246,0.05), transparent, transparent)"}}),w("div",{className:"flex items-center gap-2 text-violet-600 dark:text-violet-400 bg-violet-500/10 px-4 py-2 rounded-full border border-violet-500/20",children:[y(ZT,{size:16}),w("span",{className:"text-sm font-black font-mono",children:["é
读å计æ¶ï¼",d," ç§"]})]}),w("div",{className:"space-y-4 max-w-2xl pt-4",children:[y("p",{className:"text-2xl md:text-3xl font-medium text-slate-100 leading-relaxed tracking-wide select-none",children:s.content}),w("p",{className:"text-sm text-slate-400 italic select-none",children:["â ",s.source]})]}),y("div",{className:"w-full max-w-md h-1.5 bg-slate-200 dark:bg-slate-950 rounded-full overflow-hidden",children:y("div",{className:"h-full bg-violet-500 transition-all duration-1000 ease-linear",style:{width:`${d/h*100}%`}})}),w("button",{onClick:H,className:"flex items-center gap-1.5 px-4 py-2 border border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 text-xs font-semibold rounded-xl transition-all",children:["æè®°å¥½äºï¼ç´æ¥é»å",y(es,{size:14})]})]}),t==="writing"&&s&&w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-6",children:[w("div",{className:"flex items-center justify-between border-b border-slate-200 dark:border-slate-800/20 pb-4",children:[w("div",{className:"flex items-center gap-2 text-indigo-600 dark:text-indigo-400 bg-indigo-500/10 px-3 py-1.5 rounded-full border border-indigo-500/20",children:[y(ZT,{size:14}),w("span",{className:"text-xs font-bold font-mono",children:["å¤å»éæ¶ï¼",d," ç§"]})]}),i==="practice"?w("button",{onClick:me,disabled:v,className:`flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-semibold transition-all ${v?"border border-slate-200 dark:border-slate-800 bg-slate-100/20 dark:bg-slate-900/20 text-slate-400 dark:text-slate-500 cursor-not-allowed":"border border-amber-500/20 bg-amber-500/5 text-amber-600 dark:text-amber-400 hover:bg-amber-500/10"}`,children:[y(Xs,{size:14}),"æµ®ç°çº¿ç´¢ (-10% å)"]}):w("span",{className:"text-[10px] text-rose-500/85 bg-rose-500/5 border border-rose-500/10 px-3 py-1.5 rounded-xl font-bold uppercase tracking-wider inline-flex items-center gap-1",children:[y(b0,{size:12}),y("span",{children:"é¯å
³ä¸ç¦ç¨æç¤º"})]})]}),v&&w("div",{className:"p-4 rounded-xl bg-amber-500/5 border border-amber-500/10 space-y-1.5 animate-fade-in text-left",children:[y("span",{className:"text-[10px] text-amber-600 dar
558k:text-amber-400 uppercase tracking-widest font-bold",children:"å¤å»çº¿ç´¢"}),y("p",{className:"text-sm font-mono text-slate-700 dark:text-slate-300 tracking-widest font-semibold",children:aCe(s.content)})]}),w("div",{className:"space-y-2 text-left",children:[y("label",{className:"block text-xs font-semibold text-slate-500 dark:text-slate-400",children:"请åè®°å¿å®æ´é»åå¥åï¼æ ç¹ç¬¦å·å¯ä»¥éæè¾å
¥ï¼ï¼"}),y("textarea",{ref:j,value:u,onChange:J=>c(J.target.value),className:"w-full px-5 py-4 rounded-2xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 text-slate-900 dark:text-slate-100 placeholder-slate-400 dark:placeholder-slate-700 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/50 text-lg min-h-[120px] transition-all leading-relaxed",placeholder:"å¨è¿éè¾å
¥æ¨åæè®°ä½çå
容...",onKeyDown:J=>{J.key==="Enter"&&!J.shiftKey&&(J.preventDefault(),oe())}})]}),w("div",{className:"flex justify-between items-center pt-2",children:[w("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:["æ ",y("kbd",{className:"px-1.5 py-0.5 rounded bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 text-[10px] font-mono text-slate-500 dark:text-slate-400",children:"Enter"})," å¿«éæäº¤"]}),y("button",{onClick:()=>oe(),className:"px-6 py-2.5 bg-primary text-white rounded-xl text-xs font-semibold hover:bg-primary-dark shadow-lg shadow-primary/20 hover:scale-[1.01] active:scale-[0.99] transition-all",children:"æäº¤å¤å»"})]})]}),t==="result"&&s&&w("div",{className:"space-y-6 animate-fade-in text-left",children:[(()=>{const J=be(b);return w("div",{className:"glass-panel p-8 rounded-2xl border border-slate-200 dark:border-slate-800/40 relative overflow-hidden flex flex-col md:flex-row items-center md:items-stretch gap-6",children:[w("div",{className:"flex-shrink-0 w-32 h-32 rounded-full border-4 border-slate-200 dark:border-slate-800 bg-slate-50 dark:bg-slate-950 flex flex-col items-center justify-center relative",children:[w("span",{className:"text-3xl font-black text-slate-950 dark:text-white font-mono",children:[b,"%"]}),y("span",{className:"text-[10px] text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider mt-0.5",children:"ç¸ä¼¼åº¦"})]}),w("div",{className:"flex-grow flex flex-col justify-between text-center md:text-left space-y-4",children:[w("div",{className:"space-y-2",children:[w("div",{className:"flex flex-col md:flex-row items-center gap-2",children:[w("span",{className:`px-3 py-1 rounded-full border text-xs font-black tracking-wider flex items-center gap-1 ${J.color}`,children:[y(J.icon,{size:12}),J.title]}),g&&y("span",{className:"px-2.5 py-0.5 rounded-full border border-amber-500/20 bg-amber-500/5 text-amber-500 dark:text-amber-400 text-[10px] font-semibold",children:"已使ç¨çº¿ç´¢ï¼å·²æ£é¤ 10% åï¼"}),i==="challenge"&&C!==null&&w("div",{className:"flex flex-wrap items-center gap-1.5",children:[C>0?w("span",{className:"px-2.5 py-0.5 rounded-full border border-emerald-500/20 bg-emerald-500/5 text-emerald-500 dark:text-emerald-400 text-[10px] font-extrabold flex items-center gap-0.5",children:["积å +",C]}):E?w("span",{className:"px-2.5 py-0.5 rounded-full border border-blue-500/20 bg-blue-500/5 text-blue-500 dark:text-blue-400 text-[10px] font-extrabold inline-flex items-center gap-1",children:[y(b0,{size:10}),y("span",{children:"æ¤ç¾å·²æµæ¶æ£å"})]}):w("span",{className:"px-2.5 py-0.5 rounded-full border border-rose-500/20 bg-rose-500/5 text-rose-500 dark:text-rose-400 text-[10px] font-extrabold flex items-center gap-0.5 animate-pulse",children:["积å ",C]}),w("span",{className:"text-[10px] text-slate-400 font-medium",children:["(å½åæ»ç§¯å: ",(M==null?void 0:M.challengeScore)??0," å)"]})]}),i==="practice"&&y("span",{className:"px-2.5 py-0.5 rounded-full border border-slate-200 dark:border-slate-800 bg-slate-100/40 dark:bg-slate-950/40 text-slate-500 dark:text-slate-400 text-[10px] font-semibold",children:"ç»ä¹ 模å¼ä¸è®¡å"})]}),y("p",{className:"text-slate-900 dark:text-slate-100 text-lg font-medium",children:J.desc})]}),w("div",{className:"flex flex-wrap gap-3 justify-center md:justify-start",children:[w("button",{onClick:O,className:"flex items-center gap-1.5 px-5 py-2 bg-violet-600 text-white text-xs font-bold rounded-xl hover:bg-violet-750 shadow-md shadow-violet-600/10 transition-all",children:[y(Zo,{size:14}),"忥䏿¬¡"]}),y("button",{onClick:()=>r("idle"),className:"flex items-center gap-1.5 px-5 py-2 border border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-100 dar
558k:hover:bg-slate-800 text-xs font-semibold rounded-xl transition-all",children:"é¾åº¦ä¸è¯´æ"})]})]})]})})(),w("div",{className:"glass-panel p-6 rounded-2xl border border-slate-200 dark:border-slate-800/40 space-y-6",children:[w("span",{className:"text-xs text-primary font-bold tracking-wider uppercase flex items-center gap-1.5 border-b border-slate-200 dark:border-slate-800/20 pb-3",children:[y(Uo,{size:12}),"å¤å»æ¯å¯¹ç»è"]}),w("div",{className:"space-y-6 text-left",children:[w("div",{className:"space-y-2",children:[y("span",{className:"text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-widest block",children:"åå¥å¯¹ç
§ï¼"}),y("div",{className:"p-4 rounded-xl bg-slate-100/40 dark:bg-slate-950/40 border border-slate-200 dark:border-slate-900 text-slate-700 dark:text-slate-300 leading-relaxed select-none",children:s.content})]}),w("div",{className:"space-y-2",children:[y("span",{className:"text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-widest block",children:"æ¨çé»åï¼"}),y("div",{className:"p-4 rounded-xl bg-slate-100/40 dark:bg-slate-950/40 border border-slate-200 dark:border-slate-900 text-slate-700 dark:text-slate-300 leading-relaxed min-h-[50px]",children:u.trim()||y("span",{className:"text-slate-400 dark:text-slate-600 italic",children:"空è¾å
¥"})})]}),w("div",{className:"space-y-2 pt-2 border-t border-slate-200 dark:border-slate-800/10",children:[w("div",{className:"flex items-center justify-between",children:[y("span",{className:"text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-widest",children:"æåå¹é
å¯è§ååæï¼"}),w("div",{className:"flex gap-3 text-[10px]",children:[w("span",{className:"flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[y("span",{className:"w-2.5 h-2.5 rounded bg-emerald-500/20 border border-emerald-500/30"}),"å®å
¨å¹é
"]}),w("span",{className:"flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[y("span",{className:"w-2.5 h-2.5 rounded bg-rose-500/20 border border-rose-500/30"}),"è¾å
¥é误/å¤ä½"]}),w("span",{className:"flex items-center gap-1 text-slate-500 dark:text-slate-400",children:[y("span",{className:"w-2.5 h-2.5 rounded bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700"}),"缺失å符"]})]})]}),y("div",{className:"p-5 rounded-xl bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-900 flex flex-wrap gap-1 leading-relaxed text-lg font-medium min-h-[60px]",children:k.length===0?y("span",{className:"text-slate-400 dark:text-slate-600 italic text-sm",children:"æ å¯ç¨æ¯å¯¹ç»æ"}):k.map((J,we)=>J.type==="match"?y("span",{className:"px-1.5 py-0.5 rounded bg-emerald-500/10 border border-emerald-500/20 text-emerald-600 dark:text-emerald-400 text-base font-bold animate-pulse",children:J.char},we):J.type==="insert"?y("span",{className:"px-1.5 py-0.5 rounded bg-rose-500/10 border border-rose-500/20 text-rose-600 dar
558k:text-rose-400 text-base line-through",title:"æ¤å¤è¾å
¥äºé误/å¤ä½å符",children:J.char},we):y("span",{className:"px-1.5 py-0.5 rounded bg-slate-200 dark:bg-slate-800 border border-slate-300 dark:border-slate-700 text-slate-400 dark:text-slate-500 text-base",title:"æ¤å¤æ¼æäºè¿ä¸ªå符",children:J.char},we))})]})]})]})]}),N&&y("div",{className:"fixed inset-0 bg-slate-950/60 backdrop-blur-sm z-50 flex items-center justify-center p-4",children:w("div",{className:"bg-slate-900 border border-slate-800 rounded-3xl p-6 max-w-md w-full shadow-2xl space-y-6 animate-fade-in text-center",children:[y("div",{className:"mx-auto w-12 h-12 rounded-2xl bg-rose-500/10 text-rose-500 flex items-center justify-center",children:y(yee,{size:24})}),w("div",{className:"space-y-2",children:[y("h3",{className:"text-lg font-black text-slate-100",children:"确认强è¡éåºææï¼"}),w("p",{className:"text-sm text-slate-400 leading-relaxed",children:["å½å为",w("span",{className:"text-rose-500 font-semibold inline-flex items-center gap-0.5",children:[y(v1,{size:12,className:"mr-0.5"}),"é¯å
³æ¨¡å¼"]}),"ãä¸ééåºå°è¢«ä¸¥åå¤å®ä¸ºæ¾å¼ï¼æ£é¤ ",y("span",{className:"text-rose-500 font-bold",children:"-1 积å"})," ä¸",y("b",{children:"æ¤ç¾æ æ³æµæ£"}),"ã"]})]}),w("div",{className:"flex gap-3",children:[y("button",{onClick:()=>P(!1),className:"flex-1 py-2.5 rounded-xl border border-slate-800 text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-colors text-xs font-semibold",children:"ç»§ç»ææ"}),y("button",{onClick:se,className:"flex-1 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-700 text-white shadow-md shadow-rose-600/10 transition-colors text-xs font-semibold",children:"ç å¿éåºå¹¶æ£å"})]})]})}),L&&Fr.createPortal(y("div",{className:"fixed inset-0 z-[110] flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm",children:w("div",{className:`w-full max-w-[560px] max-h-[85vh] rounded-2xl shadow-2xl flex flex-col overflow-hidden border ${e?"bg-slate-900 text-slate-100 border-slate-800":"bg-white text-slate-900 border-slate-200"}`,children:[w("div",{className:`p-5 md:p-6 border-b relative shrink-0 ${e?"bg-slate-900 border-slate-800":"bg-white border-slate-150"}`,children:[y("button",{onClick:()=>R(!1),className:`absolute top-4 right-4 p-2 rounded-lg transition-colors ${e?"text-slate-400 hover:text-slate-200 hover:bg-slate-800":"text-slate-400 hover:text-slate-700 hover:bg-slate-100"}`,children:y(Tt,{size:20})}),w("h3",{className:`text-base md:text-lg font-extrabold flex items-center gap-2 ${e?"text-white":"text-slate-900"}`,children:[y(jw,{className:"text-violet-500",size:20}),"è¿ç®æè¯µ · ç©æ³ä¸è§å说æ"]}),y("p",{className:`text-xs mt-1.5 leading-relaxed ${e?"text-slate-400":"text-slate-600"}`,children:"éè¿âéæ¶åºå£°è¯è®° + è±æºåè®°å¿å¤çâï¼å¼ºçåºæ¿å¤§èå·¥ä½è®°å¿ä¸å³å
´è¯è¨è°åè½åï¼"})]}),w("div",{className:"overflow-y-auto p-5 md:p-6 space-y-4",children:[w("div",{className:"space-y-3",children:[y("h4",{className:`text-xs font-bold uppercase tracking-wider ${e?"text-violet-400":"text-violet-700"}`,children:"ð¯ æ ¸å¿è®ç»ä¸¤æ¥æ³"}),w("div",{className:`p-3.5 rounded-xl border space-y-1.5 ${e?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[10px] font-extrabold text-white bg-violet-600 rounded px-2 py-0.5",children:"æ¥éª¤ 1"}),y("span",{className:`text-xs font-bold ${e?"text-slate-100":"text-slate-900"}`,children:"ãéæ¶è¯è®°ãå¿«éæè¯»ä¸è®°å¿"})]}),w("p",{className:`text-xs leading-relaxed ${e?"text-slate-300":"text-slate-600"}`,children:["ç³»ç»éæºç»åºä¸æ®µç»å
¸é奿ä¼ç¾æ®µè½ãä½ éè¦å©ç¨é宿¶é´ï¼",y("strong",{children:"15 ç§ ~ 40 ç§"}),"ï¼åºå£°æè¯»ï¼æä½å
³é®éª¨æ¶ä¸é»è¾å¥å¼ï¼å¿«éå°å
¶å°å¨èæµ·ä¸ã"]})]}),w("div",{className:`p-3.5 rounded-xl border space-y-1.5 ${e?"bg-slate-800/60 border-slate-700":"bg-slate-50 border-slate-200"}`,children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-[10px] font-extrabold text-white bg-violet-600 rounded px-2 py-0.5",children:"æ¥éª¤ 2"}),y("span",{className:`text-xs font-bold ${e?"text-slate-100":"text-slate-900"}`,children:"ãè±æºå¤çãéååè®°å¿å¤è¿°"})]}),w("p",{className:`text-xs leading-relaxed ${e?"text-slate-300":"text-slate-600"}`,children:["è¯è®°å计æ¶ç»æåï¼ææåç¹å»è·³è¿ï¼ï¼åæå°èªå¨æ©çãä½ éè¦å©ç¨å
è£çå¤çæ¶é´ï¼",y("strong",{children:"45 ç§ ~ 90 ç§"}),"ï¼åç¬æ¶è®°å¿æåæå¤è¿°è¾åºãç³»ç»å°ç²¾åæ¯å¯¹å¹é
度并ç»ç®æç»©ä¸æ®µä½ï¼"]}
558)]})]}),w("div",{className:"space-y-2 pt-1 border-t border-slate-200 dark:border-slate-800",children:[y("h4",{className:`text-xs font-bold uppercase tracking-wider ${e?"text-slate-400":"text-slate-600"}`,children:"â±ï¸ ç§å¦æ¶é´ä¸é¾åº¦é
置说æ"}),w("div",{className:`rounded-xl border overflow-hidden text-xs ${e?"border-slate-800 bg-slate-950/40":"border-slate-200 bg-slate-50"}`,children:[w("div",{className:`grid grid-cols-3 p-2.5 font-bold border-b text-[11px] ${e?"bg-slate-800/80 border-slate-700 text-slate-300":"bg-slate-100 border-slate-200 text-slate-700"}`,children:[y("div",{children:"é¾åº¦ç级"}),y("div",{children:"è¯è®°è®°å¿æ¶é´"}),y("div",{children:"è±æºå¤çæ¶é´"})]}),w("div",{className:`grid grid-cols-3 p-2.5 border-b ${e?"border-slate-800/60 text-slate-300":"border-slate-150 text-slate-600"}`,children:[y("div",{className:"font-semibold text-emerald-600 dark:text-emerald-400",children:"å¾®å
(ç®å/çå¥)"}),y("div",{children:"15 ç§"}),y("div",{children:"45 ç§"})]}),w("div",{className:`grid grid-cols-3 p-2.5 border-b ${e?"border-slate-800/60 text-slate-300":"border-slate-150 text-slate-600"}`,children:[y("div",{className:"font-semibold text-blue-600 dark:text-blue-400",children:"å¾®é£ (ä¸ç/ä¸å¥)"}),y("div",{children:"25 ç§"}),y("div",{children:"60 ç§"})]}),w("div",{className:`grid grid-cols-3 p-2.5 ${e?"text-slate-300":"text-slate-600"}`,children:[y("div",{className:"font-semibold text-purple-600 dark:text-purple-400",children:"æé· (å°é¾/段è½)"}),y("div",{children:"40 ç§"}),y("div",{children:"90 ç§"})]})]})]}),y("div",{className:"pt-2",children:y("button",{onClick:()=>R(!1),className:"w-full py-2.5 rounded-xl bg-violet-600 hover:bg-violet-700 text-white font-semibold text-xs shadow-md transition-all",children:"æäºï¼è¿å°±å»ææï¼"})})]})]})}),document.body)]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sj({userId:e,avatarUrl:t,nickname:r,className:n="w-10 h-10 rounded-xl",textClassName:a="text-sm font-black"}){let i=t;if(!i&&e&&(i=localStorage.getItem(`user_avatar_${e}`)),!i){const s=localStorage.getItem("user_avatar_default");s&&(i=s)}const o=r&&r.trim()?r.trim().charAt(0).toUpperCase():"?";return i&&i.trim()?y("img",{src:i,alt:r||"ç¨æ·å¤´å",className:`${n} object-cover border border-violet-400/30 shadow-sm shrink-0`,onError:s=>{s.currentTarget.style.display="none"}}):y("div",{className:`${n} bg-indigo-50 dark:bg-indigo-950/60 border border-indigo-200 dark:border-indigo-800 text-indigo-600 dark:text-indigo-400 flex items-center justify-center shadow-sm shrink-0 ${a}`,children:o})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function lm({realm:e,size:t=36,className:r=""}){return y("div",{className:"inline-flex items-center justify-center flex-shrink-0",children:(()=>{switch(e){case"lianqi":return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"lq-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#34D399"}),y("stop",{offset:"50%",stopColor:"#059669"}),y("stop",{offset:"100%",stopColor:"#064E3B"})]}),w("linearGradient",{id:"lq-gold",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FDE047"}),y("stop",{offset:"100%",stopColor:"#D97706"})]}),w("linearGradient",{id:"lq-blade",x1:"50",y1:"15",x2:"50",y2:"85",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#ECFDF5"}),y("stop",{offset:"60%",stopColor:"#A7F3D0"}),y("stop",{offset:"100%",stopColor:"#34D399"})]}),w("filter",{id:"lq-glow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:[y("feGaussianBlur",{stdDeviation:"3",result:"blur"}),y("feComposite",{in:"SourceGraphic",in2:"blur",operator:"over"})]})]}
558),y("circle",{cx:"50",cy:"50",r:"46",stroke:"url(#lq-bg)",strokeWidth:"3",opacity:"0.4",strokeDasharray:"6 4"}),y("circle",{cx:"50",cy:"50",r:"42",fill:"url(#lq-bg)",filter:"url(#lq-glow)",opacity:"0.2"}),y("path",{d:"M50 8L85 26V68L50 92L15 68V26L50 8Z",fill:"url(#lq-bg)",stroke:"url(#lq-gold)",strokeWidth:"3.5",strokeLinejoin:"round"}),y("path",{d:"M50 14L78 29V63L50 83L22 63V29L50 14Z",fill:"#042F2E",fillOpacity:"0.6",stroke:"#059669",strokeWidth:"1.5"}),y("path",{d:"M50 18L56 50L50 78L44 50L50 18Z",fill:"url(#lq-blade)"}),y("path",{d:"M50 18V78",stroke:"#FFFFFF",strokeWidth:"1.5",opacity:"0.8"}),y("path",{d:"M34 46H66",stroke:"url(#lq-gold)",strokeWidth:"3.5",strokeLinecap:"round"}),y("circle",{cx:"50",cy:"46",r:"4",fill:"#FEF08A"}),y("circle",{cx:"28",cy:"30",r:"2.5",fill:"#A7F3D0"}),y("circle",{cx:"72",cy:"30",r:"2.5",fill:"#A7F3D0"}),y("circle",{cx:"50",cy:"22",r:"3",fill:"#FFFFFF"})]});case"zhuji":return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"zj-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#38BDF8"}),y("stop",{offset:"50%",stopColor:"#0284C7"}),y("stop",{offset:"100%",stopColor:"#092540"})]}),w("linearGradient",{id:"zj-silver",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#F0F9FF"}),y("stop",{offset:"50%",stopColor:"#BAE6FD"}),y("stop",{offset:"100%",stopColor:"#38BDF8"})]})]}),y("circle",{cx:"50",cy:"50",r:"45",stroke:"#38BDF8",strokeWidth:"2",strokeDasharray:"8 6",opacity:"0.5"}),y("path",{d:"M32 8H68L92 32V68L68 92H32L8 68V32L32 8Z",fill:"url(#zj-bg)",stroke:"url(#zj-silver)",strokeWidth:"4",strokeLinejoin:"round"}),y("path",{d:"M35 15H65L85 35V65L65 85H35L15 65V35L35 15Z",fill:"#0C4A6E",fillOpacity:"0.7",stroke:"#0284C7",strokeWidth:"2"}),y("path",{d:"M50 25L70 45L50 65L30 45L50 25Z",fill:"url(#zj-silver)",opacity:"0.3"}),y("path",{d:"M50 28L65 50H35L50 28Z",fill:"url(#zj-silver)",opacity:"0.9"}),y("path",{d:"M50 72L35 50H65L50 72Z",fill:"#0284C7",opacity:"0.9"}),y("circle",{cx:"50",cy:"50",r:"7",fill:"#F0F9FF",stroke:"#0284C7",strokeWidth:"2"}),y("circle",{cx:"50",cy:"50",r:"3",fill:"#0284C7"})]});case"jindan":return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"jd-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FBBF24"}),y("stop",{offset:"50%",stopColor:"#D97706"}),y("stop",{offset:"100%",stopColor:"#451A03"})]}),w("radialGradient",{id:"jd-core",cx:"50%",cy:"50%",r:"50%",children:[y("stop",{offset:"0%",stopColor:"#FFFFFF"}),y("stop",{offset:"40%",stopColor:"#FEF08A"}),y("stop",{offset:"70%",stopColor:"#F59E0B"}),y("stop",{offset:"100%",stopColor:"#B45309"})]}),w("linearGradient",{id:"jd-goldTrim",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FFFBEB"}),y("stop",{offset:"100%",stopColor:"#F59E0B"})]})]}),y("circle",{cx:"50",cy:"50",r:"46",stroke:"url(#jd-goldTrim)",strokeWidth:"3",strokeDasharray:"12 4"}),y("circle",{cx:"50",cy:"50",r:"42",fill:"url(#jd-bg)"}),y("circle",{cx:"50",cy:"50",r:"36",fill:"#291D09",fillOpacity:"0.8",stroke:"url(#jd-goldTrim)",strokeWidth:"1.5"}),y("path",{d:"M22 55C22 55 30 78 50 78C70 78 78 55 78 55H22Z",fill:"url(#jd-bg)",stroke:"url(#jd-goldTrim)",strokeWidth:"2.5"}),y("path",{d:"M18 53H82V59H18V53Z",fill:"url(#jd-goldTrim)",rx:"2"}),y("circle",{cx:"50",cy:"38",r:"16",fill:"url(#jd-core)"}),y("circle",{cx:"50",cy:"38",r:"22",stroke:"url(#jd-goldTrim)",strokeWidth:"2",strokeDasharray:"4 4",opacity:"0.8"}),y("path",{d:"M50 10V18M50 58V66M22 38H30M70 38H78M30 18L36 24M64 52L70 58M70 18L64 24M36 52L30 58",stroke:"#FEF08A",strokeWidth:"2.5",strokeLinecap:"round"})]});case"yuanying":return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"yy-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#C084FC"}),y("stop",{offset:"50%",stopColor:"#7E22CE"}),y("stop",{offset:"100%",stopColor:"#2E1065"})]}),w("linearGradient",{id:"yy-crystal",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FAF5FF"}),y("stop",{offset:"50%",stopColor:"#E9D5FF"}),y("stop",{offset:"100%",stopColor:"#A855F7"})]})]}),y("circle",{cx:"50",cy:"50",r:"46",stroke:"#C084FC",strokeWidth:"2.5",strokeDasharray:"14 6",opacity:"0.6"}),y("rect",{x:"10",y:"10",width:"80",height:"80",rx:"24",fill:"url(#yy-bg)",stroke:"url
558(#yy-crystal)",strokeWidth:"3.5"}),y("path",{d:"M50 16L84 50L50 84L16 50L50 16Z",fill:"#3B0764",fillOpacity:"0.6",stroke:"url(#yy-crystal)",strokeWidth:"2"}),y("path",{d:"M50 24L76 50L50 76L24 50L50 24Z",fill:"url(#yy-bg)",opacity:"0.8"}),y("path",{d:"M50 20L55 40L75 45L55 50L50 70L45 50L25 45L45 40L50 20Z",fill:"url(#yy-crystal)"}),y("circle",{cx:"50",cy:"45",r:"7",fill:"#FFFFFF"}),y("circle",{cx:"50",cy:"45",r:"3",fill:"#7E22CE"})]});case"dujie":return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"dj-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#F43F5E"}),y("stop",{offset:"50%",stopColor:"#BE123C"}),y("stop",{offset:"100%",stopColor:"#4C0519"})]}),w("linearGradient",{id:"dj-gold",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FEF08A"}),y("stop",{offset:"100%",stopColor:"#F59E0B"})]})]}
558),y("circle",{cx:"50",cy:"50",r:"46",stroke:"#F43F5E",strokeWidth:"3",strokeDasharray:"8 4",opacity:"0.7"}),y("circle",{cx:"50",cy:"50",r:"42",fill:"url(#dj-bg)",stroke:"url(#dj-gold)",strokeWidth:"3"}),y("path",{d:"M50 14L60 38H48L58 56L34 50L44 32H32L50 14Z",fill:"url(#dj-gold)"}),y("path",{d:"M56 12L28 52H46L36 88L72 44H52L56 12Z",fill:"#FFF1F2",stroke:"url(#dj-gold)",strokeWidth:"2",strokeLinejoin:"round"}),y("circle",{cx:"20",cy:"26",r:"3",fill:"#FEF08A"}),y("circle",{cx:"80",cy:"74",r:"3",fill:"#FEF08A"})]});case"dacheng":default:return w("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[w("defs",{children:[w("linearGradient",{id:"dc-bg",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#F59E0B"}),y("stop",{offset:"35%",stopColor:"#EC4899"}),y("stop",{offset:"70%",stopColor:"#8B5CF6"}),y("stop",{offset:"100%",stopColor:"#3B82F6"})]}),w("linearGradient",{id:"dc-gold",x1:"0",y1:"0",x2:"100",y2:"100",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:"#FFFFFF"}),y("stop",{offset:"30%",stopColor:"#FEF08A"}),y("stop",{offset:"70%",stopColor:"#F59E0B"}),y("stop",{offset:"100%",stopColor:"#B45309"})]})]}),y("circle",{cx:"50",cy:"50",r:"47",stroke:"url(#dc-bg)",strokeWidth:"3",strokeDasharray:"10 4"}),y("circle",{cx:"50",cy:"50",r:"43",fill:"url(#dc-bg)"}),y("circle",{cx:"50",cy:"50",r:"38",fill:"#18181B",opacity:"0.8",stroke:"url(#dc-gold)",strokeWidth:"2"}),y("path",{d:"M18 68L12 36L30 48L50 20L70 48L88 36L82 68H18Z",fill:"url(#dc-gold)",stroke:"#FFFFFF",strokeWidth:"2",strokeLinejoin:"round"}),y("rect",{x:"18",y:"68",width:"64",height:"10",rx:"5",fill:"#78350F",stroke:"url(#dc-gold)",strokeWidth:"2"}),y("circle",{cx:"30",cy:"73",r:"3",fill:"#EF4444"}),y("circle",{cx:"50",cy:"73",r:"3.5",fill:"#3B82F6"}),y("circle",{cx:"70",cy:"73",r:"3",fill:"#EF4444"}),y("circle",{cx:"12",cy:"36",r:"4.5",fill:"#EF4444",stroke:"#FFFBEB",strokeWidth:"1.5"}),y("circle",{cx:"30",cy:"48",r:"4",fill:"#3B82F6",stroke:"#FFFBEB",strokeWidth:"1.5"}),y("circle",{cx:"50",cy:"20",r:"6",fill:"#F59E0B",stroke:"#FFFFFF",strokeWidth:"2"}),y("circle",{cx:"70",cy:"48",r:"4",fill:"#3B82F6",stroke:"#FFFBEB",strokeWidth:"1.5"}),y("circle",{cx:"88",cy:"36",r:"4.5",fill:"#EF4444",stroke:"#FFFBEB",strokeWidth:"1.5"})]})}})()})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function qS(e=0){if(e<100){const t=Math.min(3,Math.floor(e/33.33)+1);return{name:"ç»æ°å¢ · ååæè",shortName:"ç»æ°å¢",tier:t===1?"ä¸é":t===2?"äºé":"ä¸é",stars:t,maxStars:3,minPoints:0,maxPoints:100,currentPoints:e,progressPercent:Math.min(100,Math.floor(e/100*100)),colorClass:"emerald",badgeBg:"bg-emerald-500/10 dark:bg-emerald-500/15",borderColor:"border-emerald-500/30",textColor:"text-emerald-600 dark:text-emerald-400",realmKey:"lianqi",desc:"纳天å°é«çº§è¯æ±äºè¸ï¼å纳åç»ææåçµè"}}else if(e<300){const t=e-100,r=Math.min(3,Math.floor(t/66.66)+1);return{name:"çåºå¢ · è¯èçåº",shortName:"çåºå¢",tier:r===1?"ä¸é":r===2?"äºé":"ä¸é",stars:r,maxStars:3,minPoints:100,maxPoints:300,currentPoints:e,progressPercent:Math.min(100,Math.floor(t/200*100)),colorClass:"sky",badgeBg:"bg-sky-500/10 dark:bg-sky-500/15",borderColor:"border-sky-500/30",textColor:"text-sky-600 dark:text-sky-400",realmKey:"zhuji",desc:"é¸å°±è¯æä¸çåºå°ï¼ä¸ç¬å¦é£ï¼è¯è¾¾æé¡º"}}else if(e<600){const t=e-300,r=Math.min(4,Math.floor(t/75)+1);return{name:"éä¸¹å¢ Â· ç»å¥æä¸¹",shortName:"é丹å¢",tier:["ä¸é","äºé","ä¸é","åé"][r-1]||"åé",stars:r,maxStars:4,minPoints:300,maxPoints:600,currentPoints:e,progressPercent:Math.min(100,Math.floor(t/300*100)),colorClass:"amber",badgeBg:"bg-amber-500/10 dark:bg-amber-500/15",borderColor:"border-amber-500/30",textColor:"text-amber-700 dark:text-amber-300",realmKey:"jindan",desc:"å¥å¥å¦çç¨é丹ï¼è¨ç®æèµ
ï¼æ·å°ä½éç³ä¹å"}}else if(e<1e3){const t=e-600,r=Math.min(5,Math.floor(t/80)+1);return{name:"å
å©´å¢ Â· ç¯ç« åå©´",shortName:"å
å©´å¢",tier:["ä¸é","äºé","ä¸é","åé","äºé"][r-1]||"äºé",stars:r,maxStars:5,minPoints:600,maxPoints:1e3,currentPoints:e,progressPercent:Math.min(100,Math.floor(t/400*100)),colorClass:"purple",badgeBg:"bg-purple-500/10 dark:bg-purple-500/15",borderColor:"border-purple-500/30",textColor:"text-purple-600 dar
558k:text-purple-400",realmKey:"yuanying",desc:"ææå为å
å©´çµä½ï¼å¦çèªçæç¯ï¼æ°å山河"}}else if(e<1500){const t=e-1e3,r=Math.min(5,Math.floor(t/100)+1);return{name:"渡å«å¢ · è¯ææ¸¡å«",shortName:"渡å«å¢",tier:["ä¸é","äºé","ä¸é","åé","äºé"][r-1]||"äºé",stars:r,maxStars:5,minPoints:1e3,maxPoints:1500,currentPoints:e,progressPercent:Math.min(100,Math.floor(t/500*100)),colorClass:"rose",badgeBg:"bg-rose-500/10 dark:bg-rose-500/15",borderColor:"border-rose-500/30",textColor:"text-rose-600 dark:text-rose-400",realmKey:"dujie",desc:"ç ´ææåæ»ä¹ä¹é天å«ï¼æé£æåï¼èªæä¸æ´¾"}}else{const t=Math.floor((e-1500)/100)+1;return{name:"大ä¹è³å° · è¨åºæ³é",shortName:"大ä¹è³å°",tier:`è£è ${t} æ`,stars:t,maxStars:99,minPoints:1500,maxPoints:99999,currentPoints:e,progressPercent:100,colorClass:"amber",badgeBg:"bg-gradient-to-r from-amber-500/20 via-rose-500/20 to-purple-500/20",borderColor:"border-amber-500/50 shadow-md shadow-amber-500/20",textColor:"text-amber-700 dark:text-amber-300 font-black",realmKey:"dacheng",desc:"è¶
å¡å
¥å£ï¼è¨åºæ³éï¼æ 声å¤å¬é·éä¸é§"}}}function lj({points:e,size:t="md",showStars:r=!0,showName:n=!0}){const a=qS(e);return t==="sm"?w("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full border text-[11px] font-bold ${a.badgeBg} ${a.borderColor} ${a.textColor}`,title:`${a.name} (${e}修为)`,children:[y(lm,{realm:a.realmKey,size:16}),y("span",{children:a.shortName}),w("span",{className:"opacity-80",children:["· ",a.tier]})]}):t==="lg"?w("div",{className:`p-4 rounded-2xl border ${a.badgeBg} ${a.borderColor} space-y-3`,children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-3",children:[y("div",{className:"w-12 h-12 rounded-2xl bg-white/10 dark:bg-slate-900/60 flex items-center justify-center shadow-inner border border-white/20",children:y(lm,{realm:a.realmKey,size:36})}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("h3",{className:`font-black text-lg ${a.textColor}`,children:a.name}),y("span",{className:"px-2 py-0.5 rounded-md bg-white/20 dark:bg-slate-800/60 text-xs font-bold",children:a.tier})]}),y("p",{className:"text-xs text-slate-500 dark:text-slate-400 mt-0.5",children:a.desc})]})]}),w("div",{className:"text-right",children:[y("div",{className:"text-xs text-slate-400 font-medium",children:"修为积å"}),w("div",{className:`text-xl font-black ${a.textColor}`,children:[e," ",y("span",{className:"text-xs font-semibold text-slate-500",children:"ç¹"})]})]})]}),r&&a.maxStars<=5&&w("div",{className:"flex items-center justify-between border-t border-slate-200/20 dark:border-slate-800/40 pt-2.5",children:[y("span",{className:"text-xs text-slate-400 font-semibold",children:"éæ°æçº§"}),y("div",{className:"flex items-center gap-1",children:Array.from({length:a.maxStars}).map((i,o)=>y(uxe,{size:14,className:o<a.stars?"fill-amber-400 text-amber-400 animate-pulse":"text-slate-600 opacity-40"},o))})]})]}):w("div",{className:`inline-flex items-center gap-2 px-3 py-1 rounded-xl border text-xs font-extrabold ${a.badgeBg} ${a.borderColor} ${a.textColor}`,children:[y(lm,{realm:a.realmKey,size:20}),n&&y("span",{children:a.name}),y("span",{className:"px-1.5 py-0.2 rounded bg-black/10 dark:bg-white/10 text-[10px] font-black",children:a.tier})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sCe({isOpen:e,onClose:t,currentPoints:r=0}){if(!e)return null;const n=qS(r),a=[{points:50,realmKey:"lianqi",name:"ç»æ°å¢ · ååæè",range:"0 - 99 修为",desc:"纳天å°é«çº§è¯æ±äºè¸ï¼å纳åç»ææåçµè",estParagraphs:5,estSentences:10,estWords:20},{points:200,realmKey:"zhuji",name:"çåºå¢ · è¯èçåº",range:"100 - 299 修为",desc:"é¸å°±è¯æä¸çåºå°ï¼ä¸ç¬å¦é£ï¼è¯è¾¾æé¡º",estParagraphs:15,estSentences:30,estWords:60},{points:450,realmKey:"jindan",name:"éä¸¹å¢ Â· ç»å¥æä¸¹",range:"300 - 599 修为",desc:"å¥å¥å¦çç¨é丹ï¼è¨ç®æèµ
ï¼æ·å°ä½éç³ä¹å",estParagraphs:30,estSentences:60,estWords:120},{points:800,realmKey:"yuanying",name:"å
å©´å¢ Â· ç¯ç« åå©´",range:"600 - 999 修为",desc:"ææå为å
å©´çµä½ï¼å¦çèªçæç¯ï¼æ°å山河",estParagraphs:50,estSentences:100,estWords:200},{points:1200,realmKey:"dujie",name:"渡å«å¢ · è¯ææ¸¡å«",range:"1000 - 1499 修为",desc:"ç ´ææåæ»ä¹ä¹é天å«ï¼æé£æåï¼èªæä¸æ´¾",estParagraphs:75,estSentences:150,estWords:300},{points:1800,realmKey:"dacheng",name:"大ä¹è³å° · è¨åºæ³é",range:"1500+ 修为",desc:"è¶
å¡å
¥å£ï¼è¨åºæ³éï¼æ 声å¤å¬é·
558éä¸é§",estParagraphs:100,estSentences:200,estWords:400}];return Fr.createPortal(w("div",{className:"fixed inset-0 bg-slate-950/75 backdrop-blur-md z-[100] flex items-center justify-center p-3 sm:p-5 animate-fade-in",children:[y("div",{className:"fixed inset-0",onClick:t}),w("div",{className:"relative w-full max-w-3xl bg-white dark:bg-slate-900 rounded-3xl border border-slate-200 dark:border-slate-800 shadow-2xl overflow-hidden z-10 text-left flex flex-col max-h-[90vh]",children:[w("div",{className:"px-6 py-4 border-b border-slate-200 dark:border-slate-800/80 bg-slate-50/50 dark:bg-slate-950/50 flex items-center justify-between flex-shrink-0",children:[w("div",{className:"flex items-center gap-2.5",children:[y("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-500 flex items-center justify-center font-bold",children:y(Uo,{size:18})}),w("div",{children:[w("h2",{className:"text-base font-black text-slate-850 dark:text-slate-100 flex items-center gap-1.5",children:[y("span",{children:"渡å«ç§ç±"}),y("span",{className:"text-xs font-semibold text-violet-500 bg-violet-500/10 px-2 py-0.5 rounded-full border border-violet-500/20",children:"ä¿®çæ®µä½ä¸é¢ä¼°ç®æ "})]}),y("p",{className:"text-[11px] text-slate-400",children:"积ææå修为ï¼ç ´é¶æ¸¡å«åé"})]})]}),y("button",{onClick:t,className:"p-1.5 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:y(Tt,{size:18})})]}),w("div",{className:"p-6 space-y-6 overflow-y-auto scrollbar-thin",children:[w("div",{className:"p-4 rounded-2xl bg-gradient-to-r from-violet-500/10 via-purple-500/10 to-amber-500/10 border border-violet-500/20 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[w("div",{className:"flex items-center gap-3",children:[y("div",{className:"w-12 h-12 rounded-2xl bg-white dark:bg-slate-900 border border-violet-500/30 flex items-center justify-center shadow-md",children:y(lm,{realm:n.realmKey,size:32})}),w("div",{children:[y("div",{className:"text-[11px] text-slate-400 font-semibold",children:"æ¨å½åæå¤ä¿®çå¢ç"}),w("div",{className:"text-base font-black text-slate-850 dark:text-slate-100 flex items-center gap-2",children:[y("span",{children:n.name}),y("span",{className:"text-xs font-bold text-amber-500 bg-amber-500/10 px-2 py-0.5 rounded-md border border-amber-500/20",children:n.tier})]})]})]}),w("div",{className:"text-right",children:[y("div",{className:"text-xs text-slate-400 font-medium",children:"å½å累计修为"}),w("div",{className:"text-lg font-black text-violet-600 dark:text-violet-400",children:[r," ",y("span",{className:"text-xs text-slate-500 font-normal",children:"ç¹"})]})]})]}),w("div",{className:"space-y-3",children:[w("div",{className:"flex items-center justify-between",children:[w("h3",{className:"text-xs font-extrabold uppercase tracking-wider text-slate-400 flex items-center gap-1.5",children:[y(gr,{size:13,className:"text-amber-400"}),y("span",{children:"å
大çå¹»å¢çä¸ãé¢æç®æ é¢ä¼°ã"})]}),w("span",{className:"text-[10px] text-slate-500 font-normal flex items-center gap-1",children:[y(Zye,{size:11,className:"text-violet-400"}),"çæç§¯ç´¯ç§°éé¢ä¼°"]})]}),y("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:a.map(i=>{const o=qS(i.points),s=n.name===o.name;return w("div",{className:`p-4 rounded-2xl border transition-all space-y-3 ${s?"bg-violet-500/15 border-violet-500/60 ring-2 ring-violet-500/20 shadow-md":"bg-slate-50/50 dark:bg-slate-950/40 border-slate-200 dark:border-slate-850"}`,children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2.5",children:[y(lm,{realm:i.realmKey,size:28}),w("div",{children:[y("h4",{className:"font-black text-xs text-slate-850 dark:text-slate-100",children:i.name}),y("p",{className:"text-[10px] text-slate-400 mt-0.5",children:i.desc})]})]}),y("span",{className:"text-[10px] font-bold text-violet-500 bg-violet-500/10 px-2 py-0.5 rounded-full border border-violet-500/20 whitespace-nowrap self-start",children:i.range})]}),w("div",{className:"p-2.5 rounded-xl bg-slate-100/80 dark:bg-slate-900/90 border border-slate-200/60 dark:border-slate-800/60 text-[10px] space-y-1.5",children:[y("div",{className:"text-amber-500 font-bold flex items-center justify-between",children:y("span",{children:"ð¡ çªç ´é¢æéåç®æ ï¼ä»»éå
¶ä¸ï¼ï¼"})}),w("div",{className:"grid grid-cols-3 gap-1.5 text-center font-semibold",children:[w("div",{className:"px-1.5 py-1 rounded-lg bg-violet-500/10 border border-violet-500/20 text-violet-400 whitespace-nowrap",children:["ð æ®µè½ 约 ",y("strong",{children:i.estParagraphs})," ç¯"]}),w("div",{className:"px-1.5 py-1 rounded-lg bg-blue-500/10 border border-blue-500/20 text-blue-400 whitespace-nowrap",children:["ð¬ éå¥ çº¦ ",y("strong",{children:i.estSentences})," æ¡"]}),w("div",{className:"px-1.5 py-1 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 whitespace-nowrap",children:["ð è¯æ± 约 ",y("strong",{children:i.estWords})," 个"]})]})]})]},i.name)})})]}),w("div",{className:"space-y-3 border-t border-slate-200 dark:border-slate-800/80 pt-4",children:[w("h3",{className:"text-xs font-extrabold uppercase tracking-wider text-slate-400 flex items-center gap-1.5",children:[y(Jy,{size:13,className:"text-rose-500"}),y("span",{children:"修为è·åä¸å项åå¼"})]}),w("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 text-center",children:[w("div",{className:"p-3 rounded-2xl bg-slate-50/60 dark:bg-slate-950/60 border border-slate-200 dark:border-slate-850 space-y-1",children:[y("div",{className:"text-violet-500 font-black text-base",children:"+5 修为"}),y("div",{className:"text-xs font-bold text-slate-700 dark:text-slate-200",children:"è¯è¯åº"}),y("div",{className:"text-[10px] text-slate-400",children:"æ¶è/ææ¡é«çº§è¯æè¯"})]}),w("div",{className:"p-3 rounded-2xl bg-slate-50/60 dark:bg-slate-950/60 border border-slate-200 dark:border-slate-850 space-y-1",children:[y("div",{className:"text-blue-500 font-black text-base",children:"+10 修为"}),y("div",{className:"text-xs font-bold text-slate-700 dark:text-slate-200",children:"å¥ååº"}),y("div",{className:"text-[10px] text-slate-400",children:"è诵æå¡æå¦éå¥"})]}),w("div",{className:"p-3 rounded-2xl bg-slate-50/60 dark:bg-slate-950/60 border border-slate-200 dark:border-slate-850 space-y-1",children:[y("div",{className:"text-emerald-500 font-black text-base",children:"+20 修为"}),y("div",{className:"text-xs font-bold text-slate-700 dark:text-slate-200",children:"段è½åº"}),y("div",{className:"text-[10px] text-slate-400",children:"ç 读è诵åå®¶ç¾æ"})]}),w("div",{className:"p-3 rounded-2xl bg-slate-50/60 dark:bg-slate-950/60 border border-slate-200 dark:border-slate-850 space-y-1",children:[y("div",{className:"text-amber-500 font-black text-base",children:"+50 修为"}),y("div",{className:"text-xs font-bold text-slate-700 dark:text-slate-200",children:"天å«å¥å±"}),y("div",{className:"text-[10px] text-slate-400",children:"è¿ç»æå¡æ»¡ 7 天"})]})]})]})]}),y("div",{className:"px-6 py-3 border-t border-slate-200 dark:border-slate-800/80 bg-slate-50/50 dark:bg-slate-950/50 flex justify-end flex-shrink-0",children:y("button",{onClick:t,className:"px-5 py-2 bg-primary text-white text-xs font-bold rounded-xl hover:bg-primary-dark shadow-md transition-all",children:"ç¥éäºï¼åå»ä¿®ç¼"})})]})]}),document.body)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function lCe(){const[e,t]=jye(),r=e.get("tab")||"accumulation",[n,a]=z.useState(["accumulation","instant","cultivation"].includes(r)?r:"accumulation"),[i,o]=z.useState([]),[s,l]=z.useState(!0),[u,c]=z.useState(!1),d=Jr(v=>v.user),f=v=>{a(v),t({tab:v})};z.useEffect(()=>{l(!0),Yne(n,30).then(v=>{o(v.data.data)}).catch(v=>{}).finally(()=>{l(!1)})},[n]);const h=i.find(v=>v.userId===(d==null?void 0:d.id)),p=v=>v===1?y("span",{className:"w-7 h-7 rounded-lg bg-amber-500/20 border border-amber-500/50 text-amber-400 font-extrabold font-mono text-sm flex items-center justify-center shadow-sm shadow-amber-500/10",children:"1"}):v===2?y("span",{className:"w-7 h-7 rounded-lg bg-slate-400/20 border border-slate-400/40 text-slate-300 font-extrabold font-mono text-sm flex items-center justify-center",children:"2"}):v===3?y("span",{className:"w-7 h-7 rounded-lg bg-amber-700/20 border border-amber-700/40 text-amber-500 font-extrabold font-mono text-sm flex items-center justify-center",children:"3"}):y("span",{className:"w-7 text-center font-mono font-bold text-xs text-slate-400",children:v});return w("div",{className:"space-y-6 max-w-4xl mx-auto pb-12",children:[w("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4 border-b border-slate-800/40 pb-5",children:[w("div",{children:[w("h1",{className:"text-2xl font-black text-slate-100 flex items-center gap-2.5",children:[y(Uo,{className:"text-amber-400",size:26}),"ä¿®è¡é£äºæ¦"]}),y("p",{className:"text-xs text-slate-400 mt-1.5",children:"æ±èå
¨æè¯æä¿®è¡è
ï¼ä»¥æè¯éï¼çªç ´ç幻修çå¢ç"})]}),w("div",{className:"flex items-center p-1.5 bg-white/70 dark:bg-slate-800/40 backdrop-blur-md border border-slate-200/70 dark:border-slate-700/50 rounded-2xl shadow-sm shadow-black/5 dark:shadow-black/20",children:[w("button",{onClick:()=>f("accumulation"),className:`px-3.5 md:px-4 py-2 rounded-xl text-xs md:text-sm font-bold transition-all duration-300 flex items-center gap-1.5 whitespace-nowrap ${n==="accumulation"?"bg-gradient-to-r from-violet-600 to-violet-500 text-white shadow-lg shadow-violet-500/30":"text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-200/50 dark:hover:bg-white/5"}`,children:[y(Yn,{size:14,className:n==="accumulation"?"text-white":"text-violet-500"}),"å¤ä¿®ç§¯ç´¯æ¦"]}),w("button",{onClick:()=>f("instant"),className:`px-3.5 md:px-4 py-2 rounded-xl text-xs md:text-sm font-bold transition-all duration-300 flex items-center gap-1.5 whitespace-nowrap ${n==="instant"?"bg-gradient-to-r from-violet-600 to-violet-500 text-white shadow-lg shadow-violet-500/30":"text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-200/50 dark:hover:bg-white/5"}`,children:[y(Pf,{size:14,className:n==="instant"?"text-white":"text-amber-500"}),"è¿ç®æè¯µæ¦"]}),w("button",{onClick:()=>f("cultivation"),className:`px-3.5 md:px-4 py-2 rounded-xl text-xs md:text-sm font-bold transition-all duration-300 flex items-center gap-1.5 whitespace-nowrap ${n==="cultivation"?"bg-gradient-to-r from-violet-600 to-violet-500 text-white shadow-lg shadow-violet-500/30":"text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 hover:bg-slate-200/50 dark:hover:bg-white/5"}`,children:[y(X_,{size:14,className:n==="cultivation"?"text-white":"text-emerald-500"}),"综å修为æ¦"]})]})]}),h&&w("div",{className:"glass-panel p-5 rounded-3xl border border-violet-500/30 bg-gradient-to-r from-slate-900 via-slate-900/95 to-violet-950/40 relative overflow-hidden shadow-xl space-y-4",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-slate-800/60 pb-4",children:[w("div",{className:"flex items-center gap-3.5",children:[y(sj,{userId:h.userId,avatarUrl:h.avatarUrl||(d==null?void 0:d.avatarUrl),nickname:h.nickname,className:"w-12 h-12 rounded-2xl",textClassName:"text-xl font-black"}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("h2",{className:"text-lg font-black text-slate-100",children:h.nickname}
558),w("span",{className:"px-2 py-0.5 bg-violet-100 border border-violet-300 text-violet-700 rounded text-[10px] font-extrabold uppercase",children:["å
¨æç¬¬ ",h.rank," å"]})]}),y("p",{className:"text-xs text-slate-400 mt-0.5",children:"æçä¸æè¡¨è¾¾ä¿®çæ³å®å¡"})]})]}),w("button",{onClick:()=>c(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 bg-amber-500/10 hover:bg-amber-500/20 text-amber-700 dark:text-amber-300 border border-amber-500/40 rounded-xl text-xs font-extrabold transition-all shadow-sm self-start sm:self-auto",children:[y(Xs,{size:14}),y("span",{children:"渡å«ç§ç± · è§å详æ
"})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[y(lj,{points:h.cultivationScore||0,size:"lg"}),(()=>{const v=h.cultivationScore||0,m=qS(v),g=m.maxPoints-v;return w("div",{className:"p-4 rounded-2xl bg-slate-950/60 border border-slate-800/80 flex flex-col justify-between space-y-3",children:[w("div",{className:"flex items-center justify-between",children:[w("span",{className:"text-xs font-bold text-slate-300 flex items-center gap-1.5",children:[y(gr,{size:14,className:"text-amber-400"}),"ä¸å¢ç渡å«çªç ´è¿åº¦"]}),w("span",{className:"text-xs font-extrabold text-violet-400",children:[m.progressPercent,"%"]})]}),y("div",{className:"w-full bg-slate-800 rounded-full h-2.5 overflow-hidden p-0.5 border border-slate-700/50",children:y("div",{className:"bg-gradient-to-r from-violet-500 via-purple-500 to-amber-400 h-full rounded-full transition-all duration-500",style:{width:`${m.progressPercent}%`}})}),w("div",{className:"text-[11px] text-slate-400 flex items-center justify-between",children:[w("span",{children:["å½å: ",v," 修为"]}),m.maxPoints<99999?w("span",{children:["è¿é ",y("strong",{className:"text-amber-600 dark:text-amber-300 font-extrabold",children:g})," 修为çªç ´ä¸ä¸é¶"]}):y("span",{className:"text-amber-600 dark:text-amber-300 font-black",children:"å·²è³å¤§ä¹å·
å³°ï¼"})]})]})})()]})]}),w("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[y("div",{className:"lg:col-span-2 space-y-4",children:w("div",{className:"glass-panel rounded-2xl border border-slate-800/60 overflow-hidden bg-slate-900/50",children:[w("div",{className:"px-5 py-3.5 border-b border-slate-800/40 bg-slate-950/40 flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2 text-slate-300",children:[y(tS,{size:15,className:"text-violet-400"}),w("span",{className:"text-xs font-bold uppercase tracking-wider",children:[n==="accumulation"&&"å¤ä¿®ç§¯ç´¯æ¦ Top 30ï¼ä¸å¤§åºçº¯èµäº§å¨å¤ï¼",n==="instant"&&"è¿ç®æè¯µæ¦ Top 30ï¼æéç²æææå¾åï¼",n==="cultivation"&&"综åä¿®ä¸ºæ¦ Top 30ï¼ä¿®çå¢çå¤ç»´å æåï¼"]})]}),w("button",{onClick:()=>c(!0),className:"text-[11px] text-amber-400 hover:text-amber-300 flex items-center gap-1 font-semibold",children:[y(Xs,{size:12}),"è§å详æ
"]})]}),s?w("div",{className:"p-12 flex flex-col items-center justify-center space-y-3",children:[y("div",{className:"w-7 h-7 rounded-full border-2 border-slate-700 border-t-violet-500 animate-spin"}),y("p",{className:"text-xs text-slate-400",children:"æ£å¨æ£ç´¢é£äºæ¦æ°æ®..."})]}):i.length===0?w("div",{className:"p-12 text-center text-slate-400 space-y-2",children:[y(Tee,{className:"mx-auto text-slate-600",size:32}),y("p",{className:"text-sm",children:"ææ æ¦åè®°å½ï¼å¿«å»ç§¯ç´¯ç¬¬ä¸ç¯æ®µè½å§ï¼"})]}):y("div",{className:"divide-y divide-slate-800/30",children:i.map(v=>{const m=v.userId===(d==null?void 0:d.id),g=(v.totalParagraphs||0)+(v.totalSentences||0)+(v.totalWords||0),x=v.cultivationScore||0,b=Kne(v.challengeScore);return w("div",{className:`px-5 py-3.5 flex items-center justify-between transition-all duration-200 ${m?"bg-violet-500/10 border-l-4 border-violet-500 shadow-inner":"hover:bg-slate-800/30"}`,children:[w("div",{className:"flex items-center gap-3.5",children:[y("div",{className:"w-7 flex justify-center",children:p(v.rank)}),w("div",{className:"flex items-center gap-3",children:[y(sj,{userId:v.userId,avatarUrl:v.avatarUrl,nickname:v.nickname,className:"w-9 h-9 rounded-xl",textClassName:"text-sm font-black"}),w("div",{children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"font-bold text-slate-100 text-sm",children:v.nickname}),m&&y("span",{className:"px-1.5 py-0.2 bg-violet-600 text-white rounded text-[10px] font-black tracking-wider up
558percase",children:"æ"}),y(lj,{points:x,size:"sm"})]}),w("div",{className:"text-[11px] text-slate-400 mt-0.5 flex items-center gap-2",children:[n==="accumulation"&&w("span",{children:["æ®µè½ ",v.totalParagraphs||0," ç¯ Â· å¥ ",v.totalSentences||0," å¥ Â· è¯ ",v.totalWords||0," 个"]}),n==="instant"&&w("span",{children:["ç´¯è®¡ææ ",v.totalChallenges," 次"]}),n==="cultivation"&&w("span",{children:["æ®µè½ ",v.totalParagraphs||0," · å¥ ",v.totalSentences||0," · è¯ ",v.totalWords||0]})]})]})]})]}),w("div",{className:"flex items-center gap-3 text-right",children:[n==="instant"&&y("span",{className:`px-2 py-0.5 text-[10px] font-bold rounded border ${b.color} ${b.bgColor} ${b.borderColor}`,children:b.name}),w("div",{children:[w("div",{className:"font-mono font-black text-base text-slate-100",children:[n==="accumulation"&&g,n==="instant"&&v.challengeScore,n==="cultivation"&&x]}),w("div",{className:"text-[9px] text-slate-400 font-medium",children:[n==="accumulation"&&"纯èµäº§æ»é",n==="instant"&&"è¿ç®æè¯µå",n==="cultivation"&&"修为积å"]})]})]})]},v.userId)})})]})}),w("div",{className:"space-y-5",children:[w("div",{className:"glass-panel p-5 rounded-2xl border border-slate-800/60 bg-slate-900/50 space-y-3",children:[w("span",{className:"text-xs text-violet-400 font-bold tracking-wider uppercase flex items-center gap-1.5 border-b border-slate-800/40 pb-2.5",children:[y(Aee,{size:14}),"æçå¸ä½"]}),h?w("div",{className:"flex items-center justify-between pt-1",children:[w("div",{children:[y("div",{className:"text-xs text-slate-400",children:"å
¨æå次"}),w("div",{className:"text-2xl font-black text-slate-100 font-mono mt-0.5",children:["第 ",y("span",{className:"text-violet-400",children:h.rank})," ä½"]})]}),w("div",{className:"text-right",children:[y("div",{className:"text-xs text-slate-400",children:n==="accumulation"?"纯积累é":n==="instant"?"è¿ç®æè¯µå":"综å修为å"}),w("div",{className:"text-xl font-black text-slate-100 font-mono mt-0.5",children:[n==="accumulation"&&(h.totalParagraphs||0)+(h.totalSentences||0)+(h.totalWords||0),n==="instant"&&h.challengeScore,n==="cultivation"&&(h.cultivationScore||0)]})]})]}):w("div",{className:"text-center py-3 text-xs text-slate-400 space-y-1",children:[y("p",{children:"ä½ å°æªä¸æ¦"}),y("p",{className:"text-[10px] text-slate-400",children:"å¼å§æ·»å æè诵è¯å¥æ®µå³å¯ç»æ¦"})]})]}),n==="accumulation"&&w("div",{className:"glass-panel p-5 rounded-2xl border border-slate-800/60 bg-slate-900/50 space-y-3",children:[w("span",{className:"text-xs text-indigo-400 font-bold tracking-wider uppercase flex items-center gap-1.5",children:[y(Yn,{size:14}),"å¤ä¿®ç§¯ç´¯æ¦è§å"]}),y("p",{className:"text-xs text-slate-400 leading-relaxed",children:"å¤ä¿®ç§¯ç´¯æ¦çº¯ç²¹ç»è®¡ä½ å¨ãä¸å¤§åºãä¸çæåèµäº§æ»ä»¶æ°ï¼æé¤æå¡å å䏿忿åï¼"}),w("div",{className:"space-y-2 pt-1 text-xs text-slate-300",children:[w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-indigo-300",children:[y(nn,{size:13}),"段è½åºèµäº§"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"1 ç¯ = 1 èµäº§"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-indigo-300",children:[y(nn,{size:13}),"éå¥åºèµäº§"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"1 å¥ = 1 èµäº§"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-indigo-300",children:[y(nn,{size:13}),"è¯è¯åºèµäº§"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"1 è¯ = 1 èµäº§"})]}),y("div",{className:"p-2.5 rounded-lg bg-indigo-500/10 border border-indigo-500/20 text-[11px] text-indigo-300 leading-relaxed",children:"ð¡ æ¦ååæ° = å卿®µè½ç¯æ° + éå¥å¥æ° + è¯è¯ä¸ªæ°ãæ¯æ¼è°çæ°æ®åºå¨å¤æ´æ·±åï¼"})]})]}),n==="instant"&&w("div",{className:"glass-panel p-5 rounded-2xl border border-slate-800/60 bg-slate-900/50 space-y-3",children:[w("span",{className:"text-xs text-amber-400 font-bold tracking-wider up
558percase flex items-center gap-1.5",children:[y(aF,{size:14}),"è¿ç®æè¯µæ¦ç®åè§å"]}),y("p",{className:"text-xs text-slate-400 leading-relaxed",children:"è¿ç®æè¯µæ¦åºäºãè¿ç®æè¯µãæåç²æææï¼èæ ¸æé (WPM)ãåç¡®çä¸é«åååºï¼"}),w("div",{className:"space-y-2 pt-1 text-xs text-slate-300",children:[w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-amber-300",children:[y(aF,{size:13}),"æåæé (WPM)"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"è¯/åé æ¢ç®"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-amber-300",children:[y(L$,{size:13}),"ç²æåç¡®ç (%)"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"é误æ£é¤æ¯ä¾"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-amber-300",children:[y(X_,{size:13}),"å ¨ææææ®µä½"]}),y("span",{className:"font-mono text-amber-400 font-bold",children:"éé â çè "})]}),y("div",{className:"p-2.5 rounded-lg bg-amber-500/10 border border-amber-500/20 text-[11px] text-amber-300 leading-relaxed",children:"â¡ å¨ãè¿ç®æè¯µã模å¼ä¸å®ææåææï¼æéè¶å¿«ãéåè¶å°ï¼ææåä¸å ¨ææ®µä½è¶é«ï¼"})]})]}),w("div",{className:"glass-panel p-5 rounded-2xl border border-slate-800/60 bg-slate-900/50 space-y-3",children:[w("span",{className:"text-xs text-amber-400 font-bold tracking-wider uppercase flex items-center justify-between border-b border-slate-800/40 pb-2.5",children:[w("span",{className:"flex items-center gap-1.5",children:[y(gr,{size:14,className:"text-amber-400"}),"ä¿®è¡æ³å®åç« å¢"]}),y("span",{className:"text-[10px] text-slate-500 font-normal",children:"æå°±è§£éä¸"})]}),(()=>{const v=(h==null?void 0:h.totalWords)||0,m=(h==null?void 0:h.totalSentences)||0,g=(h==null?void 0:h.totalParagraphs)||0,x=[{id:"word-collector",icon:"ð®",name:"è¯èä¸è±¡",desc:"è¯æ±åºçªç ´ 10/50/100 个",progress:`${v}/50`,unlocked:v>=10},{id:"sentence-master",icon:"â¡",name:"éå¥åå¢",desc:"éå¥åºæå¡çªç ´ 5/20/50 å¥",progress:`${m}/20`,unlocked:m>=5},{id:"paragraph-guru",icon:"âï¸",name:"æå®ä¹¾å¤",desc:"段è½åºç 读çªç ´ 3/10/30 ç¯",progress:`${g}/10`,unlocked:g>=3},{id:"streak-faith",icon:"ð¥",name:"éå¿æ°¸åº",desc:"è¿ç»ä¿®è¡æå¡çªç ´ 7 天",progress:"è¿è¡ä¸",unlocked:!0}];return y("div",{className:"grid grid-cols-2 gap-2.5 pt-1",children:x.map(b=>w("div",{className:`p-2.5 rounded-xl border text-left flex items-center gap-2.5 transition-all ${b.unlocked?"bg-amber-500/10 border-amber-500/30 text-amber-300 shadow-sm":"bg-slate-950/40 border-slate-800/40 text-slate-500 opacity-60"}`,children:[y("div",{className:"text-xl flex-shrink-0",children:b.icon}),w("div",{className:"min-w-0",children:[y("div",{className:"font-bold text-xs truncate flex items-center gap-1",children:y("span",{children:b.name})}),y("div",{className:"text-[10px] text-slate-400 truncate",children:b.desc})]})]},b.id))})})()]}),n==="cultivation"&&w("div",{className:"glass-panel p-5 rounded-2xl border border-slate-800/60 bg-slate-900/50 space-y-3",children:[w("span",{className:"text-xs text-amber-400 font-bold tracking-wider uppercase flex items-center gap-1.5",children:[y(Jy,{size:14}),"综å修为æ¦ç®æ³"]}),y("p",{className:"text-xs text-slate-400 leading-relaxed",children:"综åä¿®ä¸ºä»£è¡¨å ¨æ¹ä½ä¿®å »ï¼å æè®¡ç®ãèµäº§ç§¯ç´¯ + æå¡åæ + æåææãçæ»å¾åï¼"}),w("div",{className:"space-y-2 pt-1 text-xs text-slate-300",children:[w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-violet-300",children:[y(nn,{size:13}),"è诵/ç 读段è½"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"+20 修为 / ç¯"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-violet-300",children:[y(nn,{size:13}),"ææéå¥è诵"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"+10 修为 / å¥"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-violet-300",children:[y(nn,{size:13}),"ææ¡é«é¶è¯è¯"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"+5 修为 / 个"})]}),w("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-950/40 border border-slate-800/50",children:[w("span",{className:"flex items-center gap-1.5 text-violet-300",children:[y(nn,{size:13}),"天å«è¿ç»æå¡å¤§å¥"]}),y("span",{className:"font-mono text-slate-300 font-bold",children:"+50 修为 / 7天"})]})]})]})]})]}),y(sCe,{isOpen:u,onClose:()=>c(!1),currentPoints:(h==null?void 0:h.cultivationScore)||0})]})}/*! ***************************************************************************** 559Copyright (c) Microsoft Corporation. 560 561Permission to use, copy, modify, and/or distribute this software for any 562purpose with or without fee is hereby granted. 563 564THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 565REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 566AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 567INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 568LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 569OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 570PERFORMANCE OF THIS SOFTWARE. 571***************************************************************************** */var tD=function(e,t){return tD=Object.
571setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},tD(e,t)};function K(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var uCe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),cCe=function(){function e(){this.browser=new uCe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),id=new cCe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(id.wxa=!0,id.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?id.worker=!0:typeof navigator>"u"?(id.node=!0,id.svgSupported=!0):dCe(navigator.userAgent,id);function dCe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const ot=id;var pO=12,Zne="sans-serif",Wu=pO+"px "+Zne,fCe=20,hCe=100,pCe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vCe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-fCe)/hCe;t[n]=a}return t}var gCe=vCe(pCe),qu={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=qu.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Wu),e.measureText(r);r=r||"",n=n||Wu;var i=/(\d+)px/.exec(n),o=i&&+i[1]||pO,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=gCe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},Xne=ts(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Jne=ts(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Dv=Object.prototype.toString,rC=Array.prototype,mCe=rC.forEach,yCe=rC.filter,vO=rC.slice,xCe=rC.map,uj=function(){}.constructor,H1=uj?uj.prototype:null,gO="__proto__",bCe=2311;function Qne(){return bCe++}function mO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function Ie(e){if(e==null||typeof e!="object")return e;var t=e,r=Dv.call(e);if(r==="[object Array]"){if(!um(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=Ie(e[n])}}else if(Jne[r]){if(!um(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!Xne[r]&&!um(e)&&!fy(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==gO&&(t[o]=Ie(e[o]))}return t}function He(e,t,r){if(!Te(t)||!Te(e))return r?Ie(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==gO){var a=e[n],i=t[n];Te(i)&&Te(a)&&!te(i)&&!te(a)&&!fy(i)&&!fy(a)&&!cj(i)&&!cj(a)&&!um(i)&&!um(a)?He(a,i,r):(r||!(n in e))&&(e[n]=Ie(t[n]))}return e}function yO(e,t){for(var r=e[0],n=1,a=e.length;n<a;n++)r=He(r,e[n],t);return r}function Q(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==gO&&(e[r]=t[r]);return e}function Ce(e,t,r){for(var n=tt(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}function Ke(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function wCe(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function kr(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Ce(e,t,r)}function Ln(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function D(e,t,r){if(e&&t)if(e.forEach&&e.forEach===mCe)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function re(e,t,r){if(!e)return[];if(!t)return xO(e);
571if(e.map&&e.map===xCe)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function ts(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function Et(e,t,r){if(!e)return[];if(!t)return xO(e);if(e.filter&&e.filter===yCe)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function _Ce(e,t,r){if(e&&t){for(var n=0,a=e.length;n<a;n++)if(t.call(r,e[n],n,e))return e[n]}}function tt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function SCe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(vO.call(arguments)))}}var ve=H1&&ke(H1.bind)?H1.call.bind(H1.bind):SCe;function Oe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(vO.call(arguments)))}}function te(e){return Array.isArray?Array.isArray(e):Dv.call(e)==="[object Array]"}function ke(e){return typeof e=="function"}function fe(e){return typeof e=="string"}function rD(e){return Dv.call(e)==="[object String]"}function lt(e){return typeof e=="number"}function Te(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function cj(e){return!!Xne[Dv.call(e)]}function Wa(e){return!!Jne[Dv.call(e)]}function fy(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function nC(e){return e.colorStops!=null}function kCe(e){return e.image!=null}function CCe(e){return Dv.call(e)==="[object RegExp]"}function hy(e){return e!==e}function Zr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Ge(e,t){return e??t}function Hs(e,t,r){return e??t??r}function xO(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return vO.apply(e,t)}function bO(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Zn(e,t){if(!e)throw new Error(t)}function no(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var eae="__ec_primitive__";function YS(e){e[eae]=!0}function um(e){return e[eae]}var TCe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return tt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),tae=typeof Map=="function";function ACe(){return tae?new Map:new TCe}var ECe=function(){function e(t){var r=te(t);this.data=ACe();var n=this;t instanceof e?t.each(a):t&&D(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return tae?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Se(e){return new ECe(e)}function KS(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function aC(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Q(r,t),r}function rae(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ye(e,t){return e.hasOwnProperty(t)}function mr(){}var c_=180/Math.PI;/*! ***************************************************************************** 572Copyright (c) Microsoft Corporation. 573 574Permission to use, copy, modify, and/or distribute this software for any 575purpose with or without fee is hereby granted. 576 577THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 578REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 579AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 580INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 581LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 582OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 583PERFORMANCE OF THIS SOFTWARE. 584***************************************************************************** */var nD=function(e,t){return nD=Object.
vendor: 6,496 bytes, line 584
584setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},nD(e,t)};function Vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Rf(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Bn(e,t){return e[0]=t[0],e[1]=t[1],e}function Ws(e){return[e[0],e[1]]}function NCe(e,t,r){return e[0]=t,e[1]=r,e}function dj(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function aD(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Ed(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function iD(e){return Math.sqrt(ICe(e))}function ICe(e){return e[0]*e[0]+e[1]*e[1]}function d_(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Lv(e,t){var r=iD(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function oD(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var uu=oD;function PCe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Hd=PCe;function f_(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function sn(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function cu(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function du(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var eh=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),MCe=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new eh(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new eh(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new eh(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new eh(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new eh(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new eh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const DCe=MCe;var LCe=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}();const Di=LCe;var RCe=Math.log(2);function sD(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/RCe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var d=0,f=0,h=0;f<s;f++){var p=1<<f;p&a||(d+=(h%2?-1:1)*e[r][f]*sD(e,t-1,c,u,a|p,i),h++)}return i[o]=d,d}function fj(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},a=sD(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*sD(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var d=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/d,l[1]=(u*i[3]+c*i[4]+i[5])/d}}}var hj="___zrEVENTSAVED",zA=[];function $Ce(e,t,r,n,a){return lD(zA,t,n,a,!0)&&lD(e,r,zA[0],zA[1])}function lD(e,t,r,n,a){if(t.getBoundingClientRect&&ot.domSupported&&!nae(t)){var i=t[hj]||(t[hj]={}),o=OCe(t,i),s=zCe(o,i,a);if(s)return s(e,r,n),!0}return!1}function OCe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function zCe(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}
584return l&&a?a:(t.srcCoords=o,t[n]=r?fj(s,o):fj(o,s))}function nae(e){return e.nodeName.toUpperCase()==="CANVAS"}var FCe=/([&<>"'])/g,BCe={"&":"&","<":"<",">":">",'"':""","'":"'"};function ca(e){return e==null?"":(e+"").replace(FCe,function(t,r){return BCe[r]})}var jCe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,FA=[],VCe=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function uD(e,t,r,n){return r=r||{},n?pj(e,t,r):VCe&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):pj(e,t,r),r}function pj(e,t,r){if(ot.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(nae(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(lD(FA,e,n,a)){r.zrX=FA[0],r.zrY=FA[1];return}}r.zrX=r.zrY=0}function wO(e){return e||window.event}function ui(e,t,r){if(t=wO(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&uD(e,o,t,r)}else{uD(e,t,t,r);var i=UCe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&jCe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function UCe(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function cD(e,t,r,n){e.addEventListener(t,r,n)}function GCe(e,t,r,n){e.removeEventListener(t,r,n)}var al=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function vj(e){return e.which===2||e.which===3}var HCe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=uD(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in BA)if(BA.hasOwnProperty(r)){var n=BA[r](this._track,t);if(n)return n}},e}();function gj(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function WCe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var BA={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=gj(n)/gj(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=WCe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Pi(){return[1,0,0,1,0,0]}function iC(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function _O(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function qs(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function rs(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function $f(e,t,r){var n=t[0],a=t[2],i=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=a*c+s*u,e[3]=-a*u+c*s,e[4]=c*i+u*l,e[5]=c*l-u*i,e}function SO(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function Rv(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}function qCe(e){var t=Pi();return _O(t,e),t}var YCe=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const Be=YCe;var W1=Math.min,q1=Math.max,Sc=new Be,kc=new Be,Cc=new Be,Tc=new Be,Ag=new Be,Eg=ne
584w Be,KCe=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=W1(t.x,this.x),n=W1(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=q1(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=q1(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Pi();return rs(i,i,[-r.x,-r.y]),SO(i,i,[n,a]),rs(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(i<l||u<a||s<c||d<o);if(r){var h=1/0,p=0,v=Math.abs(i-l),m=Math.abs(u-a),g=Math.abs(s-c),x=Math.abs(d-o),b=Math.min(v,m),_=Math.min(g,x);i<l||u<a?b>p&&(p=b,v<m?Be.set(Eg,-v,0):Be.set(Eg,m,0)):b<h&&(h=b,v<m?Be.set(Ag,v,0):Be.set(Ag,-m,0)),s<c||d<o?_>p&&(p=_,g<x?Be.set(Eg,0,-g):Be.set(Eg,0,x)):b<h&&(h=b,g<x?Be.set(Ag,0,g):Be.set(Ag,0,-x))}return r&&Be.copy(r,f?Ag:Eg),f},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sc.x=Cc.x=r.x,Sc.y=Tc.y=r.y,kc.x=Tc.x=r.x+r.width,kc.y=Cc.y=r.y+r.height,Sc.transform(n),Tc.transform(n),kc.transform(n),Cc.transform(n),t.x=W1(Sc.x,kc.x,Cc.x,Tc.x),t.y=W1(Sc.y,
584kc.y,Cc.y,Tc.y);var l=q1(Sc.x,kc.x,Cc.x,Tc.x),u=q1(Sc.y,kc.y,Cc.y,Tc.y);t.width=l-t.x,t.height=u-t.y},e}();const We=KCe;var aae="silent";function ZCe(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:XCe}}function XCe(){al(this.event)}var JCe=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Di),Ng=function(){function e(t,r){this.x=t,this.y=r}return e}(),QCe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jA=new We(0,0,0,0),iae=function(e){Vt(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Ng(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new JCe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new DCe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(QCe,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=oae(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Ng(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ng(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=ZCe(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new Ng(r,n);if(mj(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new We(r-u,n-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(jA.copy(f.getBoundingRect()),f.transform&&jA.applyTransform(f.transform),jA.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var g=0;g<v;g+=p){var x=r+m*Math.cos(g),b=n+m*Math.sin(g);if(mj(s,o,x,b,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new HCe);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);
584if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new Ng;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Di);D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){iae.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=oae(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||uu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function eTe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(a=!0)}var s=n.__hostTarget;n=s||n.parent}return a?aae:!0}return!1}function mj(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=eTe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==aae)){t.target=o;break}}}function oae(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const tTe=iae;var sae=32,Ig=7;function rTe(e){for(var t=0;e>=sae;)t|=e&1,e>>=1;return e+t}function yj(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;nTe(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function nTe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function xj(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function VA(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function UA(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function aTe(e,t){var r=Ig,n,a,i=0;e.length;var o=[];n=[],a=[];function s(h,p){n[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=n[h],v=a[h],m=n[h+1],g=a[h+1];a[h]=v+g,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var x=UA(e[m],e,p,v,0,t);p+=x,v-=x,v!==0&&(g=VA(e[p+v-1],e,m,g,g-1,t),g!==0&&(v<=g?d(p,v,m,g):f(p,v,m,g)))}function d(h,p,v,m){var g=0;for(g=0;g<p;g++)o[g]=e[h+g];var x=0,b=v,_=h;if(e[_++]=e[b++],--m===0){for(g=0;g<p;g++)e[_+g]=o[x+g];return}if(p===1){for(g=0;g<m;g++)e[_+g]=e[b+g];e[_+m]=o[x];return}for(var k=r,S,C,T;;){S=0,C=0,T=!1;do if(t(e[b],o[x])<0){if(e[_++]=e[b++],C++,S=0,--m===0){T=!0;break}}else if(e[_++]=o[x++],S++,C=0,--p===1){T=!0;break}while((S|C)<k);if(T)break;
584do{if(S=UA(e[b],o,x,p,0,t),S!==0){for(g=0;g<S;g++)e[_+g]=o[x+g];if(_+=S,x+=S,p-=S,p<=1){T=!0;break}}if(e[_++]=e[b++],--m===0){T=!0;break}if(C=VA(o[x],e,b,m,0,t),C!==0){for(g=0;g<C;g++)e[_+g]=e[b+g];if(_+=C,b+=C,m-=C,m===0){T=!0;break}}if(e[_++]=o[x++],--p===1){T=!0;break}k--}while(S>=Ig||C>=Ig);if(T)break;k<0&&(k=0),k+=2}if(r=k,r<1&&(r=1),p===1){for(g=0;g<m;g++)e[_+g]=e[b+g];e[_+m]=o[x]}else{if(p===0)throw new Error;for(g=0;g<p;g++)e[_+g]=o[x+g]}}function f(h,p,v,m){var g=0;for(g=0;g<m;g++)o[g]=e[v+g];var x=h+p-1,b=m-1,_=v+m-1,k=0,S=0;if(e[_--]=e[x--],--p===0){for(k=_-(m-1),g=0;g<m;g++)e[k+g]=o[g];return}if(m===1){for(_-=p,x-=p,S=_+1,k=x+1,g=p-1;g>=0;g--)e[S+g]=e[k+g];e[_]=o[b];return}for(var C=r;;){var T=0,E=0,A=!1;do if(t(o[b],e[x])<0){if(e[_--]=e[x--],T++,E=0,--p===0){A=!0;break}}else if(e[_--]=o[b--],E++,T=0,--m===1){A=!0;break}while((T|E)<C);if(A)break;do{if(T=p-UA(o[b],e,h,p,p-1,t),T!==0){for(_-=T,x-=T,p-=T,S=_+1,k=x+1,g=T-1;g>=0;g--)e[S+g]=e[k+g];if(p===0){A=!0;break}}if(e[_--]=o[b--],--m===1){A=!0;break}if(E=m-VA(e[x],o,0,m,m-1,t),E!==0){for(_-=E,b-=E,m-=E,S=_+1,k=b+1,g=0;g<E;g++)e[S+g]=o[k+g];if(m<=1){A=!0;break}}if(e[_--]=e[x--],--p===0){A=!0;break}C--}while(T>=Ig||E>=Ig);if(A)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),m===1){for(_-=p,x-=p,S=_+1,k=x+1,g=p-1;g>=0;g--)e[S+g]=e[k+g];e[_]=o[b]}else{if(m===0)throw new Error;for(k=_-(m-1),g=0;g<m;g++)e[k+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function h_(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<sae){i=yj(e,r,n,t),xj(e,r,n,r+i,t);return}var o=aTe(e,t),s=rTe(a);do{if(i=yj(e,r,n,t),i<s){var l=a;l>s&&(l=s),xj(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var $a=1,A0=2,Dh=4,bj=!1;function GA(){bj||(bj=!0)}function wj(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var iTe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wj}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,h_(n,wj)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=$a),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(GA(),c.z=0),isNaN(c.z2)&&(GA(),c.z2=0),isNaN(c.zlevel)&&(GA(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,r,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=Ke(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const oTe=iTe;var lae;lae=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const dD=lae;var p_={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-p_.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?p_.bounceIn(e*2)*.5:p_.bounceOut(e*2-1)*.5+.5}};const uae=p_;
584var Y1=Math.pow,Du=Math.sqrt,ZS=1e-8,cae=1e-4,_j=Du(3),K1=1/3,jo=Rf(),gi=Rf(),Ap=Rf();function fu(e){return e>-ZS&&e<ZS}function dae(e){return e>ZS||e<-ZS}function zr(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function Sj(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function XS(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(fu(c)&&fu(d))if(fu(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=d*d-4*c*f;if(fu(v)){var m=d/c,p=-s/o+m,g=-m/2;p>=0&&p<=1&&(i[h++]=p),g>=0&&g<=1&&(i[h++]=g)}else if(v>0){var x=Du(v),b=c*s+1.5*o*(-d+x),_=c*s+1.5*o*(-d-x);b<0?b=-Y1(-b,K1):b=Y1(b,K1),_<0?_=-Y1(-_,K1):_=Y1(_,K1);var p=(-s-(b+_))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var k=(2*c*s-3*o*d)/(2*Du(c*c*c)),S=Math.acos(k)/3,C=Du(c),T=Math.cos(S),p=(-s-2*C*T)/(3*o),g=(-s+C*(T+_j*Math.sin(S)))/(3*o),E=(-s+C*(T-_j*Math.sin(S)))/(3*o);p>=0&&p<=1&&(i[h++]=p),g>=0&&g<=1&&(i[h++]=g),E>=0&&E<=1&&(i[h++]=E)}}return h}function fae(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(fu(o)){if(dae(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(fu(c))a[0]=-i/(2*o);else if(c>0){var d=Du(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Yu(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=n}function hae(e,t,r,n,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,v,m,g;jo[0]=l,jo[1]=u;for(var x=0;x<1;x+=.05)gi[0]=zr(e,r,a,o,x),gi[1]=zr(t,n,i,s,x),m=Hd(jo,gi),m<h&&(d=x,h=m);h=1/0;for(var b=0;b<32&&!(f<cae);b++)p=d-f,v=d+f,gi[0]=zr(e,r,a,o,p),gi[1]=zr(t,n,i,s,p),m=Hd(gi,jo),p>=0&&m<h?(d=p,h=m):(Ap[0]=zr(e,r,a,o,v),Ap[1]=zr(t,n,i,s,v),g=Hd(Ap,jo),v<=1&&g<h?(d=v,h=g):f*=.5);return c&&(c[0]=zr(e,r,a,o,d),c[1]=zr(t,n,i,s,d)),Du(h)}function sTe(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,v=zr(e,r,a,o,p),m=zr(t,n,i,s,p),g=v-u,x=m-c;d+=Math.sqrt(g*g+x*x),u=v,c=m}return d}function Yr(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function fD(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function lTe(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(fu(i)){if(dae(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(fu(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Du(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function pae(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function py(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function vae(e,t,r,n,a,i,o,s,l){var u,c=.005,d=1/0;jo[0]=o,jo[1]=s;for(var f=0;f<1;f+=.05){gi[0]=Yr(e,r,a,f),gi[1]=Yr(t,n,i,f);var h=Hd(jo,gi);h<d&&(u=f,d=h)}d=1/0;for(var p=0;p<32&&!(c<cae);p++){var v=u-c,m=u+c;gi[0]=Yr(e,r,a,v),gi[1]=Yr(t,n,i,v);var h=Hd(gi,jo);if(v>=0&&h<d)u=v,d=h;else{Ap[0]=Yr(e,r,a,m),Ap[1]=Yr(t,n,i,m);var g=Hd(Ap,jo);m<=1&&g<d?(u=m,d=g):c*=.5}}return l&&(l[0]=Yr(e,r,a,u),l[1]=Yr(t,n,i,u)),Du(d)}function uTe(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,d=1;d<=o;d++){var f=d*c,h=Yr(e,r,a,f),p=Yr(t,n,i,f),v=h-s,m=p-l;u+=Math.sqrt(v*v+m*m),s=h,l=p}return u}var cTe=/cubic-bezier\(([0-9,\.e ]+)\)/;function kO(e){var t=e&&cTe.exec(e);if(t){var r=t[1].split(","),n=+no(r[0]),a=+no(r[1]),i=+no(r[2]),o=+no(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:XS(0,n,i,1,l,s)&&zr(0,a,o,1,s[0])}}}var dTe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||mr,this.ondestroy=t.ondestroy||mr,this.onrestart=t.onrestart||mr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ke(t)?t:uae[t]||kO(t)},e}();const fTe=dTe;var gae=function(){function e(t){this.value=t}return e}(),hTe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new gae(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),pTe=function(){function e(t){this._list=new hTe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new gae(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const dx=pTe;var kj={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function uo(e){return e=Math.round(e),e<0?0:e>255?255:e}function vTe(e){return e=Math.round(e),e<0?0:e>360?360:e}function vy(e){return e<0?0:e>1?1:e}function HA(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?uo(parseFloat(t)/100*255):uo(parseInt(t,10))}function Wd(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?vy(parseFloat(t)/100):vy(parseFloat(t))}function WA(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function hu(e,t,r){return e+(t-e)*r}function si(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function hD(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var mae=new dx(20),Z1=null;function th(e,t){Z1&&hD(Z1,t),Z1=mae.put(e,Z1||t.slice())}function ja(e,t){if(e){t=t||[];var r=mae.get(e);if(r)return hD(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in kj)return hD(t,kj[n]),th(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){si(t,0,0,0,1);return}return si(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),th(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){si(t,0,0,0,1);return}return si(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),th(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?si(t,+u[0],+u[1],+u[2],1):si(t,0,0,0,1);c=Wd(u.pop());case"rgb":if(u.length>=3)return si(t,HA(u[0]),HA(u[1]),HA(u[2]),u.length===3?c:Wd(u[3])),th(e,t),t;si(t,0,0,0,1);return;case"hsla":if(u.length!==4){si(t,0,0,0,1);return}return u[3]=Wd(u[3]),pD(u,t),th(e,t),t;case"hsl":if(u.length!==3){si(t,0,0,0,1);return}return pD(u,t),th(e,t),t;default:return}}si(t,0,0,0,1)}}function pD(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Wd(e[1]),a=Wd(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],si(t,uo(WA(o,i,r+1/3)*255),uo(WA(o,i,r)*255),uo(WA(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function gTe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,d=((i-r)/6+o/2)/o,f=((i-n)/6+o/2)/o;t===i?l=f-d:r===i?l=1/3+c-f:n===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function vD(e,t){var r=ja(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Ys(r,r.length===4?"rgba":"rgb")}}function qA(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return r[0]=uo(hu(o[0],s[0],l)),r[1]=uo(hu(o[1],s[1],l)),r[2]=uo(hu(o[2],s[2],l)),r[3]=vy(hu(o[3],s[3],l)),r}}function mTe(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=ja(t[a]),s=ja(t[i]),l=n-a,u=Ys([uo(hu(o[0],s[0],l)),uo(hu(o[1],s[1],l)),uo(hu(o[2],s[2],l)),vy(hu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function cm(e,t,r,n){var a=ja(e);if(e)return a=gTe(a),t!=null&&(a[0]=vTe(t)),r!=null&&(a[1]=Wd(r)),n!=null&&(a[2]=Wd(n)),Ys(pD(a),"rgba")}function JS(e,t){var r=ja(e);if(r&&t!=null)return r[3]=vy(t),Ys(r,"rgba")}function Ys(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function QS(e,t){var r=ja(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var e2=Math.round;function gy(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ja(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Cj=1e-4;function pu(e){return e<Cj&&e>-Cj}function X1(e){return e2(e*1e3)/1e3}function gD(e){return e2(e*1e4)/1e4}function yTe(e){return"matrix("+X1(e[0])+","+X1(e[1])+","+X1(e[2])+","+X1(e[3])+","+gD(e[4])+","+gD(e[5])+")"}var xTe={left:"start",right:"end",center:"middle",middle:"middle"};function bTe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function wTe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function _Te(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function yae(e){return e&&!!e.image}function STe(e){return e&&!!e.svgElement}function CO(e){return yae(e)||STe(e)}function xae(e){return e.type==="linear"}function bae(e){return e.type==="radial"}function wae(e){return e&&(e.type==="linear"||e.type==="radial")}
584function oC(e){return"url(#"+e+")"}function _ae(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Sae(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*c_,a=Ge(e.scaleX,1),i=Ge(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+e2(o*c_)+"deg, "+e2(s*c_)+"deg)"),l.join(" ")}var kTe=function(){return ot.hasGlobalWindow&&ke(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),mD=Array.prototype.slice;function Es(e,t,r){return(t-e)*r+e}function YA(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Es(t[i],r[i],n);return e}function CTe(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Es(t[o][s],r[o][s],n)}return e}function J1(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function Tj(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function TTe(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function ATe(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:mD.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function dm(e){if(Ln(e)){var t=e.length;if(Ln(e[0])){for(var r=[],n=0;n<t;n++)r.push(mD.call(e[n]));return r}return mD.call(e)}return e}function v_(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function ETe(e){return Ln(e&&e[0])?2:1}var Q1=0,g_=1,kae=2,E0=3,yD=4,xD=5,Aj=6;function Ej(e){return e===yD||e===xD}function eb(e){return e===g_||e===kae}var Pg=[0,0,0,0],NTe=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Aj,l=r;if(Ln(r)){var u=ETe(r);s=u,(u===1&&!lt(r[0])||u===2&&!lt(r[0][0]))&&(o=!0)}else if(lt(r)&&!hy(r))s=Q1;else if(fe(r))if(!isNaN(+r))s=Q1;else{var c=ja(r);c&&(l=c,s=E0)}else if(nC(r)){var d=Q({},l);d.colorStops=re(r.colorStops,function(h){return{offset:h.offset,color:ja(h.color)}}),xae(r)?s=yD:bae(r)&&(s=xD),l=d}i===0?this.valType=s:(s!==this.valType||s===Aj)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=ke(n)?n:uae[n]||kO(n)),a.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,m){return v.time-m.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=eb(a),u=Ej(a),c=0;c<i;c++){var d=n[c],f=d.value,h=o.value;d.percent=d.time/t,s||(l&&c!==i-1?ATe(f,h,a):u&&TTe(f.colorStops,h.colorStops))}if(!s&&a!==xD&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<i;c++)a===Q1?n[c].additiveValue=n[c].value-p:a===E0?n[c].additiveValue=J1([],n[c].value,p,-1):eb(a)&&(n[c].additiveValue=a===g_?J1([],n[c].value,p,-1):Tj([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===E0,c,d=this._lastFr,f=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var v=f(d+1,s-1);for(c=v;c>=0&&!(o[c].percent<=r);c--);c=f(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>r);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var m=p.percent-h.percent,g=m===0?1:f((r-h.percent)/m,1);p.easingFunc&&(g=p.easingFunc(g));var x=n?this._additiveValue:u?Pg:t[l];if((eb(i)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)t[l]=g<1?h.rawValue:p.rawValue;else if(eb(i))i===g_?YA(x,h[a],p[a],g):CTe(x,h[a],p[a],g);else if(Ej(i)){var b=h[a],_=p[a],k=i===yD;t[l]={type:k?"linear":"radial",x:Es(b.x,_.x,g),y:Es(b.y,_.y,g),colorStops:re(b.colorStops,function(C,T){var E=_.colorStops[T];return{offset:Es(C.offset,E.offset,g),color:v_(YA([],C.color,E.color,g))}}),global:_.global},k?(t[l].x2=Es(b.x2,_.x2,g),t[l].y2=Es(b.y2,_.y2,g)):t[l].r=Es(b.r,_.r,g)}else if(u)YA(x,h[a],p[a],g),n||(t[l]=v_(x));else{var S=Es(h[a],p[a],g);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Q1?t[n]=t[n]+a:r===E0?(ja(t[n],Pg),J1(Pg,Pg,a,1),t[n]=v_(Pg)):r===g_?J1(t[n],t[n],a,1):r===kae&&Tj(t[n],t[n],a,1)},e}(),TO=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){mO("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,tt(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new NTe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,f=d[d.length-1];u=f&&f.value,c.valType===E0&&u&&(u=v_(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,dm(u),a),this._trackKeys.push(s)}l.addKeyframe(t,dm(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(r._target[s.propName]=d.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var f=new fTe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var v=!1,m=0;m<p.length;m++)if(p[m]._clip){v=!0;break}v||(r._additiveAnimators=null)}for(var m=0;m<n.length;m++)n[m].step(r._target,h);var g=r._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return re(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=dm(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||tt(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function np(){return new Date().getTime()}var ITe=function(e){Vt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=np()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update(
584))},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(dD(n),!r._paused&&r.update())}dD(n)},t.prototype.start=function(){this._running||(this._time=np(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=np(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=np()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new TO(r,n.loop);return this.addAnimator(a),a},t}(Di);const PTe=ITe;var MTe=300,KA=ot.domSupported,ZA=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=re(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),Nj={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ij=!1;function bD(e){var t=e.pointerType;return t==="pen"||t==="touch"}function DTe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function XA(e){e&&(e.zrByTouch=!0)}function LTe(e,t){return ui(e.dom,new RTe(e,t),!0)}function Cae(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var RTe=function(){function e(t,r){this.stopPropagation=mr,this.stopImmediatePropagation=mr,this.preventDefault=mr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Yi={mousedown:function(e){e=ui(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ui(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ui(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ui(this.dom,e);var t=e.toElement||e.relatedTarget;Cae(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Ij=!0,e=ui(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Ij||(e=ui(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ui(this.dom,e),XA(e),this.__lastTouchMoment=ne
584w Date,this.handler.processGesture(e,"start"),Yi.mousemove.call(this,e),Yi.mousedown.call(this,e)},touchmove:function(e){e=ui(this.dom,e),XA(e),this.handler.processGesture(e,"change"),Yi.mousemove.call(this,e)},touchend:function(e){e=ui(this.dom,e),XA(e),this.handler.processGesture(e,"end"),Yi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<MTe&&Yi.click.call(this,e)},pointerdown:function(e){Yi.mousedown.call(this,e)},pointermove:function(e){bD(e)||Yi.mousemove.call(this,e)},pointerup:function(e){Yi.mouseup.call(this,e)},pointerout:function(e){bD(e)||Yi.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Yi[e]=function(t){t=ui(this.dom,t),this.trigger(e,t)}});var wD={pointermove:function(e){bD(e)||wD.mousemove.call(this,e)},pointerup:function(e){wD.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function $Te(e,t){var r=t.domHandlers;ot.pointerEventsSupported?D(ZA.pointer,function(n){m_(t,n,function(a){r[n].call(e,a)})}):(ot.touchEventsSupported&&D(ZA.touch,function(n){m_(t,n,function(a){r[n].call(e,a),DTe(t)})}),D(ZA.mouse,function(n){m_(t,n,function(a){a=wO(a),t.touching||r[n].call(e,a)})}))}function OTe(e,t){ot.pointerEventsSupported?D(Nj.pointer,r):ot.touchEventsSupported||D(Nj.mouse,r);function r(n){function a(i){i=wO(i),Cae(e,i.target)||(i=LTe(e,i),t.domHandlers[n].call(e,i))}m_(t,n,a,{capture:!0})}}function m_(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,cD(e.domTarget,t,r,n)}function JA(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&GCe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Pj=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),zTe=function(e){Vt(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Pj(r,Yi),KA&&(a._globalHandlerScope=new Pj(document,wD)),$Te(a,a._localHandlerScope),a}return t.prototype.dispose=function(){JA(this._localHandlerScope),KA&&JA(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,KA&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?OTe(this,n):JA(n)}},t}(Di);const FTe=zTe;var Tae=1;ot.hasGlobalWindow&&(Tae=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var t2=Tae,_D=.4,SD="#333",kD="#ccc",BTe="#eee",Mj=iC,Dj=5e-5;function Ac(e){return e>Dj||e<-Dj}var Ec=[],rh=[],QA=Pi(),eE=Math.abs,jTe=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Ac(this.rotation)||Ac(this.x)||Ac(this.y)||Ac(this.scaleX-1)||Ac(this.scaleY-1)||Ac(this.skewX)||Ac(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&Mj(n);return}n=n||Pi(),r?this.getLocalTransform(n):Mj(n),t&&(r?qs(n,t,n):_O(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ec);var n=Ec[0]<0?-1:1,a=Ec[1]<0?-1:1,i=((Ec[0]-n)*r+n)/Ec[0]||0,o=((Ec[1]-a)*r+a)/Ec[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pi(),Rv(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);
vendor: 4,367 bytes, lines 584-585
584n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(qs(rh,t.invTransform,r),r=rh);var n=this.originX,a=this.originY;(n||a)&&(QA[4]=n,QA[5]=a,qs(rh,r,QA),rh[4]-=n,rh[5]-=a,r=rh),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&sn(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&sn(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&eE(t[0]-1)>1e-10&&eE(t[3]-1)>1e-10?Math.sqrt(eE(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Aae(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,v=a+l;r[4]=-p*i-f*v*o,r[5]=-v*o-h*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=f*o,u&&$f(r,r,u),r[4]+=n+c,r[5]+=a+d,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),ns=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Aae(e,t){for(var r=0;r<ns.length;r++){var n=ns[r];e[n]=t[n]}}const zs=jTe;var Lj={};function Va(e,t){t=t||Wu;var r=Lj[t];r||(r=Lj[t]=new dx(500));var n=r.get(e);return n==null&&(n=qu.measureText(e,t).width,r.put(e,n)),n}function Rj(e,t,r,n){var a=Va(e,t),i=sC(t),o=N0(0,a,r),s=Lh(0,i,n),l=new We(o,s,a,i);return l}function fx(e,t,r,n){var a=((e||"")+"").split(` 585`),i=a.length;if(i===1)return Rj(a[0],t,r,n);for(var o=new We(0,0,0,0),s=0;s<a.length;s++){var l=Rj(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function N0(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Lh(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function sC(e){return Va("å½",e)}function vo(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function r2(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",d="top";if(n instanceof Array)l+=vo(n[0],r.width),u+=vo(n[1],r.height),c=null,d=null;else switch(n){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var tE="__zr_normal__",rE=ns.concat(["ignore"]),VTe=ts(ns,function(e,t){return e[t]=!0,e},{ignore:!1}),nh={},UTe=new We(0,0,0,0),AO=function(){function e(t){this.id=Qne(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=UTe;
585n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(nh,n,c):r2(nh,n,c),i.x=nh.x,i.y=nh.y,o=nh.align,s=nh.verticalAlign;var d=n.origin;if(d&&n.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=vo(d[0],c.width),h=vo(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,x=void 0,b=void 0;v&&this.canBeInsideText()?(g=n.insideFill,x=n.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(g),b=!0)):(g=n.outsideFill,x=n.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(g),b=!0)),g=g||"#000",(g!==m.fill||x!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=g,m.stroke=x,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=$a,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?kD:SD},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ja(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,Ys(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Q(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Te(t))for(var n=t,a=tt(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==tE)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,rE)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(tE,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===tE,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ke(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){mO("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,r,n,c),f&&f.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$a),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var d=a[o-1],f=!!(d&&d.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,m=this._textGuide;v&&v.useStates(t,r,f),m&&m.useStates(t,r,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$a)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Ke(this.currentStates,t);
585if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=Ke(a,t),o=Ke(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];Q(r,i),i.textConfig&&(n=n||{},Q(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=Q({},a?this.textConfig:n.textConfig),Q(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<rE.length;c++){var d=rE[c],f=i&&VTe[d];r&&r[d]!=null?f?(u=!0,l[d]=r[d]):this[d]=r[d]:s&&n[d]!=null&&(f?(u=!0,l[d]=n[d]):this[d]=n[d])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new zs,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Q(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=$a;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this,i=new TO(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=Ke(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){nE(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){nE(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=nE(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=$a;function r(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();kr(AO,Di);kr(AO,zs);function nE(e,t,r,n,a){r=r||{};var i=[];Eae(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(p,v){r.during(v)}
585);for(var f=0;f<i.length;f++){var h=i[f];c&&h.done(c),d&&h.aborted(d),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function aE(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function GTe(e){return Ln(e[0])}function HTe(e,t,r){if(Ln(t[r]))if(Ln(e[r])||(e[r]=[]),Wa(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),aE(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(GTe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?aE(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else aE(i,a,o);i.length=a.length}else e[r]=t[r]}function WTe(e,t){return e===t||Ln(e)&&Ln(t)&&qTe(e,t)}function qTe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Eae(e,t,r,n,a,i,o,s){for(var l=tt(n),u=a.duration,c=a.delay,d=a.additive,f=a.setToFinal,h=!Te(i),p=e.animators,v=[],m=0;m<l.length;m++){var g=l[m],x=n[g];if(x!=null&&r[g]!=null&&(h||i[g]))if(Te(x)&&!Ln(x)&&!nC(x)){if(t){s||(r[g]=x,e.updateDuringAnimation(t));continue}Eae(e,g,r[g],x,a,i&&i[g],o,s)}else v.push(g);else s||(r[g]=x,e.updateDuringAnimation(t),v.push(g))}var b=v.length;if(!d&&b)for(var _=0;_<p.length;_++){var k=p[_];if(k.targetName===t){var S=k.stopTracks(v);if(S){var C=Ke(p,k);p.splice(C,1)}}}if(a.force||(v=Et(v,function(N){return!WTe(n[N],r[N])}),b=v.length),b>0||a.force&&!o.length){var T=void 0,E=void 0,A=void 0;if(s){E={},f&&(T={});for(var _=0;_<b;_++){var g=v[_];E[g]=r[g],f?T[g]=n[g]:r[g]=n[g]}}else if(f){A={};for(var _=0;_<b;_++){var g=v[_];A[g]=dm(r[g]),HTe(r,n,g)}}var k=new TO(r,!1,!1,d?Et(p,function(P){return P.targetName===t}):null);k.targetName=t,a.scope&&(k.scope=a.scope),f&&T&&k.whenWithKeys(0,T,v),A&&k.whenWithKeys(0,A,v),k.whenWithKeys(u??500,s?E:n,v).delay(c||0),e.addAnimator(k,t),o.push(k)}}const Nae=AO;var Iae=function(e){Vt(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=Ke(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=Ke(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new We(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(We.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Nae);Iae.prototype.type="group";const Me=Iae;/*! 586* ZRender, a high performance 2d drawing library. 587* 588* Copyright (c) 2013, Baidu Inc. 589* All rights reserved. 590* 591* LICENSE 592* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt 593*/var y_={},Pae={};function YTe(e){delete Pae[e]}function KTe(e){if(!e)return!1;if(typeof e=="string")return QS(e,1)<_D;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=QS(t[a].color,1);return r/=n,r<_D}return!1}var ZTe=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new oTe,o=n.renderer||"canvas";y_[o]||(o=tt(y_)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new y_[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!ot.node&&!ot.worker&&!l?new FTe(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,d=c==null||c==="auto"?ot.touchEventsSupported:!!c,f=44,h;d&&(h=Ge(n.pointerSize,f)),this.handler=new tTe(i,s,u,s.root,h),this.animation=new PTe({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()}
593,e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=KTe(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=np();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=np();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Me&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,YTe(this.id
593)},e}();function $j(e,t){var r=new ZTe(Qne(),e,t);return Pae[r.id]=r,r}function XTe(e,t){y_[e]=t}var Oj=1e-4,Mae=20;function JTe(e){return e.replace(/^\s+|\s+$/g,"")}function Ct(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function le(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return fe(e)?JTe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function cr(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Mae),e=(+e).toFixed(t),r?e:+e}function ki(e){return e.sort(function(t,r){return t-r}),e}function Go(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return QTe(e)}function QTe(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function Dae(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function eAe(e,t){var r=ts(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=re(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=re(a,function(h){return Math.floor(h)}),s=ts(o,function(h,p){return h+p},0),l=re(a,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,f=l.length;d<f;++d)l[d]>u&&(u=l[d],c=d);++o[c],l[c]=0,++s}return re(o,function(h){return h/n})}function tAe(e,t){var r=Math.max(Go(e),Go(t)),n=e+t;return r>Mae?n:cr(n,r)}var zj=9007199254740991;function Lae(e){var t=Math.PI*2;return(e%t+t)%t}function n2(e){return e>-Oj&&e<Oj}var rAe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function as(e){if(e instanceof Date)return e;if(fe(e)){var t=rAe.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function nAe(e){return Math.pow(10,EO(e))}function EO(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Rae(e,t){var r=EO(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function iE(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function Fj(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var a=e[n].interval,i=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-r),t=a[o],r=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function il(e){var t=parseFloat(e);return t==e&&(t!==0||!fe(e)||e.indexOf("x")<=0)?t:NaN}function $ae(e){return!isNaN(il(e))}function Oae(){return Math.round(Math.random()*9)}function zae(e,t){return t===0?e:zae(t,e%t)}function Bj(e,t){return e==null?t:t==null?e:e*t/zae(e,t)}function mt(e){throw new Error(e)}function jj(e,t,r){return(t-e)*r+e}var Fae="series\0",Bae="\0_ec_\0";function Pt(e){return e instanceof Array?e:e==null?[]:[e]}function yf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Vj=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function $v(e){return Te(e)&&!te(e)&&!(e instanceof Date)?e.value:e}function aAe(e){return Te(e)&&!(e instanceof Array)}function jae(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Se();D(t,function(l,u){if(!Te(l)){t[u]=null;return}});var s=iAe(e,o,r);return(n||a)&&oAe(s,e,o,t),n&&sAe(s,t),n||a?lAe(s,t,a):i&&uAe(s,t),cAe(s),s}function iAe(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||my(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function oAe(e,t,r,n){D(n,function(a,i){if(!(!a||a.id==null)){var o=fm(a.id),s=r.get(o);if(s!=null){var l=e[s];Zn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function sAe(e,t){D(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!my(r)&&!my(i)&&Vae("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function lAe(e,t,r){D(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||my(a.existing)||a.existing&&n.id!=null&&!Vae("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function uAe(e,t){D(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function cAe(e){var t=Se();D(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),D(e,function(r){var n=r.newOption;Zn(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),D(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;
593if(Te(i)){if(o.name=i.name!=null?fm(i.name):a?a.name:Fae+n,a)o.id=fm(a.id);else if(i.id!=null)o.id=fm(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Vae(e,t,r){var n=Mr(t[e],null),a=Mr(r[e],null);return n!=null&&a!=null&&n===a}function fm(e){return Mr(e,"")}function Mr(e,t){return e==null?t:fe(e)?e:lt(e)||rD(e)?e+"":t}function NO(e){var t=e.name;return!!(t&&t.indexOf(Fae))}function my(e){return e&&e.id!=null&&fm(e.id).indexOf(Bae)===0}function dAe(e){return Bae+e}function fAe(e,t,r){D(e,function(n){var a=n.newOption;Te(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=hAe(t,a,n.existing,r))})}function hAe(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function pAe(e,t){var r={},n={};return a(e||[],r),a(t||[],n,r),[i(r),i(n)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var d=Mr(o[u].seriesId,null);if(d==null)return;for(var f=Pt(o[u].dataIndex),h=l&&l[d],p=0,v=f.length;p<v;p++){var m=f[p];h&&h[m]?h[m]=null:(s[d]||(s[d]={}))[m]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function xf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return te(t.dataIndex)?re(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return te(t.name)?re(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function at(){var e="__ec_inner_"+vAe++;return function(t){return t[e]||(t[e]={})}}var vAe=Oae();function hm(e,t,r){var n=IO(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var d=hx(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function IO(e,t){var r;if(fe(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=Se(),i={},o=!1;return D(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||t&&t.includeMainTypes&&Ke(t.includeMainTypes,c)<0)){o=o||!!c;var f=a.get(c)||a.set(c,{});f[d]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var wr={useDefault:!0,enableAll:!1,enableNone:!1},gAe={useDefault:!1,enableAll:!0,enableNone:!0};function hx(e,t,r,n){n=n||wr;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Zn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Zn(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function Uae(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function mAe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function yAe(e){return e==="auto"?ot.domSupported?"html":"richText":e||"html"}function CD(e,t){var r=Se(),n=[];return D(e,function(a){var i=t(a);(r.get(i)||(n.push(i),r.set(i,[]))).push(a)}),{keys:n,buckets:r}}function Gae(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(lt(n)){var o=jj(r||0,n,a);return cr(o,i?Math.max(Go(r||0),Go(n)):t)}else{if(fe(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var f=e.getDimensionInfo(d);if(f&&f.type==="ordinal")s[d]=(a<1&&l?l:u)[d];else{var h=l&&l[d]?l[d]:0,p=u[d],o=jj(h,p,a);s[d]=cr(o,i?Math.max(Go(h),Go(p)):t)}}return s}}var xAe=".",Nc="___EC__COMPONENT__CONTAINER___",Hae="___EC__EXTENDED_CLASS___";function Ho(e){var t={main:"",sub:""};if(e){var r=e.split(xAe);t.main=r[0]||"",t.sub=r[1]||""}return t}function bAe(e){Zn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function wAe(e){return!!(e&&e[Hae])}function PO(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return _Ae(n)?a=function(i){K(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},wCe(a,this)),Q(a.prototype,r),a[Hae]=!0,a.extend=this.extend,a.superCall=CAe,a.superApply=TAe,a.superClass=n,a}}function _Ae(e){return ke(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Wae(e,t){e.extend=t.extend}var SAe=Math.round(Math.random()*10);function kAe(e){var t=["__\0is_clz",SAe++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function CAe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function TAe(e,t,r){return this.superClass.prototype[t].apply(e,r)}function lC(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){bAe(a),n.prototype.type=a;var i=Ho(a);if(!i.sub)t[i.main]=n;else if(i.sub!==Nc){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Nc]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=Ho(n),i=[],o=t[a.main];return o&&o[Nc]?D(o,function(s,l){l!==Nc&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=Ho(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return D(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=Ho(n),i=t[a.main];return i&&i[Nc]};function r(n){var a=t[n.main];return(!a||!a[Nc])&&(a=t[n.main]={},a[Nc]=!0),a}}function bf(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&Ke(a,l)>=0||i&&Ke(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var AAe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
593pacity"],["shadowColor"]],EAe=bf(AAe),NAe=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return EAe(this,t,r)},e}(),TD=new dx(50);function IAe(e){if(typeof e=="string"){var t=TD.get(e);return t&&t.image}else return e}function MO(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=TD.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!uC(t)&&i.pending.push(o)):(t=qu.loadImage(e,Uj,Uj),t.__zrImageSrc=e,TD.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Uj(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function uC(e){return e&&e.width&&e.height}var oE=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function PAe(e,t,r,n,a){if(!t)return"";var i=(e+"").split(` 594`);a=qae(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=Yae(i[o],a);return i.join(` 595`)}function qae(e,t,r,n){n=n||{};var a=Q({},n);a.font=t,r=Ge(r,"..."),a.maxIterations=Ge(n.maxIterations,2);var i=a.minChar=Ge(n.minChar,0);a.cnCharWidth=Va("å½",t);var o=a.ascCharWidth=Va("a",t);a.placeholder=Ge(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Va(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function Yae(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=Va(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?MAe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Va(e,n)}return e===""&&(e=t.placeholder),e}function MAe(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function DAe(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=sC(a),s=Ge(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,d;c!=null&&(r==="break"||r==="breakAll")?d=e?Kae(e,t.font,c,r==="breakAll",0).lines:[]:d=e?e.split(` 596`):[];var f=d.length*s,h=Ge(t.height,f);if(f>h&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(e&&i&&c!=null)for(var v=qae(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<d.length;m++)d[m]=Yae(d[m],v);for(var g=h,x=0,m=0;m<d.length;m++)x=Math.max(Va(d[m],a),x);c==null&&(c=x);var b=x;return n&&(g+=n[0]+n[2],b+=n[1]+n[3],c+=n[1]+n[3]),l&&(b=c),{lines:d,height:h,outerWidth:b,outerHeight:g,lineHeight:s,calculatedLineHeight:o,c
596ontentWidth:x,contentHeight:f,width:c}}var LAe=function(){function e(){}return e}(),Gj=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),RAe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function $Ae(e,t){var r=new RAe;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=oE.lastIndex=0,l;(l=oE.exec(e))!=null;){var u=l.index;u>s&&sE(r,e.substring(s,u),t,o),sE(r,l[2],t,o,l[1]),s=oE.lastIndex}s<e.length&&sE(r,e.substring(s,e.length),t,o);var c=[],d=0,f=0,h=t.padding,p=i==="truncate",v=t.lineOverflow==="truncate";function m(B,j,I){B.width=j,B.lineHeight=I,d+=I,f=Math.max(f,j)}e:for(var g=0;g<r.lines.length;g++){for(var x=r.lines[g],b=0,_=0,k=0;k<x.tokens.length;k++){var S=x.tokens[k],C=S.styleName&&t.rich[S.styleName]||{},T=S.textPadding=C.padding,E=T?T[1]+T[3]:0,A=S.font=C.font||t.font;S.contentHeight=sC(A);var N=Ge(C.height,S.contentHeight);if(S.innerHeight=N,T&&(N+=T[0]+T[2]),S.height=N,S.lineHeight=Hs(C.lineHeight,t.lineHeight,N),S.align=C&&C.align||t.align,S.verticalAlign=C&&C.verticalAlign||"middle",v&&a!=null&&d+S.lineHeight>a){k>0?(x.tokens=x.tokens.slice(0,k),m(x,_,b),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g);break e}var P=C.width,L=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")S.percentWidth=P,c.push(S),S.contentWidth=Va(S.text,A);else{if(L){var R=C.backgroundColor,M=R&&R.image;M&&(M=IAe(M),uC(M)&&(S.width=Math.max(S.width,M.width*N/M.height)))}var $=p&&n!=null?n-_:null;$!=null&&$<S.width?!L||$<E?(S.text="",S.width=S.contentWidth=0):(S.text=PAe(S.text,$-E,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=Va(S.text,A)):S.contentWidth=Va(S.text,A)}S.width+=E,_+=S.width,C&&(b=Math.max(b,S.lineHeight))}m(x,_,b)}r.outerWidth=r.width=Ge(n,f),r.outerHeight=r.height=Ge(a,d),r.contentHeight=d,r.contentWidth=f,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var g=0;g<c.length;g++){var S=c[g],V=S.percentWidth;S.width=parseInt(V,10)/100*r.width}return r}function sE(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,d;if(n){var f=o.padding,h=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var p=vo(o.width,n.width)+h;s.length>0&&p+n.accumWidth>n.width&&(c=t.split(` 597`),u=!0),n.accumWidth=p}else{var v=Kae(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,d=v.linesWidths,c=v.lines}}else c=t.split(` 598`);for(var m=0;m<c.length;m++){var g=c[m],x=new LAe;if(x.styleName=a,x.text=g,x.isLineHolder=!g&&!i,typeof o.width=="number"?x.width=o.width:x.width=d?d[m]:Va(g,l),!m&&!u){var b=(s[s.length-1]||(s[0]=new Gj)).tokens,_=b.length;_===1&&b[0].isLineHolder?b[0]=x:(g||!_||i)&&b.push(x)}else s.push(new Gj([x]))}}function OAe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zAe=ts(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function FAe(e){return OAe(e)?!!zAe[e]:!0}function Kae(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===` 599`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Va(f,t),p=n?!1:!FAe(f);if(i.length?c+h>r:a+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var AD="__zr_style_"+Math.round(Math.random()*10),qd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cC={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qd[AD]=!0;var Hj=["z","z2","invisible"],BAe=["invisible"],jAe=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=tt(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&VAe(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect
599();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new We(0,0,0,0)),n?We.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new We(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Q(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=A0,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&A0)},t.prototype.styleUpdated=function(){this.__dirty&=~A0},t.prototype.createStyle=function(r){return aC(qd,r)},t.prototype.useStyle=function(r){r[AD]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[AD]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Hj)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=tt(c),f=0;f<d.length;f++){var h=d[f];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var p=tt(u),f=0;f<p.length;f++){var h=p[f];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?BAe:Hj,f=0;f<v.length;f++){var h=v[f];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return Q(r,n),r},t.prototype.getAnimationStyleProps=function(){return cC},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=$a|A0}(),t}(Nae),lE=new We(0,0,0,0),uE=new We(0,0,0,0);function VAe(e,t,r){return lE.copy(e.getBoundingRect()),e.transform&&lE.applyTransform(e.transform),uE.width=t,uE.height=r,!lE.intersect(uE)}const Mi=jAe;var da=Math.min,fa=Math.max,cE=Math.sin,dE=Math.cos,Ic=Math.PI*2,tb=Rf(),rb=Rf(),nb=Rf();function dC(e,t,r){if(e.length!==0){for(var n=e[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],a=da(a,n[0]),i=fa(i,n[0]),o=da(o,n[1]),s=fa(s,n[1]);t[0]=a,t[1]=o,r[0]=i,r[1]=s}}function Wj(e,t,r,n,a,i){a[0]=da(e,r),a[1]=da(t,n),i[0]=fa(e,r),i[1]=fa(t,n)}var qj=[],Yj=[];function UAe(e,t,r,n,a,i,o,s,l,u){var c=fae,d=zr,f=c(e,r,a,o,qj);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<f;h++){var p=d(e,r,a,o,qj[h]);l[0]=da(p,l[0]),u[0]=fa(p,u[0])}f=c(t,n,i,s,Yj);for(var h=0;h<f;h++){var v=d(t,n,i,s,Yj[h]);l[1]=da(v,l[1]),u[1]=fa(v,u[1])}l[0]=da(e,l[0]),u[0]=fa(e,u[0]),l[0]=da(o,l[0]),u[0]=fa(o,u[0]),l[1]=da(t,l[1]),u[1]=fa(t,u[1]),l[1]=da(s,l[1]),u[1]=fa(s,u[1])}function GAe(e,t,r,n,a,i,o,s){var l=pae,u=Yr,c=fa(da(l(e,r,a),1),0),d=fa(da(l(t,n,i),1),0),f=u(e,r,a,c),h=u(t,n,i,d);o[0]=da(e,a,f),o[1]=da(t,i,h),s[0]=fa(e,a,f),s[1]=fa(t,i,h)}function HAe(e,t,r,n,a,i,o,s,l){var u=cu,c=du,d=Math.abs(a-i);if(d%Ic<1e-4&&d>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(tb[0]=dE(a)*r+e,tb[1]=cE(a)*n+t,rb[0]=dE(i)*r+e,rb[1]=cE(i)*n+t,u(s,tb,rb),c(l,tb,rb),a=a%Ic,a<0&&(a=a+Ic),i=i%Ic,i<0&&(i=i+Ic),a>i&&!o?i+=Ic:a<i&&o&&(a+=Ic),o){var f=i;i=a,a=f}for(var h=0;h<i;h+=Math.PI/2)h>a&&(nb[0]=dE(h)*r+e,nb[1]=cE(h)*n+t,u(s,nb,s),c(l,nb,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pc=[],Mc=[],Co=[],Ll=[],To=[],Ao=[],fE=Math.min,hE=Math.max,Dc=Math.cos,Lc=Math.sin,_s=Math.abs,ED=Math.PI,Yl=ED*2,pE=typeof Float32Array<"u",Mg=[];function vE(e){var t=Math.round(e/ED*1e8)/1e8;return t%2*ED}function Zae(e,t){var r=vE(e[0]);r<0&&(r+=Yl);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Yl?a=r+Yl:t&&r-a>=Yl?a=r-Yl:!t&&r>a?a=r+(Yl-vE(r-a)):t&&r<a&&(a=r-(Yl-vE(a-r))),e[0]=r,e[1]=a}var is=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=_s(n/t2/t)||0,this._uy=_s(n/t2/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Mt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=_s(t-this._xi),a=_s(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(Mt.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>
599this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(Mt.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(Mt.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Mg[0]=a,Mg[1]=i,Zae(Mg,o),a=Mg[0],i=Mg[1];var s=i-a;return this.addData(Mt.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Dc(i)*n+t,this._yi=Lc(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(Mt.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Mt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&pE&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();pE&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,pE&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Co[0]=Co[1]=To[0]=To[1]=Number.MAX_VALUE,Ll[0]=Ll[1]=Ao[0]=Ao[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case Mt.M:r=a=t[o++],n=i=t[o++],To[0]=a,To[1]=i,Ao[0]=a,Ao[1]=i;break;case Mt.L:Wj(r,n,t[o],t[o+1],To,Ao),r=t[o++],n=t[o++];break;case Mt.C:UAe(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],To,Ao),r=t[o++],n=t[o++];break;case Mt.Q:GAe(r,n,t[o++],t[o++],t[o],t[o+1],To,Ao),r=t[o++],n=t[o++];break;case Mt.A:var u=t[o++],c=t[o++],d=t[o++],f=t[o++],h=t[o++],p=t[o++]+h;o+=1;var v=!t[o++];l&&(a=Dc(h)*d+u,i=Lc(h)*f+c),HAe(u,c,d,f,h,p,v,To,Ao),r=Dc(p)*d+u,n=Lc(p)*f+c;break;case Mt.R:a=r=t[o++],i=n=t[o++];var m=t[o++],g=t[o++];Wj(a,i,a+m,i+g,To,Ao);break;case Mt.Z:r=a,n=i;break}cu(Co,Co,To),du(Ll,Ll,Ao)}return o===0&&(Co[0]=Co[1]=Ll[0]=Ll[1]=0),new We(Co[0],Co[1],Ll[0]-Co[0],Ll[1]-Co[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,d=0,f=0;f<r;){var h=t[f++],p=f===1;p&&(i=t[f],o=t[f+1],s=i,l=o);var v=-1;switch(h){case Mt.M:i=s=t[f++],o=l=t[f++];break;case Mt.L:{var m=t[f++],g=t[f++],x=m-i,b=g-o;(_s(x)>n||_s(b)>a||f===r-1)&&(v=Math.sqrt(x*x+b*b),i=m,o=g);break}case Mt.C:{var _=t[f++],k=t[f++],m=t[f++],g=t[f++],S=t[f++],C=t[f++];v=sTe(i,o,_,k,m,g,S,C,10),i=S,o=C;break}case Mt.Q:{var _=t[f++],k=t[f++],m=t[f++],g=t[f++];v=uTe(i,o,_,k,m,g,10),i=m,o=g;break}case Mt.A:var T=t[f++],E=t[f++],A=t[f++],N=t[f++],P=t[f++],L=t[f++],R=L+P;f+=1,t[f++],p&&(s=Dc(P)*A+T,l=Lc(P)*N+E),v=hE(A,N)*fE(Yl,Math.abs(L)),i=Dc(R)*A+T,o=Lc(R)*N+E;break;case Mt.R:{s=i=t[f++],l=o=t[f++];var M=t[f++],$=t[f++];v=M*2+$*2;break}case Mt.Z:{var x=s-i,b=l-o;v=Math.sqrt(x*x+b*b),i=s,o=l;break}}v>=0&&(u[d++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=r<1,p,v,m=0,g=0,x,b=0,_,k;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,x=r*v,!x)))e:for(var S=0;S<o;){var C=n[S++],T=S===1;switch(T&&(u=n[S],c=n[S+1],s=u,l=c),C!==Mt.L&&b>0&&(t.lineTo(_,k),b=0),C){case Mt.M:s=u=n[S++],l=c=n[S++],t.moveTo(u,c);break;case Mt.L:{d=n[S++],f=n[S++];var E=_s(d-u),A=_s(f-c);if(E>a||A>i){if(h){var N=p[g++];if(m+N>x){var P=(x-m)/N;t.lineTo(u*(1-P)+d*P,c*(1-P)+f*P);break e}m+=N}t.lineTo(d,f),u=d,c=f,b=0}else{var L=E*E+A*A;L>b&&(_=d,k=f,b=L)}break}case Mt.C:{var R=n[S++],M=n[S++],$=n[S++],V=n[S++],B=n[S++],j=n[S++];if(h){var N=p[g++];if(m+N>x){var P=(x-m)/N;Yu(u,R,$,B,P,Pc),Yu(c,M,V,j,P,Mc),t.bezierCurveTo(Pc[1],Mc[1],Pc[2],Mc[2],Pc[3],Mc[3]);break e}m+=N}t.bezierCurveTo(R,M,$,V,B,j),u=B,c=j;break}case Mt.Q:{var R=n[S++],M=n[S++],$=n[S++],V=n[S++];if(h){var N=p[g++];if(m+N>x){var P=(x-m)/N;py(u,R,$,P,Pc),py(c,M,V,P,Mc),t.quadraticCurveTo(Pc[1],Mc[1],Pc[2],Mc[2]);break e}m+=N}t.quadraticCurveTo(R,M,$,V),u=$,c=V;break}case Mt.A:var I=n[S++],U=n[S++],Y=n[S++],O=n[S++],H=n[S++],ie=n[S++],ee=n[S++],se=!n[S++],oe=Y>
599O?Y:O,be=_s(Y-O)>.001,me=H+ie,Z=!1;if(h){var N=p[g++];m+N>x&&(me=H+ie*(x-m)/N,Z=!0),m+=N}if(be&&t.ellipse?t.ellipse(I,U,Y,O,ee,H,me,se):t.arc(I,U,oe,H,me,se),Z)break e;T&&(s=Dc(H)*Y+I,l=Lc(H)*O+U),u=Dc(me)*Y+I,c=Lc(me)*O+U;break;case Mt.R:s=u=n[S],l=c=n[S+1],d=n[S++],f=n[S++];var J=n[S++],we=n[S++];if(h){var N=p[g++];if(m+N>x){var xe=x-m;t.moveTo(d,f),t.lineTo(d+fE(xe,J),f),xe-=J,xe>0&&t.lineTo(d+J,f+fE(xe,we)),xe-=we,xe>0&&t.lineTo(d+hE(J-xe,0),f+we),xe-=J,xe>0&&t.lineTo(d,f+hE(we-xe,0));break e}m+=N}t.rect(d,f,J,we);break;case Mt.Z:if(h){var N=p[g++];if(m+N>x){var P=(x-m)/N;t.lineTo(u*(1-P)+s*P,c*(1-P)+l*P);break e}m+=N}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Mt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ql(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function WAe(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var d=l;if(c>t+d&&c>n+d&&c>i+d&&c>s+d||c<t-d&&c<n-d&&c<i-d&&c<s-d||u>e+d&&u>r+d&&u>a+d&&u>o+d||u<e-d&&u<r-d&&u<a-d&&u<o-d)return!1;var f=hae(e,t,r,n,a,i,o,s,u,c,null);return f<=d/2}function Xae(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=vae(e,t,r,n,a,i,s,l,null);return c<=u/2}var Kj=Math.PI*2;function Fs(e){return e%=Kj,e<0&&(e+=Kj),e}var Dg=Math.PI*2;function qAe(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%Dg<1e-4)return!0;if(i){var d=n;n=Fs(a),a=Fs(d)}else n=Fs(n),a=Fs(a);n>a&&(a+=Dg);var f=Math.atan2(l,s);return f<0&&(f+=Dg),f>=n&&f<=a||f+Dg>=n&&f+Dg<=a}function Ns(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Rl=is.CMD,Rc=Math.PI*2,YAe=1e-4;function KAe(e,t){return Math.abs(e-t)<YAe}var Vn=[-1,-1,-1],di=[-1,-1];function ZAe(){var e=di[0];di[0]=di[1],di[1]=e}function XAe(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=XS(t,n,i,s,u,Vn);if(c===0)return 0;for(var d=0,f=-1,h=void 0,p=void 0,v=0;v<c;v++){var m=Vn[v],g=m===0||m===1?.5:1,x=zr(e,r,a,o,m);x<l||(f<0&&(f=fae(t,n,i,s,di),di[1]<di[0]&&f>1&&ZAe(),h=zr(t,n,i,s,di[0]),f>1&&(p=zr(t,n,i,s,di[1]))),f===2?m<di[0]?d+=h<t?g:-g:m<di[1]?d+=p<h?g:-g:d+=s<p?g:-g:m<di[0]?d+=h<t?g:-g:d+=s<h?g:-g)}return d}function JAe(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=lTe(t,n,i,s,Vn);if(l===0)return 0;var u=pae(t,n,i);if(u>=0&&u<=1){for(var c=0,d=Yr(t,n,i,u),f=0;f<l;f++){var h=Vn[f]===0||Vn[f]===1?.5:1,p=Yr(e,r,a,Vn[f]);p<o||(Vn[f]<u?c+=d<t?h:-h:c+=i<d?h:-h)}return c}else{var h=Vn[0]===0||Vn[0]===1?.5:1,p=Yr(e,r,a,Vn[0]);return p<o?0:i<t?h:-h}}function QAe(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Vn[0]=-l,Vn[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Rc-1e-4){n=0,a=Rc;var c=i?1:-1;return o>=Vn[0]+e&&o<=Vn[1]+e?c:0}if(n>a){var d=n;n=a,a=d}n<0&&(n+=Rc,a+=Rc);for(var f=0,h=0;h<2;h++){var p=Vn[h];if(p+e>o){var v=Math.atan2(s,p),c=i?1:-1;v<0&&(v=Rc+v),(v>=n&&v<=a||v+Rc>=n&&v+Rc<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),f+=c)}}return f}function Jae(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,d=0,f,h,p=0;p<o;){var v=i[p++],m=p===1;switch(v===Rl.M&&p>1&&(r||(s+=Ns(l,u,c,d,n,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),v){case Rl.M:c=i[p++],d=i[p++],l=c,u=d;break;case Rl.L:if(r){if(Ql(l,u,i[p],i[p+1],t,n,a))return!0}else s+=Ns(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Rl.C:if(r){if(WAe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=XAe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Rl.Q:if(r){if(Xae(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=JAe(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Rl.A:var g=i[p++],x=i[p++],b=i[p++],_=i[p++],k=i[p++],S=i[p++];p+=1;var C=!!(1-i[p++]);f=Math.cos(k)*b+g,h=Math.sin(k)*_+x,m?(c=f,d=h):s+=Ns(l,u,f,h,n,a);var T=(n-g)*_/b+g;if(r){if(qAe(g,x,_,k,k+S,C,t,T,a))return!0}else s+=QAe(g,x,_,k,k+S,C,T,a);l=Math.cos(k+S)*b+g,u=Math.sin(k+S)*_+x;break;case Rl.R:c=l=i[p++],d=u=i[p++];var E=i[p++],A=i[p++];if(f=c+E,h=d+A,r){if(Ql(c,d,f,d,t,n,a)||Ql(f,d,f,h,t,n,a)||Ql(f,h,c,h,t,n,a)||Ql(c,h,c,d,t,n,a))return!0}else s+=Ns(f,d,f,h,n,a),s+=Ns(c,h,c,d,n,a);break;case Rl.Z:if(r){if(Ql(l,u,c,d,t,n,a))return!0}else s+=Ns(l,u,c,d,n,a);l=c,u=d;break}}return!r&&!KAe(u,d)&&(s+=Ns(l,u,c,d,n,a)||0),s!==0}function eEe(e,t,r){return Jae(e,0,!1,t,r)}function tEe(e,t,r,n){return Jae(e,t,!0,r,n)}var a2=Ce({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qd),rEe={style:Ce({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cC.style)},gE=ns.concat(["invisible","culling","z","z2","zlevel","parent"]),nEe=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<gE.length;++s)a[gE[s]]=this[gE[s]];a.__dirty|=$a}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=tt(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?Q(this.style,s):this.useStyle(s):o==="shape"?Q(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(fe(r)){var n=QS(r,0);return n>.5?SD:n>.2?BTe:kD}else if(r)return kD}return SD},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(fe(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=QS(r,0)<_D;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Dh},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new is(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Dh)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r
599=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),tEe(s,l/u,r,n)))return!0}if(this.hasFill())return eEe(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Dh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:Q(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Dh)},t.prototype.createStyle=function(r){return aC(a2,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Q({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=Q({},a.shape),Q(u,n.shape)):(u=Q({},i?this.shape:a.shape),Q(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=Q({},this.shape);for(var c={},d=tt(u),f=0;f<d.length;f++){var h=d[f];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return rEe},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){Vt(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Ie(r.style)},o.prototype.getDefaultShape=function(){return Ie(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=$a|A0|Dh}(),t}(Mi);const Je=nEe;var aEe=Ce({strokeFirst:!0,font:Wu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a2),Qae=function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return aC(aEe,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=fx(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Mi);Qae.prototype.type="tspan";const yy=Qae;var iEe=Ce({x:0,y:0},qd),oEe={style:Ce({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cC.style)};function sEe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var eie=function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return aC(iEe,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=sEe(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return oEe},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new We(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Mi);eie.prototype.type="image";const hn=eie;function lEe(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l
599=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var ap=Math.round;function tie(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(ap(n*2)===ap(a*2)&&(e.x1=e.x2=Nd(n,s,!0)),ap(i*2)===ap(o*2)&&(e.y1=e.y2=Nd(i,s,!0))),e}}function rie(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Nd(n,s,!0),e.y=Nd(a,s,!0),e.width=Math.max(Nd(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Nd(a+o,s,!1)-e.y,o===0?0:1)),e}}function Nd(e,t,r){if(!t)return e;var n=ap(e*2);return(n+ap(t))%2===0?n/2:(n+(r?1:-1))/2}var uEe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),cEe={},nie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uEe},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=rie(cEe,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?lEe(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Je);nie.prototype.type="rect";const nt=nie;var Zj={fill:"#000"},Xj=2,dEe={style:Ce({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},cC.style)},aie=function(e){Vt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Zj,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,pEe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new We(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Zj},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return Q(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=tt(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},Q(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return dEe},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Wu,a=r.padding,i=a7(r),o=DAe(i,r),s=mE(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,d=o.contentWidth,f=o.lines,h=o.lineHeight,p=this._defaultStyle,v=r.x||0,m=r.y||0,g=r.align||p.align||"left",x=r.verticalAlign||p.verticalAlign||"top",b=v,_=Lh(m,o.contentHeight,x);if(s||a){var k=N0(v,c,g),S=Lh(m,u,x);
599s&&this._renderBackground(r,r,k,S,c,u)}_+=h/2,a&&(b=n7(v,g,a),x==="top"?_+=a[0]:x==="bottom"&&(_-=a[2]));for(var C=0,T=!1,E=r7("fill"in r?r.fill:(T=!0,p.fill)),A=t7("stroke"in r?r.stroke:!l&&(!p.autoStroke||T)?(C=Xj,p.stroke):null),N=r.textShadowBlur>0,P=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),L=o.calculatedLineHeight,R=0;R<f.length;R++){var M=this._getOrCreateChild(yy),$=M.createStyle();M.useStyle($),$.text=f[R],$.x=b,$.y=_,g&&($.textAlign=g),$.textBaseline="middle",$.opacity=r.opacity,$.strokeFirst=!0,N&&($.shadowBlur=r.textShadowBlur||0,$.shadowColor=r.textShadowColor||"transparent",$.shadowOffsetX=r.textShadowOffsetX||0,$.shadowOffsetY=r.textShadowOffsetY||0),$.stroke=A,$.fill=E,A&&($.lineWidth=r.lineWidth||C,$.lineDash=r.lineDash,$.lineDashOffset=r.lineDashOffset||0),$.font=n,Qj($,r),_+=h,P&&M.setBoundingRect(new We(N0($.x,r.width,$.textAlign),Lh($.y,L,$.textBaseline),d,L))}},t.prototype._updateRichTexts=function(){var r=this.style,n=a7(r),a=$Ae(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,d=this._defaultStyle,f=r.align||d.align,h=r.verticalAlign||d.verticalAlign,p=N0(u,o,f),v=Lh(c,s,h),m=p,g=v;l&&(m+=l[3],g+=l[0]);var x=m+i;mE(r)&&this._renderBackground(r,r,p,v,o,s);for(var b=!!r.backgroundColor,_=0;_<a.lines.length;_++){for(var k=a.lines[_],S=k.tokens,C=S.length,T=k.lineHeight,E=k.width,A=0,N=m,P=x,L=C-1,R=void 0;A<C&&(R=S[A],!R.align||R.align==="left");)this._placeToken(R,r,T,g,N,"left",b),E-=R.width,N+=R.width,A++;for(;L>=0&&(R=S[L],R.align==="right");)this._placeToken(R,r,T,g,P,"right",b),E-=R.width,P-=R.width,L--;for(N+=(i-(N-m)-(x-P)-E)/2;A<=L;)R=S[A],this._placeToken(R,r,T,g,N+R.width/2,"center",b),N+=R.width,A++;g+=T}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,d=i+a/2;c==="top"?d=i+r.height/2:c==="bottom"&&(d=i+a-r.height/2);var f=!r.isLineHolder&&mE(u);f&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,d-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=n7(o,s,p),d-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(yy),m=v.createStyle();v.useStyle(m);var g=this._defaultStyle,x=!1,b=0,_=r7("fill"in u?u.fill:"fill"in n?n.fill:(x=!0,g.fill)),k=t7("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!g.autoStroke||x)?(b=Xj,g.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=d,S&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||Wu,m.opacity=Hs(u.opacity,n.opacity,1),Qj(m,u),k&&(m.lineWidth=Hs(u.lineWidth,n.lineWidth,b),m.lineDash=Ge(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=k),_&&(m.fill=_);var C=r.contentWidth,T=r.contentHeight;v.setBoundingRect(new We(N0(m.x,C,m.textAlign),Lh(m.y,T,m.textBaseline),C,T))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,d=l&&l.image,f=l&&!d,h=r.borderRadius,p=this,v,m;if(f||r.lineHeight||u&&c){v=this._getOrCreateChild(nt),v.useStyle(v.createStyle()),v.style.fill=null;var g=v.shape;g.x=a,g.y=i,g.width=o,g.height=s,g.r=h,v.dirtyShape()}if(f){var x=v.style;x.fill=l||null,x.fillOpacity=Ge(r.fillOpacity,1)}else if(d){m=this._getOrCreateChild(hn),m.onload=function(){p.dirtyStyle()};var b=m.style;b.image=l.image,b.x=a,b.y=i,b.width=o,b.height=s}if(u&&c){var x=v.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=Ge(r.strokeOpacity,1),x.lineDash=r.borderDash,x.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(v||m).style;_.shadowBlur=r.shadowBlur||0,_.shadowColor=r.shadowColor||"transparent",_.shadowOffsetX=r.shadowOffsetX||0,_.shadowOffsetY=r.shadowOffsetY||0,_.opacity=Hs(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return oie(r)&&(n=[r.fontStyle,r.fontWeight,iie(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&no(n)||r.textFont||r.font},t}(Mi),fEe={left:!0,right:1,center:1},hEe={top:1,bottom:1,middle:1},Jj=["fontStyle","fontWeight","fontSize","fontFamily"];function iie(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?pO+"px":e+"px"}function Qj(e,t){for(var r=0;r<Jj.length;r++){var n=Jj[r],a=t[n];a!=null&&(e[n]=a)}}function oie(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function pEe(e){return e7(e),D(e.rich,e7),e}function e7(e){if(e){e.font=aie.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||fEe[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||hEe[r]?r:"top";var n=e.padding;n&&(e.padding=bO(e.padding))}}function t7(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function r7(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function n7(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function a7(e){var t=e.text;return t!=null&&(t+=""),t}function mE(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const st=aie;var $e=at(),ND=function(e,t,r,n){if(n){var a=$e(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,n.type==="group"&&n.traverse(function(i){var o=$e(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},i7=1,o7={},sie=at(),DO=at(),LO=0,px=1,fC=2,Xn=["emphasis","blur","select"],xy=["normal","emphasis","blur","select"],Ov=10,vEe=9,Yd="highlight",x_="downplay",pm="select",b_="unselect",vm="toggleSelect";function ah(e){return e!=null&&e!=="none"}var s7=new dx(100);function l7(e){if(fe(e)){var t=s7.get(e);return t||(t=vD(e,-.1),s7.put(e,t)),t}else if(nC(e)){var r=Q({},e);return r.colorStops=re(e.colorStops,function(n){return{offset:n.offset,color:vD(n.color,-.1)}}),r}return e}function hC(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function lie(e){hC(e,"emphasis",fC)}function uie(e){e.hoverState===fC&&hC(e,"normal",LO)}function RO(e){hC(e,"blur",px)}function cie(e){e.hoverState===px&&hC(e,"normal",LO)}function gEe(e){e.selected=!0}function mEe(e){e.selected=!1}function u7(e,t,r){t(e,r)}function yl(e,t,r){u7(e,t,r),e.isGroup&&e.traverse(function(n){u7(n,t,r)})}function i2(e,t){switch(t){case"emphasis":e.hoverState=fC;break;case"normal":e.hoverState=LO;break;case"blur":e.hoverState=px;break;case"select":e.selected=!0}}function yEe(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function xEe(e,t,r,n){var a=r&&Ke(r,"select")>=0,i=!1;if(e instanceof Je){var o=sie(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ah(s)||ah(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=Q({},n),u=Q({},u),u.fill=s):!ah(u.fill)&&ah(s)?(i=!0,n=Q({},n),u=Q({},u),u.fill=l7(s)):!ah(u.stroke)&&ah(l)&&(i||(n=Q({},n),u=Q({},u)),u.stroke=l7(l)),n.style=u}}if(n&&n.z2==null){i||(n=Q({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Ov)}return n}function bEe(e,t,r){if(r&&r.z2==null){r=Q({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vEe)}return r}function wEe(e,t,r){var n=Ke(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:yEe(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Q({},r),o=Q({opacity:n?a:i.opacity*.1},o),r.style=o),r}function yE(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return xEe(this,e,t,r);if(e==="blur")return wEe(this,e,r);if(e==="select")return bEe(this,e,r)}return r}function wf(e){e.stateProxy=yE;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=yE),r&&(r.stateProxy=yE)}function c7(e,t){!pie(e,t)&&!e.__highByOuter&&yl(e,lie)}function d7(e,t){!pie(e,t)&&!e.__highByOuter&&yl(e,uie)}function ol(e,t){e.__highByOuter|=1<<(t||0),yl(e,lie)}function sl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&yl(e,uie)}function die(e){yl(e,RO)}function $O(e){yl(e,cie)}function fie(e){yl(e,gEe)}function hie(e){yl(e,mEe)}function pie(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vie(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=DO(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){cie(u)}),s&&r.push(i)),o.isBlured=!1}),D(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function ID(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var d=0;d<c.length;d++){var f=u.getItemGraphicEl(c[d]);f&&$O(f)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var f=d&&s?d===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!f||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(m){RO(m)}),Ln(t))i(u.getData(),t);else if(Te(t))for(var p=tt(t),v=0;v<p.length;v++)i(u.getData(p[v]),t[p[v]]);l.push(u),DO(u).isBlured=!0}}
599),a.eachComponent(function(u,c){if(u!=="series"){var d=n.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,a)}})}}function PD(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){DO(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){RO(i)})}}}function _Ee(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=xf(a,t);i=(te(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=$e(o);ID(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);c!=null&&ID(n,c,d,r)}}}function OO(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if($e(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function SEe(e,t,r){var n=$e(e),a=OO(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&PD(n.componentMainType,n.componentIndex,r),D(i,function(s){return c7(s,t)})):(ID(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&PD(n.componentMainType,n.componentIndex,r),c7(e,t))}function kEe(e,t,r){vie(r);var n=$e(e),a=OO(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?D(a,function(i){return d7(i,t)}):d7(e,t)}function CEe(e,t,r){if(DD(t)){var n=t.dataType,a=e.getData(n),i=xf(a,t);te(i)||(i=[i]),e[t.type===vm?"toggleSelect":t.type===pm?"select":"unselect"](i,n)}}function f7(e){var t=e.getAllData();D(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?fie(i):hie(i)})})}function TEe(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();D(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Kd(e,t,r){Id(e,!0),yl(e,wf),MD(e,t,r)}function AEe(e){Id(e,!1)}function nr(e,t,r,n){n?AEe(e):Kd(e,t,r)}function MD(e,t,r){var n=$e(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var h7=["emphasis","blur","select"],EEe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cn(e,t,r,n){r=r||"itemStyle";for(var a=0;a<h7.length;a++){var i=h7[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[EEe[r]]()}}function Id(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function by(e){return!!(e&&e.__highDownDispatcher)}function NEe(e,t,r){var n=$e(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function IEe(e){var t=o7[e];return t==null&&i7<=32&&(t=o7[e]=i7++),t}function DD(e){var t=e.type;return t===pm||t===b_||t===vm}function p7(e){var t=e.type;return t===Yd||t===x_}function PEe(e){var t=sie(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var ih=is.CMD,MEe=[[],[],[]],v7=Math.sqrt,DEe=Math.atan2;function gie(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=ih.M,d=ih.C,f=ih.L,h=ih.R,p=ih.A,v=ih.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case f:i=1;break;case d:i=3;break;case v:i=2;break;case p:var m=t[4],g=t[5],x=v7(t[0]*t[0]+t[1]*t[1]),b=v7(t[2]*t[2]+t[3]*t[3]),_=DEe(-t[1]/b,t[0]/x);r[o]*=x,r[o++]+=m,r[o]*=b,r[o++]+=g,r[o++]*=x,r[o++]*=b,r[o++]+=_,r[o++]+=_,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],sn(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],sn(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var k=MEe[l];k[0]=r[o++],k[1]=r[o++],sn(k,k,t),r[s++]=k[0],r[s++]=k[1]}}e.increaseVersion()}}var xE=Math.sqrt,ab=Math.sin,ib=Math.cos,Lg=Math.PI;function g7(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function LD(e,t){return(e[0]*t[0]+e[1]*t[1])/(g7(e)*g7(t))}function m7(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(LD(e,t))}function y7(e,t,r,n,a,i,o,s,l,u,c){var d=l*(Lg/180),f=ib(d)*(e-r)/2+ab(d)*(t-n)/2,h=-1*ab(d)*(e-r)/2+ib(d)*(t-n)/2,p=f*f/(o*o)+h*h/(s*s);p>1&&(o*=xE(p),s*=xE(p));var v=(a===i?-1:1)*xE((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=v*o*h/s,g=v*-s*f/o,x=(e+r)/2+ib(d)*m-ab
vendor: 4,549 bytes, line 599
599(d)*g,b=(t+n)/2+ab(d)*m+ib(d)*g,_=m7([1,0],[(f-m)/o,(h-g)/s]),k=[(f-m)/o,(h-g)/s],S=[(-1*f-m)/o,(-1*h-g)/s],C=m7(k,S);if(LD(k,S)<=-1&&(C=Lg),LD(k,S)>=1&&(C=0),C<0){var T=Math.round(C/Lg*1e6)/1e6;C=Lg*2+T%2*Lg}c.addData(u,x,b,o,s,_,C,d,i)}var LEe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,REe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $Ee(e){var t=new is;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=is.CMD,l=e.match(LEe);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),f=void 0,h=c.match(REe)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var m=0;m<p;){var g=void 0,x=void 0,b=void 0,_=void 0,k=void 0,S=void 0,C=void 0,T=r,E=n,A=void 0,N=void 0;switch(d){case"l":r+=h[m++],n+=h[m++],f=s.L,t.addData(f,r,n);break;case"L":r=h[m++],n=h[m++],f=s.L,t.addData(f,r,n);break;case"m":r+=h[m++],n+=h[m++],f=s.M,t.addData(f,r,n),a=r,i=n,d="l";break;case"M":r=h[m++],n=h[m++],f=s.M,t.addData(f,r,n),a=r,i=n,d="L";break;case"h":r+=h[m++],f=s.L,t.addData(f,r,n);break;case"H":r=h[m++],f=s.L,t.addData(f,r,n);break;case"v":n+=h[m++],f=s.L,t.addData(f,r,n);break;case"V":n=h[m++],f=s.L,t.addData(f,r,n);break;case"C":f=s.C,t.addData(f,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],n=h[m-1];break;case"c":f=s.C,t.addData(f,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n),r+=h[m-2],n+=h[m-1];break;case"S":g=r,x=n,A=t.len(),N=t.data,o===s.C&&(g+=r-N[A-4],x+=n-N[A-3]),f=s.C,T=h[m++],E=h[m++],r=h[m++],n=h[m++],t.addData(f,g,x,T,E,r,n);break;case"s":g=r,x=n,A=t.len(),N=t.data,o===s.C&&(g+=r-N[A-4],x+=n-N[A-3]),f=s.C,T=r+h[m++],E=n+h[m++],r+=h[m++],n+=h[m++],t.addData(f,g,x,T,E,r,n);break;case"Q":T=h[m++],E=h[m++],r=h[m++],n=h[m++],f=s.Q,t.addData(f,T,E,r,n);break;case"q":T=h[m++]+r,E=h[m++]+n,r+=h[m++],n+=h[m++],f=s.Q,t.addData(f,T,E,r,n);break;case"T":g=r,x=n,A=t.len(),N=t.data,o===s.Q&&(g+=r-N[A-4],x+=n-N[A-3]),r=h[m++],n=h[m++],f=s.Q,t.addData(f,g,x,r,n);break;case"t":g=r,x=n,A=t.len(),N=t.data,o===s.Q&&(g+=r-N[A-4],x+=n-N[A-3]),r+=h[m++],n+=h[m++],f=s.Q,t.addData(f,g,x,r,n);break;case"A":b=h[m++],_=h[m++],k=h[m++],S=h[m++],C=h[m++],T=r,E=n,r=h[m++],n=h[m++],f=s.A,y7(T,E,r,n,S,C,b,_,k,f,t);break;case"a":b=h[m++],_=h[m++],k=h[m++],S=h[m++],C=h[m++],T=r,E=n,r+=h[m++],n+=h[m++],f=s.A,y7(T,E,r,n,S,C,b,_,k,f,t);break}}(d==="z"||d==="Z")&&(f=s.Z,t.addData(f),r=a,n=i),o=f}return t.toStatic(),t}var mie=function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Je);function yie(e){return e.setData!=null}function xie(e,t){var r=$Ee(e),n=Q({},t);return n.buildPath=function(a){if(yie(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){gie(r,a),this.dirtyShape()},n}function bie(e,t){return new mie(xie(e,t))}function OEe(e,t){var r=xie(e,t),n=function(a){Vt(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(mie);return n}function zEe(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new Je(t);return o.createPathProxy(),o.buildPath=function(s){if(yie(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function zO(e,t){t=t||{};var r=new Je;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?gie(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var FEe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),wie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FEe},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Je);wie.prototype.type="circle";const os=wie;var BEe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),_ie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new BEe},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(Je);_ie.prototype.type="ellipse";const FO=_ie;var Sie=Math.PI,bE=Sie*2,$c=Math.sin,oh=Math.cos,jEe=Math.acos,Sn=Math.atan2,x7=Math.abs,gm=Math.sqrt,I0=Math.max,Eo=Math.min,qi=1e-4;
599function VEe(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=d*l-c*u;if(!(f*f<qi))return f=(c*(t-i)-d*(e-a))/f,[e+f*l,t+f*u]}function ob(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/gm(s*s+l*l),c=u*l,d=-u*s,f=e+c,h=t+d,p=r+c,v=n+d,m=(f+p)/2,g=(h+v)/2,x=p-f,b=v-h,_=x*x+b*b,k=a-i,S=f*v-p*h,C=(b<0?-1:1)*gm(I0(0,k*k*_-S*S)),T=(S*b-x*C)/_,E=(-S*x-b*C)/_,A=(S*b+x*C)/_,N=(-S*x+b*C)/_,P=T-m,L=E-g,R=A-m,M=N-g;return P*P+L*L>R*R+M*M&&(T=A,E=N),{cx:T,cy:E,x0:-c,y0:-d,x1:T*(a/k-1),y1:E*(a/k-1)}}function UEe(e){var t;if(te(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function GEe(e,t){var r,n=I0(t.r,0),a=I0(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,f=!!t.clockwise,h=x7(u-l),p=h>bE&&h%bE;if(p>qi&&(h=p),!(n>qi))e.moveTo(c,d);else if(h>bE-qi)e.moveTo(c+n*oh(l),d+n*$c(l)),e.arc(c,d,n,l,u,!f),a>qi&&(e.moveTo(c+a*oh(u),d+a*$c(u)),e.arc(c,d,a,u,l,f));else{var v=void 0,m=void 0,g=void 0,x=void 0,b=void 0,_=void 0,k=void 0,S=void 0,C=void 0,T=void 0,E=void 0,A=void 0,N=void 0,P=void 0,L=void 0,R=void 0,M=n*oh(l),$=n*$c(l),V=a*oh(u),B=a*$c(u),j=h>qi;if(j){var I=t.cornerRadius;I&&(r=UEe(I),v=r[0],m=r[1],g=r[2],x=r[3]);var U=x7(n-a)/2;if(b=Eo(U,g),_=Eo(U,x),k=Eo(U,v),S=Eo(U,m),E=C=I0(b,_),A=T=I0(k,S),(C>qi||T>qi)&&(N=n*oh(u),P=n*$c(u),L=a*oh(l),R=a*$c(l),h<Sie)){var Y=VEe(M,$,L,R,N,P,V,B);if(Y){var O=M-Y[0],H=$-Y[1],ie=N-Y[0],ee=P-Y[1],se=1/$c(jEe((O*ie+H*ee)/(gm(O*O+H*H)*gm(ie*ie+ee*ee)))/2),oe=gm(Y[0]*Y[0]+Y[1]*Y[1]);E=Eo(C,(n-oe)/(se+1)),A=Eo(T,(a-oe)/(se-1))}}}if(!j)e.moveTo(c+M,d+$);else if(E>qi){var be=Eo(g,E),me=Eo(x,E),Z=ob(L,R,M,$,n,be,f),J=ob(N,P,V,B,n,me,f);e.moveTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),E<C&&be===me?e.arc(c+Z.cx,d+Z.cy,E,Sn(Z.y0,Z.x0),Sn(J.y0,J.x0),!f):(be>0&&e.arc(c+Z.cx,d+Z.cy,be,Sn(Z.y0,Z.x0),Sn(Z.y1,Z.x1),!f),e.arc(c,d,n,Sn(Z.cy+Z.y1,Z.cx+Z.x1),Sn(J.cy+J.y1,J.cx+J.x1),!f),me>0&&e.arc(c+J.cx,d+J.cy,me,Sn(J.y1,J.x1),Sn(J.y0,J.x0),!f))}else e.moveTo(c+M,d+$),e.arc(c,d,n,l,u,!f);if(!(a>qi)||!j)e.lineTo(c+V,d+B);else if(A>qi){var be=Eo(v,A),me=Eo(m,A),Z=ob(V,B,N,P,a,-me,f),J=ob(M,$,L,R,a,-be,f);e.lineTo(c+Z.cx+Z.x0,d+Z.cy+Z.y0),A<T&&be===me?e.arc(c+Z.cx,d+Z.cy,A,Sn(Z.y0,Z.x0),Sn(J.y0,J.x0),!f):(me>0&&e.arc(c+Z.cx,d+Z.cy,me,Sn(Z.y0,Z.x0),Sn(Z.y1,Z.x1),!f),e.arc(c,d,a,Sn(Z.cy+Z.y1,Z.cx+Z.x1),Sn(J.cy+J.y1,J.cx+J.x1),f),be>0&&e.arc(c+J.cx,d+J.cy,be,Sn(J.y1,J.x1),Sn(J.y0,J.x0),!f))}else e.lineTo(c+V,d+B),e.arc(c,d,a,u,l,f)}e.closePath()}}}var HEe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),kie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HEe},t.prototype.buildPath=function(r,n){GEe(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Je);kie.prototype.type="sector";const wa=kie;var WEe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Cie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new WEe},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(Je);Cie.prototype.type="ring";const pC=Cie;function qEe(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,d;if(n){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=e.length;f<h;f++)cu(c,c,e[f]),du(d,d,e[f]);cu(c,c,n[0]),du(d,d,n[1])}for(var f=0,h=e.length;f<h;f++){var p=e[f];if(r)l=e[f?f-1:h-1],u=e[(f+1)%h];else if(f===0||f===h-1){a.push(Ws(e[f]));continue}else l=e[f-1],u=e[f+1];Ed(i,u,l),d_(i,i,t);var v=oD(p,l),m=oD(p,u),g=v+m;g!==0&&(v/=g,m/=g),d_(o,i,-v),d_(s,i,m);var x=dj([],p,o),b=dj([],p,s);n&&(du(x,x,c),cu(x,x,d),du(b,b,c),cu(b,b,d)),a.push(x),a.push(b)}return r&&a.push(a.shift()),a}function Tie(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=qEe(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];
599e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s<d;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var YEe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Aie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YEe},t.prototype.buildPath=function(r,n){Tie(r,n,!0)},t}(Je);Aie.prototype.type="polygon";const _a=Aie;var KEe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Eie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KEe},t.prototype.buildPath=function(r,n){Tie(r,n,!1)},t}(Je);Eie.prototype.type="polyline";const ka=Eie;var ZEe={},XEe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Nie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XEe},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=tie(ZEe,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Je);Nie.prototype.type="line";const Xr=Nie;var ia=[],JEe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function b7(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Sj:zr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Sj:zr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?fD:Yr)(e.x1,e.cpx1,e.x2,t),(r?fD:Yr)(e.y1,e.cpy1,e.y2,t)]}var Iie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JEe},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,d=n.cpy2,f=n.percent;f!==0&&(r.moveTo(a,i),c==null||d==null?(f<1&&(py(a,l,o,f,ia),l=ia[1],o=ia[2],py(i,u,s,f,ia),u=ia[1],s=ia[2]),r.quadraticCurveTo(l,u,o,s)):(f<1&&(Yu(a,l,c,o,f,ia),l=ia[1],c=ia[2],o=ia[3],Yu(i,u,d,s,f,ia),u=ia[1],d=ia[2],s=ia[3]),r.bezierCurveTo(l,u,c,d,o,s)))},t.prototype.pointAt=function(r){return b7(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=b7(this.shape,r,!0);return Lv(n,n)},t}(Je);Iie.prototype.type="bezier-curve";const vC=Iie;var QEe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Pie=function(e){Vt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QEe},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),d=Math.sin(s);r.moveTo(c*o+a,d*o+i),r.arc(a,i,o,s,l,!u)},t}(Je);Pie.prototype.type="arc";const BO=Pie;var eNe=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Je.prototype.getBoundingRect.call(this)},t}(Je);const jO=eNe;var tNe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Mie=tNe;var rNe=function(e){Vt(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(Mie);const zv=rNe;var nNe=function(e){Vt(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(Mie);const Die=nNe;var Oc=[0,0],zc=[0,0],sb=new Be,lb=new Be,aNe=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Be;for(var n=0;n<2;n++)this._axes[n]=new Be;
599t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);Be.sub(a[0],n[1],n[0]),Be.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return sb.set(1/0,1/0),lb.set(0,0),!this._intersectCheckOneSide(this,t,sb,lb,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,sb,lb,a,-1)&&(n=!1,a)||a||Be.copy(r,n?sb:lb),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Oc),this._getProjMinMaxOnAxis(l,r._corners,zc),Oc[1]<zc[0]||Oc[0]>zc[1]){if(s=!1,i)return s;var c=Math.abs(zc[0]-Oc[1]),d=Math.abs(Oc[0]-zc[1]);Math.min(c,d)>a.len()&&(c<d?Be.scale(a,u,-c*o):Be.scale(a,u,d*o))}else if(n){var c=Math.abs(zc[0]-Oc[1]),d=Math.abs(Oc[0]-zc[1]);Math.min(c,d)<n.len()&&(c<d?Be.scale(n,u,c*o):Be.scale(n,u,-d*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const o2=aNe;var iNe=[],oNe=function(e){Vt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new We(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(iNe)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(Mi);const sNe=oNe;var Lie=at();function Fv(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,d=void 0;n?(u=Ge(n.duration,200),c=Ge(n.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(d=i.delay)),ke(d)&&(d=d(r,a)),ke(u)&&(u=u(r));var f={duration:u||0,delay:d,easing:c};return f}else return null}function VO(e,t,r,n,a,i,o){var s=!1,l;
599ke(a)?(o=i,i=a,a=null):Te(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Fv(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function ut(e,t,r,n,a,i){VO("update",e,t,r,n,a,i)}function Wt(e,t,r,n,a,i){VO("enter",e,t,r,n,a,i)}function Ep(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Ku(e,t,r,n,a,i){Ep(e)||VO("leave",e,t,r,n,a,i)}function w7(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Ku(e,{style:{opacity:0}},t,r,n)}function wy(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||w7(a,t,r,n)}):w7(e,t,r,n)}function go(e){Lie(e).oldStyle=e.style}function lNe(e){return Lie(e).oldStyle}var s2=Math.max,l2=Math.min,RD={};function uNe(e){return Je.extend(e)}var cNe=OEe;function dNe(e,t){return cNe(e,t)}function xo(e,t){RD[e]=t}function UO(e){if(RD.hasOwnProperty(e))return RD[e]}function gC(e,t,r,n){var a=bie(e,t);return r&&(n==="center"&&(r=$ie(r,a.getBoundingRect())),Oie(a,r)),a}function Rie(e,t,r){var n=new hn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle($ie(t,i))}}});return n}function $ie(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var wi=zEe;function Oie(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function tv(e,t){return tie(e,e,{lineWidth:t}),e}function fNe(e){return rie(e.shape,e.shape,e.style),e}var w_=Nd;function Zd(e,t){for(var r=iC([]);e&&e!==t;)qs(r,e.getLocalTransform(),r),e=e.parent;return r}function co(e,t,r){return t&&!Ln(t)&&(t=zs.getLocalTransform(t)),r&&(t=Rv([],t)),sn([],e,t)}function mC(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=co(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function _7(e){return!e.isGroup}function hNe(e){return e.shape!=null}function vx(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){_7(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return hNe(o)&&(s.shape=Q({},o.shape)),s}var i=n(e);t.traverse(function(o){if(_7(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ut(o,l,r,$e(o).dataIndex)}}})}function zie(e,t){return re(e,function(r){var n=r[0];n=s2(n,t.x),n=l2(n,t.x+t.width);var a=r[1];return a=s2(a,t.y),a=l2(a,t.y+t.height),[n,a]})}function pNe(e,t){var r=s2(e.x,t.x),n=l2(e.x+e.width,t.x+t.width),a=s2(e.y,t.y),i=l2(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function gx(e,t,r){var n=Q({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Ce(a,r),new hn(n)):gC(e.replace("path://",""),n,r,"center")}function P0(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Fie(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Fie(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=wE(c,d,l,u);if(vNe(f))return!1;var h=e-a,p=t-i,v=wE(h,p,l,u)/f;if(v<0||v>1)return!1;var m=wE(h,p,c,d)/f;return!(m<0||m>1)}function wE(e,t,r,n){return e*n-r*t}function vNe(e){return e<=1e-6&&e>=-1e-6}function Bv(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=fe(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&D(tt(l),function(c){ye(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=$e(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:Ce({content:n,formatterParams:s},a)}}function S7(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function fc(e,t){if(e)if(te(e))for(var r=0;r<e.length;r++)S7(e[r],t);else S7(e,t)}xo("circle",os);xo("ellipse",FO);xo("sector",wa);xo("ring",pC);xo("polygon",_a);xo("polyline",ka);xo("rect",nt);xo("line",Xr);xo("bezierCurve",vC);xo("arc",BO);const mx=Object.freeze(Object.defineProperty({__proto__:null,Arc:BO,BezierCurve:vC,BoundingRect:We,Circle:os,CompoundPath:jO,Ellipse:FO,Group:Me,Image:hn,IncrementalDis
599playable:sNe,Line:Xr,LinearGradient:zv,OrientedBoundingRect:o2,Path:Je,Point:Be,Polygon:_a,Polyline:ka,RadialGradient:Die,Rect:nt,Ring:pC,Sector:wa,Text:st,applyTransform:co,clipPointsByRect:zie,clipRectByRect:pNe,createIcon:gx,extendPath:dNe,extendShape:uNe,getShapeClass:UO,getTransform:Zd,groupTransition:vx,initProps:Wt,isElementRemoved:Ep,lineLineIntersect:Fie,linePolygonIntersect:P0,makeImage:Rie,makePath:gC,mergePath:wi,registerShape:xo,removeElement:Ku,removeElementWithFadeOut:wy,resizePath:Oie,setTooltipConfig:Bv,subPixelOptimize:w_,subPixelOptimizeLine:tv,subPixelOptimizeRect:fNe,transformDirection:mC,traverseElements:fc,updateProps:ut},Symbol.toStringTag,{value:"Module"}));var yC={};function Bie(e,t){for(var r=0;r<Xn.length;r++){var n=Xn[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function $D(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ke(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<Xn.length;u++){var c=Xn[u],d=t[c];l[c]=Ge(n?n.getFormattedLabel(a,c,null,i,d&&d.get("formatter")):null,s)}return l}function dn(e,t,r,n){r=r||yC;for(var a=e instanceof st,i=!1,o=0;o<xy.length;o++){var s=t[xy[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new st,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=$D(r,t),c=t.normal,d=!!c.getShallow("show"),f=$t(c,n&&n.normal,r,!1,!a);f.text=u.normal,a||e.setTextConfig(u2(c,r,!1));for(var o=0;o<Xn.length;o++){var h=Xn[o],s=t[h];if(s){var p=l.ensureState(h),v=!!Ge(s.getShallow("show"),d);if(v!==d&&(p.ignore=!v),p.style=$t(s,n&&n[h],r,!0,!a),p.style.text=u[h],!a){var m=e.ensureState(h);m.textConfig=u2(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!d,l.useStyle(f),l.dirty(),r.enableTextSetter&&(jv(l).setLabelText=function(g){var x=$D(r,t,g);Bie(l,x)})}else l&&(l.ignore=!0);e.dirty()}function Ur(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var a=Xn[n];r[a]=e.getModel([a,t])}return r}function $t(e,t,r,n,a){var i={};return gNe(i,e,r,n,a),t&&Q(i,t),i}function u2(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=Ge(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function gNe(e,t,r,n,a){r=r||yC;var i=t.ecModel,o=i&&i.option.textStyle,s=mNe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);A7(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");f!=null&&(e.margin=f),A7(e,t,o,r,n,a,!0,!1)}function mNe(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||yC).rich;if(r){t=t||{};for(var n=tt(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var k7=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],C7=["align","lineHeight","width","height","tag","verticalAlign"],T7=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function A7(e,t,r,n,a,i,o,s){r=!a&&r||yC;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=Ge(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var f=Ge(t.getShallow("textBorderWidth"),r.textBorderWidth);f!=null&&(e.lineWidth=f);var h=Ge(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var p=Ge(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!a&&d==null&&!s&&(d=n&&n.defaultOpacity),d!=null&&(e.opacity=d),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var v=0;v<k7.length;v++){var m=k7[v],g=Ge(t.getShallow(m),r[m]);g!=null&&(e[m]=g)}for(var v=0;v<C7.length;v++){var m=C7[v],g=t.getShallow(m);g!=null&&(e[m]=g)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!o||!n.disableBox){for(var v=0;v<T7.length;v++){var m=T7[v],g=t.getShallow(m);g!=null&&(e[m]=g)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function jie(e,t){var r=t&&t.getModel("textStyle");return no([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var jv=at();function Vie(e,t,r,n){if(e){var a=jv(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function Uie(e,t,r,n,a){var i=jv(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Ge(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var d=Gae(r,i.precision,s,l,c);i.interpolatedValue=c===1?null:d;var f=$D({labelDataIndex:t,labelFetcher:a,defaultText:o?o(d):d+""},i.statesModels,d);Bie(e,f)}e.percent=0,(i.prevValue==null?Wt:ut)(e,{percent:1},n,t,null,u)}var yNe=["textStyle","color"],_E=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],SE=new st,xNe=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;
599return this.getShallow("color")||(!t&&r?r.get(yNe):null)},e.prototype.getFont=function(){return jie({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<_E.length;n++)r[_E[n]]=this.getShallow(_E[n]);return SE.useStyle(r),SE.update(),SE.getBoundingRect()},e}();const bNe=xNe;var Gie=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],wNe=bf(Gie),_Ne=function(){function e(){}return e.prototype.getLineStyle=function(t){return wNe(this,t)},e}(),Hie=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],SNe=bf(Hie),kNe=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return SNe(this,t,r)},e}(),Of=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){He(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Ie(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ot.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();PO(Of);kAe(Of);kr(Of,_Ne);kr(Of,kNe);kr(Of,NAe);kr(Of,bNe);const Ot=Of;var CNe=Math.round(Math.random()*10);function Vv(e){return[e||"",CNe++].join("_")}function TNe(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=Ho(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=Ho(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function ANe(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,d=u.noEntryList,f={};for(D(i,function(x){f[x]=!0});d.length;){var h=d.pop(),p=c[h],v=!!f[h];v&&(s.call(l,h,p.originalDeps.slice()),delete f[h]),D(p.successor,v?g:m)}D(f,function(){var x="";throw new Error(x)});function m(x){c[x].entryCount--,c[x].entryCount===0&&d.push(x)}function g(x){f[x]=!0,m(x)}};function r(i){var o={},s=[];return D(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),d=a(c,i);u.entryCount=d.length,u.entryCount===0&&s.push(l),D(d,function(f){Ke(u.predecessor,f)<0&&u.predecessor.push(f);var h=n(o,f);Ke(h.successor,f)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return D(i,function(l){Ke(o,l)>=0&&s.push(l)}),s}}function hc(e,t){return He(He({},e,!0),t,!0)}const ENe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
599ay","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},NNe={time:{month:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],monthAbbr:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],dayOfWeek:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayOfWeekAbbr:["æ¥","ä¸","äº","ä¸","å","äº","å
"]},legend:{selector:{all:"å
¨é",inverse:"åé"}},toolbox:{brush:{title:{rect:"ç©å½¢éæ©",polygon:"åé",lineX:"横åéæ©",lineY:"纵åéæ©",keep:"ä¿æéæ©",clear:"æ¸
é¤éæ©"}},dataView:{title:"æ°æ®è§å¾",lang:["æ°æ®è§å¾","å
³é","å·æ°"]},dataZoom:{title:{zoom:"åºå缩æ¾",back:"åºå缩æ¾è¿å"}},magicType:{title:{line:"åæ¢ä¸ºæçº¿å¾",bar:"åæ¢ä¸ºæ±ç¶å¾",stack:"åæ¢ä¸ºå å ",tiled:"åæ¢ä¸ºå¹³éº"}},restore:{title:"è¿å"},saveAsImage:{title:"ä¿å为å¾ç",lang:["å³é®å¦å为å¾ç"]}},series:{typeNames:{pie:"饼å¾",bar:"æ±ç¶å¾",line:"æçº¿å¾",scatter:"æ£ç¹å¾",effectScatter:"æ¶æ¼ªæ£ç¹å¾",radar:"é·è¾¾å¾",tree:"æ å¾",treemap:"ç©å½¢æ å¾",boxplot:"ç®±åå¾",candlestick:"K线å¾",k:"K线å¾",heatmap:"çåå¾",map:"å°å¾",parallel:"å¹³è¡åæ å¾",lines:"线å¾",graph:"å
³ç³»å¾",sankey:"æ¡åºå¾",funnel:"æ¼æå¾",gauge:"仪表çå¾",pictorialBar:"象形æ±å¾",themeRiver:"䏻颿²³æµå¾",sunburst:"ææ¥å¾"}},aria:{general:{withTitle:"è¿æ¯ä¸ä¸ªå
³äºâ{title}âçå¾è¡¨ã",withoutTitle:"è¿æ¯ä¸ä¸ªå¾è¡¨ï¼"},series:{single:{prefix:"",withName:"å¾è¡¨ç±»åæ¯{seriesType}ï¼è¡¨ç¤º{seriesName}ã",withoutName:"å¾è¡¨ç±»åæ¯{seriesType}ã"},multiple:{prefix:"å®ç±{seriesCount}个å¾è¡¨ç³»åç»æã",withName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ªè¡¨ç¤º{seriesName}ç{seriesType}
599ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}};var c2="ZH",GO="EN",_y=GO,__={},HO={},Wie=ot.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(c2)>-1?c2:_y}():_y;function qie(e,t){e=e.toUpperCase(),HO[e]=new Ot(t),__[e]=t}function INe(e){if(fe(e)){var t=__[e.toUpperCase()]||{};return e===c2||e===GO?Ie(t):He(Ie(t),Ie(__[_y]),!1)}else return He(Ie(e),Ie(__[_y]),!1)}function OD(e){return HO[e]}function PNe(){return HO[_y]}qie(GO,ENe);qie(c2,NNe);var WO=1e3,qO=WO*60,mm=qO*60,_i=mm*24,E7=_i*365,M0={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},ub="{yyyy}-{MM}-{dd}",N7={year:"{yyyy}",month:"{yyyy}-{MM}",day:ub,hour:ub+" "+M0.hour,minute:ub+" "+M0.minute,second:ub+" "+M0.second,millisecond:M0.none},kE=["year","month","day","hour","minute","second","millisecond"],Yie=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Fc(e,t){return e+="","0000".substr(0,t-e.length)+e}function Np(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function MNe(e){return e===Np(e)}function DNe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xC(e,t,r,n){var a=as(e),i=a[YO(r)](),o=a[Ip(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[bC(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[Sy(r)](),d=(c-1)%12+1,f=a[wC(r)](),h=a[_C(r)](),p=a[SC(r)](),v=n instanceof Ot?n:OD(n||Wie)||PNe(),m=v.getModel("time"),g=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Fc(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Fc(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Fc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Fc(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Fc(p,3)).replace(/{S}/g,p+"")}function LNe(e,t,r,n,a){var i=null;if(fe(r))i=r;else if(ke(r))i=r(e.value,t,{level:e.level});else{var o=Q({},M0);if(e.level>0)for(var s=0;s<kE.length;++s)o[kE[s]]="{primary|"+o[kE[s]]+"}";var l=r?r.inherit===!1?r:Ce(r,o):o,u=Kie(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=Yie.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(te(i)){var d=e.level==null?0:e.level>=0?e.level:i.length+e.level;d=Math.min(d,i.length-1),i=i[d]}}return xC(new Date(e.value),i,a,n)}function Kie(e,t){var r=as(e),n=r[Ip(t)]()+1,a=r[bC(t)](),i=r[Sy(t)](),o=r[wC(t)](),s=r[_C(t)](),l=r[SC(t)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&n===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function I7(e,t,r){var n=lt(e)?as(e):e;switch(t=t||Kie(e,r),t){case"year":return n[YO(r)]();case"half-year":return n[Ip(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ip(r)]()+1)/4);case"month":return n[Ip(r)]();case"day":return n[bC(r)]();case"half-day":return n[Sy(r)]()/24;case"hour":return n[Sy(r)]();case"minute":return n[wC(r)]();case"second":return n[_C(r)]();case"millisecond":return n[SC(r)]()}}function YO(e){return e?"getUTCFullYear":"getFullYear"}function Ip(e){return e?"getUTCMonth":"getMonth"}function bC(e){return e?"getUTCDate":"getDate"}function Sy(e){return e?"getUTCHours":"getHours"}function wC(e){return e?"getUTCMinutes":"getMinutes"}function _C(e){return e?"getUTCSeconds":"getSeconds"}function SC(e){return e?"getUTCMilliseconds":"getMilliseconds"}function RNe(e){return e?"setUTCFullYear":"setFullYear"}function Zie(e){return e?"setUTCMonth":"setMonth"}function Xie(e){return e?"setUTCDate":"setDate"}function Jie(e){return e?"setUTCHours":"setHours"}function Qie(e){return e?"setUTCMinutes":"setMinutes"}function eoe(e){return e?"setUTCSeconds":"setSeconds"}function toe(e){return e?"setUTCMilliseconds":"setMilliseconds"}function roe(e){if(!$ae(e))return fe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function noe(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Uv=bO;function zD(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&no(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?as(e):e;if(isNaN(+l)){if(s)return"-"}else return xC(l,n,r)}if(t==="ordinal")return rD(e)?a(e):lt(e)&&i(e)?e+"":"-";var u=il(e);return i(u)?roe(u):rD(e)?a(e):typeof e=="boolean"?e+"":"-"}var P7=["a","b","c","d","e","f","g"],CE=function(e,t){return"{"+e+(t??"")+"}"};function aoe(e,t,r){te(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=P7[i];e=e.replace(CE(o),CE(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(CE(P7[l],s),r?ca(u):u)}return e}function $Ne(e,t,r){return D(t,function(n,a){e=e.replace("{"+a+"}",r?ca(n):n)}),e}function ONe(e,t){var r=fe(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ca(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ca(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function _f(e,t){return t=t||"transparent",fe(e)?e:Te(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function d2(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var S_=D,ioe=["left","right","top","bottom","width","height"],Pd=[["width","left","right"],["height","top","bottom"]];function KO(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;
599t.eachChild(function(l,u){var c=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(f?-f.x+c.x:0);h=i+v,h>n||l.newline?(i=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+r,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=p+r)})}var Xd=KO;Oe(KO,"vertical");Oe(KO,"horizontal");function zNe(e,t,r){var n=t.width,a=t.height,i=le(e.left,n),o=le(e.top,a),s=le(e.right,n),l=le(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),r=Uv(r||0),{width:Math.max(s-i-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Rr(e,t,r){r=Uv(r||0);var n=t.width,a=t.height,i=le(e.left,n),o=le(e.top,a),s=le(e.right,n),l=le(e.bottom,a),u=le(e.width,n),c=le(e.height,a),d=r[2]+r[0],f=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=n-s-u-f),isNaN(o)&&(o=a-l-c-d),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=n-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new We(i+r[3],o+r[0],u,c);return p.margin=r,p}function kC(e,t,r,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new We(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=Rr(Ce({width:u.width,height:u.height},t),r,n),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===e&&e.markRedraw(),!0}function FNe(e,t){return e[Pd[t][0]]!=null||e[Pd[t][1]]!=null&&e[Pd[t][2]]!=null}function ky(e){var t=e.layoutMode||e.constructor.layoutMode;return Te(t)?t:t?{type:t}:null}function Zu(e,t,r){var n=r&&r.ignoreSize;!te(n)&&(n=[n,n]);var a=o(Pd[0],0),i=o(Pd[1],1);u(Pd[0],e,a),u(Pd[1],e,i);function o(c,d){var f={},h=0,p={},v=0,m=2;if(S_(c,function(b){p[b]=e[b]}),S_(c,function(b){s(t,b)&&(f[b]=p[b]=t[b]),l(f,b)&&h++,l(p,b)&&v++}),n[d])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===m||!h)return p;if(h>=m)return f;for(var g=0;g<c.length;g++){var x=c[g];if(!s(f,x)&&s(e,x)){f[x]=e[x];break}}return f}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,f){S_(c,function(h){d[h]=f[h]})}}function Gv(e){return ooe({},e)}function ooe(e,t){return t&&e&&S_(ioe,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var BNe=at(),Hv=function(e){K(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=Vv("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ky(this),i=a?Gv(r):{},o=n.getTheme();He(r,o.get(this.mainType)),He(r,this.getDefaultOption()),a&&Zu(r,i,a)},t.prototype.mergeOption=function(r,n){He(this.option,r,!0);var a=ky(this);a&&Zu(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!wAe(r))return r.defaultOption;var n=BNe(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=He(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return hx(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Ot);Wae(Hv,Ot);lC(Hv);TNe(Hv);ANe(Hv,jNe);function jNe(e){var t=[];return D(Hv.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.depen
599dencies||[])}),t=re(t,function(r){return Ho(r).main}),e!=="dataset"&&Ke(t,"dataset")<=0&&t.unshift("dataset"),t}const it=Hv;var soe="";typeof navigator<"u"&&(soe=navigator.platform||"");var sh="rgba(0, 0, 0, 0.2)";const VNe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:soe.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var loe=Se(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Li="original",Rn="arrayRows",Ri="objectRows",ds="keyedColumns",Lu="typedArray",uoe="unknown",Qo="column",Wv="row",rn={Must:1,Might:2,Not:3},coe=at();function UNe(e){coe(e).datasetMap=Se()}function doe(e,t,r){var n={},a=XO(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=coe(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,d;e=e.slice(),D(e,function(v,m){var g=Te(v)?v:e[m]={name:v};g.type==="ordinal"&&c==null&&(c=m,d=p(g)),n[g.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});D(e,function(v,m){var g=v.name,x=p(v);if(c==null){var b=f.valueWayDim;h(n[g],b,x),h(o,b,x),f.valueWayDim+=x}else if(c===m)h(n[g],0,x),h(i,0,x);else{var b=f.categoryWayDim;h(n[g],b,x),h(o,b,x),f.categoryWayDim+=x}});function h(v,m,g){for(var x=0;x<g;x++)v.push(m+x)}function p(v){var m=v.dimsDef;return m?m.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function ZO(e,t,r){var n={},a=XO(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Ri||i===ds)&&D(o,function(c,d){(Te(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},f=[],h=0,p=Math.min(5,r);h<p;h++){var v=hoe(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);f.push(v);var m=v===rn.Not;if(m&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!m&&f[c.n]===rn.Not)&&(c.n=h),g(c)&&f[c.n]!==rn.Not)return c;m||(v===rn.Might&&d.v==null&&h!==s&&(d.v=h),(d.n==null||d.n===d.v)&&(d.n=h))}function g(x){return x.v!=null&&x.n!=null}return g(c)?c:g(d)?d:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function XO(e){var t=e.get("data",!0);if(!t)return hx(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},wr).models[0]}function GNe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:hx(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},wr).models}function foe(e,t){return hoe(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function hoe(e,t,r,n,a,i){var o,s=5;if(Wa(e))return rn.Not;var l,u;if(n){var c=n[i];Te(c)?(l=c.name,u=c.type):fe(c)&&(l=c)}if(u!=null)return u==="ordinal"?rn.Must:rn.Not;if(t===Rn){var d=e;if(r===Wv){for(var f=d[i],h=0;h<(f||[]).length&&h<s;h++)if((o=_(f[a+h]))!=null)return o}else for(var h=0;h<d.length&&h<s;h++){var p=d[a+h];if(p&&(o=_(p[i]))!=null)return o}}else if(t===Ri){var v=e;if(!l)return rn.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=_(m[l]))!=null)return o}}else if(t===ds){var g=e;if(!l)return rn.Not;var f=g[l];if(!f||Wa(f))return rn.Not;for(var h=0;h<f.length&&h<s;h++)if((o=_(f[h]))!=null)return o}else if(t===Li)for(var x=e,h=0;h<x.length&&h<s;h++){var m=x[h],b=$v(m);if(!te(b))return rn.Not;if((o=_(b[i]))!=null)return o}function _(k){var S=fe(k);if(k!=null&&isFinite(k)&&k!=="")return S?rn.Might:rn.Not;if(S&&k!=="-")return rn.Must}return rn.Not}var FD=Se();function HNe(e,t){Zn(FD.get(e)==null&&t),FD.set(e,t)}function WNe(e,t,r){var n=FD.get(t);if(!n)return r;var a=n(e);return a?r.concat(a):r}var M7=at(),qNe=at(),JO=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Pt(this.get("color",!0)),i=this.get("colorLayer",!0);return poe(this,M7,a,i,t,r,n)},e.prototype.clearColorPalette=function(){KNe(this,M7)},e}();function BD(e,t,r,n){var a=Pt(e.get(["aria","decal","decals"]));return poe(e,qNe,a,null,t,r,n)}function YNe(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function poe(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:YNe(n,o);if(c=c||r,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function KNe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var cb,Rg,D7,L7="\0_ec_inner",ZNe=1,voe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Ot(i),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=O7(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,O7(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?D7(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}
599if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&D(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Se(),u=n&&n.replaceMergeMainTypeMap;UNe(this),D(r,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ie(d):He(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=WNe(this,d,Pt(r[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",v=jae(h,f,p);fAe(v,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],g=[],x=0,b;D(v,function(_,k){var S=_.existing,C=_.newOption;if(!C)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=d==="series",E=it.getClass(d,_.keyInfo.subType,!T);if(!E)return;if(d==="tooltip"){if(b)return;b=!0}if(S&&S.constructor===E)S.name=_.keyInfo.name,S.mergeOption(C,this),S.optionUpdated(C,!1);else{var A=Q({componentIndex:k},_.keyInfo);S=new E(C,this,this,A),Q(S,A),_.brandNew&&(S.__requireNewView=!0),S.init(C,this,this),S.optionUpdated(null,!0)}}S?(m.push(S.option),g.push(S),x++):(m.push(void 0),g.push(void 0))},this),a[d]=m,i.set(d,g),o.set(d,x),d==="series"&&cb(this)}this._seriesIndices||cb(this)},t.prototype.getOption=function(){var r=Ie(this.option);return D(r,function(n,a){if(it.hasClass(a)){for(var i=Pt(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!my(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[L7],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],D(Pt(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=R7("id",i,s):o!=null?l=R7("name",o,s):l=Et(s,function(u){return!!u}),$7(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Et(this._componentsMap.get(a),function(u){return!!u});return l($7(o,r));function s(u){var c=a+"Index",d=a+"Id",f=a+"Name";return u&&(u[c]!=null||u[d]!=null||u[f]!=null)?{mainType:a,index:u[c],id:u[d],name:u[f]}:null}function l(u){return r.filter?Et(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ke(r)){var o=n,s=r;i.each(function(d,f){for(var h=0;d&&h<d.length;h++){var p=d[h];p&&s.call(o,f,p,p.componentIndex)}})}else for(var l=fe(r)?i.get(r):Te(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Mr(r,null);return Et(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Et(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Et(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Rg(this),D(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){D(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Rg(this),D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return D(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Rg(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Rg(this);var a=[];D(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Se(a)},t.prototype.restoreData=function(r){cb(this);var n=this._componentsMap,a=[];
599n.each(function(i,o){it.hasClass(o)&&a.push(o)}),it.topologicalTravel(a,it.getAllClassMainTypes(),function(i){D(n.get(i),function(o){o&&(i!=="series"||!XNe(o,r))&&o.restoreData()})})},t.internalField=function(){cb=function(r){var n=r._seriesIndices=[];D(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=Se(n)},Rg=function(r){},D7=function(r,n){r.option={},r.option[L7]=ZNe,r._componentsMap=Se({series:[]}),r._componentsCount=Se();var a=n.aria;Te(a)&&a.enabled==null&&(a.enabled=!0),JNe(n,r._theme.option),He(n,VNe,!1),r._mergeOption(n,null)}}(),t}(Ot);function XNe(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function JNe(e,t){var r=e.color&&!e.colorLayer;D(t,function(n,a){a==="colorLayer"&&r||it.hasClass(a)||(typeof n=="object"?e[a]=e[a]?He(e[a],n,!1):Ie(n):e[a]==null&&(e[a]=n))})}function R7(e,t,r){if(te(t)){var n=Se();return D(t,function(i){if(i!=null){var o=Mr(i,null);o!=null&&n.set(i,!0)}}),Et(r,function(i){return i&&n.get(i[e])})}else{var a=Mr(t,null);return Et(r,function(i){return i&&a!=null&&i[e]===a})}}function $7(e,t){return t.hasOwnProperty("subType")?Et(e,function(r){return r&&r.subType===t.subType}):e}function O7(e){var t=Se();return e&&D(Pt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}kr(voe,JO);const goe=voe;var QNe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],eIe=function(){function e(t){D(QNe,function(r){this[r]=ve(t[r],t)},this)}return e}();const moe=eIe;var TE={},tIe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];D(TE,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){D(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){TE[t]=r},e.get=function(t){return TE[t]},e}();const yx=tIe;var rIe=/^(min|max)?(.+)$/,nIe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(D(Pt(t.series),function(o){o&&o.data&&Wa(o.data)&&YS(o.data)}),D(Pt(t.dataset),function(o){o&&o.source&&Wa(o.source)&&YS(o.source)})),t=Ie(t);var a=this._optionBackup,i=aIe(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ie(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=Ie(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)iIe(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!sIe(o,this._currentMediaIndices)&&(s=re(o,function(c){return Ie(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function aIe(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,d=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((d||c)&&(e.options=e.media=null),i=e),c&&te(u)&&D(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),f(i),D(l,function(h){return f(h)}),D(n,function(h){return f(h.option)});function f(h){D(t,function(p){p(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function iIe(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return D(e,function(i,o){var s=o.match(rIe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();oIe(n[u],i,l)||(a=!1)}}),a}function oIe(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function sIe(e,t){return e.join(",")===t.join(",")}const lIe=nIe;var Gi=D,Cy=Te,z7=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function AE(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=z7.length;r<n;r++){var a=z7[r],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?He(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?He(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function An(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Ce(e[t],n)):e[t]=n),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emp
599hasis.blurScope=a.blurScope))}}function D0(e){An(e,"itemStyle"),An(e,"lineStyle"),An(e,"areaStyle"),An(e,"label"),An(e,"labelLine"),An(e,"upperLabel"),An(e,"edgeLabel")}function xr(e,t){var r=Cy(e)&&e[t],n=Cy(r)&&r.textStyle;if(n)for(var a=0,i=Vj.length;a<i;a++){var o=Vj[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}function ci(e){e&&(D0(e),xr(e,"label"),e.emphasis&&xr(e.emphasis,"label"))}function uIe(e){if(Cy(e)){AE(e),D0(e),xr(e,"label"),xr(e,"upperLabel"),xr(e,"edgeLabel"),e.emphasis&&(xr(e.emphasis,"label"),xr(e.emphasis,"upperLabel"),xr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(AE(t),ci(t));var r=e.markLine;r&&(AE(r),ci(r));var n=e.markArea;n&&ci(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!Wa(i))for(var o=0;o<i.length;o++)ci(i[o]);D(e.categories,function(u){D0(u)})}if(a&&!Wa(a))for(var o=0;o<a.length;o++)ci(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ci(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)te(l[o])?(ci(l[o][0]),ci(l[o][1])):ci(l[o]);e.type==="gauge"?(xr(e,"axisLabel"),xr(e,"title"),xr(e,"detail")):e.type==="treemap"?(An(e.breadcrumb,"itemStyle"),D(e.levels,function(u){D0(u)})):e.type==="tree"&&D0(e.leaves)}}function Ss(e){return te(e)?e:e?[e]:[]}function F7(e){return(te(e)?e[0]:e)||{}}function cIe(e,t){Gi(Ss(e.series),function(n){Cy(n)&&uIe(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Gi(r,function(n){Gi(Ss(e[n]),function(a){a&&(xr(a,"axisLabel"),xr(a.axisPointer,"label"))})}),Gi(Ss(e.parallel),function(n){var a=n&&n.parallelAxisDefault;xr(a,"axisLabel"),xr(a&&a.axisPointer,"label")}),Gi(Ss(e.calendar),function(n){An(n,"itemStyle"),xr(n,"dayLabel"),xr(n,"monthLabel"),xr(n,"yearLabel")}),Gi(Ss(e.radar),function(n){xr(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Gi(Ss(e.geo),function(n){Cy(n)&&(ci(n),Gi(Ss(n.regions),function(a){ci(a)}))}),Gi(Ss(e.timeline),function(n){ci(n),An(n,"label"),An(n,"itemStyle"),An(n,"controlStyle",!0);var a=n.data;te(a)&&D(a,function(i){Te(i)&&(An(i,"label"),An(i,"itemStyle"))})}),Gi(Ss(e.toolbox),function(n){An(n,"iconStyle"),Gi(n.feature,function(a){An(a,"iconStyle")})}),xr(F7(e.axisPointer),"label"),xr(F7(e.tooltip).axisPointer,"label")}function dIe(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function fIe(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function B7(e){e&&D(hIe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var hIe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],pIe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],EE=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function $g(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<EE.length;r++){var n=EE[r][1],a=EE[r][0];t[n]!=null&&(t[a]=t[n])}}function j7(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function V7(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function vIe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function yoe(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&yoe(e[r].children,t)}function xoe(e,t){cIe(e,t),e.series=Pt(e.series),D(e.series,function(r){if(Te(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),j7(r.label);var a=r.data;if(a&&!Wa(a))for(var i=0;i<a.length;i++)j7(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=dIe(r,"pointer.color");o!=null&&fIe(r,"itemStyle.color",o)}else if(n==="bar"){$g(r),$g(r.backgroundStyle),$g(r.emphasis);var a=r.data;if(a&&!Wa(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&($g(a[i]),$g(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),V7(r),yoe(r.data,V7)}else n==="graph"||n==="sankey"?vIe(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapT
599ype),r.mapLocation&&Ce(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),B7(r)}}),e.dataRange&&(e.visualMap=e.dataRange),D(pIe,function(r){var n=e[r];n&&(te(n)||(n=[n]),D(n,function(a){B7(a)}))})}function gIe(e){var t=Se();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(mIe)}function mIe(e){D(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,d){var f=o.get(t.stackedDimension,d);if(isNaN(f))return a;var h,p;s?p=o.getRawIndex(d):h=o.get(t.stackedByDimension,d);for(var v=NaN,m=r-1;m>=0;m--){var g=e[m];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,h)),p>=0){var x=g.data.getByRawIndex(g.stackResultDimension,p);if(l==="all"||l==="positive"&&x>0||l==="negative"&&x<0||l==="samesign"&&f>=0&&x>0||l==="samesign"&&f<=0&&x<0){f=tAe(f,x),v=x;break}}}return n[0]=f,n[1]=v,n})})}var CC=function(){function e(t){this.data=t.data||(t.sourceFormat===ds?{}:[]),this.sourceFormat=t.sourceFormat||uoe,this.seriesLayoutBy=t.seriesLayoutBy||Qo,this.startIndex=t.startIndex||
5990,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&foe(this,n)===rn.Must&&(a.type="ordinal")}}return e}();function QO(e){return e instanceof CC}function jD(e,t,r){r=r||boe(e);var n=t.seriesLayoutBy,a=xIe(e,r,n,t.sourceHeader,t.dimensions),i=new CC({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ie(t)});return i}function e3(e){return new CC({data:e,sourceFormat:Wa(e)?Lu:Li})}function yIe(e){return new CC({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ie(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function boe(e){var t=uoe;if(Wa(e))t=Lu;else if(te(e)){e.length===0&&(t=Rn);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(te(a)){t=Rn;break}else if(Te(a)){t=Ri;break}}}}else if(Te(e)){for(var i in e)if(ye(e,i)&&Ln(e[i])){t=ds;break}}return t}function xIe(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:U7(a),startIndex:o,dimensionsDetectedCount:i};if(t===Rn){var s=e;n==="auto"||n==null?G7(function(u){u!=null&&u!=="-"&&(fe(u)?o==null&&(o=1):o=0)},r,s,10):o=lt(n)?n:n?1:0,!a&&o===1&&(a=[],G7(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===Wv?s.length:s[0]?s[0].length:null}else if(t===Ri)a||(a=bIe(e));else if(t===ds)a||(a=[],D(e,function(u,c){a.push(c)}));else if(t===Li){var l=$v(e[0]);i=te(l)&&l.length||1}return{startIndex:o,dimensionsDefine:U7(a),dimensionsDetectedCount:i}}function bIe(e){for(var t=0,r;t<e.length&&!(r=e[t++]););
599if(r)return tt(r)}function U7(e){if(e){var t=Se();return re(e,function(r,n){r=Te(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function G7(e,t,r,n){if(t===Wv)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function woe(e){var t=e.sourceFormat;return t===Ri||t===ds}var Bc,jc,Vc,H7,W7,_oe=function(){function e(t,r){var n=QO(t)?t:e3(t);this._source=n;var a=this._data=n.data;n.sourceFormat===Lu&&(this._offset=0,this._dimSize=r,this._data=a),W7(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;W7=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,f=l.dimensionsDefine,h=H7[t3(u,c)];if(Q(o,h),u===Lu)o.getItem=r,o.count=a,o.fillStorage=n;else{var p=Soe(u,c);o.getItem=ve(p,null,s,d,f);var v=koe(u,c);o.count=ve(v,null,s,d,f)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,d=0;d<u;d++)s[d]=l[c+d];return s},n=function(o,s,l,u){for(var c=this._data,d=this._dimSize,f=0;f<d;f++){for(var h=u[f],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,g=l[f],x=0;x<m;x++){var b=c[x*d+f];g[o+x]=b,b<p&&(p=b),b>v&&(v=b)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};H7=(t={},t[Rn+"_"+Qo]={pure:!0,appendData:i},t[Rn+"_"+Wv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ri]={pure:!0,appendData:i},t[ds]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},t[Li]={appendData:i},t[Lu]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),q7=function(e,t,r,n){return e[n]},wIe=(Bc={},Bc[Rn+"_"+Qo]=function(e,t,r,n){return e[n+t]},Bc[Rn+"_"+Wv]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Bc[Ri]=q7,Bc[ds]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];i[o]=l?l[n]:null}return i},Bc[Li]=q7,Bc);function Soe(e,t){var r=wIe[t3(e,t)];return r}var Y7=function(e,t,r){return e.length},_Ie=(jc={},jc[Rn+"_"+Qo]=function(e,t,r){return Math.max(0,e.length-t)},jc[Rn+"_"+Wv]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},jc[Ri]=Y7,jc[ds]=function(e,t,r){var n=r[0].name,a=e[n];return a?a.length:0},jc[Li]=Y7,jc);function koe(e,t){var r=_Ie[t3(e,t)];return r}var NE=function(e,t,r){return e[t]},SIe=(Vc={},Vc[Rn]=NE,Vc[Ri]=function(e,t,r){return e[r]},Vc[ds]=NE,Vc[Li]=function(e,t,r){var n=$v(e);return n instanceof Array?n[t]:n},Vc[Lu]=NE,Vc);function Coe(e){var t=SIe[e];return t}function t3(e,t){return e===Rn?e+"_"+t:e}function rv(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return Coe(i)(n,o,s)}else{var l=n;return i===Li&&(l=$v(n)),l}}}}var kIe=/\{@(.+?)\}/g,r3=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,f=d==="series",h=n.userOutput&&n.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&te(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ke(i))return l.status=r,l.dimensionIndex=a,i(l);if(fe(i)){var c=aoe(i,l);return c.replace(kIe,function(d,f){var h=f.length,p=f;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=rv(s,t,p);if(o&&te(o.interpolatedValue)){var m=s.getDimensionIndex(p);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return rv(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function K7(e){var t,r;return Te(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ym(e){return new CIe(e)}var CIe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(x){return!(x>=1)&&(x=1),x}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(d||h<p)){var v=this._progress;if(te(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,p,l,u);else this._doProgress(v,h,p,l,u)}this._dueIndex=p;var g=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){Z7.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Z7.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),te(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),Z7=function(){var e,t,r,n,a,i={reset:function(l,u,c,d){t=l,e=u,r=c,n=d,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ru(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!lt(e)&&e!=null&&e!=="-"&&(e=+as(e)),e==null||e===""?NaN:+e)}var TIe=Se({number:function(e){return parseFloat(e)},time:function(e){return+as(e)},trim:function(e){return fe(e)?no(e):e}});function Toe(e){return TIe.get(e)}var Aoe={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},AIe=function(){function e(t,r){if(!lt(r)){var n="";mt(n)}this._opFn=Aoe[t],this._rvalFloat=il(r)}return e.prototype.evaluate=function(t){return lt(t)?this._opFn(t,this._rvalFloat):this._opFn(il(t),this._rvalFloat)},e}(),Eoe=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=lt(t)?t:il(t),a=lt(r)?r:il(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=fe(t),l=fe(r);
599s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),EIe=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=il(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=il(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function NIe(e,t){return e==="eq"||e==="ne"?new EIe(e==="eq",t):ye(Aoe,e)?new AIe(e,t):null}var IIe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ru(t,r)},e}();function PIe(e,t){var r=new IIe,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Qo&&mt(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,m){var g=v.name,x={index:m,name:g,displayName:v.displayName};if(s.push(x),g!=null){var b="";ye(l,g)&&mt(b),l[g]=x}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var d=Soe(a,Qo);t.__isBuiltIn&&(r.getRawDataItem=function(v){return d(n,i,s,v)},r.getRawData=ve(MIe,null,e)),r.cloneRawData=ve(DIe,null,e);var f=koe(a,Qo);r.count=ve(f,null,n,i,s);var h=Coe(a);r.retrieveValue=function(v,m){var g=d(n,i,s,v);return p(g,m)};var p=r.retrieveValueFromItem=function(v,m){if(v!=null){var g=s[m];if(g)return h(v,m,g.name)}};return r.getDimensionInfo=ve(LIe,null,s,l),r.cloneAllDimensionInfo=ve(RIe,null,s),r}function MIe(e){var t=e.sourceFormat;if(!n3(t)){var r="";mt(r)}return e.data}function DIe(e){var t=e.sourceFormat,r=e.data;if(!n3(t)){var n="";mt(n)}if(t===Rn){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===Ri){for(var a=[],i=0,o=r.length;i<o;i++)a.push(Q({},r[i]));return a}}function LIe(e,t,r){if(r!=null){if(lt(r)||!isNaN(r)&&!ye(t,r))return e[r];if(ye(t,r))return t[r]}}function RIe(e){return Ie(e)}var Noe=Se();function $Ie(e){e=Ie(e);var t=e.type,r="";t||mt(r);var n=t.split(":");n.length!==2&&mt(r);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,Noe.set(t,e)}function OIe(e,t,r){var n=Pt(e),a=n.length,i="";a||mt(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=zIe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function zIe(e,t,r,n){var a="";t.length||mt(a),Te(e)||mt(a);var i=e.type,o=Noe.get(i);o||mt(a);var s=re(t,function(u){return PIe(u,o)}),l=Pt(o.transform({upstream:s[0],upstreamList:s,config:Ie(e.config)}));return re(l,function(u,c){var d="";Te(u)||mt(d),u.data||mt(d);var f=boe(u.data);n3(f)||mt(d);var h,p=t[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:Qo,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:Qo,sourceHeader:0,dimensions:u.dimensions};return jD(u.data,h,null)})}function n3(e){return e===Rn||e===Ri}var TC="undefined",FIe=typeof Uint32Array===TC?Array:Uint32Array,BIe=typeof Uint16Array===TC?Array:Uint16Array,Ioe=typeof Int32Array===TC?Array:Int32Array,X7=typeof Float64Array===TC?Array:Float64Array,Poe={float:X7,int:Ioe,ordinal:Array,number:Array,time:X7},IE;function Og(e){return e>65535?FIe:BIe}function lh(){return[1/0,-1/0]}function jIe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function J7(e,t,r,n,a){var i=Poe[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var VD=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Se()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=IE[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],woe(a),this._dimensions=re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new Poe[r||"float"](this._rawCount),this._rawExtent[i]=lh(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=lh());for(var l=i[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var c=a[u];J7(n,u,c.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var h=f-s,p=0;p<i;p++){var c=a[p],v=IE.arrayRows.call(this,t[h]||d,c.property,h,p);n[p][f]=v;var m=o[p];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=re(o,function(x){return x.property}),c=0;c<s;c++){var d=o[c];l[c]||(l[c]=lh()),J7(i,c,d.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var f=[],h=t;h<r;h++){f=a.getItem(h,f);for(var p=0;p<s;p++){var v=i[p],m=this._dimValueGetter(f,u[p],h,p);v[h]=m;var g=l[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c<d;c++){var f=this.getRawIndex(c),h=r-i[f],p=Math.abs(h);p<=n&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Og(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Og(n._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],d=n._chunks,f=0;f<a;f++){var h=void 0,p=n.getRawIndex(f);if(l===0)h=r(f);else if(l===1){var v=d[c][p];h=r(v,f)}else{for(var m=0;m<l;m++)s[m]=d[t[m]][p];s[m]=f,h=r.apply(null,s)}h&&(o[u++]=p)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=tt(t),i=a.length;if(!i)return this;var o=r.count(),s=Og(r._rawCount),l=new s(o),u=0,c=a[0],d=t[c][0],f=t[c][1],h=r._chunks,p=!1;if(!r._indices){var v=0;if(i===1){for(var m=h[a[0]],g=0;g<n;g++){var x=m[g];(x>=d&&x<=f||isNaN(x))&&(l[u++]=v),v++}p=!0}else if(i===2){for(var m=h[a[0]],b=h[a[1]],_=t[a[1]][0],k=t[a[1]][1],g=0;g<n;g++){var x=m[g],S=b[g];(x>=d&&x<=f||isNaN(x))&&(S>=_&&S<=k||isNaN(S))&&(l[u++]=v),v++}p=!0}}if(!p)if(i===1)for(var g=0;g<o;g++){var C=r.getRawIndex(g),x=h[a[0]][C];(x>=d&&x<=f||isNaN(x))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var T=!0,C=r.getRawIndex(g),E=0;E<i;E++){var A=a[E],x=h[A][C];(x<t[A][0]||x>t[A][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}
599return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=lh();for(var d=0;d<s;d++){for(var f=t.getRawIndex(d),h=0;h<o;h++)l[h]=a[r[h]][f];l[o]=d;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var v=r[c],m=p[c],g=u[v],x=a[v];x&&(x[f]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,d,f,h=new(Og(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),m=Math.min(p+l*2,o),g=(m+v)/2,x=0,b=v;b<m;b++){var _=this.getRawIndex(b),k=i[_];isNaN(k)||(x+=k)}x/=m-v;var S=p,C=Math.min(p+l,o),T=p-1,E=i[u];c=-1,f=S;for(var A=-1,N=0,b=S;b<C;b++){var _=this.getRawIndex(b),k=i[_];if(isNaN(k)){N++,A<0&&(A=_);continue}d=Math.abs((T-g)*(k-E)-(T-b)*(x-E)),d>c&&(c=d,f=_)}N>0&&N<C-S&&(h[s++]=Math.min(A,f),f=Math.max(A,f)),h[s++]=f,u=f}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),d=i._rawExtent[t]=lh(),f=new(Og(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(p+v);s[v]=u[m]}var g=n(s),x=this.getRawIndex(Math.min(p+a(s,g)||0,c-1));u[x]=g,g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g),f[h++]=x}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=lh();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),d=r[c];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&ts(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?jIe(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ie(this._extent),t._rawExtent=Ie(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return Ru(r[i],this._dimensions[i])}IE={arrayRows:t,objectRows:function(r,n,a,i){return Ru(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ru(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),Moe=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(db(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Wa(s)?Lu:Li,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ge(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ge(d.sourceHeader,f.sourceHeader),v=Ge(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||v;a=m?[jD(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var g=t;if(n){var x=this._applyTransform(r);a=x.sourceList,i=x.upstreamSignList}else{var b=g.get("source",!0);a=[jD(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&eV(i)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&eV(d),s.push(c),l.push(u._getVersionSign())}),n?o=OIe(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[yIe(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];
599if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];db(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new VD,s.initData(new _oe(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(db(t)){var r=XO(t);return r?[r.getSourceManager()]:[]}else return re(GNe(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(db(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function Q7(e){var t=e.option.transform;t&&YS(e.option.transform)}function db(e){return e.mainType==="series"}function eV(e){throw new Error(e)}var Doe="line-height:1";function Loe(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ca(n+"")+"px;color:"+ca(r)+";font-weight:"+ca(a+""),valueStyle:"font-size:"+ca(o+"")+"px;color:"+ca(i)+";font-weight:"+ca(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var VIe=[0,10,20,30],UIe=["",` 600`,` 601 602`,` 603 604 605`];function Gr(e,t){return t.type=e,t}function UD(e){return e.type==="section"}function Roe(e){return UD(e)?GIe:HIe}function $oe(e){if(UD(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return D(e.blocks,function(a){var i=$oe(a);i>=t&&(t=i+ +(n&&(!i||UD(a)&&!a.noHeader)))}),t}return 0}function GIe(e,t,r,n){var a=t.noHeader,i=WIe($oe(t)),o=[],s=t.blocks||[];Zn(!s||te(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ye(u,l)){var c=new Eoe(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var m=t.valueFormatter,g=Roe(p)(m?Q(Q({},e),{valueFormatter:m}):e,p,v>0?i.html:0,n);g!=null&&o.push(g)});var d=e.renderMode==="richText"?o.join(i.richText):GD(o.join(""),a?r:i.html);if(a)return d;var f=zD(t.header,"ordinal",e.useUTC),h=Loe(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Ooe(e,f,h)+i.richText+d:GD('<div style="'+h+";"+Doe+';">'+ca(f)+"</div>"+d,r)}function HIe(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(_){return _=te(_)?_:[_],re(_,function(k,S){return zD(k,te(h)?h[S]:h,u)})};if(!(i&&o)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),f=i?"":zD(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!i,m=!s&&i,g=Loe(n,a),x=g.nameStyle,b=g.valueStyle;
605return a==="richText"?(s?"":d)+(i?"":Ooe(e,f,x))+(o?"":KIe(e,p,v,m,b)):GD((s?"":d)+(i?"":qIe(f,!s,x))+(o?"":YIe(p,v,m,b)),r)}}function tV(e,t,r,n,a,i){if(e){var o=Roe(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function WIe(e){return{html:VIe[e],richText:UIe[e]}}function GD(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Doe+';">'+e+r+"</div>"}function qIe(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ca(e)+"</span>"}function YIe(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=te(e)?e:[e],'<span style="'+i+";"+n+'">'+re(e,function(o){return ca(o)}).join(" ")+"</span>"}function Ooe(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function KIe(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(te(t)?t.join(" "):t,i)}function zoe(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return _f(n)}function Foe(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var PE=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Oae()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=ONe({color:r,type:t,renderMode:n,markerId:a});return fe(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};te(r)?D(r,function(i){return Q(n,i)}):Q(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function Boe(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=te(s),u=zoe(t,r),c,d,f,h;if(o>1||l&&!o){var p=ZIe(s,t,r,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=c=rv(a,r,i[0]),d=v.type}else h=c=l?s[0]:s;var m=NO(t),g=m&&t.name||"",x=a.getName(r),b=n?g:x;return Gr("section",{header:g,noHeader:n||!m,sortParam:h,blocks:[Gr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!no(b),value:c,valueType:d})].concat(f||[])})}function ZIe(e,t,r,n,a){var i=t.getData(),o=ts(e,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?D(n,function(d){c(rv(i,r,d),d)}):D(e,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(Gr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var $l=at();function fb(e,t){return e.getName(t)||e.getId(t)}var k_="__universalTransitionEnabled",AC=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=ym({count:JIe,reset:QIe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=$l(this).sourceManager=new Moe(this);i.prepareSource();var o=this.getInitialData(r,a);nV(o,this),this.dataTask.context.data=o,$l(this).dataBeforeProcessed=o,rV(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ky(this),i=a?Gv(r):{},o=this.subType;it.hasClass(o)&&(o+="Series"),He(r,n.getTheme().get(this.subType)),He(r,this.getDefaultOption()),yf(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Zu(r,i,a)},t.prototype.mergeOption=function(r,n){r=He(this.option,r,!0),this.fillDataTextStyle(r.data);var a=ky(this);a&&Zu(this.option,r,a);var i=$l(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);nV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,$l(this).dataBeforeProcessed=o,rV(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wa(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&yf(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=HD(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}
605else return $l(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=HD(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}$l(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Se(r)},t.prototype.getSourceManager=function(){return $l(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return $l(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return Boe({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ot.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=JO.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=fb(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=tt(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[fb(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[k_])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Te(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var d=n[c],f=fb(r,d);u[f]=!0,this._selectedDataIndicesMap[f]=r.getRawIndex(d)}}else if(s==="single"||s===!0){var h=n[l-1],f=fb(r,h);o.selectedMap=(a={},a[f]=!0,a),this._selectedDataIndicesMap=(i={},i[f]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return it.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(it);kr(AC,r3);kr(AC,JO);Wae(AC,it);function rV(e){var t=e.name;NO(e)||(e.name=XIe(e)||t)}function XIe(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function JIe(e){return e.model.getRawData().count()}function QIe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),e5e}function e5e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function nV(e,t){D(KS(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Oe(t5e,t))})}function t5e(e,t){var r=HD(e);return r&&r.setOutputEnd((t||this).count()),t}function HD(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Zt=AC;var a3=function(){function e(){this.group=new Me,this.uid=Vv("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();PO(a3);lC(a3);const ar=a3;function qv(){var e=at();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRen
605der,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var joe=at(),r5e=qv(),i3=function(){function e(){this.group=new Me,this.uid=Vv("viewChart"),this.renderTask=ym({plan:n5e,reset:a5e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&iV(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&iV(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){fc(this.group,t)},e.markUpdateMethod=function(t,r){joe(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function aV(e,t,r){e&&by(e)&&(t==="emphasis"?ol:sl)(e,r)}function iV(e,t,r){var n=xf(e,t),a=t&&t.highlightKey!=null?IEe(t.highlightKey):null;n!=null?D(Pt(n),function(i){aV(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){aV(i,r,a)})}PO(i3);lC(i3);function n5e(e){return r5e(e.model)}function a5e(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&joe(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),i5e[l]}var i5e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Ft=i3;var f2="\0__throttleOriginMethod",oV="\0__throttleRate",sV="\0__throttleType";function o3(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function d(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var f=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];n=new Date().getTime(),l=this,u=h;var v=c||t,m=c||r;c=null,s=n-(m?a:i)-v,clearTimeout(o),m?o=setTimeout(d,v):s>=0?d():o=setTimeout(d,-s),a=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function Yv(e,t,r,n){var a=e[t];if(a){var i=a[f2]||a,o=a[sV],s=a[oV];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=o3(i,r,n==="debounce"),a[f2]=i,a[sV]=n,a[oV]=r}return a}}function Ty(e,t){var r=e[t];r&&r[f2]&&(r.clear&&r.clear(),e[t]=r[f2])}var lV=at(),uV={itemStyle:bf(Hie,!0),lineStyle:bf(Gie,!0)},o5e={lineStyle:"stroke",itemStyle:"fill"};function Voe(e,t){var r=e.visualStyleMapper||uV[t];return r||uV.itemStyle}function Uoe(e,t){var r=e.visualDrawType||o5e[t];return r||"fill"}var s5e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Voe(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Uoe(e,n),u=o[l],c=ke(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ke(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||ke(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),m=Q({},o);m[l]=c(v),h.setItemVisual(p,"style",m)}}}},zg=new Ot,l5e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Voe(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){zg.option=l[n];var u=a(zg),c=o.ensureUniqueItemVisual(s,"style");Q(c,u),zg.option.decal&&(o.setItemVisual(s,"decal",zg.option.decal),zg.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},u5e={performRawSeries:!0,overallReset:function(e){var t=Se();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),lV(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=lV(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Uoe(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");
605if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();f[l]=r.getColorFromPalette(h,o,p)}})}})}},hb=Math.PI;function c5e(e,t){t=t||{},Ce(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,n=new nt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new st({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new nt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new BO({shape:{startAngle:-hb/2,endAngle:-hb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:hb*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:hb*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var d5e=function(){function e(t,r,n,a){this._stageTaskMap=Se(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Se();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;D(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Zn(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;D(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,n);var v=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(v)}),f.perform(v)&&(i=!0)}else d&&d.each(function(m,g){s(a,m)&&m.dirty();var x=o.getPerformArgs(m,a.block);x.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(x)&&(i=!0)})}});
605function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Se(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||ym({plan:g5e,reset:m5e,count:x5e}));h.context={model:d,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(d,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||ym({reset:f5e});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Se(),u=t.seriesType,c=t.getTargetSeries,d=!0,f=!1,h="";Zn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,a).each(p):(d=!1,D(n.getSeries(),p));function p(v){var m=v.uid,g=l.set(m,s&&s.get(m)||(f=!0,ym({reset:h5e,onDirty:v5e})));g.context={model:v,overallProgress:d},g.agent=o,g.__block=d,i._pipe(v,g)}f&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ke(t)&&(t={overallReset:t,seriesType:b5e(t)}),t.uid=Vv("stageHandler"),r&&(t.visualType=r),t},e}();function f5e(e){e.overallReset(e.ecModel,e.api,e.payload)}function h5e(e){return e.overallProgress&&p5e}function p5e(){this.agent.dirty(),this.getDownstream().dirty()}function v5e(){this.agent&&this.agent.dirty()}function g5e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function m5e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Pt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?re(t,function(r,n){return Goe(n)}):y5e}var y5e=Goe(0);function Goe(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function x5e(e){return e.data.count()}function b5e(e){h2=null;try{e(Ay,Hoe)}catch{}return h2}var Ay={},Hoe={},h2;Woe(Ay,goe);Woe(Hoe,moe);Ay.eachSeriesByType=Ay.eachRawSeriesByType=function(e){h2=e};Ay.eachComponent=function(e){e.mainType==="series"&&e.subType&&(h2=e.subType)};function Woe(e,t){for(var r in t.prototype)e[r]=mr}const qoe=d5e;var cV=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const w5e={color:cV,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],cV]};
605var zn="#B9B8CE",dV="#100C2A",pb=function(){return{axisLine:{lineStyle:{color:zn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},fV=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Yoe={darkMode:!0,color:fV,backgroundColor:dV,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:zn}},textStyle:{color:zn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:zn}},dataZoom:{borderColor:"#71708A",textStyle:{color:zn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:zn}},timeline:{lineStyle:{color:zn},label:{color:zn},controlStyle:{color:zn,borderColor:zn}},calendar:{itemStyle:{color:dV},dayLabel:{color:zn},monthLabel:{color:zn},yearLabel:{color:zn}},timeAxis:pb(),logAxis:pb(),valueAxis:pb(),categoryAxis:pb(),line:{symbol:"circle"},graph:{color:fV},gauge:{title:{color:zn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:zn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Yoe.categoryAxis.splitLine.show=!1;const _5e=Yoe;var S5e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(fe(t)){var i=Ho(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};D(t,function(l,u){for(var c=!1,d=0;d<o.length;d++){var f=o[d],h=u.lastIndexOf(f);if(h>0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),WD=["symbol","symbolSize","symbolRotate","symbolOffset"],hV=WD.concat(["symbolKeepAspect"]),k5e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<WD.length;o++){var s=WD[o],l=e.get(s);ke(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Q({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=tt(a);function c(d,f){for(var h=e.getRawValue(f),p=e.getDataParams(f),v=0;v<u.length;v++){var m=u[v];d.setItemVisual(f,m,a[m](h,p))}}return{dataEach:i?c:null}}},C5e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<hV.length;s++){var l=hV[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function s3(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function xx(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Koe(e,t,r,n){switch(r){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function Zoe(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}D([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=Q({},a),o.dispatchAction(Q(a,{type:n[1],seriesIndex:r(i,a)}))})})}function uh(e,t,r,n,a){var i=e+t;r.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=o.getData(),f=xf(d,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:te(f)?d.getName(f[0]):d.getName(f),selected:fe(l)?l:Q({},l)})}})}function T5e(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(uh("map","selectchanged",t,a,n),uh("pie","selectchanged",t,a,n)):n.fromAction==="select"?(uh("map","selected",t,a,n),uh("pie","selected",t,a,n)):n.fromAction==="unselect"&&(uh("map","unselected",t,a,n),uh("pie","unselected",t,a,n))})}function Md(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var A5e=Math.round(Math.random()*9),E5e=typeof Object.defineProperty=="function",N5e=function(){function e(){this._id="__ec_inner_"+A5e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return E5e?Object.defineProperty(n,this._id,{value:r,enumerable:!1,
605configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const I5e=N5e;var P5e=Je.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),M5e=Je.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),D5e=Je.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),f=Math.cos(u),h=o*.6,p=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-d*h,l+s+f*h,r,n-p,r,n),e.bezierCurveTo(r,n-p,r-c+d*h,l+s+f*h,r-c,l+s),e.closePath()}}),L5e=Je.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),R5e={line:Xr,rect:nt,roundRect:nt,square:nt,circle:os,diamond:M5e,pin:D5e,arrow:L5e,triangle:P5e},$5e={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},p2={};D(R5e,function(e,t){p2[t]=new e});var O5e=Je.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=r2(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=p2[n];a||(n="rect",a=p2[n]),$5e[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function z5e(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Sr(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Rie(e.slice(8),new We(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=gC(e.slice(7),{},new We(t,r,n,a),o?"center":"cover"):l=new O5e({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=z5e,i&&l.setColor(i),l}function bx(e){return te(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Kv(e,t){if(e!=null)return te(e)||(e=[e,e]),[le(e[0],t[0])||0,le(Ge(e[1],e[0]),t[1])||0]}function Dd(e){return isFinite(e)}function F5e(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Dd(n)?n:0,a=Dd(a)?a:1,i=Dd(i)?i:0,o=Dd(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function B5e(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Dd(o)?o:.5,s=Dd(s)?s:.5,l=l>=0&&Dd(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function qD(e,t,r){for(var n=t.type==="radial"?B5e(e,t,r):F5e(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function j5e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function vb(e){return parseInt(e,10)}function ip(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||vb(s[n])||vb(e.style[n]))-(vb(s[i])||0)-(vb(s[o])||0)|0}function V5e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:lt(e)?[e]:te(e)?e:null}function l3(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&V5e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=re(r,function(i){return i/a}),n/=a)}return[r,n]}var U5e=new is(!0);function v2(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function pV(e){return typeof e=="string"&&e!=="none"}function g2(e){var t=e.fill;return t!=null&&t!=="none"}function vV(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function gV(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function YD(e,t,r){var n=MO(t.image,t.__image,r);if(uC(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*c_),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function G5e(e,t,r,n){var a,i=v2(r),o=g2(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||U5e,d=t.__dirty;if(!n){var f=r.fill,h=r.stroke,p=o&&!!f.colorStops,v=i&&!!h.colorStops,m=o&&!!f.image,g=i&&!!h.image,x=void 0,b=void 0,_=void 0,k=void 0,S=void 0;
605(p||v)&&(S=t.getBoundingRect()),p&&(x=d?qD(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=x),v&&(b=d?qD(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(_=d||!t.__canvasFillPattern?YD(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=_),g&&(k=d||!t.__canvasStrokePattern?YD(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?e.fillStyle=x:m&&(_?e.fillStyle=_:o=!1),v?e.strokeStyle=b:g&&(k?e.strokeStyle=k:i=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&r.lineDash&&(a=l3(t),T=a[0],E=a[1]);var A=!0;(u||d&Dh)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=E),n||(r.strokeFirst?(i&&gV(e,r),o&&vV(e,r)):(o&&vV(e,r),i&&gV(e,r))),T&&e.setLineDash([])}function H5e(e,t,r){var n=t.__image=MO(r.image,t.__image,t,t.onload);if(!(!n||!uC(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,d=o-u,f=s-c;e.drawImage(n,u,c,d,f,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function W5e(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Wu,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=l3(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(v2(r)&&e.strokeText(a,r.x,r.y),g2(r)&&e.fillText(a,r.x,r.y)):(g2(r)&&e.fillText(a,r.x,r.y),v2(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var mV=["shadowBlur","shadowOffsetX","shadowOffsetY"],yV=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xoe(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){pa(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?qd.opacity:o}(n||t.blend!==r.blend)&&(i||(pa(e,a),i=!0),e.globalCompositeOperation=t.blend||qd.blend);for(var s=0;s<mV.length;s++){var l=mV[s];(n||t[l]!==r[l])&&(i||(pa(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(pa(e,a),i=!0),e.shadowColor=t.shadowColor||qd.shadowColor),i}function xV(e,t,r,n,a){var i=Ey(t,a.inHover),o=n?null:r&&Ey(r,a.inHover)||{};if(i===o)return!1;var s=Xoe(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(pa(e,a),s=!0),pV(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(pa(e,a),s=!0),pV(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(pa(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(pa(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<yV.length;c++){var d=yV[c],f=d[0];(n||i[f]!==o[f])&&(s||(pa(e,a),s=!0),e[f]=i[f]||d[1])}return s}function q5e(e,t,r,n,a){return Xoe(e,Ey(t,a.inHover),r&&Ey(r,a.inHover),n,a)}function Joe(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function Y5e(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),Joe(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function K5e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var bV=1,wV=2,_V=3,SV=4;function Z5e(e){var t=g2(e),r=v2(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function pa(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ey(e,t){return t&&e.__hoverStyle||e.style}function Qoe(e,t){Ld(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ld(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~$a,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||j5e(i,o))&&(o&&o.length&&(pa(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(pa(e,r),e.save(),Y5e(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof Je&&t.autoBatch&&Z5e(t.style);s||K5e(a,u.transform)?(pa(e,r),Joe(e,t)):c||pa(e,r);var d=Ey(t,r.inHover);t instanceof Je?(r.lastDrawType!==bV&&(l=!0,r.lastDrawType=bV),xV(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),G5e(e,t,d,c),c&&(r.batchFill=d.fill||"",r.batchStroke=d.stroke||"")):t instanceof yy?(r.lastDrawType!==_V&&(l=!0,r.lastDrawType=_V),xV(e,t,u,l,r),W5e(e,t,d)):t instanceof hn?(r.lastDrawType!==wV&&(l=!0,r.lastDrawType=wV),q5e(e,t,u,l,r),H5e(e,t,d)):t.getTemporalDisplayables&&(r.lastDrawType!==SV&&(l=!0,r.lastDrawType=SV),X5e(e,t,r)),c&&n&&pa(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function X5e(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ld(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ld(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}
605t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var ME=new I5e,kV=new dx(100),CV=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function nv(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&ME.delete(e);var i=ME.get(e);if(i)return i;var o=Ce(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,ME.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],d=!0,f=0;f<CV.length;++f){var h=o[CV[f]];if(h!=null&&!te(h)&&!fe(h)&&!lt(h)&&typeof h!="boolean"){d=!1;break}c.push(h)}var p;if(d){p=c.join(",")+(a?"-svg":"");var v=kV.get(p);v&&(a?u.svgElement=v:u.image=v)}var m=tse(o.dashArrayX),g=J5e(o.dashArrayY),x=ese(o.symbol),b=Q5e(m),_=rse(g),k=!a&&qu.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=E(),T;k&&(k.width=C.width*r,k.height=C.height*r,T=k.getContext("2d")),A(),d&&kV.put(p,k||S),u.image=k,u.svgElement=S,u.svgWidth=C.width,u.svgHeight=C.height;function E(){for(var N=1,P=0,L=b.length;P<L;++P)N=Bj(N,b[P]);for(var R=1,P=0,L=x.length;P<L;++P)R=Bj(R,x[P].length);N*=R;var M=_*b.length*x.length;return{width:Math.max(1,Math.min(N,o.maxTileWidth)),height:Math.max(1,Math.min(M,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,k.width,k.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,k.width,k.height)));for(var N=0,P=0;P<g.length;++P)N+=g[P];if(N<=0)return;for(var L=-_,R=0,M=0,$=0;L<C.height;){if(R%2===0){for(var V=M/2%x.length,B=0,j=0,I=0;B<C.width*2;){for(var U=0,P=0;P<m[$].length;++P)U+=m[$][P];if(U<=0)break;if(j%2===0){var Y=(1-o.symbolSize)*.5,O=B+m[$][j]*Y,H=L+g[R]*Y,ie=m[$][j]*o.symbolSize,ee=g[R]*o.symbolSize,se=I/2%x[V].length;oe(O,H,ie,ee,x[V][se])}B+=m[$][j],++I,++j,j===m[$].length&&(j=0)}++$,$===m.length&&($=0)}L+=g[R],++M,++R,R===g.length&&(R=0)}function oe(be,me,Z,J,we){var xe=a?1:r,Pe=Sr(we,be*xe,me*xe,Z*xe,J*xe,o.color,o.symbolKeepAspect);if(a){var he=n.painter.renderOneToVNode(Pe);he&&S.children.push(he)}else Qoe(T,Pe)}}}}function ese(e){if(!e||e.length===0)return[["rect"]];if(fe(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!fe(e[r])){t=!1;break}if(t)return ese([e]);for(var n=[],r=0;r<e.length;++r)fe(e[r])?n.push([e[r]]):n.push(e[r]);return n}function tse(e){if(!e||e.length===0)return[[0,0]];if(lt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!lt(e[n])){r=!1;break}if(r)return tse([e]);for(var a=[],n=0;n<e.length;++n)if(lt(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=re(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function J5e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(lt(e)){var t=Math.ceil(e);return[t,t]}var r=re(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function Q5e(e){return re(e,function(t){return rse(t)})}function rse(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function ePe(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=nv(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=nv(a,t)}}})}var tPe=new Di;const Ki=tPe;var nse={};function rPe(e,t){nse[e]=t}function nPe(e){return nse[e]}var aPe=1,iPe=800,oPe=900,sPe=1e3,lPe=2e3,uPe=5e3,ase=1e3,cPe=1100,u3=2e3,ise=3e3,dPe=4e3,EC=4500,fPe=4600,hPe=5e3,pPe=6e3,ose=7e3,vPe={PROCESSOR:{FILTER:sPe,SERIES_FILTER:iPe,STATISTIC:uPe},VISUAL:{LAYOUT:ase,PROGRESSIVE_LAYOUT:cPe,GLOBAL:u3,CHART:ise,POST_CHART_LAYOUT:fPe,COMPONENT:dPe,BRUSH:hPe,CHART_ITEM:EC,ARIA:pPe,DECAL:ose}},kn="__flagInMainProcess",oa="__pendingUpdate",DE="__needsUpdateStatus",TV=/^[a-zA-Z0-9_]+$/,LE="__connectUpdateStatus",AV=0,gPe=1,mPe=2;function sse(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return use(this,e,t)}}function lse(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return use(this,e,t)}}function use(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Di.prototype[t].apply(e,r)}var cse=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Di),dse=cse.prototype;dse.on=lse("on");dse.off=lse("off");var ch,RE,gb,Ol,$E,OE,zE,Fg,Bg,EV,NV,FE,IV,mb,PV,fse,ei,MV,hse=function(e){K(t,e);function t(r,n,a){var i=e.call(this,new S5e)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},fe(n)&&(n=pse[n]),i._dom=r;var o="canvas",s="auto",l=!1,u=i._zr=$j(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Ge(a.useDirtyRect,l),useCoarsePointer:Ge(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=o3(ve(u.flush,u),17),n=Ie(n),n&&xoe(n,!0),i._theme=n,i._locale=INe(a.locale||Wie),i._coordSysMgr=new yx;var c=i._api=PV(i);function d(f,h){return f.__prio-h.__prio}
vendor: 1,246 bytes, line 605
605return h_(y2,d),h_(KD,d),i._scheduler=new qoe(i,c,KD,y2),i._messageCenter=new cse,i._initEvents(),i.resize=ve(i.resize,i),u.animation.on("frame",i._onframe,i),EV(u,i),NV(u,i),YS(i),i}return t.prototype._onframe=function(){if(!this._disposed){MV(this);var r=this._scheduler;if(this[oa]){var n=this[oa].silent;this[kn]=!0;try{ch(this),Ol.update.call(this,null,this[oa].updateParams)}catch(l){throw this[kn]=!1,this[oa]=null,l}this._zr.flush(),this[kn]=!1,this[oa]=null,Fg.call(this,n),Bg.call(this,n)}else if(r.unfinished){var a=aPe,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),OE(this,i),r.performVisualTasks(i),mb(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[kn]){if(this._disposed){this.id;return}var i,o,s;if(Te(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[kn]=!0,!this._model||n){var l=new lIe(this._api),u=this._theme,c=this._model=new goe;
605c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ZD);var d={seriesTransition:s,optionChanged:!0};if(a)this[oa]={silent:i,updateParams:d},this[kn]=!1,this.getZr().wakeUp();else{try{ch(this),Ol.update.call(this,null,d)}catch(f){throw this[oa]=null,this[kn]=!1,f}this._ssr||this._zr.flush(),this[oa]=null,this[kn]=!1,Fg.call(this,i),Bg.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ot.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return D(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;D(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return D(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(DV[a]){var l=s,u=s,c=-s,d=-s,f=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(bm,function(b,_){if(b.group===a){var k=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Ie(r)),S=b.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),d=o(S.bottom,d),f.push({dom:k,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,v=d-u,m=qu.createCanvas(),g=$j(m,{renderer:n?"svg":"canvas"});if(g.resize({width:p,height:v}),n){var x="";return D(f,function(b){var _=b.left-l,k=b.top-u;x+='<g transform="translate('+_+","+k+')">'+b.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=x,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new nt({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),D(f,function(b){var _=new hn({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});g.add(_)}),g.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return $E(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return $E(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=hm(a,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=hm(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?s3(s,l,n):xx(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(yPe,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Md(s,function(p){var v=$e(p);if(v&&v.dataIndex!=null){var m=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=m&&m.getDataParams(v.dataIndex,v.dataType)||{},!0}else if(v.eventData)return l=Q({},v.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),D(xm,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),T5e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&Uae(this.getDom(),d3,"");var n=this,a=n._api,i=n._model;D(n._componentsViews,function(o){o.dispose(i,a)}),D(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler
605=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete bm[n.id]},t.prototype.resize=function(r){if(!this[kn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[oa]&&(i==null&&(i=this[oa].silent),a=!0,this[oa]=null),this[kn]=!0;try{a&&ch(this),Ol.update.call(this,{type:"resize",animation:Q({duration:0},r&&r.animation)})}catch(o){throw this[kn]=!1,o}this[kn]=!1,Fg.call(this,i),Bg.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Te(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!XD[r]){var a=XD[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Q({},r);return n.type=xm[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Te(n)||(n={silent:!!n}
605),!!m2[r.type]&&this._model){if(this[kn]){this._pendingActions.push(r);return}var a=n.silent;zE.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),Fg.call(this,a),Bg.call(this,a)}},t.prototype.updateLabelLayout=function(){Ki.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ch=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),RE(d,!0),RE(d,!1),f.plan()},RE=function(d,f){for(var h=d._model,p=d._scheduler,v=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,g=d._zr,x=d._api,b=0;b<v.length;b++)v[b].__alive=!1;f?h.eachComponent(function(S,C){S!=="series"&&_(C)}):h.eachSeries(_);function _(S){var C=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,E=!C&&m[T];if(!E){var A=Ho(S.type),N=f?ar.getClass(A.main,A.sub):Ft.getClass(A.sub);E=new N,E.init(h,x),m[T]=E,v.push(E),g.add(E.group)}S.__viewId=E.__id=T,E.__alive=!0,E.__model=S,E.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!f&&p.prepareView(E,S,h,x)}for(var b=0;b<v.length;){var k=v[b];k.__alive?b++:(!f&&k.renderTask.dispose(),g.remove(k.group),k.dispose(h,x),v.splice(b,1),m[k.__id]===k&&delete m[k.__id],k.__id=k.group.__ecComponentInfo=null)}},gb=function(d,f,h,p,v){var m=d._model;if(m.setUpdatePayload(h),!p){D([].concat(d._componentsViews).concat(d._chartsViews),k);return}var g={};g[p+"Id"]=h[p+"Id"],g[p+"Index"]=h[p+"Index"],g[p+"Name"]=h[p+"Name"];var x={mainType:p,query:g};v&&(x.subType=v);var b=h.excludeSeriesId,_;b!=null&&(_=Se(),D(Pt(b),function(S){var C=Mr(S,null);C!=null&&_.set(C,!0)})),m&&m.eachComponent(x,function(S){var C=_&&_.get(S.id)!=null;if(!C)if(p7(h))if(S instanceof Zt)h.type===Yd&&!h.notBlur&&!S.get(["emphasis","disabled"])&&_Ee(S,h,d._api);else{var T=OO(S.mainType,S.componentIndex,h.name,d._api),E=T.focusSelf,A=T.dispatchers;h.type===Yd&&E&&!h.notBlur&&PD(S.mainType,S.componentIndex,d._api),A&&D(A,function(N){h.type===Yd?ol(N):sl(N)})}else DD(h)&&S instanceof Zt&&(CEe(S,h,d._api),f7(S),ei(d))},d),m&&m.eachComponent(x,function(S){var C=_&&_.get(S.id)!=null;C||k(d[p==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},d);function k(S){S&&S.__alive&&S[f]&&S[f](S.__model,m,d._api,h)}},Ol={prepareAndUpdate:function(d){ch(this),Ol.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,f){var h=this._model,p=this._api,v=this._zr,m=this._coordSysMgr,g=this._scheduler;if(h){h.setUpdatePayload(d),g.restoreData(h,d),g.performSeriesTasks(h),m.create(h,p),g.performDataProcessorTasks(h,d),OE(this,h),m.update(h,p),r(h),g.performVisualTasks(h,d),FE(this,h,p,d,f);var x=h.get("backgroundColor")||"transparent",b=h.get("darkMode");v.setBackgroundColor(x),b!=null&&b!=="auto"&&v.setDarkMode(b),Ki.trigger("afterupdate",h,p)}},updateTransform:function(d){var f=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(d);var v=[];h.eachComponent(function(g,x){if(g!=="series"){var b=f.getViewOfComponentModel(x);if(b&&b.__alive)if(b.updateTransform){var _=b.updateTransform(x,h,p,d);_&&_.update&&v.push(b)}else v.push(b)}});var m=Se();h.eachSeries(function(g){var x=f._chartsMap[g.__viewId];if(x.updateTransform){var b=x.updateTransform(g,h,p,d);b&&b.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),r(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0,dirtyMap:m}),mb(this,h,p,d,{},m),Ki.trigger("afterupdate",h,p)}},updateView:function(d){var f=this._model;f&&(f.setUpdatePayload(d),Ft.markUpdateMethod(d,"updateView"),r(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0}),FE(this,f,this._api,d,{}),Ki.trigger("afterupdate",f,this._api))},updateVisual:function(d){var f=this,h=this._model;h&&(h.setUpdatePayload(d),h.eachSeries(function(p){p.getData().clearAllVisual()}),Ft.markUpdateMethod(d,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,d,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var m=f.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,f._api,d)}}),h.eachSeries(function(p){var v=f._chartsMap[p.__viewId];v.updateVisual(p,h,f._api,d)}),Ki.trigger("afterupdate",h,this._api))},updateLayout:function(d){Ol.update.call(this,d)}},$E=function(d,f,h,p){if(d._disposed){d.id;return}for(var v=d._model,m=d._coordSysMgr.getCoordinateSystems(),g,x=hm(v,h),b=0;b<m.length;b++){var _=m[b];if(_[f]&&(g=_[f](v,x,p))!=null)return g}},OE=function(d,f){var h=d._chartsMap,p=d._scheduler;f.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},zE=function(d,f){var h=this,p=this.getModel(),v=d.type,m=d.escapeConnect,g=m2[v],x=g.actionInfo,b=(x.update||"update").split(":"),_=b.pop(),k=b[0]!=null&&Ho(b[0]);this[kn]=!0;var S=[d],C=!1;d.batch&&(C=!0,S=re(d.batch,function(R){return R=Ce(Q({},R),d),R.batch=null,R}));var T=[],E,A=DD(d),N=p7(d);if(N&&vie(this._api),D(S,function(R){if(E=g.action(R,h._model,h._api),E=E||Q({},R),E.type=x.event||E.type,T.push(E),N){var M=IO(d),$=M.queryOptionMap,V=M.mainTypeSpecified,B=V?$.keys()[0]:"series";gb(h,_,R,B),ei(h)}else A?(gb(h,_,R,"series"),ei(h)):k&&gb(h,_,R,k.main,k.sub)}),_!=="none"&&!N&&!A&&!k)try{this[oa]?(ch(this),Ol.update.call(this,d),this[oa]=null):Ol[_].call(this,d)}catch(R){throw this[kn]=!1,R}if(C?E={type:x.event||v,escapeConnect:m,batch:T}:E=T[0],this[kn]=!1,!f){var P=this._messageCenter;if(P.trigger(E.type,E),A){var L={type:"selectchanged",escapeConnect:m,selected:TEe(p),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};P.trigger(L.type,L)}}}
605,Fg=function(d){for(var f=this._pendingActions;f.length;){var h=f.shift();zE.call(this,h,d)}},Bg=function(d){!d&&this.trigger("updated")},EV=function(d,f){d.on("rendered",function(h){f.trigger("rendered",h),d.animation.isFinished()&&!f[oa]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},NV=function(d,f){d.on("mouseover",function(h){var p=h.target,v=Md(p,by);v&&(SEe(v,h,f._api),ei(f))}).on("mouseout",function(h){var p=h.target,v=Md(p,by);v&&(kEe(v,h,f._api),ei(f))}).on("click",function(h){var p=h.target,v=Md(p,function(x){return $e(x).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",g=$e(v);f._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function r(d){d.clearColorPalette(),d.eachSeries(function(f){f.clearColorPalette()})}function n(d){var f=[],h=[],p=!1;if(d.eachComponent(function(x,b){var _=b.get("zlevel")||0,k=b.get("z")||0,S=b.getZLevelKey();p=p||!!S,(x==="series"?h:f).push({zlevel:_,z:k,idx:b.componentIndex,type:x,key:S})}),p){var v=f.concat(h),m,g;h_(v,function(x,b){return x.zlevel===b.zlevel?x.z-b.z:x.zlevel-b.zlevel}),D(v,function(x){var b=d.getComponent(x.type,x.idx),_=x.zlevel,k=x.key;m!=null&&(_=Math.max(m,_)),k?(_===m&&k!==g&&_++,g=k):g&&(_===m&&_++,g=""),m=_,b.setZLevel(_)})}}FE=function(d,f,h,p,v){n(f),IV(d,f,h,p,v),D(d._chartsViews,function(m){m.__alive=!1}),mb(d,f,h,p,v),D(d._chartsViews,function(m){m.__alive||m.remove(f,h)})},IV=function(d,f,h,p,v,m){D(m||d._componentsViews,function(g){var x=g.__model;u(x,g),g.render(x,f,h,p),s(x,g),c(x,g)})},mb=function(d,f,h,p,v,m){var g=d._scheduler;v=Q(v||{},{updatedSeries:f.getSeries()}),Ki.trigger("series:beforeupdate",f,h,v);var x=!1;f.eachSeries(function(b){var _=d._chartsMap[b.__viewId];_.__alive=!0;var k=_.renderTask;g.updatePayload(k,p),u(b,_),m&&m.get(b.uid)&&k.dirty(),k.perform(g.getPerformArgs(k))&&(x=!0),_.group.silent=!!b.get("silent"),o(b,_),f7(b)}),g.unfinished=x||g.unfinished,Ki.trigger("series:layoutlabels",f,h,v),Ki.trigger("series:transition",f,h,v),f.eachSeries(function(b){var _=d._chartsMap[b.__viewId];s(b,_),c(b,_)}),i(d,f),Ki.trigger("series:afterupdate",f,h,v)},ei=function(d){d[DE]=!0,d.getZr().wakeUp()},MV=function(d){d[DE]&&(d.getZr().storage.traverse(function(f){Ep(f)||a(f)}),d[DE]=!1)};function a(d){for(var f=[],h=d.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||f.push(v)}d.selected&&d.states.select&&f.push("select"),d.hoverState===fC&&d.states.emphasis?f.push("emphasis"):d.hoverState===px&&d.states.blur&&f.push("blur"),d.useStates(f)}function i(d,f){var h=d._zr,p=h.storage,v=0;p.traverse(function(m){m.isGroup||v++}),v>f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var g=d._chartsMap[m.__viewId];g.__alive&&g.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(d,f,h,p){var v=d.getTextContent(),m=d.getTextGuideLine(),g=d.isGroup;if(g)for(var x=d.childrenRef(),b=0;b<x.length;b++)p=Math.max(l(x[b],f,h,p),p);else d.z=f,d.zlevel=h,p=Math.max(d.z2,p);if(v&&(v.z=f,v.zlevel=h,isFinite(p)&&(v.z2=p+2)),m){var _=d.textGuideLineConfig;m.z=f,m.zlevel=h,isFinite(p)&&(m.z2=p+(_&&_.showAbove?1:-1))}return p}function u(d,f){f.eachRendered(function(h){if(!Ep(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(d,f){var h=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Ep(g))return;if(g instanceof Je&&PEe(g),g.__dirty){var x=g.prevStates;x&&g.useStates(x)}if(p){g.stateTransition=m;var b=g.getTextContent(),_=g.getTextGuideLine();b&&(b.stateTransition=m),_&&(_.stateTransition=m)}g.__dirty&&a(g)}})}PV=function(d){return new(function(f){K(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return d._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){ol(p,v),ei(d)},h.prototype.leaveEmphasis=function(p,v){sl(p,v),ei(d)},h.prototype.enterBlur=function(p){die(p),ei(d)},h.prototype.leaveBlur=function(p){$O(p),ei(d)},h.prototype.enterSelect=function(p){fie(p),ei(d)},h.prototype.leaveSelect=function(p){hie(p),ei(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(moe))(d)},fse=function(d){function f(h,p){for(var v=0;v<h.length;v++){var m=h[v];m[LE]=p}}
605D(xm,function(h,p){d._messageCenter.on(p,function(v){if(DV[d.group]&&d[LE]!==AV){if(v&&v.escapeConnect)return;var m=d.makeActionFromEvent(v),g=[];D(bm,function(x){x!==d&&x.group===d.group&&g.push(x)}),f(g,AV),D(g,function(x){x[LE]!==gPe&&x.dispatchAction(m)}),f(g,mPe)}})})}}(),t}(Di),c3=hse.prototype;c3.on=sse("on");c3.off=sse("off");c3.one=function(e,t,r){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var yPe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var m2={},xm={},KD=[],ZD=[],y2=[],pse={},XD={},bm={},DV={},xPe=+new Date-0,d3="_echarts_instance_";function BE(e,t,r){var n=!(r&&r.ssr);if(n){var a=od(e);if(a)return a}var i=new hse(e,t,r);return i.id="ec_"+xPe++,bm[i.id]=i,n&&Uae(e,d3,i.id),fse(i),Ki.trigger("afterinit",i),i}function od(e){return bm[mAe(e,d3)]}function vse(e,t){pse[e]=t}function gse(e){Ke(ZD,e)<0&&ZD.push(e)}function mse(e,t){h3(KD,e,t,lPe)}function bPe(e){f3("afterinit",e)}function wPe(e){f3("afterupdate",e)}function f3(e,t){Ki.on(e,t)}function fs(e,t,r){ke(t)&&(r=t,t="");var n=Te(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!xm[t]&&(Zn(TV.test(n)&&TV.test(t)),m2[n]||(m2[n]={action:r,actionInfo:e}),xm[t]=n)}function _Pe(e,t){yx.register(e,t)}function SPe(e,t){h3(y2,e,t,ase,"layout")}function zf(e,t){h3(y2,e,t,ise,"visual")}var LV=[];function h3(e,t,r,n,a){if((ke(t)||Te(t))&&(r=t,t=n),!(Ke(LV,r)>=0)){LV.push(r);var i=qoe.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function yse(e,t){XD[e]=t}function kPe(e,t,r){var n=nPe("registerMap");n&&n(e,t,r)}var CPe=$Ie;zf(u3,s5e);zf(EC,l5e);zf(EC,u5e);zf(u3,k5e);zf(EC,C5e);zf(ose,ePe);gse(xoe);mse(oPe,gIe);yse("default",c5e);fs({type:Yd,event:Yd,update:Yd},mr);fs({type:x_,event:x_,update:x_},mr);fs({type:pm,event:pm,update:pm},mr);fs({type:b_,event:b_,update:b_},mr);fs({type:vm,event:vm,update:vm},mr);vse("light",w5e);vse("dark",_5e);var RV=[],TPe={registerPreprocessor:gse,registerProcessor:mse,registerPostInit:bPe,registerPostUpdate:wPe,registerUpdateLifecycle:f3,registerAction:fs,registerCoordinateSystem:_Pe,registerLayout:SPe,registerVisual:zf,registerTransform:CPe,registerLoading:yse,registerMap:kPe,registerImpl:rPe,PRIORITY:vPe,ComponentModel:it,ComponentView:ar,SeriesModel:Zt,ChartView:Ft,registerComponentModel:function(e){it.registerClass(e)},registerComponentView:function(e){ar.registerClass(e)},registerSeriesModel:function(e){Zt.registerClass(e)},registerChartView:function(e){Ft.registerClass(e)},registerSubTypeDefaulter:function(e,t){it.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){XTe(e,t)}};function Ze(e){if(te(e)){D(e,function(t){Ze(t)});return}Ke(RV,e)>=0||(RV.push(e),ke(e)&&(e={install:e}),e.install(TPe))}function jg(e){return e==null?0:e.length||1}function $V(e){return e}var APe=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||$V,this._newKeyGetter=a||$V,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=jg(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],d=jg(u),f=jg(c);if(d>1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h<d;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=jg(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=jg(l);
605u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const ll=APe;var EPe=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function NPe(e,t){var r={},n=r.encode={},a=Se(),i=[],o=[],s={};D(e.dimensions,function(f){var h=e.getDimensionInfo(f),p=h.coordDim;if(p){var v=h.coordDimIndex;jE(n,p)[v]=f,h.isExtraCoord||(a.set(p,1),IPe(h.type)&&(i[0]=f),jE(s,p)[v]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(f)}loe.each(function(m,g){var x=jE(n,g),b=h.otherDims[g];b!=null&&b!==!1&&(x[b]=h.name)})});var l=[],u={};a.each(function(f,h){var p=n[h];u[h]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=re(l,function(f){return e.getDimensionInfo(f).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var d=n.tooltip;return d&&d.length?o=d.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new EPe(s,t),r}function jE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function x2(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function IPe(e){return!(e==="ordinal"||e==="time")}var PPe=function(){function e(t){this.otherDims={},t!=null&&Q(this,t)}return e}();const C_=PPe;var MPe=at(),DPe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xse=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_se(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ge(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=woe(this.source),n=!Sse(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=r?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var f=this.getSourceDimension(o);f&&(l=r?f.name:null,u=f.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!d||!d.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=DPe[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function bse(e){return e instanceof xse}function wse(e){for(var t=Se(),r=0;r<(e||[]).length;r++){var n=e[r],a=Te(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function _se(e){var t=MPe(e);return t.dimNameMap||(t.dimNameMap=wse(e.dimensionsDefine))}function Sse(e){return e>30}var Vg=Te,zl=re,LPe=typeof Int32Array>"u"?Array:Int32Array,RPe="e\0\0",OV=-1,$Pe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],OPe=["_approximateExtent"],zV,yb,Ug,Gg,VE,xb,UE,zPe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;bse(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var d=n[c],f=fe(d)?new C_({name:d}):d instanceof C_?d:new C_(d),h=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=h,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};o.push(h),i[h]=f,u[h]!=null&&(l=!0),f.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),a&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Se();D(o,function(m){v.set(i[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(lt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof VD&&(i=t),!i){var o=this.dimensions,s=QO(t)||Ln(t)?new _oe(t,o.length):t;i=new VD;
605var l=zl(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=NPe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&UE(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Lu&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Li;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var d=a.getItem(c,u);if(!this.hasItemOption&&aAe(d)&&(this.hasItemOption=!0),d){var f=d.name;i[c]==null&&f!=null&&(i[c]=Mr(f,null));var h=d.id;o[c]==null&&h!=null&&(o[c]=Mr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)UE(this,c);zV(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Vg(t)?Q(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ug(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return yb(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return te(t)?a.getValues(zl(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],a=n[r];return a==null||isNaN(a)?OV:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ke(t)&&(n=r,r=t,t=[]);var a=n||this,i=zl(Gg(t),this._getStoreDimIndex,this);this._store.each(i,a?ve(r,a):r)},e.prototype.filterSelf=function(t,r,n){ke(t)&&(n=r,r=t,t=[]);var a=n||this,i=zl(Gg(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?ve(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=tt(t);return D(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ke(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=zl(Gg(t),this._getStoreDimIndex,this),s=xb(this);return s._store=this._store.map(o,i?ve(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=n||a||this,o=zl(Gg(t),this._getStoreDimIndex,this);this._store.modify(o,i?ve(r,i):r)},e.prototype.downSample=function(t,r,n,a){var i=xb(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=xb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ot(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;
605return new ll(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return yb(t,n)},function(n){return yb(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Vg(t)?Q(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),te(i)?i=i.slice():Vg(i)&&(i=Q({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Vg(r)?Q(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Vg(t)?Q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;ND(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zl(this.dimensions,this._getDimInfo,this),this.hostModel)),VE(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ke(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(xO(arguments)))})},e.internalField=function(){zV=function(t){var r=t._invertedIndicesMap;D(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new LPe(o.categories.length);for(var l=0;l<n.length;l++)n[l]=OV;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Ug=function(t,r,n){return Mr(t._getCategory(r,n),null)},yb=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ug(t,t._idDimIdx,r)),n==null&&(n=RPe+r),n},Gg=function(t){return te(t)||(t=t!=null?[t]:[]),t},xb=function(t){var r=new e(t._schema?t._schema:zl(t.dimensions,t._getDimInfo,t),t.hostModel);return VE(r,t),r},VE=function(t,r){D($Pe.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,D(OPe,function(n){t[n]=Ie(r[n])}),t._calculationInfo=Q({},r._calculationInfo)},UE=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Ug(t,i,r)),l==null&&o!=null&&(a[r]=l=Ug(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();const qn=zPe;function _x(e,t){QO(e)||(e=e3(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=Se(),i=[],o=BPe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sse(o),l=n===e.dimensionsDefine,u=l?_se(e):wse(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var d=Se(c),f=new Ioe(o),h=0;h<f.length;h++)f[h]=-1;function p(E){var A=f[E];if(A<0){var N=n[E],P=Te(N)?N:{name:N},L=new C_,R=P.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var M=i.length;return f[E]=M,L.storeDimIndex=E,i.push(L),L}return i[A]}if(!s)for(var h=0;h<o;h++)p(h);d.each(function(E,A){var N=Pt(E).slice();if(N.length===1&&!fe(N[0])&&N[0]<0){d.set(A,!1);return}var P=d.set(A,[]);D(N,function(L,R){var M=fe(L)?u.get(L):L;M!=null&&M<o&&(P[R]=M,m(p(M),A,R))})});var v=0;D(r,function(E){var A,N,P,L;if(fe(E))A=E,L={};else{L=E,A=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=Q({},L),L.ordinalMeta=R,N=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var M=d.get(A);if(M!==!1){if(M=Pt(M),!M.length)for(var $=0;$<(N&&N.length||1);$++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&M.push(v++)}D(M,function(V,B){var j=p(V);if(l&&L.type!=null&&(j.type=L.type),m(Ce(j,L),A,B),j.name==null&&N){var I=N[B];!Te(I)&&(I={name:I}),j.name=j.displayName=I.name,j.defaultTooltip=I.defaultTooltip}P&&Ce(j.otherDims,P)})}});function m(E,A,N){loe.get(A)!=null?E.otherDims[A]=N:(E.coordDim=A,E.coordDimIndex=N,a.set(A,!0))}var g=t.generateCoord,x=t.generateCoordCount,b=x!=null;x=g?x||1:0;var _=g||"value";function k(E){E.name==null&&(E.name=E.coordDim)}if(s)D(i,function(E){k(E)}),i.sort(function(E,A){return E.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var C=p(S),T=C.coordDim;T==null&&(C.coordDim=jPe(_,a,b),C.coordDimIndex=0,(!g||x<=0)&&(C.isExtraCoord=!0),x--),k(C),C.type==null&&(foe(e,S)===rn.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return FPe(i),new xse({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function FPe(e){for(var t=Se(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function BPe(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(i){var o;Te(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function jPe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var VPe=function(){function e(t){this.coordSysDims=[],this.axisMap=Se(),this.categoryAxisMap=Se(),this.coordSysName=t}return e}();function UPe(e){var t=e.get("coordinateSystem"),r=new VPe(t),n=GPe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var GPe={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",wr).models[0],i=e.getReferringComponents("yAxis",wr).models[0];t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),dh(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),dh(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",wr).models[0];t.coordSysDims=["single"],r.set("single",a),dh(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",wr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),dh(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),dh(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();D(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),dh(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function dh(e){return e.get("type")==="category"}function HPe(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;WPe(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,d,f;if(D(i,function(x,b){fe(x)&&(i[b]=x={name:x}),l&&!x.isExtraCoord&&(!n&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!a||a===x.coordDim)&&(c=x))}),c&&!n&&!u&&(n=!0),c){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;D(i,function(x){x.coordDim===h&&v++});var m={name:d,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:f,coordDim:f,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),g.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(g)):(i.push(m),i.push(g))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:d}}function WPe(e){return!bse(e.schema)}function Xu(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function kse(e,t){return Xu(e,t)?e.getCalculationInfo("stackResultDimension"):t}function qPe(e,t){var r=e.get("coordinateSystem"),n=yx.get(r),a;return t&&t.coordSysDims&&(a=re(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=x2(l)}return o}
605)),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function YPe(e,t,r){var n,a;return r&&D(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function xl(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=e3(e)):(a=n.getSource(),i=a.sourceFormat===Li);var o=UPe(t),s=qPe(t,o),l=r.useEncodeDefaulter,u=ke(l)?l:l?Oe(doe,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=_x(a,c),f=YPe(d.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(d),p=HPe(t,{schema:d,store:h}),v=new qn(d,t);v.setCalculationInfo(p);var m=f!=null&&KPe(a)?function(g,x,b,_){return _===f?b:this.defaultDimValueGetter(g,x,b,_)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,m),v}function KPe(e){if(e.sourceFormat===Li){var t=ZPe(e.data||[]);return!te($v(t))}}function ZPe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Cse=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();lC(Cse);const bl=Cse;var XPe=0,JPe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++XPe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&re(n,QPe);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!fe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Se(this.categories))},e}();function QPe(e){return Te(e)&&e.value!=null?e.value:e+""}const JD=JPe;function QD(e){return e.type==="interval"||e.type==="log"}function eMe(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=Rae(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=Tse(o),l=a.niceTickExtent=[cr(Math.ceil(e[0]/o)*o,s),cr(Math.floor(e[1]/o)*o,s)];return tMe(l,e),a}function GE(e){var t=Math.pow(10,EO(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,cr(r*t)}function Tse(e){return Go(e)+2}function FV(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function tMe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),FV(e,0,t),FV(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function NC(e,t){return e>=t[0]&&e<=t[1]}function IC(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function PC(e,t){return e*(t[1]-t[0])+t[0]}var Ase=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new JD({})),te(a)&&(a=new JD({categories:re(a,function(i){return Te(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:fe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),NC(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),IC(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(PC(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bl);bl.registerClass(Ase);const p3=Ase;var Uc=cr,Ese=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return NC(r,this._extent)},t.prototype.normalize=function(r){return IC(r,this._extent)},t.prototype.scale=function(r){return PC(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=Tse(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:Uc(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Uc(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:Uc(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],d=s.value-l.value,f=d/r;u<r-1;){var h=Uc(l.value+(u+1)*f);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=Go(r.value)||0:a==="auto"&&(a=this._intervalPrecision);
605var i=Uc(r.value,a,!0);return roe(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=eMe(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Uc(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Uc(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(bl);bl.registerClass(Ese);const Ju=Ese;var Nse=typeof Float32Array<"u",rMe=Nse?Float32Array:Array;function Wo(e){return te(e)?Nse?new Float32Array(e):e:new rMe(e)}var eL="__ec_stack_";function v3(e){return e.get("stack")||eL+e.seriesIndex}function g3(e){return e.dim+e.index}function nMe(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(Ce({bandWidth:a,axisKey:n,stackId:eL+i},e));for(var o=Mse(t),s=[],i=0;i<e.count;i++){var l=o[n][eL+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Ise(e,t){var r=[];return t.eachSeriesByType(e,function(n){Rse(n)&&r.push(n)}),r}function aMe(e){var t={};D(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),f=c.dim+"_"+c.index,h=d.getDimensionIndex(d.mapDimension(c.dim)),p=d.getStore(),v=0,m=p.count();v<m;++v){var g=p.get(h,v);t[f]?t[f].push(g):t[f]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function Pse(e){var t=aMe(e),r=[];return D(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=le(n.get("barWidth"),s),v=le(n.get("barMaxWidth"),s),m=le(n.get("barMinWidth")||($se(n)?.5:1),s),g=n.get("barGap"),x=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:m,barGap:g,barCategoryGap:x,axisKey:g3(i),stackId:v3(n)})}),Mse(r)}function Mse(e){var t={};D(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=n.barMaxWidth;d&&(l[u].maxWidth=d);var f=n.barMinWidth;f&&(l[u].minWidth=f);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return D(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=tt(i).length;s=Math.max(35-l*4,15)+"%"}var u=le(s,o),c=le(n.gap,1),d=n.remainedWidth,f=n.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),D(i,function(g){var x=g.maxWidth,b=g.minWidth;if(g.width){var _=g.width;x&&(_=Math.min(_,x)),b&&(_=Math.max(_,b)),g.width=_,d-=_+c*_,f--}else{var _=h;x&&x<_&&(_=Math.min(x,d)),b&&b>_&&(_=b),_!==h&&(g.width=_,d-=_+c*_,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,v;D(i,function(g,x){g.width||(g.width=h),v=g,p+=g.width*(1+c)}),v&&(p-=v.width*c);var m=-p/2;D(i,function(g,x){r[a][x]=r[a][x]||{bandWidth:o,offset:m,width:g.width},m+=g.width*(1+c)})}),r}function iMe(e,t,r){if(e&&t){var n=e[g3(t)];return n!=null&&r!=null?n[v3(r)]:n}}function Dse(e,t){var r=Ise(e,t),n=Pse(r);D(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=v3(a),u=n[g3(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Lse(e){return{seriesType:e,plan:qv(),reset:function(t){if(Rse(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackgroun
605d",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),d=Xu(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=oMe(a,i),p=$se(t),v=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),g=r.getLayout("size"),x=r.getLayout("offset");return{progress:function(b,_){for(var k=b.count,S=p&&Wo(k*3),C=p&&l&&Wo(k*3),T=p&&Wo(k),E=n.master.getRect(),A=f?E.width:E.height,N,P=_.getStore(),L=0;(N=b.next())!=null;){var R=P.get(d?m:o,N),M=P.get(s,N),$=h,V=void 0;d&&(V=+R-P.get(o,N));var B=void 0,j=void 0,I=void 0,U=void 0;if(f){var Y=n.dataToPoint([R,M]);if(d){var O=n.dataToPoint([V,M]);$=O[0]}B=$,j=Y[1]+x,I=Y[0]-$,U=g,Math.abs(I)<v&&(I=(I<0?-1:1)*v)}else{var Y=n.dataToPoint([M,R]);if(d){var O=n.dataToPoint([M,V]);$=O[1]}B=Y[0]+x,j=$,I=g,U=Y[1]-$,Math.abs(U)<v&&(U=(U<=0?-1:1)*v)}p?(S[L]=B,S[L+1]=j,S[L+2]=f?I:U,C&&(C[L]=f?E.x:B,C[L+1]=f?j:E.y,C[L+2]=A),T[N]=N):_.setItemLayout(N,{x:B,y:j,width:I,height:U}),L+=3}p&&_.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:f})}}}}}}function Rse(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function $se(e){return e.pipelineContext&&e.pipelineContext.large}function oMe(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var sMe=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},Ose=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return xC(r.value,N7[DNe(Np(this._minLevelUnit))]||N7.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return LNe(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=pMe(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=_i,n[1]+=_i),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-_i}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=bb.length,l=Math.min(sMe(bb,this._approxInterval,0,s),s-1);this._interval=bb[l][1],this._minLevelUnit=bb[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return lt(r)?r:+as(r)},t.prototype.contain=function(r){return NC(this.parse(r),this._extent)},t.prototype.normalize=function(r){return IC(this.parse(r),this._extent)},t.prototype.scale=function(r){return PC(r,this._extent)},t.type="time",t}(Ju),bb=[["second",WO],["minute",qO],["hour",mm],["quarter-day",mm*6],["half-day",mm*12],["day",_i*1.2],["half-week",_i*3.5],["week",_i*7],["month",_i*31],["quarter",_i*95],["half-year",E7/2],["year",E7]];function lMe(e,t,r,n){var a=as(t),i=as(r),o=function(p){return I7(a,p,n)===I7(i,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function uMe(e,t){return e/=_i,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function cMe(e){var t=30*_i;return e/=t,e>6?6:e>3?3:e>2?2:1}function dMe(e){return e/=mm,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function BV(e,t){return e/=t?qO:WO,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function fMe(e){return Rae(e,!0)}function hMe(e,t,r){var n=new Date(e);switch(Np(t)){case"year":case"month":n[Zie(r)](0);case"day":n[Xie(r)](1);case"hour":n[Jie(r)](0);case"minute":n[Qie(r)](0);case"second":n[eoe(r)](0),n[toe(r)](0)}return n.getTime()}function pMe(e,t,r,n){var a=1e4,i=Yie,o=0;function s(A,N,P,L,R,M,$){for(var V=new Date(N),B=N,j=V[L]();B<P&&B<=n[1];)$.push({value:B}),j+=A,V[R](j),B=V.getTime();$.push({value:B,notAdd:!0})}function l(A,N,P){var L=[],R=!N.length;if(!lMe(Np(A),n[0],n[1],r)){R&&(N=[{value:hMe(new Date(n[0]),A,r)},{value:n[1]}]);for(var M=0;M<N.length-1;M++){var $=N[M].value,V=N[M+1].value;if($!==V){var B=void 0,j=void 0,I=void 0,U=!1;switch(A){case"year":B=Math.max(1,Math.round(t/_i/365)),j=YO(r),I=RNe(r);break;case"half-year":case"quarter":case"month":B=cMe(t),j=Ip(r),I=Zie(r);break;case"week":case"half-week":case"day":B=uMe(t),j=bC(r),I=Xie(r),U=!0;break;case"half-day":case"quarter-day":case"hour":B=dMe(t),j=Sy(r),I=Jie(r);break;case"minute":B=BV(t,!0),j=wC(r),I=Qie(r);break;case"second":B=BV(t,!1),j=_C(r),I=eoe(r);break;case"millisecond":B=fMe(t),j=SC(r),I=toe(r);break}s(B,$,V,j,I,U,L),A==="year"&&P.length>1&&M===0&&P.unshift({value:P[0].value-B})}}for(var M=0;M<L.length;M++)P.push(L[M]);return L}}for(var u=[],c=[],d=0,f=0,h=0;h<i.length&&o++<a;++h){var p=Np(i[h]);if(MNe(i[h])){l(i[h],u[u.length-1]||[],c);var v=i[h+1]?Np(i[h+1]):null;if(p!==v){if(c.length){f=d,c.sort(function(A,N){return A.value-N.value});for(var m=[],g=0;g<c.length;++g){var x=c[g].value;(g===0||c[g-1].value!==x)&&(m.push(c[g]),x>=n[0]&&x<=n[1]&&d++)}var b=(n[1]-n[0])/t;if(d>b*1.5&&f>
605b/1.5||(u.push(m),d>b||e===i[h]))break}c=[]}}}for(var _=Et(re(u,function(A){return Et(A,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(A){return A.length>0}),k=[],S=_.length-1,h=0;h<_.length;++h)for(var C=_[h],T=0;T<C.length;++T)k.push({value:C[T].value,level:S-h});k.sort(function(A,N){return A.value-N.value});for(var E=[],h=0;h<k.length;++h)(h===0||k[h].value!==k[h-1].value)&&E.push(k[h]);return E}bl.registerClass(Ose);const zse=Ose;var jV=bl.prototype,wm=Ju.prototype,vMe=cr,gMe=Math.floor,mMe=Math.ceil,wb=Math.pow,Hi=Math.log,m3=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ju,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=wm.getTicks.call(this,r);return re(o,function(s){var l=s.value,u=cr(wb(this.base,l));return u=l===a[0]&&this._fixMin?_b(u,i[0]):u,u=l===a[1]&&this._fixMax?_b(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Hi(this.base);r=Hi(Math.max(0,r))/a,n=Hi(Math.max(0,n))/a,wm.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=jV.getExtent.call(this);n[0]=wb(r,n[0]),n[1]=wb(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=_b(n[0],i[0])),this._fixMax&&(n[1]=_b(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Hi(r[0])/Hi(n),r[1]=Hi(r[1])/Hi(n),jV.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=nAe(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[cr(mMe(n[0]/i)*i),cr(gMe(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){wm.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Hi(r)/Hi(this.base),NC(r,this._extent)},t.prototype.normalize=function(r){return r=Hi(r)/Hi(this.base),IC(r,this._extent)},t.prototype.scale=function(r){return r=PC(r,this._extent),wb(this.base,r)},t.type="log",t}(bl),Fse=m3.prototype;Fse.getMinorTicks=wm.getMinorTicks;Fse.getLabel=wm.getLabel;function _b(e,t){return vMe(e,Go(t))}bl.registerClass(m3);const yMe=m3;var xMe=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);ke(i)?this._modelMinNum=Sb(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=Sb(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(ke(o)?this._modelMaxNum=Sb(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Sb(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=te(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[vo(l[0],1),vo(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=hy(s)||hy(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},e.prototype.modifyDataMinMax=function(t,r){this[wMe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bMe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bMe={min:"_determinedMin",max:"_determinedMax"},wMe={min:"_dataMin",max:"_dataMax"};function Bse(e,t,r){var n=e.rawExtentInfo;return n||(n=new xMe(e,t,r),e.rawExtentInfo=n,n)}function Sb(e,t){return t==null?null:hy(t)?NaN:e.parse(t)}
605function jse(e,t){var r=e.type,n=Bse(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=Ise("bar",o),l=!1;if(D(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var u=Pse(s),c=_Me(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function _Me(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=iMe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/i,f=c/d-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function av(e,t){var r=t,n=jse(e,r),a=n.extent,i=r.get("splitNumber");e instanceof yMe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function MC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new p3({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new zse({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(bl.getClass(t)||Ju)}}function SMe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Sx(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):fe(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):ke(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(y3(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function y3(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function kMe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof p3?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Sx(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var d=n?n[c]:{value:i[0]+c},f=s(d,c),h=o.getTextRect(f),p=CMe(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function CMe(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new We(e.x,e.y,i,o);return s}function x3(e){var t=e.get("interval");return t??"auto"}function Vse(e){return e.type==="category"&&x3(e.getLabelModel())===0}function b2(e,t){var r={};return D(e.mapDimensionsAll(t),function(n){r[kse(e,n)]=!0}),tt(r)}function TMe(e,t,r){t&&D(b2(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var kx=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),AMe=1e-8;function VV(e,t){return Math.abs(e-t)<AMe}function pd(e,t,r){var n=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];n+=Ns(a[0],a[1],o[0],o[1],t,r),a=o}var s=e[0];return(!VV(a[0],s[0])||!VV(a[1],s[1]))&&(n+=Ns(a[0],a[1],s[0],s[1],t,r)),n!==0}var EMe=[];function HE(e,t){for(var r=0;r<e.length;r++)sn(e[r],e[r],t)}function UV(e,t,r,n){for(var a=0;a<e.length;a++){var i=e[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(cu(t,t,i),du(r,r,i))}}function NMe(e){for(var t=0,r=0,n=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,r+=(i+l)*c,n+=(o+u)*c,i=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Use=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),GV=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),HV=function(){function e(t){this.type="linestring",this.points=t}return e}(),Gse=function(e){K(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,a=0,i=0;i<r.length;i++){var o=r[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return NMe(n.exterior);
605var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return D(o,function(s){s.type==="polygon"?UV(s.exterior,a,i,r):D(s.points,function(l){UV(l,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new We(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(pd(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(pd(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new We(r,n,a,i),u=o.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var f=c[d];f.type==="polygon"?(HE(f.exterior,u),D(f.interiors,function(h){HE(h,u)})):D(f.points,function(h){HE(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Use),IMe=function(e){K(t,e);function t(r,n){var a=e.call(this,r)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=iC(EMe),o=r;o&&!o.isGeoSVGGraphicRoot;)qs(i,o.getLocalTransform(),i),o=o.parent;return Rv(i,i),sn(a,a,i),a},t}(Use);function PMe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return D(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Hse(s,o,r);break;case"Polygon":WE(s,o,r);break;case"MultiLineString":WE(s,o,r);break;case"MultiPolygon":D(s,function(l,u){return WE(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function WE(e,t,r){for(var n=0;n<e.length;n++)e[n]=Hse(e[n],t[n],r)}function Hse(e,t,r){for(var n=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/r,l/r])}return n}function MMe(e,t){return e=PMe(e),re(Et(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new GV(o[0],o.slice(1)));break;case"MultiPolygon":D(a.coordinates,function(l){l[0]&&i.push(new GV(l[0],l.slice(1)))});break;case"LineString":i.push(new HV([a.coordinates]));break;case"MultiLineString":i.push(new HV(a.coordinates))}var s=new Gse(n[t||"name"],i,n.cp);return s.properties=n,s})}var Ny=at();function DMe(e){return e.type==="category"?RMe(e):OMe(e)}function LMe(e,t){return e.type==="category"?$Me(e,t):{ticks:re(e.scale.getTicks(),function(r){return r.value})}}function RMe(e){var t=e.getLabelModel(),r=Wse(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Wse(e,t){var r=qse(e,"labels"),n=x3(t),a=Yse(r,n);if(a)return a;var i,o;return ke(n)?i=Xse(e,n):(o=n==="auto"?zMe(e):n,i=Zse(e,o)),Kse(r,n,{labels:i,labelCategoryInterval:o})}function $Me(e,t){var r=qse(e,"ticks"),n=x3(t),a=Yse(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ke(n))i=Xse(e,n,!0);else if(n==="auto"){var s=Wse(e,e.getLabelModel());o=s.labelCategoryInterval,i=re(s.labels,function(l){return l.tickValue})}else o=n,i=Zse(e,o,!0);return Kse(r,n,{ticks:i,tickCategoryInterval:o})}function OMe(e){var t=e.scale.getTicks(),r=Sx(e);return{labels:re(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function qse(e,t){return Ny(e)[t]||(Ny(e)[t]=[])}function Yse(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Kse(e,t,r){return e.push({key:t,value:r}),r}function zMe(e){var t=Ny(e).autoInterval;return t??(Ny(e).autoInterval=e.calculateCategoryInterval())}function FMe(e){var t=BMe(e),r=Sx(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),d=Math.abs(u*Math.sin(n)),f=0,h=0;l<=i[1];l+=s){var p=0,v=0,m=fx(r({value:l}),t.font,"center","top");p=m.width*1.3,v=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,v,7)}var g=f/c,x=h/d;isNaN(g)&&(g=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(g,x))),_=Ny(e.model),k=e.getExtent(),S=_.lastAutoInterval,C=_.lastTickCount;return S!=null&&C!=null&&Math.abs(S-b)<=1&&Math.abs(C-o)<=1&&S>b&&_.axisExtent0===k[0]&&_.axisExtent1===k[1]?b=S:(_.lastTickCount=o,_.lastAutoInterval=b,_.axisExtent0=k[0],_.axisExtent1=k[1]),b}function BMe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Zse(e,t,r){var n=Sx(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.c
605ount();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Vse(e),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&v(i[0]);for(var p=u;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(m){var g={value:m};s.push(r?m:{formattedLabel:n(g),rawLabel:a.getLabel(g),tickValue:m})}return s}function Xse(e,t,r){var n=e.scale,a=Sx(e),i=[];return D(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var WV=[0,1],jMe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return Dae(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),qV(n,a.count())),Ct(t,WV,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),qV(n,a.count()));var i=Ct(t,n,WV,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=LMe(this,r),a=n.ticks,i=re(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return VMe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=re(n,function(i){return re(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return DMe(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return FMe(this)},e}();function qV(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function VMe(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;D(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var d=i[0]>i[1];f(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&f(i[0],t[0].coord)&&t.unshift({coord:i[0]}),f(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&f(o.coord,i[1])&&t.push({coord:i[1]});function f(h,p){return h=cr(h),p=cr(p),d?h>p:h<p}}const bo=jMe;var Hg=Math.PI*2,Gc=is.CMD,UMe=["top","right","bottom","left"];function GMe(e,t,r,n,a){var i=r.width,o=r.height;switch(e){case"top":n.set(r.x+i/2,r.y-t),a.set(0,-1);break;case"bottom":n.set(r.x+i/2,r.y+o+t),a.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),a.set(-1,0);break;case"right":n.set(r.x+i+t,r.y+o/2),a.set(1,0);break}}function HMe(e,t,r,n,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,d=s*r+t;if(Math.abs(n-a)%Hg<1e-4)return l[0]=c,l[1]=d,u-r;if(i){var f=n;n=Fs(a),a=Fs(f)}else n=Fs(n),a=Fs(a);n>a&&(a+=Hg);var h=Math.atan2(s,o);if(h<0&&(h+=Hg),h>=n&&h<=a||h+Hg>=n&&h+Hg<=a)return l[0]=c,l[1]=d,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,m=r*Math.cos(a)+e,g=r*Math.sin(a)+t,x=(p-o)*(p-o)+(v-s)*(v-s),b=(m-o)*(m-o)+(g-s)*(g-s);return x<b?(l[0]=p,l[1]=v,Math.sqrt(x)):(l[0]=m,l[1]=g,Math.sqrt(b))}function w2(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,d=n-t,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var v=o[0]=e+p*c,m=o[1]=t+p*d;return Math.sqrt((v-a)*(v-a)+(m-i)*(m-i))}function Jse(e,t,r,n,a,i,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Xi=[];function WMe(e,t,r){var n=Jse(t.x,t.y,t.width,t.height,e.x,e.y,Xi);return r.set(Xi[0],Xi[1]),n}function qMe(e,t,r){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,d=e.x,f=e.y,h=0;h<c.length;){var p=c[h++];h===1&&(n=c[h],a=c[h+1],i=n,o=a);var v=u;switch(p){case Gc.M:i=c[h++],o=c[h++],n=i,a=o;break;case Gc.L:v=w2(n,a,c[h],c[h+1],d,f,Xi,!0),n=c[h++],a=c[h++];break;case Gc.C:v=hae(n,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],d,f,Xi),n=c[h++],a=c[h++];break;case Gc.Q:v=vae(n,a,c[h++],c[h++],c[h],c[h+1],d,f,Xi),n=c[h++],a=c[h++];break;case Gc.A:var m=c[h++],g=c[h++],x=c[h++],b=c[h++],_=c[h++],k=c[h++];h+=1;var S=!!(1-c[h++]);s=Math.cos(_)*x+m,l=Math.sin(_)*b+g,h<=1&&(i=s,o=l);var C=(d-m)*b/x+m;v=HMe(m,g,b,_,_+k,S,C,f,Xi),n=Math.cos(_+k)*x+m,a=Math.sin(_+k)*b+g;break;case Gc.R:i=n=c[h++],o=a=c[h++];var T=c[h++],E=c[h++];v=Jse(i,o,T,E,d,f,Xi);break;case Gc.Z:v=w2(n,a,i,o,d,f,Xi,!0),n=i,a=o;break}v<u&&(u=v,r.set(Xi[0],Xi[1]))}return u}var ao=new Be,Lt=new Be,vr=new Be,qo=new Be,Vo=new Be;function YV(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var a=e.textGuideLineConfig||{}
605,i=[[0,0],[0,0],[0,0]],o=a.candidates||UMe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),d=c&&Rv([],c),f=t.get("length2")||0;u&&vr.copy(u);for(var h=0;h<o.length;h++){var p=o[h];GMe(p,0,s,ao,qo),Be.scaleAndAdd(Lt,ao,qo,f),Lt.transform(d);var v=e.getBoundingRect(),m=u?u.distance(Lt):e instanceof Je?qMe(Lt,e.path,vr):WMe(Lt,v,vr);m<l&&(l=m,Lt.transform(c),vr.transform(c),vr.toArray(i[0]),Lt.toArray(i[1]),ao.toArray(i[2]))}Qse(i,t.get("minTurnAngle")),r.setShape({points:i})}}}var _2=[],Un=new Be;function Qse(e,t){if(t<=180&&t>0){t=t/180*Math.PI,ao.fromArray(e[0]),Lt.fromArray(e[1]),vr.fromArray(e[2]),Be.sub(qo,ao,Lt),Be.sub(Vo,vr,Lt);var r=qo.len(),n=Vo.len();if(!(r<.001||n<.001)){qo.scale(1/r),Vo.scale(1/n);var a=qo.dot(Vo),i=Math.cos(t);if(i<a){var o=w2(Lt.x,Lt.y,vr.x,vr.y,ao.x,ao.y,_2,!1);Un.fromArray(_2),Un.scaleAndAdd(Vo,o/Math.tan(Math.PI-t));var s=vr.x!==Lt.x?(Un.x-Lt.x)/(vr.x-Lt.x):(Un.y-Lt.y)/(vr.y-Lt.y);if(isNaN(s))return;s<0?Be.copy(Un,Lt):s>1&&Be.copy(Un,vr),Un.toArray(e[1])}}}}function YMe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,ao.fromArray(e[0]),Lt.fromArray(e[1]),vr.fromArray(e[2]),Be.sub(qo,Lt,ao),Be.sub(Vo,vr,Lt);var n=qo.len(),a=Vo.len();if(!(n<.001||a<.001)){qo.scale(1/n),Vo.scale(1/a);var i=qo.dot(t),o=Math.cos(r);if(i<o){var s=w2(Lt.x,Lt.y,vr.x,vr.y,ao.x,ao.y,_2,!1);Un.fromArray(_2);var l=Math.PI/2,u=Math.acos(Vo.dot(t)),c=l+u-r;if(c>=l)Be.copy(Un,vr);else{Un.scaleAndAdd(Vo,s/Math.tan(Math.PI/2-c));var d=vr.x!==Lt.x?(Un.x-Lt.x)/(vr.x-Lt.x):(Un.y-Lt.y)/(vr.y-Lt.y);if(isNaN(d))return;d<0?Be.copy(Un,Lt):d>1&&Be.copy(Un,vr)}Un.toArray(e[1])}}}}function KV(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function KMe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=uu(n[0],n[1]),i=uu(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=f_([],n[1],n[0],o/a),l=f_([],n[1],n[2],o/i),u=f_([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function b3(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<xy.length;l++){var u=xy[l],c=t[u],d=u==="normal";if(c){var f=c.get("show"),h=d?s:Ge(a.states[u]&&a.states[u].ignore,s);if(h||!Ge(f,o)){var p=d?n:n&&n.states[u];p&&(p.ignore=!0);continue}n||(n=new ka,e.setTextGuideLine(n),!d&&(s||!o)&&KV(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),KV(n,!1,u,c)}}if(n){Ce(n.style,r),n.style.fill=null;var v=i.get("showAbove"),m=e.textGuideLineConfig=e.textGuideLineConfig||{};m.showAbove=v||!1,n.buildPath=KMe}}function w3(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Xn.length;n++){var a=Xn[n];r[a]=e.getModel([a,t])}return r}function ele(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new o2(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function tle(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(T,E){return T.rect[t]-E.rect[t]});for(var s=0,l,u=!1,c=0,d=0;d<o;d++){var f=e[d],h=f.rect;l=h[t]-s,l<0&&(h[t]-=l,f.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[t]+h[r]}c>0&&i&&k(-c/o,0,o);var v=e[0],m=e[o-1],g,x;b(),g<0&&S(-g,.8),x<0&&S(x,.8),b(),_(g,x,1),_(x,g,-1),b(),g<0&&C(-g),x<0&&C(x);function b(){g=v.rect[t]-n,x=a-m.rect[t]-m.rect[r]}function _(T,E,A){if(T<0){var N=Math.min(E,-T);if(N>0){k(N*A,0,o);var P=N+T;P<0&&S(-P*A,1)}else S(-T*A,1)}}function k(T,E,A){T!==0&&(u=!0);for(var N=E;N<A;N++){var P=e[N],L=P.rect;L[t]+=T,P.label[t]+=T}}function S(T,E){for(var A=[],N=0,P=1;P<o;P++){var L=e[P-1].rect,R=Math.max(e[P].rect[t]-L[t]-L[r],0);A.push(R),N+=R}if(N){var M=Math.min(Math.abs(T)/N,E);if(T>0)for(var P=0;P<o-1;P++){var $=A[P]*M;k($,0,P+1)}else for(var P=o-1;P>0;P--){var $=A[P-1]*M;k(-$,P,o)}}}function C(T){var E=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),N=0;N<o-1;N++)if(E>0?k(A,0,N+1):k(-A,o-N-1,o),T-=A,T<=0)return}return u}function ZMe(e,t,r,n){return tle(e,"x","width",t,r,n)}function rle(e,t,r,n){return tle(e,"y","height",t,r,n)}function nle(e){var t=[];e.sort(function(v,m){return m.priority-v.priority});var r=new We(0,0,0,0);function n(v){if(!v.ignore){var m=v.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}v.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var d=i.obb,f=!1,h=0;h<t.length;h++){var p=t[h];if(r.intersect(p.rect)){if(o&&p.axisAligned){f=!0;break}if(p.obb||(p.obb=new o2(p.localRect,p.transform)),d||(d=new o2(s,l)),d.intersect(p.obb)){f=!0;break}}}f?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function XMe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function JMe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:XMe(n&&n.shape.points)}}var ZV=["align","verticalAlign","width","height","fontSize"],Na=new zs,qE=at(),QMe=at();function kb(e,t,r){for(var n=0;n<r.length;n++){var a=r[n];t[a]!=null&&(e[a]=t[a])}}var Cb=["x","y","rotation"],eDe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{}
605,u=a.getComputedTransform(),c=a.getBoundingRect().plain();We.applyTransform(c,c,u),u?Na.setLocalTransform(u):(Na.x=Na.y=Na.rotation=Na.originX=Na.originY=0,Na.scaleX=Na.scaleY=1);var d=a.__hostTarget,f;if(d){f=d.getBoundingRect().plain();var h=d.getComputedTransform();We.applyTransform(f,f,h)}var p=f&&d.getTextGuideLine();this._labelList.push({label:a,labelLine:p,seriesModel:n,dataIndex:t,dataType:r,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:p&&p.ignore,x:Na.x,y:Na.y,scaleX:Na.scaleX,scaleY:Na.scaleY,rotation:Na.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(ke(a)||tt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=$e(i);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,a)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function a(b,_){return function(){YV(b,_)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ke(o.layoutOption)?c=o.layoutOption(JMe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(c.x!=null?(s.x=le(c.x,r),s.setStyle("x",0),f=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=le(c.y,n),s.setStyle("y",0),f=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),f=!1)}var p=qE(s);p.needsUpdateLabelLine=f,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<ZV.length;v++){var m=ZV[v];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var x=o.seriesModel.getData(o.dataType);g=x.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),a=ele(this._labelList),i=Et(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Et(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});ZMe(i,0,r),rle(o,0,n);var s=Et(a,function(l){return l.layoutOption.hideOverlap});nle(s)},e.prototype.processLabelsOverall=function(){var t=this;D(this._chartViewList,function(r){var n=r.__model,a=r.ignoreLabelLineUpdate,i=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=qE(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),a=$e(t),i=a.dataIndex;if(n&&i!=null){var o=r.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");l.stroke=u[c];var d=s.getModel("labelLine");b3(t,w3(s),l),YV(t,d)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ep(t))){var i=qE(n),o=i.oldLayout,s=$e(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var f=t.prevStates;f&&(Ke(f,"select")>=0&&n.attr(i.oldLayoutSelect),Ke(f,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),ut(n,u,r,l)}else if(n.attr(u),!jv(n).valueAnimation){var d=Ge(n.style.opacity,1);n.style.opacity=0,Wt(n,{style:{opacity:d}},r,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};kb(h,u,Cb),kb(h,n.states.select,Cb)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};kb(p,u,Cb),kb(p,n.states.emphasis,Cb)}Uie(n,l,c,r,r)}if(a&&!a.ignore&&!a.invisible){var i=QMe(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),ut(a,{shape:v},r)):(a.setShape(v),a.style.strokePercent=0,Wt(a,{style:{strokePercent:1}},r)),i.oldLayout=v}},e}();const tDe=eDe;var YE=at();function rDe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var a=YE(r).labelManager;a||(a=YE(r).labelManager=new tDe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var a=YE(r).labelManager;
605n.updatedSeries.forEach(function(i){a.addLabelsOfSeries(r.getViewOfSeriesModel(i))}),a.updateLayoutConfig(r),a.layout(r),a.processLabelsOverall()})}var KE=Math.sin,ZE=Math.cos,ale=Math.PI,Hc=Math.PI*2,nDe=180/ale,aDe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){this._add("C",t,r,n,a,i,o)},e.prototype.quadraticCurveTo=function(t,r,n,a){this._add("Q",t,r,n,a)},e.prototype.arc=function(t,r,n,a,i,o){this.ellipse(t,r,n,n,0,a,i,o)},e.prototype.ellipse=function(t,r,n,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=pu(d-Hc)||(c?u>=Hc:-u>=Hc),h=u>0?u%Hc:u%Hc+Hc,p=!1;f?p=!0:pu(d)?p=!1:p=h>=ale==!!c;var v=t+n*ZE(o),m=r+a*KE(o);this._start&&this._add("M",v,m);var g=Math.round(i*nDe);if(f){var x=1/this._p,b=(c?1:-1)*(Hc-x);this._add("A",n,a,g,1,+c,t+n*ZE(o+b),r+a*KE(o+b)),x>.01&&this._add("A",n,a,g,0,+c,v,m)}else{var _=t+n*ZE(s),k=r+a*KE(s);this._add("A",n,a,g,+p,+c,_,k)}},e.prototype.rect=function(t,r,n,a){this._add("M",t,r),this._add("l",n,0),this._add("l",0,a),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f<arguments.length;f++){var h=arguments[f];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*d)/d)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const ile=aDe;var _m="none",iDe=Math.round;function oDe(e){var t=e.fill;return t!=null&&t!==_m}function sDe(e){var t=e.stroke;return t!=null&&t!==_m}var tL=["lineCap","miterLimit","lineJoin"],lDe=re(tL,function(e){return"stroke-"+e.toLowerCase()});function uDe(e,t,r,n){var a=t.opacity==null?1:t.opacity;if(r instanceof hn){e("opacity",a);return}if(oDe(t)){var i=gy(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&e("fill-opacity",o)}else e("fill",_m);if(sDe(t)){var s=gy(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,d=t.strokeFirst;if((n||u!==1)&&e("stroke-width",u),(n||d)&&e("paint-order",d?"stroke":"fill"),(n||c<1)&&e("stroke-opacity",c),t.lineDash){var f=l3(r),h=f[0],p=f[1];h&&(p=iDe(p||0),e("stroke-dasharray",h.join(",")),(p||n)&&e("stroke-dashoffset",p))}else n&&e("stroke-dasharray",_m);for(var v=0;v<tL.length;v++){var m=tL[v];if(n||t[m]!==a2[m]){var g=t[m]||a2[m];g&&e(lDe[v],g)}}}else n&&e("stroke",_m)}var ole="http://www.w3.org/2000/svg",sle="http://www.w3.org/1999/xlink",cDe="http://www.w3.org/2000/xmlns/",dDe="http://www.w3.org/XML/1998/namespace";function lle(e){return document.createElementNS(ole,e)}function jr(e,t,r,n,a){return{tag:e,attrs:r||{},children:n,text:a,key:t}}function fDe(e,t){var r=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),r.push(i))}return"<"+e+" "+r.join(" ")+">"}function hDe(e){return"</"+e+">"}function _3(e,t){t=t||{};var r=t.newline?` 606`:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return fDe(o,s)+(o!=="style"?ca(l):l||"")+(i?""+r+re(i,function(u){return n(u)}).join(r)+r:"")+hDe(o)}return n(e)}function pDe(e,t,r){r=r||{};var n=r.newline?` 607`:"",a=" {"+n,i=n+"}",o=re(tt(e),function(l){return l+a+re(tt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+i}).join(n),s=re(tt(t),function(l){return"@keyframes "+l+a+re(tt(t[l]),function(u){return u+a+re(tt(t[l][u]),function(c){var d=t[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function rL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function XV(e,t,r,n){return jr("svg","root",{width:e,height:t,xmlns:ole,"xmlns:xlink":sle,ver
607sion:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var JV={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},sd="transform-origin";function vDe(e,t,r){var n=Q({},e.shape);Q(n,t),e.buildPath(r,n);var a=new ile;return a.reset(_ae(e)),r.rebuildPath(a,1),a.generateStr(),a.getStr()}function gDe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[sd]=r+"px "+n+"px")}var mDe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ule(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function yDe(e,t,r){var n=e.shape.paths,a={},i,o;if(D(n,function(l){var u=rL(r.zrId);u.animation=!0,DC(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=tt(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var v in p){var m=p[v];a[v]=a[v]||{d:""},a[v].d+=m.d||""}for(var g in d){var x=d[g].animation;x.indexOf(o)>=0&&(i=x)}}}),!!i){t.d=!1;var s=ule(a,r);return i.replace(o,s)}}function QV(e){return fe(e)?JV[e]?"cubic-bezier("+JV[e]+")":kO(e)?e:"":""}function DC(e,t,r,n){var a=e.animators,i=a.length,o=[];if(e instanceof jO){var s=yDe(e,t,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],d=[c.getMaxTime()/1e3+"s"],f=QV(c.getClip().easing),h=c.getDelay();f?d.push(f):d.push("linear"),h&&d.push(h/1e3+"s"),c.getLoop()&&d.push("infinite");var p=d.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(x){var b=x[1],_=b.length,k={},S={},C={},T="animation-timing-function";function E(oe,be,me){for(var Z=oe.getTracks(),J=oe.getMaxTime(),we=0;we<Z.length;we++){var xe=Z[we];if(xe.needsAnimate()){var Pe=xe.keyframes,he=xe.propName;if(me&&(he=me(he)),he)for(var je=0;je<Pe.length;je++){var ne=Pe[je],De=Math.round(ne.time/J*100)+"%",gt=QV(ne.easing),dt=ne.rawValue;(fe(dt)||lt(dt))&&(be[De]=be[De]||{},be[De][he]=ne.rawValue,gt&&(be[De][T]=gt))}}}}for(var A=0;A<_;A++){var N=b[A],P=N.targetName;P?P==="shape"&&E(N,S):!n&&E(N,k)}for(var L in k){var R={};Aae(R,e),Q(R,k[L]);var M=Sae(R),$=k[L][T];C[L]=M?{transform:M}:{},gDe(C[L],R),$&&(C[L][T]=$)}var V,B=!0;for(var L in S){C[L]=C[L]||{};var j=!V,$=S[L][T];j&&(V=new is);var I=V.len();V.reset(),C[L].d=vDe(e,S[L],V);var U=V.len();if(!j&&I!==U){B=!1;break}$&&(C[L][T]=$)}if(!B)for(var L in C)delete C[L].d;if(!n)for(var A=0;A<_;A++){var N=b[A],P=N.targetName;P==="style"&&E(N,C,function(Z){return mDe[Z]})}for(var Y=tt(C),O=!0,H,A=1;A<Y.length;A++){var ie=Y[A-1],ee=Y[A];if(C[ie][sd]!==C[ee][sd]){O=!1;break}H=C[ie][sd]}if(O&&H){for(var L in C)C[L][sd]&&delete C[L][sd];t[sd]=H}if(Et(Y,function(oe){return tt(C[oe]).length>0}).length){var se=ule(C,r);return se+" "+x[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var g=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+g]={animation:o.join(",")},t.class=g}}var Iy=Math.round;function cle(e){return e&&fe(e.src)}function dle(e){return e&&ke(e.toDataURL)}function S3(e,t,r,n){uDe(function(a,i){var o=a==="fill"||a==="stroke";o&&wae(i)?hle(t,e,a,n):o&&CO(i)?ple(r,e,a,n):e[a]=i},t,r,!1),CDe(r,e,n)}function e9(e){return pu(e[0]-1)&&pu(e[1])&&pu(e[2])&&pu(e[3]-1)}function xDe(e){return pu(e[4])&&pu(e[5])}function k3(e,t,r){if(t&&!(xDe(t)&&e9(t))){var n=r?10:1e4;e.transform=e9(t)?"translate("+Iy(t[4]*n)/n+" "+Iy(t[5]*n)/n+")":yTe(t)}}function t9(e,t,r){for(var n=e.points,a=[],i=0;i<n.length;i++)a.push(Iy(n[i][0]*r)/r),a.push(Iy(n[i][1]*r)/r);t.points=a.join(" ")}function r9(e){return!e.smooth}function bDe(e){var t=re(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=r[o[0]];s!=null&&(n[o[1]]=Iy(s*a)/a)}}}var wDe={circle:[bDe(["cx","cy","r"])],polyline:[t9,r9],polygon:[t9,r9]};function _De(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function fle(e,t){var r=e.style,n=e.shape,a=wDe[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&_ae(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&_De(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](n,i,c)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var h=f.getVersion(),p=e,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new ile),v.reset(u),f.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=v.getStr()}return k3(i,e.transform),S3(i,r,e,t),t.animation&&DC(e,i,t),jr(s,e.id+"",i
607)}function SDe(e,t){var r=e.style,n=r.image;if(n&&!fe(n)&&(cle(n)?n=n.src:dle(n)&&(n=n.toDataURL())),!!n){var a=r.x||0,i=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),k3(l,e.transform),S3(l,r,e,t),t.animation&&DC(e,l,t),jr("image",e.id+"",l)}}function kDe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var a=r.font||Wu,i=r.x||0,o=bTe(r.y||0,sC(a),r.textBaseline),s=xTe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(oie(r)){var u="",c=r.fontStyle,d=iie(r.fontSize);if(!parseFloat(d))return;var f=r.fontFamily||Zne,h=r.fontWeight;u+="font-size:"+d+";font-family:"+f+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),k3(l,e.transform),S3(l,r,e,t),t.animation&&DC(e,l,t),jr("text",e.id+"",l,void 0,n)}}function n9(e,t){if(e instanceof Je)return fle(e,t);if(e instanceof hn)return SDe(e,t);if(e instanceof yy)return kDe(e,t)}function CDe(e,t,r){var n=e.style;if(wTe(n)){var a=_Te(e),i=r.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,d=n.shadowOffsetY||0,f=n.shadowBlur,h=gy(n.shadowColor),p=h.opacity,v=h.color,m=f/2/l,g=f/2/u,x=m+" "+g;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=jr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[jr("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:x,"flood-color":v,"flood-opacity":p})]),i[a]=o}t.filter=oC(o)}}function hle(e,t,r,n){var a=e[r],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(xae(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(bae(a))i="radialGradient",o.cx=Ge(a.x,.5),o.cy=Ge(a.y,.5),o.r=Ge(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=gD(s[u].offset)*100+"%",f=s[u].color,h=gy(f),p=h.color,v=h.opacity,m={offset:d};m["stop-color"]=p,v<1&&(m["stop-opacity"]=v),l.push(jr("stop",u+"",m))}var g=jr(i,"",o,l),x=_3(g),b=n.gradientCache,_=b[x];_||(_=n.zrId+"-g"+n.gradientIdx++,b[x]=_,o.id=_,n.defs[_]=jr(i,_,o,l)),t[r]=oC(_)}function ple(e,t,r,n){var a=e.style[r],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",d;if(yae(a)){var f=a.imageWidth,h=a.imageHeight,p=void 0,v=a.image;if(fe(v)?p=v:cle(v)?p=v.src:dle(v)&&(p=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Zn(f,m),Zn(h,m)}else if(f==null||h==null){var g=function(A,N){if(A){var P=A.elm,
607L=f||N.width,R=h||N.height;A.tag==="pattern"&&(u?(R=1,L/=i.width):c&&(L=1,R/=i.height)),A.attrs.width=L,A.attrs.height=R,P&&(P.setAttribute("width",L),P.setAttribute("height",R))}},x=MO(p,null,e,function(A){l||g(S,A),g(d,A)});x&&x.width&&x.height&&(f=f||x.width,h=h||x.height)}d=jr("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ie(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var b,_;l?b=_=1:u?(_=1,b=o.width/i.width):c?(b=1,_=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),_!=null&&!isNaN(_)&&(o.height=_);var k=Sae(a);k&&(o.patternTransform=k);var S=jr("pattern","",o,[d]),C=_3(S),T=n.patternCache,E=T[C];E||(E=n.zrId+"-p"+n.patternIdx++,T[C]=E,o.id=E,S=n.defs[E]=jr("pattern",E,o,[d])),t[r]=oC(E)}}function TDe(e,t,r){var n=r.clipPathCache,a=r.defs,i=n[e.id];if(!i){i=r.zrId+"-c"+r.clipPathIdx++;var o={id:i};n[e.id]=i,a[i]=jr("clipPath",i,o,[fle(e,r)])}t["clip-path"]=oC(i)}function a9(e){return document.createTextNode(e)}function vd(e,t,r){e.insertBefore(t,r)}function i9(e,t){e.removeChild(t)}function o9(e,t){e.appendChild(t)}function vle(e){return e.parentNode}function gle(e){return e.nextSibling}function XE(e,t){e.textContent=t}var s9=58,ADe=120,EDe=jr("","");function nL(e){return e===void 0}function Oo(e){return e!==void 0}function NDe(e,t,r){for(var n={},a=t;a<=r;++a){var i=e[a].key;i!==void 0&&(n[i]=a)}return n}function L0(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Py(e){var t,r=e.children,n=e.tag;if(Oo(n)){var a=e.elm=lle(n);if(C3(EDe,e),te(r))for(t=0;t<r.length;++t){var i=r[t];i!=null&&o9(a,Py(i))}else Oo(e.text)&&!Te(e.text)&&o9(a,a9(e.text))}else e.elm=a9(e.text);return e.elm}function mle(e,t,r,n,a){for(;n<=a;++n){var i=r[n];i!=null&&vd(e,Py(i),t)}}function S2(e,t,r,n){for(;r<=n;++r){var a=t[r];if(a!=null)if(Oo(a.tag)){var i=vle(a.elm);i9(i,a.elm)}else i9(e,a.elm)}}function C3(e,t){var r,n=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(r in i){var o=i[r],s=a[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r.charCodeAt(0)!==ADe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(cDe,r,o):r.charCodeAt(3)===s9?n.setAttributeNS(dDe,r,o):r.charCodeAt(5)===s9?n.setAttributeNS(sle,r,o):n.setAttribute(r,o))}for(r in a)r in i||n.removeAttribute(r)}}function IDe(e,t,r){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=r.length-1,u=r[0],c=r[l],d,f,h,p;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=r[++a]:c==null?c=r[--l]:L0(o,u)?(Rh(o,u),o=t[++n],u=r[++a]):L0(s,c)?(Rh(s,c),s=t[--i],c=r[--l]):L0(o,c)?(Rh(o,c),vd(e,o.elm,gle(s.elm)),o=t[++n],c=r[--l]):L0(s,u)?(Rh(s,u),vd(e,s.elm,o.elm),s=t[--i],u=r[++a]):(nL(d)&&(d=NDe(t,n,i)),f=d[u.key],nL(f)?vd(e,Py(u),o.elm):(h=t[f],h.tag!==u.tag?vd(e,Py(u),o.elm):(Rh(h,u),t[f]=void 0,vd(e,h.elm,o.elm))),u=r[++a]);(n<=i||a<=l)&&(n>i?(p=r[l+1]==null?null:r[l+1].elm,mle(e,p,r,a,l)):S2(e,t,n,i))}function Rh(e,t){var r=t.elm=e.elm,n=e.children,a=t.children;e!==t&&(C3(e,t),nL(t.text)?Oo(n)&&Oo(a)?n!==a&&IDe(r,n,a):Oo(a)?(Oo(e.text)&&XE(r,""),mle(r,null,a,0,a.length-1)):Oo(n)?S2(r,n,0,n.length-1):Oo(e.text)&&XE(r,""):e.text!==t.text&&(Oo(n)&&S2(r,n,0,n.length-1),XE(r,t.text)))}function PDe(e,t){if(L0(e,t))Rh(e,t);else{var r=e.elm,n=vle(r);Py(t),n!==null&&(vd(n,t.elm,gle(r)),S2(n,[e],0,0))}return t}var MDe=0,DDe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=l9(),this.configLayer=l9(),this.storage=r,this._opts=n=Q({},n),this.root=t,this._id="zr"+MDe++,this._oldVNode=XV(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=lle("svg");C3(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;
607left:0;top:0;user-select:none",PDe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return n9(t,rL(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=rL(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=LDe(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=jr("g","main",{},[]);this._paintList(r,i,l?l.children:o),l&&o.push(l);var u=re(tt(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(jr("defs","defs",{},u)),t.animation){var c=pDe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=jr("style","stl",{},[],c);o.push(d)}}return XV(n,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},_3(this.renderToVNode({animation:Ge(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ge(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var d=t[c];if(!d.invisible){var f=d.__clipPaths,h=f&&f.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(f&&l&&f[v]===l[v]);v--);for(var m=p-1;m>v;m--)o--,s=i[o-1];for(var g=v+1;g<h;g++){var x={};TDe(f[g],x,r);var b=jr("g","clip-g-"+u++,x,[]);(s?s.children:n).push(b),i[o++]=b,s=b}l=f;var _=n9(d,r);_&&(s?s.children:n).push(_)}}},e.prototype.resize=function(t,r){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),a&&i&&(i.style.display="none",t=ip(a,0,n),r=ip(a,1,n),i.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,i){var o=i.style;o.width=t+"px",o.height=r+"px"}if(CO(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=kTe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function l9(e){return function(){}}function LDe(e,t,r,n){var a;if(r&&r!=="none")if(a=jr("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),wae(r))hle({fill:r},a.attrs,"fill",n);else if(CO(r))ple({style:{fill:r},dirty:mr,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",n);else{var i=gy(r),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const RDe=DDe;function $De(e){e.registerPainter("svg",RDe)}function u9(e,t,r){var n=qu.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var ODe=function(e){Vt(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||t2,typeof r=="string"?o=u9(r,n,a):Te(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(rae(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=u9("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new We(0,0,0,0);
607function c(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var b=new We(0,0,0,0);b.copy(x),o.push(b)}else{for(var _=!1,k=1/0,S=0,C=0;C<o.length;++C){var T=o[C];if(T.intersect(x)){var E=new We(0,0,0,0);E.copy(T),E.union(x),o[C]=E,_=!0;break}else if(l){u.copy(x),u.union(T);var A=x.width*x.height,N=T.width*T.height,P=u.width*u.height,L=P-A-N;L<k&&(k=L,S=C)}}if(l&&(o[S].union(x),_=!0),!_){var b=new We(0,0,0,0);b.copy(x),o.push(b)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=r[d];if(f){var h=f.shouldBePainted(a,i,!0,!0),p=f.__isRendered&&(f.__dirty&$a||!h)?f.getPrevPaintRect():null;p&&c(p);var v=h&&(f.__dirty&$a||!f.__isRendered)?f.getPaintRect():null;v&&c(v)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var f=n[d],h=f.shouldBePainted(a,i,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered){var p=f.getPrevPaintRect();p&&c(p)}}var m;do{m=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var g=d+1;g<o.length;)o[d].intersect(o[g])?(m=!0,o[d].union(o[g]),o.splice(g,1)):g++;d++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,d=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,l/d));var h=this.domBack;function p(v,m,g,x){if(o.clearRect(v,m,g,x),n&&n!=="transparent"){var b=void 0;if(nC(n)){var _=n.global||n.__width===g&&n.__height===x;b=_&&n.__canvasGradient||qD(o,n,{x:0,y:0,width:g,height:x}),n.__canvasGradient=b,n.__width=g,n.__height=x}else kCe(n)&&(n.scaleX=n.scaleX||d,n.scaleY=n.scaleY||d,b=YD(o,n,{dirty:function(){f.setUnpainted(),f.__painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(v,m,g,x),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,m,g,x),o.restore())}!a||u?p(0,0,s,l):a.length&&D(a,function(v){p(v.x*d,v.y*d,v.width*d,v.height*d)})},t}(Di);const JE=ODe;var c9=1e5,Wc=314159,Tb=.01,zDe=.001;function FDe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function BDe(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var jDe=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Q({},n||{}),this.dpr=n.devicePixelRatio||t2,this._singleCanvas=i,this.root=t;var o=t.style;o&&(rae(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,d=c.width,f=c.height;n.width!=null&&(d=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,c.width=d*this.dpr,c.height=f*this.dpr,this._width=d,this._height=f;var h=new JE(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Wc]=h,h.zlevel=Wc,s.push(Wc),this._domRoot=t}else{this._width=ip(t,0,n),this._height=ip(t,1,n);var u=this._domRoot=BDe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(c9)),i||(i=n.ctx,i.save()),Ld(i,s,a,o===r-1))}
607i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(c9)},e.prototype.paintOne=function(t,r){Qoe(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;dD(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Wc).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,d=!1,f=function(v){var m=i[v],g=m.ctx,x=o&&m.createRepaintRects(t,r,h._width,h._height),b=n?m.__startIndex:m.__drawIndex,_=!n&&m.incremental&&Date.now,k=_&&Date.now(),S=m.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,S,x);else if(b===m.__startIndex){var C=t[b];(!C.incremental||!C.notClear||n)&&m.clear(!1,S,x)}b===-1&&(b=m.__startIndex);var T,E=function(L){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<m.__endIndex;T++){var M=t[T];if(M.__inHover&&(d=!0),a._doPaintEl(M,m,o,L,R,T===m.__endIndex-1),_){var $=Date.now()-k;if($>15)break}}R.prevElClipPaths&&g.restore()};if(x)if(x.length===0)T=m.__endIndex;else for(var A=h.dpr,N=0;N<x.length;++N){var P=x[N];g.save(),g.beginPath(),g.rect(P.x*A,P.y*A,P.width*A,P.height*A),g.clip(),E(P),g.restore()}else g.save(),E(),g.restore();m.__drawIndex=T,m.__drawIndex<m.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)f(p);return ot.wxa&&D(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Ld(s,t,i,o),t.setPrevPaintRect(l))}else Ld(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wc);var n=this._layers[t];return n||(n=new JE("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?He(n,this._layerConfig[t],!0):this._layerConfig[t-Tb]&&He(n,this._layerConfig[t-Tb],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&FDe(r)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,f){d.__dirty=d.__used=!1});function r(d){i&&(i.__endIndex!==d&&(i.__dirty=!0),i.__endIndex=d)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+zDe,this._needsManuallyCompositing),
607c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Tb:0),this._needsManuallyCompositing),c.__builtin__||mO("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&$a&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,D(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?He(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Tb){var o=this._layers[i];He(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(Ke(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=ip(i,0,a),r=ip(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Wc).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wc].dom;var r=new JE("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(d){d.__builtin__?n.drawImage(d.dom,0,0,a,i):d.renderToCanvas&&(n.save(),d.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Ld(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const VDe=jDe;function UDe(e){e.registerPainter("canvas",VDe)}var GDe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return xl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Me,a=Sr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Sr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Zt);const HDe=GDe;function iv(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=rv(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(rv(e,t,r[o]));return i.join(" ")}}function yle(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!te(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var WDe=function(e){K(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=qDe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ol(this.childAt(0))},t.prototype.downplay=function(){sl(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ut(f,h,s,n),go(f)}if(this._updateCommon(r,n,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Wt(f,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,d,f,h,p,v,m,g;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,g=i.cursorStyle,p=i.emphasisDisabled),!i||r.hasItemOption){var x=i&&i.itemModel?i.itemModel:r.getItemModel(n),b=x.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),d=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),f=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),v=Ur(x),m=b.getShallow("scale"),g=x.getShallow("cursor")}var _=r.getItemVisual(n,"symbolRotate");
607s.attr("rotation",(_||0)*Math.PI/180||0);var k=Kv(r.getItemVisual(n,"symbolOffset"),a);k&&(s.x=k[0],s.y=k[1]),g&&s.attr("cursor",g);var S=r.getItemVisual(n,"style"),C=S.fill;if(s instanceof hn){var T=s.style;s.useStyle(Q({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(Q({},S)):s.useStyle(S),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=r.getItemVisual(n,"liftZ"),A=this._z2;E!=null?A==null&&(this._z2=s.z2,s.z2+=E):A!=null&&(s.z2=A,this._z2=null);var N=o&&o.useNameLabel;dn(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:P,inheritColor:C,defaultOpacity:S.opacity});function P(M){return N?r.getName(M):iv(r,M)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var R=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),nr(this,f,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=$e(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Ku(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ku(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return bx(r.getItemVisual(n,"symbolSize"))},t}(Me);function qDe(e,t){this.parent.drift(e,t)}const Cx=WDe;function QE(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function d9(e){return e!=null&&!Te(e)&&(e={isIgnore:e}),e||{}}function f9(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ur(t),cursorStyle:t.get("cursor")}}var YDe=function(){function e(t){this.group=new Me,this._SymbolCtor=t||Cx}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=d9(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=f9(t),u={disableAnimation:s},c=r.getSymbolPoint||function(d){return t.getItemLayout(d)};i||n.removeAll(),t.diff(i).add(function(d){var f=c(d);if(QE(t,f,d,r)){var h=new o(t,d,l,u);h.setPosition(f),t.setItemGraphicEl(d,h),n.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!QE(t,p,d,r)){n.remove(h);return}var v=t.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)n.remove(h),h=new o(t,d,l,u),h.setPosition(p);else{h.updateData(t,d,l,u);var g={x:p[0],y:p[1]};s?h.attr(g):ut(h,g,a)}n.add(h),t.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){n.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=f9(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=d9(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(QE(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){fc(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();const Tx=YDe;function xle(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=KDe(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,d=re(e.dimensions,function(p){return t.mapDimension(p)}),f=!1,h=t.getCalculationInfo("stackResultDimension");return Xu(t,d[0])&&(f=!0,d[0]=h),Xu(t,d[1])&&(f=!0,d[1]=h),{dataDimsForPoint:d,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function KDe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:lt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function ble(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function ZDe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function XDe(e,t,r,n,a,i,o,s){for(var l=ZDe(e,t),u=[],c=[],d=[],f=[],h=[],p=[],v=[],m=xle(a,t,o),g=e.getLayout("points")||[],x=t.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],k=!0,S=void 0,C=void 0;switch(_.cmd){case"=":S=_.idx*2,C=_.idx1*2;var T=g[S],E=g[S+1],A=x[C],N=x[C+1];(isNaN(T)||isNaN(E))&&(T=A,E=N),u.push(T,E),c.push(A,N),d.push(r[S],r[S+1]),f.pu
607sh(n[C],n[C+1]),v.push(t.getRawIndex(_.idx1));break;case"+":var P=_.idx,L=m.dataDimsForPoint,R=a.dataToPoint([t.get(L[0],P),t.get(L[1],P)]);C=P*2,u.push(R[0],R[1]),c.push(x[C],x[C+1]);var M=ble(m,a,t,P);d.push(M[0],M[1]),f.push(n[C],n[C+1]),v.push(t.getRawIndex(P));break;case"-":k=!1}k&&(h.push(_),p.push(p.length))}p.sort(function(ie,ee){return v[ie]-v[ee]});for(var $=u.length,V=Wo($),B=Wo($),j=Wo($),I=Wo($),U=[],b=0;b<p.length;b++){var Y=p[b],O=b*2,H=Y*2;V[O]=u[H],V[O+1]=u[H+1],B[O]=c[H],B[O+1]=c[H+1],j[O]=d[H],j[O+1]=d[H+1],I[O]=f[H],I[O+1]=f[H+1],U[b]=h[Y]}return{current:V,next:B,stackedOnCurrent:j,stackedOnNext:I,status:U}}var Fl=Math.min,Bl=Math.max;function Jd(e,t){return isNaN(e)||isNaN(t)}function aL(e,t,r,n,a,i,o,s,l){for(var u,c,d,f,h,p,v=r,m=0;m<n;m++){var g=t[v*2],x=t[v*2+1];if(v>=a||v<0)break;if(Jd(g,x)){if(l){v+=i;continue}break}if(v===r)e[i>0?"moveTo":"lineTo"](g,x),d=g,f=x;else{var b=g-u,_=x-c;if(b*b+_*_<.5){v+=i;continue}if(o>0){for(var k=v+i,S=t[k*2],C=t[k*2+1];S===g&&C===x&&m<n;)m++,k+=i,v+=i,S=t[k*2],C=t[k*2+1],g=t[v*2],x=t[v*2+1],b=g-u,_=x-c;var T=m+1;if(l)for(;Jd(S,C)&&T<n;)T++,k+=i,S=t[k*2],C=t[k*2+1];var E=.5,A=0,N=0,P=void 0,L=void 0;if(T>=n||Jd(S,C))h=g,p=x;else{A=S-u,N=C-c;var R=g-u,M=S-g,$=x-c,V=C-x,B=void 0,j=void 0;if(s==="x"){B=Math.abs(R),j=Math.abs(M);var I=A>0?1:-1;h=g-I*B*o,p=x,P=g+I*j*o,L=x}else if(s==="y"){B=Math.abs($),j=Math.abs(V);var U=N>0?1:-1;h=g,p=x-U*B*o,P=g,L=x+U*j*o}else B=Math.sqrt(R*R+$*$),j=Math.sqrt(M*M+V*V),E=j/(j+B),h=g-A*o*(1-E),p=x-N*o*(1-E),P=g+A*o*E,L=x+N*o*E,P=Fl(P,Bl(S,g)),L=Fl(L,Bl(C,x)),P=Bl(P,Fl(S,g)),L=Bl(L,Fl(C,x)),A=P-g,N=L-x,h=g-A*B/j,p=x-N*B/j,h=Fl(h,Bl(u,g)),p=Fl(p,Bl(c,x)),h=Bl(h,Fl(u,g)),p=Bl(p,Fl(c,x)),A=g-h,N=x-p,P=g+A*j/B,L=x+N*j/B}e.bezierCurveTo(d,f,h,p,g,x),d=P,f=L}else e.lineTo(g,x)}u=g,c=x,v+=i}return m}var wle=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),JDe=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wle},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Jd(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Jd(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=aL(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=is.CMD,s,l,u=n==="x",c=[],d=0;d<i.length;){var f=i[d++],h=void 0,p=void 0,v=void 0,m=void 0,g=void 0,x=void 0,b=void 0;switch(f){case o.M:s=i[d++],l=i[d++];break;case o.L:if(h=i[d++],p=i[d++],b=u?(r-s)/(h-s):(r-l)/(p-l),b<=1&&b>=0){var _=u?(p-l)*b+l:(h-s)*b+s;return u?[r,_]:[_,r]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],v=i[d++],m=i[d++],g=i[d++],x=i[d++];var k=u?XS(s,h,v,g,r,c):XS(l,p,m,x,r,c);if(k>0)for(var S=0;S<k;S++){var C=c[S];if(C<=1&&C>=0){var _=u?zr(l,p,m,x,C):zr(s,h,v,g,C);return u?[r,_]:[_,r]}}s=g,l=x;break}}},t}(Je),QDe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(wle),_le=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new QDe},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Jd(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Jd(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=aL(r,a,o,s,s,1,n.smooth,l,n.connectNulls);aL(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(Je);function Sle(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var d=new nt({shape:{x:o,y:s,width:l,height:u}});if(t){var f=e.getBaseAxis(),h=f.isHorizontal(),p=f.inverse;h?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=u),d.shape.height=0);var v=ke(a)?function(m){a(m,d)}:null;Wt(d,{shape:{width:l,height:u,x:o,y:s}},r,null,n,v)}return d}function kle(e,t,r){var n=e.getArea(),a=cr(n.r0,1),i=cr(n.r,1),o=new wa({shape:{cx:cr(e.cx,1),cy:cr(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Wt(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function LC(e,t,r,n,a){if(e){if(e.type==="polar")return kle(e,t,r);if(e.type==="cartesian2d")return Sle(e,t,r,n,a)}else return null;return null}function Ff(e,t){return e.type===t}function h9(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function p9(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function v9(e,t){var r=p9(e),n=r[0],a=r[1],i=p9(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function g9(e){return lt(e)?e:e?.5:0}function eLe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Wo(n*2),i=0;i<n;i++){var o=ble(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function jl(e,t,r,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],d=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var f=(u[i]+c[i])/2,h=[];l[i]=h[i]=f,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;
607default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function tLe(e,t){var r=[],n=e.length,a,i;function o(c,d,f){var h=c.coord,p=(f-h)/(d.coord-h),v=mTe(p,[c.color,d.color]);return{coord:f,color:v}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function rLe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=re(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=tLe(u,a==="x"?r.getWidth():r.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,v=f[0].coord-p,m=f[h-1].coord+p,g=m-v;if(g<.001)return"transparent";D(f,function(b){b.offset=(b.coord-v)/g}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var x=new zv(0,0,0,0,f,!0);return x[a]=v,x[a+"2"]=m,x}}}function nLe(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&aLe(i,t))){var o=t.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function aLe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Cx.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function iLe(e,t){return isNaN(e)||isNaN(t)}function oLe(e){for(var t=e.length/2;t>0&&iLe(e[t*2-2],e[t*2-1]);t--);return t-1}function m9(e,t){return[e[t*2],e[t*2+1]]}function sLe(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Cle(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Xn.length;t++)if(e.get([Xn[t],"endLabel","show"]))return!0;return!1}function eN(e,t,r,n){if(Ff(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Cle(n)?function(h,p){e._endLabelOnDuring(h,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Sle(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var d=c.shape,f=Math.max(d.width,d.height);u?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return l&&l(1,c),c}else return kle(t,r,n)}function lLe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var uLe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Me,n=new Tx;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),d=l.getLayout("points")||[],f=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,m=this._polygon,g=this._lineGroup,x=!n.ssr&&r.isAnimationEnabled(),b=!c.isEmpty(),_=c.get("origin"),k=xle(o,l,_),S=b&&eLe(o,l,k),C=r.get("showSymbol"),T=r.get("connectNulls"),E=C&&!f&&nLe(r,l,o),A=this._data;A&&A.eachItemGraphicEl(function(ee,se){ee.__temp&&(s.remove(ee),A.setItemGraphicEl(se,null))}),C||p.remove(),s.add(g);var N=f?!1:r.get("step"),P;o&&o.getArea&&r.get("clip",!0)&&(P=o.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var L=rLe(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&N===this._step))C&&p.updateData(l,{isIgnore:E,clipShape:P,disableAnimation:!0,get
607SymbolPoint:function(ee){return[d[ee*2],d[ee*2+1]]}}),x&&this._initSymbolLabelAnimation(l,o,P),N&&(d=jl(d,o,N,T),S&&(S=jl(S,o,N,T))),v=this._newPolyline(d),b?m=this._newPolygon(d,S):m&&(g.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(r,o,_f(L)),g.setClipPath(eN(this,o,!0,r));else{b&&!m?m=this._newPolygon(d,S):m&&!b&&(g.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(r,o,_f(L));var R=g.getClipPath();if(R){var M=eN(this,o,!1,r);Wt(R,{shape:M.shape},r)}else g.setClipPath(eN(this,o,!0,r));C&&p.updateData(l,{isIgnore:E,clipShape:P,disableAnimation:!0,getSymbolPoint:function(ee){return[d[ee*2],d[ee*2+1]]}}),(!h9(this._stackedOnPoints,S)||!h9(this._points,d))&&(x?this._doUpdateAnimation(l,S,o,a,N,_,T):(N&&(d=jl(d,o,N,T),S&&(S=jl(S,o,N,T))),v.setShape({points:d}),m&&m.setShape({points:d,stackedOnPoints:S})))}var $=r.getModel("emphasis"),V=$.get("focus"),B=$.get("blurScope"),j=$.get("disabled");if(v.useStyle(Ce(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),cn(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var I=v.getState("emphasis").style;I.lineWidth=+v.style.lineWidth+1}$e(v).seriesIndex=r.seriesIndex,nr(v,V,B,j);var U=g9(r.get("smooth")),Y=r.get("smoothMonotone");if(v.setShape({smooth:U,smoothMonotone:Y,connectNulls:T}),m){var O=l.getCalculationInfo("stackedOnSeries"),H=0;m.useStyle(Ce(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),O&&(H=g9(O.get("smooth"))),m.setShape({smooth:U,stackedOnSmooth:H,smoothMonotone:Y,connectNulls:T}),cn(m,r,"areaStyle"),$e(m).seriesIndex=r.seriesIndex,nr(m,V,B,j)}var ie=function(ee){i._changePolyState(ee)};l.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=d,this._step=N,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,v),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){$e(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=xf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=r.get("zlevel")||0,h=r.get("z")||0;u=new Cx(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ft.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=xf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ft.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;i2(this._polyline,r),n&&i2(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new JDe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new _le({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ke(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=ke(d)?d(null):d;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var m=[h.x,h.y],g=void 0,x=void 0,b=void 0;if(a)if(o){var _=a,k=n.pointToCoord(m);i?(g=_.startAngle,x=_.endAngle,b=-k[1]/180*Math.PI):(g=_.r0,x=_.r,b=k[0])}else{var S=a;i?(g=S.x,x=S.x+S.width,b=h.x):(g=S.y+S.height,x=S.y,b=h.y)}var C=x===g?0:(b-g)/(x-g);l&&(C=1-C);var T=ke(d)?d(p):c*C+f,E=v.getSymbolPath(),A=E.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}
607},{duration:300,delay:T}),E.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(Cle(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=oLe(l);c>=0&&(dn(s,Ur(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?yle(o,h):iv(o,d)},enableTextSetter:!0},lLe(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),x=m.inverse,b=n.shape,_=x?g?b.x:b.y+b.height:g?b.x+b.width:b.y,k=(g?v:0)*(x?-1:1),S=(g?0:-v)*(x?-1:1),C=g?"x":"y",T=sLe(d,_,C),E=T.range,A=E[1]-E[0],N=void 0;if(A>=1){if(A>1&&!h){var P=m9(d,E[0]);u.attr({x:P[0]+k,y:P[1]+S}),o&&(N=f.getRawValue(E[0]))}else{var P=c.getPointOn(_,C);P&&u.attr({x:P[0]+k,y:P[1]+S});var L=f.getRawValue(E[0]),R=f.getRawValue(E[1]);o&&(N=Gae(a,p,L,R,T.t))}i.lastFrameIndex=E[0]}else{var M=r===1||i.lastFrameIndex>0?E[0]:0,P=m9(d,M);o&&(N=f.getRawValue(M)),u.attr({x:P[0]+k,y:P[1]+S})}o&&jv(u).setLabelText(N)}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=r.hostModel,f=XDe(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,v=f.next,m=f.stackedOnNext;if(o&&(h=jl(f.current,a,o,l),p=jl(f.stackedOnCurrent,a,o,l),v=jl(f.next,a,o,l),m=jl(f.stackedOnNext,a,o,l)),v9(h,v)>3e3||c&&v9(p,m)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var g={shape:{points:v}};f.current!==h&&(g.shape.__points=f.next),u.stopAnimation(),ut(u,g,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ut(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],b=f.status,_=0;_<b.length;_++){var k=b[_].cmd;if(k==="="){var S=r.getItemGraphicEl(b[_].idx1);S&&x.push({el:S,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;T<x.length;T++){var E=x[T].el,A=x[T].ptIdx*2;E.x=C[A],E.y=C[A+1],E.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Ft);const cLe=uLe;function Ax(e,t){return{seriesType:e,plan:qv(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=re(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Xu(n,s[0])&&(s[0]=u),Xu(n,s[1])&&(s[1]=u);var c=n.getStore(),d=n.getDimensionIndex(s[0]),f=n.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var v=h.end-h.start,m=o&&Wo(v*l),g=[],x=[],b=h.start,_=0;b<h.end;b++){var k=void 0;if(l===1){var S=c.get(d,b);k=a.dataToPoint(S,null,x)}else g[0]=c.get(d,b),g[1]=c.get(f,b),k=a.dataToPoint(g,null,x);o?(m[_++]=k[0],m[_++]=k[1]):p.setItemLayout(b,k.slice())}o&&p.setLayout("points",m)}}}}}}var dLe={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},fLe=function(e){return Math.round(e.length/2)};function Tle(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=n.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;fe(i)?p=dLe[i]:ke(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,p,fLe))}}}}}function hLe(e){e.registerChartView(cLe),e.registerSeriesModel(HDe),e.registerLayout(Ax("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Tle("line"))}var Ale=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return xl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(f,h){if(f.type==="category"&&n!=null){var p=f.getTicksCoords(),v=o[h],m=n[h]==="x1"||n[h]==="y1";if(m&&(v+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var g=void 0,x=void 0,b=1,_=0;_<p.length;_++){var k=p[_].coord,S=_===p.length-1?p[_-1].tickValue+b:p[_].tickValue;if(S===v){x=k;break}else if(S<v)g=k;else if(g!=null&&S>v){x=(k+g)/2;break}_===1&&(b=S-p[0].tickValue)}
607x==null&&(g?g&&(x=p[p.length-1].coord):x=p[0].coord),s[h]=f.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Zt);Zt.registerClass(Ale);const k2=Ale;var pLe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return xl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hc(k2.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(k2);const vLe=pLe;var gLe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),mLe=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new gLe},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,d=n.endAngle,f=n.clockwise,h=Math.PI*2,p=f?d-c<h:c-d<h;p||(c=d-(f?h:-h));var v=Math.cos(c),m=Math.sin(c),g=Math.cos(d),x=Math.sin(d);p?(r.moveTo(v*o+a,m*o+i),r.arc(v*u+a,m*u+i,l,-Math.PI+c,c,!f)):r.moveTo(v*s+a,m*s+i),r.arc(a,i,s,c,d,!f),r.arc(g*u+a,x*u+i,l,d-Math.PI*2,d-Math.PI,!f),o!==0&&r.arc(a,i,o,d,c,f)},t}(Je);const C2=mLe;function yLe(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return r2(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,d=u.cy,f=u.r,h=u.r0,p=(f+h)/2,v=u.startAngle,m=u.endAngle,g=(v+m)/2,x=r?Math.abs(f-h)/2:0,b=Math.cos,_=Math.sin,k=c+f*b(v),S=d+f*_(v),C="left",T="top";switch(s){case"startArc":k=c+(h-l)*b(g),S=d+(h-l)*_(g),C="center",T="top";break;case"insideStartArc":k=c+(h+l)*b(g),S=d+(h+l)*_(g),C="center",T="bottom";break;case"startAngle":k=c+p*b(v)+Ab(v,l+x,!1),S=d+p*_(v)+Eb(v,l+x,!1),C="right",T="middle";break;case"insideStartAngle":k=c+p*b(v)+Ab(v,-l+x,!1),S=d+p*_(v)+Eb(v,-l+x,!1),C="left",T="middle";break;case"middle":k=c+p*b(g),S=d+p*_(g),C="center",T="middle";break;case"endArc":k=c+(f+l)*b(g),S=d+(f+l)*_(g),C="center",T="bottom";break;case"insideEndArc":k=c+(f-l)*b(g),S=d+(f-l)*_(g),C="center",T="top";break;case"endAngle":k=c+p*b(m)+Ab(m,l+x,!0),S=d+p*_(m)+Eb(m,l+x,!0),C="left",T="middle";break;case"insideEndAngle":k=c+p*b(m)+Ab(m,-l+x,!0),S=d+p*_(m)+Eb(m,-l+x,!0),C="right",T="middle";break;default:return r2(n,a,i)}return n=n||{},n.x=k,n.y=S,n.align=C,n.verticalAlign=T,n}}function xLe(e,t,r,n){if(lt(n)){e.setTextConfig({rotation:n});return}else if(te(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Ab(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Eb(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Rd(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;te(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:re(n,function(i){return vo(i,a)})}}var tN=Math.max,rN=Math.min;function bLe(e,t){var r=e.getArea&&e.getArea();if(Ff(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var wLe=function(e){K(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){fc(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var f=r.isAnimationEnabled()?r:null,h=_Le(r,u);h&&this._enableRealtimeSort(h,s,a);var p=r.get("clip",!0)||h,v=bLe(u,s);o.removeClipPath();
607var m=r.get("roundCap",!0),g=r.get("showBackground",!0),x=r.getModel("backgroundStyle"),b=x.get("borderRadius")||0,_=[],k=this._backgroundEls,S=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(N){var P=Nb[u.type](s,N),L=NLe(u,d,P);return L.useStyle(x.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",b):L.setShape("cornerRadius",b),_[N]=L,L}s.diff(l).add(function(N){var P=s.getItemModel(N),L=Nb[u.type](s,N,P);if(g&&T(N),!(!s.hasValue(N)||!_9[u.type](L))){var R=!1;p&&(R=y9[u.type](v,L));var M=x9[u.type](r,s,N,L,d,f,c.model,!1,m);h&&(M.forceLabelAnimation=!0),S9(M,s,N,P,L,r,d,u.type==="polar"),S?M.attr({shape:L}):h?b9(h,f,M,L,N,d,!1,!1):Wt(M,{shape:L},r,N),s.setItemGraphicEl(N,M),o.add(M),M.ignore=R}}).update(function(N,P){var L=s.getItemModel(N),R=Nb[u.type](s,N,L);if(g){var M=void 0;k.length===0?M=T(P):(M=k[P],M.useStyle(x.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",b):M.setShape("cornerRadius",b),_[N]=M);var $=Nb[u.type](s,N),V=Nle(d,$,u);ut(M,{shape:V},f,N)}var B=l.getItemGraphicEl(P);if(!s.hasValue(N)||!_9[u.type](R)){o.remove(B);return}var j=!1;if(p&&(j=y9[u.type](v,R),j&&o.remove(B)),B?go(B):B=x9[u.type](r,s,N,R,d,f,c.model,!!B,m),h&&(B.forceLabelAnimation=!0),C){var I=B.getTextContent();if(I){var U=jv(I);U.prevValue!=null&&(U.prevValue=U.value)}}else S9(B,s,N,L,R,r,d,u.type==="polar");S?B.attr({shape:R}):h?b9(h,f,B,R,N,d,!0,C):ut(B,{shape:R},r,N,null),s.setItemGraphicEl(N,B),B.ignore=j,o.add(B)}).remove(function(N){var P=l.getItemGraphicEl(N);P&&wy(P,r,N)}).execute();var E=this._backgroundGroup||(this._backgroundGroup=new Me);E.removeAll();for(var A=0;A<_.length;++A)E.add(_[A]);o.add(E),this._backgroundEls=_,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),C9(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),C9(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&LC(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:re(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackgroun
607d(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){wy(i,r,$e(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ft),y9={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=tN(t.x,e.x),s=rN(t.x+t.width,a),l=tN(t.y,e.y),u=rN(t.y+t.height,i),c=s<o,d=u<l;return t.x=c&&o>a?s:o,t.y=d&&l>i?u:l,t.width=c?0:s-o,t.height=d?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=rN(t.r,e.r),i=tN(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},x9={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new nt({shape:Q({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?C2:wa,c=new u({shape:n,z2:1});c.name="item";var d=Ele(a);if(c.calculateTextPosition=yLe(d,{isRoundCap:u===C2}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?n.r0:n.startAngle,p[h]=n[h],(s?ut:Wt)(c,{shape:p},i)}return c}};function _Le(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function b9(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?ut:Wt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?ut:Wt)(r,{shape:u},c,a)}function w9(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var SLe=["x","y","width","height"],kLe=["cx","cy","r","startAngle","endAngle"],_9={cartesian2d:function(e){return!w9(e,SLe)},polar:function(e){return!w9(e,kLe)}},Nb={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?TLe(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function CLe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Ele(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function S9(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,d=Rd(n.getModel("itemStyle"),c,!0);Q(c,d),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var f=n.getShallow("cursor");f&&e.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=Ur(n);dn(e,p,{labelFetcher:i,labelDataIndex:r,defaultText:iv(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,xLe(e,m==="outside"?h:m,Ele(o),n.get(["label","rotate"]))}Vie(v,p,i.getRawValue(r),function(x){return yle(t,x)});var g=n.getModel(["emphasis"]);nr(e,g.get("focus"),g.get("blurScope"),g.get("disabled")),cn(e,n),CLe(a)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function TLe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var ALe=function(){function e(){}return e}(),k9=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new ALe},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(Je);function C9(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroun
607dPoints");if(u){var c=new k9({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var d=new k9({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(a.getVisual("style")),$e(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",T9),d.on("mousemove",T9)),r&&r.push(d)}var T9=o3(function(e){var t=this,r=ELe(t,e.offsetX,e.offsetY);$e(t).dataIndex=r>=0?r:null},30,!1);function ELe(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=i.length/3;c<d;c++){var f=c*3;if(l[n]=u,l[a]=i[f+2],s[n]=i[f+n],s[a]=i[f+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Nle(e,t,r){if(Ff(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function NLe(e,t,r){var n=e.type==="polar"?wa:nt;return new n({shape:Nle(t,r,e),silent:!0,z2:0})}const ILe=wLe;function PLe(e){e.registerChartView(ILe),e.registerSeriesModel(vLe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Oe(Dse,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lse("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Tle("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Ib=Math.PI*2,A9=Math.PI/180;function Ile(e,t){return Rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}
607function Ple(e,t){var r=Ile(e,t),n=e.get("center"),a=e.get("radius");te(a)||(a=[0,a]);var i=le(r.width,t.getWidth()),o=le(r.height,t.getHeight()),s=Math.min(i,o),l=le(a[0],s/2),u=le(a[1],s/2),c,d,f=e.coordinateSystem;if(f){var h=f.dataToPoint(n);c=h[0]||0,d=h[1]||0}else te(n)||(n=[n,n]),c=le(n[0],i)+r.x,d=le(n[1],o)+r.y;return{cx:c,cy:d,r0:l,r:u}}function MLe(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=Ile(n,r),s=Ple(n,r),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-n.get("startAngle")*A9,h=n.get("minAngle")*A9,p=0;a.each(i,function(A){!isNaN(A)&&p++});var v=a.getSum(i),m=Math.PI/(v||p)*2,g=n.get("clockwise"),x=n.get("roseType"),b=n.get("stillShowZeroSum"),_=a.getDataExtent(i);_[0]=0;var k=Ib,S=0,C=f,T=g?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,N){var P;if(isNaN(A)){a.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:l,cy:u,r0:d,r:x?NaN:c});return}x!=="area"?P=v===0&&b?m:A*m:P=Ib/p,P<h?(P=h,k-=h):S+=A;var L=C+T*P;a.setItemLayout(N,{angle:P,startAngle:C,endAngle:L,clockwise:g,cx:l,cy:u,r0:d,r:x?Ct(A,_,[d,c]):c}),C=L}),k<Ib&&p)if(k<=.001){var E=Ib/p;a.each(i,function(A,N){if(!isNaN(A)){var P=a.getItemLayout(N);P.angle=E,P.startAngle=f+T*N*E,P.endAngle=f+T*(N+1)*E}})}else m=k/S,C=f,a.each(i,function(A,N){if(!isNaN(A)){var P=a.getItemLayout(N),L=P.angle===h?h:A*m;P.startAngle=C,P.endAngle=C+T*L,C+=T*L}})})}function Ex(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var DLe=Math.PI/180;function E9(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(v){for(var m=v.rB,g=m*m,x=0;x<v.list.length;x++){var b=v.list[x],_=Math.abs(b.label.y-r),k=n+b.len,S=k*k,C=Math.sqrt((1-Math.abs(_*_/g))*S),T=t+(C+b.len2)*a,E=T-b.label.x,A=b.targetTextWidth-E*a;Mle(b,A,!0),b.label.x=T}}function d(v){for(var m={list:[],maxY:0},g={list:[],maxY:0},x=0;x<v.length;x++)if(v[x].labelAlignTo==="none"){var b=v[x],_=b.label.y>r?g:m,k=Math.abs(b.label.y-r);if(k>=_.maxY){var S=b.label.x-t-b.len2*a,C=n+b.len,T=Math.abs(S)<C?Math.sqrt(k*k/(1-S*S/C/C)):C;_.rB=T,_.maxY=k}_.list.push(b)}c(m),c(g)}for(var f=e.length,h=0;h<f;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}rle(e,l,l+o)&&d(e)}function LLe(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var h=e[f].label;nN(e[f])||(h.x<t?(c=Math.min(c,h.x),l.push(e[f])):(d=Math.max(d,h.x),u.push(e[f])))}for(var f=0;f<e.length;f++){var p=e[f];if(!nN(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,m=void 0;p.labelAlignTo==="edge"?h.x<t?m=v[2][0]-p.labelDistance-o-p.edgeDistance:m=o+a-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?m=c-o-p.bleedMargin:m=o+a-d-p.bleedMargin:h.x<t?m=h.x-o-p.bleedMargin:m=o+a-h.x-p.bleedMargin,p.targetTextWidth=m,Mle(p,m)}}
607E9(u,t,r,n,1,a,i,o,s,d),E9(l,t,r,n,-1,a,i,o,s,c);for(var f=0;f<e.length;f++){var p=e[f];if(!nN(p)&&p.linePoints){var h=p.label,v=p.linePoints,g=p.labelAlignTo==="edge",x=h.style.padding,b=x?x[1]+x[3]:0,_=h.style.backgroundColor?0:b,k=p.rect.width+_,S=v[1][0]-v[2][0];g?h.x<t?v[2][0]=o+p.edgeDistance+k+p.labelDistance:v[2][0]=o+a-p.edgeDistance-k-p.labelDistance:(h.x<t?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=h.y}}}function Mle(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var d=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var f=n.getBoundingRect();n.setStyle("width",Math.ceil(f.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();i.width=v.width;var m=(n.style.margin||0)+2.1;i.height=v.height+m,i.y-=(i.height-d)/2}}}function nN(e){return e.position==="center"}function RLe(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*DLe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(S){S.ignore=!0}function p(S){if(!S.ignore)return!0;for(var C in S.states)if(S.states[C].ignore===!1)return!0;return!1}t.each(function(S){var C=t.getItemGraphicEl(S),T=C.shape,E=C.getTextContent(),A=C.getTextGuideLine(),N=t.getItemModel(S),P=N.getModel("label"),L=P.get("position")||N.get(["emphasis","label","position"]),R=P.get("distanceToLabelLine"),M=P.get("alignTo"),$=le(P.get("edgeDistance"),u),V=P.get("bleedMargin"),B=N.getModel("labelLine"),j=B.get("length");j=le(j,u);var I=B.get("length2");if(I=le(I,u),Math.abs(T.endAngle-T.startAngle)<o){D(E.states,h),E.ignore=!0,A&&(D(A.states,h),A.ignore=!0);return}if(p(E)){var U=(T.startAngle+T.endAngle)/2,Y=Math.cos(U),O=Math.sin(U),H,ie,ee,se;n=T.cx,a=T.cy;var oe=L==="inside"||L==="inner";if(L==="center")H=T.cx,ie=T.cy,se="center";else{var be=(oe?(T.r+T.r0)/2*Y:T.r*Y)+n,me=(oe?(T.r+T.r0)/2*O:T.r*O)+a;if(H=be+Y*3,ie=me+O*3,!oe){var Z=be+Y*(j+l-T.r),J=me+O*(j+l-T.r),we=Z+(Y<0?-1:1)*I,xe=J;M==="edge"?H=Y<0?c+$:c+u-$:H=we+(Y<0?-R:R),ie=xe,ee=[[be,me],[Z,J],[we,xe]]}se=oe?"center":M==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Pe=Math.PI,he=0,je=P.get("rotate");if(lt(je))he=je*(Pe/180);else if(L==="center")he=0;else if(je==="radial"||je===!0){var ne=Y<0?-U+Pe:-U;he=ne}else if(je==="tangential"&&L!=="outside"&&L!=="outer"){var De=Math.atan2(Y,O);De<0&&(De=Pe*2+De);var gt=O>0;gt&&(De=Pe+De),he=De-Pe}if(i=!!he,E.x=H,E.y=ie,E.rotation=he,E.setStyle({verticalAlign:"middle"}),oe){E.setStyle({align:se});var mn=E.states.select;mn&&(mn.x+=E.x,mn.y+=E.y)}else{var dt=E.getBoundingRect().clone();dt.applyTransform(E.getComputedTransform());var bt=(E.style.margin||0)+2.1;dt.y-=bt/2,dt.height+=bt,r.push({label:E,labelLine:A,position:L,len:j,len2:I,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new Be(Y,O),linePoints:ee,textAlign:se,labelDistance:R,labelAlignTo:M,edgeDistance:$,bleedMargin:V,rect:dt,unconstrainedWidth:dt.width,labelStyleWidth:E.style.width})}C.setTextConfig({inside:oe})}}),!i&&e.get("avoidLabelOverlap")&&LLe(r,n,a,l,u,f,c,d);for(var v=0;v<r.length;v++){var m=r[v],g=m.label,x=m.labelLine,b=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),b&&(D(g.states,h),g.ignore=!0);var _=g.states.select;_&&(_.x+=g.x,_.y+=g.y)}if(x){var k=m.linePoints;b||!k?(D(x.states,h),x.ignore=!0):(Qse(k,m.minTurnAngle),YMe(k,m.surfaceNormal,m.maxSurfaceAngle),x.setShape({points:k}),g.__hostTarget.textGuideLineConfig={anchor:new Be(k[0][0],k[0][1])})}}}var $Le=function(e){K(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new st;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),d=Q(Rd(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){o.setShape(d);return}if(i){o.setShape(d);var f=s.getShallow("animationType");s.ecModel.ssr?(Wt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):f==="scale"?(o.shape.r=c.r0,Wt(o,{shape:{r:c.r}}
607,s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Wt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,ut(o,{shape:{endAngle:c.endAngle}},s,n))}else go(o),ut(o,{shape:d},s,n);o.useStyle(r.getItemVisual(n,"style")),cn(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,m=Math.sin(h)*p,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=Q({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Rd(u.getModel("itemStyle"),c)),Q(o.ensureState("select"),{x:v,y:m,shape:Rd(l.getModel(["select","itemStyle"]),c)}),Q(o.ensureState("blur"),{shape:Rd(l.getModel(["blur","itemStyle"]),c)});var x=o.getTextGuideLine(),b=o.getTextContent();x&&Q(x.ensureState("select"),{x:v,y:m}),Q(b.ensureState("select"),{x:v,y:m}),nr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;dn(i,Ur(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var d=i.getTextContent();i.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var f=r.get(["label","position"]);if(f!=="outside"&&f!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ka,this.setTextGuideLine(h)),b3(this,w3(o),{stroke:u,opacity:Hs(s.get(["lineStyle","opacity"]),c,1)})}},t}(wa),OLe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var f=new wa({shape:Ple(r,a)});f.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}o.diff(s).add(function(h){var p=new $Le(o,h,u);o.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var v=s.getItemGraphicEl(p);v.updateData(o,h,u),v.off("click"),l.add(v),o.setItemGraphicEl(h,v)}).remove(function(h){var p=s.getItemGraphicEl(h);wy(p,r,h)}).execute(),RLe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Ft);const zLe=OLe;function Zv(e,t,r){t=te(t)&&{coordDimensions:t}||Q({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=_x(n,t).dimensions,i=new qn(a,e);return i.initData(n,r),i}var FLe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const Nx=FLe;var BLe=at(),jLe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Nx(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Zv(this,{coordDimensions:["value"],encodeDefaulter:Oe(ZO,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=BLe(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=eAe(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){yf(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,
607stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Zt);const VLe=jLe;function ULe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function GLe(e){e.registerChartView(zLe),e.registerSeriesModel(VLe),Zoe("pie",e.registerAction),e.registerLayout(Oe(MLe,"pie")),e.registerProcessor(Ex("pie")),e.registerProcessor(ULe("pie"))}var HLe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return xl(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Zt);const WLe=HLe;var Dle=4,qLe=function(){function e(){}return e}(),YLe=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new qLe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&i[0]<Dle,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<a.length;){var f=a[d++],h=a[d++];isNaN(f)||isNaN(h)||c&&!c.contain(f,h)||(s.x=f-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,a=r.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(r>=d&&n>=f&&r<=d+s&&n<=f+l)return u}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f<a.length;){var h=a[f++],p=a[f++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),d=Math.max(p,d)}r=this._rect=new We(l-o/2,u-s/2,c-l+o,d-u+s)}return r},t}(Je),KLe=function(){function e(){this.group=new Me}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;r=new Float32Array(r.buffer,i,a)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var a=this._newAdded[0],i=r.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new YLe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;n=n||{};var i=r.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Sr(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Dle;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=$e(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var d=t.hoverDataIdx;d>
607=0&&(u.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const ZLe=KLe;var XLe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.updateData(i,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateSymbolDraw(i,r);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,a){var i=r.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ax("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(r,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new ZLe:new Tx,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ft);const JLe=XLe;var QLe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(it);const eRe=QLe;var iL=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",wr).models[0]},t.type="cartesian2dAxis",t}(it);kr(iL,kx);var Lle={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},tRe=He({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Lle),T3=He({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Lle),rRe=He({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},T3),nRe=Ce({logBase:10},T3);const Rle={category:tRe,value:T3,time:rRe,log:nRe};var aRe={value:1,category:1,time:1,log:1};function ov(e,t,r,n){D(aRe,function(a,i){var o=He(He({},Rle[i],!0),n,!0),s=function(l){K(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=ky(this),h=f?Gv(c):{},p=d.getTheme();He(c,p.get(i+"Axis")),He(c,this.getDefaultOption()),c.type=N9(c),f&&Zu(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=JD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",N9)}function N9(e){return e.type||(e.data?"category":"value")}var iRe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return re(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Et(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const oRe=iRe;var oL=["x","y"];function I9(e){return e.type==="interval"||e.type==="time"}var sRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=oL,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!I9(r)||!I9(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=Rv([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");
607return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new We(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return sn(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return sn(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1]),i=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-a,s=Math.max(n[0],n[1])-i;return new We(a,i,o,s)},t}(oRe),lRe=function(e){K(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(bo);const uRe=lRe;function sL(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(v,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Zr(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-g:g,i.z2=1,i}function P9(e){return e.get("coordinateSystem")==="cartesian2d"}function M9(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,wr).models[0];t[n]=i}),t}var aN=Math.log;function $le(e,t,r){var n=Ju.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=jse(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if(e.type==="log"){var f=aN(e.base);u=[aN(u[0])/f,aN(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=n.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],m=u[1];if(c&&d)p=(m-v)/o;else if(c)for(m=u[0]+p*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)p=GE(p),m=u[0]+p*o;else if(d)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=GE(p),v=u[1]-p*o;else{var g=e.getTicks().length-1;g>o&&(p=GE(p));var x=p*o;m=Math.ceil(u[1]/p)*p,v=cr(m-x),v<0&&u[0]>=0?(v=0,m=cr(x)):m>0&&u[1]<=0&&(m=0,v=-cr(x))}var b=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;n.setExtent.call(e,v+p*b,m+p*_),n.setInterval.call(e,p),(b||_)&&n.setNiceExtent.call(e,v+p,m-p)}var cRe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=oL,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=tt(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,v=h.scale;QD(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(av(v,p),QD(v)&&(s=h))}c.length&&(s||(s=c.pop(),av(s.scale,s.model)),D(c,function(m){$le(m.scale,m.model,s.scale)}
607))}}a(n.x),a(n.y);var i={};D(n.x,function(o){D9(n,"y",o,i)}),D(n.y,function(o){D9(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Rr(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=kMe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),dRe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Te(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",wr).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",wr).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Ke(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(c,d){D(s.y,function(f,h){var p="x"+d+"y"+h,v=new sRe(p);v.master=a,v.model=t,a._coordsMap[p]=v,a._coordsList.push(v),v.addAxis(c),v.addAxis(f)})});function u(c){return function(d,f){if(iN(d,t)){var h=d.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new uRe(c,MC(d),[0,0],d.get("type"),h),v=p.type==="category";p.onBand=v&&d.get("boundaryGap"),p.inverse=d.get("inverse"),d.axis=p,p.model=d,p.grid=i,p.index=f,i._axesList.push(p),s[c][f]=p,l[c]++}}}},e.prototype._updateScale=function(t,r){D(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(P9(a)){var i=M9(a),o=i.xAxisModel,s=i.yAxisModel;if(!iN(o,r)||!iN(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),d=l.getAxis("y");n(u,c),n(u,d)}},this);function n(a,i){D(b2(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return D(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Ke(r,i)<0&&r.push(i),Ke(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(P9(a)){var i=M9(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=oL,e}();function iN(e,t){return e.getCoordSysModel()===t}function D9(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)L9(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&L9(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(d){return d.dim+"_"+d.index}}function L9(e){return e&&e.type!=="category"&&e.type!=="time"&&SMe(e)}function dRe(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const fRe=cRe;var vu=Math.PI,Qd=function(){function e(t,r){this.group=new Me,this.opt=r,this.axisModel=t,Ce(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Me({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!R9[t]},e.prototype.add=function(t){R9[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=Lae(r-t),i,o;return n2(a)?(o=n>0?"top":"bottom",i="center"):n2(a-vu)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<vu?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}
607(),R9={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(sn(s,s,o),sn(l,l,o));var c=Q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new Xr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});tv(d.shape,d.style.lineWidth),d.anid="line",r.add(d);var f=t.get(["axisLine","symbol"]);if(f!=null){var h=t.get(["axisLine","symbolSize"]);fe(f)&&(f=[f,f]),(fe(h)||lt(h))&&(h=[h,h]);var p=Kv(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],m=h[1];D([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,x){if(f[x]!=="none"&&f[x]!=null){var b=Sr(f[x],-v/2,-m/2,v,m,c.stroke,!0),_=g.r+g.offset,k=u?l:s;b.attr({rotation:g.rotate,x:k[0]+_*Math.cos(e.rotation),y:k[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var a=vRe(r,n,t,e),i=mRe(r,n,t,e);if(pRe(t,i,a),gRe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=ele(re(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));nle(o)}},axisName:function(e,t,r,n){var a=Zr(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,O9(i)?e.labelOffset+o*l:0],f,h=t.get("nameRotate");h!=null&&(h=h*vu/180);var p;O9(i)?f=Qd.innerTextLayout(e.rotation,h??e.rotation,o):(f=hRe(e.rotation,i,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),m=t.get("nameTruncate",!0)||{},g=m.ellipsis,x=Zr(e.nameTruncateMaxWidth,m.maxWidth,p),b=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Qd.isLabelSilent(t),style:$t(s,{text:a,font:v,overflow:"truncate",width:x,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(Bv({el:b,componentModel:t,itemName:a}),b.__fullText=a,b.anid="name",t.get("triggerEvent")){var _=Qd.makeAxisEventDataBase(t);_.targetType="axisName",_.name=a,$e(b).eventData=_}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function hRe(e,t,r,n){var a=Lae(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return n2(a-vu/2)?(o=l?"bottom":"top",i="center"):n2(a-vu*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<vu*1.5&&a>vu/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function pRe(e,t,r){if(!Vse(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],d=r[r.length-1],f=r[r.length-2];n===!1?(ti(i),ti(u)):$9(i,o)&&(n?(ti(o),ti(c)):(ti(i),ti(u))),a===!1?(ti(s),ti(d)):$9(l,s)&&(a?(ti(l),ti(f)):(ti(s),ti(d)))}}function ti(e){e&&(e.ignore=!0)}function $9(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=iC([]);return $f(a,a,-e.rotation),r.applyTransform(qs([],a,e.getLocalTransform())),n.applyTransform(qs([],a,t.getLocalTransform())),r.intersect(n)}}function O9(e){return e==="middle"||e==="center"}function Ole(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;
607o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(sn(o,o,t),sn(s,s,t));var c=new Xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});tv(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function vRe(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=Ole(u,t.transform,l,Ce(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)e.add(c[d]);return c}}function gRe(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=Ce(s.getLineStyle(),Ce(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=Ole(o[c],t.transform,l,u,"minorticks_"+c),f=0;f<d.length;f++)e.add(d[f])}}function mRe(e,t,r,n){var a=r.axis,i=Zr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Zr(n.labelRotate,o.get("rotate"))||0)*vu/180,c=Qd.innerTextLayout(n.rotation,u,n.labelDirection),d=r.getCategories&&r.getCategories(!0),f=[],h=Qd.isLabelSilent(r),p=r.get("triggerEvent");return D(l,function(v,m){var g=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,x=v.formattedLabel,b=v.rawLabel,_=o;if(d&&d[g]){var k=d[g];Te(k)&&k.textStyle&&(_=new Ot(k.textStyle,o,r.ecModel))}var S=_.getTextColor()||r.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(g),T=new st({x:C,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:$t(_,{text:x,align:_.getShallow("align",!0)||c.textAlign,verticalAlign:_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,fill:ke(S)?S(a.type==="category"?b:a.type==="value"?g+"":g,m):S})});if(T.anid="label_"+g,p){var E=Qd.makeAxisEventDataBase(r);E.targetType="axisLabel",E.value=b,E.tickIndex=m,a.type==="category"&&(E.dataIndex=g),$e(T).eventData=E}t.add(T),T.updateTransform(),f.push(T),e.add(T),T.decomposeTransform()}),f}}const ul=Qd;function yRe(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xRe(r,e,t),r.seriesInvolved&&wRe(r,e),r}function xRe(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=My(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",n);if(D(s.getAxes(),Oe(v,!1,null)),s.getTooltipAxes&&n&&d.get("show")){var f=d.get("trigger")==="axis",h=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(f||h)&&D(p.baseAxes,Oe(v,h?"cross":!0,f)),h&&D(p.otherAxes,Oe(v,"cross",!1))}function v(m,g,x){var b=x.model.getModel("axisPointer",a),_=b.get("show");if(!(!_||_==="auto"&&!m&&!lL(b))){g==null&&(g=b.get("triggerTooltip")),b=m?bRe(x,d,a,t,m,g):b;var k=b.get("snap"),S=My(x.model),C=g||k||x.type==="category",T=e.axesInfo[S]={key:S,axis:x,coordSys:s,axisPointerModel:b,triggerTooltip:g,involveSeries:C,snap:k,useHandle:lL(b),seriesModels:[],linkGroup:null};u[S]=T,e.seriesInvolved=e.seriesInvolved||C;var E=_Re(i,x);if(E!=null){var A=o[E]||(o[E]={axesInfo:{}});A.axesInfo[S]=T,A.mapper=i[E].mapper,T.linkGroup=A}}}})}function bRe(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(f){l[f]=Ie(o.get(f))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var d=l.lineStyle=o.get("crossStyle");d&&Ce(u,d.textStyle)}}return e.model.getModel("axisPointer",new Ot(l,r,n))}function wRe(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||D(e.coordSysAxesInfo[My(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function _Re(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(oN(i[n+"AxisId"],r.id)||oN(i[n+"AxisIndex"],r.componentIndex)||oN(i[n+"AxisName"],r.name))return a}}function oN(e,t){return e==="all"||te(e)&&Ke(e,t)>=0||e===t}function SRe(e){var t=A3(e);
607if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=lL(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function A3(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[My(e)]}function kRe(e){var t=A3(e);return t&&t.axisPointerModel}function lL(e){return!!e.get(["handle","show"])}function My(e){return e.type+"||"+e.id}var z9={},CRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&SRe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=kRe(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){z9[r]=n},t.getAxisPointerClass=function(r){return r&&z9[r]},t.type="axis",t}(ar);const Bf=CRe;var uL=at();function zle(e,t,r,n){var a=r.axis;
607if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,d=uL(e).splitAreaColors,f=Se(),h=0;if(d)for(var p=0;p<u.length;p++){var v=d.get(u[p].tickValue);if(v!=null){h=(v+(c-1)*p)%c;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=te(s)?s:[s];for(var p=1;p<u.length;p++){var x=a.toGlobalCoord(u[p].coord),b=void 0,_=void 0,k=void 0,S=void 0;a.isHorizontal()?(b=m,_=l.y,k=x-b,S=l.height,m=b+k):(b=l.x,_=m,k=l.width,S=x-_,m=_+S);var C=u[p-1].tickValue;C!=null&&f.set(C,h),t.add(new nt({anid:C!=null?"area_"+C:null,shape:{x:b,y:_,width:k,height:S},style:Ce({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%c}uL(e).splitAreaColors=f}}}function Fle(e){uL(e).splitAreaColors=null}var TRe=["axisLine","axisTickLabel","axisName"],ARe=["splitArea","splitLine","minorSplitLine"],Ble=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=sL(s,r),u=new ul(r,Q({handleAutoShown:function(d){for(var f=s.coordinateSystem.getCartesians(),h=0;h<f.length;h++)if(QD(f[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));D(TRe,u.add,u),this._axisGroup.add(u.getGroup()),D(ARe,function(d){r.get([d,"show"])&&ERe[d](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||vx(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){Fle(this)},t.type="cartesianAxis",t}(Bf),ERe={splitLine:function(e,t,r,n){var a=r.axis;
vendor: 5,737 bytes, line 607
607if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=te(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:i}),f=[],h=[],p=o.getLineStyle(),v=0;v<d.length;v++){var m=a.toGlobalCoord(d[v].coord);u?(f[0]=m,f[1]=l.y,h[0]=m,h[1]=l.y+l.height):(f[0]=l.x,f[1]=m,h[0]=l.x+l.width,h[1]=m);var g=c++%s.length,x=d[v].tickValue,b=new Xr({anid:x!=null?"line_"+d[v].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:Ce({stroke:s[g]},p),silent:!0});tv(b.shape,p.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],d=[],f=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var v=a.toGlobalCoord(u[h][p].coord);l?(c[0]=v,c[1]=s.y,d[0]=v,d[1]=s.y+s.height):(c[0]=s.x,c[1]=v,d[0]=s.x+s.width,d[1]=v);var m=new Xr({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:f,silent:!0});tv(m.shape,f.lineWidth),t.add(m)}},splitArea:function(e,t,r,n){zle(e,t,r,n)}},jle=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Ble),NRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=jle.type,r}return t.type="yAxis",t}(Ble),IRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new nt({shape:r.coordinateSystem.getRect(),style:Ce({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ar),F9={offset:0};function Vle(e){e.registerComponentView(IRe),e.registerComponentModel(eRe),e.registerCoordinateSystem("cartesian2d",fRe),ov(e,"x",iL,F9),ov(e,"y",iL,F9),e.registerComponentView(jle),e.registerComponentView(NRe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function PRe(e){Ze(Vle),e.registerSeriesModel(WLe),e.registerChartView(JLe),e.registerLayout(Ax("scatter"))}function MRe(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();D(i,function(o,s){r.each(r.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var c=a.dataToPoint(l,s);n[u][s]=B9(c)?c:j9(a)})}),r.each(function(o){var s=_Ce(n[o],function(l){return B9(l)})||j9(a);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function B9(e){return!isNaN(e[0])&&!isNaN(e[1])}function j9(e){return[e.cx,e.cy]}function DRe(e){var t=e.polar;if(t){te(t)||(t=[t]);var r=[];D(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],te(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}D(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var LRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(f,h){var p=f.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=bx(f.getItemVisual(h,"symbolSize")),m=Sr(p,-1,-1,2,2),g=f.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:g*Math.PI/180||0}),m}}function c(f,h,p,v,m,g){p.removeAll();for(var x=0;x<h.length-1;x++){var b=u(v,m);b&&(b.__dimIdx=x,f[x]?(b.setPosition(f[x]),mx[g?"initProps":"updateProps"](b,{x:h[x][0],y:h[x][1]},r,m)):b.setPosition(h[x]),p.add(b))}}function d(f){return re(f,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var p=new _a,v=new ka,m={shape:{points:h}};p.shape.points=d(h),v.shape.points=d(h),Wt(p,m,r,f),Wt(v,m,r,f);var g=new Me,x=new Me;g.add(v),g.add(p),g.add(x),c(v.shape.points,h,x,s,f,!0),s.setItemGraphicEl(f,g)}}).update(function(f,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),m=p.childAt(1),g=p.childAt(2),x={shape:{points:s.getItemLayout(f)}};x.shape.points&&(c(v.shape.points,x.shape.points,g,s,f,!1),go(m),go(v),ut(v,x,r),ut(m,x,r),s.setItemGraphicEl(f,p))}).remove(function(f){o.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var p=s.getItemModel(h),v=f.childAt(0),m=f.childAt(1),g=f.childAt(2),x=s.getItemVisual(h,"style"),b=x.fill;o.add(f),v.useStyle(Ce(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),cn(v,p,"lineStyle"),cn(m,p,"areaStyle");var _=p.getModel("areaStyle"),k=_.isEmpty()&&_.parentModel.isEmpty();m.ignore=k,D(["emphasis","select","blur"],function(T){var E=p.getModel([T,"areaStyle"]),A=E.isEmpty()&&E.parentModel.isEmpty();m.ensureState(T).ignore=A&&k}),m.useStyle(Ce(_.getAreaStyle(),{fill:b,opacity:.7,decal:x.decal}));var S=p.getModel("emphasis"),C=S.getModel("itemStyle").getItemStyle();g.eachChild(function(T){if(T instanceof hn){var E=T.style;T.useStyle(Q({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},x))}else T.useStyle(x),T.setColor(b),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=Ie(C);var N=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(N==null||isNaN(N))&&(N=""),dn(T,Ur(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:N,inheritColor:b,defaultOpacity:x.opacity})}),nr(f,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ft);const RRe=LRe;var $Re=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}
607return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Nx(ve(this.getData,this),ve(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return Zv(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=zoe(this,r);return Gr("section",{header:u,sortBlocks:!0,blocks:re(s,function(d){var f=i.get(i.mapDimension(d.dim),r);return Gr("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(re(a.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Zt);const ORe=$Re;var Wg=Rle.value;function Pb(e,t){return Ce({show:t},e)}var zRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),f=this.get("triggerEvent"),h=re(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=Ce({color:p.color},l));var m=He(Ie(p),{boundaryGap:r,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:v,triggerEvent:f},!1);if(fe(c)){var g=m.name;m.name=c.replace("{value}",g??"")}else ke(c)&&(m.name=c(m.name,m));var x=new Ot(m,null,this.ecModel);return kr(x,kx.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:He({lineStyle:{color:"#bbb"}},Wg.axisLine),axisLabel:Pb(Wg.axisLabel,!1),axisTick:Pb(Wg.axisTick,!1),splitLine:Pb(Wg.splitLine,!0),splitArea:Pb(Wg.splitArea,!0),indicator:[]},t}(it);const FRe=zRe;var BRe=["axisLine","axisTickLabel","axisName"],jRe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes(),i=re(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ul(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(BRe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=te(f)?f:[f],v=te(h)?h:[h],m=[],g=[];function x(M,$,V){var B=V%$.length;return M[B]=M[B]||[],B}if(i==="circle")for(var b=a[0].getTicksCoords(),_=n.cx,k=n.cy,S=0;S<b.length;S++){if(c){var C=x(m,p,S);m[C].push(new os({shape:{cx:_,cy:k,r:b[S].coord}}))}if(d&&S<b.length-1){var C=x(g,v,S);g[C].push(new pC({shape:{cx:_,cy:k,r0:b[S].coord,r:b[S+1].coord}}))}}else for(var T,E=re(a,function(M,$){var V=M.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),re(V,function(B){return n.coordToPoint(B.coord,$)})}),A=[],S=0;S<=T;S++){for(var N=[],P=0;P<a.length;P++)N.push(E[P][S]);if(N[0]&&N.push(N[0].slice()),c){var C=x(m,p,S);m[C].push(new ka({shape:{points:N}}))}if(d&&A){var C=x(g,v,S-1);g[C].push(new _a({shape:{points:N.concat(A)}}))}A=N.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();D(g,function(M,$){this.group.add(wi(M,{style:Ce({stroke:"none",fill:v[$%v.length]},R),silent:!0}))},this),D(m,function(M,$){this.group.add(wi(M,{style:Ce({fill:"none",stroke:p[$%p.length]},L),silent:!0}))},this)},t.type="radar",t}(ar);const VRe=jRe;var URe=function(e){K(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(bo);const GRe=URe;var HRe=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=re(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new GRe(o,new Ju);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(r*r+n*n);r/=a,n/=a;for(var i=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],d=Math.abs(i-c.angle);d<o&&(s=c,l=u,o=d)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight(),o=Math.min(a,i)/2;this.cx=le(n[0],a),this.cy=le(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(fe(s)||lt(s))&&(s=[0,s]),this.r0=le(s[0],o),this.r=le(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,a=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();D(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Ju;o.setExtent(0,i),o.setInterval(1),D(n,function(s,l){$le(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return null},e.prototype.convertFromPixel=function(t,r,n){return null},e.prototype.containPoint=function(t){return!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(a){var i=new e(a,t,r);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},e.dimensions=[],e}();const WRe=HRe;function qRe(e){e.registerCoordinateSystem("radar",WRe),e.registerComponentModel(FRe),e.registerComponentView(VRe),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function YRe(e){Ze(qRe),e.registerChartView(RRe),e.registerSeriesModel(ORe),e.registerLayout(MRe),e.registerProcessor(Ex("radar")),e.registerPreprocessor(DRe)}var V9="\0_ec_interaction_mutex";function KRe(e,t,r){var n=E3(e);n[t]=r}function ZRe(e,t,r){var n=E3(e),a=n[t];a===r&&(n[t]=null)}function U9(e,t){return!!E3(e)[t]}function E3(e){return e[V9]||(e[V9]={})}fs({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},mr);var XRe=function(e){K(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=ve(n._mousedownHandler,n),i=ve(n._mousemoveHandler,n),o=ve(n._mouseupHandler,n),s=ve(n._mousewheelHandler,n),l=ve(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ce(Ie(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!vj(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!T_("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||U9(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&al(r.event),Ule(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){vj(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=T_("zoomOnMouseWheel",r,this._opt),a=T_("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;sN(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);sN(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!U9(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;sN(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Di);function sN(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(al(n.event),Ule(e,t,r,n,a))}function Ule(e,t,r,n,a){a.isAvailableBehavior=ve(T_,null,r,n),e.trigger(t,a)}function T_(e,t,r){var n=r[e];return!e||n&&(!fe(n)||t.event[n+"Key"])}const Ix=XRe;function N3(e,t,r){var n=e.target;
607n.x+=t,n.y+=r,n.dirty()}function I3(e,t,r,n){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(r-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var JRe={axisPointer:1,tooltip:1,brush:1};function RC(e,t,r){var n=t.getComponentByElement(e.topTarget),a=n&&n.coordinateSystem;return n&&n!==r&&!JRe.hasOwnProperty(n.mainType)&&a&&a.model!==r}function Gle(e){if(fe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var lN,T2={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},G9=tt(T2),A2={"alignment-baseline":"textBaseline","stop-color":"stopColor"},H9=tt(A2),QRe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Gle(t);this._defsUsePending=[];var a=new Me;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ia(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;r$e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=$C(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Wle(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=a;a=new Me,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!r.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new nt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},e.prototype._parseNode=function(t,r,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!i){var c=lN[s];if(c&&ye(lN,s)){l=c.call(this,t,r);var d=t.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};n.push(f),s==="g"&&(u=f)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});r.add(l)}}var h=W9[s];if(h&&ye(W9,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new yy({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),e$e(n,r);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){lN={g:function(t,r){var n=new Me;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new nt;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new os;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Xr;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new FO;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n}
607,polygon:function(t,r){var n=t.getAttribute("points"),a;n&&(a=K9(n));var i=new _a({shape:{points:a||[]},silent:!0});return ri(r,i),Ia(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,r){var n=t.getAttribute("points"),a;n&&(a=K9(n));var i=new ka({shape:{points:a||[]},silent:!0});return ri(r,i),Ia(t,i,this._defsUsePending,!1,!1),i},image:function(t,r){var n=new hn;return ri(r,n),Ia(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Me;return ri(r,s),Ia(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Me;return ri(r,s),Ia(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",a=bie(n);return ri(r,a),Ia(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),W9={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new zv(t,r,n,a);return q9(e,i),Y9(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),a=new Die(t,r,n);return q9(e,a),Y9(e,a),a}};function q9(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Y9(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};Hle(r,i,i);var o=i.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}r=r.nextSibling}}function ri(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ce(t.__inheritedStyle,e.__inheritedStyle))}function K9(e){for(var t=$C(e),r=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);r.push([a,i])}return r}function Ia(e,t,r,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(i$e(e,t),Hle(e,o,s),n||o$e(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Z9(i,"fill",o.fill,r)),o.stroke!=null&&(i.style.stroke=Z9(i,"stroke",o.stroke,r)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=re($C(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function e$e(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var t$e=/^url\(\s*#(.*?)\)/;function Z9(e,t,r,n){var a=r&&r.match(t$e);if(a){var i=no(a[1]);n.push([e,t,i]);return}return r==="none"&&(r=null),r}function r$e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var n$e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $C(e){return e.match(n$e)||[]}var a$e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,uN=Math.PI/180;function i$e(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],a=null;r.replace(a$e,function(d,f,h){return n.push(f,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=$C(o);switch(a=a||Pi(),s){case"translate":rs(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":SO(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":$f(a,a,-parseFloat(l[0])*uN);break;case"skewX":var u=Math.tan(parseFloat(l[0])*uN);qs(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*uN);qs(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var X9=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Hle(e,t,r){var n=e.getAttribute("style");if(n){X9.lastIndex=0;for(var a;(a=X9.exec(n))!=null;){var i=a[1],o=ye(T2,i)?T2[i]:null;o&&(t[o]=a[2]);var s=ye(A2,i)?A2[i]:null;s&&(r[s]=a[2])}}}function o$e(e,t,r){for(var n=0;n<G9.length;n++){var a=G9[n],i=e.getAttribute(a);i!=null&&(t[T2[a]]=i)}for(var n=0;n<H9.length;n++){var a=H9[n],i=e.getAttribute(a);i!=null&&(r[A2[a]]=i)}}
607function Wle(e,t){var r=t.width/e.width,n=t.height/e.height,a=Math.min(r,n);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function s$e(e,t){var r=new QRe;return r.parse(e,t)}var l$e=Se(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),u$e=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=Se(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Gle(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=d$e(t.named),n=r.regions,a=r.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&s$e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,Zn(n!=null)}catch(m){throw new Error(`Invalid svg format 608`+m.message)}var a=new Me;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,f=void 0;if(i!=null?(u=0,d=i):s&&(u=s.x,d=s.width),o!=null?(c=0,f=o):s&&(c=s.y,f=s.height),u==null||c==null){var h=n.getBoundingRect();u==null&&(u=h.x,d=h.width),c==null&&(c=h.y,f=h.height)}l=this._boundingRect=new We(u,c,d,f)}if(s){var p=Wle(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}a.setClipPath(new nt({shape:l.plain()}));var v=[];return D(r.named,function(m){l$e.get(m.svgNodeTagLower)!=null&&(v.push(m),c$e(m.el))}),{root:a,boundingRect:l,named:v}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function c$e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function d$e(e){var t=[],r=Se();return D(e,function(n){if(n.namedFrom==null){var a=new IMe(n.name,n.el);t.push(a),r.set(n.name,a)}}),{regions:t,regionsMap:r}}var cL=[126,25],J9="åæµ·è¯¸å²",ld=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var qc=0;qc<ld.length;qc++)for(var fh=0;fh<ld[qc].length;fh++)ld[qc][fh][0]/=10.5,ld[qc][fh][1]/=-10.5/.75,ld[qc][fh][0]+=cL[0],ld[qc][fh][1]+=cL[1];function f$e(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===J9)return;t.push(new Gse(J9,re(ld,function(n){return{type:"polygon",exterior:n}}),cL))}}var h$e={åæµ·è¯¸å²:[32,80],广ä¸:[0,-10],馿¸¯:[10,5],æ¾³é¨:[-10,10],天津:[5,5]};function p$e(e,t){if(e==="china"){var r=h$e[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var v$e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function g$e(e,t){e==="china"&&t.name==="å°æ¹¾"&&t.geometries.push({type:"polygon",exterior:v$e[0]})}var m$e="name",y$e=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=Se(),this._mapName=t,this._specialAreas=n,this._geoJSON=b$e(r)}return e.prototype.load=function(t,r){r=r||m$e;var n=this._parsedMap.get(r);if(!n){var a=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:a,boundingRect:x$e(a)})}var i=Se(),o=[];return D(n.regions,function(s){var l=s.name;t&&ye(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new We(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,a;try{a=n?MMe(n,t):[]}catch(i){throw new Error(`Invalid geoJson format 609`+i.message)}return f$e(r,a),D(a,function(i){var o=i.name;p$e(r,i),g$e(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function x$e(e){for(var t,r=0;r<e.length;
609r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function b$e(e){return fe(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var qg=Se();const cl={registerMap:function(e,t,r){if(t.svg){var n=new u$e(e,t.svg);qg.set(e,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?r=t.specialAreas:a=t;var n=new y$e(e,a,r);qg.set(e,n)}},getGeoResource:function(e){return qg.get(e)},getMapForUser:function(e){var t=qg.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=qg.get(e);if(n)return n.load(t,r)}};var P3=["rect","circle","line","ellipse","polygon","polyline","path"],w$e=Se(P3),_$e=Se(P3.concat(["g"])),S$e=Se(P3.concat(["g"])),qle=at();function Mb(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function Q9(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var k$e=function(){function e(t){var r=new Me;this.uid=Vv("ec_map_draw"),this._controller=new Ix(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Me),r.add(this._svgGroup=new Me)}return e.prototype.draw=function(t,r,n,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(g){!s&&g.getHostGeoModel()===t&&(s=g.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),f=d.raw,h=d.roam,p=!u.childAt(0)||i;p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):ut(c,h,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,a)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=Se(),n=Se(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],v=!u&&l&&l.project,m=0;m<h.length;++m){var g=c(h[m],v);g&&p.push(g)}return p}function f(h){return{shape:{points:d(h)}}}a.removeAll(),D(t.geo.regions,function(h){var p=h.name,v=r.get(p),m=n.get(p)||{},g=m.dataIdx,x=m.regionModel;v||(v=r.set(p,new Me),a.add(v),g=s?s.indexOfName(p):null,x=t.isGeo?o.getRegionModel(p):s?s.getItemModel(g):null,n.set(p,{dataIdx:g,regionModel:x}));var b=[],_=[];D(h.geometries,function(C){if(C.type==="polygon"){var T=[C.exterior].concat(C.interiors||[]);u&&(T=iU(T,u)),D(T,function(A){b.push(new _a(f(A)))})}else{var E=C.points;u&&(E=iU(E,u,!0)),D(E,function(A){_.push(new ka(f(A)))})}});var k=c(h.getCenter(),l&&l.project);function S(C,T){if(C.length){var E=new jO({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});v.add(E),eU(t,E,g,x),tU(t,E,p,x,o,g,k),T&&(Q9(E),D(E.states,Q9))}}S(b),S(_,!0)}),r.each(function(h,p){var v=n.get(p),m=v.dataIdx,g=v.regionModel;rU(t,h,p,g,o,m),nU(t,h,p,g,o),aU(t,h,p,g,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var a=this._svgDispatcherMap=Se(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,d=o.el,f=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(w$e.get(c)!=null&&d instanceof Mi&&eU(t,d,f,h),d instanceof Mi&&(d.culling=!0),d.z2EmphasisLift=0,!o.namedFrom&&(S$e.get(c)!=null&&tU(t,d,s,h,l,f,null),rU(t,d,s,h,l,f),nU(t,d,s,h,l),_$e.get(c)!=null)){var p=aU(t,d,s,h,l);p==="self"&&(i=!0);var v=a.get(s)||a.set(s,[]);v.push(d)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){wf(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=cl.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=cl.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;
609o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,N3(o,u.dx,u.dy),n.dispatchAction(Q(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,I3(o,u.scale,u.originX,u.originY),n.dispatchAction(Q(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,d){return a.containPoint([c,d])&&!RC(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=qle(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,a){var i=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){i._mouseDownFlag=!0}),r.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function eU(e,t,r,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Mb(a),u=Mb(i),c=Mb(s),d=Mb(o),f=e.data;if(f){var h=f.getItemVisual(r,"style"),p=f.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=nv(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,wf(t)}function tU(e,t,r,n,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var d=l?r:i,f=void 0;(!s||i>=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;dn(t,Ur(n),{labelFetcher:f,labelDataIndex:d,defaultText:r},h);var p=t.getTextContent();if(p&&(qle(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function rU(e,t,r,n,a,i){e.data?e.data.setItemGraphicEl(i,t):$e(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:r,region:n&&n.option||{}}}function nU(e,t,r,n,a){e.data||Bv({el:t,componentModel:a,itemName:r,itemTooltipOption:n.get("tooltip")})}function aU(e,t,r,n,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return nr(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&NEe(t,a,r),o}function iU(e,t,r){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),D(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}const Yle=k$e;var C$e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new Yle(a);o.add(s.group),s.draw(r,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,a){var i=r.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,f=new os({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:Ov+1)});if(!d){var h=r.mainSeries.getData(),p=i.getName(l),v=h.indexOfName(p),m=i.getItemModel(l),g=m.getModel("label"),x=h.getItemGraphicEl(v);dn(f,Ur(m),{labelFetcher:{getFormattedLabel:function(b,_){return r.getFormattedLabel(v,_)}},defaultText:p}),f.disableLabelAnimation=!0,g.get("position")||f.setTextConfig({position:"bottom"}),x.onHoverStateChange=function(b){i2(f,b)}}o.add(f)}}})},t.type="map",t}(Ft);const T$e=C$e;var A$e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=Zv(this,{coordDimensions:["value"],encodeDefaulter:Oe(ZO,this)}),a=Se(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=cl.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(c){var d=c.name;a.get(d)||i.push(d)}),n.appendValues([],i),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData(),o=this.getRawValue(r),s=i.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),f=i.mapDimension("value");isNaN(l[c].originalData.get(f,d))||u.push(l[c].name)}return Gr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Gr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",a=Sr(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return a.setStyle(r.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Zt);const E$e=A$e;function N$e(e,t){var r={};return D(e,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);r[o]=r[o]||[],isNaN(a)||r[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(n,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=r[i].length,c=0;c<u;c++)s=Math.min(s,r[i][c]),l=Math.max(l,r[i][c]),o+=r[i][c];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=o/u:d=o,u===0?NaN:d})}function I$e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),a=n?"o"+n.id:"i"+r.getMapType();(t[a]=t[a]||[]).push(r)}),D(t,function(r,n){for(var a=N$e(re(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),i=0;i<r.length;i++)r[i].originalData=r[i].getData();for(var i=0;i<r.length;i++)r[i].seriesGroup=r,r[i].needsDrawMap=i===0&&!r[i].getHostGeoModel(),r[i].setData(a.cloneShallow()),r[i].mainSeries=r[0]})}function P$e(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var a={};D(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),f=s.getRegion(d);if(!(!f||isNaN(u))){var h=a[d]||0,p=s.dataToPoint(f.getCenter());a[d]=h+1,l.setItemLayout(c,{point:p,offset:h})}})});var i=r.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[n]=!0}})}var oU=sn,M$e=function(e){K(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new zs,n._rawTransformable=new zs,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,a,i){return this._rect=new We(r,n,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,a,i){this._transformTo(r,n,a,i),this._viewRect=ne
vendor: 5,286 bytes, line 609
609w We(r,n,a,i)},t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new We(r,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[le(r[0],n.getWidth()),le(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,a=r.y+r.height/2;return[n,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=sn([],i,r),a=sn([],a,r),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),_O(this.transform||(this.transform=[]),n.transform||Pi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Rv(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,a=new zs;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?oU(a,r,i):Bn(a,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?oU([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,a){var i=sU(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=sU(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(zs);function sU(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Px=M$e;var D$e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Kle=["lng","lat"],Zle=function(e){K(t,e);function t(r,n,a){var i=e.call(this,r)||this;i.dimensions=Kle,i.type="geo",i._nameCoordMap=Se(),i.map=n;var o=a.projection,s=cl.load(n,a.nameMap,a.nameProperty),l=cl.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=D$e[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var d;if(o)for(var f=0;f<u.length;f++){var h=u[f].getBoundingRect(o);d=d||h.clone(),d.union(h)}else d=s.boundingRect;return i.setBoundingRect(d.x,d.y,d.width,d.height),i.aspectScale=o?1:Ge(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(r,n,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new We(r,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(r))return n[a]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,a){if(fe(r)&&(r=this.getGeoCoord(r)),r){var i=this.projection;return i&&(r=i.project(r)),r&&this.projectedToPoint(r,n,a)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,a){return e.prototype.dataToPoint.call(this,r,n,a)},t.prototype.convertToPixel=function(r,n,a){var i=lU(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(r,n,a){var i=lU(n);return i===this?i.pointToData(a):null},t}(Px);kr(Zle,Px);function lU(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",wr).models[0]||{}).coordinateSystem:null}const uU=Zle;function cU(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],a=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var c=function(S,C,T,E){for(var A=T-S,N=E-C,P=0;P<=100;P++){var L=P/100,R=i.project([S+A*L,C+N*L]);cu(n,n,R),du(a,a,R)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}
609this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var d=this.getBoundingRect(),f=e.get("layoutCenter"),h=e.get("layoutSize"),p=t.getWidth(),v=t.getHeight(),m=d.width/d.height*this.aspectScale,g=!1,x,b;f&&h&&(x=[le(f[0],p),le(f[1],v)],b=le(h,Math.min(p,v)),!isNaN(x[0])&&!isNaN(x[1])&&!isNaN(b)&&(g=!0));var _;if(g)_={},m>1?(_.width=b,_.height=b/m):(_.height=b,_.width=b*m),_.y=x[1]-_.height/2,_.x=x[0]-_.width/2;else{var k=e.getBoxLayoutParams();k.aspect=m,_=Rr(k,{width:p,height:v})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function L$e(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var R$e=function(){function e(){this.dimensions=Kle}return e.prototype.create=function(t,r){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new uU(l+s,l,Q({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=cU,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=re(o,function(c){return c.get("nameMap")}),u=new uU(s,s,Q({nameMap:yO(l)},a(o[0])));u.zoomLimit=Zr.apply(null,re(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=cU,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,L$e(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,a){for(var i=(t||[]).slice(),o=Se(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=cl.load(r,n,a);return D(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),$$e=new R$e;const Xle=$$e;var O$e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=cl.getGeoResource(r.map);if(i&&i.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,a),yf(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=Xle.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=ts(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ot(o,r,r.ecModel)),o.selected&&(a[s]=!0)),i},Se()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Ot(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var a=this.getRegionModel(r),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:r};if(ke(i))return o.status=n,i(o);if(fe(i))return i.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(it);const z$e=O$e;function dU(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function M3(e,t,r,n){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(dU(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=c,e.y-=d,e.updateTransform(),e.setCenter(dU(e,s),n),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var F$e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;
609return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,a,i){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Yle(a));var o=this._mapDraw;o.draw(r,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,a)},t.prototype._handleRegionClick=function(r){var n;Md(r.target,function(a){return(n=$e(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=$e(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(ar);const B$e=F$e;function j$e(e,t,r){cl.registerMap(e,t,r)}function Jle(e){e.registerCoordinateSystem("geo",Xle),e.registerComponentModel(z$e),e.registerComponentView(B$e),e.registerImpl("registerMap",j$e),e.registerImpl("getMap",function(r){return cl.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[r](a.name);var u=l.coordinateSystem;D(u.regions,function(d){o[d.name]=l.isSelected(d.name)||!1});var c=[];D(o,function(d,f){o[f]&&c.push(f)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,a){var i=r.componentType||"series";n.eachComponent({mainType:i,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=M3(s,r,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function V$e(e){Ze(Jle),e.registerChartView(T$e),e.registerSeriesModel(E$e),e.registerLayout(P$e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,I$e),Zoe("map",e.registerAction)}function U$e(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,a;n=r.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function G$e(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){q$e(e);var i=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Y$e(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function H$e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function fU(e){return arguments.length?e:X$e}function R0(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function W$e(e,t){return Rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function q$e(e){for(var t=e.children,r=t.length,n=0,a=0;--r>=0;){var i=t[r];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function Y$e(e,t,r,n){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=cN(s),i=dN(i),s&&i;){a=cN(a),o=dN(o),a.hierNode.ancestor=e;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+n(s,i);f>0&&(Z$e(K$e(s,e,r),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}
609s&&!cN(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!dN(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,r=e)}return r}function cN(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function dN(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function K$e(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Z$e(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function X$e(e,t){return e.parentNode===t.parentNode?1:2}var J$e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Q$e=function(e){K(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new J$e},t.prototype.buildPath=function(r,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=le(n.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var v=a[p];r.moveTo(v[0],v[1]),h[c]=v[c],r.lineTo(h[0],h[1])}},t}(Je),e4e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Me,r}return t.prototype.init=function(r,n){this._controller=new Ix(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,a){var i=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,a),this._updateController(r,n,a);var u=this._data;i.diff(u).add(function(c){hU(i,c)&&pU(i,c,null,s,r)}).update(function(c,d){var f=u.getItemGraphicEl(d);if(!hU(i,c)){f&&gU(u,d,f,s,r);return}pU(i,c,f,s,r)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&gU(u,c,d,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:d})})}),this._data=i},t.prototype._updateViewCoordSys=function(r,n){var a=r.getData(),i=[];a.each(function(d){var f=a.getItemLayout(d);f&&!isNaN(f.x)&&!isNaN(f.y)&&i.push([+f.x,+f.y])});var o=[],s=[];dC(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new Px;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!RC(u,a,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){N3(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){I3(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(r),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),a=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Ft);function hU(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function pU(e,t,r,n,a){var i=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,d=o.parentNode===c?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),h=d.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:h,v=o.getLayout();i?(r=new Cx(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=p.x,r.y=p.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=v.rawX,r.__radialRawY=v.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,ut(r,{x:v.x,y:v.y},a);var m=r.getSymbolPath();if(a.get("layout")==="radial"){var g=c.children[0],x=g.getLayout(),b=g.children.length,_=void 0,k=void 0;if(v.x===x.x&&o.isExpand===!0&&g.children.length){var S={x:(g.children[0].getLayout().x+g.children[b-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[b-1].getLayout().y)/2};_=Math.atan2(S.y-x.y,S.x-x.x),_<0&&(_=Math.PI*2+_),k=S.x<x.x,k&&(_=_-Math.PI)}else _=Math.atan2(v.y-x.y,v.x-x.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(k=v.x<x.x,k&&(_=_-Math.PI)):(k=v.x>x.x,k||(_=_-Math.PI));var C=k?"left":"right",T=s.getModel("label"),E=T.get("rotate"),A=E*(Math.PI/180),N=m.getTextContent();N&&(m.setTextConfig({position:T.get("position")||C,rotation:E==null?-_:A,origin:"center"}),N.setStyle("verticalAlign","middle"))}
609var P=s.get(["emphasis","focus"]),L=P==="relative"?KS(o.getAncestorsIndices(),o.getDescendantIndices()):P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():null;L&&($e(r).focus=L),t4e(a,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(R){if(R!=="blur"){var M=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);M&&M.hoverState===px||i2(r.__edge,R)}})}function t4e(e,t,r,n,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new vC({shape:dL(c,d,f,a,a)})),ut(v,{shape:dL(c,d,f,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,g=[],x=0;x<m.length;x++){var b=m[x].getLayout();g.push([b.x,b.y])}v||(v=n.__edge=new Q$e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:h}})),ut(v,{shape:{parentPoint:[o.x,o.y],childPoints:g}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(Ce({strokeNoScale:!0,fill:null},p)),cn(v,l,"lineStyle"),wf(v),s.add(v))}function vU(e,t,r,n,a){var i=t.tree.root,o=Qle(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,f=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),h=n.get("edgeShape"),p=n.get("layout"),v=n.get("orient"),m=n.get(["lineStyle","curveness"]);f&&(h==="curve"?Ku(f,{shape:dL(p,v,m,l,l),style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&Ku(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(f)},removeOpt:a}))}}function Qle(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function gU(e,t,r,n,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Qle(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Ku(r,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){vU(u,e,n,a,l)}),vU(i,e,n,a,l)}function dL(e,t,r,n,a){var i,o,s,l,u,c,d,f;if(e==="radial"){u=n.rawX,d=n.rawY,c=a.rawX,f=a.rawY;var h=R0(u,d),p=R0(u,d+(f-d)*r),v=R0(c,f+(d-f)*r),m=R0(c,f);return{x1:h.x||0,y1:h.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=n.x,d=n.y,c=a.x,f=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*r,o=d,s=c+(u-c)*r,l=f),(t==="TB"||t==="BT")&&(i=u,o=d+(f-d)*r,s=c,l=f+(d-f)*r);return{x1:u,y1:d,x2:c,y2:f,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const r4e=e4e;var Ei=at();function eue(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,tue(t,r,e),D(r,function(n){D(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Oe(n4e,e))})}),t.wrapMethod("cloneShallow",Oe(i4e,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Oe(a4e,e))}),Zn(r[t.dataType]===t)}function n4e(e,t){if(l4e(this)){var r=Q({},Ei(this).datas);r[this.dataType]=t,tue(t,r,e)}else D3(t,this.dataType,Ei(this).mainData,e);return t}function a4e(e,t){return e.struct&&e.struct.update(),t}function i4e(e,t){return D(Ei(t).datas,function(r,n){r!==t&&D3(r.cloneShallow(),n,t,e)}),t}function o4e(e){var t=Ei(this).mainData;return e==null||t==null?t:Ei(t).datas[e]}function s4e(){var e=Ei(this).mainData;return e==null?[{data:e}]:re(tt(Ei(e).datas),function(t){return{type:t,data:Ei(e).datas[t]}})}function l4e(e){return Ei(e).mainData===e}function tue(e,t,r){Ei(e).datas={},D(t,function(n,a){D3(n,a,e,r)})}function D3(e,t,r,n){Ei(r).datas[t]=e,Ei(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=o4e,e.getLinkedDataAll=s4e}var u4e=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){ke(t)&&(n=r,r=t,t=null),t=t||{},fe(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,r,n);a==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>r&&(r=a.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,a=n.length;r<a;r++){var i=n[r].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),c4e=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,a=r.length;n<a;n++)r[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var a=new e(r),i=[],o=1;s(t);function s(c,d){var f=c.value;o=Math.max(o,te(f)?f.length:1),i.push(c);var h=new u4e(Mr(c.name,""),a);d?d4e(h,d):a.root=h,a._nodes.push(h);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],h)}a.root.updateDepthAndHeight(0);var l=_x(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new qn(l,r);return u.initData(i),n&&n(u),eue({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function d4e(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}const L3=c4e;function Dy(e,t,r){if(e&&Ke(t,e.type)>=0){var n=r.getData().tree.root,a=e.targetNode;
609if(fe(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function rue(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function R3(e,t){var r=rue(e);return Ke(r,t)>=0}function OC(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var f4e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},a=r.leaves||{},i=new Ot(a,this,this.ecModel),o=L3.createTree(n,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Gr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=OC(a,this),n.collapsed=!a.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Zt);const h4e=f4e;function p4e(e,t,r){for(var n=[e],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,r)}function Yg(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)r.push(a[i])}}function v4e(e,t){e.eachSeriesByType("tree",function(r){g4e(r,t)})}function g4e(e,t){var r=W$e(e,t);e.layoutInfo=r;var n=e.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(r.height,r.width)/2,o=fU(function(b,_){return(b.parentNode===_.parentNode?1:2)/b.depth})):(a=r.width,i=r.height,o=fU());var s=e.getData().tree.root,l=s.children[0];if(l){U$e(s),p4e(l,G$e,o),s.hierNode.modifier=-l.hierNode.prelim,Yg(l,H$e);var u=l,c=l,d=l;Yg(l,function(b){var _=b.getLayout().x;_<u.getLayout().x&&(u=b),_>c.getLayout().x&&(c=b),b.depth>d.depth&&(d=b)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,v=0,m=0,g=0;if(n==="radial")p=a/(c.getLayout().x+f+h),v=i/(d.depth-1||1),Yg(l,function(b){m=(b.getLayout().x+h)*p,g=(b.depth-1)*v;var _=R0(m,g);b.setLayout({x:_.x,y:_.y,rawX:m,rawY:g},!0)});else{var x=e.getOrient();x==="RL"||x==="LR"?(v=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),Yg(l,function(b){g=(b.getLayout().x+h)*v,m=x==="LR"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:m,y:g},!0)})):(x==="TB"||x==="BT")&&(p=a/(c.getLayout().x+f+h),v=i/(d.depth-1||1),Yg(l,function(b){m=(b.getLayout().x+h)*p,g=x==="TB"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:m,y:g},!0)}))}}}function m4e(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(a.dataIndex,"style");Q(s,o)})})}function y4e(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=M3(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function x4e(e){e.registerChartView(r4e),e.registerSeriesModel(h4e),e.registerLayout(v4e),e.registerVisual(m4e),y4e(e)}var mU=["treemapZoomToNode","treemapRender","treemapMove"];function b4e(e){for(var t=0;t<mU.length;t++)e.registerAction({type:mU[t],update:"updateView"},mr);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Dy(r,s,i);if(l){var u=i.getViewRoot();u&&(r.direction=R3(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function nue(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(a){for(var i=a;i&&i.depth>
6091;)i=i.parentNode;var o=BD(e.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var w4e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};aue(a);var i=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ot({itemStyle:o},this,n);i=r.levels=_4e(i,n);var l=re(i||[],function(d){return new Ot(d,s,n)},this),u=L3.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return f.parentModel=v||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Gr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=OC(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Q(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Se(),this._idIndexMapCount=0);var a=n.get(r);return a==null&&n.set(r,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){nue(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"â¶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Zt);function aue(e){var t=0;D(e.children,function(n){aue(n);var a=n.value;te(a)&&(a=a[0]),t+=a});var r=e.value;te(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),te(e.value)?e.value[0]=r:e.value=r}function _4e(e,t){var r=Pt(t.get("color")),n=Pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var a,i;D(e,function(s){var l=new Ot(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=r.slice()),!i&&n&&(o.decal=n.slice()),e}}const S4e=w4e;var k4e=8,yU=8,fN=5,C4e=function(){function e(t){this.group=new Me,t.add(this.group)}return e.prototype.render=function(t,r,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,d,u),this._renderContent(t,d,s,l,u,c,a),kC(o,d.pos,d.box)}},e.prototype._prepare=function(t,r,n){for(var a=t;a;a=a.parentNode){var i=Mr(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+k4e*2,r.emptyItemWidth);r.totalWidth+=s+yU,r.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,r,n,a,i,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),d=zNe(r.pos,r.box),f=r.totalWidth,h=r.renderList,p=a.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var m=h[v],g=m.node,x=m.width,b=m.text;f>d.width&&(f-=x-u,x=u,b=null);var _=new _a({shape:{points:T4e(l,0,x,c,v===h.length-1,v===0)},style:Ce(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:$t(i,{text:b})}),textConfig:{position:"inside"}
609,z2:Ov*1e4,onclick:Oe(s,g)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=$t(o,{text:b}),_.ensureState("emphasis").style=p,nr(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),A4e(_,t,g),l+=x+yU}},e.prototype.remove=function(){this.group.removeAll()},e}();function T4e(e,t,r,n,a,i){var o=[[a?e:e-fN,t],[e+r,t],[e+r,t+n],[a?e:e-fN,t+n]];return!i&&o.splice(2,0,[e+r+fN,t+n/2]),!a&&o.push([e,t+n/2]),o}function A4e(e,t,r){$e(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&OC(r,t)}}const E4e=C4e;var N4e=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function I4e(){return new N4e}var fL=Me,xU=nt,bU=3,wU="label",_U="upperLabel",P4e=Ov*10,M4e=Ov*2,D4e=Ov*3,ud=bf([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),SU=function(e){var t=ud(e);return t.stroke=t.fill=t.lineWidth=null,t},E2=at(),L4e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=Kg(),r}return t.prototype.render=function(r,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ke(o,r)<0)){this.seriesModel=r,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Dy(i,s,r),u=i&&i.type,c=r.layoutInfo,d=!this._oldTree,f=this._storage,h=u==="treemapRootToNode"&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),v=r.get("animation"),m=this._doRender(p,r,h);v&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,m,r,h):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(r,a,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new fL,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,a){var i=n.getData().tree,o=this._oldTree,s=Kg(),l=Kg(),u=this._storage,c=[];function d(m,g,x,b){return R4e(n,l,u,a,s,c,m,g,x,b)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],r,i===o||!o,0);var f=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:v};function h(m,g,x,b,_){b?(g=m,D(m,function(C,T){!C.isRemoved()&&S(T,T)})):new ll(g,m,k,k).add(S).update(S).remove(Oe(S,null)).execute();function k(C){return C.getId()}function S(C,T){var E=C!=null?m[C]:null,A=T!=null?g[T]:null,N=d(E,A,x,_);N&&h(E&&E.viewChildren||[],A&&A.viewChildren||[],N,b,_+1)}}function p(m){var g=Kg();return m&&D(m,function(x,b){var _=g[b];D(x,function(k){k&&(_.push(k),E2(k).willDelete=!0)})}),g}function v(){D(f,function(m){D(m,function(g){g.parent&&g.parent.remove(g)})}),D(c,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(r,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ke(o)?0:o)||0,u=(ke(s)?null:s)||"cubicOut",c=I4e();
609D(n.willDeleteEls,function(d,f){D(d,function(h,p){if(!h.invisible){var v=h.parent,m,g=E2(v);if(i&&i.direction==="drillDown")m=v===i.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var x=0,b=0;g.willDelete||(x=g.nodeWidth/2,b=g.nodeHeight/2),m=f==="nodeGroup"?{x,y:b,style:{opacity:0}}:{shape:{x,y:b,width:0,height:0},style:{opacity:0}}}m&&c.add(h,m,l,0,u)}})}),D(this._storage,function(d,f){D(d,function(h,p){var v=n.lastsForAnimation[f][p],m={};v&&(h instanceof Me?v.oldX!=null&&(m.x=h.x,m.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(m.shape=Q({},h.shape),h.setShape(v.oldShape)),v.fadein?(h.setStyle("opacity",0),m.style={opacity:1}):h.style.opacity!==1&&(m.style={opacity:1})),c.add(h,m,l,0,u))})},this),this._state="animating",c.finished(ve(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller;n||(n=this._controller=new Ix(r.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",ve(this._onPan,this)),n.on("zoom",ve(this._onZoom,this)));var a=new We(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var r=this._controller;r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>bU||Math.abs(r.dy)>bU)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+r.dx,y:a.y+r.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(r){var n=r.originX,a=r.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new We(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=Pi();rs(u,u,[-n,-a]),SO(u,u,[r.scale,r.scale]),rs(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&d2(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,a){var i=this;a||(a=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new E4e(this.group))).render(r,n,a.node,function(o){i._state!=="animating"&&(R3(r.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Kg(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(Ft);function Kg(){return{nodeGroup:[],background:[],content:[]}}function R4e(e,t,r,n,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,m=c.invisible,g=o.getRawIndex(),x=s&&s.getRawIndex(),b=
vendor: 6,044 bytes, line 609
609o.viewChildren,_=c.upperHeight,k=b&&b.length,S=f.getModel("itemStyle"),C=f.getModel(["emphasis","itemStyle"]),T=f.getModel(["blur","itemStyle"]),E=f.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,N=H("nodeGroup",fL);if(!N)return;if(l.add(N),N.x=c.x||0,N.y=c.y||0,N.markRedraw(),E2(N).nodeWidth=h,E2(N).nodeHeight=p,c.isAboveViewRoot)return N;var P=H("background",xU,u,M4e);P&&j(N,P,k&&c.upperLabelHeight);var L=f.getModel("emphasis"),R=L.get("focus"),M=L.get("blurScope"),$=L.get("disabled"),V=R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():R;if(k)by(N)&&Id(N,!1),P&&(Id(P,!$),d.setItemGraphicEl(o.dataIndex,P),MD(P,V,M));else{var B=H("content",xU,u,D4e);B&&I(N,B),P.disableMorphing=!0,P&&by(P)&&Id(P,!1),Id(N,!$),d.setItemGraphicEl(o.dataIndex,N),MD(N,V,M)}return N;function j(se,oe,be){var me=$e(oe);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,oe.setShape({x:0,y:0,width:h,height:p,r:A}),m)U(oe);else{oe.invisible=!1;var Z=o.getVisual("style"),J=Z.stroke,we=SU(S);we.fill=J;var xe=ud(C);xe.fill=C.get("borderColor");var Pe=ud(T);Pe.fill=T.get("borderColor");var he=ud(E);if(he.fill=E.get("borderColor"),be){var je=h-2*v;Y(oe,J,Z.opacity,{x:v,y:0,width:je,height:_})}else oe.removeTextContent();oe.setStyle(we),oe.ensureState("emphasis").style=xe,oe.ensureState("blur").style=Pe,oe.ensureState("select").style=he,wf(oe)}se.add(oe)}function I(se,oe){var be=$e(oe);be.dataIndex=o.dataIndex,be.seriesIndex=e.seriesIndex;var me=Math.max(h-2*v,0),Z=Math.max(p-2*v,0);if(oe.culling=!0,oe.setShape({x:v,y:v,width:me,height:Z,r:A}),m)U(oe);else{oe.invisible=!1;var J=o.getVisual("style"),we=J.fill,xe=SU(S);xe.fill=we,xe.decal=J.decal;var Pe=ud(C),he=ud(T),je=ud(E);Y(oe,we,J.opacity,null),oe.setStyle(xe),oe.ensureState("emphasis").style=Pe,oe.ensureState("blur").style=he,oe.ensureState("select").style=je,wf(oe)}se.add(oe)}function U(se){!se.invisible&&i.push(se)}function Y(se,oe,be,me){var Z=f.getModel(me?_U:wU),J=Mr(f.get("name"),null),we=Z.getShallow("show");dn(se,Ur(f,me?_U:wU),{defaultText:we?J:null,inheritColor:oe,defaultOpacity:be,labelFetcher:e,labelDataIndex:o.dataIndex});var xe=se.getTextContent();if(xe){var Pe=xe.style,he=bO(Pe.padding||0);me&&(se.setTextConfig({layoutRect:me}),xe.disableLabelLayout=!0),xe.beforeUpdate=function(){var ne=Math.max((me?me.width:se.shape.width)-he[1]-he[3],0),De=Math.max((me?me.height:se.shape.height)-he[0]-he[2],0);(Pe.width!==ne||Pe.height!==De)&&xe.setStyle({width:ne,height:De})},Pe.truncateMinChar=2,Pe.lineOverflow="truncate",O(Pe,me,c);var je=xe.getState("emphasis");O(je?je.style:null,me,c)}}function O(se,oe,be){var me=se?se.text:null;if(!oe&&be.isLeafRoot&&me!=null){var Z=e.get("drillDownIcon",!0);se.text=Z?Z+" "+me:me}}function H(se,oe,be,me){var Z=x!=null&&r[se][x],J=a[se];return Z?(r[se][x]=null,ie(J,Z)):m||(Z=new oe,Z instanceof Mi&&(Z.z2=$4e(be,me)),ee(J,Z)),t[se][g]=Z}function ie(se,oe){var be=se[g]={};oe instanceof fL?(be.oldX=oe.x,be.oldY=oe.y):be.oldShape=Q({},oe.shape)}function ee(se,oe){var be=se[g]={},me=o.parentNode,Z=oe instanceof Me;if(me&&(!n||n.direction==="drillDown")){var J=0,we=0,xe=a.background[me.getRawIndex()];!n&&xe&&xe.oldShape&&(J=xe.oldShape.width,we=xe.oldShape.height),Z?(be.oldX=0,be.oldY=we):be.oldShape={x:J,y:we,width:0,height:0}}be.fadein=!Z}}function $4e(e,t){return e*P4e+t}const O4e=L4e;var Ly=D,z4e=Te,N2=-1,$3=function(){function e(t){var r=t.mappingMethod,n=t.type,a=this.option=Ie(t);this.type=n,this.mappingMethod=r,this._normalizeData=j4e[r];var i=e.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[r],r==="piecewise"?(hN(a),F4e(a)):r==="category"?a.categories?B4e(a):hN(a,!0):(Zn(r!=="linear"||a.dataExtent),hN(a))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ve(this._normalizeData,this)},e.listVisualTypes=function(){return tt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Te(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var a,i=te(t)?[]:Te(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var r={},n;return t&&Ly(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(te(t))t=t.slice();else if(z4e(t)){var r=[];Ly(t,function(n,a){r.push(a)}),t=r}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var a,i=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||fe(l)&&l===t+"")return o;n&&f(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(Lb(d[1],t,c[1]))return o}else if(c[1]===1/0){if(Lb(d[0],c[0],t))return o}else if(Lb(d[0],c[0],t)&&Lb(d[1],t,c[1]))return o;n&&f(c[0],o),n&&f(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:a;function f(h,p){var v=Math.abs(h-t);v<i&&(i=v,a=p)}},e.visualHandlers={color:{applyVisual:Zg("color"),getColorMapper:function(){var t=this.option;return ve(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),$0.call(this,r)}:function(r,n,a){var i=!!a;return!n&&(r=this._normalizeData(r)),a=qA(r,t.parsedVisual,a),i?a:Ys(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ys(qA(t,this.option.parsedVisual),"rgba")},category:$0,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Ys(qA(t,this.option.parsedVisual),"rgba")),n},fixed:cd}},colorHue:Db(function(t,r){return cm(t,r)}),colorSaturation:Db(function(t,r){return cm(t,null,r)}),colorLightness:Db(function(t,r){return cm(t,null,null,r)}),colorAlpha:Db(function(t,r){return JS(t,r)}),decal:{applyVisual:Zg("decal"),_normalizedToVisual:{linear:null,category:$0,piecewise:null,fixed:null}}
609,opacity:{applyVisual:Zg("opacity"),_normalizedToVisual:hL([0,1])},liftZ:{applyVisual:Zg("liftZ"),_normalizedToVisual:{linear:cd,category:cd,piecewise:cd,fixed:cd}},symbol:{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:kU,category:$0,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=kU.call(this,t)),n},fixed:cd}},symbolSize:{applyVisual:Zg("symbolSize"),_normalizedToVisual:hL([0,1])}},e}();function F4e(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function B4e(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(Ly(t,function(o,s){r[o]=s}),!te(n)){var a=[];Te(n)?Ly(n,function(o,s){var l=r[s];a[l??N2]=o}):a[N2]=n,n=iue(e,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete r[t[i]],t.pop())}function hN(e,t){var r=e.visual,n=[];Te(r)?Ly(r,function(i){n.push(i)}):r!=null&&n.push(r);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(e.type)&&(n[1]=n[0]),iue(e,n)}function Db(e){return{applyVisual:function(t,r,n){var a=this.mapValueToVisual(t);n("color",e(r("color"),a))},_normalizedToVisual:hL([0,1])}}function kU(e){var t=this.option.visual;return t[Math.round(Ct(e,[0,1],[0,t.length-1],!0))]||{}}function Zg(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function $0(e){var t=this.option.visual;return t[this.option.loop&&e!==N2?e%t.length:e]}function cd(){return this.option.visual[0]}function hL(e){return{linear:function(t){return Ct(t,e,this.option.visual,!0)},category:$0,piecewise:function(t,r){var n=pL.call(this,r);return n==null&&(n=Ct(t,e,this.option.visual,!0)),n},fixed:cd}}function pL(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=$3.findPieceIndex(e,r),a=r[n];if(a&&a.visual)return a.visual[this.type]}}function iue(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=re(t,function(r){var n=ja(r);return n||[0,0,0,1]})),t}var j4e={linear:function(e){return Ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=$3.findPieceIndex(e,t,!0);if(r!=null)return Ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??N2},fixed:mr};
609function Lb(e,t,r){return e?t<=r:t<r}const ln=$3;var V4e="itemStyle",oue=at();const U4e={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||sue(r,{},e.getViewRoot().getAncestors(),e)}};function sue(e,t,r,n){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(V4e),l=G4e(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),f;d!=null&&(f=CU(l),c=H4e(d,f)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)f=CU(l),u.fill=f;else{var p=W4e(e,a,i,s,l,h);D(h,function(v,m){if(v.depth>=r.length||v===r[v.depth]){var g=q4e(a,l,v,m,p,n);sue(v,g,r,n)}})}}}function G4e(e,t,r){var n=Q({},t),a=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function CU(e){var t=pN(e,"color");if(t){var r=pN(e,"colorAlpha"),n=pN(e,"colorSaturation");return n&&(t=cm(t,null,null,n)),r&&(t=JS(t,r)),t}}function H4e(e,t){return t!=null?cm(t,null,null,e):null}function pN(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function W4e(e,t,r,n,a,i){if(!(!i||!i.length)){var o=vN(t,"color")||a.color!=null&&a.color!=="none"&&(vN(t,"colorAlpha")||vN(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new ln(d);return oue(f).drColorMappingBy=c,f}}}function vN(e,t){var r=e.get(t);return te(r)&&r.length?{name:t,range:r}:null}function q4e(e,t,r,n,a,i){var o=Q({},t);if(a){var s=a.type,l=s==="color"&&oue(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Ry=Math.max,I2=Math.min,TU=Zr,O3=D,lue=["itemStyle","borderWidth"],Y4e=["itemStyle","gapWidth"],K4e=["upperLabel","show"],Z4e=["upperLabel","height"];const X4e={seriesType:"treemap",reset:function(e,t,r,n){var a=r.getWidth(),i=r.getHeight(),o=e.option,s=Rr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=le(TU(s.width,l[0]),a),c=le(TU(s.height,l[1]),i),d=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],h=Dy(n,f,e),p=d==="treemapRender"||d==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),m=rue(v);if(d!=="treemapMove"){var g=d==="treemapZoomToNode"?nOe(e,h,v,u,c):p?[p.width,p.height]:[u,c],x=o.sort;x&&x!=="asc"&&x!=="desc"&&(x="desc");var b={squareRatio:o.squareRatio,sort:x,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};v.setLayout(_),uue(v,b,!1,0),_=v.getLayout(),O3(m,function(S,C){var T=(m[C+1]||v).getValue();S.setLayout(Q({dataExtent:[T,T],borderWidth:0,upperHeight:0},_))})}var k=e.getData().tree.root;k.setLayout(aOe(s,p,h),!0),e.setLayoutInfo(s),cue(k,new We(-s.x,-s.y,a,i),m,v,0)}};function uue(e,t,r,n){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(lue),u=s.get(Y4e)/2,c=due(s),d=Math.max(l,c),f=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Ry(a-2*f,0),i=Ry(i-f-h,0);var p=a*i,v=J4e(e,s,p,t,r,n);if(v.length){var m={x:f,y:h,width:a,height:i},g=I2(a,i),x=1/0,b=[];b.area=0;for(var _=0,k=v.length;_<k;){var S=v[_];b.push(S),b.area+=S.getLayout().area;var C=rOe(b,g,t.squareRatio);C<=x?(_++,x=C):(b.area-=b.pop().getLayout().area,AU(b,g,m,u,!1),g=I2(m.width,m.height),b.length=b.area=0,x=1/0)}if(b.length&&AU(b,g,m,u,!0),!r){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(r=!0)}for(var _=0,k=v.length;_<k;_++)uue(v[_],t,r,n+1)}}}function J4e(e,t,r,n,a,i){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=Et(o,function(h){return!h.isRemoved()}),eOe(o,s);var u=tOe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Q4e(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var f=o[c].getValue()/u.sum*r;o[c].setLayout({area:f})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function Q4e(e,t,r,n,a){if(!n)return r;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/r*t<i&&(s=l,r-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),r}function eOe(e,t){return t&&e.sort(function(r,n){var a=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return a===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:a}),e}function tOe(e,t,r){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],O3(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function rOe(e,t,r){for(var n=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Ry(u*n/l,l/(u*a)):1/0}function AU(e,t,r,n,a){var i=t===r.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=r[s[i]],c=t?e.area/t:0;(a||c>r[l[o]])&&(c=r[l[o]]);for(var d=0,f=e.length;d<f;d++){var h=e[d],p={},v=c?h.getLayout().area/c:0,m=p[l[o]]=Ry(c-2*n,0),g=r[s[i]]+r[l[i]]-u,x=d===f-1||g<v?g:v,b=p[l[i]]=Ry(x-2*n,0);p[s[o]]=r[s[o]]+I2(n,m/2),p[s[i]]=u+I2(n,b/2),u+=x,h.setLayout(p,!0)}r[s[o]]+=c,r[l[o]]-=c}function nOe(e,t,r,n,a){var i=(t||{}).node,o=[n,a];if(!i||i===r)return o;for(var s,l=n*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,d=s.children,f=0,h=d.length;f<h;f++)c+=d[f].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),m=v.get(lue),g=Math.max(m,due(v));u+=4*m*m+(3*m+g)*Math.pow(u,.5),u>zj&&(u=zj),i=s}u<l&&(u=l);var x=Math.pow(u/l,.5);return[n*x,a*x]}function aOe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;
609var a=r.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function cue(e,t,r,n,a){var i=e.getLayout(),o=r[a],s=o&&o===e;if(!(o&&!s||a===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new We(t.x-i.x,t.y-i.y,t.width,t.height);O3(e.viewChildren||[],function(u){cue(u,l,r,n,a+1)})}}function due(e){return e.get(K4e)?e.get(Z4e):0}function iOe(e){e.registerSeriesModel(S4e),e.registerChartView(O4e),e.registerVisual(U4e),e.registerLayout(X4e),b4e(e)}function oOe(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){lt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function sOe(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),a=r.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var f=l.getShallow(c[d],!0);f!=null&&n.setItemVisual(o,c[d],f)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){fe(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Q(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],f=0;f<d.length;f++)a.setItemVisual(o,d[f],n.getItemVisual(l,d[f]))}})})}function Rb(e){return e instanceof Array||(e=[e,e]),e}function lOe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),a=Rb(t.get("edgeSymbol")),i=Rb(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=Rb(s.getShallow("symbol",!0)),c=Rb(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),f=n.ensureUniqueItemVisual(o,"style");switch(Q(f,d),f.stroke){case"source":{var h=l.node1.getVisual("style");f.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");f.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var vL="-->",zC=function(e){return e.get("autoCurveness")||null},fue=function(e,t){var r=zC(e),n=20,a=[];if(lt(r))n=r;else if(te(r)){e.__curvenessList=r;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},$y=function(e,t,r){var n=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[r.uid,n,a].join(vL)},hue=function(e){var t=e.split(vL);return[t[0],t[2],t[1]].join(vL)},uOe=function(e,t){var r=$y(e.node1,e.node2,t);return t.__edgeMap[r]},cOe=function(e,t){var r=gL($y(e.node1,e.node2,t),t),n=gL($y(e.node2,e.node1,t),t);return r+n},gL=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function dOe(e){zC(e)&&(e.__curvenessList=[],e.__edgeMap={},fue(e))}function fOe(e,t,r,n){if(zC(r)){var a=$y(e,t,r),i=r.__edgeMap,o=i[hue(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function z3(e,t,r,n){var a=zC(t),i=te(a);if(!a)return null;var o=uOe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=cOe(e,t);fue(t,u),e.lineStyle=e.lineStyle||{};var c=$y(e.node1,e.node2,t),d=t.__curvenessList,f=i||u%2?0:1;if(o.isForward)return d[f+s];var h=hue(c),p=gL(h,t),v=d[s+p+f];return n?i?a&&a[0]===0?(p+f)%2?v:-v:((p%2?0:1)+f)%2?v:-v:(p+f)%2?v:-v:d[s+p+f]}function pue(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),F3(r,e)}}function F3(e,t){e.eachEdge(function(r,n){var a=Hs(r.getModel().get(["lineStyle","curveness"]),-z3(r,t,n,!0),0),i=Ws(r.node1.getLayout()),o=Ws(r.
609node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),r.setLayout(s)})}function hOe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),a=r.coordinateSystem;if(a&&a.type!=="view"){var i=r.getData(),o=[];D(a.dimensions,function(f){o=o.concat(i.mapDimensionsAll(f))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var d=i.get(o[c],s);isNaN(d)||(u=!0),l.push(d)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}F3(i.graph,r)}else(!n||n==="none")&&pue(r)})}function O0(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,a=t.getZoom(),i=(a-1)*r+1;return i/n}function z0(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var EU=Math.PI,gN=[];function B3(e,t,r,n){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,d=o.count();if(o.setLayout({cx:l,cy:u}),!!d){if(r){var f=a.pointToData(n),h=f[0],p=f[1],v=[h-l,p-u];Lv(v,v),d_(v,v,c),r.setLayout([l+v[0],u+v[1]],!0);var m=e.get(["circular","rotateLabel"]);vue(r,m,l,u)}pOe[t](e,s,o,c,l,u,d),s.eachEdge(function(g,x){var b=Hs(g.getModel().get(["lineStyle","curveness"]),z3(g,e,x),0),_=Ws(g.node1.getLayout()),k=Ws(g.node2.getLayout()),S,C=(_[0]+k[0])/2,T=(_[1]+k[1])/2;+b&&(b*=3,S=[l*b+C*(1-b),u*b+T*(1-b)]),g.setLayout([_,k,S])})}}}var pOe={value:function(e,t,r,n,a,i,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var d=c.getValue("value"),f=u*(l?d:1)/2;s+=f,c.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=f})},symbolSize:function(e,t,r,n,a,i,o){var s=0;gN.length=o;var l=O0(e);t.eachNode(function(d){var f=z0(d);isNaN(f)&&(f=2),f<0&&(f=0),f*=l;var h=Math.asin(f/2/n);isNaN(h)&&(h=EU/2),gN[d.dataIndex]=h,s+=h*2});var u=(2*EU-s)/o/2,c=0;t.eachNode(function(d){var f=u+gN[d.dataIndex];c+=f,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([n*Math.cos(c)+a,n*Math.sin(c)+i]),c+=f})}};function vue(e,t,r,n){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var f=s.ensureState("emphasis");Q(f.textConfig||(f.textConfig={}),{position:d})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function vOe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&B3(t,"symbolSize")})}var hh=aD;function gOe(e,t,r){for(var n=e,a=t,i=r.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var d=n[c];d.p||(d.p=Rf(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ws(d.p),d.edges=null}var f=r.friction==null?.6:r.friction,h=f,p,v;return{warmUp:function(){h=f*.8},setFixed:function(m){n[m].fixed=!0},setUnfixed:function(m){n[m].fixed=!1},beforeStep:function(m){p=m},afterStep:function(m){v=m},step:function(m){p&&p(n,a);for(var g=[],x=n.length,b=0;b<a.length;b++){var _=a[b];if(!_.ignoreForceLayout){var k=_.n1,S=_.n2;Ed(g,S.p,k.p);var C=iD(g)-_.d,T=S.w/(k.w+S.w);isNaN(T)&&(T=0),Lv(g,g),!k.fixed&&hh(k.p,k.p,g,T*C*h),!S.fixed&&hh(S.p,S.p,g,-(1-T)*C*h)}}for(var b=0;b<x;b++){var E=n[b];
vendor: 12,845 bytes, line 609
609E.fixed||(Ed(g,l,E.p),hh(E.p,E.p,g,u*h))}for(var b=0;b<x;b++)for(var k=n[b],A=b+1;A<x;A++){var S=n[A];Ed(g,S.p,k.p);var C=iD(g);C===0&&(NCe(g,Math.random()-.5,Math.random()-.5),C=1);var N=(k.rep+S.rep)/C/C;!k.fixed&&hh(k.pp,k.pp,g,N),!S.fixed&&hh(S.pp,S.pp,g,-N)}for(var P=[],b=0;b<x;b++){var E=n[b];E.fixed||(Ed(P,E.p,E.pp),hh(E.p,E.p,P,h),Bn(E.pp,E.p))}h=h*.992;var L=h<.01;v&&v(n,a,L),m&&m(L)}}}function mOe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(b){var _=i.getId(b);i.setItemLayout(b,n[_]||[NaN,NaN])}):!l||l==="none"?pue(t):l==="circular"&&B3(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),d=s.get("repulsion"),f=s.get("edgeLength"),h=te(d)?d:[d,d],p=te(f)?f:[f,f];p=[p[1],p[0]];var v=i.mapArray("value",function(b,_){var k=i.getItemLayout(_),S=Ct(b,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:i.getItemModel(_).get("fixed"),p:!k||isNaN(k[0])||isNaN(k[1])?null:k}}),m=o.mapArray("value",function(b,_){var k=a.getEdgeByIndex(_),S=Ct(b,c,p);isNaN(S)&&(S=(p[0]+p[1])/2);var C=k.getModel(),T=Hs(k.getModel().get(["lineStyle","curveness"]),-z3(k,t,_,!0),0);return{n1:v[k.node1.dataIndex],n2:v[k.node2.dataIndex],d:S,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),g=r.getBoundingRect(),x=gOe(v,m,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});x.beforeStep(function(b,_){for(var k=0,S=b.length;k<S;k++)b[k].fixed&&Bn(b[k].p,a.getNodeByIndex(k).getLayout())}),x.afterStep(function(b,_,k){for(var S=0,C=b.length;S<C;S++)b[S].fixed||a.getNodeByIndex(S).setLayout(b[S].p),n[i.getId(S)]=b[S].p;for(var S=0,C=_.length;S<C;S++){var T=_[S],E=a.getEdgeByIndex(S),A=T.n1.p,N=T.n2.p,P=E.getLayout();P=P?P.slice():[],P[0]=P[0]||[],P[1]=P[1]||[],Bn(P[0],A),Bn(P[1],N),+T.curveness&&(P[2]=[(A[0]+N[0])/2-(A[1]-N[1])*T.curveness,(A[1]+N[1])/2-(N[0]-A[0])*T.curveness]),E.setLayout(P)}}),t.forceLayout=x,t.preservedPoints=n,x.step()}else t.forceLayout=null})}function yOe(e,t,r){var n=Q(e.getBoxLayoutParams(),{aspect:r});return Rr(n,{width:t.getWidth(),height:t.getHeight()})}function xOe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(m){var g=i.getItemModel(m);return[+g.get("x"),+g.get("y")]}),s=[],l=[];dC(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=yOe(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],f=l[1]-s[1],h=c.width,p=c.height,v=n.coordinateSystem=new Px;v.zoomLimit=n.get("scaleLimit"),v.setBoundingRect(s[0],s[1],d,f),v.setViewRect(c.x,c.y,h,p),v.setCenter(n.get("center"),t),v.setZoom(n.get("zoom")),r.push(v)}}),r}var NU=Xr.prototype,mN=vC.prototype,gue=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gue);function yN(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var bOe=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gue},t.prototype.buildPath=function(r,n){yN(n)?NU.buildPath.call(this,r,n):mN.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return yN(this.shape)?NU.pointAt.call(this,r):mN.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=yN(n)?[n.x2-n.x1,n.y2-n.y1]:mN.tangentAt.call(this,r);return Lv(a,a)},t}(Je);const wOe=bOe;var xN=["fromSymbol","toSymbol"];function IU(e){return"_"+e+"Type"}function PU(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=bx(a),u=Kv(o||0,l),c=Sr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function _Oe(e){var t=new wOe({name:"line",subPixelOptimize:!0});return mL(t.shape,e),t}function mL(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var SOe=function(e){K(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=_Oe(o);s.shape.percent=0,Wt(s,{shape:{percent:1}},i,n),this.add(s),D(xN,function(l){var u=PU(l,r,n);this.add(u),this[IU(l)]=r.getItemVisual(n,l)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};mL(l.shape,s),ut(o,l,i,n),D(xN,function(u){var c=r.getItemVisual(n,u),d=IU(u);if(this[d]!==c){this.remove(this.childOfName(u));var f=PU(u,r,n);this.add(f)}this[d]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,d=a&&a.emphasisDisabled,f=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var p=r.getItemModel(n),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),d=v.get("disabled"),f=v.get("focus"),h=v.get("blurScope"),c=Ur(p)}var m=r.getItemVisual(n,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,D(xN,function(S){var C=this.childOfName(S);if(C){C.setColor(g),C.style.opacity=m.opacity;for(var T=0;T<Xn.length;T++){var E=Xn[T],A=o.getState(E);if(A){var N=A.style||{},P=C.ensureState(E),L=P.style||(P.style={});N.stroke!=null&&(L[C.__isEmptyBrush?"stroke":"fill"]=N.stroke),N.opacity!=null&&(L.opacity=N.opacity)}}C.markRedraw()}},this);var x=i.getRawValue(n);dn(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,C){return i.getFormattedLabel(S,C,r.dataType)}},inheritColor:g||"#000",defaultOpacity:m.opacity,defaultText:(x==null?r.getName(n):isFinite(x)?cr(x):x)+""});var b=this.getTextContent();if(b){var _=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=_.get("position")||"middle";var k=_.get("distance");te(k)||(k=[k,k]),b.__labelDistance=k}this.setTextConfig({position:null,local:!0,inside:!1}),nr(this,f,h,d)},t.prototype.highlight=function(){ol(this)},t.prototype.downplay=function(){sl(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");mL(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),d=l.pointAt(u),f=Ed([],d,c);Lv(f,f);function h(A,N){var P=A.__specifiedRotation;if(P==null){var L=l.tangentAt(N);A.attr("rotation",(N===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",P)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(d),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,v=void 0,m=i.__labelDistance,g=m[0]*o,x=m[1]*o,b=u/2,_=l.tangentAt(b),k=[_[1],-_[0]],S=l.pointAt(b);k[1]>0&&(k[0]=-k[0],k[1]=-k[1]);var C=_[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(_[1],_[0]);d[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var E=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":E=-x,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":E=x,v="top";break;default:E=0,v="middle"}switch(i.__position){case"end":i.x=f[0]*g+d[0],i.y=f[1]*x+d[1],p=f[0]>.8?"left":f[0]<-.8?"right":"center",v=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*g+c[0],i.y=-f[1]*x+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",v=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*C+c[0],i.y=c[1]+E,p=_[0]<0?"right":"left",i.originX=-g*C,i.originY=-E;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+E,p="center",i.originY=-E;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*C+d[0],i.y=d[1]+E,p=_[0]>=0?"right":"left",i.originX=g*C,i.originY=-E;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||p})}},t}(Me);const j3=SOe;var kOe=function(){function e(t){this.group=new Me,this._LineCtor=t||j3}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=MU(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=MU(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!COe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(bN(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){fc(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(bN(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!bN(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function COe(e){return e.animators&&e.animators.length>0}function MU(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Ur(t)}}function DU(e){return isNaN(e[0])||isNaN(e[1])}function bN(e){return e&&!DU(e[0])&&!DU(e[1])}const V3=kOe;var wN=[],_N=[],SN=[],ph=Yr,kN=Hd,LU=Math.abs;function RU(e,t,r){for(var n=e[0],a=e[1],i=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){wN[0]=ph(n[0],a[0],i[0],c),wN[1]=ph(n[1],a[1],i[1],c);var d=LU(kN(wN,t)-l);d<o&&(o=d,s=c)}for(var f=0;f<32;f++){var h=s+u;_N[0]=ph(n[0],a[0],i[0],s),_N[1]=ph(n[1],a[1],i[1],s),SN[0]=ph(n[0],a[0],i[0],h),SN[1]=ph(n[1],a[1],i[1],h);var d=kN(_N,t)-l;if(LU(d)<.01)break;var p=kN(SN,t)-l;u/=2,d<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function CN(e,t){var r=[],n=py,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[Ws(u[0]),Ws(u[1])],u[2]&&u.__original.push(Ws(u[2])));var f=u.__original;if(u[2]!=null){if(Bn(a[0],f[0]),Bn(a[1],f[2]),Bn(a[2],f[1]),c&&c!=="none"){var h=z0(s.node1),p=RU(a,f[0],h*t);n(a[0][0],a[1][0],a[2][0],p,r),a[0][0]=r[3],a[1][0]=r[4],n(a[0][1],a[1][1],a[2][1],p,r),a[0][1]=r[3],a[1][1]=r[4]}if(d&&d!=="none"){var h=z0(s.node2),p=RU(a,f[1],h*t);n(a[0][0],a[1][0],a[2][0],p,r),a[1][0]=r[1],a[2][0]=r[2],n(a[0][1],a[1][1],a[2][1],p,r),a[1][1]=r[1],a[2][1]=r[2]}Bn(u[0],a[0]),Bn(u[1],a[2]),Bn(u[2],a[1])}else{if(Bn(i[0],f[0]),Bn(i[1],f[1]),Ed(o,i[1],i[0]),Lv(o,o),c&&c!=="none"){var h=z0(s.node1);aD(i[0],i[0],o,h*t)}if(d&&d!=="none"){var h=z0(s.node2);aD(i[1],i[1],o,-h*t)}Bn(u[0],i[0]),Bn(u[1],i[1])}})}function $U(e){return e.type==="view"}var TOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var a=new Tx,i=new V3,o=this.group;this._controller=new Ix(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRen
609der=!0},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if($U(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ut(u,c,r)}CN(r.getGraph(),O0(r));var d=r.getData();s.updateData(d);var f=r.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(r,n,a),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");d.graph.eachNode(function(b){var _=b.dataIndex,k=b.getGraphicEl(),S=b.getModel();if(k){k.off("drag").off("dragend");var C=S.get("draggable");C&&k.on("drag",function(E){switch(v){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(_),d.setItemLayout(_,[k.x,k.y]);break;case"circular":d.setItemLayout(_,[k.x,k.y]),b.setLayout({fixed:!0},!0),B3(r,"symbolSize",b,[E.offsetX,E.offsetY]),i.updateLayout(r);break;case"none":default:d.setItemLayout(_,[k.x,k.y]),F3(r.getGraph(),r),i.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),k.setDraggable(C,!!S.get("cursor"));var T=S.get(["emphasis","focus"]);T==="adjacency"&&($e(k).focus=b.getAdjacentDataIndices())}}),d.graph.eachEdge(function(b){var _=b.getGraphicEl(),k=b.getModel().get(["emphasis","focus"]);_&&k==="adjacency"&&($e(_).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),g=d.getLayout("cx"),x=d.getLayout("cy");d.graph.eachNode(function(b){vue(b,m,g,x)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var a=this;(function i(){r.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(r,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!RC(u,a,r)}),!$U(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){N3(s,u.dx,u.dy),a.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){I3(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),CN(r.getGraph(),O0(r)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),a=O0(r);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(r){CN(r.getGraph(),O0(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Ft);const AOe=TOe;function vh(e){return"_EC_"+e}var EOe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[vh(t)]){var a=new dd(t,r);return a.hostGraph=this,this.nodes.push(a),n[vh(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[vh(t)]},e.prototype.addEdge=function(t,r,n){var a=this._nodesMap,i=this._edgesMap;if(lt(t)&&(t=this.nodes[t]),lt(r)&&(r=this.nodes[r]),t instanceof dd||(t=a[vh(t)]),r instanceof dd||(r=a[vh(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new mue(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof dd&&(t=t.id),r instanceof dd&&(r=r.
609id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(r,n[i],i)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(r,n[i],i)},e.prototype.breadthFirstTraverse=function(t,r,n,a){if(r instanceof dd||(r=this._nodesMap[vh(r)]),!!r){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(t.call(a,d,l))return;s.push(d),d.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;r.filterSelf(function(s){var l=a[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=r.count();i<o;i++)a[r.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,a=0;a<r.length;a++)t.addNode(r[a].id,r[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),dd=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e}(),mue=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function yue(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}kr(dd,yue("hostGraph","data"));kr(mue,yue("hostGraph","edgeData"));const NOe=EOe;function xue(e,t,r,n,a){for(var i=new NOe(n),o=0;o<e.length;o++)i.addNode(Zr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],d=c.source,f=c.target;i.addEdge(d,f,u)&&(l.push(c),s.push(Zr(Mr(c.id,null),d+" > "+f)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=xl(e,r);else{var v=yx.get(h),m=v?v.dimensions||[]:[];Ke(m,"value")<0&&m.concat(["value"]);var g=_x(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;p=new qn(g,r),p.initData(e)}var x=new qn(["value"],r);return x.initData(l,s),a&&a(p,x),eue({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var IOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Nx(a,a),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),yf(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var a=r.edges||r.links||[],i=r.data||r.nodes||[],o=this;if(i&&a){dOe(this);var s=xue(i,a,this,!0,l);return D(s.edges,function(u){fOe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,m=p.getShallow("category"),g=v[m];return g&&(g.parentModel=p.parentModel,p.parentModel=g),p});var d=Ot.prototype.getModel;function f(p,v){var m=d.call(this,p,v);
609return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(r,a),s=i.graph.getEdgeByIndex(r),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Gr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Boe({series:this,dataIndex:r,multipleSeries:n});return d},t.prototype._updateCategoriesData=function(){var r=re(this.option.categories||[],function(a){return a.value!=null?a:Q({value:0},a)}),n=new qn(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Zt);const POe=IOe;var MOe={type:"graphRoam",event:"graphRoam",update:"none"};function DOe(e){e.registerChartView(AOe),e.registerSeriesModel(POe),e.registerProcessor(oOe),e.registerVisual(sOe),e.registerVisual(lOe),e.registerLayout(hOe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vOe),e.registerLayout(mOe),e.registerCoordinateSystem("graphView",{dimensions:Px.dimensions,create:xOe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},mr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},mr),e.registerAction(MOe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=M3(i,t,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var LOe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ROe=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new LOe},t.prototype.buildPath=function(r,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),c=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+a(l)*s,n.y+i(l)*s),r.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),r.lineTo(n.x-a(l)*s,n.y-i(l)*s),r.lineTo(u,c)},t}(Je);const $Oe=ROe;function OOe(e,t){var r=e.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=le(r[0],t.getWidth()),s=le(r[1],t.getHeight()),l=le(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function $b(e,t){var r=e==null?"":e+"";return t&&(fe(t)?r=t.replace("{value}",r):ke(t)&&(r=t(e))),r}var zOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeAll();var i=r.get(["axisLine","lineStyle","color"]),o=OOe(r,a);this._renderMain(r,n,a,i,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,a,i,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,d=r.getModel("axisLine"),f=d.get("roundCap"),h=f?C2:wa,p=d.get("show"),v=d.getModel("lineStyle"),m=v.get("width"),g=[u,c];Zae(g,!l),u=g[0],c=g[1];for(var x=c-u,b=u,_=[],k=0;p&&k<i.length;k++){var S=Math.min(Math.max(i[k][0],0),1);c=u+x*S;var C=new h({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});C.setStyle({fill:i[k][1]}),C.setStyle(v.getLineStyle(["color","width"])),_.push(C),b=c}_.reverse(),D(_,function(E){return s.add(E)});var T=function(E){if(E<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=E&&(A===0?0:i[A-1][0])<E)return i[A][1];return i[A-1][1]};this._renderTicks(r,n,a,T,o,u,c,l,m),this._renderTitleAndDetail(r,n,a,T,o),this._renderAnchor(r,o),this._renderPointer(r,n,a,T,o,u,c,l,m)},t.prototype._renderTicks=function(r,n,a,i,o,s,l,u,c){for(var d=this.group,f=o.cx,h=o.cy,p=o.r,v=+r.get("min"),m=+r.get("max"),g=r.getModel("splitLine"),x=r.getModel("axisTick"),b=r.getModel("axisLabel"),_=r.get("splitNumber"),k=x.get("splitNumber"),S=le(g.get("length"),p),C=le(x.get("length"),p),T=s,E=(l-s)/_,A=E/k,N=g.getModel("lineStyle").getLineStyle(),P=x.getModel("lineStyle").getLineStyle(),L=g.get("distance"),R,M,$=0;$<=_;
609$++){if(R=Math.cos(T),M=Math.sin(T),g.get("show")){var V=L?L+c:c,B=new Xr({shape:{x1:R*(p-V)+f,y1:M*(p-V)+h,x2:R*(p-S-V)+f,y2:M*(p-S-V)+h},style:N,silent:!0});N.stroke==="auto"&&B.setStyle({stroke:i($/_)}),d.add(B)}if(b.get("show")){var V=b.get("distance")+L,j=$b(cr($/_*(m-v)+v),b.get("formatter")),I=i($/_),U=R*(p-S-V)+f,Y=M*(p-S-V)+h,O=b.get("rotate"),H=0;O==="radial"?(H=-T+2*Math.PI,H>Math.PI/2&&(H+=Math.PI)):O==="tangential"?H=-T-Math.PI/2:lt(O)&&(H=O*Math.PI/180),H===0?d.add(new st({style:$t(b,{text:j,x:U,y:Y,verticalAlign:M<-.8?"top":M>.8?"bottom":"middle",align:R<-.4?"left":R>.4?"right":"center"},{inheritColor:I}),silent:!0})):d.add(new st({style:$t(b,{text:j,x:U,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:I}),silent:!0,originX:U,originY:Y,rotation:H}))}if(x.get("show")&&$!==_){var V=x.get("distance");V=V?V+c:c;for(var ie=0;ie<=k;ie++){R=Math.cos(T),M=Math.sin(T);var ee=new Xr({shape:{x1:R*(p-V)+f,y1:M*(p-V)+h,x2:R*(p-C-V)+f,y2:M*(p-C-V)+h},silent:!0,style:P});P.stroke==="auto"&&ee.setStyle({stroke:i(($+ie/k)/_)}),d.add(ee),T+=A}T-=A}else T+=E}},t.prototype._renderPointer=function(r,n,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),m=r.getModel("progress"),g=m.get("show"),x=r.getData(),b=x.mapDimension("value"),_=+r.get("min"),k=+r.get("max"),S=[_,k],C=[s,l];function T(A,N){var P=x.getItemModel(A),L=P.getModel("pointer"),R=le(L.get("width"),o.r),M=le(L.get("length"),o.r),$=r.get(["pointer","icon"]),V=L.get("offsetCenter"),B=le(V[0],o.r),j=le(V[1],o.r),I=L.get("keepAspect"),U;return $?U=Sr($,B-R/2,j-M,R,M,null,I):U=new $Oe({shape:{angle:-Math.PI/2,width:R,r:M,x:B,y:j}}),U.rotation=-(N+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function E(A,N){var P=m.get("roundCap"),L=P?C2:wa,R=m.get("overlap"),M=R?m.get("width"):c/x.count(),$=R?o.r-M:o.r-(A+1)*M,V=R?o.r:o.r-A*M,B=new L({shape:{startAngle:s,endAngle:N,cx:o.cx,cy:o.cy,clockwise:u,r0:$,r:V}});return R&&(B.z2=k-x.get(b,A)%k),B}(g||v)&&(x.diff(f).add(function(A){var N=x.get(b,A);if(v){var P=T(A,s);Wt(P,{rotation:-((isNaN(+N)?C[0]:Ct(N,S,C,!0))+Math.PI/2)},r),d.add(P),x.setItemGraphicEl(A,P)}if(g){var L=E(A,s),R=m.get("clip");Wt(L,{shape:{endAngle:Ct(N,S,C,R)}},r),d.add(L),ND(r.seriesIndex,x.dataType,A,L),p[A]=L}}).update(function(A,N){var P=x.get(b,A);if(v){var L=f.getItemGraphicEl(N),R=L?L.rotation:s,M=T(A,R);M.rotation=R,ut(M,{rotation:-((isNaN(+P)?C[0]:Ct(P,S,C,!0))+Math.PI/2)},r),d.add(M),x.setItemGraphicEl(A,M)}if(g){var $=h[N],V=$?$.shape.endAngle:s,B=E(A,V),j=m.get("clip");ut(B,{shape:{endAngle:Ct(P,S,C,j)}},r),d.add(B),ND(r.seriesIndex,x.dataType,A,B),p[A]=B}}).execute(),x.each(function(A){var N=x.getItemModel(A),P=N.getModel("emphasis"),L=P.get("focus"),R=P.get("blurScope"),M=P.get("disabled");if(v){var $=x.getItemGraphicEl(A),V=x.getItemVisual(A,"style"),B=V.fill;if($ instanceof hn){var j=$.style;$.useStyle(Q({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},V))}else $.useStyle(V),$.type!=="pointer"&&$.setColor(B);$.setStyle(N.getModel(["pointer","itemStyle"]).getItemStyle()),$.style.fill==="auto"&&$.setStyle("fill",i(Ct(x.get(b,A),S,[0,1],!0))),$.z2EmphasisLift=0,cn($,N),nr($,L,R,M)}if(g){var I=p[A];I.useStyle(x.getItemVisual(A,"style")),I.setStyle(N.getModel(["progress","itemStyle"]).getItemStyle()),I.z2EmphasisLift=0,cn(I,N),nr(I,L,R,M)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var a=r.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Sr(s,n.cx-o/2+le(l[0],n.r),n.cy-o/2+le(l[1],n.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,a,i,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),d=+r.get("max"),f=new Me,h=[],p=[],v=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){h[g]=new st({silent:!0}),p[g]=new st({silent:!0})}).update(function(g,x){h[g]=s._titleEls[x],p[g]=s._detailEls[x]}).execute(),l.each(function(g){var x=l.getItemModel(g),b=l.get(u,g),_=new Me,k=i(Ct(b,[c,d],[0,1],!0)),S=x.getModel("title");if(S.get("show")){var C=S.get("offsetCenter"),T=o.cx+le(C[0],o.r),E=o.cy+le(C[1],o.r),A=h[g];A.attr({z2:m?0:2,style:$t(S,{x:T,y:E,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:k})}),_.add(A)}var N=x.getModel("detail");if(N.get("show")){var P=N.get("offsetCenter"),L=o.cx+le(P[0],o.r),R=o.cy+le(P[1],o.r),M=le(N.get("width"),o.r),$=le(N.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(g,"style").fill:k,A=p[g],B=N.get("formatter");A.attr({z2:m?0:2,style:$t(N,{x:L,y:R,text:$b(b,B),width:isNaN(M)?null:M,height:isNaN($)?null:$,align:"center",verticalAlign:"middle"},{inheritColor:V})}),Vie(A,{normal:N},b,function(I){return $b(I,B)}),v&&Uie(A,g,l,r,{getFormattedLabel:function(I,U,Y,O,H,ie){return $b(ie?ie.interpolatedValue:b,B)}}),_.add(A)}f.add(_)}),this.group.add(f),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Ft);const FOe=zOe;var BOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Zv(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine
609:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Zt);const jOe=BOe;function VOe(e){e.registerChartView(FOe),e.registerSeriesModel(jOe)}var UOe=["itemStyle","opacity"],GOe=function(e){K(t,e);function t(r,n){var a=e.call(this)||this,i=a,o=new ka,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(r,n,!0),a}return t.prototype.updateData=function(r,n,a){var i=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(UOe);c=c??1,a||go(i),i.useStyle(r.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Wt(i,{style:{opacity:c}},o,n)):ut(i,{style:{opacity:c},shape:{points:l.points}},o,n),cn(i,s),this._updateLabel(r,n),nr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,d=r.getItemVisual(n,"style"),f=d.fill;dn(o,Ur(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:d.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Be(h[0][0],h[0][1]):null},ut(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),b3(a,w3(l),{stroke:f})},t}(_a),HOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new GOe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);wy(u,r,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ft);const WOe=HOe;var qOe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Nx(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Zv(this,{coordDimensions:["value"],encodeDefaulter:Oe(ZO,this)})},t.prototype._defaultLabelLine=function(r){yf(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),a=e.prototype.getDataParams.call(this,r),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,r)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Zt);const YOe=qOe;function KOe(e,t){return Rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ZOe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ke(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function XOe(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var a=e.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,f,h,p;if(c)o==="insideLeft"?(f=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,d="left"):o==="insideRight"?(f=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,d="right"):(f=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),p=[[f,h],[f,h]];else{var v=void 0,m=void 0,g=void 0,x=void 0,b=s.get("length");
609o==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=v-b,f=g-5,d="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=v+b,f=g+5,d="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,x=m-b,h=x-5,d="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,x=m+b,h=x+5,d="center"):o==="rightTop"?(v=r==="horizontal"?u[3][0]:u[1][0],m=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(x=m-b,h=x-5,d="center"):(g=v+b,f=g+5,d="top")):o==="rightBottom"?(v=u[2][0],m=u[2][1],r==="horizontal"?(x=m+b,h=x+5,d="center"):(g=v+b,f=g+5,d="bottom")):o==="leftTop"?(v=u[0][0],m=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(x=m-b,h=x-5,d="center"):(g=v-b,f=g-5,d="right")):o==="leftBottom"?(v=r==="horizontal"?u[1][0]:u[3][0],m=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(x=m+b,h=x+5,d="center"):(g=v-b,f=g-5,d="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,r==="horizontal"?(x=m+b,h=x+5,d="center"):(g=v+b,f=g+5,d="left")),r==="horizontal"?(g=v,f=g):(x=m,h=x),p=[[v,m],[g,x]]}l.label={linePoints:p,x:f,y:h,verticalAlign:"middle",textAlign:d,inside:c}})}function JOe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),a=n.mapDimension("value"),i=r.get("sort"),o=KOe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=ZOe(n,i),d=o.x,f=o.y,h=s==="horizontal"?[le(r.get("minSize"),u),le(r.get("maxSize"),u)]:[le(r.get("minSize"),l),le(r.get("maxSize"),l)],p=n.getDataExtent(a),v=r.get("min"),m=r.get("max");v==null&&(v=Math.min(p[0],0)),m==null&&(m=p[1]);var g=r.get("funnelAlign"),x=r.get("gap"),b=s==="horizontal"?l:u,_=(b-x*(n.count()-1))/n.count(),k=function(R,M){if(s==="horizontal"){var $=n.get(a,R)||0,V=Ct($,[v,m],h,!0),B=void 0;switch(g){case"top":B=f;break;case"center":B=f+(u-V)/2;break;case"bottom":B=f+(u-V);break}return[[M,B],[M,B+V]]}var j=n.get(a,R)||0,I=Ct(j,[v,m],h,!0),U;switch(g){case"left":U=d;break;case"center":U=d+(l-I)/2;break;case"right":U=d+l-I;break}return[[U,M],[U+I,M]]};i==="ascending"&&(_=-_,x=-x,s==="horizontal"?d+=l:f+=u,c=c.reverse());for(var S=0;S<c.length;S++){var C=c[S],T=c[S+1],E=n.getItemModel(C);if(s==="horizontal"){var A=E.get(["itemStyle","width"]);A==null?A=_:(A=le(A,l),i==="ascending"&&(A=-A));var N=k(C,d),P=k(T,d+A);d+=A+x,n.setItemLayout(C,{points:N.concat(P.slice().reverse())})}else{var L=E.get(["itemStyle","height"]);L==null?L=_:(L=le(L,u),i==="ascending"&&(L=-L));var N=k(C,f),P=k(T,f+L);f+=L+x,n.setItemLayout(C,{points:N.concat(P.slice().reverse())})}}XOe(n)})}function QOe(e){e.registerChartView(WOe),e.registerSeriesModel(YOe),e.registerLayout(JOe),e.registerProcessor(Ex("funnel"))}var e3e=.3,t3e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Me,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,d=zU(r);s.diff(l).add(f).update(h).remove(p).execute();function f(m){var g=OU(s,o,m,c,u);TN(g,s,m,d)}function h(m,g){var x=l.getItemGraphicEl(g),b=bue(s,m,c,u);s.setItemGraphicEl(m,x),ut(x,{shape:{points:b}},r,m),go(x),TN(x,s,m,d)}function p(m){var g=l.getItemGraphicEl(m);o.remove(g)}if(!this._initialized){this._initialized=!0;var v=r3e(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=zU(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var d=OU(i,this._dataGroup,c,s,o);d.incremental=!0,TN(d,i,c,l),u.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Ft);function r3e(e,t,r){var n=e.model,a=e.getRect(),i=new nt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Wt(i,{shape:{width:a.width,height:a.height}},t,r),i}function bue(e,t,r,n){for(var a=[],i=0;i<r.length;i++){var o=r[i],s=e.get(e.mapDimension(o),t);n3e(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function OU(e,t,r,n,a){var i=bue(e,r,n,a),o=new ka({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function zU(e){var t=e.get("smooth",!0);return t===!0&&(t=e3e),t=il(t),hy(t)&&(t=0),{smooth:t}}function TN(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var a=t.getItemModel(r),i=a.getModel("emphasis");cn(e,a,"lineStyle"),nr(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function n3e(e,t){return t==="category"?e==null:e==null||isNaN(e)}const a3e=t3e;var i3e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return xl(null,this,{useEncodeDefaulter:ve(o3e,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){r===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Zt);function o3e(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return D(t.dimensions,function(n){var a=s3e(n);r[n]=a}),r}}function s3e(e){return+e.replace("dim","")}const l3e=i3e;var u3e=["lineStyle","opacity"],c3e={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){r.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(u3e,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const d3e=c3e;function f3e(e){h3e(e),p3e(e)}function h3e(e){if(!e.parallel){var t=!1;D(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function p3e(e){var t=Pt(e.parallelAxis);D(t,function(r){if(Te(r)){var n=r.parallelIndex||0,a=Pt(e.parallel)[n];a&&a.parallelAxisDefault&&He(r,a.parallelAxisDefault,!1)}})}var v3e=5,g3e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this._model=r,this._api=a,this._handlers||(this._handlers={},D(m3e,function(i,o){a.getZr().on(o,this._handlers[o]=ve(i,this))},this)),Yv(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Ty(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(Q({type:"parallelAxisExpand"},r))},t.type="parallel",t}(ar),m3e={mousedown:function(e){AN(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(AN(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>v3e)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!AN(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function AN(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const y3e=g3e;var x3e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}
609return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&He(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var a=r.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(r){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],a=Et(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){r.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(it);const b3e=x3e;var w3e=function(e){K(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(bo);const _3e=w3e;function jf(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=gh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=gh(s,[0,o]),a=i=gh(s,[a,i]),n=0}t[0]=gh(t[0],r),t[1]=gh(t[1],r);var l=EN(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=gh(t[n],c);var d;return d=EN(t,n),a!=null&&(d.sign!==l.sign||d.span<a)&&(t[1-n]=t[n]+l.sign*a),d=EN(t,n),i!=null&&d.span>i&&(t[1-n]=t[n]+d.sign*i),t}function EN(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function gh(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var NN=D,wue=Math.min,_ue=Math.max,FU=Math.floor,S3e=Math.ceil,BU=cr,k3e=Math.PI,C3e=function(){function e(t,r,n){this.type="parallel",this._axesMap=Se(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=t.dimensions,i=t.parallelAxisIndex;NN(a,function(o,s){var l=i[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new _3e(o,MC(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,a=r.layoutBase,i=r.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+r.axisLength&&s>=a&&s<=a+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var a=n.getData();NN(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),av(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Rr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=r[a[o]],l=[0,s],u=this.dimensions.length,c=Ob(t.get("axisExpandWidth"),l),d=Ob(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=Ob(h[1]-h[0],l),h[1]=h[0]+p;else{p=Ob(c*(d-1),l);var v=t.get("axisExpandCenter")||FU(u/2);h=[c*v-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var g=[FU(BU(h[0]/c,1))+1,S3e(BU(h[1]/c,1))-1],x=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:x}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;r.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),NN(n,function(o,s){var l=(a.axisExpandable?A3e:T3e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:k3e/2,vertical:0},d=[u[i].x+t.x,u[i].y+t.y],f=c[i],h=Pi();$f(h,h,f),rs(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(m){s.push(t.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;c<a;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var f=t.getValues(s,c),h=0,p=o.length;h<p;h++){var v=l[h].getActiveState(f[h]);if(v==="inactive"){d="inactive";break}}}r(d,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)r.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return co([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Ie(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,a=r.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),f=d[0]!=null;if(c)f&&c&&s<i*d[0]?(u="jump",l=s-i*d[2]):f&&c&&s>i*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?jf(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[_ue(0,p-h/2)],a[1]=wue(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Ob(e,t){return wue(_ue(e,t[0]),t[1])}function T3e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function A3e(e,t){var r=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,
609c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const E3e=C3e;function N3e(e,t){var r=[];return e.eachComponent("parallel",function(n,a){var i=new E3e(n,e,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",wr).models[0];n.coordinateSystem=a.coordinateSystem}}),r}var I3e={create:N3e};const P3e=I3e;var Sue=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return bf([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Ie(r);if(n)for(var a=n.length-1;a>=0;a--)ki(n[a])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=r&&r<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=r&&r<=n[i][1])return"active";return"inactive"},t}(it);kr(Sue,kx);const jU=Sue;var Sf=!0,Oy=Math.min,sv=Math.max,M3e=Math.pow,D3e=1e4,L3e=6,R3e=6,VU="globalPan",$3e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},O3e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},UU={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},z3e=0,F3e=function(e){K(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new Me,n._uid="brushController_"+z3e++,D(W3e,function(a,i){this._handlers[i]=ve(a,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||KRe(n,VU,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=r.brushType,this._brushOption=He(Ie(UU),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;ZRe(r,VU,this._uid),D(this._handlers,function(n,a){r.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};D(r,function(a){n[a.panelId]=Ie(a)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=re(r,function(f){return He(Ie(UU),f,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ll(a,r,u,l).add(c).update(c).remove(d).execute(),this;function l(f,h){return(f.id!=null?f.id:n+h)+"-"+f.brushType}function u(f,h){return l(f.__brushOption,h)}function c(f,h){var p=r[f];if(h!=null&&a[h]===s)i[f]=a[h];else{var v=i[f]=h!=null?(a[h].__brushOption=p,a[h]):Cue(o,kue(o,p));U3(o,v)}}function d(f){a[f]!==s&&o.group.remove(a[f])}},t.prototype.unmount=function(){return this.enableBrush(!1),yL(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Di);function kue(e,t){var r=FC[t.brushType].createCover(e,t);return r.__brushOption=t,Aue(r,t),e.group.add(r),r}function Cue(e,t){var r=G3(t);return r.endCreating&&(r.endCreating(e,t),Aue(t,t.__brushOption)),t}function Tue(e,t){var r=t.__brushOption;G3(t).updateCoverShape(e,t,r.range,r)}function Aue(e,t){var r=t.z;r==null&&(r=D3e),e.traverse(function(n){n.z=r,n.z2=r})}function U3(e,t){G3(t).updateCommon(e,t),Tue(e,t)}function G3(e){return FC[e.__brushOption.brushType]}function H3(e,t,r){var n=e._panels;if(!n)return Sf;var a,i=e._transform;return D(n,function(o){o.isTargetByCursor(t,r,i)&&(a=o)}),a}function Eue(e,t){var r=e._panels;if(!r)return Sf;var n=t.__brushOption.panelId;return n!=null?r[n]:Sf}function yL(e){var t=e._covers,r=t.length;return D(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function kf(e,t){var r=re(e._covers,function(n){var a=n.__brushOption,i=Ie(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function B3e(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],a=r[0]-n[0],i=r[1]-n[1],o=M3e(a*a+i*i,.5);return o>L3e}function Nue(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Iue(e,t,r,n){var a=new Me;return a.add(new nt({name:"main",style:W3(r),silent:!0,draggable:!0,cursor:"move",drift:Oe(GU,e,t,a,["n","s","w","e"]),ondragend:Oe(kf,t,{isEnd:!0})})),D(n,function(i){a.add(new nt({name:i.join(""),style:{opacity:0}
609,draggable:!0,silent:!0,invisible:!0,drift:Oe(GU,e,t,a,i),ondragend:Oe(kf,t,{isEnd:!0})}))}),a}function Pue(e,t,r,n){var a=n.brushStyle.lineWidth||0,i=sv(a,R3e),o=r[0][0],s=r[1][0],l=o-a/2,u=s-a/2,c=r[0][1],d=r[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,v=d-s,m=p+a,g=v+a;ks(e,t,"main",o,s,p,v),n.transformable&&(ks(e,t,"w",l,u,i,g),ks(e,t,"e",f,u,i,g),ks(e,t,"n",l,u,m,i),ks(e,t,"s",l,h,m,i),ks(e,t,"nw",l,u,i,i),ks(e,t,"ne",f,u,i,i),ks(e,t,"sw",l,h,i,i),ks(e,t,"se",f,h,i,i))}function xL(e,t){var r=t.__brushOption,n=r.transformable,a=t.childAt(0);a.useStyle(W3(r)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?bL(e,i[0]):V3e(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?O3e[s]+"-resize":null})})}function ks(e,t,r,n,a,i,o){var s=t.childOfName(r);s&&s.setShape(G3e(q3(e,t,[[n,a],[n+i,a+o]])))}function W3(e){return Ce({strokeNoScale:!0},e.brushStyle)}function Mue(e,t,r,n){var a=[Oy(e,r),Oy(t,n)],i=[sv(e,r),sv(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function j3e(e){return Zd(e.group)}function bL(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=mC(r[t],j3e(e));return n[a]}function V3e(e,t){var r=[bL(e,t[0]),bL(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function GU(e,t,r,n,a,i){var o=r.__brushOption,s=e.toRectRange(o.range),l=Due(t,a,i);D(n,function(u){var c=$3e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Mue(s[0][0],s[1][0],s[0][1],s[1][1])),U3(t,r),kf(t,{isEnd:!1})}function U3e(e,t,r,n){var a=t.__brushOption.range,i=Due(e,r,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),U3(e,t),kf(e,{isEnd:!1})}function Due(e,t,r){var n=e.group,a=n.transformCoordToLocal(t,r),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function q3(e,t,r){var n=Eue(e,t);return n&&n!==Sf?n.clipPath(r,e._transform):Ie(r)}function G3e(e){var t=Oy(e[0][0],e[1][0]),r=Oy(e[0][1],e[1][1]),n=sv(e[0][0],e[1][0]),a=sv(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:a-r}}function H3e(e,t,r){if(!(!e._brushType||q3e(e,t.offsetX,t.offsetY))){var n=e._zr,a=e._covers,i=H3(e,t,r);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Sf||s.panelId===i.panelId)&&FC[s.brushType].contain(a[o],r[0],r[1]))return}i&&n.setCursorStyle("crosshair")}}function wL(e){var t=e.event;t.preventDefault&&t.preventDefault()}function _L(e,t,r){return e.childOfName("main").contain(t,r)}function Lue(e,t,r,n){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),B3e(e)||a){if(i&&!a){o.brushMode==="single"&&yL(e);var l=Ie(o);l.brushType=HU(l.brushType,i),l.panelId=i===Sf?null:i.panelId,a=e._creatingCover=kue(e,l),e._covers.push(a)}if(a){var u=FC[HU(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(q3(e,a,e._track)),n&&(Cue(e,a),u.updateCommon(e,a)),Tue(e,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&H3(e,t,r)&&yL(e)&&(s={isEnd:n,removeOnClick:!0});return s}function HU(e,t){return e==="auto"?t.defaultBrushType:e}var W3e={mousedown:function(e){if(this._dragging)WU(this,e);else if(!e.target||!e.target.draggable){wL(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=H3(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(H3e(this,e,n),this._dragging){wL(e);var a=Lue(this,e,n,!1);a&&kf(this,a)}},mouseup:function(e){WU(this,e)}};function WU(e,t){if(e._dragging){wL(t);var r=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(r,n),i=Lue(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&kf(e,i)}}function q3e(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var FC={lineX:qU(0),lineY:qU(1),rect:{createCover:function(e,t){function r(n){return n}return Iue({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Nue(e);return Mue(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){Pue(e,t,r,n)},updateCommon:xL,contain:_L},polygon:{createCover:function(e,t){var r=new Me;return r.add(new ka({name:"main",style:W3(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new _a({name:"main",draggable:!0,drift:Oe(U3e,e,t),ondragend:Oe(kf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:q3(e,t,r)})},updateCommon:xL,contain:_L}};function qU(e){return{createCover:function(t,r){return Iue({toRectRange:function(n){var a=[n,[0,100]];return e&&a.reverse(),a},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=Nue(t),n=Oy(r[0][e],r[1][e]),a=sv(r[0][e],r[1][e]);return[n,a]},updateCoverShape:function(t,r,n,a){var i,o=Eue(t,r);
609if(o!==Sf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,i];e&&l.reverse(),Pue(t,r,l,a)},updateCommon:xL,contain:_L}}const Y3=F3e;function Rue(e){return e=K3(e),function(t){return zie(t,e)}}function $ue(e,t){return e=K3(e),function(r){var n=t??r,a=n?e.width:e.height,i=n?e.x:e.y;return[i,i+(a||0)]}}function Oue(e,t,r){var n=K3(e);return function(a,i){return n.contain(i[0],i[1])&&!RC(a,t,r)}}function K3(e){return We.create(e)}var Y3e=["axisLine","axisTickLabel","axisName"],K3e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new Y3(n.getZr())).on("brush",ve(this._onBrush,this))},t.prototype.render=function(r,n,a,i){if(!Z3e(r,n,i)){this.axisModel=r,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=J3e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,d=r.axis.dim,f=l.getAxisLayout(d),h=Q({strokeContainThreshold:c},f),p=new ul(r,h);D(Y3e,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,a),vx(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=We.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:Rue(d),isTargetByCursor:Oue(d,s,i),getLinearBrushOtherExtent:$ue(d,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(X3e(a))},t.prototype._onBrush=function(r){var n=r.areas,a=this.axisModel,i=a.axis,o=re(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(ar);function Z3e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function X3e(e){var t=e.axis;return re(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function J3e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const Q3e=K3e;var e6e={type:"axisAreaSelect",event:"axisAreaSelected"};function t6e(e){e.registerAction(e6e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var r6e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function zue(e){e.registerComponentView(y3e),e.registerComponentModel(b3e),e.registerCoordinateSystem("parallel",P3e),e.registerPreprocessor(f3e),e.registerComponentModel(jU),e.registerComponentView(Q3e),ov(e,"parallel",jU,r6e),t6e(e)}function n6e(e){Ze(zue),e.registerChartView(a3e),e.registerSeriesModel(l3e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,d3e)}var a6e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),i6e=function(e){K(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new a6e},t.prototype.buildPath=function(r,n){var a=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+a,n.y2),r.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(r.lineTo(n.x2,n.y2+a),r.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),r.closePath()},t.prototype.highlight=function(){ol(this)},t.prototype.downplay=function(){sl(this)},t}(Je),o6e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,a){var i=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,d=r.getData(),f=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new i6e,m=$e(v);
609m.dataIndex=p.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var g=p.getModel(),x=g.getModel("lineStyle"),b=x.get("curveness"),_=p.node1.getLayout(),k=p.node1.getModel(),S=k.get("localX"),C=k.get("localY"),T=p.node2.getLayout(),E=p.node2.getModel(),A=E.get("localX"),N=E.get("localY"),P=p.getLayout(),L,R,M,$,V,B,j,I;switch(v.shape.extent=Math.max(1,P.dy),v.shape.orient=h,h==="vertical"?(L=(S!=null?S*u:_.x)+P.sy,R=(C!=null?C*c:_.y)+_.dy,M=(A!=null?A*u:T.x)+P.ty,$=N!=null?N*c:T.y,V=L,B=R*(1-b)+$*b,j=M,I=R*b+$*(1-b)):(L=(S!=null?S*u:_.x)+_.dx,R=(C!=null?C*c:_.y)+P.sy,M=A!=null?A*u:T.x,$=(N!=null?N*c:T.y)+P.ty,V=L*(1-b)+M*b,B=R,j=L*b+M*(1-b),I=$),v.setShape({x1:L,y1:R,x2:M,y2:$,cpx1:V,cpy1:B,cpx2:j,cpy2:I}),v.useStyle(x.getItemStyle()),v.style.fill){case"source":v.style.fill=p.node1.getVisual("color"),v.style.decal=p.node1.getVisual("style").decal;break;case"target":v.style.fill=p.node2.getVisual("color"),v.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var U=p.node1.getVisual("color"),Y=p.node2.getVisual("color");fe(U)&&fe(Y)&&(v.style.fill=new zv(0,0,+(h==="horizontal"),+(h==="vertical"),[{color:U,offset:0},{color:Y,offset:1}]))}dn(v,Ur(g,"edgeLabel"),{labelFetcher:r,labelDataIndex:p.dataIndex,defaultText:""+g.get("value")}),v.setTextConfig({position:"inside"});var O=g.getModel("emphasis");cn(v,g,"lineStyle",function(ie){return ie.getItemStyle()}),s.add(v),f.setItemGraphicEl(p.dataIndex,v);var H=O.get("focus");nr(v,H==="adjacency"?p.getAdjacentDataIndices():H,O.get("blurScope"),O.get("disabled")),$e(v).dataType="edge"}),o.eachNode(function(p){var v=p.getLayout(),m=p.getModel(),g=m.get("localX"),x=m.get("localY"),b=m.getModel("emphasis"),_=new nt({shape:{x:g!=null?g*u:v.x,y:x!=null?x*c:v.y,width:v.dx,height:v.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});dn(_,Ur(m),{labelFetcher:r,labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),cn(_,m),s.add(_),d.setItemGraphicEl(p.dataIndex,_),$e(_).dataType="node";var k=b.get("focus");nr(_,k==="adjacency"?p.getAdjacentDataIndices():k,b.get("blurScope"),b.get("disabled"))}),d.eachItemGraphicEl(function(p,v){var m=d.getItemModel(v);m.get("draggable")&&(p.drift=function(g,x){i._focusAdjacencyDisabled=!0,this.shape.x+=g,this.shape.y+=x,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:d.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(s6e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Ft);function s6e(e,t,r){var n=new nt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Wt(n,{shape:{width:e.width+20}},t,r),n}const l6e=o6e;var u6e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var a=r.edges||r.links,i=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ot(o[l],this,n));if(i&&a){var u=xue(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,m=v.getData().getItemLayout(p);if(m){var g=m.depth,x=v.levelModels[g];x&&(h.parentModel=x)}return h}),f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,m=v.getGraph().getEdgeByIndex(p),g=m.node1.getLayout();if(g){var x=g.depth,b=v.levelModels[x];b&&(h.parentModel=b)}return h})}},t.prototype.setNodePosition=function(r,n){var a=this.option.data||this.option.nodes,i=a[r];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(r,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Gr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(r),d=c.getLayout().value,f=this.getDataParams(r,a).data.name;return Gr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var a=e.prototype.getDataParams.call(this,r,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(r),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Zt);const c6e=u6e;function d6e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),a=r.get("nodeGap"),i=f6e(r,t);r.layoutInfo=i;var o=i.width,s=i.height,l=r.getGraph(),u=l.nodes,c=l.edges;p6e(u);var d=Et(u,function(v){return v.getLayout().value===0}),f=d.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");h6e(u,c,n,a,o,s,f,h,p)})}function f6e(e,t){return Rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h6e(e,t,r,n,a,i,o,s,l){v6e(e,t,r,a,i,s,l),x6e(e,t,i,a,n,o,s),E6e(e,s)}function p6e(e){D(e,function(t){var r=$u(t.outEdges,P2),n=$u(t.inEdges,P2),a=t.getValue()||0,i=Math.max(r,n,a);t.setLayout({value:i},!0)})}function v6e(e,t,r,n,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)l[f]=e[f].inEdges.length,l[f]===0&&u.push(e[f]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],m=v.hostGraph.data.getRawDataItem(v.dataIndex),g=m.depth!=null&&m.depth>=0;g&&m.depth>h&&(h=m.depth),v.setLayout({depth:g?m.depth:d},!0),i==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var x=0;x<v.outEdges.length;x++){var b=v.outEdges[x],_=t.indexOf(b);s[_]=0;var k=b.node2,S=e.indexOf(k);--l[S]===0&&c.indexOf(k)<0&&c.push(k)}}++d,u=c,c=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=h>d-1?h:d-1;o&&o!=="left"&&g6e(e,o,i,C);var T=i==="vertical"?(a-r)/C:(n-r)/C;y6e(e,T,i)}function Fue(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function g6e(e,t,r,n){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}D(e,function(d){Fue(d)||d.setLayout({depth:Math.max(0,n-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&m6e(e,n)}function m6e(e,t){D(e,function(r){!Fue(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function y6e(e,t,r){D(e,function(n){var a=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function x6e(e,t,r,n,a,i,o){var s=b6e(e,o);w6e(s,t,r,n,a,o),IN(s,a,r,n,o);for(var l=1;i>0;i--)l*=.99,_6e(s,l,o),IN(s,a,r,n,o),A6e(s,l,o),IN(s,a,r,n,o)}function b6e(e,t){var r=[],n=t==="vertical"?"y":"x",a=CD(e,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){r.push(a.buckets.get(i))}),r}function w6e(e,t,r,n,a,i){var o=1/0;D(e,function(s){var l=s.length,u=0;D(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(n-(l-1)*a)/u:(r-(l-1)*a)/u;c<o&&(o=c)}),D(e,function(s){D(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),D(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function IN(e,t,r,n,a){var i=a==="vertical"?"x":"y";D(e,function(o){o.sort(function(v,m){return v.getLayout()[i]-m.getLayout()[i]});for(var s,l,u,c=0,d=o.length,f=a==="vertical"?"dx":"dy",h=0;h<d;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+t;var p=a==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function _6e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(a){if
609(a.outEdges.length){var i=$u(a.outEdges,S6e,r)/$u(a.outEdges,P2);if(isNaN(i)){var o=a.outEdges.length;i=o?$u(a.outEdges,k6e,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Qu(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Qu(a,r))*t;a.setLayout({y:l},!0)}}})})}function S6e(e,t){return Qu(e.node2,t)*e.getValue()}function k6e(e,t){return Qu(e.node2,t)}function C6e(e,t){return Qu(e.node1,t)*e.getValue()}function T6e(e,t){return Qu(e.node1,t)}function Qu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function P2(e){return e.getValue()}function $u(e,t,r){for(var n=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],r);isNaN(o)||(n+=o)}return n}function A6e(e,t,r){D(e,function(n){D(n,function(a){if(a.inEdges.length){var i=$u(a.inEdges,C6e,r)/$u(a.inEdges,P2);if(isNaN(i)){var o=a.inEdges.length;i=o?$u(a.inEdges,T6e,r)/o:0}if(r==="vertical"){var s=a.getLayout().x+(i-Qu(a,r))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Qu(a,r))*t;a.setLayout({y:l},!0)}}})})}function E6e(e,t){var r=t==="vertical"?"x":"y";D(e,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[r]-i.node2.getLayout()[r]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[r]-i.node1.getLayout()[r]})}),D(e,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function N6e(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,a=r.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new ln({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function I6e(e){e.registerChartView(l6e),e.registerSeriesModel(c6e),e.registerLayout(d6e),e.registerVisual(N6e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var Bue=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,a=r.getComponent("xAxis",this.get("xAxisIndex")),i=r.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),v=h[1-c].get("type"),m=t.data;if(m&&l){var g=[];D(m,function(_,k){var S;te(_)?(S=_.slice(),_.unshift(k)):te(_.value)?(S=Q({},_),S.value=S.value.slice(),_.value.unshift(k)):S=_,g.push(S)}),t.data=g}var x=this.defaultValueDimensions,b=[{name:d,type:x2(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:x2(v),dimsDef:x.slice()}];return Zv(this,{coordDimensions:b,dimensionsCount:x.length+1,encodeDefaulter:Oe(doe,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),jue=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Zt);kr(jue,Bue,!0);const P6e=jue;var M6e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=YU(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(go(d),Vue(f,d,i,u)):d=YU(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(r){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type="boxplot",t}(Ft),D6e=function(){function e(){}return e}(),L6e=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new D6e},t.prototype.buildPath=function(r,n){var a=n.points,i=0;for(r.moveTo(a[i][0],a[i][1]),i++;i<4;i++)r.lineTo(a[i][0],a[i][1]);for(r.closePath();i<a.length;i++)r.moveTo(a[i][0],a[i][1]),i++,r.lineTo(a[i][0],a[i][1])},t}(Je);function YU(e,t,r,n,a){var i=e.ends,o=new L6e({shape:{points:a?R6e(i,n,e):i}});return Vue(e,o,t,r,a),o}function Vue(e,t,r,n,a){var i=r.hostModel,o=mx[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");cn(t,s),nr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function R6e(e,t,r){return re(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}const $6e=M6e;var Sm=D;function O6e(e){var t=z6e(e);Sm(t,function(r){var n=r.seriesModels;n.length&&(F6e(r),Sm(n,function(a,i){B6e(a,r.boxOffsetList[i],r.boxWidthList[i])}))})}function z6e(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=Ke(r,a);i<0&&(i=r.length,r[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(n)}),t}function F6e(e){var t=e.axis,r=e.seriesModels,n=r.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Sm(r,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Sm(r,function(p){var v=p.get("boxWidth");te(v)||(v=[v,v]),o.push([le(v[0],s)||0,le(v[1],s)||0])});var c=s*.8-2,d=c/n*.3,f=(c-d*(n-1))/n,h=f/2-c/2;Sm(r,function(p,v){i.push(h),h+=d+f,a.push(Math.min(Math.max(f,o[v][0]),o[v][1]))})}function B6e(e,t,r){var n=e.coordinateSystem,a=e.getData(),i=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<a.count();d++){var f=a.get(u,d),h=b(f,c[2],d),p=b(f,c[0],d),v=b(f,c[1],d),m=b(f,c[3],d),g=b(f,c[4],d),x=[];_(x,v,!1),_(x,m,!0),x.push(p,v,g,m),k(x,p),k(x,g),k(x,h),a.setItemLayout(d,{initBaseline:h[s],ends:x})}function b(S,C,T){var E=a.get(C,T),A=[];A[o]=S,A[s]=E;var N;return isNaN(S)||isNaN(E)?N=[NaN,NaN]:(N=n.dataToPoint(A),N[o]+=t),N}function _(S,C,T){var E=C.slice(),A=C.slice();E[o]+=i,A[o]-=i,T?S.push(E,A):S.push(A,E)}function k(S,C){var T=C.slice(),E=C.slice();T[o]-=i,E[o]+=i,S.push(T,E)}}function j6e(e,t){t=t||{};for(var r=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=ki(e[o].slice()),l=iE(s,.25),u=iE(s,.5),c=iE(s,.75),d=s[0],f=s[s.length-1],h=(a??1.5)*(c-l),p=i?d:Math.max(d,l-h),v=i?f:Math.min(f,c+h),m=t.itemNameFormatter,g=ke(m)?m({value:o}):fe(m)?m.replace("{value}",o+""):o+"";r.push([g,p,l,u,c,v]);for(var x=0;x<s.length;x++){var b=s[x];if(b<p||b>v){var _=[g,b];n.push(_)}}}return{boxData:r,outliers:n}}var V6e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Rn){var n="";mt(n)}var a=j6e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function U6e(e){e.registerSeriesModel(P6e),e.registerChartView($6e),e.registerLayout(O6e),e.registerTransform(V6e)}var G6e=["color","borderColor"],H6e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,a){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){fc(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(c){if(n.hasValue(c)){var d=n.getItemLayout(c);if(s&&KU(u,d))return;var f=PN(d,c,!0);Wt(f,{shape:{points:d.ends}},r,c),MN(f,n,c,o),i.add(f),n.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!n.hasValue(c)){i.remove(f);return}var h=n.getItemLayout(c);if(s&&KU(u,h)){i.remove(f);return}f?(ut(f,{shape:{points:h.ends}},r,c),go(f)):f=PN(h),MN(f,n,c,o),i.add(f),n.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),ZU(r,this.group);var n=r.get("clip",!0)?LC(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=a.getItemLayout(o),l=PN(s);MN(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){ZU(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ft),W6e=function(){function e(){}return e}(),q6e=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new W6e},t.prototype.buildPath=function(r,n){var a=n.points;this.__simpleBox?(r.moveTo(a[4][0],a[4][1]),r.lineTo(a[6][0],a[6][1])):(r.moveTo(a[0][0],a[0][1]),r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]),r.lineTo(a[3][0],a[3][1]),r.closePath(),r.moveTo(a[4][0],a[4][1]),r.lineTo(a[5][0],a[5][1]),r.moveTo(a[6][0],a[6][1]),r.lineTo(a[7][0],a[7][1]))},t}(Je);function PN(e,t,r){var n=e.ends;return new q6e({shape:{points:r?Y6e(n,e):n},z2:100})}function KU(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function MN(e,t,r,n){var a=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,cn(e,a)}function Y6e(e,t){return re(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var K6e=function(){function e(){}return e}(),DN=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new K6e},t.prototype.buildPath=function(r,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];r.moveTo(o,a[i++]),r.lineTo(o,a[i++])}else i+=3},t}(Je);function ZU(e,t,r,n){var a=e.getData(),i=a.getLayout("largePoints"),o=new DN({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new DN({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new DN({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),LN(1,o,e),LN(-1,s,e),LN(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function LN(e,t,r,n){var a=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=r.get(["itemStyle","borderColorDoji"]));var i=r.getModel("itemStyle").getItemStyle(G6e);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const Z6e=H6e;var Uue=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,a){var i=n.getItemLayout(r);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Zt);kr(Uue,Bue,!0);const X6e=Uue;function J6e(e){!e||!te(e.series)||D(e.series,function(t){Te(t)&&t.type==="
609k"&&(t.type="candlestick")})}var Q6e=["itemStyle","borderColor"],eze=["itemStyle","borderColor0"],tze=["itemStyle","borderColorDoji"],rze=["itemStyle","color"],nze=["itemStyle","color0"],aze={seriesType:"candlestick",plan:qv(),performRawSeries:!0,reset:function(e,t){function r(i,o){return o.get(i>0?rze:nze)}function n(i,o){return o.get(i===0?tze:i>0?Q6e:eze)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");Q(d,c)}}}}}};const ize=aze;var oze={seriesType:"candlestick",plan:qv(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=sze(e,r),a=0,i=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[a])),l=re(r.mapDimensionsAll(o[i]),r.getDimensionIndex,r),u=l[0],c=l[1],d=l[2],f=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,m){for(var g,x=m.getStore();(g=v.next())!=null;){var b=x.get(s,g),_=x.get(u,g),k=x.get(c,g),S=x.get(d,g),C=x.get(f,g),T=Math.min(_,k),E=Math.max(_,k),A=V(T,b),N=V(E,b),P=V(S,b),L=V(C,b),R=[];B(R,N,0),B(R,A,1),R.push(I(L),I(N),I(P),I(A));var M=m.getItemModel(g),$=!!M.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:XU(x,g,_,k,c,$),initBaseline:_>k?N[i]:A[i],ends:R,brushRect:j(S,C,b)})}function V(U,Y){var O=[];return O[a]=Y,O[i]=U,isNaN(Y)||isNaN(U)?[NaN,NaN]:t.dataToPoint(O)}function B(U,Y,O){var H=Y.slice(),ie=Y.slice();H[a]=w_(H[a]+n/2,1,!1),ie[a]=w_(ie[a]-n/2,1,!0),O?U.push(H,ie):U.push(ie,H)}function j(U,Y,O){var H=V(U,O),ie=V(Y,O);return H[a]-=n/2,ie[a]-=n/2,{x:H[0],y:H[1],width:n,height:ie[1]-H[1]}}function I(U){return U[a]=w_(U[a],1),U}}function p(v,m){for(var g=Wo(v.count*4),x=0,b,_=[],k=[],S,C=m.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(S=v.next())!=null;){var E=C.get(s,S),A=C.get(u,S),N=C.get(c,S),P=C.get(d,S),L=C.get(f,S);if(isNaN(E)||isNaN(P)||isNaN(L)){g[x++]=NaN,x+=3;continue}g[x++]=XU(C,S,A,N,c,T),_[a]=E,_[i]=P,b=t.dataToPoint(_,null,k),g[x++]=b?b[0]:NaN,g[x++]=b?b[1]:NaN,_[i]=L,b=t.dataToPoint(_,null,k),g[x++]=b?b[1]:NaN}m.setLayout("largePoints",g)}}};function XU(e,t,r,n,a,i){var o;return r>n?o=-1:r<n?o=1:o=i?0:t>0?e.get(a,t-1)<=n?1:-1:1,o}function sze(e,t){var r=e.getBaseAxis(),n,a=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=le(Ge(e.get("barMaxWidth"),a),a),o=le(Ge(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?le(s,a):Math.max(Math.min(a/2,i),o)}const lze=oze;function uze(e){e.registerChartView(Z6e),e.registerSeriesModel(X6e),e.registerPreprocessor(J6e),e.registerVisual(ize),e.registerLayout(lze)}function JU(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var cze=function(e){K(t,e);function t(r,n){var a=e.call(this)||this,i=new Cx(r,n),o=new Me;return a.add(i),a.add(o),a.updateData(r,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,a=r.color,i=r.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Sr(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}JU(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}JU(a,r)},t.prototype.highlight=function(){ol(this)},t.prototype.downplay=function(){sl(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var a=this,i=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=bx(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),d=c&&c.fill,f=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",d)});var h=Kv(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=r.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=i.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOff
609set=n/r.count(),v.z=i.getShallow("z")||0,v.zlevel=i.getShallow("zlevel")||0,v.symbolType=l,v.color=d,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?v.showEffectOn!=="render"&&a.startEffectAnimation(v):m==="normal"&&v.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=v,nr(this,f.get("focus"),f.get("blurScope"),f.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Me);const dze=cze;var fze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Tx(dze)},t.prototype.render=function(r,n,a){var i=r.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,a=n&&n.getArea&&n.getArea();return r.get("clip",!0)?a:null},t.prototype.updateTransform=function(r,n,a){var i=r.getData();this.group.dirty();var o=Ax("").reset(r,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=qCe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Ft);const hze=fze;var pze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return xl(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,a){return a.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Zt);const vze=pze;function gze(e){e.registerChartView(hze),e.registerSeriesModel(vze),e.registerLayout(Ax("effectScatter"))}var mze=function(e){K(t,e);function t(r,n,a){var i=e.call(this)||this;return i.add(i.createLine(r,n,a)),i._updateEffectSymbol(r,n),i}return t.prototype.createLine=function(r,n,a){return new j3(r,n,a)},t.prototype._updateEffectSymbol=function(r,n){var a=r.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");te(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Sr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,i,n))},t.prototype._updateEffectAnimation=function(r,n,a){var i=this.childAt(1);if(i){var o=r.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),d=Zr(n.get("delay"),function(h){return h/r.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;
609ke(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,a,i,o){if(n>0){r.__t=0;var s=this,l=r.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(r)});i||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return uu(r.__p1,r.__cp1)+uu(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,a){this.childAt(0).updateData(r,n,a),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,a=r.__p2,i=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Yr,c=fD;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var d=r.__t<1?c(n[0],i[0],a[0],o):c(a[0],i[0],n[0],1-o),f=r.__t<1?c(n[1],i[1],a[1],o):c(a[1],i[1],n[1],1-o);r.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=uu(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*uu(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var a=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,a,n)},t}(Me);const Gue=mze;var yze=function(e){K(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createPolyline(r,n,a),i}return t.prototype._createPolyline=function(r,n,a){var i=r.getItemLayout(n),o=new ka({shape:{points:i}});this.add(o),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};ut(o,s,i,n),this._updateCommonStl(r,n,a)},t.prototype._updateCommonStl=function(r,n,a){var i=this.childAt(0),o=r.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||r.hasItemOption){var d=o.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}i.useStyle(r.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var f=i.ensureState("emphasis");f.style=s,nr(this,l,u,c)},t.prototype.updateLayout=function(r,n){var a=this.childAt(0);a.setShape("points",r.getItemLayout(n))},t}(Me);const Hue=yze;var xze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,a){return new Hue(r,n,a)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=uu(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];r.x=d[0]*(1-c)+c*f[0],r.y=d[1]*(1-c)+c*f[1];var h=r.__t<1?f[0]-d[0]:d[0]-f[0],p=r.__t<1?f[1]-d[1]:d[1]-f[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(Gue);const bze=xze;var wze=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),_ze=function(e){K(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new wze},t.prototype.buildPath=function(r,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){r.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)r.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],d=a[o++],f=a[o++];if(r.moveTo(u,c),i>0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;r.quadraticCurveTo(h,p,d,f)}else r.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;
609if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var d=i[u++],f=i[u++],h=1;h<c;h++){var p=i[u++],v=i[u++];if(Ql(d,f,p,v,s,r,n))return l}l++}else for(var l=0,u=0;u<i.length;){var d=i[u++],f=i[u++],p=i[u++],v=i[u++];if(o>0){var m=(d+p)/2-(f-v)*o,g=(f+v)/2-(p-d)*o;if(Xae(d,f,m,g,p,v,s,r,n))return l}else if(Ql(d,f,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(r=a[0],n=a[1],i.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],d=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(d,o),l=Math.max(d,l)}r=this._rect=new We(i,o,s,l)}return r},t}(Je),Sze=function(){function e(){this.group=new Me}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],a=r.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new _ze({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var a=r.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=r.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=$e(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const kze=Sze;var Cze={seriesType:"lines",plan:qv(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(r){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,f=[],c=a.start;c<a.end;c++){var h=e.getLineCoords(c,o);r&&(s[d++]=h);for(var p=0;p<h;p++)f=t.dataToPoint(o[p],!1,f),s[d++]=f[0],s[d++]=f[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var v=i.getItemModel(c),h=e.getLineCoords(c,o),m=[];if(r)for(var g=0;g<h;g++)m.push(t.dataToPoint(o[g]));else{m[0]=t.dataToPoint(o[0]),m[1]=t.dataToPoint(o[1]);var x=v.get(["lineStyle","curveness"]);+x&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*x,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*x])}i.setItemLayout(c,m)}}}}}};const Wue=Cze;var Tze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=r.get("clip",!0)&&LC(r.coordinateSystem,!1,r);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,a){var i=r.getData(),o=this._updateLineDraw(i,r);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,a){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,a){var i=r.getData(),o=r.pipelineContext;
609if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Wue.reset(r,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(r,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new kze:new V3(o?i?bze:Hue:i?Gue:j3),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Ft);const Aze=Tze;var Eze=typeof Uint32Array>"u"?Array:Uint32Array,Nze=typeof Float64Array>"u"?Array:Float64Array;function QU(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=re(t,function(r){var n=[r[0].coord,r[1].coord],a={coords:n};return r[0].name&&(a.fromName=r[0].name),r[1].name&&(a.toName=r[1].name),yO([a,r[0],r[1]])}))}var Ize=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],QU(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(QU(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=KS(this._flatCoords,n.flatCoords),this._flatCoordsOffset=KS(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[r*2],i=this._flatCoordsOffset[r*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),lt(r[0])){for(var a=r.length,i=new Eze(a),o=new Nze(a),s=0,l=0,u=0,c=0;c<a;){u++;var d=r[c++];i[l++]=s+n,i[l++]=d;for(var f=0;f<d;f++){var h=r[c++],p=r[c++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var a=new qn(["value"],this);return a.hasItemOption=!1,a.initData(r.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Gr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Zt);const Pze=Ize;function zb(e){return e instanceof Array||(e=[e,e]),e}var Mze={seriesType:"lines",reset:function(e){var t=zb(e.get("symbol")),r=zb(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function a(i,o){var s=i.getItemModel(o),l=zb(s.getShallow("symbol",!0)),u=zb(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const Dze=Mze;function Lze(e){e.registerChartView(Aze),e.registerSeriesModel(Pze),e.registerLayout(Wue),e.registerVisual(Dze)}var Rze=256,$ze=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=qu.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=t.length;d.width=r,d.height=n;for(var p=0;p<h;++p){var v=t[p],m=v[0],g=v[1],x=v[2],b=a(x);f.globalAlpha=b,f.drawImage(s,m-c,g-c)}if(!d.width||!d.height)return d;for(var _=f.getImageData(0,0,d.width,d.height),k=_.data,S=0,C=k.length,T=this.minOpacity,E=this.maxOpacity,A=E-T;S<C;){var b=k[S+3]/256,N=Math.floor(b*(Rze-1))*4;if(b>0){var P=o(b)?l:u;b>0&&(b=b*A+T),k[S++]=P[N],k[S++]=P[N+1],k[S++]=P[N+2],k[S++]=P[N+3]*b*256}else S+=4}return f.putImageData(_,0,0),d},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=qu.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-r,r,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,a=n[r]||(n[r]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const Oze=$ze;function zze(e,t,r){var n=e[1]-e[0];t=re(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&r[s]}}function Fze(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function eG(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Bze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,a,0,r.getData().count()):eG(o)&&this._renderOnGeo(o,r,i,a)},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,a,i){var o=n.coordinateSystem;o&&(eG(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){fc(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,a,i,o){var s=r.coordinateSystem,l=Ff(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var v=this.group,m=r.getData(),g=r.getModel(["emphasis","itemStyle"]).getItemStyle(),x=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),_=r.get(["itemStyle","borderRadius"]),k=Ur(r),S=r.getModel("emphasis"),C=S.get("focus"),T=S.get("blurScope"),E=S.get("disabled"),A=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],N=a;N<i;N++){var P=void 0,L=m.getItemVisual(N,"style");if(l){var R=m.get(A[0],N),M=m.get(A[1],N);if(isNaN(m.get(A[2],N))||isNaN(R)||isNaN(M)||R<d[0]||R>d[1]||M<f[0]||M>f[1])continue;var $=s.dataToPoint([R,M]);P=new nt({shape:{x:$[0]-u/2,y:$[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(m.get(A[1],N)))continue;P=new nt({z2:1,shape:s.dataToRect([m.get(A[0],N)]).contentShape,style:L})}if(m.hasItemOption){var V=m.getItemModel(N),B=V.getModel("emphasis");g=B.getModel("itemStyle").getItemStyle(),x=V.getModel(["blur","itemStyle"]).getItemStyle(),b=V.getModel(["select","itemStyle"]).getItemStyle(),_=V.get(["itemStyle","borderRadius"]),C=B.get("focus"),T=B.get("blurScope"),E=B.get("disabled"),k=Ur(V)}P.shape.r=_;var j=r.getRawValue(N),I="-";j&&j[2]!=null&&(I=j[2]+""),dn(P,k,{labelFetcher:r,labelDataIndex:N,defaultOpacity:L.opacity,defaultText:I}),P.ensureState("emphasis").style=g,P.ensureState("blur").style=x,P.ensureState("select").style=b,nr(P,C,T,E),P.incremental=o,o&&(P.states.emphasis.hoverLayer=!0),v.add(P),m.setItemGraphicEl(N,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(r,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Oze;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),d=r.getRoamTransform();c.applyTransform(d);
609var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),m=p-f,g=v-h,x=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(x,function(C,T,E){var A=r.dataToPoint([C,T]);return A[0]-=f,A[1]-=h,A.push(E),A}),_=a.getExtent(),k=a.type==="visualMap.continuous"?Fze(_,a.option.range):zze(_,a.getPieceList(),a.option.selected);u.update(b,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},k);var S=new hn({style:{width:m,height:g,x:f,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(Ft);const jze=Bze;var Vze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return xl(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=yx.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Zt);const Uze=Vze;function Gze(e){e.registerChartView(jze),e.registerSeriesModel(Uze)}var Hze=["itemStyle","borderWidth"],tG=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],RN=new os,Wze=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:tG[+c],categoryDim:tG[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=nG(o,h),v=rG(o,h,p,f),m=aG(o,f,v);o.setItemGraphicEl(h,m),i.add(m),oG(m,f,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(v);return}var m=nG(o,h),g=rG(o,h,m,f),x=Jue(o,g);v&&x!==v.__pictorialShapeStr&&(i.remove(v),o.setItemGraphicEl(h,null),v=null),v?Qze(v,f,g):v=aG(o,f,g,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=g,i.add(v),oG(v,f,g)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&iG(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var a=this.group,i=this._data;r.get("animation")?i&&i.eachItemGraphicEl(function(o){iG(i,$e(o).dataIndex,r,o)}):a.removeAll()},t.type="pictorialBar",t}(Ft);function rG(e,t,r,n){var a=e.getItemLayout(t),i=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,d=r.isAnimationEnabled(),f={dataIndex:t,layout:a,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?r:null,hoverScale:d&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};qze(r,i,a,n,f),Yze(e,t,a,i,o,f.boundingLength,f.pxSign,c,n,f),Kze(r,f.symbolScale,u,n,f);var h=f.symbolSize,p=Kv(r.get("symbolOffset"),h);return Zze(r,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function qze(e,t,r,n,a){var i=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[i.wh]<=0),c;if(te(o)){var d=[$N(s,o[0])-l,$N(s,o[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else o!=null?c=$N(s,o)-l:t?c=n.coordSysExtent[i.index][u]-l:c=r[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=r[i.wh]),a.pxSign=c>0?1:-1}function $N(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Yze(e,t,r,n,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(r[d.wh]),h=e.getItemVisual(t,"symbolSize"),p;te(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=le(p[d.index],f),p[c.index]=le(p[c.index],n?f:Math.abs(i)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function Kze(e,t,r,n,a){var i=e.get(Hze)||0;i&&(RN.attr({scaleX:t[0],scaleY:t[1],rotation:r}),RN.updateTransform(),i/=RN.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Zze(e,t,r,n,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,v=Math.max(t[h.index]+s,0),m=v;if(n){var g=Math.abs(l),x=Zr(e.get("symbolMargin"),"15%")+"",b=!1;x.lastIndexOf("!")===x.length-1&&(b=!0,x=x.slice(0,x.length-1));var _=le(x,t[h.index]),k=Math.max(v+_*2,0),S=b?0:_*2,C=$ae(n),T=C?n:sG((g+S)/k),E=g-T*v;_=E/2/(b?T:Math.max(T-1,1)),k=v+_*2,S=b?0:_*2,!C&&n!=="fixed"&&(T=u?sG((Math.abs(u)+S)/k):0),m=T*k-S,d.repeatTimes=T,d.symbolMargin=_}var A=p*(m/2),N=d.pathPosition=[];N[f.index]=r[f.wh]/2,N[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(N[0]+=i[0],N[1]+=i[1]);var P=d.bundlePosition=[];P[f.index]=r[f.xy],P[h.index]=r[h.xy];var L=d.barRectShape=Q({},r);L[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(N[h.index]+A)),L[f.wh]=r[f.wh];var R=d.clipShape={};R[f.xy]=-r[f.xy],R[f.wh]=c.ecSize[f.wh],R[h.xy]=0,R[h.wh]=r[h.wh]}function que(e){var t=e.symbolPatternSize,r=Sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function Yue(e,t,r,n){var a=e.__pictorialBundle,i=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,d=i[t.valueDim.index]+o+r.
vendor: 11,627 bytes, line 609
609symbolMargin*2;for(Z3(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?Pp(v,null,p(c),r,n):Pp(v,null,{scaleX:0,scaleY:0},r,n,function(){a.remove(v)}),c++});c<u;c++){var f=que(r);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,a.add(f);var h=p(c);Pp(f,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function p(v){var m=s.slice(),g=r.pxSign,x=v;return(r.symbolRepeatDirection==="start"?g>0:g<0)&&(x=u-1-v),m[l.index]=d*(x-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function Kue(e,t,r,n){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Pp(i,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(i=e.__pictorialMainPath=que(r),a.add(i),Pp(i,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function Zue(e,t,r){var n=Q({},t.barRectShape),a=e.__pictorialBarRect;a?Pp(a,null,{shape:n},t,r):(a=e.__pictorialBarRect=new nt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function Xue(e,t,r,n){if(r.symbolClip){var a=e.__pictorialClipPath,i=Q({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(a)ut(a,{shape:i},s,l);else{i[o.wh]=0,a=new nt({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=r.clipShape[o.wh],mx[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function nG(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Xze,r.isAnimationEnabled=Jze,r}function Xze(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Jze(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function aG(e,t,r,n){var a=new Me,i=new Me;return a.add(i),a.__pictorialBundle=i,i.x=r.bundlePosition[0],i.y=r.bundlePosition[1],r.symbolRepeat?Yue(a,t,r):Kue(a,t,r),Zue(a,r,n),Xue(a,t,r,n),a.__pictorialShapeStr=Jue(e,r),a.__pictorialSymbolMeta=r,a}function Qze(e,t,r){var n=r.animationModel,a=r.dataIndex,i=e.__pictorialBundle;ut(i,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,a),r.symbolRepeat?Yue(e,t,r,!0):Kue(e,t,r,!0),Zue(e,r,!0),Xue(e,t,r,!0)}function iG(e,t,r,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];Z3(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(i,function(o){Ku(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function Jue(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Z3(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Pp(e,t,r,n,a,i){t&&e.attr(t),n.symbolClip&&!a?r&&e.attr(r):r&&mx[a?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,i)}function oG(e,t,r){var n=r.dataIndex,a=r.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");Z3(e,function(v){if(v instanceof hn){var m=v.style;v.useStyle(Q({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else v.useStyle(r.style);var g=v.ensureState("emphasis");g.style=o,f&&(g.scaleX=v.scaleX*1.1,g.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;dn(p,Ur(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:iv(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),nr(e,c,d,i.get("disabled"))}function sG(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const e8e=Wze;var t8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=hc(k2.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(k2);const r8e=t8e;function n8e(e){e.registerChartView(e8e),e.registerSeriesModel(r8e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Oe(Dse,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lse("pictorialBar"))}var a8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,a){var i=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ll(this._layersSeries||[],l,f,f),p=[];h.add(ve(v,this,"add")).update(ve(v,this,"update")).remove(ve(v,this,"remove")).execute();function v(m,g,x){var b=o._layers;if(m==="remove"){s.remove(b[g]);return}for(var _=[],k=[],S,C=l[g].indices,T=0;T<C.length;T++){var E=i.getItemLayout(C[T]),A=E.x,N=E.y0,P=E.y;_.push(A,N),k.push(A,N+P),S=i.getItemVisual(C[T],"style")}var L,R=i.getItemLayout(C[0]),M=r.getModel("label"),$=M.get("margin"),V=r.getModel("emphasis");if(m==="add"){var B=p[g]=new Me;L=new _le({shape:{points:_,stackedOnPoints:k,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(L),s.add(B),r.isAnimationEnabled()&&L.setClipPath(i8e(L.getBoundingRect(),r,function(){L.removeClipPath()}))}else{var B=b[x];L=B.childAt(0),s.add(B),p[g]=B,ut(L,{shape:{points:_,stackedOnPoints:k}},r),go(L)}dn(L,Ur(r),{labelDataIndex:C[T-1],defaultText:i.getName(C[T-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var j=L.getTextContent();j&&(j.x=R.x-$,j.y=R.y0+R.y/2),L.useStyle(S),i.setItemGraphicEl(g,L),cn(L,r),nr(L,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(Ft);function i8e(e,t,r){var n=new nt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Wt(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}const o8e=a8e;var ON=2,s8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Nx(ve(this.getData,this),ve(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,a={},i=CD(r,function(f){return a.hasOwnProperty(f[0]+"")||(a[f[0]+""]=-1),f[2]}),o=[];i.buckets.each(function(f,h){o.push({name:h,dataList:f})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var d=o[l].dataList[c][0]+"";a[d]=l}for(var d in a)a.hasOwnProperty(d)&&a[d]!==l&&(a[d]=l,r[n]=[d,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var a=this.getReferringComponents("singleAxis",wr).models[0],i=a.get("type"),o=Et(r.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Se(),c=0,d=0;d<s.length;++d)l.push(s[d][ON]),u.get(s[d][ON])||(u.set(s[d][ON],c),c++);var f=_x(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:x2(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new qn(f,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),a=[],i=0;i<n;++i)a[i]=i;var o=r.mapDimension("single"),s=CD(a,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,f){return r.get(o,d)-r.get(o,f)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,a){te(r)||(r=r?[r]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,f=-1,h=o[c].indices.length,p=0;p<h;++p){var v=i.get(r[0],o[c].indices[p]),m=Math.abs(v-n);m<=d&&(u=v,d=m,f=o[c].indices[p])}s.push(f)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=i.getName(r),s=i.get(i.mapDimension("value"),r);return Gr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Zt);const l8e=s8e;function u8e(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),a=r.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=r.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=le(s[0],o.height),s[1]=le(s[1],o.height);var u=o.height-s[0]-s[1];lG(n,r,u)}else{s[0]=le(s[0],o.width),s[1]=le(s[1],o.width);var c=o.width-s[0]-s[1];lG(n,r,c)}n.setLayout("layoutInfo",i)})}function lG(e,t,r){if(e.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=re(a,function(m){return re(m.indices,function(g){var x=n.dataToPoint(e.get(i,g));return x[1]=e.get(o,g),x})}),l=c8e(s),u=l.y0,c=r/l.max,d=a.length,f=a[0].indices.length,h,p=0;p<f;++p){h=u[p]*c,e.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var v=1;v<d;++v)h+=s[v-1][p][1]*c,e.setItemLayout(a[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:h,y:s[v][p][1]*c})}}function c8e(e){for(var t=e.length,r=e[0].length,n=[],a=[],i=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<r;++u)a[u]=(i-n[u])/2;i=0;for(var c=0;c<r;++c){var d=n[c]+a[c];d>i&&(i=d)}return{y0:a,max:i}}function d8e(e){e.registerChartView(o8e),e.registerSeriesModel(l8e),e.registerLayout(u8e),e.registerProcessor(Ex("themeRiver"))}var f8e=2,h8e=4,p8e=function(e){K(t,e);function t(r,n,a,i){var o=e.call(this)||this;o.z2=f8e,o.textConfig={inside:!0},$e(o).seriesIndex=n.seriesIndex;var s=new st({z2:h8e,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,a,i),o}return t.prototype.updateData=function(r,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;$e(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),d=Q({},c);d.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var h=n.getVisual("decal");h&&(f.decal=nv(h,o));var p=Rd(l.getModel("itemStyle"),d,!0);Q(d,p),D(Xn,function(x){var b=s.ensureState(x),_=l.getModel([x,"itemStyle"]);b.style=_.getItemStyle();var k=Rd(_,d);k&&(b.shape=k)}),r?(s.setShape(d),s.shape.r=c.r0,Wt(s,{shape:{r:c.r}},a,n.dataIndex)):(ut(s,{shape:d},a),go(s)),s.useStyle(f),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),g=m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;nr(this,g,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minA
609ngle")/180*Math.PI,v=i.get("show")&&!(p!=null&&Math.abs(s)<p);f.ignore=!v,D(xy,function(g){var x=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),b=g==="normal",_=b?f:f.ensureState(g),k=r.getFormattedLabel(h,g);b&&(k=k||n.node.name),_.style=$t(x,{},null,g!=="normal",!0),k&&(_.style.text=k);var S=x.get("show");S!=null&&!b&&(_.ignore=!S);var C=m(x,"position"),T=b?d:d.states[g],E=T.style.fill;T.textConfig={outsideFill:x.get("color")==="inherit"?E:null,inside:C!=="outside"};var A,N=m(x,"distance")||0,P=m(x,"align");C==="outside"?(A=o.r+N,P=l>Math.PI/2?"right":"left"):!P||P==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,P="center"):P==="left"?(A=o.r0+N,l>Math.PI/2&&(P="right")):P==="right"&&(A=o.r-N,l>Math.PI/2&&(P="left")),_.style.align=P,_.style.verticalAlign=m(x,"verticalAlign")||"middle",_.x=A*u+o.cx,_.y=A*c+o.cy;var L=m(x,"rotate"),R=0;L==="radial"?(R=Fs(-l),R>Math.PI/2&&R<Math.PI*1.5&&(R+=Math.PI)):L==="tangential"?(R=Math.PI/2-l,R>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI)):lt(L)&&(R=L*Math.PI/180),_.rotation=R});function m(g,x){var b=g.get(x);return b??i.get(x)}f.dirtyStyle()},t}(wa);const uG=p8e;var SL="sunburstRootToNode",cG="sunburstHighlight",v8e="sunburstUnhighlight";function g8e(e){e.registerAction({type:SL,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Dy(t,[SL],a);if(o){var s=a.getViewRoot();s&&(t.direction=R3(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:cG,update:"none"},function(t,r,n){t=Q({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Dy(t,[cG],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Q(t,{type:"highlight"}))}),e.registerAction({type:v8e,update:"updateView"},function(t,r,n){t=Q({},t),n.dispatchAction(Q(t,{type:"downplay"}))})}var m8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){var o=this;this.seriesModel=r,this.api=a,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,d=r.get("renderLabelForZeroData"),f=[];u.eachNode(function(x){f.push(x)});var h=this._oldChildren||[];p(f,h),g(l,u),this._initEvents(),this._oldChildren=f;function p(x,b){if(x.length===0&&b.length===0)return;new ll(b,x,_,_).add(k).update(k).remove(Oe(k,null)).execute();function _(S){return S.getId()}function k(S,C){var T=S==null?null:x[S],E=C==null?null:b[C];v(T,E)}}function v(x,b){if(!d&&x&&!x.getValue()&&(x=null),x!==l&&b!==l){if(b&&b.piece)x?(b.piece.updateData(!1,x,r,n,a),s.setItemGraphicEl(x.dataIndex,b.piece)):m(b);else if(x){var _=new uG(x,r,n,a);c.add(_),s.setItemGraphicEl(x.dataIndex,_)}}}function m(x){x&&x.piece&&(c.remove(x.piece),x.piece=null)}function g(x,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,x,r,n,a):(o.virtualPiece=new uG(x,r,n,a),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=r.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";d2(u,c)}}a=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:SL,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ft);const y8e=m8e;var x8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var a={name:r.name,children:r.data};Que(a);var i=this._levelModels=re(r.levels||[],function(l){return new Ot(l,this,n)},this),o=L3.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=OC(a,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){nue(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}}
609,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Zt);function Que(e){var t=0;D(e.children,function(n){Que(n);var a=n.value;te(a)&&(a=a[0]),t+=a});var r=e.value;te(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),te(e.value)?e.value[0]=r:e.value=r}const b8e=x8e;var dG=Math.PI/180;function w8e(e,t,r){t.eachSeriesByType(e,function(n){var a=n.get("center"),i=n.get("radius");te(i)||(i=[0,i]),te(a)||(a=[a,a]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=le(a[0],o),c=le(a[1],s),d=le(i[0],l/2),f=le(i[1],l/2),h=-n.get("startAngle")*dG,p=n.get("minAngle")*dG,v=n.getData().tree.root,m=n.getViewRoot(),g=m.depth,x=n.get("sort");x!=null&&ece(m,x);var b=0;D(m.children,function($){!isNaN($.getValue())&&b++});var _=m.getValue(),k=Math.PI/(_||b)*2,S=m.depth>0,C=m.height-(S?-1:1),T=(f-d)/(C||1),E=n.get("clockwise"),A=n.get("stillShowZeroSum"),N=E?1:-1,P=function($,V){if($){var B=V;if($!==v){var j=$.getValue(),I=_===0&&A?k:j*k;I<p&&(I=p),B=V+N*I;var U=$.depth-g-(S?-1:1),Y=d+T*U,O=d+T*(U+1),H=n.getLevelModel($);if(H){var ie=H.get("r0",!0),ee=H.get("r",!0),se=H.get("radius",!0);se!=null&&(ie=se[0],ee=se[1]),ie!=null&&(Y=le(ie,l/2)),ee!=null&&(O=le(ee,l/2))}$.setLayout({angle:I,startAngle:V,endAngle:B,clockwise:E,cx:u,cy:c,r0:Y,r:O})}if($.children&&$.children.length){var oe=0;D($.children,function(be){oe+=P(be,V+oe)})}return B-V}};if(S){var L=d,R=d+T,M=Math.PI*2;v.setLayout({angle:M,startAngle:h,endAngle:h+M,clockwise:E,cx:u,cy:c,r0:L,r:R})}P(m,h)})}function ece(e,t){var r=e.children||[];e.children=_8e(r,t),r.length&&D(e.children,function(n){ece(n,t)})}function _8e(e,t){if(ke(t)){var r=re(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return r.sort(function(a,i){return t(a.params,i.params)}),re(r,function(a){return e[a.index]})}else{var n=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function S8e(e){var t={};function r(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&fe(s)&&(s=vD(s,(n.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Q(u,l)})})}function k8e(e){e.registerChartView(y8e),e.registerSeriesModel(b8e),e.registerLayout(Oe(w8e,"sunburst")),e.registerProcessor(Oe(Ex,"sunburst")),e.registerVisual(S8e),g8e(e)}var fG={color:"fill",borderColor:"stroke"},C8e={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ks=at(),T8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return xl(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Ks(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Zt);const A8e=T8e;function E8e(e,t){return t=t||[0,0],re(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function N8e(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ve(E8e,e)}}}function I8e(e,t){return t=t||[0,0],re([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function P8e(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ve(I8e,e)}}}function M8e(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function D8e(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ve(M8e,e)}}}function L8e(e,t){return t=t||[0,0],re(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function R8e(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:ve(L8e,e)}}}function $8e(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}function tce(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ye(e,"text")))}function rce(e,t,r){var n=e,a,i,o;
609if(t==="text")o=n;else{o={},ye(n,"text")&&(o.text=n.text),ye(n,"rich")&&(o.rich=n.rich),ye(n,"textFill")&&(o.fill=n.textFill),ye(n,"textStroke")&&(o.stroke=n.textStroke),ye(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ye(n,"fontSize")&&(o.fontSize=n.fontSize),ye(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ye(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=ye(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),ye(n,"textPosition")&&(a.position=n.textPosition),ye(n,"textOffset")&&(a.offset=n.textOffset),ye(n,"textRotation")&&(a.rotation=n.textRotation),ye(n,"textDistance")&&(a.distance=n.textDistance)}return hG(o,e),D(o.rich,function(l){hG(l,l)}),{textConfig:a,textContent:i}}function hG(e,t){t&&(t.font=t.textFont||t.font,ye(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ye(t,"textAlign")&&(e.align=t.textAlign),ye(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ye(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ye(t,"textWidth")&&(e.width=t.textWidth),ye(t,"textHeight")&&(e.height=t.textHeight),ye(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ye(t,"textPadding")&&(e.padding=t.textPadding),ye(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ye(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ye(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ye(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ye(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ye(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ye(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function pG(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";vG(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,D(t.rich,function(s){vG(s,s)}),n}function vG(e,t){t&&(ye(t,"fill")&&(e.textFill=t.fill),ye(t,"stroke")&&(e.textStroke=t.fill),ye(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ye(t,"font")&&(e.font=t.font),ye(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ye(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ye(t,"fontSize")&&(e.fontSize=t.fontSize),ye(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ye(t,"align")&&(e.textAlign=t.align),ye(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ye(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ye(t,"width")&&(e.textWidth=t.width),ye(t,"height")&&(e.textHeight=t.height),ye(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ye(t,"padding")&&(e.textPadding=t.padding),ye(t,"borderColor")&&(e.textBorderColor=t.borderColor),ye(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ye(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ye(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ye(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ye(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ye(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ye(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ye(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ye(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ye(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var nce={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gG=tt(nce);ts(ns,function(e,t){return e[t]=1,e},{});ns.join(", ");var M2=["","style","shape","extra"],lv=at();function X3(e,t,r,n,a){var i=e+"Animation",o=Fv(e,n,a)||{},s=lv(t).userDuring;return o.duration>0&&(o.during=s?ve(j8e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Q(o,r[i]),o}function A_(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=lv(e),u=t.style;l.userDuring=t.during;var c={},d={};if(U8e(e,t,d),yG("shape",t,d),yG("extra",t,d),!i&&s&&(V8e(e,t,c),mG("shape",e,t,c),mG("extra",e,t,c),G8e(e,t,u,c)
609),d.style=u,O8e(e,d,o),F8e(e,t),s)if(i){var f={};D(M2,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(f[p]=f[p]||{}),Q(p?f[p]:f,v.enterFrom))});var h=X3("enter",e,t,r,a);h.duration>0&&e.animateFrom(f,h)}else z8e(e,t,a||0,r,c);ace(e,t),u?e.dirty():e.markRedraw()}function ace(e,t){for(var r=lv(e).leaveToProps,n=0;n<M2.length;n++){var a=M2[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=lv(e).leaveToProps={}),a&&(r[a]=r[a]||{}),Q(a?r[a]:r,i.leaveTo))}}function BC(e,t,r,n){if(e){var a=e.parent,i=lv(e).leaveToProps;if(i){var o=X3("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function ef(e){return e==="all"}function O8e(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function z8e(e,t,r,n,a){if(a){var i=X3("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function F8e(e,t){ye(t,"silent")&&(e.silent=t.silent),ye(t,"ignore")&&(e.ignore=t.ignore),e instanceof Mi&&ye(t,"invisible")&&(e.invisible=t.invisible),e instanceof Je&&ye(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Mo={},B8e={setTransform:function(e,t){return Mo.el[e]=t,this},getTransform:function(e){return Mo.el[e]},setShape:function(e,t){var r=Mo.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Mo.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Mo.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Mo.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Mo.el.extra||(Mo.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Mo.el.extra;if(t)return t[e]}};function j8e(){var e=this,t=e.el;if(t){var r=lv(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Mo.el=t,n(B8e)}}function mG(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),ef(l))Q(o,i);else for(var u=Pt(l),c=0;c<u.length;c++){var d=u[c],f=i[d];o[d]=f}else if(ef(s)||Ke(s,e)>=0){!o&&(o=n[e]={});for(var h=tt(i),c=0;c<h.length;c++){var d=h[c],f=i[d];H8e(a[d],f)&&(o[d]=f)}}}}}function yG(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=tt(n),o=0;o<i.length;o++){var s=i[o];a[s]=dm(n[s])}}function V8e(e,t,r){for(var n=t.transition,a=ef(n)?ns:Pt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function U8e(e,t,r){for(var n=0;n<gG.length;n++){var a=gG[n],i=nce[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<ns.length;n++){var s=ns[n];t[s]!=null&&(r[s]=t[s])}}function G8e(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!ef(o)){var l=Pt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],d=a[c];i[c]=d}}else if(e.getAnimationStyleProps&&(ef(s)||ef(o)||Ke(s,"style")>=0)){var f=e.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=n.style={});for(var p=tt(r),u=0;u<p.length;u++){var c=p[u];if(h[c]){var d=a[c];i[c]=d}}}}}}}function H8e(e,t){return Ln(e)?e!==t:e!=null&&isFinite(e)}var ice=at(),W8e=["percent","easing","shape","style","extra"];function oce(e){e.stopAnimation("keyframe"),e.attr(ice(e))}function D2(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(te(t)){D(t,function(s){D2(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Fv("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=ice(e);D(M2,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),D(n,function(u){var c=e.animators,d=s?u[s]:u;if(d){var f=tt(d);if(s||(f=Et(f,function(v){return Ke(W8e,v)<0})),!!f.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(f);s&&(o[s]=o[s]||{});var p=s?o[s]:o;D(f,function(v){p[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(a*u.percent,d,f,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Zs="emphasis",gu="normal",J3="blur",Q3="select",ec=[gu,Zs,J3,Q3],zN={normal:["itemStyle"],emphasis:[Zs,"itemStyle"],blur:[J3,"itemStyle"],select:[Q3,"itemStyle"]},FN={normal:["label"],emphasis:[Zs,"label"],blur:[J3,"label"],select:[Q3,"label"]},q8e=["x","y"],Y8e="e\0\0",ni={normal:{},emphasis:{},blur:{},select:{}},K8e={cartesian2d:N8e,geo:P8e,single:D8e,polar:R8e,calendar:$8e};function kL(e){return e instanceof Je}function CL(e){return e instanceof Mi}
609function Z8e(e,t){t.copyTransform(e),CL(t)&&CL(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,kL(t)&&kL(e)&&t.setShape(e.shape))}var X8e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=xG(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(d){BN(a,null,d,u(d,i),r,l,s)}).remove(function(d){var f=o.getItemGraphicEl(d);f&&BC(f,Ks(f).option,r)}).update(function(d,f){var h=o.getItemGraphicEl(f);BN(a,h,d,u(d,i),r,l,s)}).execute();var c=r.get("clip",!0)?LC(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=xG(n,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var d=r.start;d<r.end;d++){var f=BN(null,null,d,l(d,o),n,this.group,s);f&&(f.traverse(c),u.push(f))}},t.prototype.eachRendered=function(r){fc(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(Ft);const J8e=X8e;function e6(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=uce(n);r=gC(i,null,a,n.layout||"center"),Ks(r).customPathData=i}else if(t==="image")r=new hn({}),Ks(r).customImagePath=e.style.image;else if(t==="text")r=new st({});else if(t==="group")r=new Me;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=UO(t);if(!o){var s="";mt(s)}r=new o}return Ks(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function t6(e,t,r,n,a,i,o){oce(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=q8e);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;ye(u,"textFill")&&(u.fill=u.textFill),ye(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=kL(t)?l.decal:null;e&&d&&(d.dirty=!0,c=nv(d,e)),l.__decalPattern=c}if(CL(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}A_(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),D2(t,n.keyframeAnimation,i)}function sce(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),wf(i)}}function Q8e(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<ec.length;s++)eFe(n,t,ec[s])}}function eFe(e,t,r){var n=r===gu,a=n?t:L2(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function xG(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):K8e[i.type](i));for(var s=Ce({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:_,style:S,ordinalRawValue:k,styleEmphasis:C,visual:A,barLayout:N,currentSeriesIndices:P,font:L},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:tFe(e.getData())},u,c,d={},f={},h={},p={},v=0;v<ec.length;v++){var m=ec[v];h[m]=e.getModel(zN[m]),p[m]=e.getModel(FN[m])}function g(R){return R===u?c||(c=t.getItemModel(R)):t.getItemModel(R)}function x(R,M){return t.hasItemOption?R===u?d[M]||(d[M]=g(R).getModel(zN[M])):g(R).getModel(zN[M]):h[M]}function b(R,M){return t.hasItemOption?R===u?f[M]||(f[M]=g(R).getModel(FN[M])):g(R).getModel(FN[M]):p[M]}return function(R,M){return u=R,c=null,d={},f={},a&&a(Ce({dataIndexInside:R,dataIndex:t.getRawIndex(R),actionType:M?M.type:null},l),s)};function _(R,M){return M==null&&(M=u),t.getStore().get(t.getDimensionIndex(R||0),M)}function k(R,M){M==null&&(M=u),R=R||0;var $=t.getDimensionInfo(R);if(!$){var V=t.getDimensionIndex(R);return V>=0?t.getStore().get(V,M):void 0}var B=t.get($.name,M),j=$&&$.ordinalMeta;return j?j.categories[B]:B}function S(R,M){M==null&&(M=u);var $=t.getItemVisual(M,"style"),V=$&&$.fill,B=$&&$.opacity,j=x(M,gu).getItemStyle();V!=null&&(j.fill=V),B!=null&&(j.opacity=B);var I={inheritColor:fe(V)?V:"#000"},U=b(M,gu),Y=$t(U,null,I,!1,!0);Y.text=U.getShallow("show")?Ge(e.getFormattedLabel(M,gu),iv(t,M)):null;var O=u2(U,I,!1);return E(R,j),j=pG(j,Y,O),R&&T(j,R),j.legacy=!0,j}function C(R,M){M==null&&(M=u);var $=x(M,Zs).getItemStyle(),V=b(M,Zs),B=$t(V,null,null,!0,!0);B.text=V.getShallow("show")?Hs(e.getFormattedLabel(M,Zs),e.getFormattedLabel(M,gu),iv(t,M)):null;var j=u2(V,null,!0);return E(R,$),$=pG($,B,j),R&&T($,R),$.legacy=!0,$}function T(R,M){for(var $ in M)ye(M,$)&&(R[$]=M[$])}function E(R,M){R&&(R.textFill&&(M.textFill=R.textFill),R.textPosition&&(M.textPosition=R.textPosition))}function A(R,M){if(M==null&&(M=u),ye(fG,R)){var $=t.getItemVisual(M,"style");return $?$[fG[R]]:null}if(ye(C8e,R))return t.getItemVisual(M,R)}function N(R){if(i.type==="cartesian2d"){var M=i.getBaseAxis();return nMe(Ce({axis:M},R))}}function P(){return r.getCurrentSeriesIndices()}function L(R){return jie(R,r)}}function tFe(e){var t={};return D(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}
609function BN(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=r6(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&nr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function r6(e,t,r,n,a,i){var o=-1,s=t;t&&lce(t,n,a)&&(o=Ke(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=e6(n),s&&Z8e(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ni.normal.cfg=ni.normal.conOpt=ni.emphasis.cfg=ni.emphasis.conOpt=ni.blur.cfg=ni.blur.conOpt=ni.select.cfg=ni.select.conOpt=null,ni.isLegacy=!1,nFe(u,r,n,a,l,ni),rFe(u,r,n,a,l),t6(e,u,r,n,ni,a,l),ye(n,"info")&&(Ks(u).info=n.info);for(var c=0;c<ec.length;c++){var d=ec[c];if(d!==gu){var f=L2(n,d),h=n6(n,f,d);sce(d,u,f,h,ni)}}return Q8e(u,n,a),n.type==="group"&&aFe(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function lce(e,t,r){var n=Ks(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&lFe(i)&&uce(i)!==n.customPathData||a==="image"&&ye(o,"image")&&o.image!==n.customImagePath}function rFe(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&lce(o,i,n)&&(o=null),o||(o=e6(i),e.setClipPath(o)),t6(null,o,t,i,null,n,a)}}function nFe(e,t,r,n,a,i){if(!e.isGroup){bG(r,null,i),bG(r,Zs,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=e6(o),e.setTextContent(c)),t6(null,c,t,o,null,n,a);for(var d=o&&o.style,f=0;f<ec.length;f++){var h=ec[f];if(h!==gu){var p=i[h].conOpt;sce(h,c,p,n6(o,p,h),null)}}d?c.dirty():c.markRedraw()}}}}function bG(e,t,r){var n=t?L2(e,t):e,a=t?n6(e,n,Zs):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?L2(s,t):s:null;if(a&&(r.isLegacy||tce(a,i,!!o,!!l))){r.isLegacy=!0;var u=rce(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?r[t]:r.normal;d.cfg=o,d.conOpt=l}function L2(e,t){return t?e?e[t]:null:e}function n6(e,t,r){var n=t&&t.style;return n==null&&r===Zs&&e&&(n=e.styleEmphasis),n}function aFe(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){oFe({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var d=i[c],f=t.childAt(c);d?(d.ignore==null&&(d.ignore=!1),r6(e,f,r,d,a,t)):f.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);iFe(t,p,a)}}}function iFe(e,t,r){t&&BC(t,Ks(e).option,r)}function oFe(e){new ll(e.oldChildren,e.newChildren,wG,wG,e).add(_G).update(_G).remove(sFe).execute()}function wG(e,t){var r=e&&e.name;return r??Y8e+t}function _G(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;r6(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function sFe(e){var t=this.context,r=t.oldChildren[e];r&&BC(r,Ks(r).option,t.seriesModel)}function uce(e){return e&&(e.pathData||e.d)}function lFe(e){return e&&(ye(e,"pathData")||ye(e,"d"))}function uFe(e){e.registerChartView(J8e),e.registerSeriesModel(A8e)}var gd=at(),SG=Ie,jN=ve,cFe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var f=Oe(kG,r,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}TG(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;
vendor: 4,702 bytes, line 609
609if(o){var l=A3(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=gd(t).pointerEl=new mx[i.type](SG(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=gd(t).labelEl=new st(SG(r.label));t.add(i),CG(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=gd(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=gd(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),CG(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=gx(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){al(u.event)},onmousedown:jN(this._onHandleDragMove,this,0,0),drift:jN(this._onHandleDragMove,this),ondragend:jN(this._onHandleDragEnd,this)}),n.add(a)),TG(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");te(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Yv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){kG(this._axisPointerModel,!r&&this._moveAnimation,this._handle,VN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(VN(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(VN(a)),gd(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Ty(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function kG(e,t,r,n){cce(gd(r).lastProp,n)||(gd(r).lastProp=n,t?ut(r,n,e):(r.stopAnimation(),r.attr(n)))}function cce(e,t){if(Te(e)&&Te(t)){var r=!0;return D(t,function(n,a){r=r&&cce(e[a],n)}),!!r}else return e===t}function CG(e,t){e[t.get(["label","show"])?"show":"hide"]()}function VN(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function TG(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const a6=cFe;function i6(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function dce(e,t,r,n,a){var i=r.get("value"),o=fce(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Uv(s.get("padding")||0),u=s.getFont(),c=fx(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var v=a.verticalAlign;v==="bottom"&&(d[1]-=h),v==="middle"&&(d[1]-=h/2),dFe(d,f,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:$t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function dFe(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function fce(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:y3(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),fe(o)?i=o.replace("{value}
609",i):ke(o)&&(i=o(s))}return i}function o6(e,t,r){var n=Pi();return $f(n,n,r.rotation),rs(n,n,r.position),co([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function hce(e,t,r,n,a,i){var o=ul.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),dce(t,n,a,i,{position:o6(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function s6(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function pce(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function AG(e,t,r,n,a,i){return{cx:e,cy:t,r0:r,r:n,startAngle:a,endAngle:i,clockwise:!0}}var fFe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=EG(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var f=i6(i),h=hFe[u](s,d,c);h.style=f,r.graphicKey=h.type,r.pointer=h}var p=sL(l.model,a);hce(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=sL(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=o6(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=EG(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[r.x,r.y];d[c]+=n[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(a6);function EG(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var hFe={line:function(e,t,r){var n=s6([t,r[0]],[t,r[1]],NG(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:pce([t-n/2,r[0]],[n,a],NG(e))}}};function NG(e){return e.dim==="x"?0:1}const pFe=fFe;var vFe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(it);const gFe=vFe;var Bs=at(),mFe=D;function vce(e,t,r){if(!ot.node){var n=t.getZr();Bs(n).records||(Bs(n).records={}),yFe(n,t);var a=Bs(n).records[e]||(Bs(n).records[e]={});a.handler=r}}function yFe(e,t){if(Bs(e).initialized)return;Bs(e).initialized=!0,r("click",Oe(IG,"click")),r("mousemove",Oe(IG,"mousemove")),r("globalout",bFe);function r(n,a){e.on(n,function(i){var o=wFe(t);mFe(Bs(e).records,function(s){s&&a(s,i,o.dispatchAction)}),xFe(o.pendings,t)})}}function xFe(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function bFe(e,t,r){e.handler("leave",null,r)}function IG(e,t,r,n){t.handler(e,r,n)}function wFe(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function TL(e,t){if(!ot.node){var r=t.getZr(),n=(Bs(r).records||{})[e];n&&(Bs(r).records[e]=null)}}var _Fe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";vce("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>
609=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){TL("axisPointer",n)},t.prototype.dispose=function(r,n){TL("axisPointer",n)},t.type="axisPointer",t}(ar);const SFe=_Fe;function gce(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xf(i,e);if(o==null||o<0||te(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),v=[];v[h]=i.get(p,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(i.getValues(re(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var PG=at();function kFe(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||ve(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){E_(a)&&(a=gce({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=E_(a),u=i.axesInfo,c=s.axesInfo,d=n==="leave"||E_(a),f={},h={},p={list:[],map:{}},v={showPointer:Oe(TFe,h),showTooltip:Oe(AFe,p)};D(s.coordSysMap,function(g,x){var b=l||g.containPoint(a);D(s.coordSysAxesInfo[x],function(_,k){var S=_.axis,C=PFe(u,_);if(!d&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=S.pointToData(a)),T!=null&&MG(_,T,v,!1,f)}})});var m={};return D(c,function(g,x){var b=g.linkGroup;b&&!h[x]&&D(b.axesInfo,function(_,k){var S=h[k];if(_!==g&&S){var C=S.value;b.mapper&&(C=g.axis.scale.parse(b.mapper(C,DG(_),DG(g)))),m[g.key]=C}})}),D(m,function(g,x){MG(c[x],g,v,!0,f)}),EFe(h,c,f),NFe(p,a,e,o),IFe(c,o,r),f}}function MG(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=CFe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Q(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function CFe(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=e-d,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,a=d,i.length=0),D(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function TFe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function AFe(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=My(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function EFe(e,t,r){var n=r.axesInfo=[];D(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function NFe(e,t,r,n){if(E_(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function IFe(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=PG(n)[a]||{},o=PG(n)[a]={};D(e,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&D(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];D(i,function(u,c){!o[c]&&l.push(u)}),D(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function PFe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function DG(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function E_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Mx(e){Bf.registerAxisPointerClass("CartesianAxisPointer",pFe),e.registerComponentModel(gFe),e.registerComponentView(SFe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!te(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=yRe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kFe)}function MFe(e){Ze(Vle),Ze(Mx)}
609var DFe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(n),f=i.get("type");if(f&&f!=="none"){var h=i6(i),p=RFe[f](s,l,d,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=i.get(["label","margin"]),m=LFe(n,a,i,l,v);dce(r,a,i,o,m)},t}(a6);function LFe(e,t,r,n,a){var i=t.axis,o=i.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=Pi();$f(f,f,s),rs(f,f,[n.cx,n.cy]),u=co([o,-a],f);var h=t.getModel("axisLabel").get("rotate")||0,p=ul.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+a,o]);var m=n.cx,g=n.cy;c=Math.abs(u[0]-m)/v<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-g)/v<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var RFe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:s6(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:AG(t.cx,t.cy,n[0],n[1],(-r-a/2)*i,(-r+a/2)*i)}:{type:"Sector",shape:AG(t.cx,t.cy,r-a/2,r+a/2,0,Math.PI*2)}}};const $Fe=DFe;var OFe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,a=this.ecModel;return a.eachComponent(r,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(it);const zFe=OFe;var l6=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",wr).models[0]},t.type="polarAxis",t}(it);kr(l6,kx);var FFe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(l6),BFe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(l6),u6=function(e){K(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(bo);u6.prototype.dataToRadius=bo.prototype.dataToCoord;u6.prototype.radiusToData=bo.prototype.coordToData;const jFe=u6;var VFe=at(),c6=function(e){K(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),a=r.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=fx(s==null?"":s+"",n.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=VFe(r.model),v=p.lastAutoInterval,m=p.lastTickCount;return v!=null&&m!=null&&Math.abs(v-h)<=1&&Math.abs(m-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(bo);c6.prototype.dataToAngle=bo.prototype.dataToCoord;c6.prototype.angleToData=bo.prototype.coordToData;const UFe=c6;var mce=["radius","angle"],GFe=function(){function e(t){this.dimensions=mce,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new jFe,this._angleAxis=new UFe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&r.push(n),a.scale.type===t&&r.push(a),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,a=Math.cos(n)*r+this.cx,i=-Math.sin(n)*r+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]
609*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},e.prototype.convertToPixel=function(t,r,n){var a=LG(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=LG(r);return a===this?this.pointToData(n):null},e}();function LG(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const HFe=GFe;function WFe(e,t,r){var n=t.get("center"),a=r.getWidth(),i=r.getHeight();e.cx=le(n[0],a),e.cy=le(n[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:te(l)||(l=[0,l]);var u=[le(l[0],s),le(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function qFe(e,t){var r=this,n=r.getAngleAxis(),a=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();D(b2(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(b2(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),av(n.scale,n.model),av(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function YFe(e){return e.mainType==="angleAxis"}function RG(e,t){if(e.type=t.get("type"),e.scale=MC(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),YFe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var KFe={dimensions:mce,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,a){var i=new HFe(a+"");i.update=qFe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");RG(o,l),RG(s,u),WFe(i,n,t),r.push(i),n.coordinateSystem=i,i.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",wr).models[0];n.coordinateSystem=a.coordinateSystem}}),r}};const ZFe=KFe;var XFe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Fb(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),a=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Bb(e){var t=e.getRadiusAxis();return t.inverse?0:1}function $G(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var JFe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=r.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=re(a.getViewLabels(),function(c){c=Ie(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});$G(u),$G(s),D(XFe,function(c){r.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&QFe[c](this.group,r,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Bf),QFe={axisLine:function(e,t,r,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=Bb(r),l=s?0:1,u;i[l]===0?u=new os({shape:{cx:r.cx,cy:r.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new pC({shape:{cx:r.cx,cy:r.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Bb(r)],u=re(n,function(c){return new Xr({shape:Fb(r,[l,l+s],c.coord)})});e.add(wi(u,{style:Ce(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Bb(r)],c=[],d=0;d<a.length;d++)for(var f=0;f<a[d].length;f++)c.push(new Xr({shape:Fb(r,[u,u+l],a[d][f].coord)}));e.add(wi(c,{style:Ce(s.getModel("lineStyle").getLineStyle(),Ce(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");D(o,function(d,f){var h=l,p=d.tickValue,v=i[Bb(r)],m=r.coordToPoint([v+u,d.coord]),g=r.cx,x=r.cy,b=Math.abs(m[0]-g)/v<.3?"center":m[0]>g?"left":"right",_=Math.abs(m[1]-x)/v<.3?"middle":m[1]>x?"top":"bottom";if(s&&s[p]){var k=s[p];Te(k)&&k.textStyle&&(h=new Ot(k.textStyle,l,l.ecModel))}var S=new st({silent:ul.isLabelSilent(t),style:$t(h,{x:m[0],y:m[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:b,verticalAlign:_})});if(e.add(S),c){var C=ul.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=d.rawLabel,$e(S).eventData=C}},this)},splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<n.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new Xr({shape:Fb(r,i,n[d].coord)}))}for(var d=0;d<c.length;d++)e.add(wi(c[d],{style:Ce({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;
609c++)l.push(new Xr({shape:Fb(r,i,a[u][c].coord)}));e.add(wi(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,f=-n[0].coord*d,h=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),v=t.get("clockwise"),m=1,g=n.length;m<=g;m++){var x=m===g?n[0].coord:n[m].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new wa({shape:{cx:r.cx,cy:r.cy,r0:h,r:p,startAngle:f,endAngle:-x*d,clockwise:v},silent:!0})),f=-x*d}for(var m=0;m<c.length;m++)e.add(wi(c[m],{style:Ce({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}};const eBe=JFe;var tBe=["axisLine","axisTickLabel","axisName"],rBe=["splitLine","splitArea","minorSplitLine"],nBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var a=this._axisGroup,i=this._axisGroup=new Me;this.group.add(i);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),d=l.getExtent()[0],f=o.getExtent(),h=iBe(s,r,d),p=new ul(r,h);D(tBe,p.add,p),i.add(p.getGroup()),vx(a,i,r),D(rBe,function(v){r.get([v,"show"])&&!o.scale.isBlank()&&aBe[v](this.group,r,s,d,f,u,c)},this)}},t.type="radiusAxis",t}(Bf),aBe={splitLine:function(e,t,r,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<i.length;d++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new os({shape:{cx:r.cx,cy:r.cy,r:Math.max(i[d].coord,0)}}))}for(var d=0;d<c.length;d++)e.add(wi(c[d],{style:Ce({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)u.push(new os({shape:{cx:r.cx,cy:r.cy,r:o[c][d].coord}}));e.add(wi(u,{style:Ce({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=i[0].coord,f=1;f<i.length;f++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new wa({shape:{cx:r.cx,cy:r.cy,r0:d,r:i[f].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=i[f].coord}for(var f=0;f<c.length;f++)e.add(wi(c[f],{style:Ce({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function iBe(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const oBe=nBe;function yce(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function xce(e,t){return t.dim+e.model.componentIndex}function sBe(e,t,r){var n={},a=lBe(Et(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=xce(s,l),c=yce(i),d=a[u][c],f=d.offset,h=d.width,p=s.getOtherAxis(l),v=i.coordinateSystem.cx,m=i.coordinateSystem.cy,g=i.get("barMinHeight")||0,x=i.get("barMinAngle")||0;n[c]=n[c]||[];for(var b=o.mapDimension(p.dim),_=o.mapDimension(l.dim),k=Xu(o,b),S=l.dim!=="radius"||!i.get("roundCap",!0),C=p.dataToCoord(0),T=0,E=o.count();T<E;T++){var A=o.get(b,T),N=o.get(_,T),P=A>=0?"p":"n",L=C;k&&(n[c][N]||(n[c][N]={p:C,n:C}),L=n[c][N][P]);var R=void 0,M=void 0,$=void 0,V=void 0;if(p.dim==="radius"){var B=p.dataToCoord(A)-C,j=l.dataToCoord(N);Math.abs(B)<g&&(B=(B<0?-1:1)*g),R=L,M=L+B,$=j-f,V=$-h,k&&(n[c][N][P]=M)}else{var I=p.dataToCoord(A,S)-C,U=l.dataToCoord(N);Math.abs(I)<x&&(I=(I<0?-1:1)*x),R=U+f,M=R+h,$=L,V=L+I,k&&(n[c][N][P]=V)}o.setItemLayout(T,{cx:v,cy:m,r0:R,r:M,startAngle:-$*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:$>=V})}}})}function lBe(e){var t={};D(e,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=xce(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;t[l]=d;var h=yce(n);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=le(n.get("barWidth"),c),v=le(n.get("barMaxWidth"),c),m=n.get("barGap"),g=n.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),v&&(f[h].maxWidth=v),m!=null&&(d.gap=m),g!=null&&(d.categoryGap=g)});var r={};return D(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=le(n.categoryGap,o),l=le(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),D(i,function(v,m){var g=v.maxWidth;g&&g<d&&(g=Math.min(g,u),v.width&&(g=Math.min(g,v.width)),u-=g,v.width=g,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f=0,h;D(i,function(v,m){v.width||(v.width=d),h=v,f+=v.width*(1+l)}),h&&(f-=h.width*l);var p=-f/2;D(i,function(v,m){r[a][m]=r[a][m]||{offset:p,width:v.width},p+=v.width*(1+l)})}),r}
609var uBe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cBe={splitNumber:5},dBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(ar);function fBe(e){Ze(Mx),Bf.registerAxisPointerClass("PolarAxisPointer",$Fe),e.registerCoordinateSystem("polar",ZFe),e.registerComponentModel(zFe),e.registerComponentView(dBe),ov(e,"angle",FFe,uBe),ov(e,"radius",BFe,cBe),e.registerComponentView(eBe),e.registerComponentView(oBe),e.registerLayout(Oe(sBe,"bar"))}function AL(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,a={},i=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var d={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=d[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Zr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var f=t.rotate;return f==null&&(f=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-f:f,a.z2=1,a}var hBe=["axisLine","axisTickLabel","axisName"],pBe=["splitArea","splitLine"],vBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Me;var l=AL(r),u=new ul(r,l);D(hBe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(pBe,function(c){r.get([c,"show"])&&gBe[c](this,this.group,this._axisGroup,r)},this),vx(s,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)},t.prototype.remove=function(){Fle(this)},t.type="singleAxis",t}(Bf),gBe={splitLine:function(e,t,r,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=a.isHorizontal(),d=[],f=0,h=a.getTicksCoords({tickModel:i}),p=[],v=[],m=0;m<h.length;++m){var g=a.toGlobalCoord(h[m].coord);c?(p[0]=g,p[1]=u.y,v[0]=g,v[1]=u.y+u.height):(p[0]=u.x,p[1]=g,v[0]=u.x+u.width,v[1]=g);var x=new Xr({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});tv(x.shape,l);var b=f++%s.length;d[b]=d[b]||[],d[b].push(x)}for(var _=o.getLineStyle(["color"]),m=0;m<d.length;++m)t.add(wi(d[m],{style:Ce({stroke:s[m%s.length]},_),silent:!0}))}},splitArea:function(e,t,r,n){zle(e,r,n,n)}};const mBe=vBe;var bce=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(it);kr(bce,kx.prototype);const UN=bce;var yBe=function(e){K(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(bo);const xBe=yBe;var wce=["single"],bBe=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=wce,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var a=this.dimension,i=new xBe(a,MC(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),av(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=Rr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+r}:function(o){return a-o+r},t.toLocalCoord=i?function(o){return o-r}:function(o){return a-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),a=[],i=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=r.toGlobalCoord(r.dataToCoord(+t)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},e.prototype.convertToPixel=function(t,r,n){var a=OG(r);return a===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=OG(r);return a===this?this.pointToData(n):null},e}();function OG(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function wBe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,a){var i=new bBe(n,e,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,r.push(i)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",wr).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),r}var _Be={create:wBe,dimensions:wce};const SBe=_Be;var zG=["x","y"],kBe=["width","height"],CBe=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=GN(l,1-R2(s)),c=l.dataToPoint(n)[0],d=i.get("type");if(d&&d!=="none"){var f=i6(i),h=TBe[d](s,c,u);h.style=f,r.graphicKey=h.type,r.pointer=h}var p=AL(a);hce(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=AL(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=o6(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.coordinateSystem,l=R2(o),u=GN(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=GN(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(a6),TBe={line:function(e,t,r){var n=s6([t,r[0]],[t,r[1]],R2(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),a=r[1]-r[0];return{type:"Rect",shape:pce([t-n/2,r[0]],[n,a],R2(e))}}};function R2(e){return e.isHorizontal()?0:1}function GN(e,t){var r=e.getRect();return[r[zG[t]],r[zG[t]]+r[kBe[t]]]}const ABe=CBe;var EBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(ar);function NBe(e){Ze(Mx),Bf.registerAxisPointerClass("SingleAxisPointer",ABe),e.registerComponentView(EBe),e.registerComponentView(mBe),e.registerComponentModel(UN),ov(e,"single",UN,UN.defaultOption),e.registerCoordinateSystem("single",SBe)}var IBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,a){var i=Gv(r);
609e.prototype.init.apply(this,arguments),FG(r,i)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),FG(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(it);function FG(e,t){var r=e.cellSize,n;te(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var a=re([0,1],function(i){return FNe(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Zu(e,t,{type:"box",ignoreSize:a})}const PBe=IBe;var MBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=this.group;i.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,i),this._renderLines(r,s,l,i),this._renderYearText(r,s,l,i),this._renderMonthText(r,u,l,i),this._renderWeekText(r,u,s,l,i)},t.prototype._renderDayRect=function(r,n,a){for(var i=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new nt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},t.prototype._renderLines=function(r,n,a,i){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=n.start,f=0;d.time<=n.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(n.start.y+"-"+n.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var m=o._getLinePointsOfOneWeek(r,v,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(r,n,a){var i=[r[0].slice(),r[r.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(r,n,a){var i=new ka({z2:20,shape:{points:r},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(r,n,a){for(var i=r.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return fe(r)&&r?$Ne(r,n):ke(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,a,i){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:p},g=this._formatterLabel(v,m),x=new st({z2:30,style:$t(o,{text:g})});x.attr(this._yearTextPositionControl(x,h[l],a,l,s)),i.add(x)}},t.prototype._monthTextPositionControl=function(r,n,a,i,o){var s="left",l="top",u=r[0],c=r[1];return a==="horizontal"?(c=c+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,a,i){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||fe(s))&&(s&&(n=OD(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<d[f].length-1;v++){var m=d[f][v].slice(),g=this._firstDayOfMonth[v];if(p){var x=this._firstDayPoints[v];m[h]=(x[h]+d[0][v+1][h])/2}var b=o.get("formatter"),_=s[+g.m-1],k={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:_},S=this._formatterLabel(b,k),C=new st({z2:30,style:Q($t(o,{text:S}),this._monthTextPositionControl(m,p,a,u,l))});i.add(C)}}}
609,t.prototype._weekTextPositionControl=function(r,n,a,i,o){var s="center",l="middle",u=r[0],c=r[1],d=a==="start";return n==="horizontal"?(u=u+i+(d?1:-1)*o[0]/2,s=d?"right":"left"):(c=c+i+(d?1:-1)*o[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,a,i,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),d=s.get("margin"),f=l.getFirstDayOfWeek();if(!c||fe(c)){c&&(n=OD(c)||n);var h=n.get(["time","dayOfWeekShort"]);c=h||re(n.get(["time","dayOfWeekAbbr"]),function(k){return k[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];d=le(d,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,d=-d);for(var m=0;m<7;m++){var g=l.getNextNDay(p,m),x=l.dataToRect([g.time],!1).center,b=m;b=Math.abs((m+f)%7);var _=new st({z2:30,style:Q($t(s,{text:c[b]}),this._weekTextPositionControl(x,i,u,d,v))});o.add(_)}}},t.type="calendar",t}(ar);const DBe=MBe;var HN=864e5,LBe=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=as(t);var r=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(d){c(i,d)&&(o[a[d]]=i[d]*s[d])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=Rr(o,l);D([0,1],function(d){c(i,d)||(i[d]=u[a[d]]/s[d])});function c(d,f){return d[f]!=null&&d[f]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,r){te(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),a=this._rangeInfo,i=n.formatedDate;if(r&&!(n.time>=a.start.time&&n.time<a.end.time+HN))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,a):this._getDateByWeeksAndDay(r,n-1,a)},e.prototype.convertToPixel=function(t,r,n){var a=BG(r);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var a=BG(r);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(te(t)&&t.length===1&&(t=t[0]),te(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);r=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var a=Math.floor(r[1].time/HN)-Math.floor(r[0].time/HN)+1,i=new Date(r[0].time),o=i.getDate(),s=r[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-r[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-r[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+r[0].day+6)/7),d=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:a,weeks:c,nthWeek:d,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&r<a.fweek||t===a.weeks&&r>a.lweek)return null;var i=(t-1)*7-a.fweek+r,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(a){var i=new e(a);n.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function BG(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const RBe=LBe;function $Be(e){e.registerComponentModel(PBe),e.registerComponentView(DBe),e.registerCoordinateSystem("calendar",RBe)}function OBe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function jG(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function zBe(e,t,r){var n=Q({},r),a=e[t],i=r.$action||"merge";i==="merge"?a?(He(a,n,!0),Zu(a,n,{ignoreSize:!0}),ooe(r,a),jb(r,a),jb(r,a,"shape"),jb(r,a,"style"),jb(r,a,"extra"),r.clipPath=a.clipPath):e[t]=n:i==="replace"?e[t]=n:i==="remove"&&a&&(e[t]=null)}var _ce=["transition","enterFrom","leaveTo"],FBe=_ce.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function jb(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?_ce:FBe,a=0;a<n.length;a++){var i=n[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function BBe(e,t){if(e&&(e.hv=t.hv=[jG(t,["left","right"]),jG(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var jBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=a},t.prototype.optionUpdated=function(r,n){var a=this.option,i=(n?a:r).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=jae(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(c,d){var f=c.newOption;f&&(u.push(f),OBe(c,f),zBe(o,d,f),BBe(o[d],f))},this),a.elements=Et(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,a){D(r,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(it),VG={path:null,compoundPath:null,group:Me,image:hn,text:st},fi=at(),VBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=Se()},t.prototype.render=function(r,n,a){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,a)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=r.get("z"),s=r.get("zlevel");D(n,function(l){var u=Mr(l.id,null),c=u!=null?a.get(u):null,d=Mr(l.parentId,null),f=d!=null?a.get(d):i,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,m=l.textConfig;if(p&&tce(p,h,!!m,!!v)){var g=rce(p,h,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!v&&g.textContent&&(v=g.textContent)}var x=UBe(l),b=l.$action||"merge",_=b==="merge",k=b==="replace";if(_){var S=!c,C=c;S?C=UG(u,f,l.type,a):(C&&(fi(C).isNew=!1),oce(C)),C&&(A_(C,x,r,{isInit:S}),GG(C,l,o,s))}else if(k){N_(c,l,a,r);var T=UG(u,f,l.type,a);T&&(A_(T,x,r,{isInit:!0}),GG(T,l,o,s))}else b==="remove"&&(ace(c,l),N_(c,l,a,r));var E=a.get(u);if(E&&v)if(_){var A=E.getTextContent();A?A.attr(v):E.setTextContent(new st(v))}else k&&E.setTextContent(new st(v));if(E){var N=l.clipPath;if(N){var P=N.type,L=void 0,S=!1;if(_){var R=E.getClipPath();S=!R||fi(R).type!==P,L=S?EL(P):R}else k&&(S=!0,L=EL(P));E.setClipPath(L),A_(L,N,r,{isInit:S}),D2(L,N.keyframeAnimation,r)}var M=fi(E);E.setTextConfig(m),M.option=l,GBe(E,r,l),Bv({el:E,componentModel:r,itemName:E.name,itemTooltipOption:l.tooltip}),D2(E,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var a=r.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<a.length;c++){var d=a[c],f=Mr(d.id,null),h=f!=null?o.get(f):null;if(!(!h||!h.isGroup)){var p=h.parent,v=p===i,m=fi(h),g=fi(p);m.width=le(m.option.width,v?s:g.width)||0,m.height=le(m.option.height,v?l:g.height)||0}}for(var c=a.length-1;c>=0;c--){var d=a[c],f=Mr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,g=fi(p),x=p===i?{width:s,height:l}:{width:g.width,height:g.height},b={},_=kC(h,d,x,null,{hv:d.hv,boundingMode:d.bounding},b);
609if(!fi(h).isNew&&_){for(var k=d.transition,S={},C=0;C<u.length;C++){var T=u[C],E=b[T];k&&(ef(k)||Ke(k,T)>=0)?S[T]=E:h[T]=E}ut(h,S,r,0)}else h.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(a){N_(a,fi(a).option,n,r._lastGraphicModel)}),this._elMap=Se()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(ar);function EL(e){var t=ye(VG,e)?VG[e]:UO(e),r=new t({});return fi(r).type=e,r}function UG(e,t,r,n){var a=EL(r);return t.add(a),n.set(e,a),fi(a).id=e,fi(a).isNew=!0,a}function N_(e,t,r,n){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){N_(i,t,r,n)}),BC(e,t,n),r.removeKey(fi(e).id))}function GG(e,t,r,n){e.isGroup||D([["cursor",Mi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(a){var i=a[0];ye(t,i)?e[i]=Ge(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),D(tt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ke(i)?i:null}}),ye(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function UBe(e){return e=Q({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ioe),function(t){delete e[t]}),e}function GBe(e,t,r){var n=$e(e).eventData;!e.silent&&!e.ignore&&!n&&(n=$e(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function HBe(e){e.registerComponentModel(jBe),e.registerComponentView(VBe),e.registerPreprocessor(function(t){var r=t.graphic;te(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var HG=["x","y","radius","angle","single"],WBe=["cartesian2d","polar","singleAxis"];function qBe(e){var t=e.get("coordinateSystem");return Ke(WBe,t)>=0}function mu(e){return e+"Axis"}function YBe(e,t){var r=Se(),n=[],a=Se();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=r.get(f);
609p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(r.get(d)||r.set(d,[]))[f]=!0})}return n}function Sce(e){var t=e.ecModel,r={infoList:[],infoMap:Se()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(mu(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var WN=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),KBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=WG(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=WG(r);He(this.option,r,!0),He(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Se(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return D(HG,function(a){var i=this.getReferringComponents(mu(a),gAe);if(i.specified){n=!0;var o=new WN;D(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new WN;if(f.add(d.componentIndex),r.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",wr).models[0];h&&D(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",wr).models[0]&&f.add(p.componentIndex)})}}}i&&D(HG,function(u){if(i){var c=a.findComponents({mainType:mu(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new WN;d.add(c[0].componentIndex),r.set(u,d),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(mu(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(mu(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(it);function WG(e){var t={};return D(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}const zy=KBe;var ZBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(zy);const XBe=ZBe;var JBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(ar);const d6=JBe;var QBe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(d6);const eje=QBe;var $h=D,qG=ki,tje=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(qBe(r)){var n=mu(this._dimName),a=r.getReferringComponents(n,wr).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return Ie(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;$h(["start","end"],function(f,h){var p=t[f],v=t[f+"Value"];
609i[h]==="percent"?(p==null&&(p=o[h]),v=a.parse(Ct(p,o,r))):(u=!0,v=v==null?r[h]:a.parse(v),p=Ct(v,r,o)),l[h]=v==null||isNaN(v)?r[h]:v,s[h]=p==null||isNaN(p)?o[h]:p}),qG(l),qG(s);var c=this._minMaxSpan;u?d(l,s,r,o,!1):d(s,l,o,r,!0);function d(f,h,p,v,m){var g=m?"Span":"ValueSpan";jf(0,f,p,"all",c["min"+g],c["max"+g]);for(var x=0;x<2;x++)h[x]=Ct(f[x],p,v,!0),m&&(h[x]=a.parse(h[x]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=rje(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;$h(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var d=u.getStore(),f=re(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,v,m,g=0;g<c.length;g++){var x=d.get(f[g],h),b=!isNaN(x),_=x<o[0],k=x>o[1];if(b&&!_&&!k)return!0;b&&(m=!0),_&&(p=!0),k&&(v=!0)}return m&&p&&v})}else $h(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});$h(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;$h(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Ct(n[0]+o,n,[0,100],!0):i!=null&&(o=Ct(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=Dae(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function rje(e,t,r){var n=[1/0,-1/0];$h(r,function(o){TMe(n,o.getData(),t)});var a=e.getAxisModel(),i=Bse(a.axis.scale,a,n).calculate();return[i.min,i.max]}const nje=tje;var aje={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(mu(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new nje(a,i,s,e),r.push(o.__dzAxisProxy))});var n=Se();return D(r,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const ije=aje;function oje(e){e.registerAction("dataZoom",function(t,r){var n=YBe(r,t);D(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var YG=!1;function f6(e){YG||(YG=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,ije),oje(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sje(e){e.registerComponentModel(XBe),e.registerComponentView(eje),f6(e)}var mi=function(){function e(){}return e}(),kce={};function Oh(e,t){kce[e]=t}function Cce(e){return kce[e]}var lje=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;D(this.option.feature,function(n,a){var i=Cce(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(r)),He(n,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0}
609,t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(it);const uje=lje;function cje(e,t,r){var n=t.getBoxLayoutParams(),a=t.get("padding"),i={width:r.getWidth(),height:r.getHeight()},o=Rr(n,i,a);Xd(t.get("orient"),e,t.get("itemGap"),o.width,o.height),kC(e,n,i,a)}function Tce(e,t){var r=Uv(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new nt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var dje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),d=[];D(u,function(p,v){d.push(v)}),new ll(this._featureNames||[],d).add(f).update(f).remove(Oe(f,null)).execute(),this._featureNames=d;function f(p,v){var m=d[p],g=d[v],x=u[m],b=new Ot(x,r,r.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===m&&(x.title=i.newTitle),m&&!g){if(fje(m))_={onclick:b.option.onclick,featureName:m};else{var k=Cce(m);if(!k)return;_=new k}c[m]=_}else if(_=c[g],!_)return;_.uid=Vv("toolbox-feature"),_.model=b,_.ecModel=n,_.api=a;var S=_ instanceof mi;if(!m&&g){S&&_.dispose&&_.dispose(n,a);return}if(!b.get("show")||S&&_.unusable){S&&_.remove&&_.remove(n,a);return}h(b,_,m),b.setIconStatus=function(C,T){var E=this.option,A=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[C]=T,A[C]&&(T==="emphasis"?ol:sl)(A[C])},_ instanceof mi&&_.render&&_.render(b,n,a,i)}function h(p,v,m){var g=p.getModel("iconStyle"),x=p.getModel(["emphasis","iconStyle"]),b=v instanceof mi&&v.getIcons?v.getIcons():p.get("icon"),_=p.get("title")||{},k,S;fe(b)?(k={},k[m]=b):k=b,fe(_)?(S={},S[m]=_):S=_;var C=p.iconPaths={};D(k,function(T,E){var A=gx(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(g.getItemStyle());var N=A.ensureState("emphasis");N.style=x.getItemStyle();var P=new st({style:{text:S[E],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null},ignore:!0});A.setTextContent(P),Bv({el:A,componentModel:r,itemName:E,formatterParamsExtra:{title:S[E]}}),A.__title=S[E],A.on("mouseover",function(){var L=x.getItemStyle(),R=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:x.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),A.setTextConfig({position:x.get("textPosition")||R}),P.ignore=!r.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",E])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(p.get(["iconStatus",E])==="emphasis"?ol:sl)(A),o.add(A),A.on("click",ve(v.onclick,v,n,a,E)),C[E]=A})}cje(o,r,a),o.add(Tce(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,m=p.ensureState("emphasis"),g=m.textConfig||(m.textConfig={}),x=p.getTextContent(),b=x&&x.ensureState("emphasis");if(b&&!ke(b)&&v){var _=b.style||(b.style={}),k=fx(v,st.makeFont(_)),S=p.x+o.x,C=p.y+o.y+s,T=!1;C+k.height>a.getHeight()&&(g.position="top",T=!0);var E=T?-5-k.height:s+10;S+k.width/2>a.getWidth()?(g.position=["100%",E],_.align="right"):S-k.width/2<0&&(g.position=[0,E],_.align="left")}})},t.prototype.updateView=function(r,n,a,i){D(this._features,function(o){o instanceof mi&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.remove=function(r,n){D(this._features,function(a){a instanceof mi&&a.remove&&a.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(a){a instanceof mi&&a.dispose&&a.dispose(r,n)})},t.type="toolbox",t}(ar);function fje(e){return e.indexOf("my")===0}const hje=dje;var pje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var a=this.model,i=a.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroun
vendor: 1,348 bytes, line 609
609dColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(ke(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,g=new Uint8Array(m);m--;)g[m]=p.charCodeAt(m);var x=new Blob([g]);window.navigator.msSaveOrOpenBlob(x,v)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,k=_.document;k.open("image/svg+xml","replace"),k.write(p),k.close(),_.focus(),k.execCommand("SaveAs",!0,v),document.body.removeChild(b)}}else{var S=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",n
609ame:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(mi);const vje=pje;var KG="__ec_magicType_stack__",gje=[["line","bar"],["stack"]],mje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),a={};return D(r.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(ZG[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=ZG[a](f,h,d,i);p&&(Ce(p,d.option),s.series.push(p));var v=d.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=v.getAxesByScale("ordinal")[0];if(m){var g=m.dim,x=g+"Axis",b=d.getReferringComponents(x,wr).models[0],_=b.componentIndex;s[x]=s[x]||[];for(var k=0;k<=_;k++)s[x][_]=s[x][_]||{};s[x][_].boundaryGap=a==="bar"}}};D(gje,function(d){Ke(d,a)>=0&&D(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=He({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(mi),ZG={line:function(e,t,r,n){if(e==="bar")return He({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return He({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var a=r.get("stack")===KG;if(e==="line"||e==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),He({id:t,stack:a?"":KG},n.get(["option","stack"])||{},!0)}};fs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const yje=mje;var jC=new Array(60).join("-"),uv=" ";function xje(e){var t={},r=[],n=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else r.push(a)}else r.push(a)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function bje(e){var t=[];return D(e,function(r,n){var a=r.categoryAxis,i=r.valueAxis,o=i.dim,s=[" "].concat(re(r.series,function(h){return h.name})),l=[a.model.getCategories()];D(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(uv)],c=0;c<l[0].length;c++){for(var d=[],f=0;f<l.length;f++)d.push(l[f][c]);u.push(d.join(uv))}t.push(u.join(` 610`))}),t.join(` 611 612`+jC+` 613 614`)}function wje(e){return re(e,function(t){var r=t.getRawData(),n=[t.name],a=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+uv:"")+a.join(uv))}),n.join(` 615`)}).join(` 616 617`+jC+` 618 619`)}function _je(e){var t=xje(e);return{value:Et([bje(t.seriesGroupByCategoryAxis),wje(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(` 620 621`+jC+` 622 623`),meta:t.meta}}function $2(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Sje(e){var t=e.slice(0,e.indexOf(` 624`));if(t.indexOf(uv)>=0)return!0}var NL=new RegExp("["+uv+"]+","g");
624function kje(e){for(var t=e.split(/\n+/g),r=$2(t.shift()).split(NL),n=[],a=re(r,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=$2(t[i]).split(NL);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Cje(e){for(var t=e.split(/\n+/g),r=$2(t.shift()),n=[],a=0;a<t.length;a++){var i=$2(t[a]);if(i){var o=i.split(NL),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:r,data:n}}function Tje(e,t){var r=e.split(new RegExp(` 625*`+jC+` 626*`,"g")),n={series:[]};return D(r,function(a,i){if(Sje(a)){var o=kje(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Cje(a);n.series.push(o)}}),n}var Aje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=i.get("optionToContent"),f=i.get("contentToOption"),h=_je(r);if(ke(d)){var p=d(n.getOption());fe(p)?u.innerHTML=p:fy(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=i.get("textColor"),v.borderColor=i.get("textareaBorderColor"),v.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var m=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),_=document.createElement("div");x+=";background-color:"+i.get("buttonColor"),x+=";color:"+i.get("buttonTextColor");var k=this;function S(){a.removeChild(o),k._dom=null}cD(b,"click",S),cD(_,"click",function(){if(f==null&&d!=null||f!=null&&d==null){S();return}var C;try{ke(f)?C=f(u,n.getOption()):C=Tje(c.value,m)}catch(T){throw S(),new Error("Data view format error "+T)}C&&n.dispatchAction({type:"changeDataView",newOption:C}),S()}),b.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=b.style.cssText=x,!i.get("readOnly")&&g.appendChild(_),g.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(mi);function Eje(e,t){return re(e,function(r,n){var a=t&&t[n];if(Te(a)&&!te(a)){var i=Te(r)&&!te(r);i||(r={value:r});var o=a.name!=null&&r.name==null;return r=Ce(r,a),o&&delete r.name,r}else return r})}fs({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)r.push(Q({type:"scatter"},n));else{var i=a.get("data");r.push({name:n.name,data:Eje(n.data,i)})}}),t.mergeOption(Ce({series:r},e.newOption))});const Nje=Aje;var Ace=D,Ece=at();function Ije(e,t){var r=h6(e);Ace(t,function(n,a){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();r[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),r.push(t)}function Pje(e){var t=h6(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return Ace(r,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function Mje(e){Ece(e).snapshots=null}function Dje(e){return h6(e).length}function h6(e){var t=Ece(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Lje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Mje(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(mi);fs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const Rje=Lje;var $je=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Oje=function(){function e(t,r,n){var a=this;this._targetInfoList=[];var i=XG(r,t);D(zje,function(o,s){(!n||!n.include||Ke(n.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=qN[n.brushType](0,i,a);n.__rangeOffset={offset:tH[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(a){var i=this.findTargetInfo(a,r);i&&i!==!0&&D(i.coordSyses,function(o){var s=qN[a.brushType](1,o,a.range,!0);n(a,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var a=this.findTargetInfo(n,r);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=qN[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?tH[n.brushType](i.values,o.offset,Fje(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,r){return re(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:Rue(a),isTargetByCursor:Oue(a,t,n.coordSysModel),getLinearBrushOtherExtent:$ue(a)}})},e.prototype.controlSeries=function(t,r,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Ke(a.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,a=XG(r,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<JG.length;l++)if(JG[l](a,o))return o}return!0},e}();function IL(e){return e[0]>e[1]&&e.reverse(),e}
626function XG(e,t){return hm(e,t,{includeMainTypes:$je})}var zje={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,a=e.gridModels,i=Se(),o={},s={};!r&&!n&&!a||(D(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];D(u.getCartesians(),function(d,f){(Ke(r,d.getAxis("x").model)>=0||Ke(n,d.getAxis("y").model)>=0)&&c.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:QG.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:QG.geo})})}},JG=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&r&&(a=r.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],QG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Zd(e)),t}},qN={lineX:Oe(eH,0),lineY:Oe(eH,1),rect:function(e,t,r,n){var a=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),i=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[IL([a[0],i[0]]),IL([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=re(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function eH(e,t,r,n){var a=r.getAxis(["x","y"][e]),i=IL(re([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var tH={lineX:Oe(rH,0),lineY:Oe(rH,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return re(e,function(n,a){return[n[0]-r[0]*t[a][0],n[1]-r[1]*t[a][1]]})}};function rH(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function Fje(e,t){var r=nH(e),n=nH(t),a=[r[0]/n[0],r[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function nH(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const p6=Oje;var PL=D,Bje=dAe("toolbox-dataZoom_"),jje=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a,i){this._brushController||(this._brushController=new Y3(a.getZr()),this._brushController.on("brush",ve(this._onBrush,this)).mount()),Gje(r,n,this,i,a),Uje(r,n)},t.prototype.onclick=function(r,n,a){Vje[a].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new p6(v6(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Ije(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(d=jf(0,d.slice(),f.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},t.prototype._dispatchZoomAction=function(r){var n=[];PL(r,function(a,i){n.push(Ie(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}
626(mi),Vje={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Pje(this.ecModel))}};function v6(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Uje(e,t){e.setIconStatus("back",Dje(t)>1?"emphasis":"normal")}function Gje(e,t,r,n,a){var i=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new p6(v6(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}HNe("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),a=[],i=v6(n),o=hm(e,i);PL(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),PL(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:Bje+u+d};f[c]=d,a.push(f)}return a});const Hje=jje;function Wje(e){e.registerComponentModel(uje),e.registerComponentView(hje),Oh("saveAsImage",vje),Oh("magicType",yje),Oh("dataView",Nje),Oh("dataZoom",Hje),Oh("restore",Rje),Ze(sje)}var qje=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(it);const Yje=qje;function Nce(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Ice(e){if(ot.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Pce=Ice(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kje=Ice(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Mce(e,t){if(!e)return t;t=noe(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Zje(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var Xje=Mce(Kje,"transition"),g6=Mce(Pce,"transform"),Jje="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ot.transform3dSupported?"will-change:transform;":"");function Qje(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function e7e(e,t,r){if(!fe(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=_f(t);var i=Qje(r),o=Math.max(Math.round(a)*1.5,6),s="",l=g6+":",u;Ke(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=t+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+v.join("")+'"></div>'}function t7e(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=ot.transformSupported?","+g6+n:",left"+n+",top"+n),Xje+":"+a}function aH(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ot.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+g6+":"+o+";":[["top",0],["left",0],[Pce,o]]}function r7e(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();
626n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function n7e(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Foe(e,"html"),f=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+f),t&&a&&n.push(t7e(a,r)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(h){var p="border-"+h,v=noe(p),m=e.get(v);m!=null&&n.push(p+":"+m+(h==="color"?"":"px"))}),n.push(r7e(c)),d!=null&&n.push("padding:"+Uv(d).join("px ")+"px"),n.join(";")+";"}function iH(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&$Ce(e,o,document.body,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var a7e=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;iH(this._styleCoord,i,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ui(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Zje(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=Jje+n7e(t,!this._firstShow,this._longHide)+aH(i[0],i[1],!0)+("border-color:"+_f(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(fe(i)&&n.get("trigger")==="item"&&!Nce(n)&&(s=e7e(n,a,i)),fe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",te(t)||(t=[t]);for(var l=0;l<t.length;l++)fy(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(iH(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=aH(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ot.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ve(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const i7e=a7e;var o7e=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),sH(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;Te(t)&&mt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new st({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Foe(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect
626(),n=oH(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;sH(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Kl(i.borderWidth||0),s=oH(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ve(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Kl(e){return Math.max(0,e)}function oH(e){var t=Kl(e.shadowBlur||0),r=Kl(e.shadowOffsetX||0),n=Kl(e.shadowOffsetY||0);return{left:Kl(t-r),right:Kl(t+r),top:Kl(t-n),bottom:Kl(t+n)}}function sH(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const s7e=o7e;var l7e=new nt({shape:{x:-1,y:-1,width:2,height:2}}),u7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ot.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=yAe(a.get("renderMode"));this._tooltipContent=i==="richText"?new s7e(n):new i7e(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(r,n,a){if(!(ot.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Yv(this,"_updatePosition",50,"fixRate"):Ty(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");vce("itemTooltip",this._api,ve(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=lH(i,a);this._ticket="";var s=i.dataByCoordSys,l=h7e(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=l7e;c.x=i.x,c.y=i.y,c.update(),$e(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var d=gce(i,n),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(lH(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),d=Xg([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){this._lastDataByCoordSys=null;var s,l;Md(a,function(u){if($e(u).dataIndex!=null)return s=u,!0;if($e(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=ve(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Xg([n.tooltipOption],i),l=this._renderMode,u=[],c=Gr("section",{blocks:[],noHeader:!0}),d=[],f=new PE;D(r,function(x){D(x.dataByAxis,function(b){var _=a.getComponent(b.axisDim+"Axis",b.axisIndex),k=b.value;if(!(!_||k==null)){var S=fce(k,_.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=Gr("section",{header:S,noHeader:!no(S),sortBlocks:!0,blocks:[]});c.blocks.push(C),D(b.seriesDataIndices,function(T){var E=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,N=E.getDataParams(A);if(!(N.dataIndex<0)){N.axisDim=b.axisDim,N.axisIndex=b.axisIndex,N.axisType=b.axisType,N.axisId=b.axisId,N.axisValue=y3(_.axis,{value:k}),N.axisValueLabel=S,N.marker=f.makeTooltipMarker("item",_f(N.color),l);var P=K7(E.formatTooltip(A,!0,null)),L=P.frag;if(L){var R=Xg([E],i).get("valueFormatter");
626C.blocks.push(R?Q({valueFormatter:R},L):L)}P.text&&d.push(P.text),u.push(N)}})}})}),c.blocks.reverse(),d.reverse();var h=n.position,p=s.get("order"),v=tV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));v&&d.unshift(v);var m=l==="richText"?` 627 628`:"<br/>",g=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=$e(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=r.positionDefault,v=Xg([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,d),x=new PE;g.marker=x.makeTooltipMarker("item",_f(g.color),h);var b=K7(u.formatTooltip(c,!1,d)),_=v.get("order"),k=v.get("valueFormatter"),S=b.frag,C=S?tV(k?Q({valueFormatter:k},S):S,x,h,_,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,g,T,r.offsetX,r.offsetY,r.position,r.target,x)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=$e(n),o=i.tooltipConfig,s=o.option||{};if(fe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=r.positionDefault,f=Xg(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",v=new PE;this._showOrMove(f,function(){var m=Ie(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,r.offsetX,r.offsetY,r.position,n,v)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),v=p.color;if(f)if(fe(f)){var m=r.ecModel.get("useUTC"),g=te(a)?a[0]:a,x=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=f,x&&(h=xC(g.axisValue,h,m)),h=aoe(h,a,!0)}else if(ke(f)){var b=ve(function(_,k){_===this._ticket&&(d.setContent(k,c,r,v,l),this._updatePosition(r,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,b)}else h=f;d.setContent(h,c,r,v,l),d.show(r,v),this._updatePosition(r,l,o,s,d,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||te(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!te(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var d=o.getSize(),f=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ke(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),te(n))a=le(n[0],u),i=le(n[1],c);else if(Te(n)){var v=n;v.width=d[0],v.height=d[1];var m=Rr(v,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(fe(n)&&l){var g=f7e(n,p,d,r.get("borderWidth"));a=g[0],i=g[1]}else{var g=c7e(a,i,o,u,c,f?null:20,h?null:20);a=g[0],i=g[1]}if(f&&(a-=uH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=uH(h)?d[1]/2:h==="bottom"?d[1]:0),Nce(r)){var g=d7e(a,i,o,u,c);a=g[0],i=g[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&D(u,function(f,h){var p=d[h]||{},v=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&v.length===m.length,o&&D(v,function(g,x){var b=m[x];o=o&&g.seriesIndex===b.seriesIndex&&g.dataIndex===b.dataIndex}),i&&D(f.seriesDataIndices,function(g){var x=g.seriesIndex,b=n[x],_=i[x];b&&_&&_.data!==b.data&&(o=!1)})})}
628),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ot.node||!n.getDom()||(Ty(this,"_updatePosition"),this._tooltipContent.dispose(),TL("itemTooltip",n))},t.type="tooltip",t}(ar);function Xg(e,t,r){var n=t.ecModel,a;r?(a=new Ot(r,n,n),a=new Ot(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),fe(o)&&(o={formatter:o}),o&&(a=new Ot(o,a,n)))}return a}function lH(e,t){return e.dispatchAction||ve(t.dispatchAction,t)}function c7e(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function d7e(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function f7e(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function uH(e){return e==="center"||e==="middle"}function h7e(e,t,r){var n=IO(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=hx(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=$e(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const p7e=u7e;function v7e(e){Ze(Mx),e.registerComponentModel(Yje),e.registerComponentView(p7e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mr)}var g7e=["rect","polygon","keep","clear"];function m7e(e,t){var r=Pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=e&&e.toolbox;te(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),y7e(s),t&&!s.length&&s.push.apply(s,g7e)}}function y7e(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var cH=D;function dH(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function ML(e,t,r){var n={};return cH(t,function(i){var o=n[i]=a();cH(e[i],function(s,l){if(ln.isValidType(l)){var u={type:l,visual:s};r&&r(u,i),o[l]=new ln(u),l==="opacity"&&(u=Ie(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ln(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Dce(e,t,r){var n;D(r,function(a){t.hasOwnProperty(a)&&dH(t[a])&&(n=!0)}),n&&D(r,function(a){t.hasOwnProperty(a)&&dH(t[a])?e[a]=Ie(t[a]):delete e[a]})}function x7e(e,t,r,n,a,i){var o={};D(e,function(d){var f=ln.prepareVisualTypes(t[d]);o[d]=f});var s;function l(d){return s3(r,s,d)}function u(d,f){Koe(r,s,d,f)}i==null?r.each(c):r.each([i],c);function c(d,f){s=i==null?d:f;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(a,d),v=t[p],m=o[p],g=0,x=m.length;g<x;g++){var b=m[g];v[b]&&v[b].applyVisual(d,l,u)}}}function b7e(e,t,r,n){var a={};return D(e,function(i){var o=ln.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(k){return s3(s,d,k)}function c(k,S){Koe(s,d,k,S)}for(var d,f=s.getStore();(d=o.next())!=null;){var h=s.getRawDataItem(d);if(!(h&&h.visualMap===!1))for(var p=n!=null?f.get(l,d):d,v=r(p),m=t[v],g=a[v],x=0,b=g.length;x<b;x++){var _=g[x];m[_]&&m[_].applyVisual(p,u,c)}}}}}function w7e(e){var t=e.brushType,r={point:function(n){return fH[t].point(n,r,e)},rect:function(n){return fH[t].rect(n,r,e)}};return r}var fH={lineX:hH(0),lineY:hH(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&pd(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;
628var a=e.x,i=e.y,o=e.width,s=e.height,l=n[0];if(pd(n,a,i)||pd(n,a+o,i)||pd(n,a,i+s)||pd(n,a+o,i+s)||We.create(e).contain(l[0],l[1])||P0(a,i,a+o,i,n)||P0(a,i,a,i+s,n)||P0(a+o,i,a+o,i+s,n)||P0(a,i+s,a+o,i+s,n))return!0}}};function hH(e){var t=["x","y"],r=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[e];return Jg(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Jg(s[0],o)||Jg(s[1],o)||Jg(o[0],s)||Jg(o[1],s)}}}}function Jg(e,t){return t[0]<=e&&e<=t[1]}var pH=["inBrush","outOfBrush"],YN="__ecBrushSelect",DL="__ecInBrushSelectEvent";function Lce(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new p6(t.option,e);r.setInputRanges(t.areas,e)})}function _7e(e,t,r){var n=[],a,i;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),Lce(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ie(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,d=[],f=[],h=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var v=re(o.areas,function(k){var S=T7e[k.brushType],C=Ce({boundingRect:S?S(k):void 0},k);return C.selectors=w7e(C),C}),m=ML(o.option,pH,function(k){k.mappingMethod="fixed"});te(c)&&D(c,function(k){d[k]=1});function g(k){return c==="all"||!!d[k]}function x(k){return!!k.length}e.eachSeries(function(k,S){var C=h[S]=[];k.subType==="parallel"?b(k,S):_(k,S,C)});function b(k,S){var C=k.coordinateSystem;p=p||C.hasAxisBrushed(),g(S)&&C.eachActiveState(k.getData(),function(T,E){T==="active"&&(f[E]=1)})}function _(k,S,C){if(!(!k.brushSelector||C7e(o,S))&&(D(v,function(E){o.brushTargetManager.controlSeries(E,k,e)&&C.push(E),p=p||x(C)}),g(S)&&x(C))){var T=k.getData();T.each(function(E){vH(k,C,T,E)&&(f[E]=1)})}}e.eachSeries(function(k,S){var C={seriesId:k.id,seriesIndex:S,seriesName:k.name,dataIndex:[]};l.selected.push(C);var T=h[S],E=k.getData(),A=g(S)?function(N){return f[N]?(C.dataIndex.push(E.getRawIndex(N)),"inBrush"):"outOfBrush"}:function(N){return vH(k,T,E,N)?(C.dataIndex.push(E.getRawIndex(N)),"inBrush"):"outOfBrush"};(g(S)?p:x(T))&&x7e(pH,m,E,A)})}),S7e(t,a,i,n,r)}function S7e(e,t,r,n,a){if(a){var i=e.getZr();if(!i[DL]){i[YN]||(i[YN]=k7e);var o=Yv(i,YN,r,t);o(e,n)}}}function k7e(e,t){if(!e.isDisposed()){var r=e.getZr();r[DL]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[DL]=!1}}function vH(e,t,r,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(n,r,o.selectors,o))return!0}}function C7e(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(te(r)?Ke(r,t)<0:t!==r)}var T7e={rect:function(e){return gH(e.range)},polygon:function(e){for(var t,r=e.range,n=0,a=r.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=r[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&gH(t)}};function gH(e){return new We(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var A7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new Y3(n.getZr())).on("brush",ve(this._onBrush,this)).mount()},t.prototype.render=function(r,n,a,i){this.model=r,this._updateController(r,n,a,i)},t.prototype.updateTransform=function(r,n,a,i){Lce(n),this._updateController(r,n,a,i)},t.prototype.updateVisual=function(r,n,a,i){this.updateTransform(r,n,a,i)},t.prototype.updateView=function(r,n,a,i){this._updateController(r,n,a,i)},t.prototype._updateController=function(r,n,a,i){(!i||i.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(a)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Ie(a),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ie(a),$from:n})},t.type="brush",t}(ar);const E7e=A7e;var N7e="#ddd",I7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&Dce(a,r,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:N7e},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=re(r,function(n){return mH(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=mH(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(it);function mH(e,t){return He({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ot(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const P7e=I7e;var M7e=["rect","polygon","lineX","lineY","keep","clear"],D7e=function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}
628),this._brushType=i,this._brushMode=o,D(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,a){this.render(r,n,a)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),a={};return D(r.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(r,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:M7e.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(mi);const L7e=D7e;function R7e(e){e.registerComponentView(E7e),e.registerComponentModel(P7e),e.registerPreprocessor(m7e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,_7e),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},mr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},mr),Oh("brush",L7e)}var $7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(it),O7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ge(r.get("textBaseline"),r.get("textVerticalAlign")),c=new st({style:$t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=r.get("subtext"),h=new st({style:$t(s,{text:f,fill:s.getTextColor(),y:d.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!v&&!m,p&&c.on("click",function(){d2(p,"_"+r.get("target"))}),v&&h.on("click",function(){d2(v,"_"+r.get("subtarget"))}),$e(c).eventData=$e(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),f&&i.add(h);
628var g=i.getBoundingRect(),x=r.getBoxLayoutParams();x.width=g.width,x.height=g.height;var b=Rr(x,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),h.setStyle(_),g=i.getBoundingRect();var k=b.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var C=new nt({shape:{x:g.x-k[3],y:g.y-k[0],width:g.width+k[1]+k[3],height:g.height+k[0]+k[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(ar);function z7e(e){e.registerComponentModel($7e),e.registerComponentView(O7e)}var F7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],a=r.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,c){var d=Mr($v(u),""),f;Te(u)?(f=Ie(u),f.value=c):f=c,o.push(f),i.push(d)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new qn([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(it);const yH=F7e;var Rce=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=hc(yH.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(yH);kr(Rce,r3.prototype);const B7e=Rce;var j7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(ar);const V7e=j7e;var U7e=function(e){K(t,e);function t(r,n,a,i){var o=e.call(this,r,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(bo);const G7e=U7e;var KN=Math.PI,xH=at(),H7e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,a){if(this.model=r,this.api=a,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var i=this._layout(r,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Gr("nameValue",{noName:!0,value:c})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,r)},this),this._renderAxisLabel(i,s,l,r),this._position(i,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var a=r.get(["label","position"]),i=r.get("orient"),o=q7e(r,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":fe(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:KN/2},d=i==="vertical"?o.height:o.width,f=r.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,v=h?f.get("itemGap"):0,m=p+v,g=r.get(["label","rotate"])||0;g=g*KN/180;var x,b,_,k=f.get("position",!0),S=h&&f.get("showPlayBtn",!0),C=h&&f.get("showPrevBtn",!0),T=h&&f.get("showNextBtn",!0),E=0,A=d;k==="left"||k==="bottom"?(S&&(x=[0,0],E+=m),C&&(b=[E,0],E+=m),T&&(_=[A-p,0],A-=m)):(S&&(x=[A-p,0],A-=m),C&&(b=[0,0],E+=m),T&&(_=[A-p,0],A-=m));var N=[E,A];return r.get("inverse")&&N.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:g,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[i],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[i],playPosition:x,prevBtnPosition:b,nextBtnPosition:_,axisExtent:N,controlSize:p,controlGa
vendor: 4,945 bytes, line 628
628p:v}},t.prototype._position=function(r,n){var a=this._mainGroup,i=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Pi(),l=o.x,u=o.y+o.height;rs(s,s,[-l,-u]),$f(s,s,-KN/2),rs(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=x(o),d=x(a.getBoundingRect()),f=x(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||fe(v)){var m=v==="+"?0:1;b(h,d,c,1,m),b(p,f,c,1,1-m)}else{var m=v>=0?0:1;b(h,d,c,1,m),p[1]=h[1]+v}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=r.rotation,g(a),g(i);function g(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function x(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function b(_,k,S,C,T){_[C]+=S[C][T]-k[C][T]}},t.prototype._createAxis=function(r,n){var a=n.getData(),i=n.get("axisType"),o=W7e(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new G7e("value",o,r.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Xr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Q({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Xr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ce({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ve(o._changeTimeline,o,u.value)},m=bH(d,f,n,v);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Kd(m);var g=$e(m);d.get("tooltip")?(g.dataIndex=u.value,g.dataModel=i):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),v=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),g=new st({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:ve(o._changeTimeline,o,d),silent:!1,style:$t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});g.ensureState("emphasis").style=$t(p),g.ensureState("progress").style=$t(v),n.add(g),Kd(g),xH(g).dataIndex=d,o._tickLabels.push(g)})}},t.prototype._renderControl=function(r,n,a,i){var o=r.controlSize,s=r.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(r.nextBtnPosition,"next",ve(this._changeTimeline,this,d?"-":"+")),f(r.prevBtnPosition,"prev",ve(this._changeTimeline,this,d?"+":"-")),f(r.playPosition,c?"stop":"play",ve(this._handlePlayClick,this,!c),!0);function f(h,p,v,m){if(h){var g=vo(Ge(i.get(["controlStyle",p+"BtnSize"]),o),o),x=[0,-g/2,g,g],b=Y7e(i,p+"Icon",x,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:v});b.ensureState("emphasis").style=u,n.add(b),Kd(b)}}},t.prototype._renderCurrentPointer=function(r,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=ve(u._handlePointerDrag,u),d.ondragend=ve(u._handlePointerDragend,u),wH(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){wH(d,u._progressLine,s,a,i)}};this._currentPointer=bH(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var a=this._toAxisCoord(r)[0],i=this._axis,o=ki(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getL
628ocalTransform();return co(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<r);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",xH(a[i]).dataIndex<=r)},t.type="timeline.slider",t}(V7e);function W7e(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new p3({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new zse({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ju}}function q7e(e,t){return Rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Y7e(e,t,r,n){var a=n.style,i=gx(e.get(["controlStyle",t]),n||{},new We(r[0],r[1],r[2],r[3]));return a&&i.setStyle(a),i}function bH(e,t,r,n,a,i){var o=t.get("color");if(a)a.setColor(o),r.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Sr(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),r.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=He({rectHover:!0,z2:100},n,!0);var u=bx(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Kv(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var d=e.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function wH(e,t,r,n,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",r));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const K7e=H7e;function Z7e(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var a=r.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Ce({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function X7e(e){var t=e&&e.timeline;te(t)||(t=t?[t]:[]),D(t,function(r){r&&J7e(r)})}function J7e(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),_H(e),md(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});md(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!md(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}D(e.data||[],function(a){Te(a)&&!te(a)&&(!md(a,"value")&&md(a,"name")&&(a.value=a.name),_H(a))})}function _H(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!md(a,s)&&(a[s]=o)}),r.label&&!md(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function md(e,t){return e.hasOwnProperty(t)}function Q7e(e){e.registerComponentModel(B7e),e.registerComponentView(K7e),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),Z7e(e),e.registerPreprocessor(X7e)}function m6(e,t){if(!e)return!1;for(var r=te(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Vb(e){yf(e,"label",["show"])}var Ub=at(),$ce=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,
628!0)},t.prototype.isAnimationEnabled=function(){if(ot.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ub(s)[o];if(!l||!l.data){Ub(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Vb(l),D(l.data,function(c){c instanceof Array?(Vb(c[0]),Vb(c[1])):Vb(c)}),u=this.createMarkerModelFromSeries(l,this,n),Q(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ub(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Gr("section",{header:this.name,blocks:[Gr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Ub(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(it);kr($ce,r3.prototype);const tc=$ce;var eVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(tc);const tVe=eVe;function LL(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function rVe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Gb(e,t,r,n,a,i){var o=[],s=Xu(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=y6(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var d=t.get(n,c),f=Go(t.get(n,c));return f=Math.min(f,20),f>=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var ZN={min:Oe(Gb,"min"),max:Oe(Gb,"max"),average:Oe(Gb,"average"),median:Oe(Gb,"median")};function Fy(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!rVe(t)&&!te(t.coord)&&te(a)){var i=Oce(t,r,n,e);if(t=Ie(t),t.type&&ZN[t.type]&&i.baseAxis&&i.valueAxis){var o=Ke(a,i.baseAxis.dim),s=Ke(a,i.valueAxis.dim),l=ZN[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!te(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ZN[u[c]]&&(u[c]=y6(r,r.mapDimension(a[c]),u[c]));return t}}function Oce(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(nVe(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function nVe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function By(e,t){return e&&e.containData&&t.coord&&!LL(t)?e.containData(t.coord):!0}function aVe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!LL(t)&&!LL(r)?e.containZone(t.coord,r.coord):!0}function zce(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ru(o,t[i])}:function(r,n,a,i){return Ru(r.value,t[i])}}function y6(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var XN=at(),iVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Se()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){XN(s).keep=!1}),n.eachSeries(function(s){var l=tc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!XN(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){XN(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;D(r,function(i){var o=tc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?die(l):$O(l))})}})},t.type="marker",t}(ar);const x6=iVe;function SH(e,t,r){var n=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=le(i.get("x"),r.getWidth()),l=le(i.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),c=e.get(n.dimensions[1],a);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var oVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markPoint");o&&(SH(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Tx),d=sVe(o,r,n);n.setData(d),SH(n.getData(),r,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),g=h.getShallow("symbolOffset"),x=h.getShallow("symbolKeepAspect");
628if(ke(p)||ke(v)||ke(m)||ke(g)){var b=n.getRawValue(f),_=n.getDataParams(f);ke(p)&&(p=p(b,_)),ke(v)&&(v=v(b,_)),ke(m)&&(m=m(b,_)),ke(g)&&(g=g(b,_))}var k=h.getModel("itemStyle").getItemStyle(),S=xx(l,"color");k.fill||(k.fill=S),d.setItemVisual(f,{symbol:p,symbolSize:v,symbolRotate:m,symbolOffset:g,symbolKeepAspect:x,style:k})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){$e(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(x6);function sVe(e,t,r){var n;e?n=re(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Q(Q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new qn(n,r),i=re(r.get("data"),Oe(Fy,t));e&&(i=Et(i,Oe(By,e)));var o=zce(!!e,n);return a.initData(i,null,o),a}const lVe=oVe;function uVe(e){e.registerComponentModel(tVe),e.registerComponentView(lVe),e.registerPreprocessor(function(t){m6(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var cVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(tc);const dVe=cVe;var Hb=at(),fVe=function(e,t,r,n){var a=e.getData(),i;if(te(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Zr(n.yAxis,n.xAxis);else{var u=Oce(n,a,t,e);s=u.valueAxis;var c=kse(a,u.valueDataDim);l=y6(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ie(n),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var v=r.get("precision");v>=0&<(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var m=[Fy(e,i[0]),Fy(e,i[1]),Q({},i[2])];return m[2].type=m[2].type||null,He(m[2],m[0]),He(m[2],m[1]),m};function O2(e){return!isNaN(e)&&!isFinite(e)}function kH(e,t,r,n){var a=1-e,i=n.dimensions[e];return O2(t[a])&&O2(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function hVe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(kH(1,r,n,e)||kH(0,r,n,e)))return!0}return By(e,t[0])&&By(e,t[1])}function JN(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=le(o.get("x"),a.getWidth()),u=le(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);s=i.dataToPoint([d,f])}if(Ff(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;O2(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):O2(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var pVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Hb(o).from,u=Hb(o).to;l.each(function(c){JN(l,c,!0,i,a),JN(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new V3);this.group.add(c.group);var d=vVe(o,r,n),f=d.from,h=d.to,p=d.line;Hb(n).from=f,Hb(n).to=h,n.setData(p);var v=n.get("symbol"),m=n.get("symbolSize"),g=n.get("symbolRotate"),x=n.get("symbolOffset");te(v)||(v=[v,v]),te(m)||(m=[m,m]),te(g)||(g=[g,g]),te(x)||(x=[x,x]),d.from.each(function(_){b(f,_,!0),b(h,_,!1)}),p.each(function(_){var k=p.getItemModel(_).getModel("lineStyle").getLineStyle();p.setItemLayout(_,[f.getItemLayout(_),h.getItemLayout(_)]),k.stroke==null&&(k.stroke=f.getItemVisual(_,"style").fill),p.setItemVisual(_,{fromSymbolKeepAspect:f.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(_,"symbolOffset"),fromSymbolRotate:f.getItemVisual(_,"symbolRotate"),fromSymbolSize:f.getItemVisual(_,"symbolSize"),fromSymbol
628:f.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:k})}),c.updateData(p),d.line.eachItemGraphicEl(function(_){$e(_).dataModel=n,_.traverse(function(k){$e(k).dataModel=n})});function b(_,k,S){var C=_.getItemModel(k);JN(_,k,S,r,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=xx(l,"color")),_.setItemVisual(k,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Ge(C.get("symbolOffset",!0),x[S?0:1]),symbolRotate:Ge(C.get("symbolRotate",!0),g[S?0:1]),symbolSize:Ge(C.get("symbolSize"),m[S?0:1]),symbol:Ge(C.get("symbol",!0),v[S?0:1]),style:T})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(x6);function vVe(e,t,r){var n;e?n=re(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Q(Q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new qn(n,r),i=new qn(n,r),o=new qn([],r),s=re(r.get("data"),Oe(fVe,t,e,r));e&&(s=Et(s,Oe(hVe,e)));var l=zce(!!e,n);return a.initData(re(s,function(u){return u[0]}),null,l),i.initData(re(s,function(u){return u[1]}),null,l),o.initData(re(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const gVe=pVe;function mVe(e){e.registerComponentModel(dVe),e.registerComponentView(gVe),e.registerPreprocessor(function(t){m6(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var yVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(tc);const xVe=yVe;var Wb=at(),bVe=function(e,t,r,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Fy(e,a),s=Fy(e,i),l=o.coord,u=s.coord;l[0]=Zr(l[0],-1/0),l[1]=Zr(l[1],-1/0),u[0]=Zr(u[0],1/0),u[1]=Zr(u[1],1/0);var c=yO([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function z2(e){return!isNaN(e)&&!isFinite(e)}function CH(e,t,r,n){var a=1-e;return z2(t[a])&&z2(r[a])}function wVe(e,t){var r=t.coord[0],n=t.coord[1],a={coord:r,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return Ff(e,"cartesian2d")?r&&n&&(CH(1,r,n)||CH(0,r,n))?!0:aVe(e,a,i):By(e,a)||By(e,i)}function TH(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=le(o.get(r[0]),a.getWidth()),u=le(o.get(r[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),f=i.clampData(c),h=i.clampData(d),p=[];r[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],r[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),m=e.get(r[1],t),g=[v,m];i.clampData&&i.clampData(g,g),s=i.dataToPoint(g,!0)}if(Ff(i,"cartesian2d")){var x=i.getAxis("x"),b=i.getAxis("y"),v=e.get(r[0],t),m=e.get(r[1],t);z2(v)?s[0]=x.toGlobalCoord(x.getExtent()[r[0]==="x0"?0:1]):z2(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var AH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_Ve=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=re(AH,function(d){return TH(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var d=SVe(o,r,n);n.setData(d),d.each(function(f){var h=re(AH,function(T){return TH(d,f,T,r,i)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,m=p.getExtent(),g=v.getExtent(),x=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],b=[v.parse(d.get("y0",f)),v.parse(d.get("y1",f))];ki(x),ki(b);var _=!(m[0]>x[1]||m[1]<x[0]||g[0]>b[1]||g[1]<b[0]),k=!_;d.setItemLayout(f,{points:h,allClipped:k});
628var S=d.getItemModel(f).getModel("itemStyle").getItemStyle(),C=xx(l,"color");S.fill||(S.fill=C,fe(S.fill)&&(S.fill=JS(S.fill,.4))),S.stroke||(S.stroke=C),d.setItemVisual(f,"style",S)}),d.diff(Wb(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new _a({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=Wb(c).data.getItemGraphicEl(h),v=d.getItemLayout(f);v.allClipped?p&&c.group.remove(p):(p?ut(p,{shape:{points:v.points}},n,f):p=new _a({shape:{points:v.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=Wb(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),v=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),dn(f,Ur(p),{labelFetcher:n,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:fe(v.fill)?JS(v.fill,1):"#000"}),cn(f,p),nr(f,null,null,p.get(["emphasis","disabled"])),$e(f).dataModel=n}),Wb(c).data=d,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(x6);function SVe(e,t,r){var n,a,i=["x0","y0","x1","y1"];if(e){var o=re(e&&e.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return Q(Q({},d),{name:u,ordinalMeta:null})});a=re(i,function(u,c){return{name:u,type:o[c%2].type}}),n=new qn(a,r)}else a=[{name:"value",type:"float"}],n=new qn(a,r);var s=re(r.get("data"),Oe(bVe,t,e,r));e&&(s=Et(s,Oe(wVe,e)));var l=e?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return Ru(h,a[f])}:function(u,c,d,f){return Ru(u.value,a[f])};return n.initData(s,null,l),n.hasItemOption=!0,n}const kVe=_Ve;function CVe(e){e.registerComponentModel(xVe),e.registerComponentView(kVe),e.registerPreprocessor(function(t){m6(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var TVe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},AVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),te(n)&&D(n,function(i,o){fe(i)&&(i={type:i}),n[o]=He(i,TVe(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var d=l.legendVisualProvider,f=d.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(f)),f.length?n=n.concat(f):c=!0}else c=!0;c&&NO(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=Se(),s=re(i,function(l){return(fe(l)||lt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ot(l,this,this.ecModel))},this);this._data=Et(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;D(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ke(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
628Limit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(it);const RL=AVe;var mh=Oe,$L=D,qb=Me,EVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new qb),this.group.add(this._selectorGroup=new qb),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=r.get("padding"),h=Rr(c,d,f),p=this.layoutInner(r,o,h,i,l,u),v=Rr(Ce({width:p.width,height:p.height},c),d,f);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Tce(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=Se(),d=n.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),$L(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` 629`)){var m=new qb;m.newline=!0,u.add(m);return}var g=a.getSeriesByName(v)[0];if(!c.get(v))if(g){var x=g.getData(),b=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),k=x.getVisual("style"),S=this._createItem(g,v,p,h,n,r,b,k,_,d,i);S.on("click",mh(EH,v,null,i,f)).on("mouseover",mh(OL,g.name,null,i,f)).on("mouseout",mh(zL,g.name,null,i,f)),c.set(v,!0)}else a.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(v))return;var E=T.indexOfName(v),A=T.getItemVisual(E,"style"),N=T.getItemVisual(E,"legendIcon"),P=ja(A.fill);P&&P[3]===0&&(P[3]=.2,A=Q(Q({},A),{fill:Ys(P,"rgba")}));var L=this._createItem(C,v,p,h,n,r,{},A,N,d,i);L.on("click",mh(EH,null,v,i,f)).on("mouseover",mh(OL,null,v,i,f)).on("mouseout",mh(zL,null,v,i,f)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();$L(r,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);dn(d,{normal:f,emphasis:h},{defaultText:u.title}),Kd(d)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,d,f){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(n),g=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var _=NVe(c,i,l,u,h,m,f),k=new qb,S=i.getModel("textStyle");if(ke(r.getLegendIcon)&&(!b||b==="inherit"))k.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var C=b==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;k.add(IVe({itemWidth:p,itemHeight:v,icon:c,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}))}var T=s==="left"?p+5:-5,E=s,A=o.get("formatter"),N=n;fe(A)&&A?N=A.replace("{name}",n??""):ke(A)&&(N=A(n));var P=i.get("inactiveColor");k.add(new st({style:$t(S,{text:N,x:T,y:v/2,fill:m?S.getTextColor():P,align:E,verticalAlign:"middle"})}));
629var L=new nt({shape:k.getBoundingRect(),invisible:!0}),R=i.getModel("tooltip");return R.get("show")&&Bv({el:L,componentModel:o,itemName:n,itemTooltipOption:R.option}),k.add(L),k.eachChild(function(M){M.silent=!0}),L.silent=!d,this.getContentGroup().add(k),Kd(k),k.__legendDataIndex=a,k},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Xd(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Xd("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,m=v===0?"width":"height",g=v===0?"height":"width",x=v===0?"y":"x";s==="end"?h[v]+=c[m]+p:d[v]+=f[m]+p,h[1-v]+=c[g]/2-f[g]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var b={x:0,y:0};return b[m]=c[m]+p+f[m],b[g]=Math.max(c[g],f[g]),b[x]=Math.min(0,f[x]+h[1-v]),b}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ar);function NVe(e,t,r,n,a,i,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),$L(m,function(x,b){m[b]==="inherit"&&(m[b]=g[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?n.decal:nv(d,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function IVe(e){var t=e.icon||"roundRect",r=Sr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function EH(e,t,r,n){zL(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),OL(e,t,r,n)}function Fce(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function OL(e,t,r,n){Fce(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function zL(e,t,r,n){Fce(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const Bce=EVe;function PVe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Qg(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===` 630`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function MVe(e){e.registerAction("legendToggleSelect","legendselectchanged",Oe(Qg,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Oe(Qg,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Oe(Qg,"inverseSelect")),e.registerAction("legendSelect","legendselected",Oe(Qg,"select")),e.registerAction("legendUnSelect","legendunselected",Oe(Qg,"unSelect"))}function jce(e){e.registerComponentModel(RL),e.registerComponentView(Bce),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,PVe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),MVe(e)}var DVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Gv(r);e.prototype.init.call(this,r,n,a),NH(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),NH(this,this.option,r)},t.type="legend.scroll",t.defaultOption=hc(RL.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(RL);function NH(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Zu(t,r,{type:"box",ignoreSize:!!a})}const LVe=DVe;var IH=Me,QN=["width","height"],eI=["x","y"],RVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new IH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new IH)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,d=n.get("pageIconSize",!0),f=te(d)?d:[d,d];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new st({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,m){var g=v+"DataIndex",x=gx(n.get("pageIcons",!0)[n.getOrient().name][m],{onclick:ve(u._pageGo,u,g,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});x.name=v,c.add(x)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=QN[u],d=eI[u],f=QN[1-u],h=eI[1-u];o&&Xd("horizontal",l,r.get("selectorItemGap",!0));
630var p=r.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],g=Ie(a);o&&(g[c]=a[c]-v[c]-p);var x=this._layoutContentAndController(r,i,g,u,c,f,h,d);if(o){if(s==="end")m[u]+=x[c]+p;else{var b=v[c]+p;m[u]-=b,x[d]-=b}x[c]+=v[c]+p,m[1-u]+=x[h]+x[f]/2-v[f]/2,x[f]=Math.max(x[f],v[f]),x[h]=Math.min(x[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return x},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;Xd(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),Xd("horizontal",f,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=f.getBoundingRect(),v=this._showController=h[o]>a[o],m=[-h.x,-h.y];n||(m[i]=c[u]);var g=[0,0],x=[-p.x,-p.y],b=Ge(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var _=r.get("pageButtonPosition",!0);_==="end"?x[i]+=a[o]-p[o]:g[i]+=p[o]+b}x[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(g),f.setPosition(x);var k={x:0,y:0};if(k[o]=v?a[o]:h[o],k[s]=Math.max(h[s],p[s]),k[l]=Math.min(0,p[l]+x[1-i]),d.__rectSize=a[o],v){var S={x:0,y:0};S[o]=Math.max(a[o]-p[o]-b,0),S[s]=k[s],d.setClipPath(new nt({shape:S})),d.__rectSize=S[o]}else f.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&ut(c,{x:C.contentPosition[0],y:C.contentPosition[1]},v?r:null),this._updatePageInfoView(r,C),k},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=n[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",fe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=QN[o],l=eI[o],u=this._findTargetItemIndex(n),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var v=_(d);p.contentPosition[o]=-v.s;for(var m=u+1,g=v,x=v,b=null;m<=f;++m)b=_(c[m]),(!b&&x.e>g.s+i||b&&!k(b,g.s))&&(x.i>g.i?g=x:g=b,g&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=g.i),++p.pageCount)),x=b;for(var m=u-1,g=v,x=v,b=null;m>=-1;--m)b=_(c[m]),(!b||!k(x,b.s))&&g.i<x.i&&(x=g,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=b;return p;function _(S){if(S){var C=S.getBoundingRect(),T=C[l]+S[l];return{s:T,e:T+C[s],i:S.__legendDataIndex}}}function k(S,C){return S.e>=C&&S.s<=C+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(Bce);const $Ve=RVe;function OVe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function zVe(e){Ze(jce),e.registerComponentModel(LVe),e.registerComponentView($Ve),OVe(e)}function FVe(e){Ze(jce),Ze(zVe)}var BVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=hc(zy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(zy);const jVe=BVe;var b6=at();function VVe(e,t,r){b6(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function UVe(e,t){for(var r=b6(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Vce(r,o))}}}function Vce(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function GVe(e,t){var r={model:t,containsPoint:Oe(WVe,t),dispatchAction:Oe(HVe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new Ix(e.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function HVe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function WVe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function qVe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}
630),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function YVe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=b6(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=Se());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Sce(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,GVe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Se());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Vce(a,i);return}var c=qVe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Yv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var KVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),VVe(a,r,{pan:ve(tI.pan,this),zoom:ve(tI.zoom,this),scrollMove:ve(tI.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){UVe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(d6),tI={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=rI[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();
630if(jf(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:PH(function(e,t,r,n,a,i){var o=rI[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:PH(function(e,t,r,n,a,i){var o=rI[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function PH(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(jf(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var rI={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const ZVe=KVe;function Uce(e){f6(e),e.registerComponentModel(jVe),e.registerComponentView(ZVe),YVe(e)}var XVe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hc(zy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(zy);const JVe=XVe;var e0=nt,MH=7,QVe=1,nI=30,e9e=7,t0="horizontal",DH="vertical",t9e=5,r9e=["line","bar","candlestick","scatter"],n9e={easing:"cubicOut",duration:100,delay:0},a9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ve(this._onBrush,this),this._onBrushEnd=ve(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Yv(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ty(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;
630this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?e9e:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===t0?{right:s.width-o.x-o.width,top:s.height-nI-MH-i,width:o.width,height:nI}:{right:MH,top:o.y,width:nI,height:o.height},u=Gv(r.option);D(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=Rr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===DH&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===t0&&!o?{scaleY:l?1:-1,scaleX:1}:a===t0&&o?{scaleY:l?1:-1,scaleX:-1}:a===DH&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new e0({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new e0({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ve(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],m=[],g=p[1]/(o.count()-1),x=0,b=Math.round(o.count()/n[0]),_;o.each([l],function(E,A){if(b>0&&A%b){x+=g;return}var N=E==null||isNaN(E)||E==="",P=N?0:Ct(E,d,h,!0);N&&!_&&A?(v.push([v[v.length-1][0],0]),m.push([m[m.length-1][0],0])):!N&&_&&(v.push([x,0]),m.push([x,0])),v.push([x,P]),m.push([x,P]),x+=g,_=N}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var k=this.dataZoomModel;function S(E){var A=k.getModel(E?"selectedDataBackground":"dataBackground"),N=new Me,P=new _a({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new ka({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return N.add(P),N.add(L),N}for(var C=0;C<3;C++){var T=S(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&Ke(r9e,u.get("type"))<0)){var c=i.getComponent(mu(o),s).axis,d=i9e(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=n.filler=new e0({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new e0({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c}
630,style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:QVe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(b){var _=l.get("handleIcon");!p2[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var k=Sr(_,-1,0,2,2,null,!0);k.attr({cursor:LH(this._orient),draggable:!0,drift:ve(this._onDragMove,this,b),ondragend:ve(this._onDragEnd,this),onmouseover:ve(this._showDataInfo,this,!0),onmouseout:ve(this._showDataInfo,this,!1),z2:5});var S=k.getBoundingRect(),C=l.get("handleSize");this._handleHeight=le(C,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,k.setStyle(l.getModel("handleStyle").getItemStyle()),k.style.strokeNoScale=!0,k.rectHover=!0,k.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Kd(k);var T=l.get("handleColor");T!=null&&(k.style.fill=T),o.add(a[b]=k);var E=l.getModel("textStyle");r.add(i[b]=new st({silent:!0,invisible:!0,style:$t(E,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:E.getTextColor(),font:E.getFont()}),z2:10}))},this);var h=f;if(d){var p=le(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new nt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,g=n.moveHandleIcon=Sr(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);g.silent=!0,g.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new nt({invisible:!0,shape:{y:s[1]-x,height:p+x}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(g),o.add(h)}h.attr({draggable:!0,cursor:LH(this._orient),drift:ve(this._onDragMove,this,"all"),ondragstart:ve(this._showDataInfo,this,!0),ondragend:ve(this._onDragEnd,this),onmouseover:ve(this._showDataInfo,this,!0),onmouseout:ve(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ct(r[0],[0,100],n,!0),Ct(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];jf(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=ki([Ct(i[0],o,l,!0),Ct(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=ki(a.slice()),o=this._size;D([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:a[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var d=l[c],f=d.getClipPath();f||(f=new nt,d.setClipPath(f)),f.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,d=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var f=ki(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=Zd(a.handles[p].parent,this.group),m=mC(p===0?"right":"left",v),g=this._handleWidth/2+t9e,x=co([f[p]+(p===0?-g:g),this._size[1]/2],v);i[p].setStyle({x:x[0],y:x[1],verticalAlign:o===t0?"middle":m,align:o===t0?m:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return ke(i)?i(r,s):fe(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,al(i.event);
630var o=this._displayables.sliderGroup.getLocalTransform(),s=co([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new Be(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ki([Ct(a.x,o,s,!0),Ct(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(al(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new e0({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?n9e:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Sce(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(d6);function i9e(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function LH(e){return e==="vertical"?"ns-resize":"ew-resize"}const o9e=a9e;function Gce(e){e.registerComponentModel(JVe),e.registerComponentView(o9e),f6(e)}function s9e(e){Ze(Uce),Ze(Gce)}var l9e={get:function(e,t,r){var n=Ie((u9e[e]||{})[t]);return r&&te(n)?n[n.length-1]:n}},u9e={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]}
630,colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Hce=l9e;var RH=ln.mapVisual,c9e=ln.eachVisual,d9e=te,$H=D,f9e=ki,h9e=Ct,p9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.optionUpdated=function(r,n){var a=this.option;!n&&Dce(a,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ve(r,this),this.controllerVisuals=ML(this.option.controller,n,r),this.targetVisuals=ML(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Pt(r),n},t.prototype.eachTargetSeries=function(r,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&r.call(n,i)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(a){a===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],te(r)&&(r=r.slice(),u=!0);var c=n?r:u?[d(r[0]),d(r[1])]:d(r);if(fe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ke(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?a[0]+" "+c[1]:r[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=f9e([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var a=r.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});He(i,a),He(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){d9e(n.color)&&!d.inRange&&(d.inRange={color:n.color.slice().reverse()}),d.inRange=d.inRange||{color:r.get("gradientColor")}}function u(d,f,h){var p=d[f],v=d[h];p&&!v&&(v=d[h]={},$H(p,function(m,g){if(ln.isValidType(g)){var x=Hce.get(g,"inactive",s);x!=null&&(v[g]=x,g==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";$H(this.stateList,function(g){var x=this.itemSize,b=d[g];b||(b=d[g]={color:s?p:[p]}),b.symbol==null&&(b.symbol=f&&Ie(f)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=h&&Ie(h)||(s?x[0]:[x[0],x[0]])),b.symbol=RH(b.symbol,function(S){return S==="none"?m:S});var _=b.symbolSize;if(_!=null){var k=-1/0;c9e(_,function(S){S>k&&(k=S)}),b.symbolSize=RH(_,function(S){return h9e(S,[0,k],[0,x[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(it);const F2=p9e;var OH=[20,140],v9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;
630(r[0]==null||isNaN(r[0]))&&(r[0]=OH[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=OH[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):te(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=ki((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=r)&&(n[1]>=a[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(r){var n=zH(this,"outOfRange",this.getExtent()),a=zH(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=a.length,c=n.length;l<c&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var d=1;l<c;l++)(!a.length||a[a.length-1]<n[l])&&(d&&(i.length&&o(i[i.length-1].value,"outOfRange"),d=0),o(n[l],"outOfRange"));var f=i.length;return{stops:i,outerColors:[f?i[0].color:"transparent",f?i[f-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hc(F2.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(F2);function zH(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,a=(r[1]-r[0])/n,i=r[0],o=[],s=0;s<=n&&i<r[1];s++)o.push(i),i+=a;return o.push(r[1]),o}const g9e=v9e;var m9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,a,i){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,a,i)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,a=Uv(n.get("padding")||0),i=r.getBoundingRect();r.add(new nt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var d=o.controllerVisuals[i||o.getValueState(r)],f=ln.prepareVisualTypes(d);return D(f,function(h){var p=d[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=d.__alphaForOpacity),ln.dependsOn(h,n)&&p&&p.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,a=this.api;kC(r,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(r,n,a,i){},t.type="visualMap",t}(ar);const Wce=m9e;var FH=[["left","right","width"],["top","bottom","height"]];function qce(e,t,r){var n=e.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=FH[o],l=[0,null,10],u={},c=0;c<3;c++)u[FH[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var d=[["x","width",3],["y","height",0]][o],f=Rr(u,i,n.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<i[d[1]]*.5?0:1]}function I_(e,t){return D(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Do=Ct,y9e=D,BH=Math.min,aI=Math.max,x9e=12,b9e=6,w9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.doRender=function(r,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var a=r.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackgroun
vendor: 13,658 bytes, line 630
630d(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),d=this._applyTransform(a===0?"bottom":"top",u),f=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new st({style:$t(h,{x:c[0],y:c[1],verticalAlign:f==="horizontal"?"middle":d,align:f==="horizontal"?d:"center",text:i})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=qce(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Me;u.add(c),c.add(a.outOfRange=jH()),c.add(a.inRange=jH(null,s?UH(this._orient):null,ve(this._dragHandle,this,"all",!1),ve(this._dragHandle,this,"all",!0))),c.setClipPath(new nt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var d=n.textStyleModel.getTextRect("å½"),f=aI(d.width,d.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,f,o),this._createHandle(n,u,1,i,f,o)),this._createIndicator(n,u,i,f,o),r.add(u)},t.prototype._createHandle=function(r,n,a,i,o,s){var l=ve(this._dragHandle,this,a,!1),u=ve(this._dragHandle,this,a,!0),c=vo(r.get("handleSize"),i[0]),d=Sr(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),f=UH(this._orient);d.attr({cursor:f,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){al(g.event)}}),d.x=i[0]/2,d.useStyle(r.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Id(d,!0),n.add(d);var h=this.visualMapModel.textStyleModel,p=new st({cursor:f,draggable:!0,drift:l,onmousemove:function(g){al(g.event)},ondragend:u,style:$t(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],m=this._shapes;m.handleThumbs[a]=d,m.handleLabelPoints[a]=v,m.handleLabels[a]=p},t.prototype._createIndicator=function(r,n,a,i,o){var s=vo(r.get("indicatorSize"),a[0]),l=Sr(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof hn){var c=l.style;l.useStyle(Q({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var d=this.visualMapModel.textStyleModel,f=new st({silent:!0,invisible:!0,style:$t(d,{x:0,y:0,text:""})});this.group.add(f);var h=[(o==="horizontal"?i/2:b9e)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=f,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():VH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),a=r.getExtent(),i=[0,r.itemSize[1]];this._handleEnds=[Do(n[0],a,i,!0),Do(n[1],a,i,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];jf(n,i,o,r,0);var s=a.getExtent();this._dataInterval=[Do(i[0],o,s,!0),Do(i[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new zv(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var a=100,i=[],o=(r[1]-r[0])/a;i.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=r[0]+o*s;if(l>r[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(r,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],r[0]],[a[0],r[0]],[a[0],r[1]],[a[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,a=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!a?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();y9e([0,1],function(c){var d=o[c];d.setStyle("fill",n.handlesColor[c]),d.y=r[c];var f=Do(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=co(a.handleLabelPoints[c],Zd(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",f),p=this.getControllerVisual(r,"symbolSize"),v=Do(r,s,u,!0),m=l[0]-p/2,g={x:d.x,y:d.y};d.y=v,d.x=m;var x=co(c.indicatorLabelPoint,Zd(d,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),k=this._orient,S=k==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:S?_:"middle",align:S?"center":_});var C={x:m,y:v,style:{fill:h}},T={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var E={duration:100,easing:"cubicInOut",additive:!0};d.x=g.x,d.y=g.y,d.animateTo(C,E),b.animateTo(T,E)}else d.attr(C),b.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var N=0;N<A.length;N++)this._api.enterBlur(A[N])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var a=r.visualMapModel.itemSize,i=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);i[1]=BH(aI(0,i[1]),a[1]),r._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();r=BH(aI(o[0],r),o[1]);var l=_9e(a,s,o),u=[r-l,r+l],c=Do(r,o,s,!0),d=[Do(u[0],o,s,!0),Do(u[1],o,s,!0)];u[0]<o[0]&&(d[0]=-1/0),u[1]>o[1]&&(d[1]=1/0),n&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"â ",l));var f=this._hoverLinkDataIndices,h=[];(n||VH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=pAe(f,h);this._dispatchHighDown("downplay",I_(p[0],a)),this._dispatchHighDown("highlight",I_(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Md(r.target,function(l){var u=$e(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this._api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",I_(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,a,i){var o=Zd(n,i?null:this.group);return te(r)?co(r,o,a):mC(r,o,a)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(Wce);function jH(e,t,r,n){return new _a({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(a){al(a.event)},ondragend:n})}function _9e(e,t,r){var n=x9e/2,a=e.get("hoverLinkDataSize");return a&&(n=Do(a,t,r,!0)/2),n}function VH(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function UH(e){return e==="vertical"?"ns-resize":"ew-resize"}const S9e=w9e;var k9e={type:"selectDataRange",event:"dataRangeSelected",update:"update"},C9e=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},T9e=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var a=e.pipelineContext;!n.isTargetSeries(e)||a&&a.large||r.push(b7e(n.stateList,n.targetVisuals,ve(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(ve(A9e,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(r);o>=0&&(i.dimension=o,n.push(i))}}),e.getData().setVisual("visualMeta",n)}}];function A9e(e,t,r,n){for(var a=t.targetVisuals[n],i=ln.prepareVisualTypes(a),o={color:xx(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,d,f)}return o.color;function d(h){return o[h]}function f(h,p){o[h]=p}}var GH=D;function E9e(e){var t=e&&e.visualMap;te(t)||(t=t?[t]:[]),GH(t,function(r){if(r){yh(r,"splitList")&&!yh(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&te(n)&&GH(n,function(a){Te(a)&&(yh(a,"start")&&!yh(a,"min")&&(a.min=a.start),yh(a,"end")&&!yh(a,"max")&&(a.max=a.end))})}})}function yh(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var HH=!1;function Yce(e){HH||(HH=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(k9e,C9e),D(T9e,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(E9e))}function Kce(e){e.registerComponentModel(g9e),e.registerComponentView(S9e),Yce(e)}var N9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],I9e[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ie(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=re(this._pieceList,function(l){return l=Ie(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},a=ln.listVisualTypes(),i=this.isCategory();D(r.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Hce.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var a=this.option,i=this._pieceList,o=(n?a:r).selected||{};if(a.selected=o,D(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Ie(r)},t.prototype.getValueState=function(r){var n=ln.findPieceIndex(r,this._pieceList);
630return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=ln.findPieceIndex(l,a);c===r&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var a=r.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=r(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return D(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=hc(F2.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(F2),I9e={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(r)!==i&&r<5;)r++;t.precision=r,i=+i.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),Fj(e),D(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),WH(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(r,n){Te(r)||(r={value:r});var a={text:"",index:n};if(r.label!=null&&(a.text=r.label),r.hasOwnProperty("value")){var i=a.value=r.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],h=0;h<3&&o[d]==null;h++)o[d]=r[f[h]],s[d]=l[h],c[d]=h===2;o[d]==null&&(o[d]=u[d])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}
630a.visual=ln.retrieveVisuals(r),e.push(a)},this),WH(t,e),Fj(e),D(e,function(r){var n=r.close,a=[["<","â¤"][n[1]],[">","â¥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,a)},this)}};function WH(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const P9e=N9e;var M9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),d=c.endsText,f=Zr(n.get("showLabel",!0),!d);d&&this._renderEndsText(r,d[0],u,f,l),D(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ve(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var m=n.getRepresentValue(p);if(this._createItemSymbol(v,m,[0,0,u[0],u[1]]),f){var g=this.visualMapModel.getValueState(m);v.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:g==="outOfRange"?.5:1}}))}r.add(v)},this),d&&this._renderEndsText(r,d[1],u,f,l),Xd(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var a=this;r.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:I_(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return qce(r,this.api,r.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(r,n,a,i,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new st({style:$t(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=re(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=r.get("text"),i=r.get("orient"),o=r.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(r,n,a){r.add(Sr(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=Ie(a.selected),s=n.getSelectedMapKey(r);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(Wce);const D9e=M9e;function Zce(e){e.registerComponentModel(P9e),e.registerComponentView(D9e),Yce(e)}function L9e(e){Ze(Kce),Ze(Zce)}var R9e={label:{enabled:!0},decal:{show:!1}},qH=at(),$9e={};function O9e(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ie(R9e);He(n.label,e.getLocaleModel().get("aria"),!1),He(r.option,n,!1),a(),i();function a(){var u=r.getModel("decal"),c=u.get("show");if(c){var d=Se();e.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),qH(f).scope=h}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(ke(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var x=BD(f.ecModel,f.name,$9e,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",_(b,x))}else{var p=f.getRawData(),v={},m=qH(f).scope;h.each(function(k){var S=h.getRawIndex(k);v[S]=k});var g=p.count();p.each(function(k){var S=v[k],C=p.getName(k)||k+"",T=BD(f.ecModel,C,m,g),E=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",_(E,T))})}function _(k,S){var C=k?Q(Q({},S),k):S;return C.dirty=!0,C}})}}function i(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=Ce(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(f,p),m;if(!(f<1)){var g=s();if(g){var x=c.get(["general","withTitle"]);m=o(x,{title:g})}else m=c.get(["general","withoutTitle"]);var b=[],_=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(_,{seriesCount:f}),e.eachSeries(function(T,E){if(E<v){var A=void 0,N=T.get("name"),P=N?"withName":"withoutName";A=f>1?c.get(["series","multiple",P]):c.get(["series","single",P]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var R=c.get(["data","partialData"]);A+=o(R,{displayCnt:h})}else A+=c.get(["data","allData"]);for(var M=c.get(["data","separator","middle"]),$=c.get(["data","separator","end"]),V=[],B=0;B<L.count();B++)if(B<h){var j=L.getName(B),I=L.getValues(B),U=c.get(["data",j?"withName":"withoutName"]);
630V.push(o(U,{name:j,value:I.join(M)}))}A+=V.join(M)+$,b.push(A)}});var k=c.getModel(["series","multiple","separator"]),S=k.get("middle"),C=k.get("end");m+=b.join(S)+C,d.setAttribute("aria-label",m)}}}function o(u,c){if(!fe(u))return u;var d=u;return D(c,function(f,h){d=d.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),f)}),d}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"èªå®ä¹å¾"}}function z9e(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},D(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function F9e(e){e.registerPreprocessor(z9e),e.registerVisual(e.PRIORITY.VISUAL.ARIA,O9e)}var YH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},B9e=function(){function e(t){var r=this._condVal=fe(t)?new RegExp(t):CCe(t)?t:null;if(r==null){var n="";mt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return fe(r)?this._condVal.test(t):lt(r)?this._condVal.test(t+""):!1},e}(),j9e=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),V9e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),U9e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),G9e=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),H9e=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},e}();function w6(e,t){if(e===!0||e===!1){var r=new j9e;return r.value=e,r}var n="";return Xce(e)||mt(n),e.and?KH("and",e,t):e.or?KH("or",e,t):e.not?W9e(e,t):q9e(e,t)}function KH(e,t,r){var n=t[e],a="";te(n)||mt(a),n.length||mt(a);var i=e==="and"?new V9e:new U9e;return i.children=re(n,function(o){return w6(o,r)}),i.children.length||mt(a),i}function W9e(e,t){var r=e.not,n="";Xce(r)||mt(n);var a=new G9e;return a.child=w6(r,t),a.child||mt(n),a}function q9e(e,t){for(var r="",n=t.prepareGetValue(e),a=[],i=tt(e),o=e.parser,s=o?Toe(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=ye(YH,u)?YH[u]:u,d=e[u],f=s?s(d):d,h=NIe(c,f)||c==="reg"&&new B9e(f);h||mt(r),a.push(h)}}a.length||mt(r);var p=new H9e;return p.valueGetterParam=n,p.valueParser=s,p.getValue=t.getValue,p.subCondList=a,p}function Xce(e){return Te(e)&&!Ln(e)}var Y9e=function(){function e(t,r){this._cond=w6(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function K9e(e,t){return new Y9e(e,t)}var Z9e={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=K9e(e.config,{valueGetterAttrMap:Se({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ye(s,"dimension")||mt(l);var c=t.getDimensionInfo(u);return c||mt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)r=t.getRawDataItem(i),n.evaluate()&&a.push(r);return{data:a}}},X9e={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",a=Pt(r);a.length||mt(n);var i=[];D(a,function(c){var d=c.dimension,f=c.order,h=c.parser,p=c.incomparable;if(d==null&&mt(n),f!=="asc"&&f!=="desc"&&mt(n),p&&p!=="min"&&p!=="max"){var v="";mt(v)}if(f!=="asc"&&f!=="desc"){var m="";mt(m)}var g=t.getDimensionInfo(d);g||mt(n);var x=h?Toe(h):null;h&&!x&&mt(n),i.push({dimIdx:g.index,parser:x,comparator:new Eoe(f,p)})});var o=t.sourceFormat;o!==Rn&&o!==Ri&&mt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,d){for(var f=0;f<i.length;f++){var h=i[f],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(d,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var m=h.comparator.evaluate(p,v);if(m!==0)return m}return 0}),{data:s}}};function J9e(e){e.registerTransform(Z9e),e.registerTransform(X9e)}var Q9e=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,a){e.prototype.init.call(this,r,n,a),this._sourceManager=new Moe(this),Q7(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Q7(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Qo},t}(it),eUe=function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(ar);function tUe(e){e.registerComponentModel(Q9e),e.registerComponentView(eUe)}var No=is.CMD;function op(e,t){return Math.abs(e-t)<1e-5}function FL(e){var t=e.data,r=e.len(),n=[],a,i=0,o=0,s=0,l=0;function u(L,R){a&&a.length>2&&n.push(a),a=[L,R]}function c(L,R,M,$){op(L,M)&&op(R,$)||a.push(L,R,M,$,M,$)}function d(L,R,M,$,V,B){var j=Math.abs(R-L),I=Math.tan(j/4)*4/3,U=R<L?-1:1,Y=Math.cos(L),O=Math.sin(L),H=Math.cos(R),ie=Math.sin(R),ee=Y*V+M,se=O*B+$,oe=H*V+M,be=ie*B+$,me=V*I*U,Z=B*I*U;a.push(ee-me*O,se+Z*Y,oe+me*ie,be-Z*H,oe,be)}for(var f,h,p,v,m=0;m<r;){var g=t[m++],x=m===1;switch(x&&(i=t[m],o=t[m+1],s=i,l=o,(g===No.L||g===No.C||g===No.Q)&&(a=[s,l])),g){case No.M:i=s=t[m++],o=l=t[m++],u(s,l);break;case No.L:f=t[m++],h=t[m++],c(i,o,f,h),i=f,o=h;break;case No.C:a.push(t[m++],t[m++],t[m++],t[m++],i=t[m++],o=t[m++]);break;case No.Q:f=t[m++],h=t[m++],p=t[m++],v=t[m++],a.push(i+2/3*(f-i),o+2/3*(h-o),p+2/3*(f-p),v+2/3*(h-v),p,v),i=p,o=v;break;case No.A:var b=t[m++],_=t[m++],k=t[m++],S=t[m++],C=t[m++],T=t[m++]+C;m+=1;var E=!t[m++];f=Math.cos(C)*k+b,h=Math.sin(C)*S+_,x?(s=f,l=h,u(s,l)):c(i,o,f,h),i=Math.cos(T)*k+b,o=Math.sin(T)*S+_;for(var A=(E?-1:1)*Math.PI/2,N=C;E?N>T:N<T;N+=A){var P=E?Math.max(N+A,T):Math.min(N+A,T);d(N,P,b,_,k,S)}break;case No.R:s=i=t[m++],l=o=t[m++],f=s+t[m++],h=l+t[m++],u(f,l),c(f,l,f,h),c(f,h,s,h),c(s,h,s,l),c(s,l,f,l);break;case No.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function BL(e,t,r,n,a,i,o,s,l,u){if(op(e,r)&&op(t,n)&&op(a,o)&&op(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-e,h=s-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var v=r-e,m=n-t,g=a-o,x=i-s,b=v*v+m*m,_=g*g+x*x;if(b<d&&_<d){l.push(o,s);return}var k=f*v+h*m,S=-f*g-h*x,C=b-k*k,T=_-S*S;if(C<d&&k>=0&&T<d&&S>=0){l.push(o,s);return}var E=[],A=[];Yu(e,r,a,o,.5,E),Yu(t,n,i,s,.5,A),BL(E[0],A[0],E[1],A[1],E[2],A[2],E[3],A[3],l,u),BL(E[4],A[4],E[5],A[5],E[6],A[6],E[7],A[7],l,u)}function rUe(e,t){var r=FL(e),n=[];t=t||1;for(var a=0;a<r.length;a++){var i=r[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],d=i[u++],f=i[u++],h=i[u++],p=i[u++],v=i[u++];BL(s,l,c,d,f,h,p,v,o,t),s=p,l=v}n.push(o)}return n}
vendor: 4,230 bytes, line 630
630function Jce(e,t,r){var n=e[t],a=e[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,d=r-c;if(d>0)for(var u=0;u<d;u++)l[u%o]+=1;return l}function ZH(e,t,r){for(var n=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),d=Jce([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;h<d.length;h++)for(var p=(c?u:s)/d[h],v=0;v<d[h];v++){var m={};c?(m.startAngle=i+f*h,m.endAngle=i+f*(h+1),m.r0=n+p*v,m.r=n+p*(v+1)):(m.startAngle=i+p*v,m.endAngle=i+p*(v+1),m.r0=n+f*h,m.r=n+f*(h+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,r.push(m)}}function nUe(e,t,r){for(var n=e.width,a=e.height,i=n>a,o=Jce([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=e[s]/o.length,f=0;f<o.length;f++)for(var h=e[l]/o[f],p=0;p<o[f];p++){var v={};v[u]=f*d,v[c]=p*h,v[s]=d,v[l]=h,v.x+=e.x,v.y+=e.y,r.push(v)}}function XH(e,t,r,n){return e*n-r*t}function aUe(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,d=s-i,f=XH(c,d,l,u);if(Math.abs(f)<1e-6)return null;var h=e-a,p=t-i,v=XH(h,p,c,d)/f;return v<0||v>1?null:new Be(v*l+e,v*u+t)}function iUe(e,t,r){var n=new Be;Be.sub(n,r,t),n.normalize();var a=new Be;Be.sub(a,e,t);var i=a.dot(n);return i}function xh(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function oUe(e,t,r){for(var n=e.length,a=[],i=0;i<n;i++){var o=e[i],s=e[(i+1)%n],l=aUe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&a.push({projPt:iUe(l,t,r),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(m,g){return m.projPt-g.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var f=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[f],v=[h],i=u.idx+1;i<=c.idx;i++)xh(p,e[i].slice());xh(p,h),xh(p,f);for(var i=c.idx+1;i<=u.idx+n;i++)xh(v,e[i%n].slice());return xh(v,f),xh(v,h),[{points:p},{points:v}]}function JH(e){var t=e.points,r=[],n=[];dC(t,r,n);var a=new We(r[0],r[1],n[0]-r[0],n[1]-r[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Be,c=new Be;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),oUe(t,u,c)}function B2(e,t,r,n){if(r===1)n.push(t);else{var a=Math.floor(r/2),i=e(t);B2(e,i[0],a,n),B2(e,i[1],r-a,n)}return n}function sUe(e,t){for(var r=[],n=0;n<t;n++)r.push(zO(e));return r}function lUe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function uUe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function cUe(e,t){var r=[],n=e.shape,a;switch(e.type){case"rect":nUe(n,t,r),a=nt;break;case"sector":ZH(n,t,r),a=wa;break;case"circle":ZH({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),a=wa;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=re(rUe(e.getUpdatedPathProxy(),o),function(g){return uUe(g)}),l=s.length;if(l===0)B2(JH,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,d=re(s,function(g){var x=[],b=[];dC(g,x,b);var _=(b[1]-x[1])*(b[0]-x[0]);return c+=_,{poly:g,area:_}});d.sort(function(g,x){return x.area-g.area});for(var f=t,u=0;u<l;u++){var h=d[u];if(f<=0)break;var p=u===l-1?f:Math.ceil(h.area/c*t);p<0||(B2(JH,{points:h.poly},p,r),f-=p)}}a=_a;break}if(!a)return sUe(e,t);for(var v=[],u=0;u<r.length;u++){var m=new a;m.setShape(r[u]),lUe(e,m),v.push(m)}return v}function dUe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var a=[],i=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],f=l,h=2;h<s;){var p=o[h-2],v=o[h-1],m=o[h++],g=o[h++],x=o[h++],b=o[h++],_=o[h++],k=o[h++];if(f<=0){d.push(m,g,x,b,_,k);continue}for(var S=Math.min(f,c-1)+1,C=1;C<=S;C++){var T=C/S;Yu(p,m,x,_,T,a),Yu(v,g,b,k,T,i),p=a[3],v=i[3],d.push(a[1],i[1],a[2],i[2],p,v),m=a[5],g=i[5],x=a[6],b=i[6]}f-=S-1}return o===e?[d,t]:[e,d]}function QH(e,t){for(var r=e.length,n=e[r-2],a=e[r-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function fUe(e,t){for(var r,n,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,d=void 0;l?u?(r=dUe(l,u),c=r[0],d=r[1],n=c,a=d):(d=QH(a||l,l),c=l):(c=QH(n||u,u),d=u),i.push(c),o.push(d)}return[i,o]}function eW(e){for(var t=0,r=0,n=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],d=s*c-u*l;
630t+=d,r+=(s+u)*d,n+=(l+c)*d}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function hUe(e,t,r,n){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,d=0,f=0;f<s;f+=2){var h=f===0?c:(c+f-2)%l+2,p=e[h]-r[0],v=e[h+1]-r[1],m=t[f]-n[0],g=t[f+1]-n[1],x=m-p,b=g-v;d+=x*x+b*b}d<i&&(i=d,o=u)}return o}function pUe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function vUe(e,t,r,n){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=eW(s),c=eW(l);i==null&&(i=u[2]<0!=c[2]<0);var d=[],f=[],h=0,p=1/0,v=[],m=s.length;i&&(s=pUe(s));for(var g=hUe(s,l,u,c)*6,x=m-2,b=0;b<x;b+=2){var _=(g+b)%x+2;d[b+2]=s[_]-u[0],d[b+3]=s[_+1]-u[1]}if(d[0]=s[g]-u[0],d[1]=s[g+1]-u[1],r>0)for(var k=n/r,S=-n/2;S<=n/2;S+=k){for(var C=Math.sin(S),T=Math.cos(S),E=0,b=0;b<s.length;b+=2){var A=d[b],N=d[b+1],P=l[b]-c[0],L=l[b+1]-c[1],R=P*T-L*C,M=P*C+L*T;v[b]=R,v[b+1]=M;var $=R-A,V=M-N;E+=$*$+V*V}if(E<p){p=E,h=S;for(var B=0;B<v.length;B++)f[B]=v[B]}}else for(var j=0;j<m;j+=2)f[j]=l[j]-c[0],f[j+1]=l[j+1]-c[1];a.push({from:d,to:f,fromCp:u,toCp:c,rotation:-h})}return a}function j2(e){return e.__isCombineMorphing}var Qce="__mOriginal_";function V2(e,t,r){var n=Qce+t,a=e[n]||e[t];e[n]||(e[n]=e[t]);var i=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function km(e,t){var r=Qce+t;e[r]&&(e[t]=e[r],e[r]=null)}function tW(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function ede(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=fUe(FL(r),FL(n)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&tW(i,s),l&&tW(o,l),V2(t,"updateTransform",{replace:u}),t.transform=null;var c=vUe(i,o,10,Math.PI),d=[];V2(t,"buildPath",{replace:function(f){for(var h=t.__morphT,p=1-h,v=[],m=0;m<c.length;m++){var g=c[m],x=g.from,b=g.to,_=g.rotation*h,k=g.fromCp,S=g.toCp,C=Math.sin(_),T=Math.cos(_);f_(v,k,S,h);for(var E=0;E<x.length;E+=2){var A=x[E],N=x[E+1],P=b[E],L=b[E+1],R=A*p+P*h,M=N*p+L*h;d[E]=R*T-M*C+v[0],d[E+1]=R*C+M*T+v[1]}var $=d[0],V=d[1];f.moveTo($,V);for(var E=2;E<x.length;){var P=d[E++],L=d[E++],B=d[E++],j=d[E++],I=d[E++],U=d[E++];$===P&&V===L&&B===I&&j===U?f.lineTo(I,U):f.bezierCurveTo(P,L,B,j,I,U),$=I,V=U}}}})}function _6(e,t,r){if(!e||!t)return t;var n=r.done,a=r.during;ede(e,t),t.__morphT=0;function i(){km(t,"buildPath"),km(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ce({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},r)),t}function gUe(e,t,r,n,a,i){var o=16;e=a===r?0:Math.round(32767*(e-r)/(a-r)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function U2(e){var t=1/0,r=1/0,n=-1/0,a=-1/0,i=re(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(d,r),n=Math.max(c,n),a=Math.max(d,a),[c,d]}),o=re(i,function(s,l){return{cp:s,z:gUe(s[0],s[1],t,r,n,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function tde(e){return cUe(e.path,e.count)}function jL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function mUe(e,t,r){var n=[];function a(k){for(var S=0;S<k.length;S++){var C=k[S];j2(C)?a(C.childrenRef()):C instanceof Je&&n.push(C)}}a(e);var i=n.length;if(!i)return jL();var o=r.dividePath||tde,s=o({path:t,count:i});if(s.length!==i)return jL();n=U2(n),s=U2(s);for(var l=r.done,u=r.during,c=r.individualDelay,d=new zs,f=0;f<i;f++){var h=n[f],p=s[f];p.parent=t,p.copyTransform(d),c||ede(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(k){for(var S=0;S<s.length;S++)s[S].addSelfToZr(k)}V2(t,"addSelfToZr",{after:function(k){v(k)}}),V2(t,"removeSelfFromZr",{after:function(k){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(k)}});
630function m(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,km(t,"addSelfToZr"),km(t,"removeSelfFromZr")}var g=s.length;if(c)for(var x=g,b=function(){x--,x===0&&(m(),l&&l())},f=0;f<g;f++){var _=c?Ce({delay:(r.delay||0)+c(f,g,n[f],s[f]),done:b},r):r;_6(n[f],s[f],_)}else t.__morphT=0,t.animateTo({__morphT:1},Ce({during:function(k){for(var S=0;S<g;S++){var C=s[S];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(k)},done:function(){m();for(var k=0;k<e.length;k++)km(e[k],"updateTransform");l&&l()}},r));return t.__zr&&v(t.__zr),{fromIndividuals:n,toIndividuals:s,count:g}}function yUe(e,t,r){var n=t.length,a=[],i=r.dividePath||tde;function o(h){for(var p=0;p<h.length;p++){var v=h[p];j2(v)?o(v.childrenRef()):v instanceof Je&&a.push(v)}}if(j2(e)){o(e.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(zO(a[l++%s]));a.length=n}else{a=i({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return jL()}a=U2(a),t=U2(t);for(var d=r.individualDelay,u=0;u<n;u++){var f=d?Ce({delay:(r.delay||0)+d(u,n,a[u],t[u])},r):r;_6(a[u],t[u],f)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function rW(e){return te(e[0])}function nW(e,t){for(var r=[],n=e.length,a=0;a<n;a++)r.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)r[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!r[a].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var i=l.length,u=Math.ceil(i/2);r[a].many=l.slice(u,i),r[s].many=l.slice(0,u),s++}return r}var xUe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var a=zO(e.path);a.setStyle("opacity",r),t.push(a)}return t},split:null};function iI(e,t,r,n,a,i){if(!e.length||!t.length)return;var o=Fv("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;rW(e)&&(u=e,c=t),rW(t)&&(u=t,c=e);function d(g,x,b,_,k){var S=g.many,C=g.one;if(S.length===1&&!k){var T=x?S[0]:C,E=x?C:S[0];if(j2(T))d({many:[T],one:E},!0,b,_,!0);else{var A=s?Ce({delay:s(b,_)},l):l;_6(T,E,A),i(T,E,T,E,A)}}else for(var N=Ce({dividePath:xUe[r],individualDelay:s&&function(V,B,j,I){return s(V+b,_)}},l),P=x?mUe(S,C,N):yUe(C,S,N),L=P.fromIndividuals,R=P.toIndividuals,M=L.length,$=0;$<M;$++){var A=s?Ce({delay:s($,M)},l):l;i(L[$],R[$],x?S[$]:g.one,x?g.one:S[$],A)}}for(var f=u?u===e:e.length>t.length,h=u?nW(c,u):nW(f?t:e,[f?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var m=0,v=0;v<h.length;v++)d(h[v],f,m,p),m+=h[v].many.length}function fd(e){if(!e)return[];if(te(e)){for(var t=[],r=0;r<e.length;r++)t.push(fd(e[r]));return t}var n=[];return e.traverse(function(a){a instanceof Je&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var rde=1e4,bUe=at();function wUe(e){for(var t=e.dimensions,r=0;r<t.length;r++){var n=e.getDimensionInfo(t[r]);if(n&&n.otherDims.itemGroupId===0)return t[r]}}function aW(e){var t=[];return D(e,function(r){var n=r.data;if(!(n.count()>rde))for(var a=n.getIndices(),i=wUe(n),o=0;o<a.length;o++)t.push({dataGroupId:r.dataGroupId,data:n,dim:r.dim||i,divide:r.divide,dataIndex:o})}),t}function oI(e,t,r){e.traverse(function(n){n instanceof Je&&Wt(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function sI(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function bh(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function _Ue(e,t,r){var n=Fv("update",r,t);n&&e.traverse(function(a){if(a instanceof Mi){var i=lNe(a);i&&a.animateFrom({style:i},n)}})}function SUe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var a=e[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function nde(e,t,r){var n=aW(e),a=aW(t);function i(g,x,b,_,k){(b||g)&&x.animateFrom({style:b&&b!==g?Q(Q({},b.style),g.style):g.style},k)}function o(g){for(var x=0;x<g.length;x++)if(g[x].dim)return g[x].dim}var s=o(n),l=o(a),u=!1;function c(g,x){return function(b){var _=b.data,k=b.dataIndex;if(x)return _.getId(k);var S=b.dataGroupId,C=g?s||l:l||s,T=C&&_.getDimensionInfo(C),E=T&&T.ordinalMeta;if(T){var A=_.get(T.name,k);return E&&E.categories[A]||A+""}var N=_.getRawDataItem(k);return N&&N.groupId?N.groupId+"":S||_.getId(k)}}var d=SUe(n,a),f={};if(!d)for(var h=0;h<a.length;h++){var p=a[h],v=p.data.getItemGraphicEl(p.dataIndex);v&&(f[v.id]=!0)}function m(g,x){var b=n[x],_=a[g],k=_.data.hostModel,S=b.data.getItemGraphicEl(b.dataIndex),C=_.data.getItemGraphicEl(_.dataIndex);if(S===C){C&&_Ue(C,_.dataIndex,k);return}S&&f[S.id]||C&&(bh(C),S?(bh(S),sI(S),u=!0,iI(fd(S),fd(C),_.divide,k,g,i
630)):oI(C,k,g))}new ll(n,a,c(!0,d),c(!1,d),null,"multiple").update(m).updateManyToOne(function(g,x){var b=a[g],_=b.data,k=_.hostModel,S=_.getItemGraphicEl(b.dataIndex),C=Et(re(x,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==S&&!f[T.id]});S&&(bh(S),C.length?(D(C,function(T){bh(T),sI(T)}),u=!0,iI(fd(C),fd(S),b.divide,k,g,i)):oI(S,k,b.dataIndex))}).updateOneToMany(function(g,x){var b=n[x],_=b.data.getItemGraphicEl(b.dataIndex);if(!(_&&f[_.id])){var k=Et(re(g,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==_}),S=a[g[0]].data.hostModel;k.length&&(D(k,function(C){return bh(C)}),_?(bh(_),sI(_),u=!0,iI(fd(_),fd(k),b.divide,S,g[0],i)):D(k,function(C){return oI(C,S,g[0])}))}}).updateManyToMany(function(g,x){new ll(x,g,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,_){m(g[b],x[_])}).execute()}).execute(),u&&D(t,function(g){var x=g.data,b=x.hostModel,_=b&&r.getViewOfSeriesModel(b),k=Fv("update",b,0);_&&b.isAnimationEnabled()&&k&&k.duration>0&&_.group.traverse(function(S){S instanceof Je&&!S.animators.length&&S.animateFrom({style:{opacity:0}},k)})})}function iW(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function oW(e){return te(e)?e.sort().join(","):e}function eu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function kUe(e,t){var r=Se(),n=Se(),a=Se();return D(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=iW(i),c=oW(u);n.set(c,{dataGroupId:s,data:l}),te(u)&&D(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=iW(i),u=oW(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:eu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:eu(s),data:s}]});else if(te(l)){var d=[];D(l,function(p){var v=n.get(p);v.data&&d.push({dataGroupId:v.dataGroupId,divide:eu(v.data),data:v.data})}),d.length&&r.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:eu(s)}]})}else{var f=a.get(l);if(f){var h=r.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:eu(f.data)}],newSeries:[]},r.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:eu(s)})}}}}),r}function sW(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function CUe(e,t,r,n){var a=[],i=[];D(Pt(e.from),function(o){var s=sW(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:eu(t.oldData[s]),dim:o.dimension})}),D(Pt(e.to),function(o){var s=sW(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:eu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&nde(a,i,n)}function TUe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(Pt(n.seriesTransition),function(a){D(Pt(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][k_]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var a=bUe(r);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(Pt(i),function(h){CUe(h,a,n,r)});else{var o=kUe(a,n);D(o.keys(),function(h){var p=o.get(h);nde(p.oldSeries,p.newSeries,r)})}D(n.updatedSeries,function(h){h[k_]&&(h[k_]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],d=0;d<s.length;d++){var f=s[d].getData();f.count()<rde&&(l.push(s[d]),u.push(s[d].get("dataGroupId")),c.push(f))}})}Ze([UDe]);Ze([$De]);Ze([hLe,PLe,GLe,PRe,YRe,V$e,x4e,iOe,DOe,VOe,QOe,n6e,I6e,U6e,uze,gze,Lze,Gze,n8e,d8e,k8e,uFe]);Ze(MFe);Ze(fBe);Ze(Jle);Ze(NBe);Ze(zue);Ze($Be);Ze(HBe);Ze(Wje);Ze(v7e);Ze(Mx);Ze(R7e);Ze(z7e);Ze(Q7e);Ze(uVe);Ze(mVe);Ze(CVe);Ze(FVe);Ze(s9e);Ze(Uce);Ze(Gce);Ze(L9e);Ze(Kce);Ze(Zce);Ze(F9e);Ze(J9e);Ze(tUe);Ze(TUe);Ze(rDe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const AUe=async(e=!1)=>(await ze.get("/insights/analyze",{params:{demoMode:e}})).data.data,EUe=async e=>(await ze.post("/insights/save-paragraph",e)).data.data,NUe=async e=>(await ze.post("/insights/ask",{question:e})).data.data.answer,IUe=async()=>(await ze.get("/insights/quota")).data.data,lW=async e=>(await ze.post("/insights/set-api-key",{apiKey:e})).data.data;function PUe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const MUe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DUe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,LUe={};function uW(e,t){return((t||LUe).jsx?DUe:MUe).test(e)}
vendor: 4,135 bytes, line 630
630const RUe=/[ \t\n\f\r]/g;function $Ue(e){return typeof e=="object"?e.type==="text"?cW(e.value):!1:cW(e)}function cW(e){return e.replace(RUe,"")===""}class Dx{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Dx.prototype.normal={};Dx.prototype.property={};Dx.prototype.space=void 0;function ade(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Dx(r,n,t)}function VL(e){return e.toLowerCase()}class Ca{constructor(t,r){this.attribute=r,this.property=t}}Ca.prototype.attribute="";Ca.prototype.booleanish=!1;Ca.prototype.boolean=!1;Ca.prototype.commaOrSpaceSeparated=!1;Ca.prototype.commaSeparated=!1;Ca.prototype.defined=!1;Ca.prototype.mustUseProperty=!1;Ca.prototype.number=!1;Ca.prototype.overloadedBoolean=!1;Ca.prototype.property="";Ca.prototype.spaceSeparated=!1;Ca.prototype.space=void 0;let OUe=0;const et=Vf(),Nr=Vf(),UL=Vf(),de=Vf(),Ut=Vf(),tf=Vf(),Ma=Vf();function Vf(){return 2**++OUe}const GL=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:Nr,commaOrSpaceSeparated:Ma,commaSeparated:tf,number:de,overloadedBoolean:UL,spaceSeparated:Ut},Symbol.toStringTag,{value:"Module"})),lI=Object.keys(GL);class S6 extends Ca{constructor(t,r,n,a){let i=-1;if(super(t,r),dW(this,"space",a),typeof n=="number")for(;++i<lI.length;){const o=lI[i];dW(this,lI[i],(n&GL[o])===GL[o])}}}S6.prototype.defined=!0;function dW(e,t,r){r&&(e[t]=r)}function Xv(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new S6(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[VL(n)]=n,r[VL(i.attribute)]=n}return new Dx(t,r,e.space)}const ide=Xv({properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:Ut,ariaCurrent:null,ariaDescribedBy:Ut,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:Ut,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:Ut,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ut,ariaLevel:de,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:Ut,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:Ut,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Nr,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ode(e,t){return t in e?e[t]:t}function sde(e,t){return ode(e,t.toLowerCase())}const zUe=Xv({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tf,acceptCharset:Ut,accessKey:Ut,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alpha:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Ut,autoFocus:et,autoPlay:et,blocking:Ut,capture:null,charSet:null,checked:et,cite:null,className:Ut,closedBy:null,colorSpace:null,cols:de,colSpan:de,command:null,commandFor:null,content:null,contentEditable:Nr,controls:et,controlsList:Ut,coords:de|tf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:UL,draggable:Nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Ut,height:de,hidden:UL,high:de,href:null,hrefLang:null,htmlFor:Ut,httpEquiv:Ut,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Ut,itemRef:Ut,itemScope:et,itemType:Ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxCl
630ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:et,optimum:de,pattern:null,ping:Ut,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Ut,required:et,reversed:et,rows:de,rowSpan:de,sandbox:Ut,scope:null,scoped:et,seamless:et,selected:et,shadowRootClonable:et,shadowRootCustomElementRegistry:et,shadowRootDelegatesFocus:et,shadowRootMode:null,shadowRootSerializable:et,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:Nr,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ut,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Nr,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:et,disablePictureInPicture:et,disableRemotePlayback:et,exportParts:tf,part:Ut,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:sde}),FUe=Xv({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav
630-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ma,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:Ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tf,g2:tf,glyphName:tf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:Ma,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,624 bytes, lines 630-631
630Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ma,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ma,rev:Ma,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ma,requiredFeatures:Ma,requiredFonts:Ma,requiredFormats:Ma,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:Ma,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ma,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ma,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ode}),lde=Xv({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ude=Xv({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sde}),cde=Xv({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),BUe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jUe=/[A-Z]/g,fW=/-[a-z]/g,VUe=/^data[-\w.:]+$/i;function UUe(e,t){const r=VL(t);let n=t,a=Ca;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&VUe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(fW,HUe);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!fW.test(i)){let o=i.replace(jUe,GUe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=S6}return new a(n,t)}function GUe(e){return"-"+e.toLowerCase()}function HUe(e){return e.charAt(1).toUpperCase()}const WUe=ade([ide,zUe,lde,ude,cde],"html"),k6=ade([ide,FUe,lde,ude,cde],"svg");function qUe(e){return e.join(" ").trim()}var C6={},hW=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,YUe=/\n/g,KUe=/^\s*/,ZUe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,XUe=/^:\s*/,JUe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,QUe=/^[;\s]*/,eGe=/^\s+|\s+$/g,tGe=` 631`,pW="/",vW="*",yd="",rGe="comment",nGe="declaration";function aGe(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function a(p){var v=p.match(YUe);v&&(r+=v.length);var m=p.lastIndexOf(tGe);n=~m?p.length-m:n+p.length}function i(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var m=v[0];return a(m),e=e.slice(m.length),v}}function u(){l(KUe)}function c(p){var v;
vendor: 4,416 bytes, line 631
631for(p=p||[];v=d();)v!==!1&&p.push(v);return p}function d(){var p=i();if(!(pW!=e.charAt(0)||vW!=e.charAt(1))){for(var v=2;yd!=e.charAt(v)&&(vW!=e.charAt(v)||pW!=e.charAt(v+1));)++v;if(v+=2,yd===e.charAt(v-1))return s("End of comment missing");var m=e.slice(2,v-2);return n+=2,a(m),e=e.slice(v),n+=2,p({type:rGe,comment:m})}}function f(){var p=i(),v=l(ZUe);if(v){if(d(),!l(XUe))return s("property missing ':'");var m=l(JUe),g=p({type:nGe,property:gW(v[0].replace(hW,yd)),value:m?gW(m[0].replace(hW,yd)):yd});return l(QUe),g}}function h(){var p=[];c(p);for(var v;v=f();)v!==!1&&(p.push(v),c(p));return p}return u(),h()}function gW(e){return e?e.replace(eGe,yd):yd}var iGe=aGe,oGe=Od&&Od.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C6,"__esModule",{value:!0});C6.default=lGe;const sGe=oGe(iGe);function lGe(e,t){let r=null;if(!e||typeof e!="string")return r;const n=(0,sGe.default)(e),a=typeof t=="function";return n.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:s}=i;a?t(o,s,i):s&&(r=r||{},r[o]=s)}),r}var VC={};Object.defineProperty(VC,"__esModule",{value:!0});VC.camelCase=void 0;var uGe=/^--[a-zA-Z0-9_-]+$/,cGe=/-([a-z])/g,dGe=/^[^-]+$/,fGe=/^-(webkit|moz|ms|o|khtml)-/,hGe=/^-(ms)-/,pGe=function(e){return!e||dGe.test(e)||uGe.test(e)},vGe=function(e,t){return t.toUpperCase()},mW=function(e,t){return"".concat(t,"-")},gGe=function(e,t){return t===void 0&&(t={}),pGe(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(hGe,mW):e=e.replace(fGe,mW),e.replace(cGe,vGe))};VC.camelCase=gGe;var mGe=Od&&Od.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},yGe=mGe(C6),xGe=VC;function HL(e,t){var r={};return!e||typeof e!="string"||(0,yGe.default)(e,function(n,a){n&&a&&(r[(0,xGe.camelCase)(n,t)]=a)}),r}HL.default=HL;var bGe=HL;const wGe=kk(bGe),dde=fde("end"),T6=fde("start");function fde(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function _Ge(e){const t=T6(e),r=dde(e);if(t&&r)return{start:t,end:r}}function Cm(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yW(e.position):"start"in e||"end"in e?yW(e):"line"in e||"column"in e?WL(e):""}function WL(e){return xW(e&&e.line)+":"+xW(e&&e.column)}function yW(e){return WL(e&&e.start)+"-"+WL(e&&e.end)}function xW(e){return e&&typeof e=="number"?e:1}class $n extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},o=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=Cm(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$n.prototype.file="";$n.prototype.name="";$n.prototype.reason="";$n.prototype.message="";$n.prototype.stack="";$n.prototype.column=void 0;$n.prototype.line=void 0;$n.prototype.ancestors=void 0;$n.prototype.cause=void 0;$n.prototype.fatal=void 0;$n.prototype.place=void 0;$n.prototype.ruleId=void 0;$n.prototype.source=void 0;const A6={}.hasOwnProperty,SGe=new Map,kGe=/[A-Z]/g,CGe=new Set(["table","tbody","thead","tfoot","tr"]),TGe=new Set(["td","th"]),hde="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AGe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=RGe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,589 bytes, line 631
631if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=LGe(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?k6:WUe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=pde(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function pde(e,t,r){if(t.type==="element")return EGe(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NGe(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return PGe(e,t,r);if(t.type==="mdxjsEsm")return IGe(e,t);if(t.type==="root")return MGe(e,t,r);if(t.type==="text")return DGe(e,t)}function EGe(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=k6,e.schema=a),e.ancestors.push(t);const i=gde(e,t.tagName,!1),o=$Ge(e,t);let s=N6(e,t);return CGe.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!$Ue(l):!0})),vde(e,o,i,t),E6(o,s),e.ancestors.pop(),e.schema=n,e.create(t,i,o,r)}function NGe(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}jy(e,t.position)}function IGe(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);jy(e,t.position)}function PGe(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=k6,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:gde(e,t.name,!0),o=OGe(e,t),s=N6(e,t);return vde(e,o,i,t),E6(o,s),e.ancestors.pop(),e.schema=n,e.create(t,i,o,r)}function MGe(e,t,r){const n={};return E6(n,N6(e,t)),e.create(t,e.Fragment,n,r)}function DGe(e,t){return t.value}function vde(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function E6(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function LGe(e,t,r){return n;function n(a,i,o,s){const u=Array.isArray(o.children)?r:t;return s?u(i,o,s):u(i,o)}}function RGe(e,t){return r;function r(n,a,i,o){const s=Array.isArray(i.children),l=T6(n);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $Ge(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&A6.call(t.properties,a)){const i=zGe(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&TGe.has(t.tagName)?n=s:r[o]=s}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function OGe(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else jy(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else jy(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function N6(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:SGe;for(;++n<t.children.length;){const i=t.children[n];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=pde(e,i,o);s!==void 0&&r.push(s)}return r}function zGe(e,t,r){const n=UUe(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?PUe(r):qUe(r)),n.property==="style"){let a=typeof r=="object"?r:FGe(e,String(r));return e.stylePropertyNameCase==="css"&&(a=BGe(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?BUe[n.property]||n.property:n.attribute,r]}}function FGe(e,t){try{return wGe(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new $n("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=hde+"#cannot-parse-style-attribute",a}}function gde(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=uW(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}n=o}else n=uW(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return A6.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);jy(e)}function jy(e,t){const r=new $n("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hde+"#cannot-handle-mdx-estrees-without-createevaluater",r}function BGe(e){const t={};let r;for(r in e)A6.call(e,r)&&(t[jGe(r)]=e[r]);return t}function jGe(e){let t=e.replace(kGe,VGe);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function VGe(e){return"-"+e.toLowerCase()}const uI={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},UGe={};function I6(e,t){const r=t||UGe,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return mde(e,n,a)}function mde(e,t,r){if(GGe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return bW(e.children,t,r)}return Array.isArray(e)?bW(e,t,r):""}function bW(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=mde(e[a],t,r);return n.join("")}function GGe(e){return!!(e&&typeof e=="object")}const wW=document.createElement("i");function P6(e){const t="&"+e+";";wW.innerHTML=t;const r=wW.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Ua(e,t,r,n){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);i<n.length;)o=n.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function yi(e,t){return e.length>0?(Ua(e,e.length,0,t),e):t}const _W={}.hasOwnProperty;function yde(e){const t={};let r=-1;for(;++r<e.length;)HGe(t,e[r]);return t}function HGe(e,t){let r;for(r in t){const a=(_W.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;if(i)for(o in i){_W.call(a,o)||(a[o]=[]);const s=i[o];WGe(a[o],Array.isArray(s)?s:s?[s]:[])}}}function WGe(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ua(e,0,0,n)}function xde(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function fo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hn=pc(/[A-Za-z]/),Pn=pc(/[\dA-Za-z]/),qGe=pc(/[#-'*+\--9=?A-Z^-~]/);function G2(e){return e!==null&&(e<32||e===127)}const qL=pc(/\d/),YGe=pc(/[\dA-Fa-f]/),KGe=pc(/[!-/:-@[-`{-~]/);function qe(e){return e!==null&&e<-2}function qt(e){return e!==null&&(e<0||e===32)}function pt(e){return e===-2||e===-1||e===32}const UC=pc(/\p{P}|\p{S}/u),Cf=pc(/\s/);function pc(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Jv(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let o="";if(i===37&&Pn(e.charCodeAt(r+1))&&Pn(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(r+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+a+1,o=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function At(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return pt(l)?(e.enter(r),s(l)):t(l)}function s(l){return pt(l)&&i++<a?(e.consume(l),s):(e.exit(r),t(l))}}const ZGe={tokenize:XGe};function XGe(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),At(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return qe(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const JGe={tokenize:QGe},SW={tokenize:eHe};function QGe(e){const t=this,r=[];let n=0,a,i,o;return s;function s(b){if(n<r.length){const _=r[n];return t.containerState=_[1],e.attempt(_[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&x();const _=t.events.length;let k=_,S;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){S=t.events[k][1].end;break}g(n);let C=_;for(;C<t.events.length;)t.events[C][1].end={...S},C++;return Ua(t.events,k+1,0,t.events.slice(_)),t.events.length=C,u(b)}return s(b)}function u(b){if(n===r.length){if(!a)return f(b);if(a.currentConstruct&&a.currentConstruct.concrete)return p(b);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(SW,c,d)(b)}function c(b){return a&&x(),g(n),f(b)}function d(b){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(b)}function f(b){return t.containerState={},e.attempt(SW,h,p)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),f(b)}function p(b){if(b===null){a&&x(),g(0),e.consume(b);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),v(b)}function v(b){if(b===null){m(e.exit("chunkFlow"),!0),g(0),e.consume(b);return}return qe(b)?(e.consume(b),m(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(b),v)}function m(b,_){const k=t.sliceStream(b);
vendor: 6,683 bytes, line 631
631if(_&&k.push(null),b.previous=i,i&&(i.next=b),i=b,a.defineSkip(b.start),a.write(k),t.parser.lazy[b.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<o&&(!a.events[S][1].end||a.events[S][1].end.offset>o))return;const C=t.events.length;let T=C,E,A;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(E){A=t.events[T][1].end;break}E=!0}for(g(n),S=C;S<t.events.length;)t.events[S][1].end={...A},S++;Ua(t.events,T+1,0,t.events.slice(C)),t.events.length=S}}function g(b){let _=r.length;for(;_-- >b;){const k=r[_];t.containerState=k[1],k[0].exit.call(t,e)}r.length=b}function x(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function eHe(e,t,r){return At(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function cv(e){if(e===null||qt(e)||Cf(e))return 1;if(UC(e))return 2}function GC(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const YL={name:"attention",resolveAll:tHe,tokenize:rHe};function tHe(e,t){let r=-1,n,a,i,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[r][1].start};kW(d,-l),kW(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=yi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=yi(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=yi(u,GC(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=yi(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=yi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ua(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function rHe(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=cv(n);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),c=cv(l),d=!c||c===2&&a||r.includes(l),f=!a||a===2&&c||r.includes(n);return u._open=!!(i===42?d:d&&(a||!f)),u._close=!!(i===42?f:f&&(c||!d)),t(l)}}function kW(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nHe={name:"autolink",tokenize:aHe};function aHe(e,t,r){let n=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return Hn(h)?(e.consume(h),o):h===64?r(h):u(h)}function o(h){return h===43||h===45||h===46||Pn(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Pn(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||G2(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):qGe(h)?(e.consume(h),u):r(h)}function c(h){return Pn(h)?d(h):r(h)}function d(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||Pn(h))&&n++<63){const p=h===45?f:d;return e.consume(h),p}return r(h)}}const Lx={partial:!0,tokenize:iHe};function iHe(e,t,r){return n;function n(i){return pt(i)?At(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||qe(i)?t(i):r(i)}}const bde={continuation:{tokenize:sHe},exit:lHe,name:"blockQuote",tokenize:oHe};function oHe(e,t,r){const n=this;return a;function a(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return r(o)}function i(o){return pt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function sHe(e,t,r){const n=this;return a;function a(o){return pt(o)?At(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(bde,t,r)(o)}}function lHe(e){e.exit("blockQuote")}const wde={name:"characterEscape",tokenize:uHe};function uHe(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return KGe(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const _de={name:"characterReference",tokenize:cHe};function cHe(e,t,r){const n=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Pn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=YGe,c):(e.enter("characterReferenceValue"),i=7,o=qL,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return o===Pn&&!P6(n.sliceSerialize(f))?r(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),c):r(d)}}const CW={partial:!0,tokenize:fHe},TW={concrete:!0,name:"codeFenced",tokenize:dHe};function dHe(e,t,r){const n=this,a={partial:!0,tokenize:k};let i=0,o=0,s;return l;function l(S){return u(S)}function u(S){const C=n.events[n.events.length-1];return i=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=S,e.enter("co
631deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===s?(o++,e.consume(S),c):o<3?r(S):(e.exit("codeFencedFenceSequence"),pt(S)?At(e,d,"whitespace")(S):d(S))}function d(S){return S===null||qe(S)?(e.exit("codeFencedFence"),n.interrupt?t(S):e.check(CW,v,_)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||qe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):pt(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),At(e,h,"whitespace")(S)):S===96&&S===s?r(S):(e.consume(S),f)}function h(S){return S===null||qe(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||qe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===s?r(S):(e.consume(S),p)}function v(S){return e.attempt(a,_,m)(S)}function m(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return i>0&&pt(S)?At(e,x,"linePrefix",i+1)(S):x(S)}function x(S){return S===null||qe(S)?e.check(CW,v,_)(S):(e.enter("codeFlowValue"),b(S))}function b(S){return S===null||qe(S)?(e.exit("codeFlowValue"),x(S)):(e.consume(S),b)}function _(S){return e.exit("codeFenced"),t(S)}function k(S,C,T){let E=0;return A;function A(M){return S.enter("lineEnding"),S.consume(M),S.exit("lineEnding"),N}function N(M){return S.enter("codeFencedFence"),pt(M)?At(S,P,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):P(M)}function P(M){return M===s?(S.enter("codeFencedFenceSequence"),L(M)):T(M)}function L(M){return M===s?(E++,S.consume(M),L):E>=o?(S.exit("codeFencedFenceSequence"),pt(M)?At(S,R,"whitespace")(M):R(M)):T(M)}function R(M){return M===null||qe(M)?(S.exit("codeFencedFence"),C(M)):T(M)}}}function fHe(e,t,r){const n=this;return a;function a(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const cI={name:"codeIndented",tokenize:pHe},hHe={partial:!0,tokenize:vHe};function pHe(e,t,r){const n=this;return a;function a(u){return e.enter("codeIndented"),At(e,i,"linePrefix",4+1)(u)}function i(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):qe(u)?e.attempt(hHe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||qe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function vHe(e,t,r){const n=this;return a;function a(o){return n.parser.lazy[n.now().line]?r(o):qe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):At(e,i,"linePrefix",4+1)(o)}function i(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):qe(o)?a(o):r(o)}}const gHe={name:"codeText",previous:yHe,resolve:mHe,tokenize:xHe};function mHe(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function yHe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xHe(e,t,r){let n=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),n++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?r(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,c(d)):qe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||qe(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",u(
vendor: 6,352 bytes, line 631
631d))}}class bHe{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&r0(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),r0(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),r0(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);r0(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);r0(this.left,r.reverse())}}}function r0(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Sde(e){const t={};let r=-1,n,a,i,o,s,l,u;const c=new bHe(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,wHe(c,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(n[1].end={...c.get(a)[1].start},s=c.slice(a,r),s.unshift(n),c.splice(a,r-a+1,s))}}return Ua(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function wHe(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,d,f=-1,h=r,p=0,v=0;const m=[v];for(;h;){for(;e.get(++a)[1]!==h;);i.push(a),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(v=f+1,m.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),f=m.length;f--;){const g=s.slice(m[f],m[f+1]),x=i.pop();l.push([x,x+g.length-1]),e.splice(x,2,g)}for(l.reverse(),f=-1;++f<l.length;)u[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return u}const _He={resolve:kHe,tokenize:CHe},SHe={partial:!0,tokenize:THe};function kHe(e){return Sde(e),e}function CHe(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):qe(s)?e.check(SHe,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function THe(e,t,r){const n=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),At(e,i,"linePrefix")}function i(o){if(o===null||qe(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function kde(e,t,r,n,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return g===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(g),e.exit(i),f):g===null||g===32||g===41||G2(g)?r(g):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(g))}function f(g){return g===62?(e.enter(i),e.consume(g),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(s),f(g)):g===null||g===60||qe(g)?r(g):(e.consume(g),g===92?p:h)}function p(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function v(g){return!c&&(g===null||g===41||qt(g))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(g)):c<u&&g===40?(e.consume(g),c++,v):g===41?(e.consume(g),c--,v):g===null||g===32||g===40||G2(g)?r(g):(e.consume(g),g===92?m:v)}function m(g){return g===40||g===41||g===92?(e.consume(g),v):v(g)}}function Cde(e,t,r,n,a,i){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(a),e.consume(h),e.exit(a),e.enter(i),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(n),t):qe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||qe(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!pt(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,d):d(h)}}function Tde(e,t,r,n,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(n),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):r(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(n),t):(e.enter(i),u(f))}
vendor: 15,247 bytes, line 631
631function u(f){return f===o?(e.exit(i),l(o)):f===null?r(f):qe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),At(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||qe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function Tm(e,t){let r;return n;function n(a){return qe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):pt(a)?At(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const AHe={name:"definition",tokenize:NHe},EHe={partial:!0,tokenize:IHe};function NHe(e,t,r){const n=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return Cde.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return a=fo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return qt(h)?Tm(e,u)(h):u(h)}function u(h){return kde(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(EHe,d,d)(h)}function d(h){return pt(h)?At(e,f,"whitespace")(h):f(h)}function f(h){return h===null||qe(h)?(e.exit("definition"),n.parser.defined.push(a),t(h)):r(h)}}function IHe(e,t,r){return n;function n(s){return qt(s)?Tm(e,a)(s):r(s)}function a(s){return Tde(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return pt(s)?At(e,o,"whitespace")(s):o(s)}function o(s){return s===null||qe(s)?t(s):r(s)}}const PHe={name:"hardBreakEscape",tokenize:MHe};function MHe(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return qe(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const DHe={name:"headingAtx",resolve:LHe,tokenize:RHe};function LHe(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ua(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function RHe(e,t,r){let n=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||qt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||qe(c)?(e.exit("atxHeading"),t(c)):pt(c)?At(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||qt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const $He=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AW=["pre","script","style","textarea"],OHe={concrete:!0,name:"htmlFlow",resolveTo:BHe,tokenize:jHe},zHe={partial:!0,tokenize:UHe},FHe={partial:!0,tokenize:VHe};function BHe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function jHe(e,t,r){const n=this;let a,i,o,s,l;return u;function u(O){return c(O)}function c(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),d}function d(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),i=!0,v):O===63?(e.consume(O),a=3,n.interrupt?t:I):Hn(O)?(e.consume(O),o=String.fromCharCode(O),m):r(O)}function f(O){return O===45?(e.consume(O),a=2,h):O===91?(e.consume(O),a=5,s=0,p):Hn(O)?(e.consume(O),a=4,n.interrupt?t:I):r(O)}function h(O){return O===45?(e.consume(O),n.interrupt?t:I):r(O)}function p(O){const H="CDATA[";return O===H.charCodeAt(s++)?(e.consume(O),s===H.length?n.interrupt?t:P:p):r(O)}function v(O){return Hn(O)?(e.consume(O),o=String.fromCharCode(O),m):r(O)}function m(O){if(O===null||O===47||O===62||qt(O)){const H=O===47,ie=o.toLowerCase();return!H&&!i&&AW.includes(ie)?(a=1,n.interrupt?t(O):P(O)):$He.includes(o.toLowerCase())?(a=6,H?(e.consume(O),g):n.interrupt?t(O):P(O)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(O):i?x(O):b(O))}return O===45||Pn(O)?(e.consume(O),o+=String.fromCharCode(O),m):r(O)}function g(O){return O===62?(e.consume(O),n.interrupt?t:P):r(O)}function x(O){return pt(O)?(e.consume(O),x):A(O)}function b(O){return O===47?(e.consume(O),A):O===58||O===95||Hn(O)?(e.consume(O),_):pt(O)?(e.consume(O),b):A(O)}function _(O){return O===45||O===46||O===58||O===95||Pn(O)?(e.consume(O),_):k(O)}function k(O){return O===61?(e.consume(O),S):pt(O)?(e.consume(O),k):b(O)}function S(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),l=O,C):pt(O)?(e.consume(O),S):T(O)}function C(O){return O===l?(e.consume(O),l=null,E):O===null||qe(O)?r(O):(e.consume(O),C)}function T(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||qt(O)?k(O):(e.consume(O),T)}function E(O){return O===47||O===62||pt(O)?b(O):r(O)}function A(O){return O===62?(e.consume(O),N):r(O)}function N(O){return O===null||qe(O)?P(O):pt(O)?(e.consume(O),N):r(O)}function P(O){return O===45&&a===2?(e.consume(O),$):O===60&&a===1?(e.consume(O),V):O===62&&a===4?(e.consume(O),U):O===63&&a===3?(e.consume(O),I):O===93&&a===5?(e.consume(O),j):qe(O)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(zHe,Y,L)(O)):O===null||qe(O)?(e.exit("htmlFlowData"),L(O)):(e.consume(O),P)}function L(O){return e.check(FHe,R,Y)(O)}function R(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),M}function M(O){return O===null||qe(O)?L(O):(e.enter("htmlFlowData"),P(O))}function $(O){return O===45?(e.consume(O),I):P(O)}function V(O){return O===47?(e.consume(O),o="",B):P(O)}function B(O){if(O===62){const H=o.toLowerCase();return AW.includes(H)?(e.consume(O),U):P(O)}return Hn(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),B):P(O)}function j(O){return O===93?(e.consume(O),I):P(O)}function I(O){return O===62?(e.consume(O),U):O===45&&a===2?(e.consume(O),I):P(O)}function U(O){return O===null||qe(O)?(e.exit("htmlFlowData"),Y(O)):(e.consume(O),U)}function Y(O){return e.exit("htmlFlow"),t(O)}}function VHe(e,t,r){const n=this;return a;function a(o){return qe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):r(o)}function i(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function UHe(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Lx,t,r)}}const GHe={name:"htmlText",tokenize:HHe};function HHe(e,t,r){const n=this;let a,i,o;return s;function s(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),l}function l(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),k):I===63?(e.consume(I),b):Hn(I)?(e.consume(I),T):r(I)}function u(I){return I===45?(e.consume(I),c):I===91?(e.consume(I),i=0,p):Hn(I)?(e.consume(I),x):r(I)}function c(I){return I===45?(e.consume(I),h):r(I)}function d(I){return I===null?r(I):I===45?(e.consume(I),f):qe(I)?(o=d,V(I)):(e.consume(I),d)}function f(I){return I===45?(e.consume(I),h):d(I)}function h(I){return I===62?$(I):I===45?f(I):d(I)}function p(I){const U="CDATA[";return I===U.charCodeAt(i++)?(e.consume(I),i===U.length?v:p):r(I)}function v(I){return I===null?r(I):I===93?(e.consume(I),m):qe(I)?(o=v,V(I)):(e.consume(I),v)}function m(I){return I===93?(e.consume(I),g):v(I)}function g(I){return I===62?$(I):I===93?(e.consume(I),g):v(I)}function x(I){return I===null||I===62?$(I):qe(I)?(o=x,V(I)):(e.consume(I),x)}function b(I){return I===null?r(I):I===63?(e.consume(I),_):qe(I)?(o=b,V(I)):(e.consume(I),b)}function _(I){return I===62?$(I):b(I)}function k(I){return Hn(I)?(e.consume(I),S):r(I)}function S(I){return I===45||Pn(I)?(e.consume(I),S):C(I)}function C(I){return qe(I)?(o=C,V(I)):pt(I)?(e.consume(I),C):$(I)}function T(I){return I===45||Pn(I)?(e.consume(I),T):I===47||I===62||qt(I)?E(I):r(I)}function E(I){return I===47?(e.consume(I),$):I===58||I===95||Hn(I)?(e.consume(I),A):qe(I)?(o=E,V(I)):pt(I)?(e.consume(I),E):$(I)}function A(I){return I===45||I===46||I===58||I===95||Pn(I)?(e.consume(I),A):N(I)}function N(I){return I===61?(e.consume(I),P):qe(I)?(o=N,V(I)):pt(I)?(e.consume(I),N):E(I)}function P(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(e.consume(I),a=I,L):qe(I)?(o=P,V(I)):pt(I)?(e.consume(I),P):(e.consume(I),R)}function L(I){return I===a?(e.consume(I),a=void 0,M):I===null?r(I):qe(I)?(o=L,V(I)):(e.consume(I),L)}function R(I){return I===null||I===34||I===39||I===60||I===61||I===96?r(I):I===47||I===62||qt(I)?E(I):(e.consume(I),R)}function M(I){return I===47||I===62||qt(I)?E(I):r(I)}function $(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):r(I)}function V(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),B}function B(I){return pt(I)?At(e,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):j(I)}function j(I){return e.enter("htmlTextData"),o(I)}}const M6={name:"labelEnd",resolveAll:KHe,resolveTo:ZHe,tokenize:XHe},WHe={tokenize:JHe},qHe={tokenize:QHe},YHe={tokenize:eWe};function KHe(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&Ua(e,0,e.length,r),e}function ZHe(e,t){let r=e.length,n=0,a,i,o,s;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(o=r);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=yi(s,e.slice(i+1,i+n+3)),s=yi(s,[["enter",c,t]]),s=yi(s,GC(t.parser.constructs.insideSpan.null,e.slice(i+n+4,o-3),t)),s=yi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=yi(s,e.slice(o+1)),s=yi(s,[["exit",l,t]]),Ua(e,i,e.length,s),e}function XHe(e,t,r){const n=this;let a=n.events.length,i,o;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return s;function s(f){return i?i._inactive?d(f):(o=n.parser.defined.includes(fo(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):r(f)}function l(f){return f===40?e.attempt(WHe,c,o?c:d)(f):f===91?e.attempt(qHe,c,o?u:d)(f):o?c(f):d(f)}function u(f){return e.attempt(YHe,c,d)(f)}function c(f){return t(f)}function d(f){return i._balanced=!0,r(f)}}function JHe(e,t,r){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return qt(d)?Tm(e,i)(d):i(d)}function i(d){return d===41?c(d):kde(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return qt(d)?Tm(e,l)(d):c(d)}function s(d){return r(d)}function l(d){return d===34||d===39||d===40?Tde(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return qt(d)?Tm(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):r(d)}}function QHe(e,t,r){const n=this;return a;function a(s){return Cde.call(n,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return n.parser.defined.includes(fo(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function eWe(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const tWe={name:"labelStartImage",resolveAll:M6.resolveAll,tokenize:rWe};function rWe(e,t,r){const n=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const nWe={name:"labelStartLink",resolveAll:M6.resolveAll,tokenize:aWe};function aWe(e,t,r){const n=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const dI={name:"lineEnding",tokenize:iWe};function iWe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),At(e,t,"linePrefix")}}const P_={name:"thematicBreak",tokenize:oWe};function oWe(e,t,r){let n=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||qe(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),pt(u)?At(e,s,"whitespace")(u):s(u))}}const sa={continuation:{tokenize:cWe},exit:fWe,name:"list",tokenize:uWe},sWe={partial:!0,tokenize:hWe},lWe={partial:!0,tokenize:dWe};function uWe(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:qL(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(P_,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return qL(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Lx,n.interrupt?r:c,e.attempt(sWe,f,d))}
vendor: 5,490 bytes, line 631
631function c(h){return n.containerState.initialBlankLine=!0,i++,f(h)}function d(h){return pt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):r(h)}function f(h){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function cWe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Lx,a,i);function a(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,At(e,t,"listItemIndent",n.containerState.size+1)(s)}function i(s){return n.containerState.furtherBlankLines||!pt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(lWe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,At(e,e.attempt(sa,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dWe(e,t,r){const n=this;return At(e,a,"listItemIndent",n.containerState.size+1);function a(i){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(i):r(i)}}function fWe(e){e.exit(this.containerState.type)}function hWe(e,t,r){const n=this;return At(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function a(i){const o=n.events[n.events.length-1];return!pt(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const EW={name:"setextUnderline",resolveTo:pWe,tokenize:vWe};function pWe(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function vWe(e,t,r){const n=this;let a;return i;function i(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),a=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),pt(u)?At(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||qe(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const gWe={tokenize:mWe};function mWe(e){const t=this,r=e.attempt(Lx,n,e.attempt(this.parser.constructs.flowInitial,a,At(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_He,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const yWe={resolveAll:Ede()},xWe=Ade("string"),bWe=Ade("text");function Ade(e){return{resolveAll:Ede(e==="text"?wWe:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,o,s);return o;function o(c){return u(c)?i(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),i(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function Ede(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function wWe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:n.start._bufferIndex+o,_index:n.start._index+i,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const _We={[42]:sa,[43]:sa,[45]:sa,[48]:sa,[49]:sa,[50]:sa,[51]:sa,[52]:sa,[53]:sa,[54]:sa,[55]:sa,[56]:sa,[57]:sa,[62]:bde},SWe={[91]:AHe},kWe={[-2]:cI,[-1]:cI,[32]:cI},CWe={[35]:DHe,[42]:P_,[45]:[EW,P_],[60]:OHe,[61]:EW,[95]:P_,[96]:TW,[126]:TW},TWe={[38]:_de,[92]:wde},AWe={[-5]:dI,[-4]:dI,[-3]:dI,[33]:tWe,[38]:_de,[42]:YL,[60]:[nHe,GHe],[91]:nWe,[92]:[PHe,wde],[93]:M6,[95]:YL,[96]:gHe},EWe={null:[YL,yWe]},NWe={null:[42,95]},IWe={null:[]},PWe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:NWe,contentInitial:SWe,disable:IWe,document:_We,flow:CWe,flowInitial:kWe,insideSpan:EWe,string:TWe,text:AWe},Symbol.toStringTag,{value:"Module"}));function MWe(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,c
vendor: 12,981 bytes, lines 631-633
631olumn:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:C(k),check:C(S),consume:x,enter:b,exit:_,interrupt:C(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:v,events:[],now:p,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function d(N){return o=yi(o,N),m(),o[o.length-1]!==null?[]:(T(t,0),u.events=GC(i,u.events,u),u.events)}function f(N,P){return LWe(h(N),P)}function h(N){return DWe(o,N)}function p(){const{_bufferIndex:N,_index:P,line:L,column:R,offset:M}=n;return{_bufferIndex:N,_index:P,line:L,column:R,offset:M}}function v(N){a[N.line]=N.column,A()}function m(){let N;for(;n._index<o.length;){const P=o[n._index];if(typeof P=="string")for(N=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===N&&n._bufferIndex<P.length;)g(P.charCodeAt(n._bufferIndex));else g(P)}}function g(N){c=c(N)}function x(N){qe(N)?(n.line++,n.column=1,n.offset+=N===-3?2:1,A()):N!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=N}function b(N,P){const L=P||{};return L.type=N,L.start=p(),u.events.push(["enter",L,u]),s.push(L),L}function _(N){const P=s.pop();return P.end=p(),u.events.push(["exit",P,u]),P}function k(N,P){T(N,P.from)}function S(N,P){P.restore()}function C(N,P){return L;function L(R,M,$){let V,B,j,I;return Array.isArray(R)?Y(R):"tokenize"in R?Y([R]):U(R);function U(ee){return se;function se(oe){const be=oe!==null&&ee[oe],me=oe!==null&&ee.null,Z=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(me)?me:me?[me]:[]];return Y(Z)(oe)}}function Y(ee){return V=ee,B=0,ee.length===0?$:O(ee[B])}function O(ee){return se;function se(oe){return I=E(),j=ee,ee.partial||(u.currentConstruct=ee),ee.name&&u.parser.constructs.disable.null.includes(ee.name)?ie():ee.tokenize.call(P?Object.assign(Object.create(u),P):u,l,H,ie)(oe)}}function H(ee){return N(j,I),M}function ie(ee){return I.restore(),++B<V.length?O(V[B]):$}}}function T(N,P){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&Ua(u.events,P,u.events.length-P,N.resolve(u.events.slice(P),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function E(){const N=p(),P=u.previous,L=u.currentConstruct,R=u.events.length,M=Array.from(s);return{from:R,restore:$};function $(){n=N,u.previous=P,u.currentConstruct=L,u.events.length=R,s=M,A()}}function A(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function DWe(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(r===a)o=[e[r].slice(n,i)];else{if(o=e.slice(r,a),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function LWe(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=` 632`;break}case-3:{o=`\r 633`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,n.push(o)}return n.join("")}function RWe(e){const n={constructs:yde([PWe,...(e||{}).extensions||[]]),content:a(ZGe),defined:[],document:a(JGe),flow:a(gWe),lazy:{},string:a(xWe),text:a(bWe)};return n;function a(i){return o;function o(s){return MWe(n,i,s)}}}function $We(e){for(;!Sde(e););return e}const NW=/[\0\t\n\r]/g;function OWe(){let e=1,t="",r=!0,n;return a;function a(i,o,s){const l=[];let u,c,d,f,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",r&&(i.charCodeAt(0)===65279&&d++,r=void 0);d<i.length;){if(NW.lastIndex=d,u=NW.exec(i),f=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(f),!u){t=i.slice(d);break}if(h===10&&d===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),d<f&&(l.push(i.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}d=f+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const zWe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FWe(e){return e.replace(zWe,BWe)}function BWe(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return xde(r.slice(i?2:1),i?16:10)}return P6(r)||e}const Nde={}.hasOwnProperty;function jWe(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),VWe(r)($We(RWe(r).document().write(OWe()(e,t,!0))))}function VWe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(De),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(Pe),blockQuote:i(me),characterEscape:E,characterReference:E,codeFenced:i(Z),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Z,o),codeText:i(J,o),codeTextData:E,data:E,codeFlowValue:E,definition:i(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(xe),hardBreakEscape:i(he),hardBreakTrailing:i(he),htmlFlow:i(je,o),htmlFlowData:E,htmlText:i(je,o),htmlTextData:E,image:i(ne),label:o,link:i(De),listItem:i(dt),listItemValue:f,listOrdered:i(gt,d),listUnordered:i(gt),paragraph:i(bt),reference:O,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Pe),strong:i(mn),thematicBreak:i(yn)},exit:{atxHeading:l(),atxHeadingSequence:k,autolink:l(),autolinkEmail:be,autolinkProtocol:oe,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:ee,characterReference:se,codeFenced:l(m),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(g),codeText:l(M),codeTextData:A,data:A,definition:l(),definitionDestinationString:_,definitionLabelString:x,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(L),htmlFlowData:A,htmlText:l(R),htmlTextData:A,image:l(V),label:j,labelText:B,lineEnding:N,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:I,resourceTitleString:U,resource:Y,setextHeading:l(T),setextHeadingLineSequence:C,setextHeadingText:S,strong:l(),thematicBreak:l()}};Ide(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(G){let ue={type:"root",children:[]};const Ae={stack:[ue],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},Fe=[];let Ye=-1;for(;++Ye<G.length;)if(G[Ye][1].type==="listOrdered"||G[Ye][1].type==="listUnordered")if(G[Ye][0]==="enter")Fe.push(Ye);else{const xn=Fe.pop();Ye=a(G,xn,Ye)}for(Ye=-1;++Ye<G.length;){const xn=t[G[Ye][0]];Nde.call(xn,G[Ye][1].type)&&xn[G[Ye][1].type].call(Object.assign({sliceSerialize:G[Ye][2].sliceSerialize},Ae),G[Ye][1])}if(Ae.tokenStack.length>0){const xn=Ae.tokenStack[Ae.tokenStack.length-1];(xn[1]||IW).call(Ae,void 0,xn[0])}for(ue.position={start:Vl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Vl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<t.transforms.length;)ue=t.transforms[Ye](ue)||ue;return ue}function a(G,ue,Ae){let Fe=ue-1,Ye=-1,xn=!1,na,Vi,bs,wc;for(;++Fe<=Ae;){const On=G[Fe];switch(On[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{On[0]==="enter"?Ye++:Ye--,wc=void 0;break}case"lineEndingBlank":{On[0]==="enter"&&(na&&!wc&&!Ye&&!bs&&(bs=Fe),wc=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:wc=void 0}if(!Ye&&On[0]==="enter"&&On[1].type==="listItemPrefix"||Ye===-1&&On[0]==="exit"&&(On[1].type==="listUnordered"||On[1].type==="listOrdered")){if(na){let Ml=Fe;for(Vi=void 0;Ml--;){const Qa=G[Ml];if(Qa[1].type==="lineEnding"||Qa[1].type==="lineEndingBlank"){if(Qa[0]==="exit")continue;Vi&&(G[Vi][1].type="lineEndingBlank",xn=!0),Qa[1].type="lineEnding",Vi=Ml}else if(!(Qa[1].type==="linePrefix"||Qa[1].type==="blockQuotePrefix"||Qa[1].type==="blockQuotePrefixWhitespace"||Qa[1].type==="blockQuoteMarker"||Qa[1].type==="listItemIndent"))break}bs&&(!Vi||bs<Vi)&&(na._spread=!0),na.end=Object.assign({},Vi?G[Vi][1].start:On[1].end),G.splice(Vi||Fe,0,["exit",na,On[2]]),Fe++,Ae++}if(On[1].type==="listItemPrefix"){const Ml={type:"listItem",_spread:!1,start:Object.assign({},On[1].start),end:void 0};na=Ml,G.splice(Fe,0,["enter",Ml,On[2]]),Fe++,Ae++,bs=void 0,wc=!0}}}return G[ue][1]._spread=xn,Ae}function i(G,ue){return Ae;function Ae(Fe){s.call(this,G(Fe),Fe),ue&&ue.call(this,Fe)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(G,ue,Ae){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ue,Ae||void 0]),G.position={start:Vl(ue.start),end:void 0}}function l(G){return ue;function ue(Ae){G&&G.call(this,Ae),u.call(this,Ae)}}function u(G,ue){const Ae=this.stack.pop(),Fe=this.tokenStack.pop();if(Fe)Fe[0].type!==G.type&&(ue?ue.call(this,G,Fe[0]):(Fe[1]||IW).call(this,G,Fe[0]));else throw new Error("Cannot close `"+G.type+"` ("+Cm({start:G.start,end:G.end})+"): itâs not open");Ae.position.end=Vl(G.end)}function c(){return I6(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(G){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function h(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=G}function p(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=G}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G.replace(/(\r?\n|\r)$/g,"")}function x(G){const ue=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ue,Ae.identifier=fo(this.sliceSerialize(G)).toLowerCase()}function b(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function _(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function k(G){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Ae=this.sliceSerialize(G).length;ue.depth=Ae}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(G){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(G){const Ae=this.stack[this.stack.length-1].children;let Fe=Ae[Ae.length-1];(!Fe||Fe.type!=="text")&&(Fe=bc(),Fe.position={start:Vl(G.start),end:void 0},Ae.push(Fe)),this.stack.push(Fe)}function A(G){const ue=this.stack.pop();ue.value+=this.sliceSerialize(G),ue.position.end=Vl(G.end)}function N(G){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=ue.children[ue.children.length-1];Ae.position.end=Vl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(E.call(this,G),A.call(this,G))}function P(){this.data.atHardBreak=!0}function L(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function R(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function M(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.value=G}function $(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function V(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function B(G){const ue=this.sliceSerialize(G),Ae=this.stack[this.stack.length-2];Ae.label=FWe(ue),Ae.identifier=fo(ue).toLowerCase()}function j(){const G=this.stack[this.stack.length-1],ue=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const Fe=G.children;Ae.children=Fe}else Ae.alt=ue}function I(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.url=G}function U(){const G=this.resume(),ue=this.stack[this.stack.length-1];ue.title=G}function Y(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function H(G){const ue=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=ue,Ae.identifier=fo(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ie(G){this.data.characterReferenceType=G.type}function ee(G){const ue=this.sliceSerialize(G),Ae=this.data.characterReferenceType;let Fe;Ae?(Fe=xde(ue,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Fe=P6(ue);const Ye=this.stack[this.stack.length-1];Ye.value+=Fe}function se(G){const ue=this.stack.pop();
vendor: 5,270 bytes, lines 633-635
633ue.position.end=Vl(G.end)}function oe(G){A.call(this,G);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(G)}function be(G){A.call(this,G);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(G)}function me(){return{type:"blockquote",children:[]}}function Z(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function Pe(){return{type:"heading",depth:0,children:[]}}function he(){return{type:"break"}}function je(){return{type:"html",value:""}}function ne(){return{type:"image",title:null,url:"",alt:null}}function De(){return{type:"link",title:null,url:"",children:[]}}function gt(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function dt(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function bt(){return{type:"paragraph",children:[]}}function mn(){return{type:"strong",children:[]}}function bc(){return{type:"text",value:""}}function yn(){return{type:"thematicBreak"}}}function Vl(e){return{line:e.line,column:e.column,offset:e.offset}}function Ide(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?Ide(e,n):UWe(e,n)}}function UWe(e,t){let r;for(r in t)if(Nde.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function IW(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Cm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Cm({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Cm({start:t.start,end:t.end})+") is still open")}function GWe(e){const t=this;t.parser=r;function r(n){return jWe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HWe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function WWe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:` 634`}]}function qWe(e,t){const r=t.value?t.value+` 635`:"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function YWe(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KWe(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZWe(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=Jv(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function XWe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JWe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Pde(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=n:a.push({type:"text",value:n}),a}function QWe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pde(e,t);const a={src:Jv(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function eqe(e,t){const r={src:Jv(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function tqe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function rqe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Pde(e,t);const a={href:Jv(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}
vendor: 4,280 bytes, lines 635-637
635function nqe(e,t){const r={href:Jv(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aqe(e,t,r){const n=e.all(t),a=r?iqe(r):Mde(t),i={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const c=n[s];(a||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 636`}),c.type==="element"&&c.tagName==="p"&&!a?o.push(...c.children):o.push(c)}const l=n[n.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:` 637`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function iqe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Mde(r[n])}return t}function Mde(e){const t=e.spread;return t??e.children.length>1}function oqe(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const o=n[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function sqe(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lqe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function uqe(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cqe(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),a.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=T6(t.children[1]),l=dde(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function dqe(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const d=t.children[l],f={},h=o?o[l]:void 0;h&&(f.align=h);let p={type:"element",tagName:i,properties:f,children:[]};d&&(p.children=e.all(d),e.patch(d,p),p=e.applyData(d,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function fqe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const PW=9,MW=32;function hqe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(DW(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(DW(t.slice(a),a>0,!1)),i.join("")}function DW(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===PW||i===MW;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===PW||i===MW;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function pqe(e,t){const r={type:"text",value:hqe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function vqe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const gqe={blockquote:HWe,break:WWe,code:qWe,delete:YWe,emphasis:KWe,footnoteReference:ZWe,heading:XWe,html:JWe,imageReference:QWe,image:eqe,inlineCode:tqe,linkReference:rqe,link:nqe,listItem:aqe,list:oqe,paragraph:sqe,root:lqe,strong:uqe,table:cqe,tableCell:fqe,tableRow:dqe,text:pqe,thematicBreak:vqe,toml:Yb,yaml:Yb,definition:Yb,footnoteDefinition:Yb};function Yb(){}const Dde=-1,HC=0,Am=1,H2=2,D6=3,L6=4,R6=5,$6=6,Lde=7,Rde=8,$de=typeof self=="object"?self:globalThis,LW=(e,t)=>
vendor: 4,587 bytes, line 637
637{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new $de[e](t)},mqe=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case HC:case Dde:return r(o,a);case Am:{const s=r([],a);for(const l of o)s.push(n(l));return s}case H2:{const s=r({},a);for(const[l,u]of o)s[n(l)]=n(u);return s}case D6:return r(new Date(o),a);case L6:{const{source:s,flags:l}=o;return r(new RegExp(s,l),a)}case R6:{const s=r(new Map,a);for(const[l,u]of o)s.set(n(l),n(u));return s}case $6:{const s=r(new Set,a);for(const l of o)s.add(n(l));return s}case Lde:{const{name:s,message:l}=o;return r(typeof $de[s]=="function"?LW(s,l):new Error(l),a)}case Rde:return r(BigInt(o),a);case"BigInt":return r(Object(BigInt(o)),a);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(LW(i,o),a)};return n},RW=e=>mqe(new Map,e)(0),hd="",{toString:yqe}={},{keys:xqe}=Object,n0=e=>{const t=typeof e;if(t!=="object"||!e)return[HC,t];const r=yqe.call(e).slice(8,-1);switch(r){case"Array":return[Am,hd];case"Object":return[H2,hd];case"Date":return[D6,hd];case"RegExp":return[L6,hd];case"Map":return[R6,hd];case"Set":return[$6,hd];case"DataView":return[Am,r]}return r.includes("Array")?[Am,r]:e instanceof Error?[Lde,e.name||"Error"]:[H2,r]},Kb=([e,t])=>e===HC&&(t==="function"||t==="symbol"),bqe=(e,t,r,n)=>{const a=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},i=o=>{if(r.has(o))return r.get(o);let[s,l]=n0(o);switch(s){case HC:{let c=o;switch(l){case"bigint":s=Rde,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([Dde],o)}return a([s,c],o)}case Am:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),a([l,[...f]],o)}const c=[],d=a([s,c],o);for(const f of o)c.push(i(f));return d}case H2:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=a([s,c],o);for(const f of xqe(o))(e||!Kb(n0(o[f])))&&c.push([i(f),i(o[f])]);return d}case D6:return a([s,isNaN(o.getTime())?hd:o.toISOString()],o);case L6:{const{source:c,flags:d}=o;return a([s,{source:c,flags:d}],o)}case R6:{const c=[],d=a([s,c],o);for(const[f,h]of o)(e||!(Kb(n0(f))||Kb(n0(h))))&&c.push([i(f),i(h)]);return d}case $6:{const c=[],d=a([s,c],o);for(const f of o)(e||!Kb(n0(f)))&&c.push(i(f));return d}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return i},$W=(e,{json:t,lossy:r}={})=>{const n=[];return bqe(!(t||r),!!t,new Map,n)(e),n},W2=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?RW($W(e,t)):structuredClone(e):(e,t)=>RW($W(e,t));function wqe(e,t){const r=[{type:"text",value:"â©"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function _qe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Sqe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||wqe,n=e.options.footnoteBackLabel||_qe,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=Jv(d.toLowerCase());let h=0;const p=[],v=e.footnoteCounts.get(d);for(;v!==void 0&&++h<=v;){p.length>0&&p.push({type:"text",value:" "});let x=typeof r=="string"?r:r(l,h);typeof x=="string"&&(x={type:"text",value:x}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const m=c[c.length-1];if(m&&m.type==="element"&&m.tagName==="p"){const x=m.children[m.children.length-1];x&&x.type==="text"?x.value+=" ":m.children.push({type:"text",value:" "}),m.children.push(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...W2(o),id:"footnote-label"},children:[{type:"text",value:a}]}
vendor: 22,317 bytes, lines 637-643
637,{type:"text",value:` 638`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` 639`}]}}const WC=function(e){if(e==null)return Aqe;if(typeof e=="function")return qC(e);if(typeof e=="object")return Array.isArray(e)?kqe(e):Cqe(e);if(typeof e=="string")return Tqe(e);throw new Error("Expected function, string, or object as test")};function kqe(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=WC(e[r]);return qC(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Cqe(e){const t=e;return qC(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function Tqe(e){return qC(t);function t(r){return r&&r.type===e}}function qC(e){return t;function t(r,n,a){return!!(Eqe(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function Aqe(){return!0}function Eqe(e){return e!==null&&typeof e=="object"&&"type"in e}const Ode=[],Nqe=!0,KL=!1,Iqe="skip";function zde(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=WC(a),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=Ode,p,v,m;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=Pqe(r(l,c)),h[0]===KL))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==Iqe)for(v=(n?g.children.length:-1)+o,m=c.concat(g);v>-1&&v<g.children.length;){const x=g.children[v];if(p=s(x,v,m)(),p[0]===KL)return p;v=typeof p[1]=="number"?p[1]:v+o}}return h}}}function Pqe(e){return Array.isArray(e)?e:typeof e=="number"?[Nqe,e]:e==null?Ode:[e]}function O6(e,t,r,n){let a,i,o;typeof t=="function"&&typeof r!="function"?(i=void 0,o=t,a=r):(i=t,o=r,a=n),zde(e,i,s,a);function s(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return o(l,d,c)}}const ZL={}.hasOwnProperty,Mqe={};function Dqe(e,t){const r=t||Mqe,n=new Map,a=new Map,i=new Map,o={...gqe,...r.handlers},s={all:u,applyData:Rqe,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:l,options:r,patch:Lqe,wrap:Oqe};return O6(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?n:a,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),s;function l(c,d){const f=c.type,h=s.handlers[f];if(ZL.call(s.handlers,f)&&h)return h(s,c,d);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in c){const{children:v,...m}=c,g=W2(m);return g.children=s.all(c),g}return W2(c)}return(s.options.unknownHandler||$qe)(s,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const p=s.one(f[h],c);if(p){if(h&&f[h-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=OW(p.value)),!Array.isArray(p)&&p.type==="element")){const v=p.children[0];v&&v.type==="text"&&(v.value=OW(v.value))}Array.isArray(p)?d.push(...p):d.push(p)}}}return d}}function Lqe(e,t){e.position&&(t.position=_Ge(e))}function Rqe(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&i&&Object.assign(r.properties,W2(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function $qe(e,t){const r=t.data||{},n="value"in t&&!(ZL.call(r,"hProperties")||ZL.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Oqe(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:` 640`});++n<e.length;)n&&r.push({type:"text",value:` 641`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:` 642`}),r}function OW(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function zW(e,t){const r=Dqe(e,t),n=r.one(e,void 0),a=Sqe(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` 643`},a),i}function zqe(e,t){return e&&"run"in e?async function(r,n){const a=zW(r,{file:n,...t});await e.run(a,n)}:function(r,n){return zW(r,{file:n,...e||t})}}function FW(e){if(e)throw e}var M_=Object.prototype.hasOwnProperty,Fde=Object.prototype.toString,BW=Object.defineProperty,jW=Object.getOwnPropertyDescriptor,VW=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Fde.call(t)==="[object Array]"},UW=function(t){if(!t||Fde.call(t)!=="[object Object]")return!1;var r=M_.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&M_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var a;for(a in t);return typeof a>"u"||M_.call(t,a)},GW=function(t,r){BW&&r.name==="__proto__"?BW(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},HW=function(t,r){if(r==="__proto__")if(M_.call(t,r)){if(jW)return jW(t,r).value}else return;return t[r]},Fqe=function e(){var t,r,n,a,i,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=HW(s,r),a=HW(t,r),s!==a&&(c&&a&&(UW(a)||(i=VW(a)))?(i?(i=!1,o=n&&VW(n)?n:[]):o=n&&UW(n)?n:{},GW(s,{name:r,newValue:e(c,o,a)})):typeof a<"u"&&GW(s,{name:r,newValue:a}));return s};const fI=kk(Fqe);function XL(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bqe(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...u){const c=e[++i];let d=-1;if(l){o(l);return}for(;++d<a.length;)(u[d]===null||u[d]===void 0)&&(u[d]=a[d]);a=u,c?jqe(c,s)(...u):o(null,...u)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function jqe(e,t){let r;return n;function n(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return a(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){r||(r=!0,t(o,...s))}function i(o){a(null,o)}}const Ro={basename:Vqe,dirname:Uqe,extname:Gqe,join:Hqe,sep:"/"};function Vqe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rx(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(n=a):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function Uqe(e){if(Rx(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Gqe(e){Rx(e);let t=e.length,r=-1,n=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function Hqe(...e){let t=-1,r;for(;++t<e.length;)Rx(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Wqe(r)}function Wqe(e){Rx(e);const t=e.codePointAt(0)===47;let r=qqe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function qqe(e,t){let r="",n=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),a=o,i=0;continue}}else if(r.length>0){r="",n=0,a=o,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),n=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return r}function Rx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yqe={cwd:Kqe};function Kqe(){return"/"}function JL(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Zqe(e){if(typeof e=="string")e=new URL(e);else if(!JL(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Xqe(e)}function Xqe(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const hI=["history","path","basename","stem","extname","dirname"];class Bde{constructor(t){let r;t?JL(t)?r={path:t}:typeof t=="string"||Jqe(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Yqe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<hI.length;){const i=hI[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)hI.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Ro.basename(this.path):void 0}set basename(t){vI(t,"basename"),pI(t,"basename"),this.path=Ro.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ro.dirname(this.path):void 0}set dirname(t){WW(this.basename,"dirname"),this.path=Ro.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ro.extname(this.path):void 0}set extname(t){if(pI(t,"extname"),WW(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ro.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){JL(t)&&(t=Zqe(t)),vI(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ro.basename(this.path,this.extname):void 0}set stem(t){vI(t,"stem"),pI(t,"stem"),this.path=Ro.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new $n(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function pI(e,t){if(e&&e.includes(Ro.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ro.sep+"`")}function vI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function WW(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Jqe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qqe=function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i},eYe={}.hasOwnProperty;class z6 extends Qqe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Bqe()}copy(){const t=new z6;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(fI(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(yI("data",this.frozen),this.namespace[t]=r,this):eYe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yI("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Zb(t),n=this.parser||this.Parser;return gI("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),gI("process",this.parser||this.Parser),mI("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,o){const s=Zb(t),l=n.parse(s);n.run(l,s,function(c,d,f){if(c||!d||!f)return u(c);const h=d,p=n.stringify(h,f);nYe(p)?f.value=p:f.result=p,u(c,f)});function u(c,d){c||!d?o(c):i?i(d):r(void 0,d)}}}processSync(t){let r=!1,n;return this.freeze(),gI("processSync",this.parser||this.Parser),mI("processSync",this.compiler||this.Compiler),this.process(t,a),YW("processSync","process",r),n;function a(i,o){r=!0,FW(i),n=o}}run(t,r,n){qW(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(o,s){const l=Zb(r);a.run(t,l,u);function u(c,d,f){const h=d||t;c?s(c):o?o(h):n(void 0,h,f)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),YW("runSync","run",n),a;function i(o,s){FW(o),a=s,n=!0}}stringify(t,r){this.freeze();const n=Zb(r),a=this.compiler||this.Compiler;return mI("stringify",a),qW(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(yI("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=fI(!0,a.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];i(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<n.length;)if(n[d][0]===u){f=d;break}if(f===-1)n.push([u,...c]);else if(c.length>0){let[h,...p]=c;const v=n[f][1];XL(v)&&XL(h)&&(h=fI(!0,v,h)),n[f]=[u,h,...p]}}}}const tYe=new z6().freeze();function gI(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mI(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yI(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qW(e){if(!XL(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function YW(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zb(e){return rYe(e)?e:new Bde(e)}function rYe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nYe(e){return typeof e=="string"||aYe(e)}function aYe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iYe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",KW=[],ZW={allowDangerousHtml:!0},oYe=/^(https?|ircs?|mailto|xmpp)$/i,sYe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lYe(e){const t=uYe(e),r=cYe(e);return dYe(t.runSync(t.parse(r),r),e)}function uYe(e){const t=e.rehypePlugins||KW,r=e.remarkPlugins||KW,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ZW}:ZW;return tYe().use(GWe).use(r).use(zqe,n).use(t)}function cYe(e){const t=e.children||"",r=new Bde;return typeof t=="string"&&(r.value=t),r}function dYe(e,t){const r=t.allowedElements,n=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||fYe;for(const c of sYe)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+iYe+c.id,void 0);return O6(e,u),AGe(e,{Fragment:Rt,components:a,ignoreInvalidStyle:!0,jsx:y,jsxs:w,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return o?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let h;for(h in uI)if(Object.hasOwn(uI,h)&&Object.hasOwn(c.properties,h)){const p=c.properties[h],v=uI[h];(v===null||v.includes(c.tagName))&&(c.properties[h]=l(String(p||""),h,c))}}if(c.type==="element"){let h=r?!r.includes(c.tagName):i?i.includes(c.tagName):!1;if(!h&&n&&typeof d=="number"&&(h=!n(c,d,f)),h&&f&&typeof d=="number")return s&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function fYe(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||n!==-1&&t>n||oYe.test(e.slice(0,t))?e:""}function XW(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function hYe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function pYe(e,t,r){const a=WC((r||{}).ignore||[]),i=vYe(t);let o=-1;for(;++o<i.length;)zde(e,"text",s);function s(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],p=f?f.children:void 0;if(a(h,p?p.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=i[o][0],h=i[o][1];let p=0;const m=d.children.indexOf(u);let g=!1,x=[];f.lastIndex=0;let b=f.exec(u.value);for(;b;){const _=b.index,k={index:b.index,input:b.input,stack:[...c,u]};let S=h(...b,k);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=_+1:(p!==_&&x.push({type:"text",value:u.value.slice(p,_)}),Array.isArray(S)?x.push(...S):S&&x.push(S),p=_+b[0].length,g=!0),!f.global)break;b=f.exec(u.value)}return g?(p<u.value.length&&x.push({type:"text",value:u.value.slice(p)}),d.children.splice(m,1,...x)):x=[u],m+x.length}}function vYe(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([gYe(a[0]),mYe(a[1])])}return t}function gYe(e){return typeof e=="string"?new RegExp(hYe(e),"g"):e}function mYe(e){return typeof e=="function"?e:function(){return e}}const xI="phrasing",bI=["autolink","link","image","label"];function yYe(){return{transforms:[CYe],enter:{literalAutolink:bYe,literalAutolinkEmail:wI,literalAutolinkHttp:wI,literalAutolinkWww:wI},exit:{literalAutolink:kYe,literalAutolinkEmail:SYe,literalAutolinkHttp:wYe,literalAutolinkWww:_Ye}}}function xYe(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xI,notInConstruct:bI},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xI,notInConstruct:bI},{character:":",before:"[ps]",after:"\\/",inConstruct:xI,notInConstruct:bI}]}}function bYe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wI(e){this.config.enter.autolinkProtocol.call(this,e)}function wYe(e){this.config.exit.autolinkProtocol.call(this,e)}function _Ye(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function SYe(e){this.config.exit.autolinkEmail.call(this,e)}function kYe(e){this.exit(e)}function CYe(e){pYe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,TYe],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AYe]],{ignore:["link","linkReference"]})}function TYe(e,t,r,n,a){let i="";if(!jde(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!EYe(r)))return!1;const o=NYe(r+n);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function AYe(e,t,r,n){return!jde(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function EYe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function NYe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=XW(e,"(");let i=XW(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}
vendor: 5,262 bytes, lines 643-647
643function jde(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Cf(r)||UC(r))&&(!t||r!==47)}Vde.peek=zYe;function IYe(){this.buffer()}function PYe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function MYe(){this.buffer()}function DYe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function LYe(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=fo(this.sliceSerialize(e)).toLowerCase(),r.label=t}function RYe(e){this.exit(e)}function $Ye(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=fo(this.sliceSerialize(e)).toLowerCase(),r.label=t}function OYe(e){this.exit(e)}function zYe(){return"["}function Vde(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function FYe(){return{enter:{gfmFootnoteCallString:IYe,gfmFootnoteCall:PYe,gfmFootnoteDefinitionLabelString:MYe,gfmFootnoteDefinition:DYe},exit:{gfmFootnoteCallString:LYe,gfmFootnoteCall:RYe,gfmFootnoteDefinitionLabelString:$Ye,gfmFootnoteDefinition:OYe}}}function BYe(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Vde},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,o){const s=i.createTracker(o);let l=s.move("[^");const u=i.enter("footnoteDefinition"),c=i.enter("label");return l+=s.move(i.safe(i.associationId(n),{before:l,after:"]"})),c(),l+=s.move("]:"),n.children&&n.children.length>0&&(s.shift(4),l+=s.move((t?` 644`:" ")+i.indentLines(i.containerFlow(n,s.current()),t?Ude:jYe))),u(),l}}function jYe(e,t,r){return t===0?e:Ude(e,t,r)}function Ude(e,t,r){return(r?"":" ")+e}const VYe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gde.peek=qYe;function UYe(){return{canContainEols:["delete"],enter:{strikethrough:HYe},exit:{strikethrough:WYe}}}function GYe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VYe}],handlers:{delete:Gde}}}function HYe(e){this.enter({type:"delete",children:[]},e)}function WYe(e){this.exit(e)}function Gde(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let o=a.move("~~");return o+=r.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function qYe(){return"~"}function YYe(e){return e.length}function KYe(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||YYe,i=[],o=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const v=[],m=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const x=ZYe(e[c][g]);if(r.alignDelimiters!==!1){const b=a(x);m[g]=b,(l[g]===void 0||b>l[g])&&(l[g]=b)}v.push(x)}o[c]=v,s[c]=m}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)i[d]=JW(n[d]);else{const v=JW(n);for(;++d<u;)i[d]=v}d=-1;const f=[],h=[];for(;++d<u;){const v=i[d];let m="",g="";v===99?(m=":",g=":"):v===108?m=":":v===114&&(g=":");let x=r.alignDelimiters===!1?1:Math.max(1,l[d]-m.length-g.length);const b=m+"-".repeat(x)+g;r.alignDelimiters!==!1&&(x=m.length+x+g.length,x>l[d]&&(l[d]=x),h[d]=x),f[d]=b}o.splice(1,0,f),s.splice(1,0,h),c=-1;const p=[];for(;++c<o.length;){const v=o[c],m=s[c];d=-1;const g=[];for(;++d<u;){const x=v[d]||"";let b="",_="";if(r.alignDelimiters!==!1){const k=l[d]-(m[d]||0),S=i[d];S===114?b=" ".repeat(k):S===99?k%2?(b=" ".repeat(k/2+.5),_=" ".repeat(k/2-.5)):(b=" ".repeat(k/2),_=b):_=" ".repeat(k)}r.delimiterStart!==!1&&!d&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&x==="")&&(r.delimiterStart!==!1||d)&&g.push(" "),r.alignDelimiters!==!1&&g.push(b),g.push(x),r.alignDelimiters!==!1&&g.push(_),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||d!==u-1)&&g.push("|")}p.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(` 645`)}function ZYe(e){return e==null?"":String(e)}function JW(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function XYe(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const o=r.indentLines(r.containerFlow(e,i.current()),JYe);return a(),o}function JYe(e,t,r){return">"+(r?"":" ")+e}function QYe(e,t){return QW(e,t.inConstruct,!0)&&!QW(e,t.notInConstruct,!1)}function QW(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function eq(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===` 646`&&QYe(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\ 647`}function eKe(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>o&&(o=i):i=1,a=n+t.length,n=r.indexOf(t,a);return o}function tKe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rKe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nKe(e,t,r,n){const a=rKe(r),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";
vendor: 10,400 bytes, lines 647-656
647if(tKe(e,r)){const d=r.enter("codeIndented"),f=r.indentLines(i,aKe);return d(),f}const s=r.createTracker(n),l=a.repeat(Math.max(eKe(i,a)+1,3)),u=r.enter("codeFenced");let c=s.move(l);if(e.lang){const d=r.enter(`codeFencedLang${o}`);c+=s.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),d()}if(e.lang&&e.meta){const d=r.enter(`codeFencedMeta${o}`);c+=s.move(" "),c+=s.move(r.safe(e.meta,{before:c,after:` 648`,encode:["`"],...s.current()})),d()}return c+=s.move(` 649`),i&&(c+=s.move(i+` 650`)),c+=s.move(l),u(),c}function aKe(e,t,r){return(r?"":" ")+e}function F6(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iKe(e,t,r,n){const a=F6(r),i=a==='"'?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":` 651`,...l.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),o(),u}function oKe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Vy(e){return"&#x"+e.toString(16).toUpperCase()+";"}function q2(e,t,r){const n=cv(e),a=cv(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Hde.peek=sKe;function Hde(e,t,r,n){const a=oKe(r),i=r.enter("emphasis"),o=r.createTracker(n),s=o.move(a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=q2(n.before.charCodeAt(n.before.length-1),u,a);c.inside&&(l=Vy(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=q2(n.after.charCodeAt(0),d,a);f.inside&&(l=l.slice(0,-1)+Vy(d));const h=o.move(a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+h}function sKe(e,t,r){return r.options.emphasis||"*"}function lKe(e,t){let r=!1;return O6(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,KL}),!!((!e.depth||e.depth<3)&&I6(e)&&(t.options.setext||r))}function uKe(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(lKe(e,r)){const c=r.enter("headingSetext"),d=r.enter("phrasing"),f=r.containerPhrasing(e,{...i.current(),before:` 652`,after:` 653`});return d(),c(),f+` 654`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(` 655`))+1))}const o="#".repeat(a),s=r.enter("headingAtx"),l=r.enter("phrasing");i.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:` 656`,...i.current()});return/^[\t ]/.test(u)&&(u=Vy(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),l(),s(),u}Wde.peek=cKe;function Wde(e){return e.value||""}function cKe(){return"<"}qde.peek=dKe;function qde(e,t,r,n){const a=F6(r),i=a==='"'?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),o(),u}function dKe(){return"!"}Yde.peek=fKe;function Yde(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("![");const u=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,i(),a==="full"||!u||u!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function fKe(){return"!"}Kde.peek=hKe;function Kde(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const o=r.unsafe[i],s=r.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return a+n+a}function hKe(){return"`"}function Zde(e,t){const r=I6(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Xde.peek=pKe;function Xde(e,t,r,n){const a=F6(r),i=a==='"'?"Quote":"Apostrophe",o=r.createTracker(n);let s,l;if(Zde(e,r)){const c=r.stack;r.stack=[],s=r.enter("autolink");let d=o.move("<");return d+=o.move(r.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),s(),r.stack=c,d}s=r.enter("link"),l=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(r.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),l()),u+=o.move(")"),s(),u}function pKe(e,t,r){return Zde(e,r)?"<":"["}Jde.peek=vKe;function Jde(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(n);let l=s.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const d=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,i(),a==="full"||!u||u!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function vKe(){return"["}function B6(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function gKe(e){const t=B6(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function mKe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Qde(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function yKe(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let o=e.ordered?mKe(r):B6(r);const s=e.ordered?o==="."?")":".":gKe(r);let l=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),Qde(r)===o&&c){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const u=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=i,a(),u}function xKe(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function bKe(e,t,r,n){const a=xKe(r);let i=r.bulletCurrent||B6(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=r.createTracker(n);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),c);return l(),u;function c(d,f,h){return f?(h?"":" ".repeat(o))+d:(h?i:i+" ".repeat(o-i.length))+d}}function wKe(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),o=r.containerPhrasing(e,n);return i(),a(),o}const _Ke=WC(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function SKe(e,t,r,n){return(e.children.some(function(o){return _Ke(o)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function kKe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}efe.peek=CKe;function efe(e,t,r,n){const a=kKe(r),i=r.enter("strong"),o=r.createTracker(n),s=o.move(a+a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=q2(n.before.charCodeAt(n.before.length-1),u,a);c.inside&&(l=Vy(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=q2(n.after.charCodeAt(0),d,a);f.inside&&(l=l.slice(0,-1)+Vy(d));const h=o.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+h}function CKe(e,t,r){return r.options.strong||"*"}
vendor: 6,562 bytes, lines 656-658
656function TKe(e,t,r,n){return r.safe(e.value,n)}function AKe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function EKe(e,t,r){const n=(Qde(r)+(r.options.ruleSpaces?" ":"")).repeat(AKe(r));return r.options.ruleSpaces?n.slice(0,-1):n}const tfe={blockquote:XYe,break:eq,code:nKe,definition:iKe,emphasis:Hde,hardBreak:eq,heading:uKe,html:Wde,image:qde,imageReference:Yde,inlineCode:Kde,link:Xde,linkReference:Jde,list:yKe,listItem:bKe,paragraph:wKe,root:SKe,strong:efe,text:TKe,thematicBreak:EKe};function NKe(){return{enter:{table:IKe,tableData:tq,tableHeader:tq,tableRow:MKe},exit:{codeText:DKe,table:PKe,tableData:_I,tableHeader:_I,tableRow:_I}}}function IKe(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function PKe(e){this.exit(e),this.data.inTable=void 0}function MKe(e){this.enter({type:"tableRow",children:[]},e)}function _I(e){this.exit(e)}function tq(e){this.enter({type:"tableCell",children:[]},e)}function DKe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,LKe));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function LKe(e,t){return t==="|"?t:e}function RKe(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 657`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:l,tableRow:s}};function o(h,p,v,m){return u(c(h,v,m),h.align)}function s(h,p,v,m){const g=d(h,v,m),x=u([g]);return x.slice(0,x.indexOf(` 658`))}function l(h,p,v,m){const g=v.enter("tableCell"),x=v.enter("phrasing"),b=v.containerPhrasing(h,{...m,before:i,after:i});return x(),g(),b}function u(h,p){return KYe(h,{align:p,alignDelimiters:n,padding:r,stringLength:a})}function c(h,p,v){const m=h.children;let g=-1;const x=[],b=p.enter("table");for(;++g<m.length;)x[g]=d(m[g],p,v);return b(),x}function d(h,p,v){const m=h.children;let g=-1;const x=[],b=p.enter("tableRow");for(;++g<m.length;)x[g]=l(m[g],h,p,v);return b(),x}function f(h,p,v){let m=tfe.inlineCode(h,p,v);return v.stack.includes("tableCell")&&(m=m.replace(/\|/g,"\\$&")),m}}function $Ke(){return{exit:{taskListCheckValueChecked:rq,taskListCheckValueUnchecked:rq,paragraph:zKe}}}function OKe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FKe}}}function rq(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zKe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function FKe(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(n);i&&s.move(o);let l=tfe.listItem(e,t,r,{...n,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function BKe(){return[yYe(),FYe(),UYe(),NKe(),$Ke()]}function jKe(e){return{extensions:[xYe(),BYe(e),GYe(),RKe(e),OKe()]}}const VKe={tokenize:YKe,partial:!0},rfe={tokenize:KKe,partial:!0},nfe={tokenize:ZKe,partial:!0},afe={tokenize:XKe,partial:!0},UKe={tokenize:JKe,partial:!0},ife={name:"wwwAutolink",tokenize:WKe,previous:sfe},ofe={name:"protocolAutolink",tokenize:qKe,previous:lfe},wl={name:"emailAutolink",tokenize:HKe,previous:ufe},hs={};function GKe(){return{text:hs}}let Yc=48;for(;Yc<123;)hs[Yc]=wl,Yc++,Yc===58?Yc=65:Yc===91&&(Yc=97);hs[43]=wl;hs[45]=wl;hs[46]=wl;hs[95]=wl;hs[72]=[wl,ofe];hs[104]=[wl,ofe];hs[87]=[wl,ife];hs[119]=[wl,ife];function HKe(e,t,r){const n=this;let a,i;return o;function o(d){return!QL(d)||!ufe.call(n,n.previous)||j6(n.events)?r(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return QL(d)?(e.consume(d),s):d===64?(e.consume(d),l):r(d)}function l(d){return d===46?e.check(UKe,c,u)(d):d===45||d===95||Pn(d)?(i=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),a=!0,l}function c(d){return i&&a&&Hn(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):r(d)}}function WKe(e,t,r){const n=this;return a;function a(o){return o!==87&&o!==119||!sfe.call(n,n.previous)||j6(n.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VKe,e.attempt(rfe,e.attempt(nfe,i),r),r)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function qKe(e,t,r){const n=this;let a="",i=!1;return o;function o(d){return(d===72||d===104)&&lfe.call(n,n.previous)&&!j6(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),s):r(d)}function s(d){if(Hn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return r(d)}function l(d){return d===47?(e.consume(d),i?u:(i=!0,l)):r(d)}function u(d){return d===null||G2(d)||qt(d)||Cf(d)||UC(d)?r(d):e.attempt(rfe,e.attempt(nfe,c),r)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function YKe(e,t,r){let n=0;return a;function a(o){return(o===87||o===119)&&n<3?(n++,e.consume(o),a):o===46&&n===3?(e.consume(o),i):r(o)}function i(o){return o===null?r(o):t(o)}}function KKe(e,t,r){let n,a,i;return o;function o(u){return u===46||u===95?e.check(afe,l,s)(u):u===null||qt(u)||Cf(u)||u!==45&&UC(u)?l(u):(i=!0,e.consume(u),o)}function s(u){return u===95?n=!0:(a=n,n=void 0),e.consume(u),o}function l(u){return a||n||!i?r(u):t(u)}}function ZKe(e,t){let r=0,n=0;return a;function a(o){return o===40?(r++,e.consume(o),a):o===41&&n<r?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(afe,t,i)(o):o===null||qt(o)||Cf(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&n++,e.consume(o),a}}function XKe(e,t,r){return n;
vendor: 6,478 bytes, line 658
658function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),n):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||qt(s)||Cf(s)?t(s):r(s)}function a(s){return s===null||s===40||s===91||qt(s)||Cf(s)?t(s):n(s)}function i(s){return Hn(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),n):Hn(s)?(e.consume(s),o):r(s)}}function JKe(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return Pn(i)?r(i):t(i)}}function sfe(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||qt(e)}function lfe(e){return!Hn(e)}function ufe(e){return!(e===47||QL(e))}function QL(e){return e===43||e===45||e===46||e===95||Pn(e)}function j6(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const QKe={tokenize:sZe,partial:!0};function eZe(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:aZe,continuation:{tokenize:iZe},exit:oZe}},text:{[91]:{name:"gfmFootnoteCall",tokenize:nZe},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tZe,resolveTo:rZe}}}}function tZe(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return r(l);const u=fo(n.sliceSerialize({start:o.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function rZe(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function nZe(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?r(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(i>999||d===93&&!o||d===null||d===91||qt(d))return r(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(fo(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(d)}return qt(d)||(o=!0),i++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),i++,u):u(d)}}function aZe(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(o>999||p===93&&!s||p===null||p===91||qt(p))return r(p);if(p===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return i=fo(n.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return qt(p)||(s=!0),o++,e.consume(p),p===92?d:c}function d(p){return p===91||p===92||p===93?(e.consume(p),o++,c):c(p)}function f(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(i)||a.push(i),At(e,h,"gfmFootnoteDefinitionWhitespace")):r(p)}function h(p){return t(p)}}function iZe(e,t,r){return e.check(Lx,t,e.attempt(QKe,t,r))}function oZe(e){e.exit("gfmFootnoteDefinition")}function sZe(e,t,r){const n=this;return At(e,a,"gfmFootnoteDefinitionIndent",4+1);function a(i){const o=n.events[n.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):r(i)}}function lZe(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{[126]:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",d,s]],h=s.parser.constructs.insideSpan.null;h&&Ua(f,f.length,0,GC(h,o.slice(u+1,l),s)),Ua(f,f.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),Ua(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const u=this.previous,c=this.events;let d=0;return f;function f(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(o.enter("strikethroughSequenceTemporary"),h(p))}function h(p){const v=cv(u);
vendor: 4,218 bytes, line 658
658if(p===126)return d>1?l(p):(o.consume(p),d++,h);if(d<2&&!r)return l(p);const m=o.exit("strikethroughSequenceTemporary"),g=cv(p);return m._open=!g||g===2&&!!v,m._close=!v||v===2&&!!g,s(p)}}}class uZe{constructor(){this.map=[]}add(t,r,n){cZe(this,t,r,n)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function cZe(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function dZe(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function fZe(){return{flow:{null:{name:"table",tokenize:hZe,resolveAll:pZe}}}}function hZe(e,t,r){const n=this;let a=0,i=0,o;return s;function s(A){let N=n.events.length-1;for(;N>-1;){const R=n.events[N][1].type;if(R==="lineEnding"||R==="linePrefix")N--;else break}const P=N>-1?n.events[N][1].type:null,L=P==="tableHead"||P==="tableRow"?S:l;return L===S&&n.parser.lazy[n.now().line]?r(A):L(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(o=!0,i+=1),c(A)}function c(A){return A===null?r(A):qe(A)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),h):r(A):pt(A)?At(e,c,"whitespace")(A):(i+=1,o&&(o=!1,a+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(A)))}function d(A){return A===null||A===124||qt(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?f:d)}function f(A){return A===92||A===124?(e.consume(A),d):d(A)}function h(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),o=!1,pt(A)?At(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):p(A))}function p(A){return A===45||A===58?m(A):A===124?(o=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),v):k(A)}function v(A){return pt(A)?At(e,m,"whitespace")(A):m(A)}function m(A){return A===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),g):A===45?(i+=1,g(A)):A===null||qe(A)?_(A):k(A)}function g(A){return A===45?(e.enter("tableDelimiterFiller"),x(A)):k(A)}function x(A){return A===45?(e.consume(A),x):A===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(A))}function b(A){return pt(A)?At(e,_,"whitespace")(A):_(A)}function _(A){return A===124?p(A):A===null||qe(A)?!o||a!==i?k(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):k(A)}function k(A){return r(A)}function S(A){return e.enter("tableRow"),C(A)}function C(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),C):A===null||qe(A)?(e.exit("tableRow"),t(A)):pt(A)?At(e,C,"whitespace")(A):(e.enter("data"),T(A))}function T(A){return A===null||A===124||qt(A)?(e.exit("data"),C(A)):(e.consume(A),A===92?E:T)}function E(A){return A===92||A===124?(e.consume(A),T):T(A)}}function pZe(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,d;const f=new uZe;for(;++r<e.length;){const h=e[r],p=h[1];h[0]==="enter"?p.type==="tableHead"?(s=!1,l!==0&&(nq(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(n=!0,d=void 0,i=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(r,0,[["enter",c,t]])),a=p.type==="tableDelimiterRow"?2:c?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.t
vendor: 4,231 bytes, line 658
658ype==="tableDelimiterFiller")?(n=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],d=Xb(f,t,i,a,void 0,d),i=[0,0,0,0]),o[2]=r)):p.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(o[0]=o[1],d=Xb(f,t,i,a,void 0,d)),i=o,o=[i[1],r,0,0])):p.type==="tableHead"?(s=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,i[1]!==0?(o[0]=o[1],d=Xb(f,t,i,a,r,d)):o[1]!==0&&(d=Xb(f,t,o,a,r,d)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(o[3]=r)}for(l!==0&&nq(f,t,l,u,c),f.consume(t.events),r=-1;++r<t.events.length;){const h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=dZe(t.events,r))}return e}function Xb(e,t,r,n,a,i){const o=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(i.end=Object.assign({},zh(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const l=zh(t.events,r[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const u=zh(t.events,r[2]),c=zh(t.events,r[3]),d={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",d,t]]),n!==2){const f=t.events[r[2]],h=t.events[r[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,v=r[3]-r[2]-1;e.add(p,v,[])}}e.add(r[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},zh(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function nq(e,t,r,n,a){const i=[],o=zh(t.events,r);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),n.end=Object.assign({},o),i.push(["exit",n,t]),e.add(r+1,0,i)}function zh(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const vZe={name:"tasklistCheck",tokenize:mZe};function gZe(){return{text:{[91]:vZe}}}function mZe(e,t,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return qt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):r(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(l)}function s(l){return qe(l)?t(l):pt(l)?e.check({tokenize:yZe},t,r)(l):r(l)}}function yZe(e,t,r){return At(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function xZe(e){return yde([GKe(),eZe(),lZe(e),fZe(),gZe()])}const bZe={};function wZe(e){const t=this,r=e||bZe,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(xZe(r)),i.push(BKe()),o.push(jKe(r))}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const _Ze=({content:e})=>y("div",{className:"prose dark:prose-invert max-w-none text-slate-800 dark:text-slate-200 text-sm leading-relaxed",children:y(lYe,{remarkPlugins:[wZe],components:{h3:({children:t})=>y("h3",{className:"text-base font-black text-slate-900 dark:text-slate-100 mt-2 mb-3 flex items-center gap-2 border-b border-slate-200 dark:border-slate-800 pb-2",children:t}),h4:({children:t})=>y("h4",{className:"text-sm font-bold text-indigo-600 dark:text-indigo-400 mt-3 mb-2",children:t}),p:({children:t})=>y("p",{className:"mb-2 leading-relaxed text-slate-700 dark:text-slate-300",children:t}),strong:({children:t})=>y("strong",{className:"font-extrabold text-slate-900 dark:text-slate-100 bg-indigo-50 dark:bg-indigo-950/60 px-1 py-0.5 rounded text-indigo-700 dark:text-indigo-300",children:t}),table:({children:t})=>y("div",{className:"my-4 overflow-x-auto rounded-xl border border-slate-200 dark:border-slate-700/80 shadow-sm bg-white dark:bg-slate-900",children:y("table",{className:"w-full text-left text-xs divide-y divide-slate-200 dark:divide-slate-800",children:t})}),thead:({children:t})=>y("thead",{className:"bg-slate-100/80 dark:bg-slate-800/80 font-bold text-slate-700 dark:text-slate-300",children:t}),tbody:({children:t})=>
658y("tbody",{className:"divide-y divide-slate-100 dark:divide-slate-800/60",children:t}),tr:({children:t})=>y("tr",{className:"hover:bg-slate-50/80 dark:hover:bg-slate-800/40 transition-colors",children:t}),th:({children:t})=>y("th",{className:"px-4 py-3 font-extrabold text-slate-800 dark:text-slate-200",children:t}),td:({children:t})=>y("td",{className:"px-4 py-2.5 text-slate-600 dark:text-slate-300 whitespace-nowrap",children:t}),hr:()=>y("hr",{className:"my-4 border-slate-200 dark:border-slate-800"}),ul:({children:t})=>y("ul",{className:"list-disc list-inside space-y-1.5 my-2 text-slate-700 dark:text-slate-300",children:t}),ol:({children:t})=>y("ol",{className:"list-decimal list-inside space-y-1.5 my-2 text-slate-700 dark:text-slate-300",children:t}),li:({children:t})=>y("li",{className:"leading-relaxed",children:t}),blockquote:({children:t})=>y("blockquote",{className:"my-3 border-l-4 border-indigo-500 pl-4 py-1.5 italic bg-indigo-50/50 dark:bg-indigo-950/30 text-slate-700 dark:text-slate-300 rounded-r-lg",children:t})},children:e})});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function SZe(){var B,j;const e=mo();Jr(I=>I.user);const[t,r]=z.useState(!1),[n,a]=z.useState(()=>{try{const I=sessionStorage.getItem("insightsData");return I?JSON.parse(I):null}catch{return null}}),[i,o]=z.useState(!1),[s,l]=z.useState(!1),[u,c]=z.useState(""),[d,f]=z.useState(null),[h,p]=z.useState(!1),[v,m]=z.useState(null),[g,x]=z.useState(""),[b,_]=z.useState(!1),[k,S]=z.useState(""),C=z.useRef(null),T=z.useRef(null),E=z.useRef(null),A=async()=>{try{const I=await IUe();m(I),I.customApiKey?x(I.customApiKey):x("")}catch{}},N=async()=>{r(!0),l(!1),sessionStorage.removeItem("insightsData");try{const I=await AUe(!1);a(I);try{sessionStorage.setItem("insightsData",JSON.stringify(I))}catch{}await A()}catch{}finally{r(!1)}},P=(I=!1)=>{if(v&&!v.hasCustomApiKey&&v.freeUsed>=(v.freeLimit||2)){alert(`æ¨ç ${v.freeLimit||2} 次å
è´¹ä½éªé¢åº¦å·²ç¨å®ï¼è¯·é
ç½®æ¨ç InfiniSynapse API Key ç»§ç»ä½¿ç¨ã`);return}if(I){const U=Math.max(0,((v==null?void 0:v.freeLimit)||2)-((v==null?void 0:v.freeUsed)||0)),Y=v!=null&&v.hasCustomApiKey?"ç¡®å®è¦éæ°è¿è¡ AI 表达åå
¨æ¯è¯æåæåï¼":`ç¡®å®è¦éæ°è¿è¡ AI åæåï¼æ¤æä½å°æ¶è 1 次å
è´¹ä½éªé¢åº¦ï¼å½åå©ä½ ${U} 次ï¼ã`;if(!window.confirm(Y))return}N()},L=async()=>{if(!g.trim()){alert("请è¾å
¥ææç API Key å¯é¥");return}_(!0),S("");try{await lW(g.trim()),S("API å¯é¥å·²æ´æ°ä¿åï¼"),await A()}catch(I){alert("ä¿åå¯é¥å¤±è´¥ï¼"+(I.message||"ç½ç»é误"))}finally{_(!1),setTimeout(()=>S(""),3e3)}},R=async()=>{if(window.confirm("ç¡®å®è¦æ¸
é¤å·²ç»å®çèªå® API å¯é¥ï¼ååå
è´¹ä½éªé¢åº¦åï¼")){_(!0),S("");try{await lW(""),x(""),S("èªå® API å¯é¥å·²æ¸
é¤ï¼å·²ååå
è´¹è¯ç¨é¢åº¦ï¼"),await A()}catch(I){alert("æ¸
é¤å¯é¥å¤±è´¥ï¼"+(I.message||"ç½ç»é误"))}finally{_(!1),setTimeout(()=>S(""),3e3)}}};z.useEffect(()=>{A()},[]);const M=I=>I?I.replace(/^[^\u4e00-\u9fa5A-Za-z0-9]+/,"").trim():"";z.useEffect(()=>{const I=n==null?void 0:n.assetPie;if(!C.current||!I||I.length===0)return;const U=setTimeout(()=>{if(!C.current)return;let O=od(C.current);O||(O=BE(C.current)),O.setOption({tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{show:!1},series:[{name:"èµäº§å æ¯",type:"pie",radius:["42%","75%"],center:["50%","50%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:6,borderColor:"#ffffff",borderWidth:2},label:{show:!1},data:I.map(H=>({name:M(H.name),value:H.value,itemStyle:{color:H.color}}))}]}),O.resize()},50),Y=()=>{if(C.current){const O=od(C.current);O==null||O.resize()}};return window.addEventListener("resize",Y),()=>{clearTimeout(U),window.removeEventListener("resize",Y)}},[n,t]),z.useEffect(()=>{const I=n==null?void 0:n.radarData;if(!T.current||!I)return;const U=setTimeout(()=>{if(!T.current)return;let O=od(T.current);O||(O=BE(T.current));const H=I.categories.map(ie=>({name:M(ie),max:100}));O.setOption({tooltip:{trigger:"item"},radar:{indicator:H,shape:"polygon",splitNumber:4,radius:"55%",center:["50%","50%"],axisName:{color:"#64748b",fontSize:11,fontWeight:"bold"}
658,splitLine:{lineStyle:{color:"rgba(148, 163, 184, 0.25)"}},splitArea:{areaStyle:{color:["rgba(241, 245, 249, 0.6)","rgba(248, 250, 252, 0.9)"]}},axisLine:{lineStyle:{color:"rgba(148, 163, 184, 0.3)"}}},series:[{type:"radar",data:[{value:I.values,name:"ä¿®è¾ç»´åº¦å¹é
度",areaStyle:{color:"rgba(79, 70, 229, 0.25)"},lineStyle:{color:"#4f46e5",width:2},itemStyle:{color:"#6366f1"}}]}]}),O.resize()},50),Y=()=>{if(T.current){const O=od(T.current);O==null||O.resize()}};return window.addEventListener("resize",Y),()=>{clearTimeout(U),window.removeEventListener("resize",Y)}},[n,t]),z.useEffect(()=>{const I=n==null?void 0:n.growthTrend;if(!E.current||!I)return;const U=setTimeout(()=>{if(!E.current)return;let O=od(E.current);O||(O=BE(E.current)),O.setOption({tooltip:{trigger:"axis",formatter:"{b}: å¢å {c} è¯æ±/è¯æ"},grid:{top:"12%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:I.dates,axisLine:{lineStyle:{color:"#94a3b8"}},axisLabel:{color:"#64748b",fontSize:11}},yAxis:{type:"value",splitLine:{lineStyle:{color:"rgba(226, 232, 240, 0.8)"}},axisLabel:{color:"#64748b",fontSize:11}},series:[{name:"è¯æç§¯ç´¯è¶å¿",type:"line",smooth:!0,symbolSize:6,data:I.values,itemStyle:{color:"#059669"},lineStyle:{width:3,color:"#059669"},areaStyle:{color:new zv(0,0,0,1,[{offset:0,color:"rgba(5, 150, 105, 0.3)"},{offset:1,color:"rgba(5, 150, 105, 0.0)"}])}}]}),O.resize()},50),Y=()=>{if(E.current){const O=od(E.current);O==null||O.resize()}};return window.addEventListener("resize",Y),()=>{clearTimeout(U),window.removeEventListener("resize",Y)}},[n,t]);const $=async()=>{if(n!=null&&n.syntheticParagraph){o(!0);try{await EUe({title:n.syntheticParagraph.title,content:n.syntheticParagraph.content,category:n.syntheticParagraph.category}),l(!0)}catch{}finally{o(!1)}}},V=async I=>{if(I.preventDefault(),!(!u.trim()||h)){p(!0),f(null);try{const U=await NUe(u);f(U),await A()}catch{f("åæå¤±è´¥ï¼è¯·ç¡®è®¤æ¨ç API Key é¢åº¦åç¨åéè¯")}finally{p(!1)}}};return t?w("div",{className:"flex flex-col items-center justify-center min-h-[500px] gap-4",children:[y("div",{className:"w-9 h-9 border-3 border-slate-200 border-t-indigo-600 rounded-full animate-spin"}),y("p",{className:"text-slate-500 font-medium text-sm animate-pulse",children:"InfiniSynapse AI æ£å¨æ·±åº¦è¯æä½ çã表达åãå
¨åºèµäº§..."})]}):w("div",{className:"space-y-6 max-w-7xl mx-auto pb-12",children:[w("div",{className:"bg-white dark:bg-slate-900 border border-slate-200/80 dark:border-slate-800 rounded-3xl p-6 shadow-sm space-y-4 text-slate-800 dark:text-slate-100",children:[w("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4 border-b border-slate-100 dark:border-slate-800 pb-4",children:[w("div",{className:"flex items-center gap-3",children:[y("div",{className:"w-10 h-10 rounded-2xl bg-indigo-50 dark:bg-indigo-900/30 border border-indigo-200 dark:border-indigo-800 flex items-center justify-center text-indigo-600 dark:text-indigo-400",children:y(Pf,{size:20,className:"fill-indigo-600 dark:fill-indigo-400"})}),w("div",{children:[w("h3",{className:"text-sm sm:text-base font-black flex items-center gap-2 flex-wrap",children:[y("span",{className:"whitespace-nowrap",children:"InfiniSynapse AI 弿"}),y("span",{className:"text-xs sm:text-sm font-bold text-slate-400 dark:text-slate-500",children:"ä¸ API é
颿§å¶"}),v!=null&&v.hasCustomApiKey?w("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] sm:text-xs font-bold bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-500/30 flex items-center gap-1 whitespace-nowrap",children:[y(nn,{size:12})," å·²é
ç½®èªå®å¯é¥"]}):w("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] sm:text-xs font-bold bg-indigo-100 text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300 border border-indigo-200 dark:border-indigo-500/30 whitespace-nowrap",children:["å
è´¹ä½éª (",(v==null?void 0:v.freeUsed)||0,"/",(v==null?void 0:v.freeLimit)||2,"次)"]})]}),w("p",{className:"text-xs text-slate-500 dark:text-slate-400 pt-0.5",children:["æ°æ³¨åè´¦æ·äº«æ ",(v==null?void 0:v.freeLimit)||2," 次å
è´¹å
¨é AI æ´å¯ä½éªãè¶
åºå
è´¹é¢åº¦åï¼æ¨å¯ä»¥èªè¡åå¾ InfiniSynapse å¹³å°ç³è¯·å¹¶å¡«å
¥æ¨ç API å¯é¥ã"]})]})]}),w("a",{href:"https://app.infinisynapse.cn?ref=l5rnWbzS",target:"_blank",rel:"noopener noreferrer",className:"px-3 sm:px-4 py-2 sm:py-2.5 bg-indigo-600 hover:bg-indigo-700 active:bg-indigo-800 text-white font-extrabold rounded-xl text-[11px] sm:text-xs shadow-md shadow-indigo-600/20 transition-all flex items-center gap-1.5 shrink-0",children:[y(AP,{size:14}),y("span",{className:"whitespace-nowrap",children:"åå¾å®ç½æ³¨åè·å API Key"})]})]}
658),v&&!v.hasCustomApiKey&&v.freeUsed>=(v.freeLimit||2)&&w("div",{className:"bg-rose-50 dark:bg-rose-950/40 border border-rose-200 dark:border-rose-800/80 rounded-2xl p-4 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 text-rose-700 dark:text-rose-300",children:[w("div",{className:"flex items-center gap-2 text-xs font-bold",children:[y(yee,{size:16,className:"text-rose-500 shrink-0"}),w("span",{children:["æ¨ç ",v.freeLimit||2," 次å
è´¹ä½éªé¢åº¦å·²ç¨å®ã请å¨ä¸æ¹å¡«å
¥æ¨å¨ InfiniSynapse å¹³å°è·åç API å¯é¥ç»§ç»ä½¿ç¨ã"]})]}),w("a",{href:"https://app.infinisynapse.cn?ref=l5rnWbzS",target:"_blank",rel:"noopener noreferrer",className:"px-3.5 py-1.5 bg-rose-600 hover:bg-rose-700 text-white font-black rounded-xl text-xs shrink-0 transition-all flex items-center gap-1 shadow-sm",children:[y("span",{children:"è·å API Key"}),y(af,{size:12})]})]}),w("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center justify-between gap-3 bg-slate-50 dark:bg-slate-950/60 p-3.5 rounded-2xl border border-slate-200 dark:border-slate-800",children:[w("div",{className:"flex items-center gap-2 text-xs font-bold text-slate-700 dark:text-slate-300 shrink-0",children:[y(Ek,{size:16,className:"text-indigo-600 dark:text-indigo-400 shrink-0"}),y("span",{className:"whitespace-nowrap",children:"é
ç½® API Keyï¼"})]}),w("div",{className:"flex items-center gap-2 flex-1 max-w-lg",children:[y("input",{type:"password",value:g,onChange:I=>x(I.target.value),placeholder:"sk-infinisynapse-...",className:"px-3.5 py-2 bg-white dark:bg-slate-900 border border-slate-300 dark:border-slate-700 rounded-xl text-slate-800 dark:text-slate-100 text-xs font-mono w-full focus:outline-none focus:border-indigo-500"}),y("button",{onClick:L,disabled:b,className:"px-4 py-2 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white rounded-xl text-xs font-bold shrink-0 transition-all shadow-md shadow-indigo-600/20",children:b?"ä¿åä¸...":"ä¿åå¯é¥"}),(v==null?void 0:v.hasCustomApiKey)&&w("button",{onClick:R,disabled:b,className:"px-3.5 py-2 bg-rose-50 hover:bg-rose-100 dark:bg-rose-950/40 dark:hover:bg-rose-900/50 disabled:opacity-50 text-rose-600 dar
658k:text-rose-400 border border-rose-200 dark:border-rose-800 rounded-xl text-xs font-bold shrink-0 transition-all flex items-center gap-1 shadow-sm",children:[y(ic,{size:13}),y("span",{children:"æ¸
é¤å¯é¥"})]})]})]}),k&&w("p",{className:"text-xs font-bold text-emerald-400 animate-fade-in pl-1",children:["â ",k]})]}),y("div",{className:"bg-white p-6 md:p-7 rounded-2xl border border-slate-200/80 shadow-sm space-y-4",children:w("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[w("div",{className:"flex items-start gap-3",children:[y("div",{className:"p-2.5 bg-indigo-50 rounded-xl text-indigo-600 shrink-0",children:y(gr,{className:"w-5 h-5"})}),w("div",{className:"min-w-0",children:[w("div",{className:"flex flex-wrap items-center gap-2",children:[y("h1",{className:"text-lg sm:text-2xl font-bold text-slate-800 tracking-tight",children:"AI è¯æå
¨æ¯æ°æ®å¤§å±ä¸æºè½åæ"}),y("span",{className:"px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-100 text-indigo-700 whitespace-nowrap shrink-0",children:"InfiniSynapse AI 驱å¨"})]}),y("p",{className:"text-slate-500 text-xs sm:text-sm mt-1 leading-relaxed",children:"å
¨æ¯è§£æä½ çãæ®µè½åºãããéå¥åºãä¸ãè¯è¯åºã积累ï¼åæè诵çç»åº¦å¹¶ç± AI æºè½åæä¸å±è¡¥å¼ºèæã"})]})]}),y("div",{className:"flex items-center gap-3",children:w("button",{onClick:()=>P(!!n),className:"inline-flex items-center justify-center gap-2 px-4 py-2.5 rounded-xl bg-indigo-600 hover:bg-indigo-700 active:bg-indigo-800 text-white font-extrabold text-xs shadow-md shadow-indigo-500/20 transition-all shrink-0 cursor-pointer",children:[y(Zo,{className:"w-3.5 h-3.5"}),n?"éæ°åæ":"⨠ç«å³åæ"]})})]})}),!n&&!t&&w("div",{className:"bg-gradient-to-br from-indigo-50/80 via-white to-slate-50 dark:from-slate-900 dark:via-slate-900 dark:to-slate-950 p-8 md:p-10 rounded-3xl border border-indigo-100 dark:border-slate-800 shadow-lg text-center space-y-6",children:[y("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600 text-white flex items-center justify-center mx-auto shadow-xl shadow-indigo-500/30",children:y(gr,{size:32})}),w("div",{className:"max-w-xl mx-auto space-y-2",children:[y("h2",{className:"text-xl md:text-2xl font-black text-slate-800 dark:text-slate-100",children:"åå¤å¥½å
¨æ¯è§£æä½ çã表达åãå
¨åºèµäº§äºåï¼"}),y("p",{className:"text-xs md:text-sm text-slate-500 dark:text-slate-400 leading-relaxed",children:"è¿å
¥é¡µé¢ä¸ä¼èªå¨æ£é¤æ¨çä½éªé¢åº¦ãç¹å»ä¸æ¹æé®ï¼InfiniSynapse AI å°æ·±åº¦æ«æä½ çãæ®µè½åºãããéå¥åºãä¸ãè¯è¯åºãï¼çæä¸ç»´å
¨æ¯å¾è¡¨å¹¶ä¸ºä½ é身å®å¶ä¸å±è¡¥å¼ºèæã"})]}),w("div",{className:"pt-2 flex flex-col items-center gap-3",children:[w("button",{onClick:()=>P(!1),className:"px-8 py-3.5 rounded-2xl bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 text-white font-black text-sm shadow-xl shadow-indigo-600/30 transition-all hover:scale-105 flex items-center gap-2 cursor-pointer",children:[y(gr,{size:18}),y("span",{children:"⨠ç«å³åèµ· AI 表达åè¯æåæ"})]}),w("p",{className:"text-xs text-slate-400 dark:text-slate-500 font-medium",children:["ð¡ æç¤ºï¼ç¹å»æé®åæ¹å¯åèµ·åæå¹¶æ¶è 1 次ä½éªé¢åº¦ (å½åå©ä½å
è´¹é¢åº¦: ",Math.max(0,((v==null?void 0:v.freeLimit)||2)-((v==null?void 0:v.freeUsed)||0))," 次)"]})]})]}),n&&w(Rt,{children:[w("div",{className:"space-y-4",children:[y("div",{className:"flex flex-wrap items-center justify-between gap-2",children:w("div",{className:"flex items-center gap-2",children:[y(YT,{className:"w-4 h-4 text-indigo-600 shrink-0"}),y("h2",{className:"text-sm sm:text-base font-bold text-slate-800",children:"表达èµäº§å
¨æ¯ä¸å¦ä¹ è¡ä¸ºåæ"})]})}),w("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[w("div",{className:"bg-white rounded-2xl p-4 border border-slate-200/80 shadow-sm flex flex-col justify-between space-y-4",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2",children:[y(oxe,{className:"w-4 h-4 text-indigo-600"}),y("span",{className:"text-sm font-bold text-slate-800",children:"项ç®ä¸å¤§
658åºèµäº§æææ¯ä¾"})]}),y("span",{className:"text-xs text-slate-400",children:"ç¯å½¢æ¯ä¾å¾"})]}),y("div",{ref:C,className:"w-full h-48"}),y("div",{className:"pt-3 border-t border-slate-100 flex flex-col gap-1.5 text-xs",children:(B=n==null?void 0:n.assetPie)==null?void 0:B.map((I,U)=>w("div",{className:"flex items-center justify-between px-2 py-1.5 rounded-md bg-slate-50 border border-slate-100",children:[w("div",{className:"flex items-center gap-1.5",children:[y("span",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:I.color}}),y("span",{className:"font-medium text-slate-700",children:I.name})]}),y("span",{className:"font-bold text-slate-900",children:I.value})]},U))})]}),w("div",{className:"bg-white rounded-2xl p-4 border border-slate-200/80 shadow-sm flex flex-col justify-between space-y-4",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2",children:[y(Jye,{className:"w-4 h-4 text-indigo-600"}),y("span",{className:"text-sm font-bold text-slate-800",children:"è¯æ 5 ç»´è½åå¾è°±"})]}),y("span",{className:"text-xs text-slate-400",children:"é·è¾¾å¾è°±"})]}),y("div",{ref:T,className:"w-full h-60"}),w("div",{className:"pt-3 border-t border-slate-100 text-xs text-slate-600 flex flex-col gap-1.5",children:[w("div",{className:"flex items-center justify-between gap-2",children:[y("span",{children:"è¦çå¤è¯è¯ãæ£æãå²çæè¾¨çä¿®è¾å好åæ"}),y("span",{className:"text-indigo-600 font-bold whitespace-nowrap",children:"5 ç»´éå"})]}),w("p",{className:"text-[11px] text-slate-400",children:["ð¡ ",y("strong",{children:"å¾å便®"}),"ï¼æ ¹æ®ä½ å¨ã段è½åºãä¸ååç±»å·²ç§¯ç´¯çæ®µè½ç¯æ°è®¡ç®ï¼1ç¯=40åï¼2ç¯=80åï¼3ç¯å以ä¸=100åæ»¡åï¼ã"]})]})]})]}),w("div",{className:"bg-white rounded-2xl p-5 border border-slate-200/80 shadow-sm space-y-3",children:[w("div",{className:"flex items-center justify-between",children:[w("div",{className:"flex items-center gap-2",children:[y(rxe,{className:"w-4 h-4 text-blue-600"}),y("span",{className:"text-sm font-bold text-slate-800",children:"è¿ 7 天è诵ç»ä¹ 䏿å¡è½¨è¿¹"})]}),y("span",{className:"text-xs text-slate-400",children:"宿¶ç»ä¹ æ¥å¿"})]}),y("div",{ref:E,className:"w-full h-52"}),w("div",{className:"p-3 rounded-xl bg-slate-50 border border-slate-100 text-xs text-slate-600 leading-relaxed flex items-center gap-2",children:[y(exe,{className:"w-4 h-4 text-blue-600 shrink-0"}),y("span",{children:"æ¨ªè½´ä¸ºè¿ 7 å¤©æ¥æï¼çºµè½´ä¸ºä½ æ¯å¤©å¨æ®µè½è诵ãè¿ç®æè¯µææåå½å
¥è¯æ±ä¸çç»ä¹ æ»æ¬¡æ°ã"})]})]}),w("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[w("div",{className:"bg-white rounded-2xl p-5 border border-slate-200/80 shadow-sm flex flex-col justify-between",children:[y("span",{className:"text-xs font-semibold text-slate-400",children:"æ°æ®åºèµäº§çç¹"}),w("div",{className:"my-3 grid grid-cols-3 gap-2 text-center",children:[w("div",{className:"bg-slate-50 p-2.5 rounded-xl border border-slate-100",children:[y("div",{className:"text-xl font-bold text-slate-800",children:(n==null?void 0:n.corpusStats.paragraphCount)||0}),y("div",{className:"text-xs text-slate-500 mt-0.5",children:"æ®µè½ (ç¯)"})]}),w("div",{className:"bg-slate-50 p-2.5 rounded-xl border border-slate-100",children:[y("div",{className:"text-xl font-bold text-slate-800",children:(n==null?void 0:n.sentenceCount)||(n==null?void 0:n.corpusStats.sentenceCount)||0}),y("div",{className:"text-xs text-slate-500 mt-0.5",children:"éå¥ (å¥)"})]}),w("div",{className:"bg-slate-50 p-2.5 rounded-xl border border-slate-100",children:[y("div",{className:"text-xl font-bold text-slate-800",children:(n==null?void 0:n.corpusStats.wordCount)||0}),y("div",{className:"text-xs text-slate-500 mt-0.5",children:"è¯è¯ (个)"})]})]}),w("div",{className:"flex items-center gap-1.5 text-xs text-amber-600 font-medium",children:[y(Jy,{className:"w-4 h-4 text-amber-500"}),w("span",{children:["è¿ç»æå¡ä¿®è¡ ",(n==null?void 0:n.corpusStats.studyStreak)||0," 天"]})]})]}),w("div",{className:"md:col-span-2 bg-white rounded-2xl p-5 border border-slate-200/80 shadow-sm space-y-3",children:[w("div",{className:"flex flex-wrap items-center gap-2",children:[y(L$,{className:"w-4 h-4 text-indigo-600 shrink-0"}),y("h3",{className:"font-bold text-slate-800 text-xs",children:"InfiniSynapse AI è¯æè¯æç»è®º"})]}),y("div",{className:"space-y-2",children:(j=n==null?void 0:n.aiDiagnostics)==null?void 0:j.map((I,U)=>w("div",{className:`p-3 rounded-xl border text-xs leading-relaxed ${I.level==="warning"?"bg-amber-50/70 border-amber-200 text-amber-900":"bg-indigo-50/70 border-indigo-200 text-indigo-900"}`,children:[y("span",{className:"font-bold block mb-0.5",children:I.title}),y("span",{children:I.desc})]},U))})]})]}),w("div",{className:"bg-white rounded-2xl p-5 border border-slate-200/80 shadow-sm space-y-4",children:[w("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[w("div",{className:"flex flex-wrap items-center gap-2",children:[y(mee,{className:"w-4 h-4 text-amber-500 shrink-0"}),y("h3",{className:"font-bold text-slate-800 text-xs sm:text-sm",children:"建议巩åºå¤ä¹ çæ®µè½ï¼ç»åè¾å®¾æµ©æ¯è®°å¿æ²çº¿ï¼"})]}),y("span",{className:"text-xs text-slate-400 shrink-0",children:"æ¶é´ååºæå"})]}),n!=null&&n.forgettingWarning&&n.forgettingWarning.length>0?y("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:n.forgettingWarning.map(I=>w("div",{className:"p-3.5 rounded-xl border border-slate-200 bg-slate-50/60 flex items-center justify-between gap-4",children:[w("div",{className:"min-w-0 space-y-1",children:[w("div",{className:"flex items-center gap-2",children:[y("span",{className:"font-bold text-slate-800 truncate text-sm",children:I.title}),y("span",{className:"px-2 py-0.5 rounded text-[10px] font-semibold bg-slate-200 text-slate-700",children:I.category||"éç¨"})]}),w("div",{className:"flex items-center gap-3 text-xs text-slate-500",children:[w("span",{children:["åæ°: ",I.wordCount," å"]}),w("span",{className:"inline-flex items-center gap-1 text-amber-600 font-medium",children:[y(kv,{className:"w-3.5 h-3.5"}),"䏿¬¡è诵/ä¿å: ",I.lastStudiedAt||"è¾æ©å"]})]})]}),w("button",{onClick:()=>e(`/paragraphs/${I.id}/recite`),className:"inline-flex items-center gap-1.5 px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-xs shrink-0 transition-all shadow-sm border border-indigo-600",children:[y("span",{children:"å»è诵"}),y(af,{className:"w-3.5 h-3.5 text-white"})]})]},I.id))}):y("p",{className:"text-sm text-slate-500",children:"ä½ ç®åçæ®µè½è诵å¾é常çç»ï¼ææ¶æ²¡æéè¦å¤ä¹ çæ®µè½ï¼"})]})]}),w("div",{className:"bg-white rounded-3xl p-6 md:p-8 shadow-sm space-y-6 border border-slate-200/80 relative overflow-hidden",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-slate-100 pb-5 relative z-10",children:[w("div",{children:[w("div",{className:"flex flex-wrap items-center gap-2.5",children:[y("div",{className:"p-2 rounded-xl bg-indigo-50 text-indigo-600 border border-indigo-100 shrink-0",children:y(gr,{className:"w-5 h-5"})}),y("h2",{className:"text-base sm:text-lg font-black text-slate-800 tracking-tight",children:"AI èè¯æç¯ Â· ä¸å±å®å¶è¯æèæ"})]}),y("p",{className:"text-xs text-slate-500 mt-1.5 leading-relaxed max-w-2xl",children:"èªå¨æåæ¨å¨ãè¯è¯åºãææ°ç§¯ç´¯çé«é¢æè¯ï¼ç± AI ååèæ±ä¸ºé«é¶è¡¨è¾¾ç¾æãæè¯»è诵æ¤ç¯çæï¼
658å³å¯å®ç°âè¯æ±ç§¯ç´¯ â ç¯ç« åºç¨ â è¯æå
åâçèªç¶è¿è´¯ã"})]}),y("div",{className:"flex items-center gap-2 shrink-0",children:w("span",{className:"px-3 py-1 rounded-full text-xs font-bold bg-indigo-50 text-indigo-700 border border-indigo-100 flex items-center gap-1",children:[y(gr,{className:"w-3.5 h-3.5"}),"AI æºè½èæ±"]})})]}),(n==null?void 0:n.syntheticParagraph)&&w("div",{className:"space-y-4 bg-slate-50 p-6 rounded-2xl border border-slate-100 relative z-10",children:[w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-b border-slate-200/80 pb-4",children:[w("div",{className:"flex items-center gap-3",children:[w("span",{className:"text-base font-extrabold text-indigo-700",children:["ã",n.syntheticParagraph.title,"ã"]}),y("span",{className:"px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-50 text-indigo-700 border border-indigo-100",children:n.syntheticParagraph.category})]}),w("div",{className:"flex items-center gap-2",children:[y("span",{className:"text-xs text-slate-500 font-medium",children:"èå
¥è¯æ±ï¼"}),y("div",{className:"flex gap-1.5 flex-wrap",children:n.syntheticParagraph.wordsUsed.map((I,U)=>y("span",{className:"px-2.5 py-0.5 rounded-lg text-xs font-bold bg-indigo-100 text-indigo-700 border border-indigo-200",children:I},U))})]})]}),y("div",{className:"p-5 rounded-xl bg-white border border-slate-200 text-slate-700 shadow-sm",children:w("p",{className:"text-sm md:text-base leading-relaxed font-serif tracking-wide",children:["â",n.syntheticParagraph.content,"â"]})}),w("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pt-2",children:[w("span",{className:"text-xs text-slate-500",children:["åæ°ç»è®¡ï¼å
± ",y("strong",{className:"text-indigo-600",children:n.syntheticParagraph.content.length})," å"]}),s?w("div",{className:"flex items-center gap-3",children:[w("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold text-emerald-600 bg-emerald-50 px-3 py-1.5 rounded-xl border border-emerald-100",children:[y(nn,{className:"w-4 h-4"}),"å·²æåå å
¥æçãæ®µè½åºãï¼"]}),y("button",{onClick:()=>e("/paragraphs"),className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-bold transition-all shadow-sm",children:"å徿®µè½åºå¼å§æå¡è诵"})]}):w("button",{onClick:$,disabled:i,className:"inline-flex items-center gap-2 px-6 py-2.5 rounded-xl bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-xs shadow-sm shadow-indigo-500/20 transition-all disabled:opacity-50",children:[i?y(Zo,{className:"w-4 h-4 animate-spin"}):y(sxe,{className:"w-4 h-4"}),i?"æ£å¨ä¿åè³æ®µè½åº...":"⨠ä¸é®å°å®å¶èæå å
¥æçãæ®µè½åºã"]})]})]})]}),w("div",{className:"bg-white rounded-2xl p-6 border border-slate-200/80 shadow-sm space-y-4",children:[w("div",{className:"flex flex-wrap items-center gap-2",children:[y(YT,{className:"w-4 h-4 text-indigo-600 shrink-0"}),y("h2",{className:"text-sm sm:text-base font-bold text-slate-800",children:"ç¨èªç¶è¯è¨æé®ä½ çå¦ä¹ æ°æ®"}),y("span",{className:"px-2.5 py-0.5 rounded-full text-[10px] sm:text-xs font-semibold bg-indigo-100 text-indigo-700 whitespace-nowrap shrink-0",children:"InfiniSynapse æ°æ®åæ"})]}),y("p",{className:"text-xs text-slate-500 leading-relaxed",children:'å·²è¿æ¥ä½ ççå®å¦ä¹ åºï¼æ®µè½/å¥å/è¯è¯/å¦ä¹ æ¥å¿ï¼ãç¨ä¸æç´æ¥æé®ï¼AI ä¼èªå¨æ§è¡ SQL åæå¹¶è¿åè¡¨æ ¼ãä¾å¦ï¼"ç»è®¡æè¿å» 7 天å颿è诵æ¶é¿ï¼è¿åè¡¨æ ¼"ã'}),w("div",{className:"flex flex-col sm:flex-row gap-3",children:[y("input",{value:u,onChange:I=>c(I.target.value),onKeyDown:I=>{I.key==="Enter"&&!h&&V(I)},placeholder:"ä¾å¦ï¼æçè¯è¯åºæç±»å«åå¸å¦ä½ï¼åªå¤©å¦ä¹ ææå
¥ï¼",className:"flex-1 px-4 py-2.5 rounded-xl border border-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-300"}),w("button",{onClick:I=>V(I),disabled:h||!u.trim(),className:"inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-sm shadow-sm transition-all disabled:opacity-50 shrink-0",children:[h?y(Zo,{className:"w-4 h-4 animate-spin"}):y(YT,{className:"w-4 h-4"}),h?"åæä¸...":"å¼å§åæ"]})]}),d&&y("div",{className:"p-5 rounded-2xl bg-slate-50 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 shadow-inner overflow-x-auto",children:y(_Ze,{content:d})})]})]})]})}var Jb=function(e){return e&&e.Math==Math&&e},Re=Jb(typeof globalThis=="object"&&globalThis)||Jb(typeof window=="object"&&window)||Jb(typeof self=="object"&&self)||Jb(typeof Od=="object"&&Od)||function(){return this}()||Od||Function("return this")(),pn={},ge=function(e){try{return!!e()}catch{return!0}},kZe=ge,Qe=!kZe(function(){return Object.defineProperty({},1,{get:function(){return 7}}
vendor: 9,076 bytes, line 658
658)[1]!=7}),CZe=ge,$x=!CZe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),TZe=$x,Qb=Function.prototype.call,ht=TZe?Qb.bind(Qb):function(){return Qb.apply(Qb,arguments)},Ox={},cfe={}.propertyIsEnumerable,dfe=Object.getOwnPropertyDescriptor,AZe=dfe&&!cfe.call({1:2},1);Ox.f=AZe?function(t){var r=dfe(this,t);return!!r&&r.enumerable}:cfe;var $i=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},ffe=$x,hfe=Function.prototype,eR=hfe.call,EZe=ffe&&hfe.bind.bind(eR,eR),_e=ffe?EZe:function(e){return function(){return eR.apply(e,arguments)}},pfe=_e,NZe=pfe({}.toString),IZe=pfe("".slice),ta=function(e){return IZe(NZe(e),8,-1)},PZe=_e,MZe=ge,DZe=ta,SI=Object,LZe=PZe("".split),Qv=MZe(function(){return!SI("z").propertyIsEnumerable(0)})?function(e){return DZe(e)=="String"?LZe(e,""):SI(e)}:SI,Ta=function(e){return e==null},RZe=Ta,$Ze=TypeError,Hr=function(e){if(RZe(e))throw $Ze("Can't call method on "+e);return e},OZe=Qv,zZe=Hr,en=function(e){return OZe(zZe(e))},tR=typeof document=="object"&&document.all,FZe=typeof tR>"u"&&tR!==void 0,vfe={all:tR,IS_HTMLDDA:FZe},gfe=vfe,BZe=gfe.all,wt=gfe.IS_HTMLDDA?function(e){return typeof e=="function"||e===BZe}:function(e){return typeof e=="function"},aq=wt,mfe=vfe,jZe=mfe.all,_t=mfe.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:aq(e)||e===jZe}:function(e){return typeof e=="object"?e!==null:aq(e)},kI=Re,VZe=wt,UZe=function(e){return VZe(e)?e:void 0},ir=function(e,t){return arguments.length<2?UZe(kI[e]):kI[e]&&kI[e][t]},GZe=_e,Oi=GZe({}.isPrototypeOf),_l=typeof navigator<"u"&&String(navigator.userAgent)||"",yfe=Re,CI=_l,iq=yfe.process,oq=yfe.Deno,sq=iq&&iq.versions||oq&&oq.version,lq=sq&&sq.v8,to,Y2;lq&&(to=lq.split("."),Y2=to[0]>0&&to[0]<4?1:+(to[0]+to[1]));!Y2&&CI&&(to=CI.match(/Edge\/(\d+)/),(!to||to[1]>=74)&&(to=CI.match(/Chrome\/(\d+)/),to&&(Y2=+to[1])));var Sl=Y2,uq=Sl,HZe=ge,WZe=Re,qZe=WZe.String,eg=!!Object.getOwnPropertySymbols&&!HZe(function(){var e=Symbol();return!qZe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uq&&uq<41}),YZe=eg,xfe=YZe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KZe=ir,ZZe=wt,XZe=Oi,JZe=xfe,QZe=Object,Uf=JZe?function(e){return typeof e=="symbol"}:function(e){var t=KZe("Symbol");return ZZe(t)&&XZe(t.prototype,QZe(e))},eXe=String,Gf=function(e){try{return eXe(e)}catch{return"Object"}},tXe=wt,rXe=Gf,nXe=TypeError,Cr=function(e){if(tXe(e))return e;throw nXe(rXe(e)+" is not a function")},aXe=Cr,iXe=Ta,kl=function(e,t){var r=e[t];return iXe(r)?void 0:aXe(r)},TI=ht,AI=wt,EI=_t,oXe=TypeError,bfe=function(e,t){var r,n;if(t==="string"&&AI(r=e.toString)&&!EI(n=TI(r,e))||AI(r=e.valueOf)&&!EI(n=TI(r,e))||t!=="string"&&AI(r=e.toString)&&!EI(n=TI(r,e)))return n;throw oXe("Can't convert object to primitive value")},wfe={exports:{}},V6=!1,cq=Re,sXe=Object.defineProperty,U6=function(e,t){try{sXe(cq,e,{value:t,configurable:!0,writable:!0})}catch{cq[e]=t}return t},lXe=Re,uXe=U6,dq="__core-js_shared__",cXe=lXe[dq]||uXe(dq,{}),G6=cXe,fq=G6;(wfe.exports=function(e,t){return fq[e]||(fq[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.30.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var tg=wfe.exports,dXe=Hr,fXe=Object,Dt=function(e){return fXe(dXe(e))},hXe=_e,pXe=Dt,vXe=hXe({}.hasOwnProperty),It=Object.hasOwn||function(t,r){return vXe(pXe(t),r)},gXe=_e,mXe=0,yXe=Math.random(),xXe=gXe(1 .toString),rg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+xXe(++mXe+yXe,36)},bXe=Re,wXe=tg,hq=It,_Xe=rg,SXe=eg,kXe=xfe,sp=bXe.Symbol,NI=wXe("wks"),CXe=kXe?sp.for||sp:sp&&sp.withoutSetter||_Xe,St=function(e){return hq(NI,e)||(NI[e]=SXe&&hq(sp,e)?sp[e]:CXe("Symbol."+e)),NI[e]},TXe=ht,pq=_t,vq=Uf,AXe=kl,EXe=bfe,NXe=St,IXe=TypeError,PXe=NXe("toPrimitive"),YC=function(e,t){if(!pq(e)||vq(e))return e;var r=AXe(e,PXe),n;if(r){if(t===void 0&&(t="default"),n=TXe(r,e,t),!pq(n)||vq(n))return n;throw IXe("Can't convert object to primitive value")}return t===void 0&&(t="number"),EXe(e,t)},MXe=YC,DXe=Uf,vc=function(e){var t=MXe(e,"string");return DXe(t)?t:t+""},LXe=Re,gq=_t,rR=LXe.document,RXe=gq(rR)&&gq(rR.createElement),KC=function(e){return RXe?rR.createElement(e):{}},$Xe=Qe,OXe=ge,zXe=KC,_fe=!$Xe&&!OXe(function(){return Object.defineProperty(zXe("div"),"a",{get:function(){return 7}}).a!=7}),FXe=Qe,BXe=ht,jXe=Ox,VXe=$i,UXe=en,GXe=vc,HXe=It,WXe=_fe,mq=Object.getOwnPropertyDescriptor;pn.f=FXe?mq:function(t,r){if(t=UXe(t),r=GXe(r),WXe)try{return mq(t,r)}catch{}if(HXe(t,r))return VXe(!BXe(jXe.f,t,r),t[r])};var or={},qXe=Qe,YXe=ge,Sfe=qXe&&YXe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),KXe=_t,ZXe=String,XXe=TypeError,ct=function(e){if(KXe(e))return e;throw XXe(ZXe(e)+" is not an object")},JXe=Qe,QXe=_fe,eJe=Sfe,ew=ct,yq=vc,tJe=TypeError,II=Object.defineProperty,rJe=Object.getOwnPropertyDescriptor,PI="enumerable",MI="configurable",DI="writable";or.f=JXe?eJe?function(t,r,n){if(ew(t),r=yq(r),ew(n),typeof t=="function"&&r==="prototype"&&"value"in n&&DI in n&&!n[DI]){var a=rJe(t,r);a&&a[DI]&&(t[r]=n.value,n={configurable:MI in n?n[MI]:a[MI],enumerable:PI in n?n[PI]:a[PI],writable:!1})}return II(t,r,n)}:II:function(t,r,n){if(ew(t),r=yq(r),ew(n),QXe)try{return II(t,r,n)}catch{}if("get"in n||"set"in n)throw tJe("Accessors not supported");return"value"in n&&(t[r]=n.value),t};var nJe=Qe,aJe=or,iJe=$i,ra=nJe?function(e,t,r){return aJe.f(e,t,iJe(1,r))}:function(e,t,r){return e[t]=r,e},kfe={exports:{}},nR=Qe,oJe=It,Cfe=Function.prototype,sJe=nR&&Object.getOwnPropertyDescriptor,H6=oJe(Cfe,"name"),lJe=H6&&function(){}.name==="something",uJe=H6&&(!nR||nR&&sJe(Cfe,"name").configurable),ng={EXISTS:H6,PROPER:lJe,CONFIGURABLE:uJe},cJe=_e,dJe=wt,aR=G6,fJe=cJe(Function.toString);dJe(aR.inspectSource)||(aR.inspectSource=function(e){return fJe(e)});var W6=aR.inspectSource,hJe=Re,pJe=wt,xq=hJe.WeakMap,Tfe=pJe(xq)&&/native code/.test(String(xq)),vJe=tg,gJe=rg,bq=vJe("keys"),ZC=function(e){return bq[e]||(bq[e]=gJe(e))},zx={},mJe=Tfe,Afe=Re,yJe=_t,xJe=ra,LI=It,RI=G6,bJe=ZC,wJe=zx,wq="Object already initialized",iR=Afe.TypeError,_Je=Afe.WeakMap,K2,Uy,Z2,SJe=function(e){return Z2(e)?Uy(e):K2(e,{})},kJe=function(e){return function(t){var r;if(!yJe(t)||(r=Uy(t)).type!==e)throw iR("Incompatible receiver, "+e+" required");return r}};if(mJe||RI.state){var Io=RI.state||(RI.state=new _Je);Io.get=Io.get,Io.has=Io.has,Io.set=Io.set,K2=function(e,t){if(Io.has(e))throw iR(wq);return t.facade=e,Io.set(e,t),t},Uy=function(e){return Io.get(e)||{}},Z2=function(e){return Io.has(e)}}else{var wh=bJe("state");wJe[wh]=!0,K2=function(e,t){if(LI(e,wh))throw iR(wq);return t.facade=e,xJe(e,wh,t),t},Uy=function(e){return LI(e,wh)?e[wh]:{}},Z2=function(e){return LI(e,wh)}}var Wr={set:K2,get:Uy,has:Z2,enforce:SJe,getterFor:kJe},q6=_e,CJe=ge,TJe=wt,tw=It,oR=Qe,AJe=ng.CONFIGURABLE,EJe=W6,Efe=Wr,NJe=Efe.enforce,IJe=Efe.get,_q=String,D_=Object.defineProperty,PJe=q6("".slice),MJe=q6("".replace),DJe=q6([].join),LJe=oR&&!CJe(function(){return D_(function(){},"length",{value:8}).length!==8}),RJe=String(String).split("String"),$Je=kfe.exports=function(e,t,r){PJe(_q(t),0,7)==="Symbol("&&(t="["+MJe(_q(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!tw(e,"name")||AJe&&e.name!==t)&&(oR?D_(e,"name",{value:t,configurable:!0}):e.name=t),LJe&&r&&tw(r,"arity")&&e.length!==r.arity&&D_(e,"length",{value:r.arity});try{r&&tw(r,"constructor")&&r.constructor?oR&&D_(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var n=NJe(e);return tw(n,"source")||(n.source=DJe(RJe,typeof t=="string"?t:"")),e};Function.prototype.toString=$Je(function(){return TJe(this)&&IJe(this).source||EJe(this)},"toString");var Y6=kfe.exports,OJe=wt,zJe=or,FJe=Y6,BJe=U6,yr=function(e,t,r,n){n||(n={});var a=n.enumerable,i=n.name!==void 0?n.name:t;if(OJe(r)&&FJe(r,i,n),n.global)a?e[t]=r:BJe(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch{}a?e[t]=r:zJe.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Cl={},jJe=Math.ceil,VJe=Math.floor,Nfe=Math.trunc||function(t){var r=+t;return(r>0?VJe:jJe)(r)},UJe=Nfe,Tr=function(e){var t=+e;return t!==t||t===0?0:UJe(t)},GJe=Tr,HJe=Math.max,WJe=Math.min,ps=function(e,t){var r=GJe(e);return r<0?HJe(r+t,0):WJe(r,t)},qJe=Tr,YJe=Math.min,Ka=function(e){return e>0?YJe(qJe(e),9007199254740991):0},KJe=Ka,Bt=function(e){return KJe(e.length)},ZJe=en,XJe=ps,JJe=Bt,Sq=function(e){return function(t,r,n){var a=ZJe(t),i=JJe(a),o=XJe(n,i),s;if(e&&r!=r){for(;i>o;)if(s=a[o++],s!=s)return!0}else for(;i>o;o++)if((e||o in a)&&a[o]===r)return e||o||0;return!e&&-1}},Fx={includes:Sq(!0),indexOf:Sq(!1)},QJe=_e,$I=It,eQe=en,tQe=Fx.indexOf,rQe=zx,kq=QJe([].push),Ife=function(e,t){var r=eQe(e),n=0,a=[],i;for(i in r)!$I(rQe,i)&&$I(r,i)&&kq(a,i);for(;t.length>n;)$I(r,i=t[n++])&&(~tQe(a,i)||kq(a,i));return a},K6=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
658ing","toString","valueOf"],nQe=Ife,aQe=K6,iQe=aQe.concat("length","prototype");Cl.f=Object.getOwnPropertyNames||function(t){return nQe(t,iQe)};var Bx={};Bx.f=Object.getOwnPropertySymbols;var oQe=ir,sQe=_e,lQe=Cl,uQe=Bx,cQe=ct,dQe=sQe([].concat),Z6=oQe("Reflect","ownKeys")||function(t){var r=lQe.f(cQe(t)),n=uQe.f;return n?dQe(r,n(t)):r},Cq=It,fQe=Z6,hQe=pn,pQe=or,XC=function(e,t,r){for(var n=fQe(t),a=pQe.f,i=hQe.f,o=0;o<n.length;o++){var s=n[o];!Cq(e,s)&&!(r&&Cq(r,s))&&a(e,s,i(t,s))}},vQe=ge,gQe=wt,mQe=/#|\.prototype\./,jx=function(e,t){var r=xQe[yQe(e)];return r==wQe?!0:r==bQe?!1:gQe(t)?vQe(t):!!t},yQe=jx.normalize=function(e){return String(e).replace(mQe,".").toLowerCase()},xQe=jx.data={},bQe=jx.NATIVE="N",wQe=jx.POLYFILL="P",Vx=jx,OI=Re,_Qe=pn.f,SQe=ra,kQe=yr,CQe=U6,TQe=XC,AQe=Vx,q=function(e,t){var r=e.target,n=e.global,a=e.stat,i,o,s,l,u,c;if(n?o=OI:a?o=OI[r]||CQe(r,{}):o=(OI[r]||{}).prototype,o)for(s in t){if(u=t[s],e.dontCallGetSet?(c=_Qe(o,s),l=c&&c.value):l=o[s],i=AQe(n?s:r+(a?".":"#")+s,e.forced),!i&&l!==void 0){if(typeof u==typeof l)continue;TQe(u,l)}(e.sham||l&&l.sham)&&SQe(u,"sham",!0),kQe(o,s,u,e)}},EQe=St,NQe=EQe("toStringTag"),Pfe={};Pfe[NQe]="z";var X6=String(Pfe)==="[object z]",IQe=X6,PQe=wt,L_=ta,MQe=St,DQe=MQe("toStringTag"),LQe=Object,RQe=L_(function(){return arguments}())=="Arguments",$Qe=function(e,t){try{return e[t]}catch{}},vs=IQe?L_:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=$Qe(t=LQe(e),DQe))=="string"?r:RQe?L_(t):(n=L_(t))=="Object"&&PQe(t.callee)?"Arguments":n},OQe=vs,zQe=String,vt=function(e){if(OQe(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zQe(e)},JC={},FQe=Ife,BQe=K6,Ux=Object.keys||function(t){return FQe(t,BQe)},jQe=Qe,VQe=Sfe,UQe=or,GQe=ct,HQe=en,WQe=Ux;JC.f=jQe&&!VQe?Object.defineProperties:function(t,r){GQe(t);for(var n=HQe(r),a=WQe(r),i=a.length,o=0,s;i>o;)UQe.f(t,s=a[o++],n[s]);return t};var qQe=ir,Mfe=qQe("document","documentElement"),YQe=ct,KQe=JC,Tq=K6,ZQe=zx,XQe=Mfe,JQe=KC,QQe=ZC,Aq=">",Eq="<",sR="prototype",lR="script",Dfe=QQe("IE_PROTO"),zI=function(){},Lfe=function(e){return Eq+lR+Aq+e+Eq+"/"+lR+Aq},Nq=function(e){e.write(Lfe("")),e.close();var t=e.parentWindow.Object;return e=null,t},eet=function(){var e=JQe("iframe"),t="java"+lR+":",r;return e.style.display="none",XQe.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Lfe("document.F=Object")),r.close(),r.F},rw,R_=function(){try{rw=new ActiveXObject("htmlfile")}catch{}R_=typeof document<"u"?document.domain&&rw?Nq(rw):eet():Nq(rw);for(var e=Tq.length;e--;)delete R_[sR][Tq[e]];return R_()};ZQe[Dfe]=!0;var zi=Object.create||function(t,r){var n;return t!==null?(zI[sR]=YQe(t),n=new zI,zI[sR]=null,n[Dfe]=t):n=R_(),r===void 0?n:KQe.f(n,r)},QC={},tet=vc,ret=or,net=$i,Tl=function(e,t,r){var n=tet(t);n in e?ret.f(e,n,net(0,r)):e[n]=r},Iq=ps,aet=Bt,iet=Tl,oet=Array,set=Math.max,Gx=function(e,t,r){for(var n=aet(e),a=Iq(t,n),i=Iq(r===void 0?n:r,n),o=oet(set(i-a,0)),s=0;a<i;a++,s++)iet(o,s,e[a]);return o.length=s,o},uet=ta,cet=en,Rfe=Cl.f,det=Gx,$fe=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fet=function(e){try{return Rfe(e)}catch{return det($fe)}};QC.f=function(t){return $fe&&uet(t)=="Window"?fet(t):Rfe(cet(t))};var Pq=Y6,het=or,vn=function(e,t,r){return r.get&&Pq(r.get,t,{getter:!0}),r.set&&Pq(r.set,t,{setter:!0}),het.f(e,t,r)},J6={},pet=St;J6.f=pet;var vet=Re,Ofe=vet,Mq=Ofe,get=It,met=J6,yet=or.f,Aa=function(e){var t=Mq.Symbol||(Mq.Symbol={});get(t,e)||yet(t,e,{value:met.f(e)})},xet=ht,bet=ir,wet=St,_et=yr,zfe=function(){var e=bet("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wet("toPrimitive");t&&!t[n]&&_et(t,n,function(a){return xet(r,this)},{arity:1})},ket=or.f,Cet=It,Tet=St,Dq=Tet("toStringTag"),Za=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Cet(e,Dq)&&ket(e,Dq,{configurable:!0,value:t})},Aet=ta,Eet=_e,gc=function(e){if(Aet(e)==="Function")return Eet(e)},Lq=gc,Net=Cr,Iet=$x,Pet=Lq(Lq.bind),wo=function(e,t){return Net(e),t===void 0?e:Iet?Pet(e,t):function(){return e.apply(t,arguments)}},Met=ta,mc=Array.isArray||function(t){return Met(t)=="Array"},Det=_e,Let=ge,Ffe=wt,Ret=vs,$et=ir,Oet=W6,Bfe=function(){},zet=[],jfe=$et("Reflect","construct"),Q6=/^\s*(?:class|function)\b/,Fet=Det(Q6.exec),Bet=!Q6.exec(Bfe),a0=function(t){if(!Ffe(t))return!1;
vendor: 1,658 bytes, line 658
658try{return jfe(Bfe,zet,t),!0}catch{return!1}},Vfe=function(t){if(!Ffe(t))return!1;switch(Ret(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bet||!!Fet(Q6,Oet(t))}catch{return!0}};Vfe.sham=!0;var ag=!jfe||Let(function(){var e;return a0(a0.call)||!a0(Object)||!a0(function(){e=!0})||e})?Vfe:a0,Rq=mc,jet=ag,Vet=_t,Uet=St,Get=Uet("species"),$q=Array,Het=function(e){var t;return Rq(e)&&(t=e.constructor,jet(t)&&(t===$q||Rq(t.prototype))?t=void 0:Vet(t)&&(t=t[Get],t===null&&(t=void 0))),t===void 0?$q:t},Wet=Het,Hx=function(e,t){return new(Wet(e))(t===0?0:t)},qet=wo,Yet=_e,Ket=Qv,Zet=Dt,Xet=Bt,Jet=Hx,Oq=Yet([].push),Ul=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,i=e==6,o=e==7,s=e==5||i;return function(l,u,c,d){for(var f=Zet(l),h=Ket(f),p=qet(u,c),v=Xet(h),m=0,g=d||Jet,x=t?g(l,v):r||o?g(l,0):void 0,b,_;v>m;m++)if((s||m in h)&&(b=h[m],_=p(b,m,f),e))if(t)x[m]=_;else if(_)switch(e){case 3:return!0;case 5:return b;case 6:return m;case 2:Oq(x,b)}else switch(e){case 4:return!1;case 7:Oq(x,b)}return i?-1:n||a?a:x}},gn={forEach:Ul(0),map:Ul(1),filter:Ul(2),some:Ul(3),every:Ul(4),find:Ul(5),findIndex:Ul(6),filterReject:Ul(7)},eT=q,ez=Re,tz=ht,Qet=_e,dv=Qe,fv=eg,ett=ge,Kr=It,ttt=Oi,uR=ct,tT=en,rz=vc,rtt=vt,cR=$i,Gy=zi,Ufe=Ux,ntt=Cl,Gfe=QC,att=Bx,Hfe=pn,Wfe=or,itt=JC,qfe=Ox,FI=yr,ott=vn,nz=tg,stt=ZC,Yfe=zx,zq=rg,ltt=St,utt=J6,ctt=Aa,dtt=zfe,ftt=Za,Kfe=Wr,rT=gn.forEach,ha=stt("hidden"),nT="Symbol",Hy="prototype",htt=Kfe.set,Fq=Kfe.getterFor(nT),Ci=Object[Hy],rf=ez.Symbol,F0=rf&&rf[Hy],ptt=ez.TypeError,BI=ez.QObject,Zfe=Hfe.f,xd=Wfe.f,Xfe=Gfe.f,vtt=qfe.f,Jfe=Qet([].push),dl=nz("symbols"),Wx=nz("op-symbol
658s"),gtt=nz("wks"),dR=!BI||!BI[Hy]||!BI[Hy].findChild,fR=dv&&ett(function(){return Gy(xd({},"a",{get:function(){return xd(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=Zfe(Ci,t);n&&delete Ci[t],xd(e,t,r),n&&e!==Ci&&xd(Ci,t,n)}:xd,jI=function(e,t){var r=dl[e]=Gy(F0);return htt(r,{type:nT,tag:e,description:t}),dv||(r.description=t),r},aT=function(t,r,n){t===Ci&&aT(Wx,r,n),uR(t);var a=rz(r);return uR(n),Kr(dl,a)?(n.enumerable?(Kr(t,ha)&&t[ha][a]&&(t[ha][a]=!1),n=Gy(n,{enumerable:cR(0,!1)})):(Kr(t,ha)||xd(t,ha,cR(1,{})),t[ha][a]=!0),fR(t,a,n)):xd(t,a,n)},az=function(t,r){uR(t);var n=tT(r),a=Ufe(n).concat(the(n));return rT(a,function(i){(!dv||tz(hR,n,i))&&aT(t,i,n[i])}),t},mtt=function(t,r){return r===void 0?Gy(t):az(Gy(t),r)},hR=function(t){var r=rz(t),n=tz(vtt,this,r);return this===Ci&&Kr(dl,r)&&!Kr(Wx,r)?!1:n||!Kr(this,r)||!Kr(dl,r)||Kr(this,ha)&&this[ha][r]?n:!0},Qfe=function(t,r){var n=tT(t),a=rz(r);if(!(n===Ci&&Kr(dl,a)&&!Kr(Wx,a))){var i=Zfe(n,a);return i&&Kr(dl,a)&&!(Kr(n,ha)&&n[ha][a])&&(i.enumerable=!0),i}},ehe=function(t){var r=Xfe(tT(t)),n=[];return rT(r,function(a){!Kr(dl,a)&&!Kr(Yfe,a)&&Jfe(n,a)}),n},the=function(e){var t=e===Ci,r=Xfe(t?Wx:tT(e)),n=[];return rT(r,function(a){Kr(dl,a)&&(!t||Kr(Ci,a))&&Jfe(n,dl[a])}),n};fv||(rf=function(){if(ttt(F0,this))throw ptt("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:rtt(arguments[0]),r=zq(t),n=function(a){this===Ci&&tz(n,Wx,a),Kr(this,ha)&&Kr(this[ha],r)&&(this[ha][r]=!1),fR(this,r,cR(1,a))};return dv&&dR&&fR(Ci,r,{configurable:!0,set:n}),jI(r,t)},F0=rf[Hy],FI(F0,"toString",function(){return Fq(this).tag}),FI(rf,"withoutSetter",function(e){return jI(zq(e),e)}),qfe.f=hR,Wfe.f=aT,itt.f=az,Hfe.f=Qfe,ntt.f=Gfe.f=ehe,att.f=the,utt.f=function(e){return jI(ltt(e),e)},dv&&(ott(F0,"description",{configurable:!0,get:function(){return Fq(this).description}}),FI(Ci,"propertyIsEnumerable",hR,{unsafe:!0})));eT({global:!0,constructor:!0,wrap:!0,forced:!fv,sham:!fv},{Symbol:rf});rT(Ufe(gtt),function(e){ctt(e)});eT({target:nT,stat:!0,forced:!fv},{useSetter:function(){dR=!0},useSimple:function(){dR=!1}});eT({target:"Object",stat:!0,forced:!fv,sham:!dv},{create:mtt,defineProperty:aT,defineProperties:az,getOwnPropertyDescriptor:Qfe});eT({target:"Object",stat:!0,forced:!fv},{getOwnPropertyNames:ehe});dtt();ftt(rf,nT);Yfe[ha]=!0;var ytt=eg,rhe=ytt&&!!Symbol.for&&!!Symbol.keyFor,xtt=q,btt=ir,wtt=It,_tt=vt,nhe=tg,Stt=rhe,VI=nhe("string-to-symbol-registry"),ktt=nhe("symbol-to-string-registry");xtt({target:"Symbol",stat:!0,forced:!Stt},{for:function(e){var t=_tt(e);if(wtt(VI,t))return VI[t];var r=btt("Symbol")(t);return VI[t]=r,ktt[r]=t,r}});var Ctt=q,Ttt=It,Att=Uf,Ett=Gf,Ntt=tg,Itt=rhe,Bq=Ntt("symbol-to-string-registry");Ctt({target:"Symbol",stat:!0,forced:!Itt},{keyFor:function(t){if(!Att(t))throw TypeError(Ett(t)+" is not a symbol");if(Ttt(Bq,t))return Bq[t]}});var Ptt=$x,ahe=Function.prototype,jq=ahe.apply,Vq=ahe.call,Fi=typeof Reflect=="object"&&Reflect.apply||(Ptt?Vq.bind(jq):function(){return Vq.apply(jq,arguments)}),Mtt=_e,Hf=Mtt([].slice),Dtt=_e,Uq=mc,Ltt=wt,Gq=ta,Rtt=vt,Hq=Dtt([].push),$tt=function(e){if(Ltt(e))return e;if(Uq(e)){for(var t=e.length,r=[],n=0;n<t;n++){var a=e[n];typeof a=="string"?Hq(r,a):(typeof a=="number"||Gq(a)=="Number"||Gq(a)=="String")&&Hq(r,Rtt(a))}var i=r.length,o=!0;return function(s,l){if(o)return o=!1,l;if(Uq(this))return l;for(var u=0;u<i;u++)if(r[u]===s)return l}}},Ott=q,ihe=ir,ohe=Fi,ztt=ht,qx=_e,she=ge,Wq=wt,qq=Uf,lhe=Hf,Ftt=$tt,Btt=eg,jtt=String,Ou=ihe("JSON","stringify"),nw=qx(/./.exec),Yq=qx("".charAt),Vtt=qx("".charCodeAt),Utt=qx("".replace),Gtt=qx(1 .toString),Htt=/[\uD800-\uDFFF]/g,Kq=/^[\uD800-\uDBFF]$/,Zq=/^[\uDC00-\uDFFF]$/,Xq=!Btt||she(function(){var e=ihe("Symbol")();return Ou([e])!="[null]"||Ou({a:e})!="{}"||Ou(Object(e))!="{}"}),Jq=she(function(){return Ou("\uDF06\uD834")!=='"\\udf06\\ud834"'||Ou("\uDEAD")!=='"\\udead"'}),Wtt=function(e,t){var r=lhe(arguments),n=Ftt(t);if(!(!Wq(n)&&(e===void 0||qq(e))))return r[1]=function(a,i){if(Wq(n)&&(i=ztt(n,this,jtt(a),i)),!qq(i))return i},ohe(Ou,null,r)},qtt=function(e,t,r){var n=Yq(r,t-1),a=Yq(r,t+1);return nw(Kq,e)&&!nw(Zq,a)||nw(Zq,e)&&!nw(Kq,n)?"\\u"+Gtt(Vtt(e,0),16):e};Ou&&Ott({target:"JSON",stat:!0,arity:3,forced:Xq||Jq},{stringify:function(t,r,n){var a=lhe(arguments),i=ohe(Xq?Wtt:Ou,null,a);return Jq&&typeof i=="string"?Utt(i,Htt,qtt):i}});var Ytt=q,Ktt=eg,Ztt=ge,uhe=Bx,Xtt=Dt,Jtt=!Ktt||Ztt(function(){uhe.f(1)});Ytt({target:"Object",stat:!0,forced:Jtt},{getOwnPropertySymbols:function(t){var r=uhe.f;return r?r(Xtt(t)):[]}});var Qtt=q,ert=Qe,trt=Re,aw=_e,rrt=It,nrt=wt,art=Oi,irt=vt,ort=vn,srt=XC,Is=trt.Symbol,
vendor: 4,288 bytes, line 658
658Kc=Is&&Is.prototype;if(ert&&nrt(Is)&&(!("description"in Kc)||Is().description!==void 0)){var Qq={},iw=function(){var t=arguments.length<1||arguments[0]===void 0?void 0:irt(arguments[0]),r=art(Kc,this)?new Is(t):t===void 0?Is():Is(t);return t===""&&(Qq[r]=!0),r};srt(iw,Is),iw.prototype=Kc,Kc.constructor=iw;var lrt=String(Is("test"))=="Symbol(test)",urt=aw(Kc.valueOf),crt=aw(Kc.toString),drt=/^Symbol\((.*)\)[^)]+$/,frt=aw("".replace),hrt=aw("".slice);ort(Kc,"description",{configurable:!0,get:function(){var t=urt(this);if(rrt(Qq,t))return"";var r=crt(t),n=lrt?hrt(r,7,-1):frt(r,drt,"$1");return n===""?void 0:n}}),Qtt({global:!0,constructor:!0,forced:!0},{Symbol:iw})}var prt=Aa;prt("asyncIterator");var vrt=Aa;vrt("hasInstance");var grt=Aa;grt("isConcatSpreadable");var mrt=Aa;mrt("iterator");var yrt=Aa;yrt("match");var xrt=Aa;xrt("matchAll");var brt=Aa;brt("replace");var wrt=Aa;wrt("search");var _rt=Aa;_rt("species");var Srt=Aa;Srt("split");var krt=Aa,Crt=zfe;krt("toPrimitive");Crt();var Trt=ir,Art=Aa,Ert=Za;Art("toStringTag");Ert(Trt("Symbol"),"Symbol");var Nrt=Aa;Nrt("unscopables");var Irt=_e,Prt=Cr,Mrt=function(e,t,r){try{return Irt(Prt(Object.getOwnPropertyDescriptor(e,t)[r]))}catch{}},Drt=wt,Lrt=String,Rrt=TypeError,che=function(e){if(typeof e=="object"||Drt(e))return e;throw Rrt("Can't set "+Lrt(e)+" as a prototype")},$rt=Mrt,Ort=ct,zrt=che,gs=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=$rt(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch{}return function(a,i){return Ort(a),zrt(i),e?r(a,i):a.__proto__=i,a}}():void 0),Frt=or.f,dhe=function(e,t,r){r in e||Frt(e,r,{configurable:!0,get:function(){return t[r]},set:function(n){t[r]=n}})},Brt=wt,jrt=_t,eY=gs,ig=function(e,t,r){var n,a;return eY&&Brt(n=t.constructor)&&n!==r&&jrt(a=n.prototype)&&a!==r.prototype&&eY(e,a),e},Vrt=vt,Yx=function(e,t){return e===void 0?arguments.length<2?"":t:Vrt(e)},Urt=_t,Grt=ra,fhe=function(e,t){Urt(t)&&"cause"in t&&Grt(e,"cause",t.cause)},Hrt=_e,hhe=Error,Wrt=Hrt("".replace),qrt=function(e){return String(hhe(e).stack)}("zxcasd"),phe=/\n\s*at [^:]*:[^\n]*/,Yrt=phe.test(qrt),iz=function(e,t){if(Yrt&&typeof e=="string"&&!hhe.prepareStackTrace)for(;t--;)e=Wrt(e,phe,"");return e},Krt=ge,Zrt=$i,vhe=!Krt(function(){var e=Error("a");return"stack"in e?(Object.defineProperty(e,"stack",Zrt(1,7)),e.stack!==7):!0}),Xrt=ra,Jrt=iz,Qrt=vhe,tY=Error.captureStackTrace,ghe=function(e,t,r,n){Qrt&&(tY?tY(e,t):Xrt(e,"stack",Jrt(r,n)))},rY=ir,ent=It,nY=ra,tnt=Oi,aY=gs,iY=XC,oY=dhe,rnt=ig,nnt=Yx,ant=fhe,int=ghe,ont=Qe,mhe=function(e,t,r,n){var a="stackTraceLimit",i=n?2:1,o=e.split("."),s=o[o.length-1],l=rY.apply(null,o);if(l){var u=l.prototype;if(ent(u,"cause")&&delete u.cause,!r)return l;var c=rY("Error"),d=t(function(f,h){var p=nnt(n?h:f,void 0),v=n?new l(f):new l;return p!==void 0&&nY(v,"message",p),int(v,d,v.stack,2),this&&tnt(u,this)&&rnt(v,this,d),arguments.length>i&&ant(v,arguments[i]),v});d.prototype=u,s!=="Error"?aY?aY(d,c):iY(d,c,{name:!0}):ont&&a in l&&(oY(d,l,a),oY(d,l,"prepareStackTrace")),iY(d,l);try{u.name!==s&&nY(u,"name",s),u.constructor=d}catch{}return d}},yhe=q,snt=Re,ms=Fi,xhe=mhe,pR="WebAssembly",sY=snt[pR],X2=Error("e",{cause:7}).cause!==7,Wf=function(e,t){var r={};r[e]=xhe(e,t,X2),yhe({global:!0,constructor:!0,arity:1,forced:X2},r)},oz=function(e,t){if(sY&&sY[e]){var r={};r[e]=xhe(pR+"."+e,t,X2),yhe({target:pR,stat:!0,constructor:!0,arity:1,forced:X2},r)}};Wf("Error",function(e){return function(r){return ms(e,this,arguments)}});Wf("EvalError",function(e){return function(r){return ms(e,this,arguments)}});Wf("RangeError",function(e){return function(r){return ms(e,this,arguments)}});Wf("ReferenceError",function(e){return function(r){return ms(e,this,arguments)}});Wf("SyntaxError",function(e){return function(r){return ms(e,this,arguments)}});Wf("TypeError",function(e){return function(r){return ms(e,this,arguments)}});Wf("URIError",function(e){return function(r){return ms(e,this,arguments)}});oz("CompileError",function(e){return function(r){return ms(e,this,arguments)}});oz("LinkError",function(e){return function(r){return ms(e,this,arguments)}});oz("RuntimeError",function(e){return function(r){return ms(e,this,arguments)}});var lnt=Qe,unt=ge,cnt=ct,dnt=zi,lY=Yx,$_=Error.prototype.toString,f
658nt=unt(function(){if(lnt){var e=dnt(Object.defineProperty({},"name",{get:function(){return this===e}}));if($_.call(e)!=="true")return!0}return $_.call({message:1,name:2})!=="2: 1"||$_.call({})!=="Error"}),bhe=fnt?function(){var t=cnt(this),r=lY(t.name,"Error"),n=lY(t.message);return r?n?r+": "+n:r:n}:$_,hnt=yr,uY=bhe,cY=Error.prototype;cY.toString!==uY&&hnt(cY,"toString",uY);var pnt=ge,sz=!pnt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vnt=It,gnt=wt,mnt=Dt,ynt=ZC,xnt=sz,dY=ynt("IE_PROTO"),vR=Object,bnt=vR.prototype,Bi=xnt?vR.getPrototypeOf:function(e){var t=mnt(e);if(vnt(t,dY))return t[dY];var r=t.constructor;return gnt(r)&&t instanceof r?r.prototype:t instanceof vR?bnt:null},Kx={},wnt=St,_nt=Kx,Snt=wnt("iterator"),knt=Array.prototype,lz=function(e){return e!==void 0&&(_nt.Array===e||knt[Snt]===e)},Cnt=vs,fY=kl,Tnt=Ta,Ant=Kx,Ent=St,Nnt=Ent("iterator"),Zx=function(e){if(!Tnt(e))return fY(e,Nnt)||fY(e,"@@iterator")||Ant[Cnt(e)]},Int=ht,Pnt=Cr,Mnt=ct,Dnt=Gf,Lnt=Zx,Rnt=TypeError,iT=function(e,t){var r=arguments.length<2?Lnt(e):t;if(Pnt(r))return Mnt(Int(r,e));throw Rnt(Dnt(e)+" is not iterable")},$nt=ht,hY=ct,Ont=kl,whe=function(e,t,r){var n,a;hY(e);try{if(n=Ont(e,"return"),!n){if(t==="throw")throw r;return r}n=$nt(n,e)}catch(i){a=!0,n=i}if(t==="throw")throw r;if(a)throw n;return hY(n),r},znt=wo,Fnt=ht,Bnt=ct,jnt=Gf,Vnt=lz,Unt=Bt,pY=Oi,Gnt=iT,Hnt=Zx,vY=whe,Wnt=TypeError,O_=function(e,t){this.stopped=e,this.result=t},gY=O_.prototype,ys=function(e,t,r){var n=r&&r.that,a=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=znt(t,n),u,c,d,f,h,p,v,m=function(x){return u&&vY(u,"normal",x),new O_(!0,x)},g=function(x){return a?(Bnt(x),s?l(x[0],x[1],m):l(x[0],x[1])):s?l(x,m):l(x)};if(i)u=e.iterator;else if(o)u=e;else{if(c=Hnt(e),!c)throw Wnt(jnt(e)+" is not iterable");if(Vnt(c)){for(d=0,f=Unt(e);f>d;d++)if(h=g(e[d]),h&&pY(gY,h))return h;return new O_(!1)}u=Gnt(e,c)}for(p=i?e.next:u.next;!(v=Fnt(p,u)).done;){try{h=g(v.value)}catch(x){vY(u,"throw",x)}if(typeof h=="object"&&h&&pY(gY,h))return h}return new O_(!1)},qnt=q,Ynt=Oi,Knt=Bi,J2=gs,Znt=XC,_he=zi,UI=ra,GI=$i,Xnt=fhe,Jnt=ghe,Qnt=ys,eat=Yx,tat=St,rat=tat("toStringTag"),Q2=Error,nat=[].push,hv=function(t,r){var n=Ynt(HI,this),a;J2?a=J2(Q2(),n?Knt(this):HI):(a=n?this:_he(HI),UI(a,rat,"Error")),r!==void 0&&UI(a,"message",eat(r)),Jnt(a,hv,a.stack,1),arguments.length>2&&Xnt(a,arguments[2]);var i=[];return Qnt(t,nat,{that:i}),UI(a,"errors",i),a};J2?J2(hv,Q2):Znt(hv,Q2,{name:!0});var HI=hv.prototype=_he(Q2.prototype,{constructor:GI(1,hv),message:GI(1,""),name:GI(1,"AggregateError")});qnt({global:!0,constructor:!0,arity:2},{AggregateError:hv});var aat=q,iat=ir,oat=Fi,mY=ge,sat=mhe,uz="AggregateError",yY=iat(uz),xY=!mY(function(){return yY([1]).errors[0]!==1})&&mY(function(){return yY([1],uz,{cause:7}).cause!==7});aat({global:!0,constructor:!0,arity:2,forced:xY},{AggregateError:sat(uz,function(e){return function(r,n){return oat(e,this,arguments)}},xY,!0)});var lat=St,uat=zi,cat=or.f,gR=lat("unscopables"),mR=Array.prototype;mR[gR]==null&&cat(mR,gR,{configurable:!0,value:uat(null)});var Ea=function(e){mR[gR][e]=!0},dat=q,fat=Dt,hat=Bt,pat=Tr,vat=Ea;dat({target:"Array",proto:!0},{at:function(t){var r=fat(this),n=hat(r),a=pat(t),i=a>=0?a:n+a;return i<0||i>=n?void 0:r[i]}});vat("at");var gat=TypeError,mat=9007199254740991,og=function(e){if(e>mat)throw gat("Maximum allowed index exceeded");return e},yat=ge,xat=St,bat=Sl,wat=xat("species"),Xx=function(e){return bat>=51||!yat(function(){var t=[],r=t.constructor={};return r[wat]=function(){return{foo:1}},t[e](Boolean).foo!==1})},_at=q,Sat=ge,kat=mc,Cat=_t,Tat=Dt,Aat=Bt,bY=og,wY=Tl,Eat=Hx,Nat=Xx,Iat=St,Pat=Sl,She=Iat("isConcatSpreadable"),Mat=Pat>=51||!Sat(function(){var e=[];return e[She]=!1,e.concat()[0]!==e}),Dat=function(e){if(!Cat(e))return!1;var t=e[She];return t!==void 0?!!t:kat(e)},Lat=!Mat||!Nat("concat");_at({target:"Array",proto:!0,arity:1,forced:Lat},{concat:function(t){var r=Tat(this),n=Eat(r,0),a=0,i,o,s,l,u;for(i=-1,s=arguments.length;i<s;i++)if(u=i===-1?r:arguments[i],Dat(u))for(l=Aat(u),bY(a+l),o=0;o<l;o++,a++)o in u&&wY(n,a,u[o]);else bY(a+1),wY(n,a++,u);return n.length=a,n}});var _Y=Gf,Rat=TypeError,oT=function(e,t){if(!delete e[t])throw Rat("Cannot delete property "+_Y(t)+" of "+_Y(e))},$at=Dt,WI=ps,Oat=Bt,zat=oT,Fat=Math.min,khe=[].copyWithin||function(t,r){var n=$at(this),a=Oat(n),i=WI(t,a),o=WI(r,a),s=arguments.length>2?arguments[2]:void 0,l=Fat((s===void 0?a:WI(s,a))-o,a-i),u=1;for(o<i&&i<o+l&&(u=-1,o+=l-1,i+=l-1);l-- >0;)o in n?n[i]=n[o]:zat(n,i),i+=u,o+=u;return n},Bat=q,jat=khe,Vat=Ea;Bat({target:"Array",proto:!0},{copyWithin:jat});Vat("copyWithin");var Uat=ge,Al=function(e,t){var r=[][e];return!!r&&Uat(function(){r.call(null,t||function(){return 1},1)})},Gat=q,Hat=gn.every,Wat=Al,qat=Wat("every");Gat({target:"Array",proto:!0,forced:!qat},{every:function(t){return Hat(this,t,arguments.length>1?arguments[1]:void 0)}});var Yat=Dt,SY=ps,Kat=Bt,cz=function(t){for(var r=Yat(this),n=Kat(r),a=arguments.length,i=SY(a>1?arguments[1]:void 0,n),o=a>2?arguments[2]:void 0,s=o===void 0?n:SY(o,n);s>i;)r[i++]=t;return r},Zat=q,Xat=cz,Jat=Ea;Zat({target:"Array",proto:!0},{fill:Xat});Jat("fill");var Qat=q,eit=gn.filter,tit=Xx,rit=tit("filter");Qat({target:"Array",proto:!0,forced:!rit},{filter:function(t){return eit(this,t,arguments.length>1?arguments[1]:void 0)}});var nit=q,ait=gn.find,iit=Ea,yR="find",Che=!0;yR in[]&&Array(1)[yR](function(){Che=!1});nit({target:"Array",proto:!0,forced:Che},{find:function(t){return ait(this,t,arguments.length>1?arguments[1]:void 0)}});iit(yR);var oit=q,sit=gn.findIndex,lit=Ea,xR="findIndex",The=!0;xR in[]&&Array(1)[xR](function(){The=!1});oit({target:"Array",proto:!0,forced:The},{findIndex:function(t){return sit(this,t,arguments.length>1?arguments[1]:void 0)}});lit(xR);var uit=wo,cit=Qv,dit=Dt,fit=Bt,kY=function(e){var t=e==1;return function(r,n,a){for(var i=dit(r),o=cit(i),s=uit(n,a),l=fit(o),u,c;l-- >0;)if(u=o[l],c=s(u,l,i),c)switch(e){case 0:return u;case 1:return l}return t?-1:void 0}},sT={findLast:kY(0),findLastIndex:kY(1)},hit=q,pit=sT.findLast,vit=Ea;hit({target:"Array",proto:!0},{findLast:function(t){return pit(this,t,arguments.length>1?arguments[1]:void 0)}});vit("findLast");var git=q,mit=sT.findLastIndex,yit=Ea;git({target:"Array",proto:!0},{findLastIndex:function(t){return mit(this,t,arguments.length>1?arguments[1]:void 0)}});yit("findLastIndex");var xit=mc,bit=Bt,wit=og,_it=wo,Ahe=function(e,t,r,n,a,i,o,s){for(var l=a,u=0,c=o?_it(o,s):!1,d,f;u<n;)u in r&&(d=c?c(r[u],u,t):r[u],i>0&&xit(d)?(f=bit(d),l=Ahe(e,t,d,f,l,i-1)-1):(wit(l+1),e[l]=d),l++),u++;return l},Ehe=Ahe,Sit=q,kit=Ehe,Cit=Dt,Tit=Bt,Ait=Tr,Eit=Hx;Sit({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,r=Cit(this),n=Tit(r),a=Eit(r,0);return a.length=kit(a,r,r,n,0,t===void 0?1:Ait(t)),a}});var Nit=q,Iit=Ehe,Pit=Cr,Mit=Dt,Dit=Bt,Lit=Hx;Nit({target:"Array",proto:!0},{flatMap:function(t){var r=Mit(this),n=Dit(r),a;return Pit(t),a=Lit(r,0),a.length=Iit(a,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),a}});
658var Rit=gn.forEach,$it=Al,Oit=$it("forEach"),Nhe=Oit?[].forEach:function(t){return Rit(this,t,arguments.length>1?arguments[1]:void 0)},zit=q,CY=Nhe;zit({target:"Array",proto:!0,forced:[].forEach!=CY},{forEach:CY});var Fit=ct,Bit=whe,jit=function(e,t,r,n){try{return n?t(Fit(r)[0],r[1]):t(r)}catch(a){Bit(e,"throw",a)}},Vit=wo,Uit=ht,Git=Dt,Hit=jit,Wit=lz,qit=ag,Yit=Bt,TY=Tl,Kit=iT,Zit=Zx,AY=Array,Ihe=function(t){var r=Git(t),n=qit(this),a=arguments.length,i=a>1?arguments[1]:void 0,o=i!==void 0;o&&(i=Vit(i,a>2?arguments[2]:void 0));var s=Zit(r),l=0,u,c,d,f,h,p;if(s&&!(this===AY&&Wit(s)))for(f=Kit(r,s),h=f.next,c=n?new this:[];!(d=Uit(h,f)).done;l++)p=o?Hit(f,i,[d.value,l],!0):d.value,TY(c,l,p);else for(u=Yit(r),c=n?new this(u):AY(u);u>l;l++)p=o?i(r[l],l):r[l],TY(c,l,p);return c.length=l,c},Xit=St,Phe=Xit("iterator"),Mhe=!1;try{var Jit=0,EY={next:function(){return{done:!!Jit++}},return:function(){Mhe=!0}};EY[Phe]=function(){return this},Array.from(EY,function(){throw 2})}catch{}var lT=function(e,t){if(!t&&!Mhe)return!1;var r=!1;try{var n={};n[Phe]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Qit=q,eot=Ihe,tot=lT,rot=!tot(function(e){Array.from(e)});Qit({target:"Array",stat:!0,forced:rot},{from:eot});var not=q,aot=Fx.includes,iot=ge,oot=Ea,sot=iot(function(){return!Array(1).includes()});not({target:"Array",proto:!0,forced:sot},{includes:function(t){return aot(this,t,arguments.length>1?arguments[1]:void 0)}});oot("includes");var lot=q,uot=gc,cot=Fx.indexOf,dot=Al,bR=uot([].indexOf),Dhe=!!bR&&1/bR([1],1,-0)<0,fot=Dhe||!dot("indexOf");lot({target:"Array",proto:!0,forced:fot},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Dhe?bR(this,t,r)||0:cot(this,t,r)}});var hot=q,pot=mc;hot({target:"Array",stat:!0},{isArray:pot});var vot=ge,got=wt,mot=_t,NY=Bi,yot=yr,xot=St,wR=xot("iterator"),Lhe=!1,Tf,qI,YI;[].keys&&(YI=[].keys(),"next"in YI?(qI=NY(NY(YI)),qI!==Object.prototype&&(Tf=qI)):Lhe=!0);var bot=!mot(Tf)||vot(function(){var e={};return Tf[wR].call(e)!==e});bot&&(Tf={});got(Tf[wR])||yot(Tf,wR,function(){return this});var Rhe={IteratorPrototype:Tf,BUGGY_SAFARI_ITERATORS:Lhe},wot=Rhe.IteratorPrototype,_ot=zi,Sot=$i,kot=Za,Cot=Kx,Tot=function(){return this},dz=function(e,t,r,n){var a=t+" Iterator";return e.prototype=_ot(wot,{next:Sot(+!n,r)}),kot(e,a,!1),Cot[a]=Tot,e},Aot=q,Eot=ht,$he=ng,Not=wt,Iot=dz,IY=Bi,PY=gs,Pot=Za,Mot=ra,KI=yr,Dot=St,Lot=Kx,Ohe=Rhe,Rot=$he.PROPER,$ot=$he.CONFIGURABLE,MY=Ohe.IteratorPrototype,ow=Ohe.BUGGY_SAFARI_ITERATORS,i0=Dot("iterator"),DY="keys",o0="values",LY="entries",Oot=function(){return this},fz=function(e,t,r,n,a,i,o){Iot(r,t,n);var s=function(g){if(g===a&&f)return f;if(!ow&&g in c)return c[g];switch(g){case DY:return function(){return new r(this,g)};case o0:return function(){return new r(this,g)};case LY:return function(){return new r(this,g)}}return function(){return new r(this)}},l=t+" Iterator",u=!1,c=e.prototype,d=c[i0]||c["@@iterator"]||a&&c[a],f=!ow&&d||s(a),h=t=="Array"&&c.entries||d,p,v,m;if(h&&(p=IY(h.call(new e)),p!==Object.prototype&&p.next&&(IY(p)!==MY&&(PY?PY(p,MY):Not(p[i0])||KI(p,i0,Oot)),Pot(p,l,!0))),Rot&&a==o0&&d&&d.name!==o0&&($ot?Mot(c,"name",o0):(u=!0,f=function(){return Eot(d,this)})),a)if(v={values:s(o0),keys:i?f:s(DY),entries:s(LY)},o)for(m in v)(ow||u||!(m in c))&&KI(c,m,v[m]);else Aot({target:t,proto:!0,forced:ow||u},v);return c[i0]!==f&&KI(c,i0,f,{name:a}),Lot[t]=f,v},uT=function(e,t){return{value:e,done:t}},zot=en,hz=Ea,RY=Kx,zhe=Wr,Fot=or.f,Bot=fz,sw=uT,jot=Qe,Fhe="Array Iterator",Vot=zhe.set,Uot=zhe.getterFor(Fhe),Bhe=Bot(Array,"Array",function(e,t){Vot(this,{type:Fhe,target:zot(e),index:0,kind:t})},function(){var e=Uot(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,sw(void 0,!0)):r=="keys"?sw(n,!1):r=="values"?sw(t[n],!1):sw([n,t[n]],!1)},"values"),$Y=RY.Arguments=RY.Array;hz("keys");hz("values");hz("entries");if(jot&&$Y.name!=="values")try{Fot($Y,"name",{value:"values"})}catch{}var Got=q,Hot=_e,Wot=Qv,qot=en,Yot=Al,Kot=Hot([].join),Zot=Wot!=Object,Xot=Zot||!Yot("join",",");Got({target:"Array",proto:!0,forced:Xot},{join:function(t){return Kot(qot(this),t===void 0?",":t)}});var Jot=Fi,Qot=en,est=Tr,tst=Bt,rst=Al,nst=Math.min,_R=[].lastIndexOf,jhe=!!_R&&1/[1].lastIndexOf(1,-0)<0,ast=rst("lastIndexOf"),ist=jhe||!ast,Vhe=ist?function(t){if(jhe)return Jot(_R,this,arguments)||0;var r=Qot(this),n=tst(r),a=n-1;for(arguments.length>1&&(a=nst(a,est(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in r&&r[a]===t)return a||0;return-1}:_R,ost=q,OY=Vhe;ost({target:"Array",proto:!0,forced:OY!==[].lastIndexOf},{lastIndexOf:OY});var sst=q,lst=gn.map,ust=Xx,cst=ust("map");sst({target:"Array",proto:!0,forced:!cst},{map:function(t){return lst(this,t,arguments.length>1?arguments[1]:void 0)}});var dst=q,fst=ge,hst=ag,pst=Tl,Uhe=Array,vst=fst(function(){function e(){}return!(Uhe.of.call(e)instanceof e)});dst({target:"Array",stat:!0,forced:vst}
vendor: 3,564 bytes, line 658
658,{of:function(){for(var t=0,r=arguments.length,n=new(hst(this)?this:Uhe)(r);r>t;)pst(n,t,arguments[t++]);return n.length=r,n}});var gst=Qe,mst=mc,yst=TypeError,xst=Object.getOwnPropertyDescriptor,bst=gst&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),pz=bst?function(e,t){if(mst(e)&&!xst(e,"length").writable)throw yst("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},wst=q,_st=Dt,Sst=Bt,kst=pz,Cst=og,Tst=ge,Ast=Tst(function(){return[].push.call({length:4294967296},1)!==4294967297}),Est=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},Nst=Ast||!Est();wst({target:"Array",proto:!0,arity:1,forced:Nst},{push:function(t){var r=_st(this),n=Sst(r),a=arguments.length;Cst(n+a);for(var i=0;i<a;i++)r[n]=arguments[i],n++;return kst(r,n),n}});var Ist=Cr,Pst=Dt,Mst=Qv,Dst=Bt,Lst=TypeError,zY=function(e){return function(t,r,n,a){Ist(r);var i=Pst(t),o=Mst(i),s=Dst(i),l=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(l in o){a=o[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw Lst("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in o&&(a=r(a,o[l],l,i));return a}},cT={left:zY(!1),right:zY(!0)},Rst=ta,El=typeof process<"u"&&Rst(process)=="process",$st=q,Ost=cT.left,zst=Al,FY=Sl,Fst=El,Bst=!Fst&&FY>79&&FY<83,jst=Bst||!zst("reduce");$st({target:"Array",proto:!0,forced:jst},{reduce:function(t){var r=arguments.length;return Ost(this,t,r,r>1?arguments[1]:void 0)}});var Vst=q,Ust=cT.right,Gst=Al,BY=Sl,Hst=El,Wst=!Hst&&BY>79&&BY<83,qst=Wst||!Gst("reduceRight");Vst({target:"Array",proto:!0,forced:qst},{reduceRight:function(t){return Ust(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Yst=q,Kst=_e,Zst=mc,Xst=Kst([].reverse),jY=[1,2];Yst({target:"Array",proto:!0,forced:String(jY)===String(jY.reverse())},{reverse:function(){return Zst(this)&&(this.length=this.length),Xst(this)}});var Jst=q,VY=mc,Qst=ag,elt=_t,UY=ps,tlt=Bt,rlt=en,nlt=Tl,alt=St,ilt=Xx,olt=Hf,slt=ilt("slice"),llt=alt("species"),ZI=Array,ult=Math.max;Jst({target:"Array",proto:!0,forced:!slt},{slice:function(t,r){var n=rlt(this),a=tlt(n),i=UY(t,a),o=UY(r===void 0?a:r,a),s,l,u;if(VY(n)&&(s=n.constructor,Qst(s)&&(s===ZI||VY(s.prototype))?s=void 0:elt(s)&&(s=s[llt],s===null&&(s=void 0)),s===ZI||s===void 0))return olt(n,i,o);for(l=new(s===void 0?ZI:s)(ult(o-i,0)),u=0;i<o;i++,u++)i in n&&nlt(l,u,n[i]);return l.length=u,l}});var clt=q,dlt=gn.some,flt=Al,hlt=flt("some");clt({target:"Array",proto:!0,forced:!hlt},{some:function(t){return dlt(this,t,arguments.length>1?arguments[1]:void 0)}});var GY=Gx,plt=Math.floor,SR=function(e,t){var r=e.length,n=plt(r/2);return r<8?vlt(e,t):glt(e,SR(GY(e,0,n),t),SR(GY(e,n),t),t)},vlt=function(e,t){for(var r=e.length,n=1,a,i;n<r;){for(i=n,a=e[n];i&&t(e[i-1],a)>0;)e[i]=e[--i];i!==n++&&(e[i]=a)}return e},glt=function(e,t,r,n){for(var a=t.length,i=r.length,o=0,s=0;o<a||s<i;)e[o+s]=o<a&&s<i?n(t[o],r[s])<=0?t[o++]:r[s++]:o<a?t[o++]:r[s++];return e},vz=SR,mlt=_l,HY=mlt.match(/firefox\/(\d+)/i),Ghe=!!HY&&+HY[1],ylt=_l,Hhe=/MSIE|Trident/.test(ylt),xlt=_l,WY=xlt.match(/AppleWebKit\/(\d+)\./),gz=!!WY&&+WY[1],blt=q,Whe=_e,wlt=Cr,_lt=Dt,qY=Bt,Slt=oT,YY=vt,mz=ge,klt=vz,Clt=Al,KY=Ghe,Tlt=Hhe,ZY=Sl,XY=gz,yu=[],JY=Whe(yu.sort),Alt=Whe(yu.push),Elt=mz(function(){yu.sort(void 0)}),Nlt=mz(function(){yu.sort(null)}),Ilt=Clt("sort"),qhe=!mz(function(){if(ZY)return ZY<70;if(!(KY&&KY>3)){if(Tlt)return!0;if(XY)return XY<603;var e="",t,r,n,a;for(t=65;t<76;
658t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(a=0;a<47;a++)yu.push({k:r+a,v:n})}for(yu.sort(function(i,o){return o.v-i.v}),a=0;a<yu.length;a++)r=yu[a].k.charAt(0),e.charAt(e.length-1)!==r&&(e+=r);return e!=="DGBEFHACIJK"}}),Plt=Elt||!Nlt||!Ilt||!qhe,Mlt=function(e){return function(t,r){return r===void 0?-1:t===void 0?1:e!==void 0?+e(t,r)||0:YY(t)>YY(r)?1:-1}};blt({target:"Array",proto:!0,forced:Plt},{sort:function(t){t!==void 0&&wlt(t);var r=_lt(this);if(qhe)return t===void 0?JY(r):JY(r,t);var n=[],a=qY(r),i,o;for(o=0;o<a;o++)o in r&&Alt(n,r[o]);for(klt(n,Mlt(t)),i=qY(n),o=0;o<i;)r[o]=n[o++];for(;o<a;)Slt(r,o++);return r}});var Dlt=ir,Llt=vn,Rlt=St,$lt=Qe,QY=Rlt("species"),sg=function(e){var t=Dlt(e);$lt&&t&&!t[QY]&&Llt(t,QY,{configurable:!0,get:function(){return this}})},Olt=sg;Olt("Array");var zlt=q,Flt=Dt,Blt=ps,jlt=Tr,Vlt=Bt,Ult=pz,Glt=og,Hlt=Hx,Wlt=Tl,XI=oT,qlt=Xx,Ylt=qlt("splice"),Klt=Math.max,Zlt=Math.min;zlt({target:"Array",proto:!0,forced:!Ylt},{splice:function(t,r){var n=Flt(this),a=Vlt(n),i=Blt(t,a),o=arguments.length,s,l,u,c,d,f;for(o===0?s=l=0:o===1?(s=0,l=a-i):(s=o-2,l=Zlt(Klt(jlt(r),0),a-i)),Glt(a+s-l),u=Hlt(n,l),c=0;c<l;c++)d=i+c,d in n&&Wlt(u,c,n[d]);if(u.length=l,s<l){for(c=i;c<a-l;c++)d=c+l,f=c+s,d in n?n[f]=n[d]:XI(n,f);for(c=a;c>a-l+s;c--)XI(n,c-1)}else if(s>l)for(c=a-l;c>i;c--)d=c+l-1,f=c+s-1,d in n?n[f]=n[d]:XI(n,f);for(c=0;c<s;c++)n[c+i]=arguments[c+2];return Ult(n,a-l+s),u}});var Xlt=Bt,Yhe=function(e,t){for(var r=Xlt(e),n=new t(r),a=0;a<r;a++)n[a]=e[r-a-1];return n},Jlt=q,Qlt=Yhe,eut=en,tut=Ea,rut=Array;Jlt({target:"Array",proto:!0},{toReversed:function(){return Qlt(eut(this),rut)}});tut("toReversed");var nut=Bt,yz=function(e,t){for(var r=0,n=nut(t),a=new e(n);n>r;)a[r]=t[r++];return a},aut=Re,iut=function(e){return aut[e].prototype},out=q,sut=_e,lut=Cr,uut=en,cut=yz,dut=iut,fut=Ea,hut=Array,put=sut(dut("Array").sort);out({target:"Array",proto:!0},{toSorted:function(t){t!==void 0&&lut(t);var r=uut(this),n=cut(hut,r);return put(n,t)}});fut("toSorted");var vut=q,gut=Ea,mut=og,yut=Bt,xut=ps,but=en,wut=Tr,_ut=Array,Sut=Math.max,kut=Math.min;vut({target:"Array",proto:!0},{toSpliced:function(t,r){var n=but(this),a=yut(n),i=xut(t,a),o=arguments.length,s=0,l,u,c,d;for(o===0?l=u=0:o===1?(l=0,u=a-i):(l=o-2,u=kut(Sut(wut(r),0),a-i)),c=mut(a+l-u),d=_ut(c);s<i;s++)d[s]=n[s];for(;s<i+l;s++)d[s]=arguments[s-i+2];for(;s<c;s++)d[s]=n[s+u-l];return d}});gut("toSpliced");var Cut=Ea;Cut("flat");var Tut=Ea;Tut("flatMap");var Aut=q,Eut=Dt,Nut=Bt,Iut=pz,Put=oT,Mut=og,Dut=[].unshift(0)!==1,Lut=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},Rut=Dut||!Lut();Aut({target:"Array",proto:!0,arity:1,forced:Rut},{unshift:function(t){var r=Eut(this),n=Nut(r),a=arguments.length;if(a){Mut(n+a);for(var i=n;i--;){var o=i+a;i in r?r[o]=r[i]:Put(r,o)}for(var s=0;s<a;s++)r[s]=arguments[s]}return Iut(r,n+a)}});var $ut=Bt,Out=Tr,zut=RangeError,Khe=function(e,t,r,n){var a=$ut(e),i=Out(r),o=i<0?a+i:i;if(o>=a||o<0)throw zut("Incorrect index");for(var s=new t(a),l=0;l<a;l++)s[l]=l===o?n:e[l];return s},Fut=q,But=Khe,jut=en,Vut=Array;Fut({target:"Array",proto:!0},{with:function(e,t){return But(jut(this),Vut,e,t)}});var xz=typeof ArrayBuffer<"u"&&typeof DataView<"u",Uut=yr,Jx=function(e,t,r){for(var n in t)Uut(e,n,t[n],r);return e},Gut=Oi,Hut=TypeError,xs=function(e,t){if(Gut(t,e))return e;throw Hut("Incorrect invocation")},Wut=Tr,qut=Ka,Yut=RangeError,Zhe=function(e){if(e===void 0)return 0;var t=Wut(e),r=qut(t);if(t!==r)throw Yut("Wrong length or index");return r},Kut=Array,Zut=Math.abs,Ps=Math.pow,Xut=Math.floor,Jut=Math.log,Qut=Math.LN2,ect=function(e,t,r){var n=Kut(r),a=r*8-t-1,i=(1<<a)-1,o=i>>1,s=t===23?Ps(2,-24)-Ps(2,-77):0,l=e<0||e===0&&1/e<0?1:0,u=0,c,d,f;for(e=Zut(e),e!=e||e===1/0?(d=e!=e?1:0,c=i):(c=Xut(Jut(e)/Qut),f=Ps(2,-c),e*f<1&&(c--,f*=2),c+o>=1?e+=s/f:e+=s*Ps(2,1-o),e*f>=2&&(c++,f/=2),c+o>=i?(d=0,c=i):c+o>=1?(d=(e*f-1)*Ps(2,t),c=c+o):(d=e*Ps(2,o-1)*Ps(2,t),c=0));t>=8;)n[u++]=d&255,d/=256,t-=8;for(c=c<<t|d,a+=t;a>0;
vendor: 4,766 bytes, line 658
658)n[u++]=c&255,c/=256,a-=8;return n[--u]|=l*128,n},tct=function(e,t){var r=e.length,n=r*8-t-1,a=(1<<n)-1,i=a>>1,o=n-7,s=r-1,l=e[s--],u=l&127,c;for(l>>=7;o>0;)u=u*256+e[s--],o-=8;for(c=u&(1<<-o)-1,u>>=-o,o+=t;o>0;)c=c*256+e[s--],o-=8;if(u===0)u=1-i;else{if(u===a)return c?NaN:l?-1/0:1/0;c=c+Ps(2,t),u=u-i}return(l?-1:1)*c*Ps(2,u-t)},rct={pack:ect,unpack:tct},dT=Re,bz=_e,JI=Qe,nct=xz,Xhe=ng,eK=ra,act=vn,tK=Jx,QI=ge,lw=xs,ict=Tr,oct=Ka,ek=Zhe,Jhe=rct,sct=Bi,rK=gs,lct=Cl.f,uct=cz,cct=Gx,Qhe=Za,wz=Wr,dct=Xhe.PROPER,nK=Xhe.CONFIGURABLE,Mp="ArrayBuffer",fT="DataView",Dp="prototype",fct="Wrong length",epe="Wrong index",aK=wz.getterFor(Mp),Em=wz.getterFor(fT),iK=wz.set,li=dT[Mp],Da=li,_h=Da&&Da[Dp],Fo=dT[fT],Zc=Fo&&Fo[Dp],oK=Object.prototype,hct=dT.Array,tk=dT.RangeError,pct=bz(uct),vct=bz([].reverse),tpe=Jhe.pack,sK=Jhe.unpack,lK=function(e){return[e&255]},uK=function(e){return[e&255,e>>8&255]},cK=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},dK=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},gct=function(e){return tpe(e,23,4)},mct=function(e){return tpe(e,52,8)},uw=function(e,t,r){act(e[Dp],t,{configurable:!0,get:function(){return r(this)[t]}})},Gl=function(e,t,r,n){var a=ek(r),i=Em(e);if(a+t>i.byteLength)throw tk(epe);var o=i.bytes,s=a+i.byteOffset,l=cct(o,s,s+t);return n?l:vct(l)},Hl=function(e,t,r,n,a,i){var o=ek(r),s=Em(e);if(o+t>s.byteLength)throw tk(epe);for(var l=s.bytes,u=o+s.byteOffset,c=n(+a),d=0;d<t;d++)l[u+d]=c[i?d:t-d-1]};if(!nct)Da=function(t){lw(this,_h);var r=ek(t);iK(this,{type:Mp,bytes:pct(hct(r),0),byteLength:r}),JI||(this.byteLength=r,this.detached=!1)},_h=Da[Dp],Fo=function(t,r,n){lw(this,Zc),lw(t,_h);var a=aK(t),i=a.byteLength,o=ict(r);if(o<0||o>i)throw tk("Wrong offset");if(n=n===void 0?i-o:oct(n),o+n>i)throw tk(fct);iK(this,{type:fT,buffer:t,byteLength:n,byteOffset:o,bytes:a.bytes}),JI||(this.buffer=t,this.byteLength=n,this.byteOffset=o)},Zc=Fo[Dp],JI&&(uw(Da,"byteLength",aK),uw(Fo,"buffer",Em),uw(Fo,"byteLength",Em),uw(Fo,"byteOffset",Em)),tK(Zc,{getInt8:function(t){return Gl(this,1,t)[0]<<24>>24},getUint8:function(t){return Gl(this,1,t)[0]},getInt16:function(t){var r=Gl(this,2,t,arguments.length>1?arguments[1]:void 0);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=Gl(this,2,t,arguments.length>1?arguments[1]:void 0);return r[1]<<8|r[0]},getInt32:function(t){return dK(Gl(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return dK(Gl(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return sK(Gl(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return sK(Gl(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,r){Hl(this,1,t,lK,r)},setUint8:function(t,r){Hl(this,1,t,lK,r)},setInt16:function(t,r){Hl(this,2,t,uK,r,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,r){Hl(this,2,t,uK,r,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,r){Hl(this,4,t,cK,r,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,r){Hl(this,4,t,cK,r,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,r){Hl(this,4,t,gct,r,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,r){Hl(this,8,t,mct,r,arguments.length>2?arguments[2]:void 0)}});else{var fK=dct&&li.name!==Mp;if(!QI(function(){li(1)})||!QI(function(){new li(-1)})||QI(function(){return new li,new li(1.5),new li(NaN),li.length!=1||fK&&!nK})){Da=function(t){return lw(this,_h),new li(ek(t))},Da[Dp]=_h;for(var hK=lct(li),pK=0,e5;hK.length>pK;)(e5=hK[pK++])in Da||eK(Da,e5,li[e5]);_h.constructor=Da}else fK&&nK&&eK(li,"name",Mp);rK&&sct(Zc)!==oK&&rK(Zc,oK);var cw=new Fo(new Da(2)),vK=bz(Zc.setInt8);cw.setInt8(0,2147483648),cw.setInt8(1,2147483649),(cw.getInt8(0)||!cw.getInt8(1))&&tK(Zc,{setInt8:function(t,r){vK(this,t,r<<24>>24)},setUint8:function(t,r){vK(this,t,r<<24>>24)}},{unsafe:!0})}Qhe(Da,Mp);Qhe(Fo,fT);var hT={ArrayBuffer:Da,DataView:Fo},yct=q,xct=Re,bct=hT,wct=sg,_z="ArrayBuffer",gK=bct[_z],_ct=xct[_z];yct({global:!0,constructor:!0,forced:_ct!==gK},{ArrayBuffer:gK});wct(_z);var Sct=xz,Sz=Qe,Jn=Re,rpe=wt,pT=_t,rc=It,kz=vs,kct=Gf,Cct=ra,kR=yr,Tct=vn,Act=Oi,vT=Bi,lg=gs,Ect=St,Nct=rg,npe=Wr,ape=npe.enforce,Ict=npe.get,rk=Jn.Int8Array,CR=rk&&rk.prototype,mK=Jn.Uint8ClampedArray,yK=mK&&mK.prototype,Yo=rk&&vT(rk),io=CR&&vT(CR),Pct=Object.prototype,Cz=Jn.TypeError,xK=Ect("toStringTag"),TR=Nct("TYPED_ARRAY_TAG"),nk="TypedArrayConstructor",fl=Sct&&!!lg&&kz(Jn.opera)!=="Opera",ipe=!1,ga,xu,Lp,hl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Tz={BigInt64Array:8,BigUint64Array:8},Mct=function(t){if(!pT(t))return!1;var r=kz(t);return r==="DataView"||rc(hl,r)||rc(Tz,r)},ope=function(e){var t=vT(e);
658if(pT(t)){var r=Ict(t);return r&&rc(r,nk)?r[nk]:ope(t)}},spe=function(e){if(!pT(e))return!1;var t=kz(e);return rc(hl,t)||rc(Tz,t)},Dct=function(e){if(spe(e))return e;throw Cz("Target is not a typed array")},Lct=function(e){if(rpe(e)&&(!lg||Act(Yo,e)))return e;throw Cz(kct(e)+" is not a typed array constructor")},Rct=function(e,t,r,n){if(Sz){if(r)for(var a in hl){var i=Jn[a];if(i&&rc(i.prototype,e))try{delete i.prototype[e]}catch{try{i.prototype[e]=t}catch{}}}(!io[e]||r)&&kR(io,e,r?t:fl&&CR[e]||t,n)}},$ct=function(e,t,r){var n,a;if(Sz){if(lg){if(r){for(n in hl)if(a=Jn[n],a&&rc(a,e))try{delete a[e]}catch{}}if(!Yo[e]||r)try{return kR(Yo,e,r?t:fl&&Yo[e]||t)}catch{}else return}for(n in hl)a=Jn[n],a&&(!a[e]||r)&&kR(a,e,t)}};for(ga in hl)xu=Jn[ga],Lp=xu&&xu.prototype,Lp?ape(Lp)[nk]=xu:fl=!1;for(ga in Tz)xu=Jn[ga],Lp=xu&&xu.prototype,Lp&&(ape(Lp)[nk]=xu);if((!fl||!rpe(Yo)||Yo===Function.prototype)&&(Yo=function(){throw Cz("Incorrect invocation")},fl))for(ga in hl)Jn[ga]&&lg(Jn[ga],Yo);if((!fl||!io||io===Pct)&&(io=Yo.prototype,fl))for(ga in hl)Jn[ga]&&lg(Jn[ga].prototype,io);fl&&vT(yK)!==io&&lg(yK,io);if(Sz&&!rc(io,xK)){ipe=!0,Tct(io,xK,{configurable:!0,get:function(){return pT(this)?this[TR]:void 0}});for(ga in hl)Jn[ga]&&Cct(Jn[ga],TR,ga)}var xt={NATIVE_ARRAY_BUFFER_VIEWS:fl,TYPED_ARRAY_TAG:ipe&&TR,aTypedArray:Dct,aTypedArrayConstructor:Lct,exportTypedArrayMethod:Rct,exportTypedArrayStaticMethod:$ct,getTypedArrayConstructor:ope,isView:Mct,isTypedArray:spe,TypedArray:Yo,TypedArrayPrototype:io},Oct=q,lpe=xt,zct=lpe.NATIVE_ARRAY_BUFFER_VIEWS;Oct({target:"ArrayBuffer",stat:!0,forced:!zct},{isView:lpe.isView});var Fct=ag,Bct=Gf,jct=TypeError,Az=function(e){if(Fct(e))return e;throw jct(Bct(e)+" is not a constructor")},bK=ct,Vct=Az,Uct=Ta,Gct=St,Hct=Gct("species"),ug=function(e,t){var r=bK(e).constructor,n;return r===void 0||Uct(n=bK(r)[Hct])?t:Vct(n)},Wct=q,Ez=gc,qct=ge,upe=hT,wK=ct,_K=ps,Yct=Ka,Kct=ug,Nz=upe.ArrayBuffer,AR=upe.DataView,cpe=AR.prototype,SK=Ez(Nz.prototype.slice),Zct=Ez(cpe.getUint8),Xct=Ez(cpe.setUint8),Jct=qct(function(){return!new Nz(2).slice(1,void 0).byteLength});Wct({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Jct},{slice:function(t,r){if(SK&&r===void 0)return SK(wK(this),t);for(var n=wK(this).byteLength,a=_K(t,n),i=_K(r===void 0?n:r,n),o=new(Kct(this,Nz))(Yct(i-a)),s=new AR(this),l=new AR(o),u=0;a<i;)Xct(l,u++,Zct(s,a++));return o}});var Qct=q,edt=hT,tdt=xz;Qct({global:!0,constructor:!0,forced:!tdt},{DataView:edt.DataView});var rdt=q,ndt=_e,adt=ge,idt=adt(function(){return new Date(16e11).getYear()!==120}),odt=ndt(Date.prototype.getFullYear);rdt({target:"Date",proto:!0,forced:idt},{getYear:function(){return odt(this)-1900}});var sdt=q,ldt=_e,dpe=Date,udt=ldt(dpe.prototype.getTime);sdt({target:"Date",stat:!0},{now:function(){return udt(new dpe)}});var cdt=q,fpe=_e,ddt=Tr,hpe=Date.prototype,fdt=fpe(hpe.getTime),hdt=fpe(hpe.setFullYear);cdt({target:"Date",proto:!0},{setYear:function(t){fdt(this);var r=ddt(t),n=0<=r&&r<=99?r+1900:r;return hdt(this,n)}});var pdt=q;pdt({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString});var vdt=Tr,gdt=vt,mdt=Hr,ydt=RangeError,gT=function(t){var r=gdt(mdt(this)),n="",a=vdt(t);if(a<0||a==1/0)throw ydt("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(r+=r))a&1&&(n+=r);return n},ppe=_e,xdt=Ka,kK=vt,bdt=gT,wdt=Hr,_dt=ppe(bdt),Sdt=ppe("".slice),kdt=Math.ceil,CK=function(e){return function(t,r,n){var a=kK(wdt(t)),i=xdt(r),o=a.length,s=n===void 0?" ":kK(n),l,u;return i<=o||s==""?a:(l=i-o,u=_dt(s,kdt(l/s.length)),u.length>l&&(u=Sdt(u,0,l)),e?a+u:u+a)}},Iz={start:CK(!1),end:CK(!0)},yc=_e,TK=ge,Xc=Iz.start,Cdt=RangeError,Tdt=isFinite,Adt=Math.abs,Nl=Date.prototype,t5=Nl.toISOString,Edt=yc(Nl.getTime),Ndt=yc(Nl.getUTCDate),Idt=yc(Nl.getUTCFullYear),Pdt=yc(Nl.getUTCHours),Mdt=yc(Nl.getUTCMilliseconds),Ddt=yc(Nl.getUTCMinutes),Ldt=yc(Nl.getUTCMonth),Rdt=yc(Nl.getUTCSeconds),$dt=TK(function(){return t5.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!TK(function(){t5.call(new Date(NaN))})?function(){if(!Tdt(Edt(this)))throw Cdt("Invalid time value");var t=this,r=Idt(t),n=Mdt(t),a=r<0?"-":r>9999?"+":"";return a+Xc(Adt(r),a?6:4,0)+"-"+Xc(Ldt(t)+1,2,0)+"-"+Xc(Ndt(t),2,0)+"T"+Xc(Pdt(t),2,0)+":"+Xc(Ddt(t),2,0)+":"+Xc(Rdt(t),2,0)+"."+Xc(n,3,0)+"Z"}:t5,Odt=q,AK=$dt;Odt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==AK},{toISOString:AK});var zdt=q,Fdt=ge,Bdt=Dt,jdt=YC,Vdt=Fdt(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});zdt({target:"Date",proto:!0,arity:1,forced:Vdt},{toJSON:function(t){var r=Bdt(this),n=jdt(r,"number");return typeof n=="number"&&!isFinite(n)?null:r.toISOString()}});var Udt=ct,Gdt=bfe,Hdt=TypeError,Wdt=function(e){if(Udt(this),e==="string"||e==="default")e="string";else if(e!=="number")throw Hdt("Incorrect hint");return Gdt(this,e)},qdt=It,Ydt=yr,Kdt=Wdt,Zdt=St,EK=Zdt("toPrimitive"),NK=Date.prototype;qdt(NK,EK)||Ydt(NK,EK,Kdt);var vpe=_e,Xdt=yr,Pz=Date.prototype,IK="Invalid Date",gpe="toString",Jdt=vpe(Pz[gpe]),Qdt=vpe(Pz.getTime);String(new Date(NaN))!=IK&&Xdt(Pz,gpe,function(){var t=Qdt(this);return t===t?Jdt(this):IK});var eft=q,Qx=_e,tft=vt,rft=Qx("".charAt),nft=Qx("".charCodeAt),aft=Qx(/./.exec),ift=Qx(1 .toString),oft=Qx("".toUpperCase),sft=/[\w*+\-./@]/,PK=function(e,t){for(var r=ift(e,16);r.length<t;)r="0"+r;return r};eft({global:!0},{escape:function(t){for(var r=tft(t),n="",a=r.length,i=0,o,s;i<a;)o=rft(r,i++),aft(sft,o)?n+=o:(s=nft(o,0),s<256?n+="%"+PK(s,2):n+="%u"+oft(PK(s,4)));return n}});var mpe=_e,lft=Cr,uft=_t,cft=It,MK=Hf,dft=$x,ype=Function,fft=mpe([].concat),hft=mpe([].join),r5={},pft=function(e,t,r){if(!cft(r5,t)){for(var n=[],a=0;a<t;a++)n[a]="a["+a+"]";r5[t]=ype("C,a","return new C("+hft(n,",")+")")}return r5[t](e,r)},xpe=dft?ype.bind:function(t){var r=lft(this),n=r.prototype,a=MK(arguments,1
vendor: 4,869 bytes, line 658
658),i=function(){var s=fft(a,MK(arguments));return this instanceof i?pft(r,s.length,s):r.apply(t,s)};return uft(n)&&(i.prototype=n),i},vft=q,DK=xpe;vft({target:"Function",proto:!0,forced:Function.bind!==DK},{bind:DK});var gft=wt,LK=_t,mft=or,yft=Bi,xft=St,bft=Y6,n5=xft("hasInstance"),RK=Function.prototype;n5 in RK||mft.f(RK,n5,{value:bft(function(e){if(!gft(this)||!LK(e))return!1;var t=this.prototype;if(!LK(t))return e instanceof this;for(;e=yft(e);)if(t===e)return!0;return!1},n5)});var wft=Qe,_ft=ng.EXISTS,bpe=_e,Sft=vn,wpe=Function.prototype,kft=bpe(wpe.toString),_pe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cft=bpe(_pe.exec),Tft="name";wft&&!_ft&&Sft(wpe,Tft,{configurable:!0,get:function(){try{return Cft(_pe,kft(this))[1]}catch{return""}}});var Aft=q,a5=Re;Aft({global:!0,forced:a5.globalThis!==a5},{globalThis:a5});var Eft=Re,Nft=Za;Nft(Eft.JSON,"JSON",!0);var Spe={exports:{}},Ift=ge,Mz=Ift(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Pft=ge,Mft=_t,Dft=ta,$K=Mz,z_=Object.isExtensible,Lft=Pft(function(){z_(1)}),Dz=Lft||$K?function(t){return!Mft(t)||$K&&Dft(t)=="ArrayBuffer"?!1:z_?z_(t):!0}:z_,Rft=ge,cg=!Rft(function(){return Object.isExtensible(Object.preventExtensions({}))}),$ft=q,Oft=_e,zft=zx,Fft=_t,Lz=It,Bft=or.f,OK=Cl,jft=QC,Rz=Dz,Vft=rg,Uft=cg,kpe=!1,pl=Vft("meta"),Gft=0,$z=function(e){Bft(e,pl,{value:{objectID:"O"+Gft++,weakData:{}}})},Hft=function(e,t){if(!Fft(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Lz(e,pl)){if(!Rz(e))return"F";if(!t)return"E";$z(e)}return e[pl].objectID},Wft=function(e,t){if(!Lz(e,pl)){if(!Rz(e))return!0;if(!t)return!1;$z(e)}return e[pl].weakData},qft=function(e){return Uft&&kpe&&Rz(e)&&!Lz(e,pl)&&$z(e),e},Yft=function(){Kft.enable=function(){},kpe=!0;var e=OK.f,t=Oft([].splice),r={};r[pl]=1,e(r).length&&(OK.f=function(n){for(var a=e(n),i=0,o=a.length;i<o;i++)if(a[i]===pl){t(a,i,1);break}return a},$ft({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jft.f}))},Kft=Spe.exports={enable:Yft,fastKey:Hft,getWeakData:Wft,onFreeze:qft};zft[pl]=!0;var qf=Spe.exports,Zft=q,Xft=Re,Jft=_e,zK=Vx,Qft=yr,eht=qf,tht=ys,rht=xs,nht=wt,aht=Ta,i5=_t,o5=ge,iht=lT,oht=Za,sht=ig,mT=function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",o=Xft[e],s=o&&o.prototype,l=o,u={},c=function(g){var x=Jft(s[g]);Qft(s,g,g=="add"?function(_){return x(this,_===0?0:_),this}:g=="delete"?function(b){return a&&!i5(b)?!1:x(this,b===0?0:b)}:g=="get"?function(_){return a&&!i5(_)?void 0:x(this,_===0?0:_)}:g=="has"?function(_){return a&&!i5(_)?!1:x(this,_===0?0:_)}:function(_,k){return x(this,_===0?0:_,k),this})},d=zK(e,!nht(o)||!(a||s.forEach&&!o5(function(){new o().entries().next()})));if(d)l=r.getConstructor(t,e,n,i),eht.enable();else if(zK(e,!0)){var f=new l,h=f[i](a?{}:-0,1)!=f,p=o5(function(){f.has(1)}),v=iht(function(g){new o(g)}),m=!a&&o5(function(){for(var g=new o,x=5;x--;)g[i](x,x);return!g.has(-0)});v||(l=t(function(g,x){rht(g,s);var b=sht(new o,g,l);return aht(x)||tht(x,b[i],{that:b,AS_ENTRIES:n}),b}),l.prototype=s,s.constructor=l),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||h)&&c(i),a&&s.clear&&delete s.clear}return u[e]=l,Zft({global:!0,constructor:!0,forced:l!=o},u),oht(l,e),a||r.setStrong(l,e,n),l},lht=zi,uht=vn,FK=Jx,cht=wo,dht=xs,fht=Ta,hht=ys,pht=fz,dw=uT,vht=sg,s0=Qe,BK=qf.fastKey,Cpe=Wr,jK=Cpe.set,s5=Cpe.getterFor,Tpe={getConstructor:function(e,t,r,n){var a=e(function(u,c){dht(u,i),jK(u,{type:t,index:lht(null),first:void 0,last:void 0,size:0}),s0||(u.size=0),fht(c)||hht(c,u[n],{that:u,AS_ENTRIES:r})}),i=a.prototype,o=s5(t),s=function(u,c,d){var f=o(u),h=l(u,c),p,v;return h?h.value=d:(f.last=h={index:v=BK(c,!0),key:c,value:d,previous:p=f.last,next:void 0,removed:!1},f.first||(f.first=h),p&&(p.next=h),s0?f.size++:u.size++,v!=="F"&&(f.index[v]=h)),u},l=function(u,c){var d=o(u),f=BK(c),h;if(f!=="F")return d.index[f];for(h=d.first;h;h=h.next)if(h.key==c)return h};return FK(i,{clear:function(){for(var c=this,d=o(c),f=d.index,h=d.first;h;)h.removed=!0,h.previous&&(h.previous=h.previous.next=void 0),delete f[h.index],h=h.next;d.first=d.last=void 0,s0?d.size=0:c.size=0},delete:function(u){var c=this,d=o(c),f=l(c,u);if(f){var h=f.next,p=f.previous;delete d.index[f.index],f.removed=!0,p&&(p.next=h),h&&(h.previous=p),d.first==f&&(d.first=h),d.last==f&&(d.last=p),s0?d.size--:c.size--}return!!f},forEach:function(c){for(var d=o(this),f=cht(c,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:d.first;)for(f(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(c){return!!l(this,c)}}),FK(i,r?{get:function(c){var d=l(this,c);return d&&d.value},set:function(c,d){return s(this,c===0?0:c,d)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),s0&&uht(i,"size",{configurable:!0,get:function(){return o(this).size}}
658),a},setStrong:function(e,t,r){var n=t+" Iterator",a=s5(t),i=s5(n);pht(e,t,function(o,s){jK(this,{type:n,target:o,state:a(o),kind:s,last:void 0})},function(){for(var o=i(this),s=o.kind,l=o.last;l&&l.removed;)l=l.previous;return!o.target||!(o.last=l=l?l.next:o.state.first)?(o.target=void 0,dw(void 0,!0)):s=="keys"?dw(l.key,!1):s=="values"?dw(l.value,!1):dw([l.key,l.value],!1)},r?"entries":"values",!r,!0),vht(t)}},ght=mT,mht=Tpe;ght("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mht);var yht=Math.log,Ape=Math.log1p||function(t){var r=+t;return r>-1e-8&&r<1e-8?r-r*r/2:yht(1+r)},xht=q,bht=Ape,l5=Math.acosh,wht=Math.log,VK=Math.sqrt,_ht=Math.LN2,Sht=!l5||Math.floor(l5(Number.MAX_VALUE))!=710||l5(1/0)!=1/0;xht({target:"Math",stat:!0,forced:Sht},{acosh:function(t){var r=+t;return r<1?NaN:r>9490626562425156e-8?wht(r)+_ht:bht(r-1+VK(r-1)*VK(r+1))}});var kht=q,UK=Math.asinh,Cht=Math.log,Tht=Math.sqrt;function Epe(e){var t=+e;return!isFinite(t)||t==0?t:t<0?-Epe(-t):Cht(t+Tht(t*t+1))}var Aht=!(UK&&1/UK(0)>0);kht({target:"Math",stat:!0,forced:Aht},{asinh:Epe});var Eht=q,GK=Math.atanh,Nht=Math.log,Iht=!(GK&&1/GK(-0)<0);Eht({target:"Math",stat:!0,forced:Iht},{atanh:function(t){var r=+t;return r==0?r:Nht((1+r)/(1-r))/2}});var Oz=Math.sign||function(t){var r=+t;return r==0||r!=r?r:r<0?-1:1},Pht=q,Mht=Oz,Dht=Math.abs,Lht=Math.pow;Pht({target:"Math",stat:!0},{cbrt:function(t){var r=+t;return Mht(r)*Lht(Dht(r),1/3)}});var Rht=q,$ht=Math.floor,Oht=Math.log,zht=Math.LOG2E;Rht({target:"Math",stat:!0},{clz32:function(t){var r=t>>>0;return r?31-$ht(Oht(r+.5)*zht):32}});var l0=Math.expm1,Fht=Math.exp,yT=!l0||l0(10)>22025.465794806718||l0(10)<22025.465794806718||l0(-2e-17)!=-2e-17?function(t){var r=+t;return r==0?r:r>-1e-6&&r<1e-6?r+r*r/2:Fht(r)-1}:l0,Bht=q,jht=yT,HK=Math.cosh,Vht=Math.abs,u5=Math.E,Uht=!HK||HK(710)===1/0;Bht({target:"Math",stat:!0,forced:Uht},{cosh:function(t){var r=jht(Vht(t)-1)+1;return(r+1/(r*u5*u5))*(u5/2)}});var Ght=q,WK=yT;Ght({target:"Math",stat:!0,forced:WK!=Math.expm1},{expm1:WK});var Hht=Oz,Wht=Math.abs,xT=Math.pow,ER=xT(2,-52),F_=xT(2,-23),qht=xT(2,127)*(2-F_),c5=xT(2,-126),Yht=function(e){return e+1/ER-1/ER},Kht=Math.fround||function(t){var r=+t,n=Wht(r),a=Hht(r),i,o;return n<c5?a*Yht(n/c5/F_)*c5*F_:(i=(1+F_/ER)*n,o=i-(i-n),o>qht||o!=o?a*(1/0):a*o)},Zht=q,Xht=Kht;Zht({target:"Math",stat:!0},{fround:Xht});var Jht=q,qK=Math.hypot,Qht=Math.abs,ept=Math.sqrt,tpt=!!qK&&qK(1/0,NaN)!==1/0;Jht({target:"Math",stat:!0,arity:2,forced:tpt},{hypot:function(t,r){for(var n=0,a=0,i=arguments.length,o=0,s,l;a<i;)s=Qht(arguments[a++]),o<s?(l=o/s,n=n*l*l+1,o=s):s>0?(l=s/o,n+=l*l):n+=s;return o===1/0?1/0:o*ept(n)}});var rpt=q,npt=ge,YK=Math.imul,apt=npt(function(){return YK(4294967295,5)!=-5||YK.length!=2});rpt({target:"Math",stat:!0,forced:apt},{imul:function(t,r){var n=65535,a=+t,i=+r,o=n&a,s=n&i;return 0|o*s+((n&a>>>16)*s+o*(n&i>>>16)<<16>>>0)}});var ipt=Math.log,opt=Math.LOG10E,Npe=Math.log10||function(t){return ipt(t)*opt},spt=q,lpt=Npe;spt({target:"Math",stat:!0},{log10:lpt});var upt=q,cpt=Ape;upt({target:"Math",stat:!0},{log1p:cpt});var dpt=q,fpt=Math.log,hpt=Math.LN2;dpt({target:"Math",stat:!0},{log2:function(t){return fpt(t)/hpt}});var ppt=q,vpt=Oz;ppt({target:"Math",stat:!0},{sign:vpt});var gpt=q,mpt=ge,KK=yT,ypt=Math.abs,ZK=Math.exp,xpt=Math.E,bpt=mpt(function(){return Math.sinh(-2e-17)!=-2e-17});gpt({target:"Math",stat:!0,forced:bpt},{sinh:function(t){var r=+t;return ypt(r)<1?(KK(r)-KK(-r))/2:(ZK(r-1)-ZK(-r-1))*(xpt/2)}});var wpt=q,XK=yT,JK=Math.exp;wpt({target:"Math",stat:!0},{tanh:function(t){var r=+t,n=XK(r),a=XK(-r);return n==1/0?1:a==1/0?-1:(n-a)/(JK(r)+JK(-r))}});var _pt=Za;_pt(Math,"Math",!0);var Spt=q,kpt=Nfe;Spt({target:"Math",stat:!0},{trunc:kpt});var Cpt=_e,bT=Cpt(1 .valueOf),wT=` 659\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,Tpt=_e,Apt=Hr,Ept=vt,NR=wT,QK=Tpt("".replace),Npt=RegExp("^["+NR+"]+"),Ipt=RegExp("(^|[^"+NR+"])["+NR+"]+$"),d5=function(e){return function(t){var r=Ept(Apt(t));return e&1&&(r=QK(r,Npt,"")),e&2&&(r=QK(r,Ipt,"$1")),r}},dg={start:d5(1),end:d5(2),trim:d5(3)},Ppt=q,Ipe=V6,Mpt=Qe,Ppe=Re,Mpe=Ofe,Dpe=_e,Dpt=Vx,eZ=It,Lpt=ig,Rpt=Oi,$pt=Uf,Lpe=YC,Opt=ge,zpt=Cl.f,Fpt=pn.f,Bpt=or.f,jpt=bT,Vpt=dg.trim,_T="Number",Rp=Ppe[_T];Mpe[_T];var zz=Rp.prototype,Upt=Ppe.TypeError,Gpt=Dpe("".slice),fw=Dpe("".charCodeAt),Hpt=function(e){var t=Lpe(e,"number");return typeof t=="bigint"?t:Wpt(t)},Wpt=function(e){var t=Lpe(e,"number"),r,n,a,i,o,s,l,u;if($pt(t))throw Upt("Cannot convert a Symbol value to a number");if(typeof t=="string"&&t.length>
6592){if(t=Vpt(t),r=fw(t,0),r===43||r===45){if(n=fw(t,2),n===88||n===120)return NaN}else if(r===48){switch(fw(t,1)){case 66:case 98:a=2,i=49;break;case 79:case 111:a=8,i=55;break;default:return+t}for(o=Gpt(t,2),s=o.length,l=0;l<s;l++)if(u=fw(o,l),u<48||u>i)return NaN;return parseInt(o,a)}}return+t},Fz=Dpt(_T,!Rp(" 0o1")||!Rp("0b1")||Rp("+0x1")),qpt=function(e){return Rpt(zz,e)&&Opt(function(){jpt(e)})},ST=function(t){var r=arguments.length<1?0:Rp(Hpt(t));return qpt(this)?Lpt(Object(r),this,ST):r};ST.prototype=zz;Fz&&!Ipe&&(zz.constructor=ST);Ppt({global:!0,constructor:!0,wrap:!0,forced:Fz},{Number:ST});var Ypt=function(e,t){for(var r=Mpt?zpt(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0,a;r.length>n;n++)eZ(t,a=r[n])&&!eZ(e,a)&&Bpt(e,a,Fpt(t,a))};(Fz||Ipe)&&Ypt(Mpe[_T],Rp);var Kpt=q;Kpt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Zpt=Re,Xpt=Zpt.isFinite,Jpt=Number.isFinite||function(t){return typeof t=="number"&&Xpt(t)},Qpt=q,evt=Jpt;Qpt({target:"Number",stat:!0},{isFinite:evt});var tvt=_t,rvt=Math.floor,Bz=Number.isInteger||function(t){return!tvt(t)&&isFinite(t)&&rvt(t)===t},nvt=q,avt=Bz;nvt({target:"Number",stat:!0},{isInteger:avt});var ivt=q;ivt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var ovt=q,svt=Bz,lvt=Math.abs;ovt({target:"Number",stat:!0},{isSafeInteger:function(t){return svt(t)&&lvt(t)<=9007199254740991}});var uvt=q;uvt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991});var cvt=q;cvt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var Rpe=Re,dvt=ge,fvt=_e,hvt=vt,pvt=dg.trim,vvt=wT,gvt=fvt("".charAt),ak=Rpe.parseFloat,tZ=Rpe.Symbol,rZ=tZ&&tZ.iterator,mvt=1/ak(vvt+"-0")!==-1/0||rZ&&!dvt(function(){ak(Object(rZ))}),$pe=mvt?function(t){var r=pvt(hvt(t)),n=ak(r);return n===0&&gvt(r,0)=="-"?-0:n}:ak,yvt=q,nZ=$pe;yvt({target:"Number",stat:!0,forced:Number.parseFloat!=nZ},{parseFloat:nZ});var Ope=Re,xvt=ge,bvt=_e,wvt=vt,_vt=dg.trim,aZ=wT,Nm=Ope.parseInt,iZ=Ope.Symbol,oZ=iZ&&iZ.iterator,zpe=/^[+-]?0x/i,Svt=bvt(zpe.exec),kvt=Nm(aZ+"08")!==8||Nm(aZ+"0x16")!==22||oZ&&!xvt(function(){Nm(Object(oZ))}),Fpe=kvt?function(t,r){var n=_vt(wvt(t));return Nm(n,r>>>0||(Svt(zpe,n)?16:10))}:Nm,Cvt=q,sZ=Fpe;Cvt({target:"Number",stat:!0,forced:Number.parseInt!=sZ},{parseInt:sZ});var Tvt=q,jz=_e,Avt=Tr,Evt=bT,Nvt=gT,Ivt=Npe,IR=ge,Pvt=RangeError,lZ=String,Mvt=isFinite,Dvt=Math.abs,Lvt=Math.floor,uZ=Math.pow,Rvt=Math.round,Ko=jz(1 .toExponential),$vt=jz(Nvt),cZ=jz("".slice),Bpe=Ko(-69e-12,4)==="-6.9000e-11"&&Ko(1.255,2)==="1.25e+0"&&Ko(12345,3)==="1.235e+4"&&Ko(25,0)==="3e+1",Ovt=function(){return IR(function(){Ko(1,1/0)})&&IR(function(){Ko(1,-1/0)})},zvt=function(){return!IR(function(){Ko(1/0,1/0),Ko(NaN,1/0)})},Fvt=!Bpe||!Ovt()||!zvt();Tvt({target:"Number",proto:!0,forced:Fvt},{toExponential:function(t){var r=Evt(this);if(t===void 0)return Ko(r);var n=Avt(t);if(!Mvt(r))return String(r);if(n<0||n>20)throw Pvt("Incorrect fraction digits");if(Bpe)return Ko(r,n);var a="",i="",o=0,s="",l="";if(r<0&&(a="-",r=-r),r===0)o=0,i=$vt("0",n+1);else{var u=Ivt(r);o=Lvt(u);var c=0,d=uZ(10,o-n);c=Rvt(r/d),2*r>=(2*c+1)*d&&(c+=1),c>=uZ(10,n+1)&&(c/=10,o+=1),i=lZ(c)}return n!==0&&(i=cZ(i,0,1)+"."+cZ(i,1)),o===0?(s="+",l="0"):(s=o>0?"+":"-",l=lZ(Dvt(o))),i+="e"+s+l,a+i}});var Bvt=q,Vz=_e,jvt=Tr,Vvt=bT,Uvt=gT,dZ=ge,Gvt=RangeError,jpe=String,Vpe=Math.floor,PR=Vz(Uvt),fZ=Vz("".slice),u0=Vz(1 .toFixed),lp=function(e,t,r){return t===0?r:t%2===1?lp(e,t-1,r*e):lp(e*e,t/2,r)},Hvt=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t},Sh=function(e,t,r){for(var n=-1,a=r;++n<6;)a+=t*e[n],e[n]=a%1e7,a=Vpe(a/1e7)},f5=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=Vpe(n/t),n=n%t*1e7},hZ=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=jpe(e[t]);r=r===""?n:r+PR("0",7-n.length)+n}return r},Wvt=dZ(function(){return u0(8e-5,3)!=="0.000"||u0(.9,0)!=="1"||u0(1.255,2)!=="1.25"||u0(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!dZ(function(){u0({})});Bvt({target:"Number",proto:!0,forced:Wvt},{toFixed:function(t){var r=Vvt(this),n=jvt(t),a=[0,0,0,0,0,0],i="",o="0",s,l,u,c;if(n<0||n>20)throw Gvt("Incorrect fraction digits");if(r!=r)return"NaN";if(r<=-1e21||r>=1e21)return jpe(r);if(r<0&&(i="-",r=-r),r>1e-21)if(s=Hvt(r*lp(2,69,1))-69,l=s<0?r*lp(2,-s,1):r/lp(2,s,1),l*=4503599627370496,s=52-s,s>0){for(Sh(a,0,l),u=n;u>=7;)Sh(a,1e7,0),u-=7;for(Sh(a,lp(10,u,1),0),u=s-1;u>=23;)f5(a,1<<23),u-=23;f5(a,1<<u),Sh(a,1,1),f5(a,2),o=hZ(a)}else Sh(a,0,l),Sh(a,1<<-s,0),o=hZ(a)+PR("0",n);return n>0?(c=o.length,o=i+(c<=n?"0."+PR("0",n-c)+o:fZ(o,0,c-n)+"."+fZ(o,c-n))):o=i+o,o}});var qvt=q,Yvt=_e,pZ=ge,vZ=bT,ik=Yvt(1 .toPrecision),Kvt=pZ(function(){return ik(1,void 0)!=="1"})||!pZ(function(){ik({})});qvt({target:"Number",proto:!0,forced:Kvt},{toPrecision:function(t){return t===void 0?ik(vZ(this)):ik(vZ(this),t)}});var gZ=Qe,Zvt=_e,Xvt=ht,Jvt=ge,h5=Ux,Qvt=Bx,egt=Ox,tgt=Dt,rgt=Qv,kh=Object.assign,mZ=Object.defineProperty,ngt=Zvt([].concat),Upe=!kh||Jvt(function(){if(gZ&&kh({b:1},kh(mZ({},"a",{enumerable:!0,get:function(){mZ(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(a){t[a]=a}),kh({},e)[r]!=7||h5(kh({},t)).join("")!=n})?function(t,r){for(var n=tgt(t),a=arguments.length,i=1,o=Qvt.f,s=egt.f;a>i;)for(var l=rgt(arguments[i++]),u=o?ngt(h5(l),o(l)):h5(l),c=u.length,d=0,f;c>d;)f=u[d++],(!gZ||Xvt(s,l,f))&&(n[f]=l[f]);return n}:kh,agt=q,yZ=Upe;agt({target:"Object",stat:!0,arity:2,forced:Object.assign!==yZ},{assign:yZ});var igt=q,ogt=Qe,sgt=zi;igt({target:"Object",stat:!0,sham:!ogt},{create:sgt});var lgt=Re,ugt=ge,xZ=gz,kT=!ugt(function(){if(!(xZ&&xZ<535)){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete lgt[e]}}),cgt=q,dgt=Qe,fgt=kT,hgt=Cr,pgt=Dt,vgt=or;dgt&&cgt({target:"Object",proto:!0,forced:fgt},{__defineGetter__:function(t,r){vgt.f(pgt(this),t,{get:hgt(r),enumerable:!0,configurable:!0})}});var ggt=q,mgt=Qe,bZ=JC.f;ggt({target:"Object",stat:!0,forced:Object.defineProperties!==bZ,sham:!mgt},{defineProperties:bZ});var ygt=q,xgt=Qe,wZ=or.f;ygt({target:"Object",stat:!0,forced:Object.defineProperty!==wZ,sham:!xgt},{defineProperty:wZ});var bgt=q,wgt=Qe,_gt=kT,Sgt=Cr,kgt=Dt,Cgt=or;wgt&&bgt({target:"Object",proto:!0,forced:_gt},{__defineSetter__:function(t,r){Cgt.f(kgt(this),t,{set:Sgt(r),enumerable:!0,configurable:!0})}});var Tgt=Qe,Gpe=_e,Agt=Ux,Egt=en,Ngt=Ox.f,Igt=Gpe(Ngt),Pgt=Gpe([].push),_Z=function(e){return function(t){for(var r=Egt(t),n=Agt(r),a=n.length,i=0,o=[],s;a>i;)s=n[i++],(!Tgt||Igt(r,s))&&Pgt(o,e?[s,r[s]]:r[s]);return o}},Hpe={entries:_Z(!0),values:_Z(!1)},Mgt=q,Dgt=Hpe.entries;Mgt({target:"Object",stat:!0},{entries:function(t){return Dgt(t)}});var Lgt=q,Rgt=cg,$gt=ge,Ogt=_t,zgt=qf.onFreeze,MR=Object.freeze,Fgt=$gt(function(){MR(1)});Lgt({target:"Object",stat:!0,forced:Fgt,sham:!Rgt},{freeze:function(t){return MR&&Ogt(t)?MR(zgt(t)):t}});var Bgt=q,jgt=ys,Vgt=Tl;Bgt({target:"Object",stat:!0},{fromEntries:function(t){var r={};return jgt(t,function(n,a){Vgt(r,n,a)},{AS_ENTRIES:!0}),r}});var Ugt=q,Ggt=ge,Hgt=en,Wpe=pn.f,qpe=Qe,Wgt=!qpe||Ggt(function(){Wpe(1)});Ugt({target:"Object",stat:!0,forced:Wgt,sham:!qpe},{getOwnPropertyDescriptor:function(t,r){return Wpe(Hgt(t),r)}});var qgt=q,Ygt=Qe,Kgt=Z6,Zgt=en,Xgt=pn,Jgt=Tl;qgt({target:"Object",stat:!0,sham:!Ygt},{getOwnPropertyDescriptors:function(t){for(var r=Zgt(t),n=Xgt.f,a=Kgt(r),i={},o=0,s,l;a.length>o;)l=n(r,s=a[o++]),l!==void 0&&Jgt(i,s,l);return i}});var Qgt=q,e0t=ge,t0t=QC.f,r0t=e0t(function(){return!Object.getOwnPropertyNames(1)});Qgt({target:"Object",stat:!0,forced:r0t},{getOwnPropertyNames:t0t});var n0t=q,a0t=ge,i0t=Dt,Ype=Bi,o0t=sz,s0t=a0t(function(){Ype(1)});n0t({target:"Object",stat:!0,forced:s0t,sham:!o0t},{getPrototypeOf:function(t){return Ype(i0t(t))}});var l0t=q,u0t=It;l0t({target:"Object",stat:!0},{hasOwn:u0t});var Kpe=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!=t&&r!=r},c0t=q,d0t=Kpe;c0t({target:"Object",stat:!0},{is:d0t});var f0t=q,SZ=Dz;f0t({target:"Object",stat:!0,forced:Object.isExtensible!==SZ},{isExtensible:SZ});var h0t=q,p0t=ge,v0t=_t,g0t=ta,Zpe=Mz,DR=Object.isFrozen,m0t=Zpe||p0t(function(){DR(1)});h0t({target:"Object",stat:!0,forced:m0t},{isFrozen:function(t){return!v0t(t)||Zpe&&g0t(t)=="ArrayBuffer"?!0:DR?DR(t):!1}});var y0t=q,x0t=ge,b0t=_t,w0t=ta,Xpe=Mz,LR=Object.isSealed,_0t=Xpe||x0t(function(){LR(1)});y0t({target:"Object",stat:!0,forced:_0t},{isSealed:function(t){return!b0t(t)||Xpe&&w0t(t)=="ArrayBuffer"?!0:LR?LR(t):!1}});var S0t=q,k0t=Dt,Jpe=Ux,C0t=ge,T0t=C0t(function(){Jpe(1)});S0t({target:"Object",stat:!0,forced:T0t},{keys:function(t){return Jpe(k0t(t))}});var A0t=q,E0t=Qe,N0t=kT,I0t=Dt,P0t=vc,M0t=Bi,D0t=pn.f;E0t&&A0t({target:"Object",proto:!0,forced:N0t},{__lookupGetter__:function(t){var r=I0t(this),n=P0t(t),a;do if(a=D0t(r,n))return a.get;while(r=M0t(r))}});var L0t=q,R0t=Qe,$0t=kT,O0t=Dt,z0t=vc,F0t=Bi,B0t=pn.f;R0t&&L0t({target:"Object",proto:!0,forced:$0t},{__lookupSetter__:function(t){var r=O0t(this),n=z0t(t),a;do if(a=B0t(r,n))return a.set;while(r=F0t(r))}});var j0t=q,V0t=_t,U0t=qf.onFreeze,G0t=cg,H0t=ge,RR=Object.preventExtensions,W0t=H0t(function(){RR(1)});j0t({target:"Object",stat:!0,forced:W0t,sham:!G0t},{preventExtensions:function(t){return RR&&V0t(t)?RR(U0t(t)):t}});var q0t=Qe,Y0t=vn,kZ=_t,K0t=Dt,Z0t=Hr,CZ=Object.getPrototypeOf,TZ=Object.
659setPrototypeOf,AZ=Object.prototype,EZ="__proto__";if(q0t&&CZ&&TZ&&!(EZ in AZ))try{Y0t(AZ,EZ,{configurable:!0,get:function(){return CZ(K0t(this))},set:function(t){var r=Z0t(this);!kZ(t)&&t!==null||!kZ(r)||TZ(r,t)}})}catch{}var X0t=q,J0t=_t,Q0t=qf.onFreeze,emt=cg,tmt=ge,$R=Object.seal,rmt=tmt(function(){$R(1)});X0t({target:"Object",stat:!0,forced:rmt,sham:!emt},{seal:function(t){return $R&&J0t(t)?$R(Q0t(t)):t}});var nmt=q,amt=gs;nmt({target:"Object",stat:!0},{setPrototypeOf:amt});var imt=X6,omt=vs,smt=imt?{}.toString:function(){return"[object "+omt(this)+"]"},lmt=X6,umt=yr,cmt=smt;lmt||umt(Object.prototype,"toString",cmt,{unsafe:!0});var dmt=q,fmt=Hpe.values;dmt({target:"Object",stat:!0},{values:function(t){return fmt(t)}});var hmt=q,NZ=$pe;hmt({global:!0,forced:parseFloat!=NZ},{parseFloat:NZ});var pmt=q,IZ=Fpe;pmt({global:!0,forced:parseInt!=IZ},{parseInt:IZ});var vmt=TypeError,Il=function(e,t){if(e<t)throw vmt("Not enough arguments");return e},gmt=_l,Qpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(gmt),za=Re,mmt=Fi,ymt=wo,PZ=wt,xmt=It,eve=ge,MZ=Mfe,bmt=Hf,DZ=KC,wmt=Il,_mt=Qpe,Smt=El,OR=za.setImmediate,zR=za.clearImmediate,kmt=za.process,p5=za.Dispatch,Cmt=za.Function,LZ=za.MessageChannel,Tmt=za.String,v5=0,Im={},RZ="onreadystatechange",Wy,Jc,g5,m5;eve(function(){Wy=za.location});var Uz=function(e){if(xmt(Im,e)){var t=Im[e];delete Im[e],t()}},y5=function(e){return function(){Uz(e)}},$Z=function(e){Uz(e.data)},OZ=function(e){za.postMessage(Tmt(e),Wy.protocol+"//"+Wy.host)};(!OR||!zR)&&(OR=function(t){wmt(arguments.length,1);var r=PZ(t)?t:Cmt(t),n=bmt(arguments,1);return Im[++v5]=function(){mmt(r,void 0,n)},Jc(v5),v5},zR=function(t){delete Im[t]},Smt?Jc=function(e){kmt.nextTick(y5(e))}:p5&&p5.now?Jc=function(e){p5.now(y5(e))}:LZ&&!_mt?(g5=new LZ,m5=g5.port2,g5.port1.onmessage=$Z,Jc=ymt(m5.postMessage,m5)):za.addEventListener&&PZ(za.postMessage)&&!za.importScripts&&Wy&&Wy.protocol!=="file:"&&!eve(OZ)?(Jc=OZ,za.addEventListener("message",$Z,!1)):RZ in DZ("script")?Jc=function(e){MZ.appendChild(DZ("script"))[RZ]=function(){MZ.removeChild(this),Uz(e)}}:Jc=function(e){setTimeout(y5(e),0)});var CT={set:OR,clear:zR},tve=function(){this.head=null,this.tail=null};tve.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return t===null&&(this.tail=null),e.item}}};
vendor: 6,125 bytes, line 659
659var rve=tve,Amt=_l,Emt=/ipad|iphone|ipod/i.test(Amt)&&typeof Pebble<"u",Nmt=_l,Imt=/web0s(?!.*chrome)/i.test(Nmt),Af=Re,zZ=wo,Pmt=pn.f,x5=CT.set,Mmt=rve,Dmt=Qpe,Lmt=Emt,Rmt=Imt,b5=El,FZ=Af.MutationObserver||Af.WebKitMutationObserver,BZ=Af.document,jZ=Af.process,hw=Af.Promise,VZ=Pmt(Af,"queueMicrotask"),FR=VZ&&VZ.value,Ch,w5,_5,pw,UZ;if(!FR){var vw=new Mmt,gw=function(){var e,t;for(b5&&(e=jZ.domain)&&e.exit();t=vw.get();)try{t()}catch(r){throw vw.head&&Ch(),r}e&&e.enter()};!Dmt&&!b5&&!Rmt&&FZ&&BZ?(w5=!0,_5=BZ.createTextNode(""),new FZ(gw).observe(_5,{characterData:!0}),Ch=function(){_5.data=w5=!w5}):!Lmt&&hw&&hw.resolve?(pw=hw.resolve(void 0),pw.constructor=hw,UZ=zZ(pw.then,pw),Ch=function(){UZ(gw)}):b5?Ch=function(){jZ.nextTick(gw)}:(x5=zZ(x5,Af),Ch=function(){x5(gw)}),FR=function(e){vw.head||Ch(),vw.add(e)}}var nve=FR,$mt=function(e,t){try{arguments.length==1}catch{}},e1=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Omt=Re,t1=Omt.Promise,Gz=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",zmt=Gz,Fmt=El,ave=!zmt&&!Fmt&&typeof window=="object"&&typeof document=="object",Bmt=Re,Pm=t1,jmt=wt,Vmt=Vx,Umt=W6,Gmt=St,Hmt=ave,Wmt=Gz,S5=Sl;Pm&&Pm.prototype;var qmt=Gmt("species"),BR=!1,ive=jmt(Bmt.PromiseRejectionEvent),Ymt=Vmt("Promise",function(){var e=Umt(Pm),t=e!==String(Pm);if(!t&&S5===66)return!0;if(!S5||S5<51||!/native code/.test(e)){var r=new Pm(function(i){i(1)}),n=function(i){i(function(){},function(){})},a=r.constructor={};if(a[qmt]=n,BR=r.then(function(){})instanceof n,!BR)return!0}return!t&&(Hmt||Wmt)&&!ive}),r1={CONSTRUCTOR:Ymt,REJECTION_EVENT:ive,SUBCLASSING:BR},xc={},GZ=Cr,Kmt=TypeError,Zmt=function(e){var t,r;this.promise=new e(function(n,a){if(t!==void 0||r!==void 0)throw Kmt("Bad Promise constructor");t=n,r=a}),this.resolve=GZ(t),this.reject=GZ(r)};xc.f=function(e){return new Zmt(e)};var Xmt=q,ok=El,nc=Re,pv=ht,HZ=yr,WZ=gs,Jmt=Za,Qmt=sg,eyt=Cr,B_=wt,tyt=_t,ryt=xs,nyt=ug,ove=CT.set,Hz=nve,ayt=$mt,iyt=e1,oyt=rve,sve=Wr,sk=t1,Wz=r1,lve=xc,TT="Promise",uve=Wz.CONSTRUCTOR,syt=Wz.REJECTION_EVENT,lyt=Wz.SUBCLASSING,k5=sve.getterFor(TT),uyt=sve.set,Fh=sk&&sk.prototype,bd=sk,mw=Fh,cve=nc.TypeError,jR=nc.document,qz=nc.process,VR=lve.f,cyt=VR,dyt=!!(jR&&jR.createEvent&&nc.dispatchEvent),dve="unhandledrejection",fyt="rejectionhandled",qZ=0,fve=1,hyt=2,Yz=1,hve=2,yw,YZ,pyt,KZ,pve=function(e){var t;return tyt(e)&&B_(t=e.then)?t:!1},vve=function(e,t){var r=t.value,n=t.state==fve,a=n?e.ok:e.fail,i=e.resolve,o=e.reject,s=e.domain,l,u,c;try{a?(n||(t.rejection===hve&&gyt(t),t.rejection=Yz),a===!0?l=r:(s&&s.enter(),l=a(r),s&&(s.exit(),c=!0)),l===e.promise?o(cve("Promise-chain cycle")):(u=pve(l))?pv(u,l,i,o):i(l)):o(r)}catch(d){s&&!c&&s.exit(),o(d)}},gve=function(e,t){e.notified||(e.notified=!0,Hz(function(){for(var r=e.reactions,n;n=r.get();)vve(n,e);e.notified=!1,t&&!e.rejection&&vyt(e)}))},mve=function(e,t,r){var n,a;dyt?(n=jR.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),nc.dispatchEvent(n)):n={promise:t,reason:r},!syt&&(a=nc["on"+e])?a(n):e===dve&&ayt("Unhandled promise rejection",r)},vyt=function(e){pv(ove,nc,function(){var t=e.facade,r=e.value,n=ZZ(e),a;if(n&&(a=iyt(function(){ok?qz.emit("unhandledRejection",r,t):mve(dve,t,r)}),e.rejection=ok||ZZ(e)?hve:Yz,a.error))throw a.value})},ZZ=function(e){return e.rejection!==Yz&&!e.parent},gyt=function(e){pv(ove,nc,function(){var t=e.facade;ok?qz.emit("rejectionHandled",t):mve(fyt,t,e.value)})},up=function(e,t,r){return function(n){e(t,n,r)}},$p=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=hyt,gve(e,!0))},UR=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw cve("Promise can't be resolved itself");var n=pve(t);n?Hz(function(){var a={done:!1};try{pv(n,t,up(UR,a,e),up($p,a,e))}catch(i){$p(a,i,e)}}):(e.value=t,e.state=fve,gve(e,!1))}catch(a){$p({done:!1},a,e)}}};if(uve&&(bd=function(t){ryt(this,mw),eyt(t),pv(yw,this);var r=k5(this);try{t(up(UR,r),up($p,r))}catch(n){$p(r,n)}},mw=bd.prototype,yw=function(t){uyt(this,{type:TT,done:!1,notified:!1,parent:!1,reactions:new oyt,rejection:!1,state:qZ,value:void 0})},yw.prototype=HZ(mw,"then",function(t,r){var n=k5(this),a=VR(nyt(this,bd));return n.parent=!0,a.ok=B_(t)?t:!0,a.fail=B_(r)&&r,a.domain=ok?qz.domain:void 0,n.state==qZ?n.reactions.add(a):Hz(function(){vve(a,n)}),a.promise}),YZ=function(){var e=new yw,t=k5(e);this.promise=e,this.resolve=up(UR,t),this.reject=up($p,t)},lve.f=VR=function(e){return e===bd||e===pyt?new YZ(e):cyt(e)},B_(sk)&&Fh!==Object.prototype)){KZ=Fh.then,lyt||HZ(Fh,"then",function(t,r){var n=this;return new bd(function(a,i){pv(KZ,n,a,i)}).then(t,r)},{unsafe:!0});try{delete Fh.constructor}catch{}WZ&&WZ(Fh,mw)}Xmt({global:!0,constructor:!0,wrap:!0,forced:uve},{Promise:bd});Jmt(bd,TT,!1);Qmt(TT);var myt=t1,yyt=lT,xyt=r1.CONSTRUCTOR,AT=xyt||!yyt(function(e){myt.all(e).then(void 0,function(){})}),byt=q,wyt=ht,_yt=Cr,Syt=xc,kyt=e1,Cyt=ys,Tyt=AT;byt({target:"Promise",stat:!0,forced:Tyt},{all:function(t){var r=this,n=Syt.f(r),a=n.resolve,i=n.reject,o=kyt(function(){var s=_yt(r.resolve),l=[],u=0,c=1;Cyt(t,function(d){var f=u++,h=!1;c++,wyt(s,r,d).then(function(p){h||(h=!0,l[f]=p,--c||a(l))},i)}),--c||a(l)});return o.error&&i(o.value),n.promise}});var Ayt=q,Eyt=r1.CONSTRUCTOR,GR=t1,Nyt=ir,Iyt=wt,Pyt=yr,XZ=GR&&GR.prototype;Ayt({target:"Promise",proto:!0,forced:Eyt,real:!0},{catch:function(e){return this.then(void 0,e)}});if(Iyt(GR)){var JZ=Nyt("Promise").prototype.catch;XZ.catch!==JZ&&Pyt(XZ,"catch",JZ,{unsafe:!0})}var Myt=q,Dyt=ht,Lyt=Cr,Ryt=xc,$yt=e1,Oyt=ys,zyt=AT;Myt({target:"Promise",stat:!0,forced:zyt},{race:function(t){var r=this,n=Ryt.f(r),a=n.reject,i=$yt(function(){var o=Lyt(r.resolve);Oyt(t,function(s){Dyt(o,r,s).then(n.resolve,a)})});return i.error&&a(i.value),n.promise}});var Fyt=q,Byt=ht,jyt=xc,Vyt=r1.CONSTRUCTOR;Fyt({target:"Promise",stat:!0,forced:Vyt},{reject:function(t){var r=jyt.f(this);return Byt(r.reject,void 0,t),r.promise}});var Uyt=ct,Gyt=_t,Hyt=xc,yve=function(e,t){if(Uyt(e),Gyt(t)&&t.constructor===e)return t;var r=Hyt.f(e),n=r.resolve;return n(t),r.promise},Wyt=q,qyt=ir,Yyt=r1.CONSTRUCTOR,Kyt=yve;
659qyt("Promise");Wyt({target:"Promise",stat:!0,forced:Yyt},{resolve:function(t){return Kyt(this,t)}});var Zyt=q,Xyt=ht,Jyt=Cr,Qyt=xc,ext=e1,txt=ys,rxt=AT;Zyt({target:"Promise",stat:!0,forced:rxt},{allSettled:function(t){var r=this,n=Qyt.f(r),a=n.resolve,i=n.reject,o=ext(function(){var s=Jyt(r.resolve),l=[],u=0,c=1;txt(t,function(d){var f=u++,h=!1;c++,Xyt(s,r,d).then(function(p){h||(h=!0,l[f]={status:"fulfilled",value:p},--c||a(l))},function(p){h||(h=!0,l[f]={status:"rejected",reason:p},--c||a(l))})}),--c||a(l)});return o.error&&i(o.value),n.promise}});var nxt=q,axt=ht,ixt=Cr,oxt=ir,sxt=xc,lxt=e1,uxt=ys,cxt=AT,QZ="No one promise resolved";nxt({target:"Promise",stat:!0,forced:cxt},{any:function(t){var r=this,n=oxt("AggregateError"),a=sxt.f(r),i=a.resolve,o=a.reject,s=lxt(function(){var l=ixt(r.resolve),u=[],c=0,d=1,f=!1;uxt(t,function(h){var p=c++,v=!1;d++,axt(l,r,h).then(function(m){v||f||(f=!0,i(m))},function(m){v||f||(v=!0,u[p]=m,--d||o(new n(u,QZ)))})}),--d||o(new n(u,QZ))});return s.error&&o(s.value),a.promise}});var dxt=q,lk=t1,fxt=ge,xve=ir,bve=wt,hxt=ug,eX=yve,pxt=yr,HR=lk&&lk.prototype,vxt=!!lk&&fxt(function(){HR.finally.call({then:function(){}},function(){})});dxt({target:"Promise",proto:!0,real:!0,forced:vxt},{finally:function(e){var t=hxt(this,xve("Promise")),r=bve(e);return this.then(r?function(n){return eX(t,e()).then(function(){return n})}:e,r?function(n){return eX(t,e()).then(function(){throw n})}:e)}});if(bve(lk)){var tX=xve("Promise").prototype.finally;HR.finally!==tX&&pxt(HR,"finally",tX,{unsafe:!0})}var gxt=q,mxt=Fi,yxt=Cr,xxt=ct,bxt=ge,wxt=!bxt(function(){Reflect.apply(function(){})});gxt({target:"Reflect",stat:!0,forced:wxt},{apply:function(t,r,n){return mxt(yxt(t),r,xxt(n))}});var _xt=q,Sxt=ir,C5=Fi,kxt=xpe,rX=Az,Cxt=ct,nX=_t,Txt=zi,wve=ge,Kz=Sxt("Reflect","construct"),Axt=Object.prototype,Ext=[].push,_ve=wve(function(){function e(){}return!(Kz(function(){},[],e)instanceof e)}),Sve=!wve(function(){Kz(function(){})}),aX=_ve||Sve;_xt({target:"Reflect",stat:!0,forced:aX,sham:aX},{construct:function(t,r){rX(t),Cxt(r);var n=arguments.length<3?t:rX(arguments[2]);if(Sve&&!_ve)return Kz(t,r,n);if(t==n){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var a=[null];return C5(Ext,a,r),new(C5(kxt,t,a))}var i=n.prototype,o=Txt(nX(i)?i:Axt),s=C5(t,o,r);return nX(s)?s:o}});var Nxt=q,Ixt=Qe,iX=ct,Pxt=vc,kve=or,Mxt=ge,Dxt=Mxt(function(){Reflect.defineProperty(kve.f({},1,{value:1}),1,{value:2})});Nxt({target:"Reflect",stat:!0,forced:Dxt,sham:!Ixt},{defineProperty:function(t,r,n){iX(t);var a=Pxt(r);iX(n);try{return kve.f(t,a,n),!0}catch{return!1}}});var Lxt=q,Rxt=ct,$xt=pn.f;Lxt({target:"Reflect",stat:!0},{deleteProperty:function(t,r){var n=$xt(Rxt(t),r);return n&&!n.configurable?!1:delete t[r]}});var oX=It,Cve=function(e){return e!==void 0&&(oX(e,"value")||oX(e,"writable"))},Oxt=q,zxt=ht,Fxt=_t,Bxt=ct,jxt=Cve,Vxt=pn,Uxt=Bi;function Tve(e,t){var r=arguments.length<3?e:arguments[2],n,a;if(Bxt(e)===r)return e[t];if(n=Vxt.f(e,t),n)return jxt(n)?n.value:n.get===void 0?void 0:zxt(n.get,r);if(Fxt(a=Uxt(e)))return Tve(a,t,r)}Oxt({target:"Reflect",stat:!0},{get:Tve});var Gxt=q,Hxt=Qe,Wxt=ct,qxt=pn;Gxt({target:"Reflect",stat:!0,sham:!Hxt},{getOwnPropertyDescriptor:function(t,r){return qxt.f(Wxt(t),r)}});var Yxt=q,Kxt=ct,Zxt=Bi,Xxt=sz;Yxt({target:"Reflect",stat:!0,sham:!Xxt},{getPrototypeOf:function(t){return Zxt(Kxt(t))}});var Jxt=q;Jxt({target:"Reflect",stat:!0},{has:function(t,r){return r in t}});var Qxt=q,e1t=ct,t1t=Dz;Qxt({target:"Reflect",stat:!0},{isExtensible:function(t){return e1t(t),t1t(t)}});var r1t=q,n1t=Z6;r1t({target:"Reflect",stat:!0},{ownKeys:n1t});var a1t=q,i1t=ir,o1t=ct,s1t=cg;a1t({target:"Reflect",stat:!0,sham:!s1t},{preventExtensions:function(t){o1t(t);try{var r=i1t("Object","preventExtensions");return r&&r(t),!0}catch{return!1}}});var l1t=q,u1t=ht,c1t=ct,sX=_t,d1t=Cve,f1t=ge,WR=or,lX=pn,h1t=Bi,uX=$i;function Ave(e,t,r){var n=arguments.length<4?e:arguments[3],a=lX.f(c1t(e),t),i,o,s;if(!a){if(sX(o=h1t(e)))return Ave(o,t,r,n);a=uX(0)}if(d1t(a)){if(a.writable===!1||!sX(n))return!1;if(i=lX.f(n,t)){if(i.get||i.set||i.writable===!1)return!1;
659i.value=r,WR.f(n,t,i)}else WR.f(n,t,uX(0,r))}else{if(s=a.set,s===void 0)return!1;u1t(s,n,r)}return!0}var p1t=f1t(function(){var e=function(){},t=WR.f(new e,"a",{configurable:!0});return Reflect.set(e.prototype,"a",1,t)!==!1});l1t({target:"Reflect",stat:!0,forced:p1t},{set:Ave});var v1t=q,g1t=ct,m1t=che,cX=gs;cX&&v1t({target:"Reflect",stat:!0},{setPrototypeOf:function(t,r){g1t(t),m1t(r);try{return cX(t,r),!0}catch{return!1}}});var y1t=q,x1t=Re,b1t=Za;y1t({global:!0},{Reflect:{}});b1t(x1t.Reflect,"Reflect",!0);var w1t=_t,_1t=ta,S1t=St,k1t=S1t("match"),n1=function(e){var t;return w1t(e)&&((t=e[k1t])!==void 0?!!t:_1t(e)=="RegExp")},C1t=ct,Zz=function(){var e=C1t(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},T1t=ht,A1t=It,E1t=Oi,N1t=Zz,dX=RegExp.prototype,a1=function(e){var t=e.flags;return t===void 0&&!("flags"in dX)&&!A1t(e,"flags")&&E1t(dX,e)?T1t(N1t,e):t},Xz=ge,I1t=Re,Jz=I1t.RegExp,Qz=Xz(function(){var e=Jz("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),P1t=Qz||Xz(function(){return!Jz("a","y").sticky}),M1t=Qz||Xz(function(){var e=Jz("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),ET={BROKEN_CARET:M1t,MISSED_STICKY:P1t,UNSUPPORTED_Y:Qz},D1t=ge,L1t=Re,R1t=L1t.RegExp,e8=D1t(function(){var e=R1t(".","s");return!(e.dotAll&&e.exec(` 660`)&&e.flags==="s")}),$1t=ge,O1t=Re,z1t=O1t.RegExp,Eve=$1t(function(){var e=z1t("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),F1t=Qe,t8=Re,i1=_e,B1t=Vx,j1t=ig,V1t=ra,U1t=Cl.f,fX=Oi,G1t=n1,hX=vt,H1t=a1,Nve=ET,W1t=dhe,q1t=yr,Y1t=ge,K1t=It,Z1t=Wr.enforce,X1t=sg,J1t=St,Ive=e8,Pve=Eve,Q1t=J1t("match"),zu=t8.RegExp,Bh=zu.prototype,ebt=t8.SyntaxError,tbt=i1(Bh.exec),uk=i1("".charAt),pX=i1("".replace),vX=i1("".indexOf),rbt=i1("".slice),nbt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,nf=/a/g,T5=/a/g,abt=new zu(nf)!==nf,Mve=Nve.MISSED_STICKY,ibt=Nve.UNSUPPORTED_Y,obt=F1t&&(!abt||Mve||Ive||Pve||Y1t(function(){return T5[Q1t]=!1,zu(nf)!=nf||zu(T5)==T5||zu(nf,"i")!="/a/i"})),sbt=function(e){for(var t=e.length,r=0,n="",a=!1,i;r<=t;r++){if(i=uk(e,r),i==="\\"){n+=i+uk(e,++r);continue}!a&&i==="."?n+="[\\s\\S]":(i==="["?a=!0:i==="]"&&(a=!1),n+=i)}return n},lbt=function(e){for(var t=e.length,r=0,n="",a=[],i={},o=!1,s=!1,l=0,u="",c;r<=t;r++){if(c=uk(e,r),c==="\\")c=c+uk(e,++r);else if(c==="]")o=!1;else if(!o)switch(!0){case c==="[":o=!0;break;case c==="(":tbt(nbt,rbt(e,r+1))&&(r+=2,s=!0),n+=c,l++;continue;case(c===">"&&s):if(u===""||K1t(i,u))throw new ebt("Invalid capture group name");i[u]=!0,a[a.length]=[u,l],s=!1,u="";continue}s?u+=c:n+=c}return[n,a]};if(B1t("RegExp",obt)){for(var Qc=function(t,r){var n=fX(Bh,this),a=G1t(t),i=r===void 0,o=[],s=t,l,u,c,d,f,h;if(!n&&a&&i&&t.constructor===Qc)return t;if((a||fX(Bh,t))&&(t=t.source,i&&(r=H1t(s))),t=t===void 0?"":hX(t),r=r===void 0?"":hX(r),s=t,Ive&&"dotAll"in nf&&(u=!!r&&vX(r,"s")>-1,u&&(r=pX(r,/s/g,""))),l=r,Mve&&"sticky"in nf&&(c=!!r&&vX(r,"y")>-1,c&&ibt&&(r=pX(r,/y/g,""))),Pve&&(d=lbt(t),t=d[0],o=d[1]),f=j1t(zu(t,r),n?this:Bh,Qc),(u||c||o.length)&&(h=Z1t(f),u&&(h.dotAll=!0,h.raw=Qc(sbt(t),l)),c&&(h.sticky=!0),o.length&&(h.groups=o)),t!==s)try{V1t(f,"source",s===""?"(?:)":s)}catch{}return f},gX=U1t(zu),mX=0;gX.length>mX;)W1t(Qc,zu,gX[mX++]);Bh.constructor=Qc,Qc.prototype=Bh,q1t(t8,"RegExp",Qc,{constructor:!0})}X1t("RegExp");var ubt=Qe,cbt=e8,dbt=ta,fbt=vn,hbt=Wr.get,yX=RegExp.prototype,pbt=TypeError;ubt&&cbt&&fbt(yX,"dotAll",{configurable:!0,get:function(){if(this!==yX){if(dbt(this)==="RegExp")return!!hbt(this).dotAll;throw pbt("Incompatible receiver, RegExp required")}}});var cp=ht,NT=_e,vbt=vt,gbt=Zz,mbt=ET,ybt=tg,xbt=zi,bbt=Wr.get,wbt=e8,_bt=Eve,Sbt=ybt("native-string-replace",String.prototype.replace),ck=RegExp.prototype.exec,qR=ck,kbt=NT("".charAt),Cbt=NT("".indexOf),Tbt=NT("".replace),A5=NT("".slice),YR=function(){var e=/a/,t=/b*/g;return cp(ck,e,"a"),cp(ck,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),Dve=mbt.BROKEN_CARET,KR=/()??/.exec("")[1]!==void 0,Abt=YR||KR||Dve||wbt||_bt;Abt&&(qR=function(t){var r=this,n=bbt(r),a=vbt(t),i=n.raw,o,s,l,u,c,d,f;if(i)return i.lastIndex=r.lastIndex,o=cp(qR,i,a),r.lastIndex=i.lastIndex,o;var h=n.groups,p=Dve&&r.sticky,v=cp(gbt,r),m=r.source,g=0,x=a;if(p&&(v=Tbt(v,"y",""),Cbt(v,"g")===-1&&(v+="g"),x=A5(a,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&kbt(a,r.lastIndex-1)!==` 661`)&&(m="(?: "+m+")",x=" "+x,g++),s=new RegExp("^(?:"+m+")",v)),KR&&(s=new RegExp("^"+m+"$(?!\\s)",v)),YR&&(l=r.lastIndex),u=cp(ck,p?s:r,x),p?u?(u.input=A5(u.input,g),u[0]=A5(u[0],g),u.index=r.lastIndex,r.lastIndex+=u[0].length):r.lastIndex=0:YR&&u&&(r.lastIndex=r.global?u.index+u[0].length:l),KR&&u&&u.length>1&&cp(Sbt,u[0],s,function(){for(c=1;c<arguments.length-2;c++)arguments[c]===void 0&&(u[c]=void 0)}),u&&h)for(u.groups=d=xbt(null),c=0;c<h.length;c++)f=h[c],d[f[0]]=u[f[1]];return u});var IT=qR,Ebt=q,xX=IT;Ebt({target:"RegExp",proto:!0,forced:/./.exec!==xX},{exec:xX});var Nbt=Re,Ibt=Qe,Pbt=vn,Mbt=Zz,Dbt=ge,Lve=Nbt.RegExp,Rve=Lve.prototype,Lbt=Ibt&&Dbt(function(){var e=!0;try{Lve(".","d")}catch{e=!1}var t={},r="",n=e?"dgimsy":"gimsy",a=function(l,u){Object.defineProperty(t,l,{get:function(){return r+=u,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};e&&(i.hasIndices="d");for(var o in i)a(o,i[o]);var s=Object.getOwnPropertyDescriptor(Rve,"flags").get.call(t);return s!==n||r!==n});Lbt&&Pbt(Rve,"flags",{configurable:!0,get:Mbt});var Rbt=Qe,$bt=ET.MISSED_STICKY,Obt=ta,zbt=vn,Fbt=Wr.get,bX=RegExp.prototype,Bbt=TypeError;Rbt&&$bt&&zbt(bX,"sticky",{configurable:!0,get:function(){if(this!==bX){if(Obt(this)==="RegExp")return!!Fbt(this).sticky;throw Bbt("Incompatible receiver, RegExp required")}}});var jbt=q,wX=ht,Vbt=wt,_X=ct,Ubt=vt,Gbt=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},t.test("abc")===!0&&e}(),Hbt=/./.test;jbt({target:"RegExp",proto:!0,forced:!Gbt},{test:function(e){var t=_X(this),r=Ubt(e),n=t.exec;if(!Vbt(n))return wX(Hbt,t,r);var a=wX(n,t,r);return a===null?!1:(_X(a),!0)}});var Wbt=ng.PROPER,qbt=yr,Ybt=ct,SX=vt,Kbt=ge,Zbt=a1,r8="toString",Xbt=Reg
661Exp.prototype,$ve=Xbt[r8],Jbt=Kbt(function(){return $ve.call({source:"a",flags:"b"})!="/a/b"}),Qbt=Wbt&&$ve.name!=r8;(Jbt||Qbt)&&qbt(RegExp.prototype,r8,function(){var t=Ybt(this),r=SX(t.source),n=SX(Zbt(t));return"/"+r+"/"+n},{unsafe:!0});var ewt=mT,twt=Tpe;ewt("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},twt);var rwt=q,nwt=_e,awt=Hr,iwt=Tr,owt=vt,swt=ge,lwt=nwt("".charAt),uwt=swt(function(){return"ð ®·".at(-2)!=="\uD842"});rwt({target:"String",proto:!0,forced:uwt},{at:function(t){var r=owt(awt(this)),n=r.length,a=iwt(t),i=a>=0?a:n+a;return i<0||i>=n?void 0:lwt(r,i)}});var n8=_e,cwt=Tr,dwt=vt,fwt=Hr,hwt=n8("".charAt),kX=n8("".charCodeAt),pwt=n8("".slice),CX=function(e){return function(t,r){var n=dwt(fwt(t)),a=cwt(r),i=n.length,o,s;return a<0||a>=i?e?"":void 0:(o=kX(n,a),o<55296||o>56319||a+1===i||(s=kX(n,a+1))<56320||s>57343?e?hwt(n,a):o:e?pwt(n,a,a+2):(o-55296<<10)+(s-56320)+65536)}},PT={codeAt:CX(!1),charAt:CX(!0)},vwt=q,gwt=PT.codeAt;vwt({target:"String",proto:!0},{codePointAt:function(t){return gwt(this,t)}});var mwt=n1,ywt=TypeError,a8=function(e){if(mwt(e))throw ywt("The method doesn't accept regular expressions");return e},xwt=St,bwt=xwt("match"),i8=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[bwt]=!1,"/./"[e](t)}catch{}}return!1},wwt=q,Ove=gc,_wt=pn.f,Swt=Ka,TX=vt,kwt=a8,Cwt=Hr,Twt=i8,AX=Ove("".endsWith),Awt=Ove("".slice),Ewt=Math.min,zve=Twt("endsWith"),Nwt=!zve&&!!function(){var e=_wt(String.prototype,"endsWith");return e&&!e.writable}();wwt({target:"String",proto:!0,forced:!Nwt&&!zve},{endsWith:function(t){var r=TX(Cwt(this));kwt(t);var n=arguments.length>1?arguments[1]:void 0,a=r.length,i=n===void 0?a:Ewt(Swt(n),a),o=TX(t);return AX?AX(r,o,i):Awt(r,i-o.length,i)===o}});var Iwt=q,Pwt=_e,Mwt=ps,Dwt=RangeError,EX=String.fromCharCode,NX=String.fromCodePoint,Lwt=Pwt([].join),Rwt=!!NX&&NX.length!=1;Iwt({target:"String",stat:!0,arity:1,forced:Rwt},{fromCodePoint:function(t){for(var r=[],n=arguments.length,a=0,i;n>a;){if(i=+arguments[a++],Mwt(i,1114111)!==i)throw Dwt(i+" is not a valid code point");r[a]=i<65536?EX(i):EX(((i-=65536)>>10)+55296,i%1024+56320)}return Lwt(r,"")}});var $wt=q,Owt=_e,zwt=a8,Fwt=Hr,IX=vt,Bwt=i8,jwt=Owt("".indexOf);$wt({target:"String",proto:!0,forced:!Bwt("includes")},{includes:function(t){return!!~jwt(IX(Fwt(this)),IX(zwt(t)),arguments.length>1?arguments[1]:void 0)}});var Vwt=PT.charAt,Uwt=vt,Fve=Wr,Gwt=fz,PX=uT,Bve="String Iterator",Hwt=Fve.set,Wwt=Fve.getterFor(Bve);Gwt(String,"String",function(e){Hwt(this,{type:Bve,string:Uwt(e),index:0})},function(){var t=Wwt(this),r=t.string,n=t.index,a;return n>=r.length?PX(void 0,!0):(a=Vwt(r,n),t.index+=a.length,PX(a,!1))});var MX=gc,DX=yr,qwt=IT,LX=ge,jve=St,Ywt=ra,Kwt=jve("species"),E5=RegExp.prototype,MT=function(e,t,r,n){var a=jve(e),i=!LX(function(){var u={};return u[a]=function(){return 7},""[e](u)!=7}),o=i&&!LX(function(){var u=!1,c=/a/;return e==="split"&&(c={},c.constructor={},c.constructor[Kwt]=function(){return c},c.flags="",c[a]=/./[a]),c.exec=function(){return u=!0,null},c[a](""),!u});if(!i||!o||r){var s=MX(/./[a]),l=t(a,""[e],function(u,c,d,f,h){var p=MX(u),v=c.exec;return v===qwt||v===E5.exec?i&&!h?{done:!0,value:s(c,d,f)}:{done:!0,value:p(d,c,f)}:{done:!1}});DX(String.prototype,e,l[0]),DX(E5,a,l[1])}n&&Ywt(E5[a],"sham",!0)},Zwt=PT.charAt,DT=function(e,t,r){return t+(r?Zwt(e,t).length:1)},RX=ht,Xwt=ct,Jwt=wt,Qwt=ta,e_t=IT,t_t=TypeError,o1=function(e,t){var r=e.exec;if(Jwt(r)){var n=RX(r,e,t);return n!==null&&Xwt(n),n}if(Qwt(e)==="RegExp")return RX(e_t,e,t);throw t_t("RegExp#exec called on incompatible receiver")},r_t=ht,n_t=MT,a_t=ct,i_t=Ta,o_t=Ka,N5=vt,s_t=Hr,l_t=kl,u_t=DT,$X=o1;n_t("match",function(e,t,r){return[function(a){var i=s_t(this),o=i_t(a)?void 0:l_t(a,e);return o?r_t(o,a,i):new RegExp(a)[e](N5(i))},function(n){var a=a_t(this),i=N5(n),o=r(t,a,i);if(o.done)return o.value;if(!a.global)return $X(a,i);var s=a.unicode;a.lastIndex=0;for(var l=[],u=0,c;(c=$X(a,i))!==null;){var d=N5(c[0]);l[u]=d,d===""&&(a.lastIndex=u_t(i,o_t(a.lastIndex),s)),u++}return u===0?null:l}]});
661var c_t=q,d_t=ht,Vve=gc,f_t=dz,xw=uT,OX=Hr,Uve=Ka,qy=vt,h_t=ct,p_t=Ta,v_t=ta,g_t=n1,Gve=a1,m_t=kl,y_t=yr,x_t=ge,b_t=St,w_t=ug,__t=DT,S_t=o1,Hve=Wr,k_t=V6,dk=b_t("matchAll"),Wve="RegExp String",qve=Wve+" Iterator",C_t=Hve.set,T_t=Hve.getterFor(qve),zX=RegExp.prototype,A_t=TypeError,ZR=Vve("".indexOf),fk=Vve("".matchAll),I5=!!fk&&!x_t(function(){fk("a",/./)}),E_t=f_t(function(t,r,n,a){C_t(this,{type:qve,regexp:t,string:r,global:n,unicode:a,done:!1})},Wve,function(){var t=T_t(this);if(t.done)return xw(void 0,!0);var r=t.regexp,n=t.string,a=S_t(r,n);return a===null?(t.done=!0,xw(void 0,!0)):t.global?(qy(a[0])===""&&(r.lastIndex=__t(n,Uve(r.lastIndex),t.unicode)),xw(a,!1)):(t.done=!0,xw(a,!1))}),Yve=function(e){var t=h_t(this),r=qy(e),n=w_t(t,RegExp),a=qy(Gve(t)),i,o,s;return i=new n(n===RegExp?t.source:t,a),o=!!~ZR(a,"g"),s=!!~ZR(a,"u"),i.lastIndex=Uve(t.lastIndex),new E_t(i,r,o,s)};c_t({target:"String",proto:!0,forced:I5},{matchAll:function(t){var r=OX(this),n,a,i,o;if(p_t(t)){if(I5)return fk(r,t)}else{if(g_t(t)&&(n=qy(OX(Gve(t))),!~ZR(n,"g")))throw A_t("`.matchAll` does not allow non-global regexes");if(I5)return fk(r,t);if(i=m_t(t,dk),i===void 0&&k_t&&v_t(t)=="RegExp"&&(i=Yve),i)return d_t(i,t,r)}return a=qy(r),o=new RegExp(t,"g"),o[dk](a)}});dk in zX||y_t(zX,dk,Yve);var N_t=_l,Kve=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(N_t),I_t=q,P_t=Iz.end,M_t=Kve;I_t({target:"String",proto:!0,forced:M_t},{padEnd:function(t){return P_t(this,t,arguments.length>1?arguments[1]:void 0)}});var D_t=q,L_t=Iz.start,R_t=Kve;D_t({target:"String",proto:!0,forced:R_t},{padStart:function(t){return L_t(this,t,arguments.length>1?arguments[1]:void 0)}});var $_t=q,Zve=_e,O_t=en,z_t=Dt,FX=vt,F_t=Bt,BX=Zve([].push),B_t=Zve([].join);$_t({target:"String",stat:!0},{raw:function(t){var r=O_t(z_t(t).raw),n=F_t(r);if(!n)return"";for(var a=arguments.length,i=[],o=0;;){if(BX(i,FX(r[o++])),o===n)return B_t(i,"");o<a&&BX(i,FX(arguments[o]))}}});var j_t=q,V_t=gT;j_t({target:"String",proto:!0},{repeat:V_t});var o8=_e,U_t=Dt,G_t=Math.floor,P5=o8("".charAt),H_t=o8("".replace),M5=o8("".slice),W_t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,q_t=/\$([$&'`]|\d{1,2})/g,Xve=function(e,t,r,n,a,i){var o=r+e.length,s=n.length,l=q_t;return a!==void 0&&(a=U_t(a),l=W_t),H_t(i,l,function(u,c){var d;switch(P5(c,0)){case"$":return"$";case"&":return e;case"`":return M5(t,0,r);case"'":return M5(t,o);case"<":d=a[M5(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var h=G_t(f/10);return h===0?u:h<=s?n[h-1]===void 0?P5(c,1):n[h-1]+P5(c,1):u}d=n[f-1]}return d===void 0?"":d})},Y_t=Fi,jX=ht,LT=_e,K_t=MT,Z_t=ge,X_t=ct,J_t=wt,Q_t=Ta,eSt=Tr,tSt=Ka,Th=vt,rSt=Hr,nSt=DT,aSt=kl,iSt=Xve,oSt=o1,sSt=St,XR=sSt("replace"),lSt=Math.max,uSt=Math.min,cSt=LT([].concat),D5=LT([].push),VX=LT("".indexOf),UX=LT("".slice),dSt=function(e){return e===void 0?e:String(e)},fSt=function(){return"a".replace(/./,"$0")==="$0"}(),GX=function(){return/./[XR]?/./[XR]("a","$0")==="":!1}(),hSt=!Z_t(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});K_t("replace",function(e,t,r){var n=GX?"$":"$0";return[function(i,o){var s=rSt(this),l=Q_t(i)?void 0:aSt(i,XR);return l?jX(l,i,s,o):jX(t,Th(s),i,o)},function(a,i){var o=X_t(this),s=Th(a);if(typeof i=="string"&&VX(i,n)===-1&&VX(i,"$<")===-1){var l=r(t,o,s,i);if(l.done)return l.value}var u=J_t(i);u||(i=Th(i));var c=o.global;if(c){var d=o.unicode;o.lastIndex=0}for(var f=[];;){var h=oSt(o,s);if(h===null||(D5(f,h),!c))break;var p=Th(h[0]);p===""&&(o.lastIndex=nSt(s,tSt(o.lastIndex),d))}for(var v="",m=0,g=0;g<f.length;g++){h=f[g];for(var x=Th(h[0]),b=lSt(uSt(eSt(h.index),s.length),0),_=[],k=1;k<h.length;k++)D5(_,dSt(h[k]));var S=h.groups;if(u){var C=cSt([x],_,b,s);S!==void 0&&D5(C,S);var T=Th(Y_t(i,void 0,C))}else T=iSt(x,s,b,_,S,i);b>=m&&(v+=UX(s,m,b)+T,m=b+x.length)}return v+UX(s,m)}]},!hSt||!fSt||GX);var pSt=q,vSt=ht,s8=_e,HX=Hr,gSt=wt,mSt=Ta,ySt=n1,c0=vt,xSt=kl,bSt=a1,wSt=Xve,_St=St,SSt=_St("replace"),kSt=TypeError,Jve=s8("".indexOf);s8("".replace);var WX=s8("".slice),CSt=Math.max,qX=function(e,t,r){return r>e.length?-1:t===""?r:Jve(e,t,r)};pSt({target:"String",proto:!0},{replaceAll:function(t,r){var n=HX(this),a,i,o,s,l,u,c,d,f,h=0,p=0,v="";if(!mSt(t)){if(a=ySt(t),a&&(i=c0(HX(bSt(t))),!~Jve(i,"g")))throw kSt("`.replaceAll` does not allow non-global regexes");
661if(o=xSt(t,SSt),o)return vSt(o,t,n,r)}for(s=c0(n),l=c0(t),u=gSt(r),u||(r=c0(r)),c=l.length,d=CSt(1,c),h=qX(s,l,0);h!==-1;)f=u?c0(r(l,h,s)):wSt(l,s,h,[],void 0,r),v+=WX(s,p,h)+f,p=h+c,h=qX(s,l,h+d);return p<s.length&&(v+=WX(s,p)),v}});var TSt=ht,ASt=MT,ESt=ct,NSt=Ta,ISt=Hr,YX=Kpe,KX=vt,PSt=kl,MSt=o1;ASt("search",function(e,t,r){return[function(a){var i=ISt(this),o=NSt(a)?void 0:PSt(a,e);return o?TSt(o,a,i):new RegExp(a)[e](KX(i))},function(n){var a=ESt(this),i=KX(n),o=r(t,a,i);if(o.done)return o.value;var s=a.lastIndex;YX(s,0)||(a.lastIndex=0);var l=MSt(a,i);return YX(a.lastIndex,s)||(a.lastIndex=s),l===null?-1:l.index}]});var DSt=Fi,d0=ht,l8=_e,LSt=MT,RSt=ct,$St=Ta,OSt=n1,ZX=Hr,zSt=ug,FSt=DT,BSt=Ka,L5=vt,jSt=kl,XX=Gx,JX=o1,VSt=IT,USt=ET,GSt=ge,Ah=USt.UNSUPPORTED_Y,QX=4294967295,HSt=Math.min,Qve=[].push,WSt=l8(/./.exec),Eh=l8(Qve),f0=l8("".slice),qSt=!GSt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"});LSt("split",function(e,t,r){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(a,i){var o=L5(ZX(this)),s=i===void 0?QX:i>>>0;if(s===0)return[];if(a===void 0)return[o];if(!OSt(a))return d0(t,o,a,s);for(var l=[],u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),c=0,d=new RegExp(a.source,u+"g"),f,h,p;(f=d0(VSt,d,o))&&(h=d.lastIndex,!(h>c&&(Eh(l,f0(o,c,f.index)),f.length>1&&f.index<o.length&&DSt(Qve,l,XX(f,1)),p=f[0].length,c=h,l.length>=s)));)d.lastIndex===f.index&&d.lastIndex++;return c===o.length?(p||!WSt(d,""))&&Eh(l,""):Eh(l,f0(o,c)),l.length>s?XX(l,0,s):l}:"0".split(void 0,0).length?n=function(a,i){return a===void 0&&i===0?[]:d0(t,this,a,i)}:n=t,[function(i,o){var s=ZX(this),l=$St(i)?void 0:jSt(i,e);return l?d0(l,i,s,o):d0(n,L5(s),i,o)},function(a,i){var o=RSt(this),s=L5(a),l=r(n,o,s,i,n!==t);if(l.done)return l.value;var u=zSt(o,RegExp),c=o.unicode,d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Ah?"g":"y"),f=new u(Ah?"^(?:"+o.source+")":o,d),h=i===void 0?QX:i>>>0;if(h===0)return[];if(s.length===0)return JX(f,s)===null?[s]:[];for(var p=0,v=0,m=[];v<s.length;){f.lastIndex=Ah?0:v;var g=JX(f,Ah?f0(s,v):s),x;if(g===null||(x=HSt(BSt(f.lastIndex+(Ah?v:0)),s.length))===p)v=FSt(s,v,c);else{if(Eh(m,f0(s,p,v)),m.length===h)return m;for(var b=1;b<=g.length-1;b++)if(Eh(m,g[b]),m.length===h)return m;v=p=x}}return Eh(m,f0(s,p)),m}]},!qSt,Ah);var YSt=q,ege=gc,KSt=pn.f,ZSt=Ka,eJ=vt,XSt=a8,JSt=Hr,QSt=i8,tJ=ege("".startsWith),e2t=ege("".slice),t2t=Math.min,tge=QSt("startsWith"),r2t=!tge&&!!function(){var e=KSt(String.prototype,"startsWith");return e&&!e.writable}();YSt({target:"String",proto:!0,forced:!r2t&&!tge},{startsWith:function(t){var r=eJ(JSt(this));XSt(t);var n=ZSt(t2t(arguments.length>1?arguments[1]:void 0,r.length)),a=eJ(t);return tJ?tJ(r,a,n):e2t(r,n,n+a.length)===a}});var n2t=q,a2t=_e,i2t=Hr,rJ=Tr,o2t=vt,s2t=a2t("".slice),l2t=Math.max,u2t=Math.min,c2t=!"".substr||"ab".substr(-1)!=="b";n2t({target:"String",proto:!0,forced:c2t},{substr:function(t,r){var n=o2t(i2t(this)),a=n.length,i=rJ(t),o,s;return i===1/0&&(i=0),i<0&&(i=l2t(a+i,0)),o=r===void 0?a:rJ(r),o<=0||o===1/0?"":(s=u2t(i+o,a),i>=s?"":s2t(n,i,s))}});var d2t=ng.PROPER,f2t=ge,nJ=wT,aJ="âÂ
á ",u8=function(e){return f2t(function(){return!!nJ[e]()||aJ[e]()!==aJ||d2t&&nJ[e].name!==e})},h2t=q,p2t=dg.trim,v2t=u8;h2t({target:"String",proto:!0,forced:v2t("trim")},{trim:function(){return p2t(this)}});var g2t=dg.end,m2t=u8,rge=m2t("trimEnd")?function(){return g2t(this)}:"".trimEnd,y2t=q,iJ=rge;y2t({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==iJ},{trimRight:iJ});var x2t=q,oJ=rge;x2t({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==oJ},{trimEnd:oJ});var b2t=dg.start,w2t=u8,nge=w2t("trimStart")?function(){return b2t(this)}:"".trimStart,_2t=q,sJ=nge;_2t({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==sJ},{trimLeft:sJ});var S2t=q,lJ=nge;S2t({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==lJ},{trimStart:lJ});var k2t=_e,C2t=Hr,uJ=vt,T2t=/"/g,A2t=k2t("".replace),Xa=function(e,t,r,n){var a=uJ(C2t(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+A2t(uJ(n),T2t,""")+'"'),i+">"+a+"</"+t+">"},E2t=ge,Ja=function(e){return E2t(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})},N2t=q,I2t=Xa,P2t=Ja;N2t({target:"String",proto:!0,forced:P2t("anchor")},{anchor:function(t){return I2t(this,"a","name",t)}});var M2t=q,D2t=Xa,L2t=Ja;M2t({target:"String",proto:!0,forced:L2t("big")},{big:function(){return D2t(this,"big","","")}});var R2t=q,$2t=Xa,O2t=Ja;R2t({target:"String",proto:!0,forced:O2t("blink")},{blink:function(){return $2t(this,"blink","","")}});var z2t=q,F2t=Xa,B2t=Ja;z2t({target:"String",proto:!0,forced:B2t("bold")},{bold:function(){return F2t(this,"b","","")}});var j2t=q,V2t=Xa,U2t=Ja;j2t({target:"String",proto:!0,forced:U2t("fixed")},{fixed:function(){return V2t(this,"tt","","")}});var G2t=q,H2t=Xa,W2t=Ja;G2t({target:"String",proto:!0,forced:W2t("fontcolor")},{fontcolor:function(t){return H2t(this,"font","color",t)}});var q2t=q,Y2t=Xa,K2t=Ja;q2t({target:"String",proto:!0,forced:K2t("fontsize")},{fontsize:function(t){return Y2t(this,"font","size",t)}});var Z2t=q,X2t=Xa,J2t=Ja;Z2t({target:"String",proto:!0,forced:J2t("italics")},{italics:function(){return X2t(this,"i","","")}});var Q2t=q,ekt=Xa,tkt=Ja;Q2t({target:"String",proto:!0,forced:tkt("link")},{link:function(t){return ekt(this,"a","href",t)}});var rkt=q,nkt=Xa,akt=Ja;rkt({target:"String",proto:!0,forced:akt("small")},{small:function(){return nkt(this,"small","","")}});var ikt=q,okt=Xa,skt=Ja;ikt({target:"String",proto:!0,forced:skt("strike")},{strike:function(){return okt(this,"strike","","")}});var lkt=q,ukt=Xa,ckt=Ja;lkt({target:"String",proto:!0,forced:ckt("sub")},{sub:function(){return ukt(this,"sub","","")}});var dkt=q,fkt=Xa,hkt=Ja;dkt({target:"String",proto:!0,forced:hkt("sup")},{sup:function(){return fkt(this,"sup","","")}});var JR={exports:{}},age=Re,R5=ge,pkt=lT,vkt=xt.NATIVE_ARRAY_BUFFER_VIEWS,gkt=age.ArrayBuffer,ed=age.Int8Array,c8=!vkt||!R5(function(){ed(1)})||!R5(function(){new ed(-1)})||!pkt(function(e){new ed,new ed(null),new ed(1.5),new ed(e)},!0)||R5(function(){return new ed(new gkt(2),1,void 0).length!==1}),mkt=Tr,ykt=RangeError,xkt=function(e){var t=mkt(e);
vendor: 6,188 bytes, line 661
661if(t<0)throw ykt("The argument can't be less than 0");return t},bkt=xkt,wkt=RangeError,ige=function(e,t){var r=bkt(e);if(r%t)throw wkt("Wrong offset");return r},_kt=vs,oge=function(e){var t=_kt(e);return t=="BigInt64Array"||t=="BigUint64Array"},Skt=YC,kkt=TypeError,d8=function(e){var t=Skt(e,"number");if(typeof t=="number")throw kkt("Can't convert number to bigint");return BigInt(t)},Ckt=wo,Tkt=ht,Akt=Az,Ekt=Dt,Nkt=Bt,Ikt=iT,Pkt=Zx,Mkt=lz,Dkt=oge,Lkt=xt.aTypedArrayConstructor,Rkt=d8,sge=function(t){var r=Akt(this),n=Ekt(t),a=arguments.length,i=a>1?arguments[1]:void 0,o=i!==void 0,s=Pkt(n),l,u,c,d,f,h,p,v;if(s&&!Mkt(s))for(p=Ikt(n,s),v=p.next,n=[];!(h=Tkt(v,p)).done;)n.push(h.value);for(o&&a>2&&(i=Ckt(i,arguments[2])),u=Nkt(n),c=new(Lkt(r))(u),d=Dkt(c),l=0;u>l;l++)f=o?i(n[l],l):n[l],c[l]=d?Rkt(f):+f;return c},cJ=q,lge=Re,dJ=ht,$kt=Qe,Okt=c8,fg=xt,uge=hT,fJ=xs,zkt=$i,h0=ra,Fkt=Bz,Bkt=Ka,hJ=Zhe,$5=ige,cge=vc,p0=It,jkt=vs,QR=_t,Vkt=Uf,Ukt=zi,Gkt=Oi,bw=gs,Hkt=Cl.f,pJ=sge,Wkt=gn.forEach,qkt=sg,Ykt=vn,dge=or,fge=pn,f8=Wr,Kkt=ig,e$=f8.get,Zkt=f8.set,Xkt=f8.enforce,hge=dge.f,Jkt=fge.f,Qkt=Math.round,O5=lge.RangeError,pge=uge.ArrayBuffer,eCt=pge.prototype,tCt=uge.DataView,ww=fg.NATIVE_ARRAY_BUFFER_VIEWS,vJ=fg.TYPED_ARRAY_TAG,gJ=fg.TypedArray,v0=fg.TypedArrayPrototype,rCt=fg.aTypedArrayConstructor,t$=fg.isTypedArray,_w="BYTES_PER_ELEMENT",z5="Wrong length",mJ=function(e,t){rCt(e);for(var r=0,n=t.length,a=new e(n);n>r;)a[r]=t[r++];return a},Sw=function(e,t){Ykt(e,t,{configurable:!0,get:function(){return e$(this)[t]}})},yJ=function(e){var t;return Gkt(eCt,e)||(t=jkt(e))=="ArrayBuffer"||t=="SharedArrayBuffer"},vge=function(e,t){return t$(e)&&!Vkt(t)&&t in e&&Fkt(+t)&&t>=0},xJ=function(t,r){return r=cge(r),vge(t,r)?zkt(2,t[r]):Jkt(t,r)},bJ=function(t,r,n){return r=cge(r),vge(t,r)&&QR(n)&&p0(n,"value")&&!p0(n,"get")&&!p0(n,"set")&&!n.configurable&&(!p0(n,"writable")||n.writable)&&(!p0(n,"enumerable")||n.enumerable)?(t[r]=n.value,t):hge(t,r,n)};$kt?(ww||(fge.f=xJ,dge.f=bJ,Sw(v0,"buffer"),Sw(v0,"byteOffset"),Sw(v0,"byteLength"),Sw(v0,"length")),cJ({target:"Object",stat:!0,forced:!ww},{getOwnPropertyDescriptor:xJ,defineProperty:bJ}),JR.exports=function(e,t,r){var n=e.match(/\d+/)[0]/8,a=e+(r?"Clamped":"")+"Array",i="get"+e,o="set"+e,s=lge[a],l=s,u=l&&l.prototype,c={},d=function(v,m){var g=e$(v);return g.view[i](m*n+g.byteOffset,!0)},f=function(v,m,g){var x=e$(v);r&&(g=(g=Qkt(g))<0?0:g>255?255:g&255),x.view[o](m*n+x.byteOffset,g,!0)},h=function(v,m){hge(v,m,{get:function(){return d(this,m)},set:function(g){return f(this,m,g)},enumerable:!0})};ww?Okt&&(l=t(function(v,m,g,x){return fJ(v,u),Kkt(function(){return QR(m)?yJ(m)?x!==void 0?new s(m,$5(g,n),x):g!==void 0?new s(m,$5(g,n)):new s(m):t$(m)?mJ(l,m):dJ(pJ,l,m):new s(hJ(m))}(),v,l)}),bw&&bw(l,gJ),Wkt(Hkt(s),function(v){v in l||h0(l,v,s[v])}),l.prototype=u):(l=t(function(v,m,g,x){fJ(v,u);var b=0,_=0,k,S,C;if(!QR(m))C=hJ(m),S=C*n,k=new pge(S);else if(yJ(m)){k=m,_=$5(g,n);var T=m.byteLength;if(x===void 0){if(T%n||(S=T-_,S<0))throw O5(z5)}else if(S=Bkt(x)*n,S+_>T)throw O5(z5);C=S/n}else return t$(m)?mJ(l,m):dJ(pJ,l,m);for(Zkt(v,{buffer:k,byteOffset:_,byteLength:S,length:C,view:new tCt(k)});b<C;)h(v,b++)}),bw&&bw(l,gJ),u=l.prototype=Ukt(v0)),u.constructor!==l&&h0(u,"constructor",l),Xkt(u).TypedArrayConstructor=l,vJ&&h0(u,vJ,a);var p=l!=s;c[a]=l,cJ({global:!0,constructor:!0,forced:p,sham:!ww},c),_w in l||h0(l,_w,n),_w in u||h0(u,_w,n),qkt(a)}):JR.exports=function(){};var Pl=JR.exports,nCt=Pl;nCt("Float32",function(e){return function(r,n,a){return e(this,r,n,a)}});var aCt=Pl;aCt("Float64",function(e){return function(r,n,a){return e(this,r,n,a)}});var iCt=Pl;iCt("Int8",function(e){return function(r,n,a){return e(this,r,n,a)}});var oCt=Pl;oCt("Int16",function(e){return function(r,n,a){return e(this,r,n,a)}});var sCt=Pl;sCt("Int32",function(e){return function(r,n,a){return e(this,r,n,a)}});var lCt=Pl;lCt("Uint8",function(e){return function(r,n,a){return e(this,r,n,a)}});var uCt=Pl;uCt("Uint8",function(e){return function(r,n,a){return e(this,r,n,a)}},!0);var cCt=Pl;cCt("Uint16",function(e){return function(r,n,a){return e(this,r,n,a)}});var dCt=Pl;dCt("Uint32",function(e){return function(r,n,a){return e(this,r,n,a)}});var gge=xt,fCt=Bt,hCt=Tr,pCt=gge.aTypedArray,vCt=gge.exportTypedArrayMethod;vCt("at",function(t){var r=pCt(this),n=fCt(r),a=hCt(t),i=a>=0?a:n+a;return i<0||i>=n?void 0:r[i]});var gCt=_e,mge=xt,mCt=khe,yCt=gCt(mCt),xCt=mge.aTypedArray,bCt=mge.exportTypedArrayMethod;bCt("copyWithin",function(t,r){return yCt(xCt(this),t,r,arguments.length>2?arguments[2]:void 0)});var yge=xt,wCt=gn.every,_Ct=yge.aTypedArray,SCt=yge.exportTypedArrayMethod;SCt("every",function(t){return wCt(_Ct(this),t,arguments.length>1?arguments[1]:void 0)});var xge=xt,kCt=cz,CCt=d8,TCt=vs,ACt=ht,ECt=_e,NCt=ge,ICt=xge.aTypedArray,PCt=xge.exportTypedArrayMethod,MCt=ECt("".slice),DCt=NCt(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),e!==1});PCt("fill",function(t){var r=arguments.length;ICt(this);var n=MCt(TCt(this),0,3)==="Big"?CCt(t):+t;return ACt(kCt,this,n,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)},DCt);var bge=xt,LCt=ug,RCt=bge.aTypedArrayConstructor,$Ct=bge.getTypedArrayConstructor,RT=function(e){return RCt(LCt(e,$Ct(e)))},OCt=yz,zCt=RT,FCt=function(e,t){return OCt(zCt(e),t)},wge=xt,BCt=gn.filter,jCt=FCt,VCt=wge.aTypedArray,UCt=wge.exportTypedArrayMethod;UCt("filter",function(t){var r=BCt(VCt(this),t,arguments.length>1?arguments[1]:void 0);return jCt(this,r)});var _ge=xt,GCt=gn.find,HCt=_ge.aTypedArray,WCt=_ge.exportTypedArrayMethod;WCt("find",function(t){return GCt(HCt(this),t,arguments.length>1?arguments[1]:void 0)});var Sge=xt,qCt=gn.findIndex,YCt=Sge.aTypedArray,KCt=Sge.exportTypedArrayMethod;KCt("findIndex",function(t){return qCt(YCt(this),t,arguments.length>1?arguments[1]:void 0)});var kge=xt,ZCt=sT.findLast,XCt=kge.aTypedArray,JCt=kge.exportTypedArrayMethod;JCt("findLast",function(t){return ZCt(XCt(this),t,arguments.length>1?arguments[1]:void 0)});var Cge=xt,QCt=sT.findLastIndex,eTt=Cge.aTypedArray,tTt=Cge.exportTypedArrayMethod;tTt("findLastIndex",function(t){return QCt(eTt(this),t,arguments.length>1?arguments[1]:void 0)});
vendor: 4,501 bytes, line 661
661var Tge=xt,rTt=gn.forEach,nTt=Tge.aTypedArray,aTt=Tge.exportTypedArrayMethod;aTt("forEach",function(t){rTt(nTt(this),t,arguments.length>1?arguments[1]:void 0)});var iTt=c8,oTt=xt.exportTypedArrayStaticMethod,sTt=sge;oTt("from",sTt,iTt);var Age=xt,lTt=Fx.includes,uTt=Age.aTypedArray,cTt=Age.exportTypedArrayMethod;cTt("includes",function(t){return lTt(uTt(this),t,arguments.length>1?arguments[1]:void 0)});var Ege=xt,dTt=Fx.indexOf,fTt=Ege.aTypedArray,hTt=Ege.exportTypedArrayMethod;hTt("indexOf",function(t){return dTt(fTt(this),t,arguments.length>1?arguments[1]:void 0)});var pTt=Re,vTt=ge,h8=_e,Nge=xt,p8=Bhe,gTt=St,v8=gTt("iterator"),wJ=pTt.Uint8Array,mTt=h8(p8.values),yTt=h8(p8.keys),xTt=h8(p8.entries),g8=Nge.aTypedArray,$T=Nge.exportTypedArrayMethod,jh=wJ&&wJ.prototype,OT=!vTt(function(){jh[v8].call([1])}),Ige=!!jh&&jh.values&&jh[v8]===jh.values&&jh.values.name==="values",Pge=function(){return mTt(g8(this))};$T("entries",function(){return xTt(g8(this))},OT);$T("keys",function(){return yTt(g8(this))},OT);$T("values",Pge,OT||!Ige,{name:"values"});$T(v8,Pge,OT||!Ige,{name:"values"});var Mge=xt,bTt=_e,wTt=Mge.aTypedArray,_Tt=Mge.exportTypedArrayMethod,STt=bTt([].join);_Tt("join",function(t){return STt(wTt(this),t)});var Dge=xt,kTt=Fi,CTt=Vhe,TTt=Dge.aTypedArray,ATt=Dge.exportTypedArrayMethod;ATt("lastIndexOf",function(t){var r=arguments.length;return kTt(CTt,TTt(this),r>1?[t,arguments[1]]:[t])});var Lge=xt,ETt=gn.map,NTt=RT,ITt=Lge.aTypedArray,PTt=Lge.exportTypedArrayMethod;PTt("map",function(t){return ETt(ITt(this),t,arguments.length>1?arguments[1]:void 0,function(r,n){return new(NTt(r))(n)})});var Rge=xt,MTt=c8,DTt=Rge.aTypedArrayConstructor,LTt=Rge.exportTypedArrayStaticMethod;LTt("of",function(){for(var t=0,r=arguments.length,n=new(DTt(this))(r);r>t;)n[t]=arguments[t++];return n},MTt);var $ge=xt,RTt=cT.left,$Tt=$ge.aTypedArray,OTt=$ge.exportTypedArrayMethod;OTt("reduce",function(t){var r=arguments.length;return RTt($Tt(this),t,r,r>1?arguments[1]:void 0)});var Oge=xt,zTt=cT.right,FTt=Oge.aTypedArray,BTt=Oge.exportTypedArrayMethod;BTt("reduceRight",function(t){var r=arguments.length;return zTt(FTt(this),t,r,r>1?arguments[1]:void 0)});var zge=xt,jTt=zge.aTypedArray,VTt=zge.exportTypedArrayMethod,UTt=Math.floor;VTt("reverse",function(){for(var t=this,r=jTt(t).length,n=UTt(r/2),a=0,i;a<n;)i=t[a],t[a++]=t[--r],t[r]=i;return t});var Fge=Re,Bge=ht,m8=xt,GTt=Bt,HTt=ige,WTt=Dt,jge=ge,qTt=Fge.RangeError,r$=Fge.Int8Array,_J=r$&&r$.prototype,Vge=_J&&_J.set,YTt=m8.aTypedArray,KTt=m8.exportTypedArrayMethod,n$=!jge(function(){var e=new Uint8ClampedArray(2);return Bge(Vge,e,{length:1,0:3},1),e[1]!==3}),ZTt=n$&&m8.NATIVE_ARRAY_BUFFER_VIEWS&&jge(function(){var e=new r$(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});KTt("set",function(t){YTt(this);var r=HTt(arguments.length>1?arguments[1]:void 0,1),n=WTt(t);if(n$)return Bge(Vge,this,n,r);var a=this.length,i=GTt(n),o=0;if(i+r>a)throw qTt("Wrong length");for(;o<i;)this[r+o]=n[o++]},!n$||ZTt);var Uge=xt,XTt=RT,JTt=ge,QTt=Hf,eAt=Uge.aTypedArray,tAt=Uge.exportTypedArrayMethod,rAt=JTt(function(){new Int8Array(1).slice()});tAt("slice",function(t,r){for(var n=QTt(eAt(this),t,r),a=XTt(this),i=0,o=n.length,s=new a(o);o>i;)s[i]=n[i++];return s},rAt);var Gge=xt,nAt=gn.some,aAt=Gge.aTypedArray,iAt=Gge.exportTypedArrayMethod;iAt("some",function(t){return nAt(aAt(this),t,arguments.length>1?arguments[1]:void 0)});var oAt=Re,sAt=gc,a$=ge,lAt=Cr,uAt=vz,Hge=xt,SJ=Ghe,cAt=Hhe,kJ=Sl,CJ=gz,dAt=Hge.aTypedArray,fAt=Hge.exportTypedArrayMethod,Yy=oAt.Uint16Array,Op=Yy&&sAt(Yy.prototype.sort),hAt=!!Op&&!(a$(function(){Op(new Yy(2),null)})&&a$(function(){Op(new Yy(2),{})})),TJ=!!Op&&!a$(function(){if(kJ)return kJ<74;if(SJ)return SJ<67;if(cAt)return!0;if(CJ)return CJ<602;var e=new Yy(516),t=Array(516),r,n;for(r=0;r<516;r++)n=r%4,e[r]=515-r,t[r]=r-2*n+3;for(Op(e,function(a,i){return(a/4|0)-(i/4|0)}),r=0;r<516;r++)if(e[r]!==t[r])return!0}),pAt=function(e){return function(t,r){return e!==void 0?+e(t,r)||0:r!==r?-1:t!==t?1:t===0&&r===0?1/t>0&&1/r<0?1:-1:t>r}};fAt("sort",function(t){return t!==void 0&&lAt(t),TJ?Op(this,t):uAt(dAt(this),pAt(t))},!TJ||hAt);var Wge=xt,vAt=Ka,AJ=ps,gAt=RT,mAt=Wge.aTypedArray,yAt=Wge.exportTypedArrayMethod;yAt("subarray",function(t,r){var n=mAt(this),a=n.length,i=AJ(t,a),o=gAt(n);return new o(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,vAt((r===void 0?a:AJ(r,a))-i))});var xAt=Re,bAt=Fi,qge=xt,i$=ge,EJ=Hf,hk=xAt.Int8Array,NJ=qge.aTypedArray,wAt=qge.exportTypedArrayMethod,Yge=[].toLocaleStr
vendor: 4,478 bytes, line 661
661ing,_At=!!hk&&i$(function(){Yge.call(new hk(1))}),SAt=i$(function(){return[1,2].toLocaleString()!=new hk([1,2]).toLocaleString()})||!i$(function(){hk.prototype.toLocaleString.call([1,2])});wAt("toLocaleString",function(){return bAt(Yge,_At?EJ(NJ(this)):NJ(this),EJ(arguments))},SAt);var kAt=Yhe,y8=xt,CAt=y8.aTypedArray,TAt=y8.exportTypedArrayMethod,AAt=y8.getTypedArrayConstructor;TAt("toReversed",function(){return kAt(CAt(this),AAt(this))});var zT=xt,EAt=_e,NAt=Cr,IAt=yz,PAt=zT.aTypedArray,MAt=zT.getTypedArrayConstructor,DAt=zT.exportTypedArrayMethod,LAt=EAt(zT.TypedArrayPrototype.sort);DAt("toSorted",function(t){t!==void 0&&NAt(t);var r=PAt(this),n=IAt(MAt(r),r);return LAt(n,t)});var RAt=xt.exportTypedArrayMethod,$At=ge,OAt=Re,zAt=_e,IJ=OAt.Uint8Array,FAt=IJ&&IJ.prototype||{},pk=[].toString,BAt=zAt([].join);$At(function(){pk.call({})})&&(pk=function(){return BAt(this)});var jAt=FAt.toString!=pk;RAt("toString",pk,jAt);var VAt=Khe,x8=xt,UAt=oge,GAt=Tr,HAt=d8,WAt=x8.aTypedArray,qAt=x8.getTypedArrayConstructor,YAt=x8.exportTypedArrayMethod,KAt=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return e===8}}();YAt("with",function(e,t){var r=WAt(this),n=GAt(e),a=UAt(r)?HAt(t):+t;return VAt(r,qAt(r),n,a)},!KAt);var ZAt=q,b8=_e,XAt=vt,PJ=String.fromCharCode,MJ=b8("".charAt),DJ=b8(/./.exec),LJ=b8("".slice),JAt=/^[\da-f]{2}$/i,QAt=/^[\da-f]{4}$/i;ZAt({global:!0},{unescape:function(t){for(var r=XAt(t),n="",a=r.length,i=0,o,s;i<a;){if(o=MJ(r,i++),o==="%"){if(MJ(r,i)==="u"){if(s=LJ(r,i+1,i+5),DJ(QAt,s)){n+=PJ(parseInt(s,16)),i+=5;continue}}else if(s=LJ(r,i,i+2),DJ(JAt,s)){n+=PJ(parseInt(s,16)),i+=2;continue}}n+=o}return n}});var eEt=_e,RJ=Jx,kw=qf.getWeakData,tEt=xs,rEt=ct,nEt=Ta,F5=_t,aEt=ys,Kge=gn,$J=It,Zge=Wr,iEt=Zge.set,oEt=Zge.getterFor,sEt=Kge.find,lEt=Kge.findIndex,uEt=eEt([].splice),cEt=0,Cw=function(e){return e.frozen||(e.frozen=new Xge)},Xge=function(){this.entries=[]},B5=function(e,t){return sEt(e.entries,function(r){return r[0]===t})};Xge.prototype={get:function(e){var t=B5(this,e);if(t)return t[1]},has:function(e){return!!B5(this,e)},set:function(e,t){var r=B5(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=lEt(this.entries,function(r){return r[0]===e});return~t&&uEt(this.entries,t,1),!!~t}};var Jge={getConstructor:function(e,t,r,n){var a=e(function(l,u){tEt(l,i),iEt(l,{type:t,id:cEt++,frozen:void 0}),nEt(u)||aEt(u,l[n],{that:l,AS_ENTRIES:r})}),i=a.prototype,o=oEt(t),s=function(l,u,c){var d=o(l),f=kw(rEt(u),!0);return f===!0?Cw(d).set(u,c):f[d.id]=c,l};return RJ(i,{delete:function(l){var u=o(this);if(!F5(l))return!1;var c=kw(l);return c===!0?Cw(u).delete(l):c&&$J(c,u.id)&&delete c[u.id]},has:function(u){var c=o(this);if(!F5(u))return!1;var d=kw(u);return d===!0?Cw(c).has(u):d&&$J(d,c.id)}}),RJ(i,r?{get:function(u){var c=o(this);if(F5(u)){var d=kw(u);return d===!0?Cw(c).get(u):d?d[c.id]:void 0}},set:function(u,c){return s(this,u,c)}}:{add:function(u){return s(this,u,!0)}}),a}},dEt=cg,OJ=Re,j_=_e,zJ=Jx,fEt=qf,hEt=mT,Qge=Jge,Tw=_t,Aw=Wr.enforce,pEt=ge,vEt=Tfe,s1=Object,gEt=Array.isArray,Ew=s1.isExtensible,e0e=s1.isFrozen,mEt=s1.isSealed,t0e=s1.freeze,yEt=s1.seal,FJ={},BJ={},xEt=!OJ.ActiveXObject&&"ActiveXObject"in OJ,g0,r0e=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n0e=hEt("WeakMap",r0e,Qge),Vh=n0e.prototype,V_=j_(Vh.set),bEt=function(){return dEt&&pEt(function(){var e=t0e([]);return V_(new n0e,e,1),!e0e(e)})};if(vEt)if(xEt){g0=Qge.getConstructor(r0e,"WeakMap",!0),fEt.enable();var jJ=j_(Vh.delete),Nw=j_(Vh.has),VJ=j_(Vh.get);zJ(Vh,{delete:function(e){if(Tw(e)&&!Ew(e)){var t=Aw(this);return t.frozen||(t.frozen=new g0),jJ(this,e)||t.frozen.delete(e)}return jJ(this,e)},has:function(t){if(Tw(t)&&!Ew(t)){var r=Aw(this);return r.frozen||(r.frozen=new g0),Nw(this,t)||r.frozen.has(t)}return Nw(this,t)},get:function(t){if(Tw(t)&&!Ew(t)){var r=Aw(this);return r.frozen||(r.frozen=new g0),Nw(this,t)?VJ(this,t):r.frozen.get(t)}return VJ(this,t)},set:function(t,r){if(Tw(t)&&!Ew(t)){var n=Aw(this);n.frozen||(n.frozen=new g0),Nw(this,t)?V_(this,t,r):n.frozen.set(t,r)}else V_(this,t,r);return this}})}else bEt()&&zJ(Vh,{set:function(t,r){var n;return gEt(t)&&(e0e(t)?n=FJ:mEt(t)&&(n=BJ)),V_(this,t,r),n==FJ&&t0e(t),n==BJ&&yEt(t),this}});var wEt=mT,_Et=Jge;wEt("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_Et);var a0e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
661+/=",i0e={};for(var Iw=0;Iw<66;Iw++)i0e[a0e.charAt(Iw)]=Iw;var o0e={itoc:a0e,ctoi:i0e},SEt=q,kEt=Re,s0e=ir,w8=_e,CEt=ht,_8=ge,TEt=vt,AEt=It,EEt=Il,j5=o0e.ctoi,l0e=/[^\d+/a-z]/i,NEt=/[\t\n\f\r ]+/g,IEt=/[=]{1,2}$/,l1=s0e("atob"),PEt=String.fromCharCode,MEt=w8("".charAt),UJ=w8("".replace),DEt=w8(l0e.exec),S8=_8(function(){return l1(" ")!==""}),k8=!_8(function(){l1("a")}),GJ=!S8&&!k8&&!_8(function(){l1()}),HJ=!S8&&!k8&&l1.length!==1;SEt({global:!0,bind:!0,enumerable:!0,forced:S8||k8||GJ||HJ},{atob:function(t){if(EEt(arguments.length,1),GJ||HJ)return CEt(l1,kEt,t);var r=UJ(TEt(t),NEt,""),n="",a=0,i=0,o,s;if(r.length%4==0&&(r=UJ(r,IEt,"")),r.length%4==1||DEt(l0e,r))throw new(s0e("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;o=MEt(r,a++);)AEt(j5,o)&&(s=i%4?s*64+j5[o]:j5[o],i++%4&&(n+=PEt(255&s>>(-2*i&6))));return n}});var LEt=q,REt=Re,u0e=ir,c0e=_e,$Et=ht,d0e=ge,WJ=vt,OEt=Il,zEt=o0e.itoc,Ef=u0e("btoa"),qJ=c0e("".charAt),FEt=c0e("".charCodeAt),YJ=!!Ef&&!d0e(function(){Ef()}),KJ=!!Ef&&d0e(function(){return Ef(null)!=="bnVsbA=="}),ZJ=!!Ef&&Ef.length!==1;LEt({global:!0,bind:!0,enumerable:!0,forced:YJ||KJ||ZJ},{btoa:function(t){if(OEt(arguments.length,1),YJ||KJ||ZJ)return $Et(Ef,REt,WJ(t));for(var r=WJ(t),n="",a=0,i=zEt,o,s;qJ(r,a)||(i="=",a%1);){if(s=FEt(r,a+=3/4),s>255)throw new(u0e("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o=o<<8|s,n+=qJ(i,63&o>>8-a%1*8)}return n}});var f0e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},BEt=KC,V5=BEt("span").classList,XJ=V5&&V5.constructor&&V5.constructor.prototype,h0e=XJ===Object.prototype?void 0:XJ,JJ=Re,QJ=f0e,jEt=h0e,U5=Nhe,VEt=ra,p0e=function(e){if(e&&e.forEach!==U5)try{VEt(e,"forEach",U5)}catch{e.forEach=U5}};for(var G5 in QJ)QJ[G5]&&p0e(JJ[G5]&&JJ[G5].prototype);p0e(jEt);var eQ=Re,v0e=f0e,UEt=h0e,B0=Bhe,H5=ra,g0e=St,W5=g0e("iterator"),tQ=g0e("toStringTag"),q5=B0.values,m0e=function(e,t){if(e){if(e[W5]!==q5)try{H5(e,W5,q5)}catch{e[W5]=q5}if(e[tQ]||H5(e,tQ,t),v0e[t]){for(var r in B0)if(e[r]!==B0[r])try{H5(e,r,B0[r])}catch{e[r]=B0[r]}}}};for(var Y5 in v0e)m0e(eQ[Y5]&&eQ[Y5].prototype,Y5);m0e(UEt,"DOMTokenList");var GEt=El,HEt=function(e){try{if(GEt)return Function('return require("'+e+'")')()}catch{}},y0e={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1}
661,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},WEt=q,qEt=HEt,vk=ir,C8=ge,YEt=zi,T8=$i,gk=or.f,KEt=yr,U_=vn,G_=It,ZEt=xs,XEt=ct,x0e=bhe,rQ=Yx,zp=y0e,JEt=iz,b0e=Wr,A8=Qe,vv="DOMException",o$="DATA_CLONE_ERR",FT=vk("Error"),vl=vk(vv)||function(){try{var e=vk("MessageChannel")||qEt("worker_threads").MessageChannel;new e().port1.postMessage(new WeakMap)}catch(t){if(t.name==o$&&t.code==25)return t.constructor}}(),QEt=vl&&vl.prototype,w0e=FT.prototype,eNt=b0e.set,tNt=b0e.getterFor(vv),rNt="stack"in FT(vv),_0e=function(e){return G_(zp,e)&&zp[e].m?zp[e].c:0},E8=function(){ZEt(this,Mm);var t=arguments.length,r=rQ(t<1?void 0:arguments[0]),n=rQ(t<2?void 0:arguments[1],"Error"),a=_0e(n);if(eNt(this,{type:vv,name:n,message:r,code:a}),A8||(this.name=n,this.message=r,this.code=a),rNt){var i=FT(r);i.name=vv,gk(this,"stack",T8(1,JEt(i.stack,1)))}},Mm=E8.prototype=YEt(w0e),S0e=function(e){return{enumerable:!0,configurable:!0,get:e}},K5=function(e){return S0e(function(){return tNt(this)[e]})};A8&&(U_(Mm,"code",K5("code")),U_(Mm,"message",K5("message")),U_(Mm,"name",K5("name")));gk(Mm,"constructor",T8(1,E8));var BT=C8(function(){return!(new vl instanceof FT)}),nNt=BT||C8(function(){return w0e.toString!==x0e||String(new vl(1,2))!=="2: 1"}),aNt=BT||C8(function(){return new vl(1,"DataCloneError").code!==25});BT||vl[o$]!==25||QEt[o$];var nQ=BT;WEt({global:!0,constructor:!0,forced:nQ},{DOMException:nQ?E8:vl});var Ky=vk(vv),mk=Ky.prototype;nNt&&vl===Ky&&KEt(mk,"toString",x0e);aNt&&A8&&vl===Ky&&U_(mk,"code",S0e(function(){return _0e(XEt(this).name)}));for(var aQ in zp)if(G_(zp,aQ)){var iQ=zp[aQ],Pw=iQ.s,oQ=T8(6,iQ.c);G_(Ky,Pw)||gk(Ky,Pw,oQ),G_(mk,Pw)||gk(mk,Pw,oQ)}var iNt=q,oNt=Re,N8=ir,s$=$i,l$=or.f,sQ=It,sNt=xs,lNt=ig,lQ=Yx,Z5=y0e,uNt=iz,cNt=Qe,u1="DOMException",k0e=N8("Error"),c1=N8(u1),I8=function(){sNt(this,dNt);var t=arguments.length,r=lQ(t<1?void 0:arguments[0]),n=lQ(t<2?void 0:arguments[1],"Error"),a=new c1(r,n),i=k0e(r);return i.name=u1,l$(a,"stack",s$(1,uNt(i.stack,1))),lNt(a,this,I8),a},dNt=I8.prototype=c1.prototype,fNt="stack"in k0e(u1),hNt="stack"in new c1(1,2),X5=c1&&cNt&&Object.getOwnPropertyDescriptor(oNt,u1),pNt=!!X5&&!(X5.writable&&X5.configurable),uQ=fNt&&!pNt&&!hNt;iNt({global:!0,constructor:!0,forced:uQ},{DOMException:uQ?I8:c1});var j0=N8(u1),cQ=j0.prototype;if(cQ.constructor!==j0){l$(cQ,"constructor",s$(1,j0));for(var dQ in Z5)if(sQ(Z5,dQ)){var fQ=Z5[dQ],hQ=fQ.s;sQ(j0,hQ)||l$(j0,hQ,s$(6,fQ.c))}}var vNt=ir,gNt=Za,pQ="DOMException";gNt(vNt(pQ),pQ);var mNt=q,yNt=Re,vQ=CT.clear;mNt({global:!0,bind:!0,enumerable:!0,forced:yNt.clearImmediate!==vQ},{clearImmediate:vQ});var xNt=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",C0e=Re,bNt=Fi,wNt=wt,_Nt=xNt,SNt=_l,kNt=Hf,CNt=Il,TNt=C0e.Function,ANt=/MSIE .\./.test(SNt)||_Nt&&function(){var e=C0e.Bun.version.split(".");return e.length<3||e[0]==0&&(e[1]<3||e[1]==3&&e[2]==0)}(),P8=function(e,t){var r=t?2:1;return ANt?function(n,a){var i=CNt(arguments.length,1)>r,o=wNt(n)?n:TNt(n),s=i?kNt(arguments,r):[],l=i?function(){bNt(o,this,s)}:o;return t?e(l,a):e(l)}:e},ENt=q,T0e=Re,gQ=CT.set,NNt=P8,mQ=T0e.setImmediate?NNt(gQ,!1):gQ;ENt({global:!0,bind:!0,enumerable:!0,forced:T0e.setImmediate!==mQ},{setImmediate:mQ});var INt=q,PNt=Re,MNt=nve,DNt=Cr,LNt=Il,RNt=El,$Nt=PNt.process;INt({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){LNt(arguments.length,1),DNt(t);var r=RNt&&$Nt.domain;MNt(r?r.bind(t):t)}});var ONt=q,tu=Re,zNt=vn,FNt=Qe,BNt=TypeError,jNt=Object.defineProperty,yQ=tu.self!==tu;try{if(FNt){var J5=Object.getOwnPropertyDescriptor(tu,"self");(yQ||!J5||!J5.get||!J5.enumerable)&&zNt(tu,"self",{get:function(){return tu},set:function(t){if(this!==tu)throw BNt("Illegal invocation");jNt(tu,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else ONt({global:!0,simple:!0,forced:yQ},{self:tu})}catch{}var Mw=_e,m0=Map.prototype,VNt={Map,set:Mw(m0.set),get:Mw(m0.get),has:Mw(m0.has),remove:Mw(m0.delete),proto:m0},Q5=_e,Dw=Set.prototype,UNt={Set,add:Q5(Dw.add),has:Q5(Dw.has),remove:Q5(Dw.delete),proto:Dw},GNt=Re,HNt=ge,eP=Sl,WNt=ave,qNt=Gz,YNt=El,xQ=GNt.structuredClone,KNt=!!xQ&&!HNt(function(){if(qNt&&eP>92||YNt&&eP>94||WNt&&eP>97)return!1;var e=new ArrayBuffer(8),t=xQ(e,{transfer:[e]});return e.byteLength!=0||t.byteLength!=8}),ZNt=q,ur=Re,M8=ir,d1=_e,D8=ge,XNt=rg,H_=wt,JNt=ag,QNt=Ta,u$=_t,eIt=Uf,tIt=ys,A0e=ct,c$=vs,rIt=It,nIt=Tl,tP=ra,W_=Bt,aIt=Il,iIt=a1,jT=VNt,E0e=UNt,oIt=vhe,N0e=KNt,V0=ur.Object,sIt=ur.Array,I0e=ur.Date,f1=ur.Error,lIt=ur.EvalError,uIt=ur.RangeError,cIt=ur.ReferenceError,dIt=ur.SyntaxError,P0e=ur.TypeError,fIt=ur.URIError,hIt=ur.PerformanceMark,gv=ur.WebAssembly,pIt=gv&&gv.CompileError||f1,vIt=gv&&gv.LinkError||f1,gIt=gv&&gv.RuntimeError||f1,Nf=M8("DOMException"),d$=jT.Map,M0e=jT.has,mIt=jT.get,yk=jT.set,yIt=E0e.Set,xIt=E0e.add,bIt=M8("Object","keys"),wIt=d1([].push),_It=d1((!0).valueOf),SIt=d1(1 .valueOf),kIt=d1("".valueOf),CIt=d1(I0e.prototype.getTime),f$=XNt("structuredClone"),Zy="DataCloneError",Lw="Transferring",D0e=function(e){return!D8(function(){var t=new ur.Set([7]),r=e(t),n=e(V0(7));return r==t||!r.has(7)||typeof n!="object"||n!=7})&&e},bQ=function(e,t){return!D8(function(){var r=new t,n=e({a:r,b:r});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===r.stack)})},TIt=function(e){return!D8(function(){var t=e(new ur.AggregateError([1],f$,{cause:3}));return t.name!="AggregateError"||t.errors[0]!=1||t.message!=f$||t.cause!=3})},Fp=ur.structuredClone,AIt=!bQ(Fp,f1)||!bQ(Fp,Nf)||!TIt(Fp),EIt=!Fp&&D0e(function(e){return new hIt(f$,{detail:e}).detail}),dp=D0e(Fp)||EIt,rP=function(e){throw new Nf("Uncloneable type: "+e,Zy)},la=function(e,t){throw new Nf((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",Zy)},nP=function(e,t){return dp||la(t),dp(e)},NIt=function(){var e;try{e=new ur.DataTransfer}catch{try{e=new ur.ClipboardEvent("").clipboardData}catch{}}return e&&e.items&&e.files?e:null},Cn=function(e,t){if(eIt(e)&&rP("Symbol"),!u$(e))return e;if(t){if(M0e(t,e))return mIt(t,e)}else t=new d$;var r=c$(e),n=!1,a,i,o,s,l,u,c,d,f,h,p;switch(r){case"Array":o=sIt(W_(e)),n=!0;break;case"Object":o={},n=!0;break;case"Map":o=new d$,n=!0;break;case"Set":o=new yIt,n=!0;break;case"RegExp":o=new RegExp(e.source,iIt(e));break;case"Error":switch(i=e.name,i){case"AggregateError":o=M8("AggregateError")([]);break;case"EvalError":o=lIt();break;case"RangeError":o=uIt();break;case"ReferenceError":o=cIt();break;case"SyntaxError":o=dIt();break;case"TypeError":o=P0e();break;case"URIError":o=fIt();break;case"CompileError":o=pIt();break;case"LinkError":o=vIt();break;case"RuntimeError":o=gIt();break;default:o=f1()}n=!0;break;case"DOMException":o=new Nf(e.message,e.name),n=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":a=ur[r],u$(a)||la(r),o=new a(Cn(e.buffer,t),e.byteOffset,r==="DataView"?e.byteLength:e.length);break;case"DOMQuad":try{o=new DOMQuad(Cn(e.p1,t),Cn(e.p2,t),Cn(e.p3,t),Cn(e.p4,t))}catch{o=nP(e,r)}break;case"File":if(dp)try{o=dp(e),c$(o)!==r&&(o=void 0)}catch{}if(!o)try{o=new File([e],e.name,e)}catch{}o||la(r);break;case"FileList":if(s=NIt(),s){for(l=0,u=W_(e);l<u;l++)s.items.add(Cn(e[l],t));o=s.files}else o=nP(e,r);break;case"ImageData":try{o=new ImageData(Cn(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch{o=nP(e,r)}break;default:if(dp)o=dp(e);else switch(r){case"BigInt":o=V0(e.valueOf());break;case"Boolean":o=V0(_It(e));break;case"Number":o=V0(SIt(e));break;case"String":o=V0(kIt(e));break;case"Date":o=new I0e(CIt(e));break;case"ArrayBuffer":a=ur.DataView,!a&&typeof e.slice!="function"&&la(r);try{if(typeof e.slice=="function"&&!e.resizable)o=e.slice(0);else for(u=e.byteLength,p=("maxByteLength"in e)?{maxByteLength:e.maxByteLength}:void 0,o=new ArrayBuffer(u,p),f=new a(e),h=new a(o),l=0;l<u;l++)h.setUint8(l,f.getUint8(l))}catch{throw new Nf("ArrayBuffer is detached",Zy)}break;case"SharedArrayBuffer":o=e;break;case"Blob":try{o=e.slice(0,e.size,e.type)}catch{la(r)}break;case"DOMPoint":case"DOMPointReadOnly":a=ur[r];try{o=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch{la(r)}break;case"DOMRect":case"DOMRectReadOnly":a=ur[r];try{o=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch{la(r)}break;case"DOMMatrix":case"DOMMatrixReadOnly":a=ur[r];try{o=a.fromMatrix?a.fromMatrix(e):new a(e)}catch{la(r)}break;case"AudioData":case"VideoFrame":H_(e.clone)||la(r);try{o=e.clone()}catch{rP(r)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":la(r);default:rP(r)}}if(yk(t,e,o),n)switch(r){case"Array":case"Object":for(c=bIt(e),l=0,u=W_(c);l<u;l++)d=c[l],nIt(o,d,Cn(e[d],t));break;case"Map":e.forEach(function(v,m){yk(o,Cn(m,t),Cn(v,t))});break;case"Set":e.forEach(function(v){xIt(o,Cn(v,t))});break;case"Error":tP(o,"message",Cn(e.message,t)),rIt(e,"cause")&&tP(o,"cause",Cn(e.cause,t)),i=="AggregateError"&&(o.errors=Cn(e.errors,t));case"DOMException":oIt&&tP(o,"stack",Cn(e.stack,t))}return o},IIt=function(e,t){if(!u$(e))throw P0e("Transfer option cannot be converted to a sequence");var r=[];tIt(e,function(f){wIt(r,A0e(f))});var n=0,a=W_(r),i,o,s,l,u,c,d;if(N0e)for(l=Fp(r,{transfer:r});n<a;)yk(t,r[n],l[n++]);else for(;n<a;){if(i=r[n++],M0e(t,i))throw new Nf("Duplicate transferable",Zy);switch(o=c$(i),o){case"ImageBitmap":s=ur.OffscreenCanvas,JNt(s)||la(o,Lw);try{c=new s(i.width,i.height),d=c.getContext("bitmaprenderer"),d.transferFromImageBitmap(i),u=c.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!H_(i.clone)||!H_(i.close))&&la(o,Lw);try{u=i.clone(),i.close()}catch{}break;case"ArrayBuffer":H_(i.transfer)||la(o,Lw),u=i.transfer();break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":la(o,Lw)}if(u===void 0)throw new Nf("This object cannot be transferred: "+o,Zy);yk(t,i,u)}};ZNt({global:!0,enumerable:!0,sham:!N0e,forced:AIt},{structuredClone:function(t){var r=aIt(arguments.length,1)>1&&!QNt(arguments[1])?A0e(arguments[1]):void 0,n=r?r.transfer:void 0,a;return n!==void 0&&(a=new d$,IIt(n,a)),Cn(t,a)}});var PIt=q,L0e=Re,MIt=P8,wQ=MIt(L0e.setInterval,!0);PIt({global:!0,bind:!0,forced:L0e.setInterval!==wQ},{setInterval:wQ});var DIt=q,R0e=Re,LIt=P8,_Q=LIt(R0e.setTimeout,!0);DIt({global:!0,bind:!0,forced:R0e.setTimeout!==_Q},{setTimeout:_Q});var RIt=ge,$It=St,OIt=Qe,SQ=V6,zIt=$It("iterator"),L8=!RIt(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach(function(n,a){t.delete("b"),r+=a+n}),SQ&&!e.toJSON||!t.size&&(SQ||!OIt)||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[zIt]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://ÑеÑÑ").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||r!=="a1c3"||new URL("http://x",void 0).host!=="x"}),Yf=_e,aP=2147483647,Dm=36,$0e=1,h$=26,FIt=38,BIt=700,jIt=72,VIt=128,UIt="-",GIt=/[^\0-\u007E]/,O0e=/[.\u3002\uFF0E\uFF61]/g,kQ="Overflow: input needs wider integers to process",iP=Dm-$0e,CQ=RangeError,HIt=Yf(O0e.exec),fp=Math.floor,oP=String.fromCharCode,TQ=Yf("".charCodeAt),z0e=Yf([].join),bu=Yf([].push),WIt=Yf("".replace),qIt=Yf("".split),YIt=Yf("".toLowerCase),KIt=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=TQ(e,r++);if(a>=55296&&a<=56319&&r<n){var i=TQ(e,r++);(i&64512)==56320?bu(t,((a&1023)<<10)+(i&1023)+65536):(bu(t,a),r--)}else bu(t,a)}return t},AQ=function(e){return e+22+75*(e<26)},ZIt=function(e,t,r){var n=0;for(e=r?fp(e/BIt):e>>1,e+=fp(e/t);e>iP*h$>>1;)e=fp(e/iP),n+=Dm;return fp(n+(iP+1)*e/(e+FIt))},XIt=function(e){var t=[];e=KIt(e);var r=e.length,n=VIt,a=0,i=jIt,o,s;for(o=0;o<e.length;o++)s=e[o],s<128&&bu(t,oP(s));var l=t.length,u=l;for(l&&bu(t,UIt);u<r;){var c=aP;for(o=0;o<e.length;o++)s=e[o],s>=n&&s<c&&(c=s);var d=u+1;if(c-n>fp((aP-a)/d))throw CQ(kQ);for(a+=(c-n)*d,n=c,o=0;o<e.length;o++){if(s=e[o],s<n&&++a>aP)throw CQ(kQ);if(s==n){for(var f=a,h=Dm;;){var p=h<=i?$0e:h>=i+h$?h$:h-i;
vendor: 15,324 bytes, line 661
661if(f<p)break;var v=f-p,m=Dm-p;bu(t,oP(AQ(p+v%m))),f=fp(v/m),h+=Dm}bu(t,oP(AQ(f))),i=ZIt(a,d,u==l),a=0,u++}}a++,n++}return z0e(t,"")},JIt=function(e){var t=[],r=qIt(WIt(YIt(e),O0e,"."),"."),n,a;for(n=0;n<r.length;n++)a=r[n],bu(t,HIt(GIt,a)?"xn--"+XIt(a):a);return z0e(t,".")},p$=q,mv=Re,Rw=ht,ss=_e,Bp=Qe,F0e=L8,B0e=yr,QIt=vn,e5t=Jx,t5t=Za,r5t=dz,R8=Wr,j0e=xs,sP=wt,n5t=It,a5t=wo,i5t=vs,o5t=ct,V0e=_t,Ra=vt,s5t=zi,EQ=$i,v$=iT,l5t=Zx,Nh=Il,u5t=St,c5t=vz,d5t=u5t("iterator"),h1="URLSearchParams",U0e=h1+"Iterator",G0e=R8.set,hi=R8.getterFor(h1),f5t=R8.getterFor(U0e),h5t=Object.getOwnPropertyDescriptor,$8=function(e){if(!Bp)return mv[e];var t=h5t(mv,e);return t&&t.value},NQ=$8("fetch"),xk=$8("Request"),Lm=$8("Headers"),lP=xk&&xk.prototype,IQ=Lm&&Lm.prototype,p5t=mv.RegExp,v5t=mv.TypeError,H0e=mv.decodeURIComponent,g5t=mv.encodeURIComponent,m5t=ss("".charAt),PQ=ss([].join),$d=ss([].push),g$=ss("".replace),y5t=ss([].shift),MQ=ss([].splice),DQ=ss("".split),x5t=ss("".slice),b5t=/\+/g,LQ=Array(4),w5t=function(e){return LQ[e-1]||(LQ[e-1]=p5t("((?:%[\\da-f]{2}){"+e+"})","gi"))},_5t=function(e){try{return H0e(e)}catch{return e}},RQ=function(e){var t=g$(e,b5t," "),r=4;try{return H0e(t)}catch{for(;r;)t=g$(t,w5t(r--),_5t);return t}},S5t=/[!'()~]|%20/g,k5t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},C5t=function(e){return k5t[e]},$Q=function(e){return g$(g5t(e),S5t,C5t)},uP=r5t(function(t,r){G0e(this,{type:U0e,iterator:v$(hi(t).entries),kind:r})},"Iterator",function(){var t=f5t(this),r=t.kind,n=t.iterator.next(),a=n.value;return n.done||(n.value=r==="keys"?a.key:r==="values"?a.value:[a.key,a.value]),n},!0),W0e=function(e){this.entries=[],this.url=null,e!==void 0&&(V0e(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?m5t(e,0)==="?"?x5t(e,1):e:Ra(e)))};W0e.prototype={type:h1,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t=l5t(e),r,n,a,i,o,s,l;if(t)for(r=v$(e,t),n=r.next;!(a=Rw(n,r)).done;){if(i=v$(o5t(a.value)),o=i.next,(s=Rw(o,i)).done||(l=Rw(o,i)).done||!Rw(o,i).done)throw v5t("Expected sequence with length 2");$d(this.entries,{key:Ra(s.value),value:Ra(l.value)})}else for(var u in e)n5t(e,u)&&$d(this.entries,{key:u,value:Ra(e[u])})},parseQuery:function(e){if(e)for(var t=DQ(e,"&"),r=0,n,a;r<t.length;)n=t[r++],n.length&&(a=DQ(n,"="),$d(this.entries,{key:RQ(y5t(a)),value:RQ(PQ(a,"="))}))},serialize:function(){for(var e=this.entries,t=[],r=0,n;r<e.length;)n=e[r++],$d(t,$Q(n.key)+"="+$Q(n.value));return PQ(t,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var VT=function(){j0e(this,yv);var t=arguments.length>0?arguments[0]:void 0,r=G0e(this,new W0e(t));Bp||(this.length=r.entries.length)},yv=VT.prototype;e5t(yv,{append:function(t,r){Nh(arguments.length,2);var n=hi(this);$d(n.entries,{key:Ra(t),value:Ra(r)}),Bp||this.length++,n.updateURL()},delete:function(e){Nh(arguments.length,1);for(var t=hi(this),r=t.entries,n=Ra(e),a=0;a<r.length;)r[a].key===n?MQ(r,a,1):a++;Bp||(this.length=r.length),t.updateURL()},get:function(t){Nh(arguments.length,1);for(var r=hi(this).entries,n=Ra(t),a=0;a<r.length;a++)if(r[a].key===n)return r[a].value;return null},getAll:function(t){Nh(arguments.length,1);for(var r=hi(this).entries,n=Ra(t),a=[],i=0;i<r.length;i++)r[i].key===n&&$d(a,r[i].value);return a},has:function(t){Nh(arguments.length,1);for(var r=hi(this).entries,n=Ra(t),a=0;a<r.length;)if(r[a++].key===n)return!0;return!1},set:function(t,r){Nh(arguments.length,1);for(var n=hi(this),a=n.entries,i=!1,o=Ra(t),s=Ra(r),l=0,u;l<a.length;l++)u=a[l],u.key===o&&(i?MQ(a,l--,1):(i=!0,u.value=s));i||$d(a,{key:o,value:s}),Bp||(this.length=a.length),n.updateURL()},sort:function(){var t=hi(this);c5t(t.entries,function(r,n){return r.key>n.key?1:-1}),t.updateURL()},forEach:function(t){for(var r=hi(this).entries,n=a5t(t,arguments.length>1?arguments[1]:void 0),a=0,i;a<r.length;)i=r[a++],n(i.value,i.key,this)},keys:function(){return new uP(this,"keys")},values:function(){return new uP(this,"values")},entries:function(){return new uP(this,"entries")}},{enumerable:!0});B0e(yv,d5t,yv.entries,{name:"entries"});B0e(yv,"toString",function(){return hi(this).serialize()},{enumerable:!0});Bp&&QIt(yv,"size",{get:function(){return hi(this).entries.length},configurable:!0,enumerable:!0});t5t(VT,h1);p$({global:!0,constructor:!0,forced:!F0e},{URLSearchParams:VT});if(!F0e&&sP(Lm)){var T5t=ss(IQ.has),A5t=ss(IQ.set),OQ=function(e){if(V0e(e)){var t=e.body,r;if(i5t(t)===h1)return r=e.headers?new Lm(e.headers):new Lm,T5t(r,"content-type")||A5t(r,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),s5t(e,{body:EQ(0,Ra(t)),headers:EQ(0,r)})}return e};if(sP(NQ)&&p$({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return NQ(t,arguments.length>1?OQ(arguments[1]):{})}}),sP(xk)){var cP=function(t){return j0e(this,lP),new xk(t,arguments.length>1?OQ(arguments[1]):{})};lP.constructor=cP,cP.prototype=lP,p$({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:cP})}}var E5t={URLSearchParams:VT,getState:hi},N5t=q,O8=Qe,I5t=L8,z8=Re,zQ=wo,ji=_e,bk=yr,ai=vn,P5t=xs,m$=It,F8=Upe,Ih=Ihe,Wi=Gx,M5t=PT.codeAt,D5t=JIt,Ts=vt,L5t=Za,R5t=Il,q0e=E5t,Y0e=Wr,$5t=Y0e.set,wk=Y0e.getterFor("URL"),O5t=q0e.URLSearchParams,z5t=q0e.getState,y0=z8.URL,y$=z8.TypeError,_k=z8.parseInt,F5t=Math.floor,FQ=Math.pow,xi=ji("".charAt),ro=ji(/./.exec),U0=ji([].join),B5t=ji(1 .toString),j5t=ji([].pop),Uh=ji([].push),dP=ji("".replace),V5t=ji([].shift),U5t=ji("".split),Rm=ji("".slice),Sk=ji("".toLowerCase),G5t=ji([].unshift),H5t="Invalid authority",fP="Invalid scheme",td="Invalid host",BQ="Invalid port",K0e=/[a-z]/i,W5t=/[\d+-.a-z]/i,x$=/\d/,q5t=/^0x/i,Y5t=/^[0-7]+$/,K5t=/^\d+$/,Z0e=/^[\da-f]+$/i,Z5t=/[\0\t\n\r #%/:<>?@[\\\]^|]/,X5t=/[\0\t\n\r #/:<>?@[\\\]^|]/,J5t=/^[\u0000-\u0020]+/,Q5t=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ePt=/[\t\n\r]/g,ii,tPt=function(e){var t=U5t(e,"."),r,n,a,i,o,s,l;if(t.length&&t[t.length-1]==""&&t.length--,r=t.length,r>4)return e;for(n=[],a=0;a<r;a++){if(i=t[a],i=="")return e;if(o=10,i.length>1&&xi(i,0)=="0"&&(o=ro(q5t,i)?16:8,i=Rm(i,o==8?1:2)),i==="")s=0;else{if(!ro(o==10?K5t:o==8?Y5t:Z0e,i))return e;s=_k(i,o)}Uh(n,s)}for(a=0;a<r;a++)if(s=n[a],a==r-1){if(s>=FQ(256,5-r))return null}else if(s>255)return null;for(l=j5t(n),a=0;a<n.length;a++)l+=n[a]*FQ(256,3-a);return l},rPt=function(e){var t=[0,0,0,0,0,0,0,0],r=0,n=null,a=0,i,o,s,l,u,c,d,f=function(){return xi(e,a)};if(f()==":"){if(xi(e,1)!=":")return;a+=2,r++,n=r}for(;f();){if(r==8)return;if(f()==":"){if(n!==null)return;a++,r++,n=r;continue}for(i=o=0;o<4&&ro(Z0e,f());)i=i*16+_k(f(),16),a++,o++;if(f()=="."){if(o==0||(a-=o,r>6))return;for(s=0;f();){if(l=null,s>0)if(f()=="."&&s<4)a++;else return;if(!ro(x$,f()))return;for(;ro(x$,f());){if(u=_k(f(),10),l===null)l=u;else{if(l==0)return;l=l*10+u}if(l>255)return;a++}t[r]=t[r]*256+l,s++,(s==2||s==4)&&r++}if(s!=4)return;break}else if(f()==":"){if(a++,!f())return}else if(f())return;t[r++]=i}if(n!==null)for(c=r-n,r=7;r!=0&&c>0;)d=t[r],t[r--]=t[n+c-1],t[n+--c]=d;else if(r!=8)return;return t},nPt=function(e){for(var t=null,r=1,n=null,a=0,i=0;i<8;i++)e[i]!==0?(a>r&&(t=n,r=a),n=null,a=0):(n===null&&(n=i),++a);return a>r&&(t=n,r=a),t},x0=function(e){var t,r,n,a;if(typeof e=="number"){for(t=[],r=0;r<4;r++)G5t(t,e%256),e=F5t(e/256);return U0(t,".")}else if(typeof e=="object"){for(t="",n=nPt(e),r=0;r<8;r++)a&&e[r]===0||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=B5t(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},q_={},X0e=F8({},q_,{" ":1,'"':1,"<":1,">":1,"`":1}),J0e=F8({},X0e,{"#":1,"?":1,"{":1,"}":1}),hP=F8({},J0e,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Wl=function(e,t){var r=M5t(e,0);return r>32&&r<127&&!m$(t,e)?e:encodeURIComponent(e)},$w={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G0=function(e,t){var r;return e.length==2&&ro(K0e,xi(e,0))&&((r=xi(e,1))==":"||!t&&r=="|")},jQ=function(e){var t;return e.length>1&&G0(Rm(e,0,2))&&(e.length==2||(t=xi(e,2))==="/"||t==="\\"||t==="?"||t==="#")},aPt=function(e){return e==="."||Sk(e)==="%2e"},iPt=function(e){return e=Sk(e),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},pP={},VQ={},vP={},UQ={},GQ={},gP={},HQ={},WQ={},Ow={},zw={},mP={},yP={},xP={},bP={},qQ={},wP={},Ph={},Po={},YQ={},rd={},Cs={},B8=function(e,t,r){var n=Ts(e),a,i,o;if(t){if(i=this.parse(n),i)throw y$(i);this.searchParams=null}else{if(r!==void 0&&(a=new B8(r,!0)),i=this.parse(n,null,a),i)throw y$(i);o=z5t(new O5t),o.bindURL(this),this.searchParams=o}};B8.prototype={type:"URL",parse:function(e,t,r){var n=this,a=t||pP,i=0,o="",s=!1,l=!1,u=!1,c,d,f,h;for(e=Ts(e),t||(n.scheme="",n.username="",n.password="",n.host=null,n.port=null,n.path=[],n.query=null,n.fragment=null,n.cannotBeABaseURL=!1,e=dP(e,J5t,""),e=dP(e,Q5t,"$1")),e=dP(e,ePt,""),c=Ih(e);i<=c.length;){switch(d=c[i],a){case pP:if(d&&ro(K0e,d))o+=Sk(d),a=VQ;else{if(t)return fP;a=vP;continue}break;case VQ:if(d&&(ro(W5t,d)||d=="+"||d=="-"||d=="."))o+=Sk(d);else if(d==":"){if(t&&(n.isSpecial()!=m$($w,o)||o=="file"&&(n.includesCredentials()||n.port!==null)||n.scheme=="file"&&!n.host))return;if(n.scheme=o,t){n.isSpecial()&&$w[n.scheme]==n.port&&(n.port=null);return}o="",n.scheme=="file"?a=bP:n.isSpecial()&&r&&r.scheme==n.scheme?a=UQ:n.isSpecial()?a=WQ:c[i+1]=="/"?(a=GQ,i++):(n.cannotBeABaseURL=!0,Uh(n.path,""),a=YQ)}else{if(t)return fP;o="",a=vP,i=0;continue}break;case vP:if(!r||r.cannotBeABaseURL&&d!="#")return fP;if(r.cannotBeABaseURL&&d=="#"){n.scheme=r.scheme,n.path=Wi(r.path),n.query=r.query,n.fragment="",n.cannotBeABaseURL=!0,a=Cs;break}a=r.scheme=="file"?bP:gP;continue;case UQ:if(d=="/"&&c[i+1]=="/")a=Ow,i++;else{a=gP;continue}break;case GQ:if(d=="/"){a=zw;break}else{a=Po;continue}case gP:if(n.scheme=r.scheme,d==ii)n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=Wi(r.path),n.query=r.query;else if(d=="/"||d=="\\"&&n.isSpecial())a=HQ;else if(d=="?")n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=Wi(r.path),n.query="",a=rd;else if(d=="#")n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=Wi(r.path),n.query=r.query,n.fragment="",a=Cs;else{n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=Wi(r.path),n.path.length--,a=Po;continue}break;case HQ:if(n.isSpecial()&&(d=="/"||d=="\\"))a=Ow;else if(d=="/")a=zw;else{n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,a=Po;continue}break;case WQ:if(a=Ow,d!="/"||xi(o,i+1)!="/")continue;i++;break;case Ow:if(d!="/"&&d!="\\"){a=zw;continue}break;case zw:if(d=="@"){s&&(o="%40"+o),s=!0,f=Ih(o);for(var p=0;p<f.length;p++){var v=f[p];if(v==":"&&!u){u=!0;continue}var m=Wl(v,hP);u?n.password+=m:n.username+=m}o=""}else if(d==ii||d=="/"||d=="?"||d=="#"||d=="\\"&&n.isSpecial()){if(s&&o=="")return H5t;i-=Ih(o).length+1,o="",a=mP}else o+=d;break;case mP:case yP:if(t&&n.scheme=="file"){a=wP;continue}else if(d==":"&&!l){if(o=="")return td;if(h=n.parseHost(o),h)return h;if(o="",a=xP,t==yP)return}else if(d==ii||d=="/"||d=="?"||d=="#"||d=="\\"&&n.isSpecial()){if(n.isSpecial()&&o=="")return td;if(t&&o==""&&(n.includesCredentials()||n.port!==null))return;if(h=n.parseHost(o),h)return h;if(o="",a=Ph,t)return;continue}else d=="["?l=!0:d=="]"&&(l=!1),o+=d;break;case xP:if(ro(x$,d))o+=d;else if(d==ii||d=="/"||d=="?"||d=="#"||d=="\\"&&n.isSpecial()||t){if(o!=""){var g=_k(o,10);if(g>65535)return BQ;n.port=n.isSpecial()&&g===$w[n.scheme]?null:g,o=""}if(t)return;a=Ph;continue}else return BQ;break;case bP:if(n.scheme="file",d=="/"||d=="\\")a=qQ;else if(r&&r.scheme=="file")if(d==ii)n.host=r.host,n.path=Wi(r.path),n.query=r.query;else if(d=="?")n.host=r.host,n.path=Wi(r.path),n.query="",a=rd;else if(d=="#")n.host=r.host,n.path=Wi(r.path),n.query=r.query,n.fragment="",a=Cs;else{jQ(U0(Wi(c,i),""))||(n.host=r.host,n.path=Wi(r.path),n.shortenPath()),a=Po;continue}else{a=Po;continue}break;case qQ:if(d=="/"||d=="\\"){a=wP;break}r&&r.scheme=="file"&&!jQ(U0(Wi(c,i),""))&&(G0(r.path[0],!0)?Uh(n.path,r.path[0]):n.host=r.host),a=Po;continue;case wP:if(d==ii||d=="/"||d=="\\"||d=="?"||d=="#"){if(!t&&G0(o))a=Po;else if(o==""){if(n.host="",t)return;a=Ph}else{if(h=n.parseHost(o),h)return h;if(n.host=="localhost"&&(n.host=""),t)return;o="",a=Ph}continue}else o+=d;break;case Ph:if(n.isSpecial()){if(a=Po,d!="/"&&d!="\\")continue}else if(!t&&d=="?")n.query="",a=rd;else if(!t&&d=="#")n.fragment="",a=Cs;else if(d!=ii&&(a=Po,d!="/"))continue;break;case Po:if(d==ii||d=="/"||d=="\\"&&n.isSpecial()||!t&&(d=="?"||d=="#")){if(iPt(o)?(n.shortenPath(),d!="/"&&!(d=="\\"&&n.isSpecial())&&Uh(n.path,"")):aPt(o)?d!="/"&&!(d=="\\"&&n.isSpecial())&&Uh(n.path,""):(n.scheme=="file"&&!n.path.length&&G0(o)&&(n.host&&(n.host=""),o=xi(o,0)+":"),Uh(n.path,o)),o="",n.scheme=="file"&&(d==ii||d=="?"||d=="#"))for(;n.path.length>1&&n.path[0]==="";)V5t(n.path);d=="?"?(n.query="",a=rd):d=="#"&&(n.fragment="",a=Cs)}else o+=Wl(d,J0e);break;case YQ:d=="?"?(n.query="",a=rd):d=="#"?(n.fragment="",a=Cs):d!=ii&&(n.path[0]+=Wl(d,q_));break;case rd:!t&&d=="#"?(n.fragment="",a=Cs):d!=ii&&(d=="'"&&n.isSpecial()?n.query+="%27":d=="#"?n.query+="%23":n.query+=Wl(d,q_));break;case Cs:d!=ii&&(n.fragment+=Wl(d,X0e));break}i++}},parseHost:function(e){var t,r,n;if(xi(e,0)=="["){if(xi(e,e.length-1)!="]"||(t=rPt(Rm(e,1,-1)),!t))return td;this.host=t}else if(this.isSpecial()){if(e=D5t(e),ro(Z5t,e)||(t=tPt(e),t===null))return td;this.host=t}else{if(ro(X5t,e))return td;for(t="",r=Ih(e),n=0;n<r.length;n++)t+=Wl(r[n],q_);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme=="file"},includesCredentials:function(){return this.username!=""||this.password!=""},isSpecial:function(){return m$($w,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;t&&(this.scheme!="file"||t!=1||!G0(e[0],!0))&&e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,i=e.port,o=e.path,s=e.query,l=e.fragment,u=t+":";return a!==null?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=x0(a),i!==null&&(u+=":"+i)):t=="file"&&(u+="//"),u+=e.cannotBeABaseURL?o[0]:o.length?"/"+U0(o,"/"):"",s!==null&&(u+="?"+s),l!==null&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw y$(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e=="blob")try{return new xv(e.path[0]).origin}catch{return"null"}return e=="file"||!this.isSpecial()?"null":e+"://"+x0(this.host)+(t!==null?":"+t:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Ts(e)+":",pP)},getUsername:function(){return this.username},setUsername:function(e){var t=Ih(Ts(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Wl(t[r],hP)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ih(Ts(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Wl(t[r],hP)}},getHost:function(){var e=this.host,t=this.port;return e===null?"":t===null?x0(e):x0(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,mP)},getHostname:function(){var e=this.host;return e===null?"":x0(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,yP)},getPort:function(){var e=this.port;return e===null?"":Ts(e)}
vendor: 1,357 bytes, line 661
661,setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=Ts(e),e==""?this.port=null:this.parse(e,xP))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+U0(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ph))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=Ts(e),e==""?this.query=null:(xi(e,0)=="?"&&(e=Rm(e,1)),this.query="",this.parse(e,rd)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){if(e=Ts(e),e==""){this.fragment=null;return}xi(e,0)=="#"&&(e=Rm(e,1)),this.fragment="",this.parse(e,Cs)},update:function(){this.query=this.searchParams.serialize()||null}};var xv=function(t){var r=P5t(this,Fn),n=R5t(arguments.length,1)>1?arguments[1]:void 0,a=$5t(r,new B8(t,!1,n));O8||(r.href=a.serialize(),r.origin=a.getOrigin(),r.protocol=a.getProtocol(),r.username=a.getUsername(),r.password=a.getPassword(),r.host=a.getHost(),r.hostname=a.getHostname(),r.port=a.getPort(),r.pathname=a.getPathname(),r.search=a.getSearch(),r.searchParams=a.getSearchParams(),r.hash=a.getHash())},Fn=xv.prototype,oi=function(e,t){return{get:function(){return wk(this)[e]()},set:t&&function(r){return wk(this)[t](r)},configurable:!0,enumerable:!0}};
661O8&&(ai(Fn,"href",oi("serialize","setHref")),ai(Fn,"origin",oi("getOrigin")),ai(Fn,"protocol",oi("getProtocol","setProtocol")),ai(Fn,"username",oi("getUsername","setUsername")),ai(Fn,"password",oi("getPassword","setPassword")),ai(Fn,"host",oi("getHost","setHost")),ai(Fn,"hostname",oi("getHostname","setHostname")),ai(Fn,"port",oi("getPort","setPort")),ai(Fn,"pathname",oi("getPathname","setPathname")),ai(Fn,"search",oi("getSearch","setSearch")),ai(Fn,"searchParams",oi("getSearchParams")),ai(Fn,"hash",oi("getHash","setHash")));bk(Fn,"toJSON",function(){return wk(this).serialize()},{enumerable:!0});bk(Fn,"toString",function(){return wk(this).serialize()},{enumerable:!0});if(y0){var KQ=y0.createObjectURL,ZQ=y0.revokeObjectURL;KQ&&bk(xv,"createObjectURL",zQ(KQ,y0)),ZQ&&bk(xv,"revokeObjectURL",zQ(ZQ,y0))}L5t(xv,"URL");N5t({global:!0,constructor:!0,forced:!I5t,sham:!O8},{URL:xv});var oPt=q,sPt=ir,lPt=ge,uPt=Il,XQ=vt,cPt=L8,Q0e=sPt("URL"),dPt=cPt&&lPt(function(){Q0e.canParse()});oPt({target:"URL",stat:!0,forced:!dPt},{canParse:function(t){var r=uPt(arguments.length,1),n=XQ(t),a=r<2||arguments[1]===void 0?void 0:XQ(arguments[1]);try{return!!new Q0e(n,a)}catch{return!1}}});var fPt=q,hPt=ht;fPt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return hPt(URL.prototype.toString,this)}});var pPt=Qe,vPt=_e,gPt=vn,b$=URLSearchParams.prototype,mPt=vPt(b$.forEach);pPt&&!("size"in b$)&&gPt(b$,"size",{get:function(){var t=0;return mPt(this,function(){t++}),t},configurable:!0,enumerable:!0});var yPt={exports:{}};(function(e){var t=function(r){var n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(j,I,U){j[I]=U.value},o,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(j,I,U){return Object.defineProperty(j,I,{value:U,enumerable:!0,configurable:!0,writable:!0}),j[I]}try{d({},"")}catch{d=function(I,U,Y){return I[U]=Y}}function f(j,I,U,Y){var O=I&&I.prototype instanceof b?I:b,H=Object.create(O.prototype),ie=new $(Y||[]);return i(H,"_invoke",{value:P(j,U,ie)}),H}r.wrap=f;function h(j,I,U){try{return{type:"normal",arg:j.call(I,U)}}catch(Y){return{type:"throw",arg:Y}}}var p="suspendedStart",v="suspendedYield",m="executing",g="completed",x={};function b(){}function _(){}function k(){}var S={};d(S,l,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(V([])));T&&T!==n&&a.call(T,l)&&(S=T);var E=k.prototype=b.prototype=Object.create(S);_.prototype=k,i(E,"constructor",{value:k,configurable:!0}),i(k,"constructor",{value:_,configurable:!0}),_.displayName=d(k,c,"GeneratorFunction");function A(j){["next","throw","return"].forEach(function(I){d(j,I,function(U){return this._invoke(I,U)})})}r.isGeneratorFunction=function(j){var I=typeof j=="function"&&j.constructor;return I?I===_||(I.displayName||I.name)==="GeneratorFunction":!1},r.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,k):(j.__proto__=k,d(j,c,"GeneratorFunction")),j.prototype=Object.create(E),j},r.awrap=function(j){return{__await:j}};function N(j,I){function U(H,ie,ee,se){var oe=h(j[H],j,ie);if(oe.type==="throw")se(oe.arg);else{var be=oe.arg,me=be.value;return me&&typeof me=="object"&&a.call(me,"__await")?I.resolve(me.__await).then(function(Z){U("next",Z,ee,se)},function(Z){U("throw",Z,ee,se)}):I.resolve(me).then(function(Z){be.value=Z,ee(be)},function(Z){return U("throw",Z,ee,se)})}}var Y;function O(H,ie){function ee(){return new I(function(se,oe){U(H,ie,se,oe)})}return Y=Y?Y.then(ee,ee):ee()}i(this,"_invoke",{value:O})}A(N.prototype),d(N.prototype,u,function(){return this}),r.AsyncIterator=N,r.async=function(j,I,U,Y,O){O===void 0&&(O=Promise);var H=new N(f(j,I,U,Y),O);return r.isGeneratorFunction(I)?H:H.next().then(function(ie){return ie.done?ie.value:H.next()})};function P(j,I,U){var Y=p;return function(H,ie){if(Y===m)throw new Error("Generator is already running");if(Y===g){if(H==="throw")throw ie;return B()}for(U.method=H,U.arg=ie;;){var ee=U.delegate;if(ee){var se=L(ee,U);if(se){if(se===x)continue;return se}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(Y===p)throw Y=g,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);Y=m;var oe=h(j,I,U);if(oe.type==="normal"){if(Y=U.done?g:v,oe.arg===x)continue;return{value:oe.arg,done:U.done}}else oe.type==="throw"&&(Y=g,U.method="throw",U.arg=oe.arg)}}}function L(j,I){var U=I.method,Y=j.iterator[U];if(Y===o)return I.delegate=null,U==="throw"&&j.iterator.return&&
661(I.method="return",I.arg=o,L(j,I),I.method==="throw")||U!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+U+"' method")),x;var O=h(Y,j.iterator,I.arg);if(O.type==="throw")return I.method="throw",I.arg=O.arg,I.delegate=null,x;var H=O.arg;if(!H)return I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,x;if(H.done)I[j.resultName]=H.value,I.next=j.nextLoc,I.method!=="return"&&(I.method="next",I.arg=o);else return H;return I.delegate=null,x}A(E),d(E,c,"Generator"),d(E,l,function(){return this}),d(E,"toString",function(){return"[object Generator]"});function R(j){var I={tryLoc:j[0]};1 in j&&(I.catchLoc=j[1]),2 in j&&(I.finallyLoc=j[2],I.afterLoc=j[3]),this.tryEntries.push(I)}function M(j){var I=j.completion||{};I.type="normal",delete I.arg,j.completion=I}function $(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(R,this),this.reset(!0)}r.keys=function(j){var I=Object(j),U=[];for(var Y in I)U.push(Y);return U.reverse(),function O(){for(;U.length;){var H=U.pop();if(H in I)return O.value=H,O.done=!1,O}return O.done=!0,O}};function V(j){if(j){var I=j[l];if(I)return I.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var U=-1,Y=function O(){for(;++U<j.length;)if(a.call(j,U))return O.value=j[U],O.done=!1,O;return O.value=o,O.done=!0,O};return Y.next=Y}}return{next:B}}r.values=V;function B(){return{value:o,done:!0}}return $.prototype={constructor:$,reset:function(j){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(M),!j)for(var I in this)I.charAt(0)==="t"&&a.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=o)},stop:function(){this.done=!0;var j=this.tryEntries[0],I=j.completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(j){if(this.done)throw j;var I=this;function U(se,oe){return H.type="throw",H.arg=j,I.next=se,oe&&(I.method="next",I.arg=o),!!oe}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var O=this.tryEntries[Y],H=O.completion;if(O.tryLoc==="root")return U("end");if(O.tryLoc<=this.prev){var ie=a.call(O,"catchLoc"),ee=a.call(O,"finallyLoc");if(ie&&ee){if(this.prev<O.catchLoc)return U(O.catchLoc,!0);if(this.prev<O.finallyLoc)return U(O.finallyLoc)}else if(ie){if(this.prev<O.catchLoc)return U(O.catchLoc,!0)}else if(ee){if(this.prev<O.finallyLoc)return U(O.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(j,I){for(var U=this.tryEntries.length-1;U>=0;--U){var Y=this.tryEntries[U];if(Y.tryLoc<=this.prev&&a.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var O=Y;break}}O&&(j==="break"||j==="continue")&&O.tryLoc<=I&&I<=O.finallyLoc&&(O=null);var H=O?O.completion:{};return H.type=j,H.arg=I,O?(this.method="next",this.next=O.finallyLoc,x):this.complete(H)},complete:function(j,I){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&I&&(this.next=I),x},finish:function(j){for(var I=this.tryEntries.length-1;I>=0;--I){var U=this.tryEntries[I];if(U.finallyLoc===j)return this.complete(U.completion,U.afterLoc),M(U),x}},catch:function(j){for(var I=this.tryEntries.length-1;I>=0;--I){var U=this.tryEntries[I];if(U.tryLoc===j){var Y=U.completion;if(Y.type==="throw"){var O=Y.arg;M(U)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(j,I,U){return this.delegate={iterator:V(j),resultName:I,nextLoc:U},this.method==="next"&&(this.arg=o),x}},r}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(yPt);var eme,JQ=Fr;eme=JQ.createRoot,JQ.hydrateRoot;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};t1e.init("bdc492847e9340eeebd53cc35f321691");function xPt(){const e=Pk(nx),t=Jr(r=>r.loadFromStorage);return z.useEffect(()=>{t()},[t]),z.useEffect(()=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]),y(wd.StrictMode,{children:y(Oye,{basename:"",children:y(z.Suspense,{fallback:y(Fme,{}),children:w(Pye,{children:[y(hr,{path:"/login",element:y(O_e,{})}),y(hr,{path:"/register",element:y(z_e,{})}),y(hr,{path:"/admin/login",element:y(B_e,{})}),y(hr,{path:"/",element:y(_o,{children:y(So,{children:y(K2e,{})})})}),y(hr,{path:"/paragraphs",element:y(_o,{children:y(So,{children:y(Lke,{})})})}),y(hr,{path:"/paragraphs/:id/recite",element:y(_o,{children:y(So,{children:y($ke,{})})})}),y(hr,{path:"/sentences",element:y(_o,{children:y(So,{children:y(Vke,{})})})}),y(hr,{path:"/words",element:y(_o,{children:y(So,{children:y(Zke,{})})})}),y(hr,{path:"/review",element:y(_o,{children:y(So,{children:y(Qke,{})})})}),y(hr,{path:"/profile",element:y(_o,{children:y(So,{children:y(rCe,{})})})}),y(hr,{path:"/challenge",element:y(_o,{children:y(So,{children:y(oCe,{})})})}),y(hr,{path:"/leaderboard",element:y(_o,{children:y(So,{children:y(lCe,{})})})}),y(hr,{path:"/insights",element:y(_o,{children:y(So,{children:y(SZe,{})})})}),y(hr,{path:"/admin",element:y(vg,{children:y(mg,{children:y(pke,{})})})}),y(hr,{path:"/admin/users",element:y(vg,{children:y(mg,{children:y(vke,{})})})}),y(hr,{path:"/admin/words",element:y(vg,{children:y(mg,{children:y(bke,{})})})}),y(hr,{path:"/admin/sentences",element:y(vg,{children:y(mg,{children:y(Cke,{})})})}),y(hr,{path:"/admin/paragraphs",element:y(vg,{children:y(mg,{children:y(Ike,{})})})}),y(hr,{path:"/gallery",element:y(hp,{to:"/"})}),y(hr,{path:"/friend-links",element:y(hp,{to:"/"})}),y(hr,{path:"/*",element:y(hp,{to:"/"})})]})})})})}const QQ=document.getElementById("root");QQ&&eme(QQ).render(y(xPt,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.