@virtualansoftware/vs-office-viewer 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/client/assets/DocxViewer-BcXhLJfm.css +1 -0
  2. package/dist/client/assets/DocxViewer-CPMpeQTq.js +58 -0
  3. package/dist/client/assets/LogoIcon-CTf12WP0.js +1 -0
  4. package/dist/client/assets/PptxViewer-Bvr-20MJ.js +59 -0
  5. package/dist/client/assets/PptxViewer-Cn8CqLfg.css +1 -0
  6. package/dist/client/assets/XlsxViewer-CGc0vtBk.js +63 -0
  7. package/dist/client/assets/XlsxViewer-DTxE-neD.css +1 -0
  8. package/dist/client/assets/chevron-right-D0jHq8Hg.js +1 -0
  9. package/dist/client/assets/form-KvBV47dq.js +1 -0
  10. package/dist/client/assets/index-DATp3RB-.js +12 -0
  11. package/dist/client/assets/jszip.min-DhiFe-R7.js +2 -0
  12. package/dist/client/assets/login-aBY8Ktaw.js +1 -0
  13. package/dist/client/assets/register-BB43pNvY.js +1 -0
  14. package/dist/client/assets/rolldown-runtime-aKtaBQYM.js +1 -0
  15. package/dist/client/assets/routes-1JmKig5J.js +2 -0
  16. package/dist/client/assets/styles-F8oSmVJa.css +2 -0
  17. package/dist/client/robots.txt +2 -0
  18. package/dist/server/assets/DocxViewer-Bvu47Jxr.js +544 -0
  19. package/dist/server/assets/LogoIcon-D2qIWtkU.js +93 -0
  20. package/dist/server/assets/PptxViewer-CjRu82CL.js +209 -0
  21. package/dist/server/assets/XlsxViewer-CtBSfYb7.js +870 -0
  22. package/dist/server/assets/_tanstack-start-manifest_v-CQ5gmg8o.js +43 -0
  23. package/dist/server/assets/createMiddleware-BnSPczhK.js +24 -0
  24. package/dist/server/assets/empty-plugin-adapters-D9UWiqvJ.js +5 -0
  25. package/dist/server/assets/form-DY0gQsTv.js +249 -0
  26. package/dist/server/assets/login-hnUq0LLL.js +122 -0
  27. package/dist/server/assets/register-DIFjHkZS.js +164 -0
  28. package/dist/server/assets/router-CJA4LnAB.js +281 -0
  29. package/dist/server/assets/routes-DT9ZAw-E.js +481 -0
  30. package/dist/server/assets/server-vIOK9n3w.js +1595 -0
  31. package/dist/server/assets/start-RYa-0bjt.js +43 -0
  32. package/dist/server/server.js +86 -0
  33. package/package.json +7 -6
@@ -0,0 +1,58 @@
1
+ import{i as e,n as t}from"./rolldown-runtime-aKtaBQYM.js";import{a as n,s as r}from"./index-DATp3RB-.js";import{n as i}from"./LogoIcon-CTf12WP0.js";import{n as a,t as o}from"./chevron-right-D0jHq8Hg.js";import{t as s}from"./jszip.min-DhiFe-R7.js";var c=e(r(),1),l=e(s(),1),u;(function(e){e.OfficeDocument=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,e.FontTable=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable`,e.Image=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,e.Numbering=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering`,e.Styles=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles`,e.StylesWithEffects=`http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects`,e.Theme=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`,e.Settings=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings`,e.WebSettings=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings`,e.Hyperlink=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,e.Footnotes=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes`,e.Endnotes=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes`,e.Footer=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer`,e.Header=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/header`,e.ExtendedProperties=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,e.CoreProperties=`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`,e.CustomProperties=`http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties`,e.Comments=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`,e.CommentsExtended=`http://schemas.microsoft.com/office/2011/relationships/commentsExtended`,e.AltChunk=`http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk`})(u||={});function d(e,t){return t.elements(e).map(e=>({id:t.attr(e,`Id`),type:t.attr(e,`Type`),target:t.attr(e,`Target`),targetMode:t.attr(e,`TargetMode`)}))}function f(e){return e?.replace(/[ .]+/g,`-`).replace(/[&]+/g,`and`).toLowerCase()}function p(e){return/^[^"'].*\s.*[^"']$/.test(e)?`'${e}'`:e}function m(e){let t=e.lastIndexOf(`/`)+1;return[t==0?``:e.substring(0,t),t==0?e:e.substring(t)]}function h(e,t){try{return new URL(e,`http://docx/`+t).toString().substring(12)}catch{return`${t}${e}`}}function g(e,t){return e.reduce((e,n)=>(e[t(n)]=n,e),{})}function _(e){return new Promise((t,n)=>{let r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=()=>n(),r.readAsDataURL(e)})}function v(e){return e&&typeof e==`object`&&!Array.isArray(e)}function y(e){return typeof e==`string`||e instanceof String}function b(e,...t){if(!t.length)return e;let n=t.shift();if(v(e)&&v(n))for(let t in n)v(n[t])?b(e[t]??(e[t]={}),n[t]):e[t]=n[t];return b(e,...t)}function x(e){return Array.isArray(e)?e:[e]}function S(e,t,n){return t>e?t:n<e?n:e}var C={wordml:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`},w={Dxa:{mul:.05,unit:`pt`},Emu:{mul:1/12700,unit:`pt`},FontSize:{mul:.5,unit:`pt`},Border:{mul:.125,unit:`pt`,min:.25,max:12},Point:{mul:1,unit:`pt`},Percent:{mul:.02,unit:`%`}};function T(e,t=w.Dxa){if(e==null||/.+(p[xt]|[%])$/.test(e))return e;var n=parseInt(e)*t.mul;return t.min&&t.max&&(n=S(n,t.min,t.max)),`${n.toFixed(2)}${t.unit}`}function E(e,t=!1){switch(e){case`1`:return!0;case`0`:return!1;case`on`:return!0;case`off`:return!1;case`true`:return!0;case`false`:return!1;default:return t}}function D(e,t,n){if(e.namespaceURI!=C.wordml)return!1;switch(e.localName){case`color`:t.color=n.attr(e,`val`);break;case`sz`:t.fontSize=n.lengthAttr(e,`val`,w.FontSize);break;default:return!1}return!0}function O(e,t=!1){t&&(e=e.replace(/<[?].*[?]>/,``)),e=A(e);let n=new DOMParser().parseFromString(e,`application/xml`),r=k(n);if(r)throw Error(r);return n}function k(e){return e.getElementsByTagName(`parsererror`)[0]?.textContent}function A(e){return e.charCodeAt(0)===65279?e.substring(1):e}function j(e){return new XMLSerializer().serializeToString(e)}var ee=class{elements(e,t=null){let n=[];for(let r=0,i=e.childNodes.length;r<i;r++){let i=e.childNodes.item(r);i.nodeType==Node.ELEMENT_NODE&&(t==null||i.localName==t)&&n.push(i)}return n}element(e,t){for(let n=0,r=e.childNodes.length;n<r;n++){let r=e.childNodes.item(n);if(r.nodeType==1&&r.localName==t)return r}return null}elementAttr(e,t,n){var r=this.element(e,t);return r?this.attr(r,n):void 0}attrs(e){return Array.from(e.attributes)}attr(e,t){for(let n=0,r=e.attributes.length;n<r;n++){let r=e.attributes.item(n);if(r.localName==t)return r.value}return null}intAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r):n}hexAttr(e,t,n=null){var r=this.attr(e,t);return r?parseInt(r,16):n}floatAttr(e,t,n=null){var r=this.attr(e,t);return r?parseFloat(r):n}boolAttr(e,t,n=null){return E(this.attr(e,t),n)}lengthAttr(e,t,n=w.Dxa){return T(this.attr(e,t),n)}},M=new ee,te=class{constructor(e,t){this._package=e,this.path=t}async load(){this.rels=await this._package.loadRelationships(this.path);let e=await this._package.load(this.path),t=this._package.parseXmlDocument(e);this._package.options.keepOrigin&&(this._xmlDocument=t),this.parseXml(t.firstElementChild)}save(){this._package.update(this.path,j(this._xmlDocument))}parseXml(e){}},ne={embedRegular:`regular`,embedBold:`bold`,embedItalic:`italic`,embedBoldItalic:`boldItalic`};function re(e,t){return t.elements(e).map(e=>ie(e,t))}function ie(e,t){let n={name:t.attr(e,`name`),embedFontRefs:[]};for(let r of t.elements(e))switch(r.localName){case`family`:n.family=t.attr(r,`val`);break;case`altName`:n.altName=t.attr(r,`val`);break;case`embedRegular`:case`embedBold`:case`embedItalic`:case`embedBoldItalic`:n.embedFontRefs.push(ae(r,t));break}return n}function ae(e,t){return{id:t.attr(e,`id`),key:t.attr(e,`fontKey`),type:ne[e.localName]}}var oe=class extends te{parseXml(e){this.fonts=re(e,this._package.xmlParser)}},se=class e{constructor(e,t){this._zip=e,this.options=t,this.xmlParser=new ee}get(e){let t=ce(e);return this._zip.files[t]??this._zip.files[t.replace(/\//g,`\\`)]}update(e,t){this._zip.file(e,t)}static async load(t,n){let r=await l.default.loadAsync(t);return new e(r,n)}save(e=`blob`){return this._zip.generateAsync({type:e})}load(e,t=`string`){return this.get(e)?.async(t)??Promise.resolve(null)}async loadRelationships(e=null){let t=`_rels/.rels`;if(e!=null){let[n,r]=m(e);t=`${n}_rels/${r}.rels`}let n=await this.load(t);return n?d(this.parseXmlDocument(n).firstElementChild,this.xmlParser):null}parseXmlDocument(e){return O(e,this.options.trimXmlDeclaration)}};function ce(e){return e.startsWith(`/`)?e.substr(1):e}var le=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.body=this._documentParser.parseDocumentFile(e)}};function ue(e,t){return{type:t.attr(e,`val`),color:t.attr(e,`color`),size:t.lengthAttr(e,`sz`,w.Border),offset:t.lengthAttr(e,`space`,w.Point),frame:t.boolAttr(e,`frame`),shadow:t.boolAttr(e,`shadow`)}}function de(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case`left`:n.left=ue(r,t);break;case`top`:n.top=ue(r,t);break;case`right`:n.right=ue(r,t);break;case`bottom`:n.bottom=ue(r,t);break}return n}var fe;(function(e){e.Continuous=`continuous`,e.NextPage=`nextPage`,e.NextColumn=`nextColumn`,e.EvenPage=`evenPage`,e.OddPage=`oddPage`})(fe||={});function pe(e,t=M){var n={};for(let r of t.elements(e))switch(r.localName){case`pgSz`:n.pageSize={width:t.lengthAttr(r,`w`),height:t.lengthAttr(r,`h`),orientation:t.attr(r,`orient`)};break;case`type`:n.type=t.attr(r,`val`);break;case`pgMar`:n.pageMargins={left:t.lengthAttr(r,`left`),right:t.lengthAttr(r,`right`),top:t.lengthAttr(r,`top`),bottom:t.lengthAttr(r,`bottom`),header:t.lengthAttr(r,`header`),footer:t.lengthAttr(r,`footer`),gutter:t.lengthAttr(r,`gutter`)};break;case`cols`:n.columns=me(r,t);break;case`headerReference`:(n.headerRefs??=[]).push(ge(r,t));break;case`footerReference`:(n.footerRefs??=[]).push(ge(r,t));break;case`titlePg`:n.titlePage=t.boolAttr(r,`val`,!0);break;case`pgBorders`:n.pageBorders=de(r,t);break;case`pgNumType`:n.pageNumber=he(r,t);break}return n}function me(e,t){return{numberOfColumns:t.intAttr(e,`num`),space:t.lengthAttr(e,`space`),separator:t.boolAttr(e,`sep`),equalWidth:t.boolAttr(e,`equalWidth`,!0),columns:t.elements(e,`col`).map(e=>({width:t.lengthAttr(e,`w`),space:t.lengthAttr(e,`space`)}))}}function he(e,t){return{chapSep:t.attr(e,`chapSep`),chapStyle:t.attr(e,`chapStyle`),format:t.attr(e,`fmt`),start:t.intAttr(e,`start`)}}function ge(e,t){return{id:t.attr(e,`id`),type:t.attr(e,`type`)}}function _e(e,t){return{before:t.lengthAttr(e,`before`),after:t.lengthAttr(e,`after`),line:t.intAttr(e,`line`),lineRule:t.attr(e,`lineRule`)}}function ve(e,t){let n={};for(let r of t.elements(e))ye(r,n,t);return n}function ye(e,t,n){return!!D(e,t,n)}function be(e,t){let n={};for(let r of t.elements(e))xe(r,n,t);return n}function xe(e,t,n){if(e.namespaceURI!=C.wordml)return!1;if(D(e,t,n))return!0;switch(e.localName){case`tabs`:t.tabs=Se(e,n);break;case`sectPr`:t.sectionProps=pe(e,n);break;case`numPr`:t.numbering=Ce(e,n);break;case`spacing`:return t.lineSpacing=_e(e,n),!1;case`textAlignment`:return t.textAlignment=n.attr(e,`val`),!1;case`keepLines`:t.keepLines=n.boolAttr(e,`val`,!0);break;case`keepNext`:t.keepNext=n.boolAttr(e,`val`,!0);break;case`pageBreakBefore`:t.pageBreakBefore=n.boolAttr(e,`val`,!0);break;case`outlineLvl`:t.outlineLevel=n.intAttr(e,`val`);break;case`pStyle`:t.styleName=n.attr(e,`val`);break;case`rPr`:t.runProps=ve(e,n);break;default:return!1}return!0}function Se(e,t){return t.elements(e,`tab`).map(e=>({position:t.lengthAttr(e,`pos`),leader:t.attr(e,`leader`),style:t.attr(e,`val`)}))}function Ce(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case`numId`:n.id=t.attr(r,`val`);break;case`ilvl`:n.level=t.intAttr(r,`val`);break}return n}function we(e,t){let n={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let r of t.elements(e))switch(r.localName){case`num`:n.numberings.push(Te(r,t));break;case`abstractNum`:n.abstractNumberings.push(Ee(r,t));break;case`numPicBullet`:n.bulletPictures.push(ke(r,t));break}return n}function Te(e,t){let n={id:t.attr(e,`numId`),overrides:[]};for(let r of t.elements(e))switch(r.localName){case`abstractNumId`:n.abstractId=t.attr(r,`val`);break;case`lvlOverride`:n.overrides.push(Oe(r,t));break}return n}function Ee(e,t){let n={id:t.attr(e,`abstractNumId`),levels:[]};for(let r of t.elements(e))switch(r.localName){case`name`:n.name=t.attr(r,`val`);break;case`multiLevelType`:n.multiLevelType=t.attr(r,`val`);break;case`numStyleLink`:n.numberingStyleLink=t.attr(r,`val`);break;case`styleLink`:n.styleLink=t.attr(r,`val`);break;case`lvl`:n.levels.push(De(r,t));break}return n}function De(e,t){let n={level:t.intAttr(e,`ilvl`)};for(let r of t.elements(e))switch(r.localName){case`start`:n.start=t.attr(r,`val`);break;case`lvlRestart`:n.restart=t.intAttr(r,`val`);break;case`numFmt`:n.format=t.attr(r,`val`);break;case`lvlText`:n.text=t.attr(r,`val`);break;case`lvlJc`:n.justification=t.attr(r,`val`);break;case`lvlPicBulletId`:n.bulletPictureId=t.attr(r,`val`);break;case`pStyle`:n.paragraphStyle=t.attr(r,`val`);break;case`pPr`:n.paragraphProps=be(r,t);break;case`rPr`:n.runProps=ve(r,t);break}return n}function Oe(e,t){let n={level:t.intAttr(e,`ilvl`)};for(let r of t.elements(e))switch(r.localName){case`startOverride`:n.start=t.intAttr(r,`val`);break;case`lvl`:n.numberingLevel=De(r,t);break}return n}function ke(e,t){var n=t.element(e,`pict`),r=n&&t.element(n,`shape`),i=r&&t.element(r,`imagedata`);return i?{id:t.attr(e,`numPicBulletId`),referenceId:t.attr(i,`id`),style:t.attr(r,`style`)}:null}var Ae=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){Object.assign(this,we(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}},je=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.styles=this._documentParser.parseStylesFile(e)}},N;(function(e){e.Document=`document`,e.Paragraph=`paragraph`,e.Run=`run`,e.Break=`break`,e.NoBreakHyphen=`noBreakHyphen`,e.Table=`table`,e.Row=`row`,e.Cell=`cell`,e.Hyperlink=`hyperlink`,e.SmartTag=`smartTag`,e.Drawing=`drawing`,e.Image=`image`,e.Text=`text`,e.Tab=`tab`,e.Symbol=`symbol`,e.BookmarkStart=`bookmarkStart`,e.BookmarkEnd=`bookmarkEnd`,e.Footer=`footer`,e.Header=`header`,e.FootnoteReference=`footnoteReference`,e.EndnoteReference=`endnoteReference`,e.Footnote=`footnote`,e.Endnote=`endnote`,e.SimpleField=`simpleField`,e.ComplexField=`complexField`,e.Instruction=`instruction`,e.VmlPicture=`vmlPicture`,e.MmlMath=`mmlMath`,e.MmlMathParagraph=`mmlMathParagraph`,e.MmlFraction=`mmlFraction`,e.MmlFunction=`mmlFunction`,e.MmlFunctionName=`mmlFunctionName`,e.MmlNumerator=`mmlNumerator`,e.MmlDenominator=`mmlDenominator`,e.MmlRadical=`mmlRadical`,e.MmlBase=`mmlBase`,e.MmlDegree=`mmlDegree`,e.MmlSuperscript=`mmlSuperscript`,e.MmlSubscript=`mmlSubscript`,e.MmlPreSubSuper=`mmlPreSubSuper`,e.MmlSubArgument=`mmlSubArgument`,e.MmlSuperArgument=`mmlSuperArgument`,e.MmlNary=`mmlNary`,e.MmlDelimiter=`mmlDelimiter`,e.MmlRun=`mmlRun`,e.MmlEquationArray=`mmlEquationArray`,e.MmlLimit=`mmlLimit`,e.MmlLimitLower=`mmlLimitLower`,e.MmlMatrix=`mmlMatrix`,e.MmlMatrixRow=`mmlMatrixRow`,e.MmlBox=`mmlBox`,e.MmlBar=`mmlBar`,e.MmlGroupChar=`mmlGroupChar`,e.VmlElement=`vmlElement`,e.Inserted=`inserted`,e.Deleted=`deleted`,e.DeletedText=`deletedText`,e.Comment=`comment`,e.CommentReference=`commentReference`,e.CommentRangeStart=`commentRangeStart`,e.CommentRangeEnd=`commentRangeEnd`,e.AltChunk=`altChunk`})(N||={});var Me=class{constructor(){this.children=[],this.cssStyle={}}},Ne=class extends Me{constructor(){super(...arguments),this.type=N.Header}},Pe=class extends Me{constructor(){super(...arguments),this.type=N.Footer}},Fe=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}},Ie=class extends Fe{createRootElement(){return new Ne}},Le=class extends Fe{createRootElement(){return new Pe}};function Re(e,t){let n={};for(let r of t.elements(e))switch(r.localName){case`Template`:n.template=r.textContent;break;case`Pages`:n.pages=ze(r.textContent);break;case`Words`:n.words=ze(r.textContent);break;case`Characters`:n.characters=ze(r.textContent);break;case`Application`:n.application=r.textContent;break;case`Lines`:n.lines=ze(r.textContent);break;case`Paragraphs`:n.paragraphs=ze(r.textContent);break;case`Company`:n.company=r.textContent;break;case`AppVersion`:n.appVersion=r.textContent;break}return n}function ze(e){if(e!==void 0)return parseInt(e)}var Be=class extends te{parseXml(e){this.props=Re(e,this._package.xmlParser)}};function Ve(e,t){let n={};for(let r of t.elements(e))switch(r.localName){case`title`:n.title=r.textContent;break;case`description`:n.description=r.textContent;break;case`subject`:n.subject=r.textContent;break;case`creator`:n.creator=r.textContent;break;case`keywords`:n.keywords=r.textContent;break;case`language`:n.language=r.textContent;break;case`lastModifiedBy`:n.lastModifiedBy=r.textContent;break;case`revision`:r.textContent&&(n.revision=parseInt(r.textContent));break}return n}var He=class extends te{parseXml(e){this.props=Ve(e,this._package.xmlParser)}},Ue=class{};function We(e,t){var n=new Ue,r=t.element(e,`themeElements`);for(let e of t.elements(r))switch(e.localName){case`clrScheme`:n.colorScheme=Ge(e,t);break;case`fontScheme`:n.fontScheme=Ke(e,t);break}return n}function Ge(e,t){var n={name:t.attr(e,`name`),colors:{}};for(let a of t.elements(e)){var r=t.element(a,`srgbClr`),i=t.element(a,`sysClr`);r?n.colors[a.localName]=t.attr(r,`val`):i&&(n.colors[a.localName]=t.attr(i,`lastClr`))}return n}function Ke(e,t){var n={name:t.attr(e,`name`)};for(let r of t.elements(e))switch(r.localName){case`majorFont`:n.majorFont=qe(r,t);break;case`minorFont`:n.minorFont=qe(r,t);break}return n}function qe(e,t){return{latinTypeface:t.elementAttr(e,`latin`,`typeface`),eaTypeface:t.elementAttr(e,`ea`,`typeface`),csTypeface:t.elementAttr(e,`cs`,`typeface`)}}var Je=class extends te{constructor(e,t){super(e,t)}parseXml(e){this.theme=We(e,this._package.xmlParser)}},Ye=class{},Xe=class extends Ye{constructor(){super(...arguments),this.type=N.Footnote}},Ze=class extends Ye{constructor(){super(...arguments),this.type=N.Endnote}},Qe=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}},$e=class extends Qe{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,`footnote`,Xe)}},et=class extends Qe{constructor(e,t,n){super(e,t,n)}parseXml(e){this.notes=this._documentParser.parseNotes(e,`endnote`,Ze)}};function tt(e,t){var n={};for(let r of t.elements(e))switch(r.localName){case`defaultTabStop`:n.defaultTabStop=t.lengthAttr(r,`val`);break;case`footnotePr`:n.footnoteProps=nt(r,t);break;case`endnotePr`:n.endnoteProps=nt(r,t);break;case`autoHyphenation`:n.autoHyphenation=t.boolAttr(r,`val`);break}return n}function nt(e,t){var n={defaultNoteIds:[]};for(let r of t.elements(e))switch(r.localName){case`numFmt`:n.nummeringFormat=t.attr(r,`val`);break;case`footnote`:case`endnote`:n.defaultNoteIds.push(t.attr(r,`id`));break}return n}var rt=class extends te{constructor(e,t){super(e,t)}parseXml(e){this.settings=tt(e,this._package.xmlParser)}};function it(e,t){return t.elements(e,`property`).map(e=>{let n=e.firstChild;return{formatId:t.attr(e,`fmtid`),name:t.attr(e,`name`),type:n.nodeName,value:n.textContent}})}var at=class extends te{parseXml(e){this.props=it(e,this._package.xmlParser)}},ot=class extends te{constructor(e,t,n){super(e,t),this._documentParser=n}parseXml(e){this.comments=this._documentParser.parseComments(e),this.commentMap=g(this.comments,e=>e.id)}},st=class extends te{constructor(e,t){super(e,t),this.comments=[]}parseXml(e){let t=this._package.xmlParser;for(let n of t.elements(e,`commentEx`))this.comments.push({paraId:t.attr(n,`paraId`),paraIdParent:t.attr(n,`paraIdParent`),done:t.boolAttr(n,`done`)});this.commentMap=g(this.comments,e=>e.paraId)}},ct=[{type:u.OfficeDocument,target:`word/document.xml`},{type:u.ExtendedProperties,target:`docProps/app.xml`},{type:u.CoreProperties,target:`docProps/core.xml`},{type:u.CustomProperties,target:`docProps/custom.xml`}],lt=class e{constructor(){this.parts=[],this.partsMap={}}static async load(t,n,r){var i=new e;return i._options=r,i._parser=n,i._package=await se.load(t,r),i.rels=await i._package.loadRelationships(),await Promise.all(ct.map(e=>{let t=i.rels.find(t=>t.type===e.type)??e;return i.loadRelationshipPart(t.target,t.type)})),i}save(e=`blob`){return this._package.save(e)}async loadRelationshipPart(e,t){if(this.partsMap[e])return this.partsMap[e];if(!this._package.get(e))return null;let n=null;switch(t){case u.OfficeDocument:this.documentPart=n=new le(this._package,e,this._parser);break;case u.FontTable:this.fontTablePart=n=new oe(this._package,e);break;case u.Numbering:this.numberingPart=n=new Ae(this._package,e,this._parser);break;case u.Styles:this.stylesPart=n=new je(this._package,e,this._parser);break;case u.Theme:this.themePart=n=new Je(this._package,e);break;case u.Footnotes:this.footnotesPart=n=new $e(this._package,e,this._parser);break;case u.Endnotes:this.endnotesPart=n=new et(this._package,e,this._parser);break;case u.Footer:n=new Le(this._package,e,this._parser);break;case u.Header:n=new Ie(this._package,e,this._parser);break;case u.CoreProperties:this.corePropsPart=n=new He(this._package,e);break;case u.ExtendedProperties:this.extendedPropsPart=n=new Be(this._package,e);break;case u.CustomProperties:n=new at(this._package,e);break;case u.Settings:this.settingsPart=n=new rt(this._package,e);break;case u.Comments:this.commentsPart=n=new ot(this._package,e,this._parser);break;case u.CommentsExtended:this.commentsExtendedPart=n=new st(this._package,e);break}if(n==null)return Promise.resolve(null);if(this.partsMap[e]=n,this.parts.push(n),await n.load(),n.rels?.length>0){let[e]=m(n.path);await Promise.all(n.rels.map(t=>this.loadRelationshipPart(h(t.target,e),t.type)))}return n}async loadDocumentImage(e,t){let n=await this.loadResource(t??this.documentPart,e,`blob`);return this.blobToURL(n)}async loadNumberingImage(e){let t=await this.loadResource(this.numberingPart,e,`blob`);return this.blobToURL(t)}async loadFont(e,t){let n=await this.loadResource(this.fontTablePart,e,`uint8array`);return n&&this.blobToURL(new Blob([ut(n,t)]))}async loadAltChunk(e,t){return await this.loadResource(t??this.documentPart,e,`string`)}blobToURL(e){return e?this._options.useBase64URL?_(e):URL.createObjectURL(e):null}findPartByRelId(e,t=null){var n=(t.rels??this.rels).find(t=>t.id==e);let r=t?m(t.path)[0]:``;return n?this.partsMap[h(n.target,r)]:null}getPathById(e,t){let n=e.rels.find(e=>e.id==t),[r]=m(e.path);return n?h(n.target,r):null}loadResource(e,t,n){let r=this.getPathById(e,t);return r?this._package.load(r,n):Promise.resolve(null)}};function ut(e,t){let n=t.replace(/{|}|-/g,``),r=Array(16);for(let e=0;e<16;e++)r[16-e-1]=parseInt(n.substring(e*2,e*2+2),16);for(let t=0;t<32;t++)e[t]=e[t]^r[t%16];return e}function dt(e,t){return{type:N.BookmarkStart,id:t.attr(e,`id`),name:t.attr(e,`name`),colFirst:t.intAttr(e,`colFirst`),colLast:t.intAttr(e,`colLast`)}}function ft(e,t){return{type:N.BookmarkEnd,id:t.attr(e,`id`)}}var pt=class extends Me{constructor(){super(...arguments),this.type=N.VmlElement,this.attrs={}}};function mt(e,t){var n=new pt;switch(e.localName){case`rect`:n.tagName=`rect`,Object.assign(n.attrs,{width:`100%`,height:`100%`});break;case`oval`:n.tagName=`ellipse`,Object.assign(n.attrs,{cx:`50%`,cy:`50%`,rx:`50%`,ry:`50%`});break;case`line`:n.tagName=`line`;break;case`shape`:n.tagName=`g`;break;case`textbox`:n.tagName=`foreignObject`,Object.assign(n.attrs,{width:`100%`,height:`100%`});break;default:return null}for(let t of M.attrs(e))switch(t.localName){case`style`:n.cssStyleText=t.value;break;case`fillcolor`:n.attrs.fill=t.value;break;case`from`:let[e,r]=_t(t.value);Object.assign(n.attrs,{x1:e,y1:r});break;case`to`:let[i,a]=_t(t.value);Object.assign(n.attrs,{x2:i,y2:a});break}for(let r of M.elements(e))switch(r.localName){case`stroke`:Object.assign(n.attrs,ht(r));break;case`fill`:Object.assign(n.attrs,gt());break;case`imagedata`:n.tagName=`image`,Object.assign(n.attrs,{width:`100%`,height:`100%`}),n.imageHref={id:M.attr(r,`id`),title:M.attr(r,`title`)};break;case`txbxContent`:n.children.push(...t.parseBodyElements(r));break;default:let e=mt(r,t);e&&n.children.push(e);break}return n}function ht(e){return{stroke:M.attr(e,`color`),"stroke-width":M.lengthAttr(e,`weight`,w.Emu)??`1px`}}function gt(e){return{}}function _t(e){return e.split(`,`)}var vt=class extends Me{constructor(){super(...arguments),this.type=N.Comment}},yt=class extends Me{constructor(e){super(),this.id=e,this.type=N.CommentReference}},bt=class extends Me{constructor(e){super(),this.id=e,this.type=N.CommentRangeStart}},xt=class extends Me{constructor(e){super(),this.id=e,this.type=N.CommentRangeEnd}},St={shd:`inherit`,color:`black`,borderColor:`black`,highlight:`transparent`},Ct=[],wt={oMath:N.MmlMath,oMathPara:N.MmlMathParagraph,f:N.MmlFraction,func:N.MmlFunction,fName:N.MmlFunctionName,num:N.MmlNumerator,den:N.MmlDenominator,rad:N.MmlRadical,deg:N.MmlDegree,e:N.MmlBase,sSup:N.MmlSuperscript,sSub:N.MmlSubscript,sPre:N.MmlPreSubSuper,sup:N.MmlSuperArgument,sub:N.MmlSubArgument,d:N.MmlDelimiter,nary:N.MmlNary,eqArr:N.MmlEquationArray,lim:N.MmlLimit,limLow:N.MmlLimitLower,m:N.MmlMatrix,mr:N.MmlMatrixRow,box:N.MmlBox,bar:N.MmlBar,groupChr:N.MmlGroupChar},Tt=class{constructor(e){this.options={ignoreWidth:!1,debug:!1,...e}}parseNotes(e,t,n){var r=[];for(let i of M.elements(e,t)){let e=new n;e.id=M.attr(i,`id`),e.noteType=M.attr(i,`type`),e.children=this.parseBodyElements(i),r.push(e)}return r}parseComments(e){var t=[];for(let n of M.elements(e,`comment`)){let e=new vt;e.id=M.attr(n,`id`),e.author=M.attr(n,`author`),e.initials=M.attr(n,`initials`),e.date=M.attr(n,`date`),e.children=this.parseBodyElements(n),t.push(e)}return t}parseDocumentFile(e){var t=M.element(e,`body`),n=M.element(e,`background`),r=M.element(t,`sectPr`);return{type:N.Document,children:this.parseBodyElements(t),props:r?pe(r,M):{},cssStyle:n?this.parseBackground(n):{}}}parseBackground(e){var t={},n=Dt.colorAttr(e,`color`);return n&&(t[`background-color`]=n),t}parseBodyElements(e){var t=[];for(let n of M.elements(e))switch(n.localName){case`p`:t.push(this.parseParagraph(n));break;case`altChunk`:t.push(this.parseAltChunk(n));break;case`tbl`:t.push(this.parseTable(n));break;case`sdt`:t.push(...this.parseSdt(n,e=>this.parseBodyElements(e)));break}return t}parseStylesFile(e){var t=[];for(let n of M.elements(e))switch(n.localName){case`style`:t.push(this.parseStyle(n));break;case`docDefaults`:t.push(this.parseDefaultStyles(n));break}return t}parseDefaultStyles(e){var t={id:null,name:null,target:null,basedOn:null,styles:[]};for(let i of M.elements(e))switch(i.localName){case`rPrDefault`:var n=M.element(i,`rPr`);n&&t.styles.push({target:`span`,values:this.parseDefaultProperties(n,{})});break;case`pPrDefault`:var r=M.element(i,`pPr`);r&&t.styles.push({target:`p`,values:this.parseDefaultProperties(r,{})});break}return t}parseStyle(e){var t={id:M.attr(e,`styleId`),isDefault:M.boolAttr(e,`default`),name:null,target:null,basedOn:null,styles:[],linked:null};switch(M.attr(e,`type`)){case`paragraph`:t.target=`p`;break;case`table`:t.target=`table`;break;case`character`:t.target=`span`;break}for(let n of M.elements(e))switch(n.localName){case`basedOn`:t.basedOn=M.attr(n,`val`);break;case`name`:t.name=M.attr(n,`val`);break;case`link`:t.linked=M.attr(n,`val`);break;case`next`:t.next=M.attr(n,`val`);break;case`aliases`:t.aliases=M.attr(n,`val`).split(`,`);break;case`pPr`:t.styles.push({target:`p`,values:this.parseDefaultProperties(n,{})}),t.paragraphProps=be(n,M);break;case`rPr`:t.styles.push({target:`span`,values:this.parseDefaultProperties(n,{})}),t.runProps=ve(n,M);break;case`tblPr`:case`tcPr`:t.styles.push({target:`td`,values:this.parseDefaultProperties(n,{})});break;case`tblStylePr`:for(let e of this.parseTableStyle(n))t.styles.push(e);break;case`rsid`:case`qFormat`:case`hidden`:case`semiHidden`:case`unhideWhenUsed`:case`autoRedefine`:case`uiPriority`:break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${n.localName}`)}return t}parseTableStyle(e){var t=[],n=M.attr(e,`type`),r=``,i=``;switch(n){case`firstRow`:i=`.first-row`,r=`tr.first-row td`;break;case`lastRow`:i=`.last-row`,r=`tr.last-row td`;break;case`firstCol`:i=`.first-col`,r=`td.first-col`;break;case`lastCol`:i=`.last-col`,r=`td.last-col`;break;case`band1Vert`:i=`:not(.no-vband)`,r=`td.odd-col`;break;case`band2Vert`:i=`:not(.no-vband)`,r=`td.even-col`;break;case`band1Horz`:i=`:not(.no-hband)`,r=`tr.odd-row`;break;case`band2Horz`:i=`:not(.no-hband)`,r=`tr.even-row`;break;default:return[]}for(let n of M.elements(e))switch(n.localName){case`pPr`:t.push({target:`${r} p`,mod:i,values:this.parseDefaultProperties(n,{})});break;case`rPr`:t.push({target:`${r} span`,mod:i,values:this.parseDefaultProperties(n,{})});break;case`tblPr`:case`tcPr`:t.push({target:r,mod:i,values:this.parseDefaultProperties(n,{})});break}return t}parseNumberingFile(e){var t=[],n={},r=[];for(let o of M.elements(e))switch(o.localName){case`abstractNum`:this.parseAbstractNumbering(o,r).forEach(e=>t.push(e));break;case`numPicBullet`:r.push(this.parseNumberingPicBullet(o));break;case`num`:var i=M.attr(o,`numId`),a=M.elementAttr(o,`abstractNumId`,`val`);n[a]=i;break}return t.forEach(e=>e.id=n[e.id]),t}parseNumberingPicBullet(e){var t=M.element(e,`pict`),n=t&&M.element(t,`shape`),r=n&&M.element(n,`imagedata`);return r?{id:M.intAttr(e,`numPicBulletId`),src:M.attr(r,`id`),style:M.attr(n,`style`)}:null}parseAbstractNumbering(e,t){var n=[],r=M.attr(e,`abstractNumId`);for(let i of M.elements(e))switch(i.localName){case`lvl`:n.push(this.parseNumberingLevel(r,i,t));break}return n}parseNumberingLevel(e,t,n){var r={id:e,level:M.intAttr(t,`ilvl`),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:`tab`};for(let e of M.elements(t))switch(e.localName){case`start`:r.start=M.intAttr(e,`val`);break;case`pPr`:this.parseDefaultProperties(e,r.pStyle);break;case`rPr`:this.parseDefaultProperties(e,r.rStyle);break;case`lvlPicBulletId`:var i=M.intAttr(e,`val`);r.bullet=n.find(e=>e?.id==i);break;case`lvlText`:r.levelText=M.attr(e,`val`);break;case`pStyle`:r.pStyleName=M.attr(e,`val`);break;case`numFmt`:r.format=M.attr(e,`val`);break;case`suff`:r.suff=M.attr(e,`val`);break}return r}parseSdt(e,t){let n=M.element(e,`sdtContent`);return n?t(n):[]}parseInserted(e,t){return{type:N.Inserted,children:t(e)?.children??[]}}parseDeleted(e,t){return{type:N.Deleted,children:t(e)?.children??[]}}parseAltChunk(e){return{type:N.AltChunk,children:[],id:M.attr(e,`id`)}}parseParagraph(e){var t={type:N.Paragraph,children:[]};for(let n of M.elements(e))switch(n.localName){case`pPr`:this.parseParagraphProperties(n,t);break;case`r`:t.children.push(this.parseRun(n,t));break;case`hyperlink`:t.children.push(this.parseHyperlink(n,t));break;case`smartTag`:t.children.push(this.parseSmartTag(n,t));break;case`bookmarkStart`:t.children.push(dt(n,M));break;case`bookmarkEnd`:t.children.push(ft(n,M));break;case`commentRangeStart`:t.children.push(new bt(M.attr(n,`id`)));break;case`commentRangeEnd`:t.children.push(new xt(M.attr(n,`id`)));break;case`oMath`:case`oMathPara`:t.children.push(this.parseMathElement(n));break;case`sdt`:t.children.push(...this.parseSdt(n,e=>this.parseParagraph(e).children));break;case`ins`:t.children.push(this.parseInserted(n,e=>this.parseParagraph(e)));break;case`del`:t.children.push(this.parseDeleted(n,e=>this.parseParagraph(e)));break}return t}parseParagraphProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{if(xe(e,t,M))return!0;switch(e.localName){case`pStyle`:t.styleName=M.attr(e,`val`);break;case`cnfStyle`:t.className=Ot.classNameOfCnfStyle(e);break;case`framePr`:this.parseFrame(e,t);break;case`rPr`:break;default:return!1}return!0})}parseFrame(e,t){M.attr(e,`dropCap`)==`drop`&&(t.cssStyle.float=`left`)}parseHyperlink(e,t){var n={type:N.Hyperlink,parent:t,children:[]};n.anchor=M.attr(e,`anchor`),n.id=M.attr(e,`id`);for(let t of M.elements(e))switch(t.localName){case`r`:n.children.push(this.parseRun(t,n));break}return n}parseSmartTag(e,t){var n={type:N.SmartTag,parent:t,children:[]},r=M.attr(e,`uri`),i=M.attr(e,`element`);r&&(n.uri=r),i&&(n.element=i);for(let t of M.elements(e))switch(t.localName){case`r`:n.children.push(this.parseRun(t,n));break}return n}parseRun(e,t){var n={type:N.Run,parent:t,children:[]};for(let t of M.elements(e))switch(t=this.checkAlternateContent(t),t.localName){case`t`:n.children.push({type:N.Text,text:t.textContent});break;case`delText`:n.children.push({type:N.DeletedText,text:t.textContent});break;case`commentReference`:n.children.push(new yt(M.attr(t,`id`)));break;case`fldSimple`:n.children.push({type:N.SimpleField,instruction:M.attr(t,`instr`),lock:M.boolAttr(t,`lock`,!1),dirty:M.boolAttr(t,`dirty`,!1)});break;case`instrText`:n.fieldRun=!0,n.children.push({type:N.Instruction,text:t.textContent});break;case`fldChar`:n.fieldRun=!0,n.children.push({type:N.ComplexField,charType:M.attr(t,`fldCharType`),lock:M.boolAttr(t,`lock`,!1),dirty:M.boolAttr(t,`dirty`,!1)});break;case`noBreakHyphen`:n.children.push({type:N.NoBreakHyphen});break;case`br`:n.children.push({type:N.Break,break:M.attr(t,`type`)||`textWrapping`});break;case`lastRenderedPageBreak`:n.children.push({type:N.Break,break:`lastRenderedPageBreak`});break;case`sym`:n.children.push({type:N.Symbol,font:p(M.attr(t,`font`)),char:M.attr(t,`char`)});break;case`tab`:n.children.push({type:N.Tab});break;case`footnoteReference`:n.children.push({type:N.FootnoteReference,id:M.attr(t,`id`)});break;case`endnoteReference`:n.children.push({type:N.EndnoteReference,id:M.attr(t,`id`)});break;case`drawing`:let e=this.parseDrawing(t);e&&(n.children=[e]);break;case`pict`:n.children.push(this.parseVmlPicture(t));break;case`rPr`:this.parseRunProperties(t,n);break}return n}parseMathElement(e){let t=`${e.localName}Pr`,n={type:wt[e.localName],children:[]};for(let i of M.elements(e))if(wt[i.localName])n.children.push(this.parseMathElement(i));else if(i.localName==`r`){var r=this.parseRun(i);r.type=N.MmlRun,n.children.push(r)}else i.localName==t&&(n.props=this.parseMathProperies(i));return n}parseMathProperies(e){let t={};for(let n of M.elements(e))switch(n.localName){case`chr`:t.char=M.attr(n,`val`);break;case`vertJc`:t.verticalJustification=M.attr(n,`val`);break;case`pos`:t.position=M.attr(n,`val`);break;case`degHide`:t.hideDegree=M.boolAttr(n,`val`);break;case`begChr`:t.beginChar=M.attr(n,`val`);break;case`endChr`:t.endChar=M.attr(n,`val`);break}return t}parseRunProperties(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,e=>{switch(e.localName){case`rStyle`:t.styleName=M.attr(e,`val`);break;case`vertAlign`:t.verticalAlign=Ot.valueOfVertAlign(e,!0);break;default:return!1}return!0})}parseVmlPicture(e){let t={type:N.VmlPicture,children:[]};for(let n of M.elements(e)){let e=mt(n,this);e&&t.children.push(e)}return t}checkAlternateContent(e){if(e.localName!=`AlternateContent`)return e;var t=M.element(e,`Choice`);if(t){var n=M.attr(t,`Requires`),r=e.lookupNamespaceURI(n);if(Ct.includes(r))return t.firstElementChild}return M.element(e,`Fallback`)?.firstElementChild}parseDrawing(e){for(var t of M.elements(e))switch(t.localName){case`inline`:case`anchor`:return this.parseDrawingWrapper(t)}}parseDrawingWrapper(e){var t={type:N.Drawing,children:[],cssStyle:{}},n=e.localName==`anchor`;let r=null,i=M.boolAttr(e,`simplePos`);M.boolAttr(e,`behindDoc`);let a={relative:`page`,align:`left`,offset:`0`},o={relative:`page`,align:`top`,offset:`0`};for(var s of M.elements(e))switch(s.localName){case`simplePos`:i&&(a.offset=M.lengthAttr(s,`x`,w.Emu),o.offset=M.lengthAttr(s,`y`,w.Emu));break;case`extent`:t.cssStyle.width=M.lengthAttr(s,`cx`,w.Emu),t.cssStyle.height=M.lengthAttr(s,`cy`,w.Emu);break;case`positionH`:case`positionV`:if(!i){let e=s.localName==`positionH`?a:o;var c=M.element(s,`align`),l=M.element(s,`posOffset`);e.relative=M.attr(s,`relativeFrom`)??e.relative,c&&(e.align=c.textContent),l&&(e.offset=T(l.textContent,w.Emu))}break;case`wrapTopAndBottom`:r=`wrapTopAndBottom`;break;case`wrapNone`:r=`wrapNone`;break;case`graphic`:var u=this.parseGraphic(s);u&&t.children.push(u);break}return r==`wrapTopAndBottom`?(t.cssStyle.display=`block`,a.align&&(t.cssStyle[`text-align`]=a.align,t.cssStyle.width=`100%`)):r==`wrapNone`?(t.cssStyle.display=`block`,t.cssStyle.position=`relative`,t.cssStyle.width=`0px`,t.cssStyle.height=`0px`,a.offset&&(t.cssStyle.left=a.offset),o.offset&&(t.cssStyle.top=o.offset)):n&&(a.align==`left`||a.align==`right`)&&(t.cssStyle.float=a.align),t}parseGraphic(e){var t=M.element(e,`graphicData`);for(let e of M.elements(t))switch(e.localName){case`pic`:return this.parsePicture(e)}return null}parsePicture(e){var t={type:N.Image,src:``,cssStyle:{}},n=M.element(e,`blipFill`),r=M.element(n,`blip`),i=M.element(n,`srcRect`);t.src=M.attr(r,`embed`),i&&(t.srcRect=[M.intAttr(i,`l`,0)/1e5,M.intAttr(i,`t`,0)/1e5,M.intAttr(i,`r`,0)/1e5,M.intAttr(i,`b`,0)/1e5]);var a=M.element(e,`spPr`),o=M.element(a,`xfrm`);if(t.cssStyle.position=`relative`,o){t.rotation=M.intAttr(o,`rot`,0)/6e4;for(var s of M.elements(o))switch(s.localName){case`ext`:t.cssStyle.width=M.lengthAttr(s,`cx`,w.Emu),t.cssStyle.height=M.lengthAttr(s,`cy`,w.Emu);break;case`off`:t.cssStyle.left=M.lengthAttr(s,`x`,w.Emu),t.cssStyle.top=M.lengthAttr(s,`y`,w.Emu);break}}return t}parseTable(e){var t={type:N.Table,children:[]};for(let n of M.elements(e))switch(n.localName){case`tr`:t.children.push(this.parseTableRow(n));break;case`tblGrid`:t.columns=this.parseTableColumns(n);break;case`tblPr`:this.parseTableProperties(n,t);break}return t}parseTableColumns(e){var t=[];for(let n of M.elements(e))switch(n.localName){case`gridCol`:t.push({width:M.lengthAttr(n,`w`)});break}return t}parseTableProperties(e,t){switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,e=>{switch(e.localName){case`tblStyle`:t.styleName=M.attr(e,`val`);break;case`tblLook`:t.className=Ot.classNameOftblLook(e);break;case`tblpPr`:this.parseTablePosition(e,t);break;case`tblStyleColBandSize`:t.colBandSize=M.intAttr(e,`val`);break;case`tblStyleRowBandSize`:t.rowBandSize=M.intAttr(e,`val`);break;case`hidden`:t.cssStyle.display=`none`;break;default:return!1}return!0}),t.cssStyle[`text-align`]){case`center`:delete t.cssStyle[`text-align`],t.cssStyle[`margin-left`]=`auto`,t.cssStyle[`margin-right`]=`auto`;break;case`right`:delete t.cssStyle[`text-align`],t.cssStyle[`margin-left`]=`auto`;break}}parseTablePosition(e,t){var n=M.lengthAttr(e,`topFromText`),r=M.lengthAttr(e,`bottomFromText`),i=M.lengthAttr(e,`rightFromText`),a=M.lengthAttr(e,`leftFromText`);t.cssStyle.float=`left`,t.cssStyle[`margin-bottom`]=Ot.addSize(t.cssStyle[`margin-bottom`],r),t.cssStyle[`margin-left`]=Ot.addSize(t.cssStyle[`margin-left`],a),t.cssStyle[`margin-right`]=Ot.addSize(t.cssStyle[`margin-right`],i),t.cssStyle[`margin-top`]=Ot.addSize(t.cssStyle[`margin-top`],n)}parseTableRow(e){var t={type:N.Row,children:[]};for(let n of M.elements(e))switch(n.localName){case`tc`:t.children.push(this.parseTableCell(n));break;case`trPr`:case`tblPrEx`:this.parseTableRowProperties(n,t);break}return t}parseTableRowProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{switch(e.localName){case`cnfStyle`:t.className=Ot.classNameOfCnfStyle(e);break;case`tblHeader`:t.isHeader=M.boolAttr(e,`val`);break;case`gridBefore`:t.gridBefore=M.intAttr(e,`val`);break;case`gridAfter`:t.gridAfter=M.intAttr(e,`val`);break;default:return!1}return!0})}parseTableCell(e){var t={type:N.Cell,children:[]};for(let n of M.elements(e))switch(n.localName){case`tbl`:t.children.push(this.parseTable(n));break;case`p`:t.children.push(this.parseParagraph(n));break;case`tcPr`:this.parseTableCellProperties(n,t);break}return t}parseTableCellProperties(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,e=>{switch(e.localName){case`gridSpan`:t.span=M.intAttr(e,`val`,null);break;case`vMerge`:t.verticalMerge=M.attr(e,`val`)??`continue`;break;case`cnfStyle`:t.className=Ot.classNameOfCnfStyle(e);break;default:return!1}return!0}),this.parseTableCellVerticalText(e,t)}parseTableCellVerticalText(e,t){let n={btLr:{writingMode:`vertical-rl`,transform:`rotate(180deg)`},lrTb:{writingMode:`vertical-lr`,transform:`none`},tbRl:{writingMode:`vertical-rl`,transform:`none`}};for(let r of M.elements(e))if(r.localName===`textDirection`){let e=n[M.attr(r,`val`)]||{writingMode:`horizontal-tb`};t.cssStyle[`writing-mode`]=e.writingMode,t.cssStyle.transform=e.transform}}parseDefaultProperties(e,t=null,n=null,r=null){t||={};for(let i of M.elements(e))if(!r?.(i))switch(i.localName){case`jc`:t[`text-align`]=Ot.valueOfJc(i);break;case`textAlignment`:t[`vertical-align`]=Ot.valueOfTextAlignment(i);break;case`color`:t.color=Dt.colorAttr(i,`val`,null,St.color);break;case`sz`:t[`font-size`]=t[`min-height`]=M.lengthAttr(i,`val`,w.FontSize);break;case`shd`:t[`background-color`]=Dt.colorAttr(i,`fill`,null,St.shd);break;case`highlight`:t[`background-color`]=Dt.colorAttr(i,`val`,null,St.highlight);break;case`vertAlign`:break;case`position`:t.verticalAlign=M.lengthAttr(i,`val`,w.FontSize);break;case`tcW`:if(this.options.ignoreWidth)break;case`tblW`:t.width=Ot.valueOfSize(i,`w`);break;case`trHeight`:this.parseTrHeight(i,t);break;case`strike`:t[`text-decoration`]=M.boolAttr(i,`val`,!0)?`line-through`:`none`;break;case`b`:t[`font-weight`]=M.boolAttr(i,`val`,!0)?`bold`:`normal`;break;case`i`:t[`font-style`]=M.boolAttr(i,`val`,!0)?`italic`:`normal`;break;case`caps`:t[`text-transform`]=M.boolAttr(i,`val`,!0)?`uppercase`:`none`;break;case`smallCaps`:t[`font-variant`]=M.boolAttr(i,`val`,!0)?`small-caps`:`none`;break;case`u`:this.parseUnderline(i,t);break;case`ind`:case`tblInd`:this.parseIndentation(i,t);break;case`rFonts`:this.parseFont(i,t);break;case`tblBorders`:this.parseBorderProperties(i,n||t);break;case`tblCellSpacing`:t[`border-spacing`]=Ot.valueOfMargin(i),t[`border-collapse`]=`separate`;break;case`pBdr`:this.parseBorderProperties(i,t);break;case`bdr`:t.border=Ot.valueOfBorder(i);break;case`tcBorders`:this.parseBorderProperties(i,t);break;case`vanish`:M.boolAttr(i,`val`,!0)&&(t.display=`none`);break;case`kern`:break;case`noWrap`:break;case`tblCellMar`:case`tcMar`:this.parseMarginProperties(i,n||t);break;case`tblLayout`:t[`table-layout`]=Ot.valueOfTblLayout(i);break;case`vAlign`:t[`vertical-align`]=Ot.valueOfTextAlignment(i);break;case`spacing`:e.localName==`pPr`&&this.parseSpacing(i,t);break;case`wordWrap`:M.boolAttr(i,`val`)&&(t[`overflow-wrap`]=`break-word`);break;case`suppressAutoHyphens`:t.hyphens=M.boolAttr(i,`val`,!0)?`none`:`auto`;break;case`lang`:t.$lang=M.attr(i,`val`);break;case`rtl`:case`bidi`:M.boolAttr(i,`val`,!0)&&(t.direction=`rtl`);break;case`bCs`:case`iCs`:case`szCs`:case`tabs`:case`outlineLvl`:case`contextualSpacing`:case`tblStyleColBandSize`:case`tblStyleRowBandSize`:case`webHidden`:case`pageBreakBefore`:case`suppressLineNumbers`:case`keepLines`:case`keepNext`:case`widowControl`:case`bidi`:case`rtl`:case`noProof`:break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${e.localName}.${i.localName}`);break}return t}parseUnderline(e,t){var n=M.attr(e,`val`);if(n!=null){switch(n){case`dash`:case`dashDotDotHeavy`:case`dashDotHeavy`:case`dashedHeavy`:case`dashLong`:case`dashLongHeavy`:case`dotDash`:case`dotDotDash`:t[`text-decoration`]=`underline dashed`;break;case`dotted`:case`dottedHeavy`:t[`text-decoration`]=`underline dotted`;break;case`double`:t[`text-decoration`]=`underline double`;break;case`single`:case`thick`:t[`text-decoration`]=`underline`;break;case`wave`:case`wavyDouble`:case`wavyHeavy`:t[`text-decoration`]=`underline wavy`;break;case`words`:t[`text-decoration`]=`underline`;break;case`none`:t[`text-decoration`]=`none`;break}var r=Dt.colorAttr(e,`color`);r&&(t[`text-decoration-color`]=r)}}parseFont(e,t){var n=[M.attr(e,`ascii`),Ot.themeValue(e,`asciiTheme`),M.attr(e,`eastAsia`)].filter(e=>e).map(e=>p(e));n.length>0&&(t[`font-family`]=[...new Set(n)].join(`, `))}parseIndentation(e,t){var n=M.lengthAttr(e,`firstLine`),r=M.lengthAttr(e,`hanging`),i=M.lengthAttr(e,`left`),a=M.lengthAttr(e,`start`),o=M.lengthAttr(e,`right`),s=M.lengthAttr(e,`end`);n&&(t[`text-indent`]=n),r&&(t[`text-indent`]=`-${r}`),(i||a)&&(t[`margin-inline-start`]=i||a),(o||s)&&(t[`margin-inline-end`]=o||s)}parseSpacing(e,t){var n=M.lengthAttr(e,`before`),r=M.lengthAttr(e,`after`),i=M.intAttr(e,`line`,null),a=M.attr(e,`lineRule`);if(n&&(t[`margin-top`]=n),r&&(t[`margin-bottom`]=r),i!==null)switch(a){case`auto`:t[`line-height`]=`${(i/240).toFixed(2)}`;break;case`atLeast`:t[`line-height`]=`calc(100% + ${i/20}pt)`;break;default:t[`line-height`]=t[`min-height`]=`${i/20}pt`;break}}parseMarginProperties(e,t){for(let n of M.elements(e))switch(n.localName){case`left`:t[`padding-left`]=Ot.valueOfMargin(n);break;case`right`:t[`padding-right`]=Ot.valueOfMargin(n);break;case`top`:t[`padding-top`]=Ot.valueOfMargin(n);break;case`bottom`:t[`padding-bottom`]=Ot.valueOfMargin(n);break}}parseTrHeight(e,t){switch(M.attr(e,`hRule`)){case`exact`:t.height=M.lengthAttr(e,`val`);break;default:t.height=M.lengthAttr(e,`val`);break}}parseBorderProperties(e,t){for(let n of M.elements(e))switch(n.localName){case`start`:case`left`:t[`border-left`]=Ot.valueOfBorder(n);break;case`end`:case`right`:t[`border-right`]=Ot.valueOfBorder(n);break;case`top`:t[`border-top`]=Ot.valueOfBorder(n);break;case`bottom`:t[`border-bottom`]=Ot.valueOfBorder(n);break}}},Et=[`black`,`blue`,`cyan`,`darkBlue`,`darkCyan`,`darkGray`,`darkGreen`,`darkMagenta`,`darkRed`,`darkYellow`,`green`,`lightGray`,`magenta`,`none`,`red`,`white`,`yellow`],Dt=class{static colorAttr(e,t,n=null,r=`black`){var i=M.attr(e,t);if(i)return i==`auto`?r:Et.includes(i)?i:`#${i}`;var a=M.attr(e,`themeColor`);return a?`var(--docx-${a}-color)`:n}},Ot=class e{static themeValue(e,t){var n=M.attr(e,t);return n?`var(--docx-${n}-font)`:null}static valueOfSize(e,t){var n=w.Dxa;switch(M.attr(e,`type`)){case`dxa`:break;case`pct`:n=w.Percent;break;case`auto`:return`auto`}return M.lengthAttr(e,t,n)}static valueOfMargin(e){return M.lengthAttr(e,`w`)}static valueOfBorder(t){var n=e.parseBorderType(M.attr(t,`val`));if(n==`none`)return`none`;var r=Dt.colorAttr(t,`color`);return`${M.lengthAttr(t,`sz`,w.Border)} ${n} ${r==`auto`?St.borderColor:r}`}static parseBorderType(e){switch(e){case`single`:return`solid`;case`dashDotStroked`:return`solid`;case`dashed`:return`dashed`;case`dashSmallGap`:return`dashed`;case`dotDash`:return`dotted`;case`dotDotDash`:return`dotted`;case`dotted`:return`dotted`;case`double`:return`double`;case`doubleWave`:return`double`;case`inset`:return`inset`;case`nil`:return`none`;case`none`:return`none`;case`outset`:return`outset`;case`thick`:return`solid`;case`thickThinLargeGap`:return`solid`;case`thickThinMediumGap`:return`solid`;case`thickThinSmallGap`:return`solid`;case`thinThickLargeGap`:return`solid`;case`thinThickMediumGap`:return`solid`;case`thinThickSmallGap`:return`solid`;case`thinThickThinLargeGap`:return`solid`;case`thinThickThinMediumGap`:return`solid`;case`thinThickThinSmallGap`:return`solid`;case`threeDEmboss`:return`solid`;case`threeDEngrave`:return`solid`;case`triple`:return`double`;case`wave`:return`solid`}return`solid`}static valueOfTblLayout(e){return M.attr(e,`val`)==`fixed`?`fixed`:`auto`}static classNameOfCnfStyle(e){let t=M.attr(e,`val`);return[`first-row`,`last-row`,`first-col`,`last-col`,`odd-col`,`even-col`,`odd-row`,`even-row`,`ne-cell`,`nw-cell`,`se-cell`,`sw-cell`].filter((e,n)=>t[n]==`1`).join(` `)}static valueOfJc(e){var t=M.attr(e,`val`);switch(t){case`start`:case`left`:return`left`;case`center`:return`center`;case`end`:case`right`:return`right`;case`both`:return`justify`}return t}static valueOfVertAlign(e,t=!1){var n=M.attr(e,`val`);switch(n){case`subscript`:return`sub`;case`superscript`:return t?`sup`:`super`}return t?null:n}static valueOfTextAlignment(e){var t=M.attr(e,`val`);switch(t){case`auto`:case`baseline`:return`baseline`;case`top`:return`top`;case`center`:return`middle`;case`bottom`:return`bottom`}return t}static addSize(e,t){return e==null?t:t==null?e:`calc(${e} + ${t})`}static classNameOftblLook(e){let t=M.hexAttr(e,`val`,0),n=``;return(M.boolAttr(e,`firstRow`)||t&32)&&(n+=` first-row`),(M.boolAttr(e,`lastRow`)||t&64)&&(n+=` last-row`),(M.boolAttr(e,`firstColumn`)||t&128)&&(n+=` first-col`),(M.boolAttr(e,`lastColumn`)||t&256)&&(n+=` last-col`),(M.boolAttr(e,`noHBand`)||t&512)&&(n+=` no-hband`),(M.boolAttr(e,`noVBand`)||t&1024)&&(n+=` no-vband`),n.trim()}},kt={pos:0,leader:`none`,style:`left`},At=50;function jt(e=document.body){let t=document.createElement(`div`);t.style.width=`100pt`,e.appendChild(t);let n=100/t.offsetWidth;return e.removeChild(t),n}function Mt(e,t,n,r=72/96){let i=e.closest(`p`),a=e.getBoundingClientRect(),o=i.getBoundingClientRect(),s=getComputedStyle(i),c=t?.length>0?t.map(e=>({pos:Nt(e.position),leader:e.leader,style:e.style})).sort((e,t)=>e.pos-t.pos):[kt],l=c[c.length-1],u=o.width*r,d=Nt(n),f=l.pos+d;if(f<u)for(;f<u&&c.length<At;f+=d)c.push({...kt,pos:f});let p=parseFloat(s.marginLeft),m=o.left+p,h=(a.left-m)*r,g=c.find(e=>e.style!=`clear`&&e.pos>h);if(g==null)return;let _=1;if(g.style==`right`||g.style==`center`){let t=Array.from(i.querySelectorAll(`.${e.className}`)),n=t.indexOf(e)+1,a=document.createRange();a.setStart(e,1),n<t.length?a.setEndBefore(t[n]):a.setEndAfter(i);let s=g.style==`center`?.5:1,c=a.getBoundingClientRect(),l=c.left+s*c.width-(o.left-p);_=g.pos-l*r}else _=g.pos-h;switch(e.innerHTML=`&nbsp;`,e.style.textDecoration=`inherit`,e.style.wordSpacing=`${_.toFixed(0)}pt`,g.leader){case`dot`:case`middleDot`:e.style.textDecoration=`underline`,e.style.textDecorationStyle=`dotted`;break;case`hyphen`:case`heavy`:case`underscore`:e.style.textDecoration=`underline`;break}}function Nt(e){return parseFloat(e)}var Pt={svg:`http://www.w3.org/2000/svg`,mathML:`http://www.w3.org/1998/Math/MathML`},Ft=class{constructor(e){this.htmlDocument=e,this.className=`docx`,this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.commentMap={},this.tasks=[],this.postRenderTasks=[]}async render(e,t,n=null,r){this.document=e,this.options=r,this.className=r.className,this.rootSelector=r.inWrapper?`.${this.className}-wrapper`:`:root`,this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),n||=t,It(n),It(t),n.appendChild(this.createComment(`docxjs library predefined styles`)),n.appendChild(this.renderDefaultStyle()),e.themePart&&(n.appendChild(this.createComment(`docxjs document theme values`)),this.renderTheme(e.themePart,n)),e.stylesPart!=null&&(this.styleMap=this.processStyles(e.stylesPart.styles),n.appendChild(this.createComment(`docxjs document styles`)),n.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),n.appendChild(this.createComment(`docxjs document numbering styles`)),n.appendChild(this.renderNumbering(e.numberingPart.domNumberings,n))),e.footnotesPart&&(this.footnoteMap=g(e.footnotesPart.notes,e=>e.id)),e.endnotesPart&&(this.endnoteMap=g(e.endnotesPart.notes,e=>e.id)),e.settingsPart&&(this.defaultTabSize=e.settingsPart.settings?.defaultTabStop),!r.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,n);var i=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(i)):Lt(t,i),this.commentHighlight&&r.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.postRenderTasks.forEach(e=>e()),await Promise.allSettled(this.tasks),this.refreshTabStops()}renderTheme(e,t){let n={},r=e.theme?.fontScheme;r&&(r.majorFont&&(n[`--docx-majorHAnsi-font`]=r.majorFont.latinTypeface),r.minorFont&&(n[`--docx-minorHAnsi-font`]=r.minorFont.latinTypeface));let i=e.theme?.colorScheme;if(i)for(let[e,t]of Object.entries(i.colors))n[`--docx-${e}-color`]=`#${t}`;let a=this.styleToString(`.${this.className}`,n);t.appendChild(this.createStyleElement(a))}renderFontTable(e,t){for(let n of e.fonts)for(let e of n.embedFontRefs)this.tasks.push(this.document.loadFont(e.id,e.key).then(r=>{let i={"font-family":p(n.name),src:`url(${r})`};(e.type==`bold`||e.type==`boldItalic`)&&(i[`font-weight`]=`bold`),(e.type==`italic`||e.type==`boldItalic`)&&(i[`font-style`]=`italic`);let a=this.styleToString(`@font-face`,i);t.appendChild(this.createComment(`docxjs ${n.name} font`)),t.appendChild(this.createStyleElement(a))}))}processStyleName(e){return e?`${this.className}_${f(e)}`:this.className}processStyles(e){let t=g(e.filter(e=>e.id!=null),e=>e.id);for(let r of e.filter(e=>e.basedOn)){var n=t[r.basedOn];if(n){r.paragraphProps=b(r.paragraphProps,n.paragraphProps),r.runProps=b(r.runProps,n.runProps);for(let e of n.styles){let t=r.styles.find(t=>t.target==e.target);t?this.copyStyleProperties(e.values,t.values):r.styles.push({...e,values:{...e.values}})}}else this.options.debug&&console.warn(`Can't find base style ${r.basedOn}`)}for(let t of e)t.cssName=this.processStyleName(t.id);return t}prodessNumberings(e){for(let t of e.filter(e=>e.pStyleName)){let e=this.findStyle(t.pStyleName);e?.paragraphProps?.numbering&&(e.paragraphProps.numbering.level=t.level)}}processElement(e){if(e.children)for(var t of e.children)t.parent=e,t.type==N.Table?this.processTable(t):this.processElement(t)}processTable(e){for(var t of e.children)for(var n of t.children)n.cssStyle=this.copyStyleProperties(e.cellStyle,n.cssStyle,[`border-left`,`border-right`,`border-top`,`border-bottom`,`padding-left`,`padding-right`,`padding-top`,`padding-bottom`]),this.processElement(n)}copyStyleProperties(e,t,n=null){if(!e)return t;t??={},n??=Object.getOwnPropertyNames(e);for(var r of n)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r]);return t}createPageElement(e,t){var n=this.createElement(`section`,{className:e});return t&&(t.pageMargins&&(n.style.paddingLeft=t.pageMargins.left,n.style.paddingRight=t.pageMargins.right,n.style.paddingTop=t.pageMargins.top,n.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(n.style.width=t.pageSize.width),this.options.ignoreHeight||(n.style.minHeight=t.pageSize.height))),n}createSectionContent(e){var t=this.createElement(`article`);return e.columns&&e.columns.numberOfColumns&&(t.style.columnCount=`${e.columns.numberOfColumns}`,t.style.columnGap=e.columns.space,e.columns.separator&&(t.style.columnRule=`1px solid black`)),t}renderSections(e){let t=[];this.processElement(e);let n=this.splitBySection(e.children,e.props),r=this.groupByPageBreaks(n),i=null;for(let n=0,o=r.length;n<o;n++){this.currentFootnoteIds=[];let s=r[n][0].sectProps,c=this.createPageElement(this.className,s);this.renderStyleValues(e.cssStyle,c),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,i!=s,c);for(let e of r[n]){var a=this.createSectionContent(e.sectProps);this.renderElements(e.elements,a),c.appendChild(a),s=e.sectProps}this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,c),this.options.renderEndnotes&&n==o-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,c),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,i!=s,c),t.push(c),i=s}return t}renderHeaderFooter(e,t,n,r,i){if(e){var a=(t.titlePage&&r?e.find(e=>e.type==`first`):null)??(n%2==1?e.find(e=>e.type==`even`):null)??e.find(e=>e.type=="default"),o=a&&this.document.findPartByRelId(a.id,this.document.documentPart);if(o){this.currentPart=o,this.usedHederFooterParts.includes(o.path)||(this.processElement(o.rootElement),this.usedHederFooterParts.push(o.path));let[e]=this.renderElements([o.rootElement],i);t?.pageMargins&&(o.rootElement.type===N.Header?(e.style.marginTop=`calc(${t.pageMargins.header} - ${t.pageMargins.top})`,e.style.minHeight=`calc(${t.pageMargins.top} - ${t.pageMargins.header})`):o.rootElement.type===N.Footer&&(e.style.marginBottom=`calc(${t.pageMargins.footer} - ${t.pageMargins.bottom})`,e.style.minHeight=`calc(${t.pageMargins.bottom} - ${t.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(e){return e.type==N.Break?e.break==`lastRenderedPageBreak`?!this.options.ignoreLastRenderedPageBreak:e.break==`page`:!1}isPageBreakSection(e,t){return!e||!t?!1:e.pageSize?.orientation!=t.pageSize?.orientation||e.pageSize?.width!=t.pageSize?.width||e.pageSize?.height!=t.pageSize?.height}splitBySection(e,t){var n={sectProps:null,elements:[],pageBreak:!1},r=[n];for(let t of e)if(t.type==N.Paragraph&&this.findStyle(t.styleName)?.paragraphProps?.pageBreakBefore&&(n.sectProps=i,n.pageBreak=!0,n={sectProps:null,elements:[],pageBreak:!1},r.push(n)),n.elements.push(t),t.type==N.Paragraph){let e=t;var i=e.sectionProps,a=-1,o=-1;if(this.options.breakPages&&e.children&&(a=e.children.findIndex(e=>(o=e.children?.findIndex(this.isPageBreakElement.bind(this))??-1,o!=-1))),(i||a!=-1)&&(n.sectProps=i,n.pageBreak=a!=-1,n={sectProps:null,elements:[],pageBreak:!1},r.push(n)),a!=-1){let r=e.children[a],i=o<r.children.length-1;if(a<e.children.length-1||i){var s=t.children,c={...t,children:s.slice(a)};if(t.children=s.slice(0,a),n.elements.push(c),i){let e=r.children,n={...r,children:e.slice(0,o)};t.children.push(n),r.children=e.slice(o)}}}}let l=null;for(let e=r.length-1;e>=0;e--)r[e].sectProps==null?r[e].sectProps=l??t:l=r[e].sectProps;return r}groupByPageBreaks(e){let t=[],n,r=[t];for(let i of e)t.push(i),(this.options.ignoreLastRenderedPageBreak||i.pageBreak||this.isPageBreakSection(n,i.sectProps))&&r.push(t=[]),n=i.sectProps;return r.filter(e=>e.length>0)}renderWrapper(e){return this.createElement(`div`,{className:`${this.className}-wrapper`},e)}renderDefaultStyle(){var e=this.className,t=`
2
+ .${e}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; }
3
+ .${e}-wrapper>section.${e} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }`;this.options.hideWrapperOnPrint&&(t=`@media not print { ${t} }`);var n=`${t}
4
+ .${e} { color: black; hyphens: auto; text-underline-position: from-font; }
5
+ section.${e} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }
6
+ section.${e}>article { margin-bottom: auto; z-index: 1; }
7
+ section.${e}>footer { z-index: 1; }
8
+ .${e} table { border-collapse: collapse; }
9
+ .${e} table td, .${e} table th { vertical-align: top; }
10
+ .${e} p { margin: 0pt; min-height: 1em; }
11
+ .${e} span { white-space: pre-wrap; overflow-wrap: break-word; }
12
+ .${e} a { color: inherit; text-decoration: inherit; }
13
+ .${e} svg { fill: transparent; }
14
+ `;return this.options.renderComments&&(n+=`
15
+ .${e}-comment-ref { cursor: default; }
16
+ .${e}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; }
17
+ .${e}-comment-ref:hover~.${e}-comment-popover { display: block; }
18
+ .${e}-comment-author,.${e}-comment-date { font-size: 0.875rem; color: #888; }
19
+ `),this.createStyleElement(n)}renderNumbering(e,t){var n=``,r=[];for(var i of e){var a=`p.${this.numberingClass(i.id,i.level)}`,o=`none`;if(i.bullet){let e=`--${this.className}-${i.bullet.src}`.toLowerCase();n+=this.styleToString(`${a}:before`,{content:`' '`,display:`inline-block`,background:`var(${e})`},i.bullet.style),this.tasks.push(this.document.loadNumberingImage(i.bullet.src).then(n=>{var r=`${this.rootSelector} { ${e}: url(${n}) }`;t.appendChild(this.createStyleElement(r))}))}else if(i.levelText){let e=this.numberingCounter(i.id,i.level),t=e+` `+(i.start-1);i.level>0&&(n+=this.styleToString(`p.${this.numberingClass(i.id,i.level-1)}`,{"counter-set":t})),r.push(t),n+=this.styleToString(`${a}:before`,{content:this.levelTextToContent(i.levelText,i.suff,i.id,this.numFormatToCssValue(i.format)),"counter-increment":e,...i.rStyle})}else o=this.numFormatToCssValue(i.format);n+=this.styleToString(a,{display:`list-item`,"list-style-position":`inside`,"list-style-type":o,...i.pStyle})}return r.length>0&&(n+=this.styleToString(this.rootSelector,{"counter-reset":r.join(` `)})),this.createStyleElement(n)}renderStyles(e){var t=``;let n=this.styleMap,r=g(e.filter(e=>e.isDefault),e=>e.target);for(let s of e){var i=s.styles;if(s.linked){var a=s.linked&&n[s.linked];a?i=i.concat(a.styles):this.options.debug&&console.warn(`Can't find linked style ${s.linked}`)}for(let e of i){var o=`${s.target??``}.${s.cssName}`;s.target!=e.target&&(o+=` ${e.target}`),r[s.target]==s&&(o=`.${this.className} ${s.target}, `+o),t+=this.styleToString(o,e.values)}}return this.createStyleElement(t)}renderNotes(e,t,n){var r=e.map(e=>t[e]).filter(e=>e);if(r.length>0){var i=this.createElement(`ol`,null,this.renderElements(r));n.appendChild(i)}}renderElement(e){switch(e.type){case N.Paragraph:return this.renderParagraph(e);case N.BookmarkStart:return this.renderBookmarkStart(e);case N.BookmarkEnd:return null;case N.Run:return this.renderRun(e);case N.Table:return this.renderTable(e);case N.Row:return this.renderTableRow(e);case N.Cell:return this.renderTableCell(e);case N.Hyperlink:return this.renderHyperlink(e);case N.SmartTag:return this.renderSmartTag(e);case N.Drawing:return this.renderDrawing(e);case N.Image:return this.renderImage(e);case N.Text:return this.renderText(e);case N.Text:return this.renderText(e);case N.DeletedText:return this.renderDeletedText(e);case N.Tab:return this.renderTab(e);case N.Symbol:return this.renderSymbol(e);case N.Break:return this.renderBreak(e);case N.Footer:return this.renderContainer(e,`footer`);case N.Header:return this.renderContainer(e,`header`);case N.Footnote:case N.Endnote:return this.renderContainer(e,`li`);case N.FootnoteReference:return this.renderFootnoteReference(e);case N.EndnoteReference:return this.renderEndnoteReference(e);case N.NoBreakHyphen:return this.createElement(`wbr`);case N.VmlPicture:return this.renderVmlPicture(e);case N.VmlElement:return this.renderVmlElement(e);case N.MmlMath:return this.renderContainerNS(e,Pt.mathML,`math`,{xmlns:Pt.mathML});case N.MmlMathParagraph:return this.renderContainer(e,`span`);case N.MmlFraction:return this.renderContainerNS(e,Pt.mathML,`mfrac`);case N.MmlBase:return this.renderContainerNS(e,Pt.mathML,e.parent.type==N.MmlMatrixRow?`mtd`:`mrow`);case N.MmlNumerator:case N.MmlDenominator:case N.MmlFunction:case N.MmlLimit:case N.MmlBox:return this.renderContainerNS(e,Pt.mathML,`mrow`);case N.MmlGroupChar:return this.renderMmlGroupChar(e);case N.MmlLimitLower:return this.renderContainerNS(e,Pt.mathML,`munder`);case N.MmlMatrix:return this.renderContainerNS(e,Pt.mathML,`mtable`);case N.MmlMatrixRow:return this.renderContainerNS(e,Pt.mathML,`mtr`);case N.MmlRadical:return this.renderMmlRadical(e);case N.MmlSuperscript:return this.renderContainerNS(e,Pt.mathML,`msup`);case N.MmlSubscript:return this.renderContainerNS(e,Pt.mathML,`msub`);case N.MmlDegree:case N.MmlSuperArgument:case N.MmlSubArgument:return this.renderContainerNS(e,Pt.mathML,`mn`);case N.MmlFunctionName:return this.renderContainerNS(e,Pt.mathML,`ms`);case N.MmlDelimiter:return this.renderMmlDelimiter(e);case N.MmlRun:return this.renderMmlRun(e);case N.MmlNary:return this.renderMmlNary(e);case N.MmlPreSubSuper:return this.renderMmlPreSubSuper(e);case N.MmlBar:return this.renderMmlBar(e);case N.MmlEquationArray:return this.renderMllList(e);case N.Inserted:return this.renderInserted(e);case N.Deleted:return this.renderDeleted(e);case N.CommentRangeStart:return this.renderCommentRangeStart(e);case N.CommentRangeEnd:return this.renderCommentRangeEnd(e);case N.CommentReference:return this.renderCommentReference(e);case N.AltChunk:return this.renderAltChunk(e)}return null}renderElements(e,t){if(e==null)return null;var n=e.flatMap(e=>this.renderElement(e)).filter(e=>e!=null);return t&&Lt(t,n),n}renderContainer(e,t,n){return this.createElement(t,n,this.renderElements(e.children))}renderContainerNS(e,t,n,r){return this.createElementNS(t,n,r,this.renderElements(e.children))}renderParagraph(e){var t=this.renderContainer(e,`p`);let n=this.findStyle(e.styleName);e.tabs??=n?.paragraphProps?.tabs,this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),this.renderCommonProperties(t.style,e);let r=e.numbering??n?.paragraphProps?.numbering;return r&&t.classList.add(this.numberingClass(r.id,r.level)),t}renderRunProperties(e,t){this.renderCommonProperties(e,t)}renderCommonProperties(e,t){t!=null&&(t.color&&(e.color=t.color),t.fontSize&&(e[`font-size`]=t.fontSize))}renderHyperlink(e){var t=this.renderContainer(e,`a`);this.renderStyleValues(e.cssStyle,t);let n=``;return e.id&&(n=this.document.documentPart.rels.find(t=>t.id==e.id&&t.targetMode===`External`)?.target??n),e.anchor&&(n+=`#${e.anchor}`),t.href=n,t}renderSmartTag(e){return this.renderContainer(e,`span`)}renderCommentRangeStart(e){if(!this.options.renderComments)return null;let t=new Range;this.commentHighlight?.add(t);let n=this.createComment(`start of comment #${e.id}`);return this.later(()=>t.setStart(n,0)),this.commentMap[e.id]=t,n}renderCommentRangeEnd(e){if(!this.options.renderComments)return null;let t=this.commentMap[e.id],n=this.createComment(`end of comment #${e.id}`);return this.later(()=>t?.setEnd(n,0)),n}renderCommentReference(e){if(!this.options.renderComments)return null;var t=this.document.commentsPart?.commentMap[e.id];if(!t)return null;let n=new DocumentFragment,r=this.createElement(`span`,{className:`${this.className}-comment-ref`},[`💬`]),i=this.createElement(`div`,{className:`${this.className}-comment-popover`});return this.renderCommentContent(t,i),n.appendChild(this.createComment(`comment #${t.id} by ${t.author} on ${t.date}`)),n.appendChild(r),n.appendChild(i),n}renderAltChunk(e){if(!this.options.renderAltChunks)return null;var t=this.createElement(`iframe`);return this.tasks.push(this.document.loadAltChunk(e.id,this.currentPart).then(e=>{t.srcdoc=e})),t}renderCommentContent(e,t){t.appendChild(this.createElement(`div`,{className:`${this.className}-comment-author`},[e.author])),t.appendChild(this.createElement(`div`,{className:`${this.className}-comment-date`},[new Date(e.date).toLocaleString()])),this.renderElements(e.children,t)}renderDrawing(e){var t=this.renderContainer(e,`div`);return t.style.display=`inline-block`,t.style.position=`relative`,t.style.textIndent=`0px`,this.renderStyleValues(e.cssStyle,t),t}renderImage(e){let t=this.createElement(`img`),n=e.cssStyle?.transform;if(this.renderStyleValues(e.cssStyle,t),e.srcRect&&e.srcRect.some(e=>e!=0)){var[r,i,a,o]=e.srcRect;n=`scale(${1/(1-r-a)}, ${1/(1-i-o)})`,t.style[`clip-path`]=`rect(${(100*i).toFixed(2)}% ${(100*(1-a)).toFixed(2)}% ${(100*(1-o)).toFixed(2)}% ${(100*r).toFixed(2)}%)`}return e.rotation&&(n=`rotate(${e.rotation}deg) ${n??``}`),t.style.transform=n?.trim(),this.document&&this.tasks.push(this.document.loadDocumentImage(e.src,this.currentPart).then(e=>{t.src=e})),t}renderText(e){return this.htmlDocument.createTextNode(e.text)}renderDeletedText(e){return this.options.renderChanges?this.renderText(e):null}renderBreak(e){return e.break==`textWrapping`?this.createElement(`br`):null}renderInserted(e){return this.options.renderChanges?this.renderContainer(e,`ins`):this.renderElements(e.children)}renderDeleted(e){return this.options.renderChanges?this.renderContainer(e,`del`):null}renderSymbol(e){var t=this.createElement(`span`);return t.style.fontFamily=e.font,t.innerHTML=`&#x${e.char};`,t}renderFootnoteReference(e){var t=this.createElement(`sup`);return this.currentFootnoteIds.push(e.id),t.textContent=`${this.currentFootnoteIds.length}`,t}renderEndnoteReference(e){var t=this.createElement(`sup`);return this.currentEndnoteIds.push(e.id),t.textContent=`${this.currentEndnoteIds.length}`,t}renderTab(e){var t=this.createElement(`span`);if(t.innerHTML=`&emsp;`,this.options.experimental){t.className=this.tabStopClass();var n=Rt(e,N.Paragraph)?.tabs;this.currentTabs.push({stops:n,span:t})}return t}renderBookmarkStart(e){return this.createElement(`span`,{id:e.name})}renderRun(e){if(e.fieldRun)return null;let t=this.createElement(`span`);if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){let n=this.createElement(e.verticalAlign);this.renderElements(e.children,n),t.appendChild(n)}else this.renderElements(e.children,t);return t}renderTable(e){let t=this.createElement(`table`);return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),this.renderClass(e,t),this.renderElements(e.children,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}renderTableColumns(e){let t=this.createElement(`colgroup`);for(let n of e){let e=this.createElement(`col`);n.width&&(e.style.width=n.width),t.appendChild(e)}return t}renderTableRow(e){let t=this.createElement(`tr`);return this.currentCellPosition.col=0,e.gridBefore&&t.appendChild(this.renderTableCellPlaceholder(e.gridBefore)),this.renderClass(e,t),this.renderElements(e.children,t),this.renderStyleValues(e.cssStyle,t),e.gridAfter&&t.appendChild(this.renderTableCellPlaceholder(e.gridAfter)),this.currentCellPosition.row++,t}renderTableCellPlaceholder(e){let t=this.createElement(`td`,{colSpan:e});return t.style.border=`none`,t}renderTableCell(e){let t=this.renderContainer(e,`td`),n=this.currentCellPosition.col;return e.verticalMerge?e.verticalMerge==`restart`?(this.currentVerticalMerge[n]=t,t.rowSpan=1):this.currentVerticalMerge[n]&&(this.currentVerticalMerge[n].rowSpan+=1,t.style.display=`none`):this.currentVerticalMerge[n]=null,this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}renderVmlPicture(e){return this.renderContainer(e,`div`)}renderVmlElement(e){var t=this.createSvgElement(`svg`);t.setAttribute(`style`,e.cssStyleText);let n=this.renderVmlChildElement(e);return e.imageHref?.id&&this.tasks.push(this.document?.loadDocumentImage(e.imageHref.id,this.currentPart).then(e=>n.setAttribute(`href`,e))),t.appendChild(n),requestAnimationFrame(()=>{let e=t.firstElementChild.getBBox();t.setAttribute(`width`,`${Math.ceil(e.x+e.width)}`),t.setAttribute(`height`,`${Math.ceil(e.y+e.height)}`)}),t}renderVmlChildElement(e){let t=this.createSvgElement(e.tagName);Object.entries(e.attrs).forEach(([e,n])=>t.setAttribute(e,n));for(let n of e.children)n.type==N.VmlElement?t.appendChild(this.renderVmlChildElement(n)):t.appendChild(...x(this.renderElement(n)));return t}renderMmlRadical(e){let t=e.children.find(e=>e.type==N.MmlBase);if(e.props?.hideDegree)return this.createElementNS(Pt.mathML,`msqrt`,null,this.renderElements([t]));let n=e.children.find(e=>e.type==N.MmlDegree);return this.createElementNS(Pt.mathML,`mroot`,null,this.renderElements([t,n]))}renderMmlDelimiter(e){let t=[];return t.push(this.createElementNS(Pt.mathML,`mo`,null,[e.props.beginChar??`(`])),t.push(...this.renderElements(e.children)),t.push(this.createElementNS(Pt.mathML,`mo`,null,[e.props.endChar??`)`])),this.createElementNS(Pt.mathML,`mrow`,null,t)}renderMmlNary(e){let t=[],n=g(e.children,e=>e.type),r=n[N.MmlSuperArgument],i=n[N.MmlSubArgument],a=r?this.createElementNS(Pt.mathML,`mo`,null,x(this.renderElement(r))):null,o=i?this.createElementNS(Pt.mathML,`mo`,null,x(this.renderElement(i))):null,s=this.createElementNS(Pt.mathML,`mo`,null,[e.props?.char??`∫`]);return a||o?t.push(this.createElementNS(Pt.mathML,`munderover`,null,[s,o,a])):a?t.push(this.createElementNS(Pt.mathML,`mover`,null,[s,a])):o?t.push(this.createElementNS(Pt.mathML,`munder`,null,[s,o])):t.push(s),t.push(...this.renderElements(n[N.MmlBase].children)),this.createElementNS(Pt.mathML,`mrow`,null,t)}renderMmlPreSubSuper(e){let t=[],n=g(e.children,e=>e.type),r=n[N.MmlSuperArgument],i=n[N.MmlSubArgument],a=r?this.createElementNS(Pt.mathML,`mo`,null,x(this.renderElement(r))):null,o=i?this.createElementNS(Pt.mathML,`mo`,null,x(this.renderElement(i))):null,s=this.createElementNS(Pt.mathML,`mo`,null);return t.push(this.createElementNS(Pt.mathML,`msubsup`,null,[s,o,a])),t.push(...this.renderElements(n[N.MmlBase].children)),this.createElementNS(Pt.mathML,`mrow`,null,t)}renderMmlGroupChar(e){let t=e.props.verticalJustification===`bot`?`mover`:`munder`,n=this.renderContainerNS(e,Pt.mathML,t);return e.props.char&&n.appendChild(this.createElementNS(Pt.mathML,`mo`,null,[e.props.char])),n}renderMmlBar(e){let t=this.renderContainerNS(e,Pt.mathML,`mrow`);switch(e.props.position){case`top`:t.style.textDecoration=`overline`;break;case`bottom`:t.style.textDecoration=`underline`;break}return t}renderMmlRun(e){let t=this.createElementNS(Pt.mathML,`ms`,null,this.renderElements(e.children));return this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),t}renderMllList(e){let t=this.createElementNS(Pt.mathML,`mtable`);this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t);for(let n of this.renderElements(e.children))t.appendChild(this.createElementNS(Pt.mathML,`mtr`,null,[this.createElementNS(Pt.mathML,`mtd`,null,[n])]));return t}renderStyleValues(e,t){for(let n in e)n.startsWith(`$`)?t.setAttribute(n.slice(1),e[n]):t.style[n]=e[n]}renderClass(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}findStyle(e){return e&&this.styleMap?.[e]}numberingClass(e,t){return`${this.className}-num-${e}-${t}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(e,t,n=null){let r=`${e} {\r\n`;for(let e in t)e.startsWith(`$`)||(r+=` ${e}: ${t[e]};\r\n`);return n&&(r+=n),r+`}\r
20
+ `}numberingCounter(e,t){return`${this.className}-num-${e}-${t}`}levelTextToContent(e,t,n,r){return`"${e.replace(/%\d*/g,e=>{let t=parseInt(e.substring(1),10)-1;return`"counter(${this.numberingCounter(n,t)}, ${r})"`})}${{tab:`\\9`,space:`\\a0`}[t]??``}"`}numFormatToCssValue(e){return{none:`none`,bullet:`disc`,decimal:`decimal`,lowerLetter:`lower-alpha`,upperLetter:`upper-alpha`,lowerRoman:`lower-roman`,upperRoman:`upper-roman`,decimalZero:`decimal-leading-zero`,aiueo:`katakana`,aiueoFullWidth:`katakana`,chineseCounting:`simp-chinese-informal`,chineseCountingThousand:`simp-chinese-informal`,chineseLegalSimplified:`simp-chinese-formal`,chosung:`hangul-consonant`,ideographDigital:`cjk-ideographic`,ideographTraditional:`cjk-heavenly-stem`,ideographLegalTraditional:`trad-chinese-formal`,ideographZodiac:`cjk-earthly-branch`,iroha:`katakana-iroha`,irohaFullWidth:`katakana-iroha`,japaneseCounting:`japanese-informal`,japaneseDigitalTenThousand:`cjk-decimal`,japaneseLegal:`japanese-formal`,thaiNumbers:`thai`,koreanCounting:`korean-hangul-formal`,koreanDigital:`korean-hangul-formal`,koreanDigital2:`korean-hanja-informal`,hebrew1:`hebrew`,hebrew2:`hebrew`,hindiNumbers:`devanagari`,ganada:`hangul`,taiwaneseCounting:`cjk-ideographic`,taiwaneseCountingThousand:`cjk-ideographic`,taiwaneseDigital:`cjk-decimal`}[e]??e}refreshTabStops(){this.options.experimental&&setTimeout(()=>{let e=jt();for(let t of this.currentTabs)Mt(t.span,t.stops,this.defaultTabSize,e)},500)}createElementNS(e,t,n,r){var i=e?this.htmlDocument.createElementNS(e,t):this.htmlDocument.createElement(t);return Object.assign(i,n),r&&Lt(i,r),i}createElement(e,t,n){return this.createElementNS(void 0,e,t,n)}createSvgElement(e,t,n){return this.createElementNS(Pt.svg,e,t,n)}createStyleElement(e){return this.createElement(`style`,{innerHTML:e})}createComment(e){return this.htmlDocument.createComment(e)}later(e){this.postRenderTasks.push(e)}};function It(e){e.innerHTML=``}function Lt(e,t){t.forEach(t=>e.appendChild(y(t)?document.createTextNode(t):t))}function Rt(e,t){for(var n=e.parent;n!=null&&n.type!=t;)n=n.parent;return n}var zt={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:`docx`,inWrapper:!0,hideWrapperOnPrint:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1,renderAltChunks:!0};function Bt(e,t){let n={...zt,...t};return lt.load(e,new Tt(n),n)}async function Vt(e,t,n,r){let i={...zt,...r};return await new Ft(window.document).render(e,t,n,i)}async function Ht(e,t,n,r){let i=await Bt(e,r);return await Vt(i,t,n,r),i}var Ut=function(e,t){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ut(e,t)};function P(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ut(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wt=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Gt=new(function(){function e(){this.browser=new Wt,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}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Gt.wxa=!0,Gt.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Gt.worker=!0:!Gt.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Gt.node=!0,Gt.svgSupported=!0):Kt(navigator.userAgent,Gt);function Kt(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var qt=`12px sans-serif`,Jt=20,Yt=100,Xt=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Zt(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Jt)/Yt}return t}var Qt=Zt(Xt),$t={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=$t.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=Qt[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},en=Cn([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),tn=Cn([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),nn=Object.prototype.toString,rn=Array.prototype,an=rn.forEach,on=rn.filter,sn=rn.slice,cn=rn.map,ln=function(){}.constructor,un=ln?ln.prototype:null,dn=`__proto__`,fn=2311,pn=2**53-1;function mn(){return fn>=pn&&(fn=0),fn++}function hn(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function F(e){if(typeof e!=`object`||!e)return e;var t=e,n=nn.call(e);if(n===`[object Array]`){if(!Kn(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=F(e[r])}}else if(tn[n]){if(!Kn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!en[n]&&!Kn(e)&&!Nn(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==dn&&(t[o]=F(e[o]));return t}function gn(e,t,n){if(!W(t)||!W(e))return n?F(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==dn){var i=e[r],a=t[r];W(a)&&W(i)&&!V(a)&&!V(i)&&!Nn(a)&&!Nn(i)&&!jn(a)&&!jn(i)&&!Kn(a)&&!Kn(i)?gn(i,a,n):(n||!(r in e))&&(e[r]=F(t[r]))}return e}function _n(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=gn(n,e[r],t);return n}function I(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==dn&&(e[n]=t[n]);return e}function vn(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function L(e,t,n){for(var r=En(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}$t.createCanvas;function yn(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function bn(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function xn(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else L(e,t,n)}function Sn(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function R(e,t,n){if(e&&t)if(e.forEach&&e.forEach===an)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function z(e,t,n){if(!e)return[];if(!t)return Bn(e);if(e.map&&e.map===cn)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function Cn(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function wn(e,t,n){if(!e)return[];if(!t)return Bn(e);if(e.filter&&e.filter===on)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Tn(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function En(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Dn(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(sn.call(arguments)))}}var B=un&&H(un.bind)?un.call.bind(un.bind):Dn;function On(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(sn.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):nn.call(e)===`[object Array]`}function H(e){return typeof e==`function`}function U(e){return typeof e==`string`}function kn(e){return nn.call(e)===`[object String]`}function An(e){return typeof e==`number`}function W(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function jn(e){return!!en[nn.call(e)]}function Mn(e){return!!tn[nn.call(e)]}function Nn(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Pn(e){return e.colorStops!=null}function Fn(e){return e.image!=null}function In(e){return nn.call(e)===`[object RegExp]`}function Ln(e){return e!==e}function Rn(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e??t}function zn(e,t,n){return e??t??n}function Bn(e){var t=[...arguments].slice(1);return sn.apply(e,t)}function Vn(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 Hn(e,t){if(!e)throw Error(t)}function Un(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Wn=`__ec_primitive__`;function Gn(e){e[Wn]=!0}function Kn(e){return e[Wn]}var qn=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return En(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Jn=typeof Map==`function`;function Yn(){return Jn?new Map:new qn}var Xn=function(){function e(t){var n=V(t);this.data=Yn();var r=this;t instanceof e?t.each(i):t&&R(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Jn?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new Xn(e)}function Zn(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Qn(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&I(n,t),n}function $n(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function q(e,t){return e.hasOwnProperty(t)}function er(){}var tr=180/Math.PI,nr=function(e,t){return nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nr(e,t)};function rr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);nr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ir(e,t){return e??=0,t??=0,[e,t]}function ar(e,t){return e[0]=t[0],e[1]=t[1],e}function or(e){return[e[0],e[1]]}function sr(e,t,n){return e[0]=t,e[1]=n,e}function cr(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function lr(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function ur(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function dr(e){return Math.sqrt(fr(e))}function fr(e){return e[0]*e[0]+e[1]*e[1]}function pr(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function mr(e,t){var n=dr(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function hr(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var gr=hr;function _r(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var vr=_r;function yr(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function br(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function xr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Sr(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Cr=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),wr=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Cr(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Cr(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Cr(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Cr(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Cr(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Cr(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Tr=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Er=Math.log(2);function Dr(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Er);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Dr(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Or(e,t){var n=[[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]]],r={},i=Dr(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Dr(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var kr=`___zrEVENTSAVED`,Ar=[];function jr(e,t,n,r,i){return Nr(Ar,t,r,i,!0)&&Nr(e,n,Ar[0],Ar[1])}function Mr(e,t){e&&n(e),t&&n(t);function n(e){var t=e[kr];t&&(t.clearMarkers&&t.clearMarkers(),delete e[kr])}}function Nr(e,t,n,r,i){if(t.getBoundingClientRect&&Gt.domSupported&&!Fr(t)){var a=t[kr]||(t[kr]={}),o=eee(Pr(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Pr(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function eee(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Or(s,o):Or(o,s))}function Fr(e){return e.nodeName.toUpperCase()===`CANVAS`}var Ir=/([&<>"'])/g,Lr={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function Rr(e){return e==null?``:(e+``).replace(Ir,function(e,t){return Lr[t]})}var zr=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Br=[],Vr=Gt.browser.firefox&&+Gt.browser.version.split(`.`)[0]<39;function Hr(e,t,n,r){return n||={},r?Ur(e,t,n):Vr&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Ur(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Ur(e,t,n){if(Gt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Fr(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(Nr(Br,e,r,i)){n.zrX=Br[0],n.zrY=Br[1];return}}n.zrX=n.zrY=0}function Wr(e){return e||window.event}function Gr(e,t,n){if(t=Wr(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Hr(e,i,t,n)}else{Hr(e,t,t,n);var a=Kr(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&zr.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Kr(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function qr(e,t,n,r){e.addEventListener(t,n,r)}function Jr(e,t,n,r){e.removeEventListener(t,n,r)}var Yr=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Xr(e){return e.which===2||e.which===3}var Zr=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Hr(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in ei)if(ei.hasOwnProperty(t)){var n=ei[t](this._track,e);if(n)return n}},e}();function Qr(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function $r(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ei={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Qr(r)/Qr(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=$r(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function ti(){return[1,0,0,1,0,0]}function ni(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ri(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 ii(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function ai(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function oi(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function si(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function ci(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function li(e){var t=ti();return ri(t,e),t}var J=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),ui=Math.min,di=Math.max,fi=Math.abs,pi=[`x`,`y`],mi=[`width`,`height`],hi=new J,gi=new J,_i=new J,vi=new J,yi=Ni(),bi=yi.minTv,xi=yi.maxTv,Si=[0,0],Y=function(){function e(e,t,n,r){wi(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=ui(e.x,this.x),n=ui(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=di(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=di(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Ei(ti(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&J.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=wi(ki,t.x,t.y,t.width,t.height)),n instanceof e||(n=wi(Ai,n.x,n.y,n.width,n.height));var s=!!r;yi.reset(i,s);var c=yi.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Si[0]=1/0,Si[1]=0,Mi(l,u,p,m,0,s,a,o),Mi(d,f,h,g,1,s,a,o),s&&J.copy(r,_?yi.useDir?yi.dirMinTv:bi:xi)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Ti(this,e)},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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&Ti(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hi.x=_i.x=t.x,hi.y=vi.y=t.y,gi.x=vi.x=t.x+t.width,gi.y=_i.y=t.y+t.height,hi.transform(n),vi.transform(n),gi.transform(n),_i.transform(n),e.x=ui(hi.x,gi.x,_i.x,vi.x),e.y=ui(hi.y,gi.y,_i.y,vi.y);var s=di(hi.x,gi.x,_i.x,vi.x),c=di(hi.y,gi.y,_i.y,vi.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=ni(e||[]),ai(e,e,sr(ji,-t.x,-t.y)),si(e,e,sr(ji,r,i)),ai(e,e,sr(ji,n.x,n.y)),e},e}(),Ci=Y.create,wi=Y.set,Ti=Y.copy,Ei=Y.calculateTransform,Di=Y.applyTransform,Oi=Y.contain,ki=new Y(0,0,0,0),Ai=new Y(0,0,0,0),ji=[];function Mi(e,t,n,r,i,a,o,s){var c=fi(t-n),l=fi(r-e),u=ui(c,l),d=pi[i],f=pi[1-i],p=mi[i];t<n||r<e?c<l?(a&&(xi[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(xi[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=di(e,n),o[p]=ui(t,r)-o[d]),a&&(u<Si[0]||yi.useDir)&&(Si[0]=ui(u,Si[0]),(c<l||!yi.bidirectional)&&(bi[d]=c,bi[f]=0,yi.useDir&&yi.calcDirMTV()),(c>=l||!yi.bidirectional)&&(bi[d]=-l,bi[f]=0,yi.useDir&&yi.calcDirMTV())))}function Ni(){var e=0,t=new J,n=new J,r={minTv:new J,maxTv:new J,useDir:!1,dirMinTv:new J,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=di(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return fi(e)<1e-10}return r}var Pi=`silent`;function Fi(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ii}}function Ii(){Yr(this.event)}var Li=function(e){rr(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Tr),Ri=function(){function e(e,t){this.x=e,this.y=t}return e}(),zi=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Bi=new Y(0,0,0,0),Vi=function(e){rr(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Ri(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Li,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new wr(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(zi,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Wi(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Ri(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Ri(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Fi(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ri(e,t);if(Ui(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(Bi.copy(u.getBoundingRect()),u.transform&&Bi.applyTransform(u.transform),Bi.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(Ui(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Zr;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Ri;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Tr);R([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Vi.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Wi(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.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||gr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Hi(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||Pi}return!1}function Ui(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Hi(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Pi)){t.target=o;break}}}function Wi(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gi=32,Ki=7;function qi(e){for(var t=0;e>=Gi;)t|=e&1,e>>=1;return e+t}function Ji(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Yi(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Yi(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Xi(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){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(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Zi(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Qi(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function $i(e,t){var n=Ki,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Qi(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Zi(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Qi(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Zi(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Ki||m>=Ki);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Qi(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Zi(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Ki||g>=Ki);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function ea(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<Gi){a=Ji(e,n,r,t),Xi(e,n,r,n+a,t);return}var o=$i(e,t),s=qi(i);do{if(a=Ji(e,n,r,t),a<s){var c=i;c>s&&(c=s),Xi(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var ta=!1;function na(){ta||(ta=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function ra(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var tee=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ra}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,ea(n,ra)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(na(),p.z=0),isNaN(p.z2)&&(na(),p.z2=0),isNaN(p.zlevel)&&(na(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=yn(this._roots,e);r>=0&&this._roots.splice(r,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}(),ia=Gt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},aa={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:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.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=1.70158*1.525;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-aa.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?aa.bounceIn(e*2)*.5:aa.bounceOut(e*2-1)*.5+.5}},oa=Math.pow,sa=Math.sqrt,ca=1e-8,la=1e-4,ua=sa(3),da=1/3,fa=ir(),pa=ir(),ma=ir();function ha(e){return e>-ca&&e<ca}function ga(e){return e>ca||e<-ca}function _a(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function va(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function ya(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(ha(u)&&ha(d))if(ha(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(ha(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=sa(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-oa(-y,da):oa(y,da),b=b<0?-oa(-b,da):oa(b,da);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*sa(u*u*u)),S=Math.acos(x)/3,C=sa(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+ua*Math.sin(S)))/(3*o),T=(-s+C*(w-ua*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function ba(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(ha(o)){if(ga(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ha(u))i[0]=-a/(2*o);else if(u>0){var d=sa(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function xa(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Sa(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;fa[0]=c,fa[1]=l;for(var v=0;v<1;v+=.05)pa[0]=_a(e,n,i,o,v),pa[1]=_a(t,r,a,s,v),g=vr(fa,pa),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<la);y++)m=d-f,h=d+f,pa[0]=_a(e,n,i,o,m),pa[1]=_a(t,r,a,s,m),g=vr(pa,fa),m>=0&&g<p?(d=m,p=g):(ma[0]=_a(e,n,i,o,h),ma[1]=_a(t,r,a,s,h),_=vr(ma,fa),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=_a(e,n,i,o,d),u[1]=_a(t,r,a,s,d)),sa(p)}function Ca(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=_a(e,n,i,o,m),g=_a(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function wa(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Ta(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Ea(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ha(a)){if(ga(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ha(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=sa(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Da(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Oa(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function ka(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;fa[0]=o,fa[1]=s;for(var f=0;f<1;f+=.05){pa[0]=wa(e,n,i,f),pa[1]=wa(t,r,a,f);var p=vr(fa,pa);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<la);m++){var h=l-u,g=l+u;pa[0]=wa(e,n,i,h),pa[1]=wa(t,r,a,h);var p=vr(pa,fa);if(h>=0&&p<d)l=h,d=p;else{ma[0]=wa(e,n,i,g),ma[1]=wa(t,r,a,g);var _=vr(ma,fa);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=wa(e,n,i,l),c[1]=wa(t,r,a,l)),sa(d)}function Aa(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=wa(e,n,i,f),m=wa(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var ja=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ma(e){var t=e&&ja.exec(e);if(t){var n=t[1].split(`,`),r=+Un(n[0]),i=+Un(n[1]),a=+Un(n[2]),o=+Un(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:ya(0,r,a,1,e,s)&&_a(0,i,o,1,s[0])}}}var Na=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||er,this.ondestroy=e.ondestroy||er,this.onrestart=e.onrestart||er,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,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(e){this.easing=e,this.easingFunc=H(e)?e:aa[e]||Ma(e)},e}(),Pa=function(){function e(e){this.value=e}return e}(),Fa=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Pa(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Ia=function(){function e(e){this._list=new Fa,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Pa(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),La={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 Ra(e){return e=Math.round(e),e<0?0:e>255?255:e}function za(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ba(e){return e<0?0:e>1?1:e}function Va(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ra(parseFloat(t)/100*255):Ra(parseInt(t,10))}function Ha(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ba(parseFloat(t)/100):Ba(parseFloat(t))}function Ua(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Wa(e,t,n){return e+(t-e)*n}function Ga(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Ka(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var qa=new Ia(20),Ja=null;function Ya(e,t){Ja&&Ka(Ja,t),Ja=qa.put(e,Ja||t.slice())}function Xa(e,t){if(e){t||=[];var n=qa.get(e);if(n)return Ka(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in La)return Ka(t,La[r]),Ya(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Ga(t,0,0,0,1);return}return Ga(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Ya(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ga(t,0,0,0,1);return}return Ga(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Ya(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Ga(t,+l[0],+l[1],+l[2],1):Ga(t,0,0,0,1);u=Ha(l.pop());case`rgb`:if(l.length>=3)return Ga(t,Va(l[0]),Va(l[1]),Va(l[2]),l.length===3?u:Ha(l[3])),Ya(e,t),t;Ga(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Ga(t,0,0,0,1);return}return l[3]=Ha(l[3]),Za(l,t),Ya(e,t),t;case`hsl`:if(l.length!==3){Ga(t,0,0,0,1);return}return Za(l,t),Ya(e,t),t;default:return}}Ga(t,0,0,0,1)}}function Za(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ha(e[1]),i=Ha(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Ga(t,Ra(Ua(o,a,n+1/3)*255),Ra(Ua(o,a,n)*255),Ra(Ua(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Qa(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function $a(e,t){var n=Xa(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return io(n,n.length===4?`rgba`:`rgb`)}}function eo(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Ra(Wa(o[0],s[0],c)),n[1]=Ra(Wa(o[1],s[1],c)),n[2]=Ra(Wa(o[2],s[2],c)),n[3]=Ba(Wa(o[3],s[3],c)),n}}function to(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Xa(t[i]),s=Xa(t[a]),c=r-i,l=io([Ra(Wa(o[0],s[0],c)),Ra(Wa(o[1],s[1],c)),Ra(Wa(o[2],s[2],c)),Ba(Wa(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function no(e,t,n,r){var i=Xa(e);if(e)return i=Qa(i),t!=null&&(i[0]=za(H(t)?t(i[0]):t)),n!=null&&(i[1]=Ha(H(n)?n(i[1]):n)),r!=null&&(i[2]=Ha(H(r)?r(i[2]):r)),io(Za(i),`rgba`)}function ro(e,t){var n=Xa(e);if(n&&t!=null)return n[3]=Ba(t),io(n,`rgba`)}function io(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function ao(e,t){var n=Xa(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var oo=new Ia(100);function so(e){if(U(e)){var t=oo.get(e);return t||(t=$a(e,-.1),oo.put(e,t)),t}else if(Pn(e)){var n=I({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:$a(e.color,-.1)}}),n}return e}var co=Math.round;function lo(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Xa(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var uo=1e-4;function fo(e){return e<uo&&e>-uo}function po(e){return co(e*1e3)/1e3}function mo(e){return co(e*1e4)/1e4}function ho(e){return`matrix(`+po(e[0])+`,`+po(e[1])+`,`+po(e[2])+`,`+po(e[3])+`,`+mo(e[4])+`,`+mo(e[5])+`)`}var go={left:`start`,right:`end`,center:`middle`,middle:`middle`};function _o(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function vo(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yo(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function bo(e){return e&&!!e.image}function xo(e){return e&&!!e.svgElement}function So(e){return bo(e)||xo(e)}function Co(e){return e.type===`linear`}function wo(e){return e.type===`radial`}function To(e){return e&&(e.type===`linear`||e.type===`radial`)}function Eo(e){return`url(#`+e+`)`}function Do(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Oo(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*tr,i=G(e.scaleX,1),a=G(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+co(o*tr)+`deg, `+co(s*tr)+`deg)`),c.join(` `)}var ko=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ao=Array.prototype.slice;function jo(e,t,n){return(t-e)*n+e}function Mo(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=jo(t[a],n[a],r);return e}function No(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=jo(t[o][s],n[o][s],r)}return e}function Po(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Fo(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Io(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Lo(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ao.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Ro(e){if(Sn(e)){var t=e.length;if(Sn(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ao.call(e[r]));return n}return Ao.call(e)}return e}function zo(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 Bo(e){return Sn(e&&e[0])?2:1}var Vo=0,Ho=1,Uo=2,Wo=3,Go=4,Ko=5,qo=6;function Jo(e){return e===Go||e===Ko}function Yo(e){return e===Ho||e===Uo}var Xo=[0,0,0,0],Zo=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=qo,s=t;if(Sn(t)){var c=Bo(t);o=c,(c===1&&!An(t[0])||c===2&&!An(t[0][0]))&&(a=!0)}else if(An(t)&&!Ln(t))o=Vo;else if(U(t))if(!isNaN(+t))o=Vo;else{var l=Xa(t);l&&(s=l,o=Wo)}else if(Pn(t)){var u=I({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Xa(e.color)}}),Co(t)?o=Go:wo(t)&&(o=Ko),s=u}i===0?this.valType=o:(o!==this.valType||o===qo)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=H(n)?n:aa[n]||Ma(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Yo(r),c=Jo(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Lo(d,f,r):c&&Io(d.colorStops,f.colorStops))}if(!o&&r!==Ko&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Vo?n[l].additiveValue=n[l].value-p:r===Wo?n[l].additiveValue=Po([],n[l].value,p,-1):Yo(r)&&(n[l].additiveValue=r===Ho?Po([],n[l].value,p,-1):Fo([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Wo,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Xo:e[s];if((Yo(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Yo(i))i===Ho?Mo(g,f[r],p[r],h):No(g,f[r],p[r],h);else if(Jo(i)){var _=f[r],v=p[r],y=i===Go;e[s]={type:y?`linear`:`radial`,x:jo(_.x,v.x,h),y:jo(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:jo(e.offset,n.offset,h),color:zo(Mo([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=jo(_.x2,v.x2,h),e[s].y2=jo(_.y2,v.y2,h)):e[s].r=jo(_.r,v.r,h)}else if(c)Mo(g,f[r],p[r],h),n||(e[s]=zo(g));else{var b=jo(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Vo?e[n]=e[n]+r:t===Wo?(Xa(e[n],Xo),Po(Xo,Xo,r,1),e[n]=zo(Xo)):t===Ho?Po(e[n],e[n],r,1):t===Uo&&Fo(e[n],e[n],r,1)},e}(),Qo=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){hn(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,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(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,En(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Zo(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Wo&&c&&(c=zo(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Ro(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ro(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new Na({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return z(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Ro(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=En(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function $o(){return new Date().getTime()}var es=function(e){rr(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=$o()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(ia(t),!e._paused&&e.update())}ia(t)},t.prototype.start=function(){this._running||(this._time=$o(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=$o(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=$o()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Qo(e,t.loop);return this.addAnimator(n),n},t}(Tr),ts=300,ns=Gt.domSupported,rs=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),is={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},as=!1;function os(e){var t=e.pointerType;return t===`pen`||t===`touch`}function ss(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 cs(e){e&&(e.zrByTouch=!0)}function ls(e,t){return Gr(e.dom,new ds(e,t),!0)}function us(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ds=function(){function e(e,t){this.stopPropagation=er,this.stopImmediatePropagation=er,this.preventDefault=er,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),fs={mousedown:function(e){e=Gr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Gr(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=Gr(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Gr(this.dom,e);var t=e.toElement||e.relatedTarget;us(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){as=!0,e=Gr(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){as||(e=Gr(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Gr(this.dom,e),cs(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),fs.mousemove.call(this,e),fs.mousedown.call(this,e)},touchmove:function(e){e=Gr(this.dom,e),cs(e),this.handler.processGesture(e,`change`),fs.mousemove.call(this,e)},touchend:function(e){e=Gr(this.dom,e),cs(e),this.handler.processGesture(e,`end`),fs.mouseup.call(this,e),new Date-+this.__lastTouchMoment<ts&&fs.click.call(this,e)},pointerdown:function(e){fs.mousedown.call(this,e)},pointermove:function(e){os(e)||fs.mousemove.call(this,e)},pointerup:function(e){fs.mouseup.call(this,e)},pointerout:function(e){os(e)||fs.mouseout.call(this,e)}};R([`click`,`dblclick`,`contextmenu`],function(e){fs[e]=function(t){t=Gr(this.dom,t),this.trigger(e,t)}});var ps={pointermove:function(e){os(e)||ps.mousemove.call(this,e)},pointerup:function(e){ps.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 ms(e,t){var n=t.domHandlers;Gt.pointerEventsSupported?R(rs.pointer,function(r){gs(t,r,function(t){n[r].call(e,t)})}):(Gt.touchEventsSupported&&R(rs.touch,function(r){gs(t,r,function(i){n[r].call(e,i),ss(t)})}),R(rs.mouse,function(r){gs(t,r,function(i){i=Wr(i),t.touching||n[r].call(e,i)})}))}function hs(e,t){Gt.pointerEventsSupported?R(is.pointer,n):Gt.touchEventsSupported||R(is.mouse,n);function n(n){function r(r){r=Wr(r),us(e,r.target)||(r=ls(e,r),t.domHandlers[n].call(e,r))}gs(t,n,r,{capture:!0})}}function gs(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,qr(e.domTarget,t,n,r)}function _s(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Jr(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var vs=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ys=function(e){rr(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new vs(t,fs),ns&&(r._globalHandlerScope=new vs(document,ps)),ms(r,r._localHandlerScope),r}return t.prototype.dispose=function(){_s(this._localHandlerScope),ns&&_s(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,ns&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?hs(this,t):_s(t)}},t}(Tr),bs=1;Gt.hasGlobalWindow&&(bs=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xs=bs,Ss=.4,Cs=`#333`,ws=`#ccc`,nee=`#eee`,Ts=ni,Es=5e-5;function Ds(e){return e>Es||e<-Es}var Os=[],ks=[],As=ti(),js=Math.abs,Ms=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ns(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Ds(this.rotation)||Ds(this.x)||Ds(this.y)||Ds(this.scaleX-1)||Ds(this.scaleY-1)||Ds(this.skewX)||Ds(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Ts(n),this.invTransform=null);return}n||=ti(),t?this.getLocalTransform(n):Ts(n),e&&(t?ii(n,e,n):ri(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||ti(),ci(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Os);var n=Os[0]<0?-1:1,r=Os[1]<0?-1:1,i=((Os[0]-n)*t+n)/Os[0]||0,a=((Os[1]-r)*t+r)/Os[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ti(),ii(ks,e.invTransform,t),t=ks);var n=this.originX,r=this.originY;(n||r)&&(As[4]=n,As[5]=r,ii(ks,t,As),ks[4]-=n,ks[5]-=r,t=ks),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&br(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&br(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&js(e[0]-1)>1e-10&&js(e[3]-1)>1e-10?Math.sqrt(js(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Is(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&oi(t,t,c),t[4]+=n+l,t[5]+=r+u,t},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=Ms.getLocalTransform;function Ps(){return new Ms}var Fs=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Is(e,t){return vn(e,t,Fs)}function Ls(e){Rs||=new Ia(100),e||=`12px sans-serif`;var t=Rs.get(e);return t||(t={font:e,strWidthCache:new Ia(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$t.measureText(`国`,e).width,asciiCharWidth:$t.measureText(`a`,e).width},Rs.put(e,t)),t}var Rs;function zs(e){if(!(Bs>=Vs)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=$t.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Bs=Vs:i>2&&Bs++,t}}var Bs=0,Vs=5;function Hs(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=zs(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Us(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=$t.measureText(t,e.font).width,n.put(t,r)),r}function Ws(e,t,n,r){var i=Us(Ls(t),e),a=Js(t);return new Y(Ks(0,i,n),qs(0,a,r),i,a)}function Gs(e,t,n,r){var i=((e||``)+``).split(`
21
+ `);if(i.length===1)return Ws(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=Ws(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Ks(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function qs(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Js(e){return Ls(e).stWideCharWidth}function Ys(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Xs(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Ys(r[0],n.width),l+=Ys(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Zs=`__zr_normal__`,Qs=Fs.concat([`ignore`]),$s=Cn(Fs,function(e,t){return e[t]=!0,e},{ignore:!1}),ec={},tc=new Y(0,0,0,0),nc=[],rc=function(){function e(e){this.id=mn(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=tc,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(ec,n,d):Xs(ec,n,d),i.x=ec.x,i.y=ec.y,a=ec.align,o=ec.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Ys(f[0],d.width),m=Ys(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Y(0,0,0,0);i.getLocalTransform(nc),ci(nc,nc),Y.copy(_,d),_.applyTransform(nc)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ws:Cs},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Xa(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,io(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(W(e))for(var n=En(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Qs)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Zs,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Zs;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(yn(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){hn(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=dc(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,pc(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=dc(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,pc(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=yn(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=yn(r,e),a=yn(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];I(t,i),i.textConfig&&(n||={},I(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Qs.length;l++){var u=Qs[l],d=i&&$s[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ms,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},I(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new Qo(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=yn(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){ic(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){ic(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=ic(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},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.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();xn(rc,Tr),xn(rc,Ms);function ic(e,t,n,r,i){n||={};var a=[];uc(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ac(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function oc(e){return Sn(e[0])}function sc(e,t,n){if(Sn(t[n]))if(Sn(e[n])||(e[n]=[]),Mn(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ac(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(oc(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ac(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ac(a,i,o);a.length=i.length}else e[n]=t[n]}function cc(e,t){return e===t||Sn(e)&&Sn(t)&&lc(e,t)}function lc(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function uc(e,t,n,r,i,a,o,s){for(var c=En(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!W(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(W(v)&&!Sn(v)&&!Pn(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}uc(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=yn(m,x);m.splice(S,1)}}if(i.force||(h=wn(h,function(e){return!cc(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=Ro(n[_]),sc(n,r,_)}}var x=new Qo(n,!1,!1,d?wn(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function dc(e,t,n,r){return!(n&&n.hoverLayer||r)||fc(e)||t&&fc(t)?0:1}function fc(e){return e.type===`text`||e.type===`tspan`}function pc(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var X=function(e){rr(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=yn(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=yn(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Y(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(rc);X.prototype.type=`group`;var mc={},hc={};function gc(e){delete hc[e]}function _c(e){if(!e)return!1;if(typeof e==`string`)return ao(e,1)<Ss;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=ao(t[i].color,1);return n/=r,n<Ss}return!1}var vc=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new tee,a=n.renderer||`canvas`;mc[a]||(a=En(mc)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new mc[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!Gt.node&&!Gt.worker&&!s?new ys(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?Gt.touchEventsSupported:!!l,d=44,f;u&&(f=G(n.pointerSize,d)),this.handler=new Vi(i,o,c,o.root,f),this.animation=new es({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=_c(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=$o(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=$o();t?(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(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof X&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,gc(this.id))},e}();function yc(e,t){var n=new vc(mn(),e,t);return hc[n.id]=n,n}function bc(e,t){mc[e]=t}var xc;function Sc(e){if(typeof xc==`function`)return xc(e)}function Cc(e){xc=e}var wc=1e-4,Tc=20;function Ec(e){return e.replace(/^\s+|\s+$/g,``)}var Dc=Math.min,Oc=Math.max,kc=Math.abs,Ac=Math.round,jc=Math.floor,Mc=Math.ceil,Nc=Math.pow,Pc=Math.log,Fc=Math.LN10,Ic=Math.PI,Lc=Math.random;function Rc(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Z=zc;function zc(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return Bc(e,t,n)}function Bc(e,t,n){return U(e)?Hc(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Vc(e){return U(e)&&Hc(e)}function Hc(e){return!!Ec(e).match(/%$/)}function Uc(e,t,n){return isNaN(t)?n?``+e:+e:(t=Dc(Oc(0,t),Tc),e=(+e).toFixed(t),n?e:+e)}function Wc(e){return e.sort(function(e,t){return e-t}),e}function Gc(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Ac(e*t)/t===e)return n}return Kc(e)}function Kc(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Oc(0,(a<0?0:i-1-a)-r)}function qc(e,t,n){var r=kc(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Pc(2*kc(n||1)*kc(r))/Fc,a=Pc(kc(t))/Fc,o=Oc(0,Mc(-i+a));return isFinite(o)||(o=NaN),o}function Jc(e,t){var n=Cn(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Nc(10,t),i=z(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=z(i,function(e){return jc(e)}),s=Cn(o,function(e,t){return e+t},0),c=z(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return z(o,function(e){return e/r})}function Yc(e,t){var n=Oc(Gc(e),Gc(t)),r=e+t;return n>Tc?r:Uc(r,n)}var Xc=Nc(2,53)-1;function Zc(e){var t=Ic*2;return(e%t+t)%t}function Qc(e){return e>-wc&&e<wc}var $c=/^(?:(\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 el(e){if(e instanceof Date)return e;if(U(e)){var t=$c.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(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(Ac(e))}function tl(e){return Nc(10,nl(e))}function nl(e){if(e===0)return 0;var t=jc(Pc(e)/Fc);return e/Nc(10,t)>=10&&t++,t}function rl(e,t){var n=nl(e),r=Nc(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Uc(e,-n)}function il(e,t){var n=(e.length-1)*t+1,r=jc(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function al(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function ol(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf(`x`)<=0)?t:NaN}function sl(e){return!isNaN(ol(e))}function cl(){return Ac(Lc()*9)}function ll(e,t){return t===0?e:ll(t,e%t)}function ul(e,t){return e==null?t:t==null?e:e*t/ll(e,t)}function dl(e){return e!=null&&isFinite(e)}var fl=`[ECharts] `,pl={},ml=typeof console<`u`&&console.warn&&console.log;function hl(e,t,n){if(ml){if(n){if(pl[t])return;pl[t]=!0}console[e](fl+t)}}function gl(e,t){hl(`error`,e,t)}function _l(e){throw Error(e)}function vl(e,t,n){return(t-e)*n+e}var yl=`series\0`,bl=`\0_ec_\0`;function xl(e){return e instanceof Array?e:e==null?[]:[e]}function Sl(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Cl=`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`.split(`.`);function wl(e){return W(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function Tl(e){return W(e)&&!(e instanceof Array)}function El(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();R(t,function(e,n){if(!W(e)){t[n]=null;return}});var s=Dl(e,o,n);return(r||i)&&Ol(s,e,o,t),r&&kl(s,t),r||i?Al(s,t,i):a&&jl(s,t),Ml(s),s}function Dl(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Ll(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Ol(e,t,n,r){R(r,function(i,a){if(!(!i||i.id==null)){var o=Pl(i.id),s=n.get(o);if(s!=null){var c=e[s];Hn(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function kl(e,t){R(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Ll(n)&&!Ll(a)&&Nl(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Al(e,t,n){R(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Ll(r.existing)||r.existing&&t.id!=null&&!Nl(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function jl(e,t){R(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ml(e){var t=K();R(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),R(e,function(e){var n=e.newOption;Hn(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),R(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(W(i)){if(a.name=i.name==null?r?r.name:yl+n:Pl(i.name),r)a.id=Pl(r.id);else if(i.id!=null)a.id=Pl(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Nl(e,t,n){var r=Fl(t[e],null),i=Fl(n[e],null);return r!=null&&i!=null&&r===i}function Pl(e){return Fl(e,``)}function Fl(e,t){return e==null?t:U(e)?e:An(e)||kn(e)?e+``:t}function Il(e){var t=e.name;return!!(t&&t.indexOf(yl))}function Ll(e){return e&&e.id!=null&&Pl(e.id).indexOf(bl)===0}function Rl(e){return bl+e}function zl(e,t,n){R(e,function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Bl(t,r,e.existing,n))})}function Bl(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Vl(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=Fl(e[r].seriesId,null);if(a==null)return;for(var o=xl(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Hl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Ul(){var e=`__ec_inner_`+Wl++;return function(t){return t[e]||(t[e]={})}}var Wl=cl();function Gl(e,t,n){var r=Kl(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Yl(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Kl(e,t){var n;if(U(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return R(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&yn(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ql={useDefault:!0,enableAll:!1,enableNone:!1},Jl={useDefault:!1,enableAll:!0,enableNone:!0};function Yl(e,t,n,r){r||=ql;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Xl(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function Zl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ql(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function $l(e){return e===`auto`?Gt.domSupported?`html`:`richText`:e||`html`}function eu(e,t){var n=K(),r=[];return R(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function tu(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(An(r)){var o=vl(n||0,r,i);return Uc(o,a?Math.max(Gc(n||0),Gc(r)):t)}else if(U(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=vl(p,m,i);s[d]=Uc(o,a?Math.max(Gc(p),Gc(m)):t)}}return s}}var nu=function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}();function ru(e){e.option=e.parentModel=e.ecModel=null}function iu(){return[1/0,-1/0]}function au(e,t){lu(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function ou(e,t){lu(t)&&t<e[0]&&(e[0]=t)}function su(e,t){lu(t)&&t>e[1]&&(e[1]=t)}function cu(e,t){uu(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function lu(e){return e!=null&&isFinite(e)}function uu(e,t){return lu(e)&&lu(t)&&e<=t}function du(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function fu(e){uu(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function pu(){var e=`__ec_once_`+ree++;return function(t,n){q(t,e)||(t[e]=1,n())}}var ree=cl();function mu(e,t,n){var r=K(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function hu(e){return e.value+``}function gu(e){return e+``}function _u(e,t){return G(t,!0)?e.seriesIndex+2:0}function vu(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function yu(e,t){return{seriesType:e,overallReset:t}}function bu(e){return{overallReset:e}}var xu=`.`,Su=`___EC__COMPONENT__CONTAINER___`,Cu=`___EC__EXTENDED_CLASS___`;function wu(e){var t={main:``,sub:``};if(e){var n=e.split(xu);t.main=n[0]||``,t.sub=n[1]||``}return t}function Tu(e){Hn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Eu(e){return!!(e&&e[Cu])}function Du(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Ou(t)?n=function(e){P(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},bn(n,this)),I(n.prototype,e),n[Cu]=!0,n.extend=this.extend,n.superCall=Mu,n.superApply=Nu,n.superClass=t,n}}function Ou(e){return H(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function ku(e,t){e.extend=t.extend}var Au=Math.round(Math.random()*10);function ju(e){var t=[`__\0is_clz`,Au++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Mu(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Nu(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Pu(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Tu(r),e.prototype.type=r;var i=wu(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Su){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Su]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=wu(e),r=[],i=t[n.main];return i&&i[Su]?R(i,function(e,t){t!==Su&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[wu(e).main]},e.getAllClassMainTypes=function(){var e=[];return R(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[wu(e).main];return n&&n[Su]};function n(e){var n=t[e.main];return(!n||!n[Su])&&(n=t[e.main]={},n[Su]=!0),n}}function Fu(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&yn(r,s)>=0||i&&yn(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Iu=Fu([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Lu=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Iu(this,e,t)},e}(),Ru=new Ia(50);function zu(e){if(typeof e==`string`){var t=Ru.get(e);return t&&t.image}else return e}function Bu(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Ru.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Hu(t)&&a.pending.push(o)):(t=$t.loadImage(e,Vu,Vu),t.__zrImageSrc=e,Ru.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function Vu(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Hu(e){return e&&e.width&&e.height}var Uu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Wu(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
22
+ `);a=Gu(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Ku(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
23
+ `),e.isTruncated=s}function Gu(e,t,n,r){r||={};var i=I({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=Ls(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Us(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Ku(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Us(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?qu(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Us(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function qu(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Hs(n,e.charCodeAt(i));return i}function iee(e,t,n,r){var i=od(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Js(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?nd(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
24
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Gu(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Ku(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Ls(l),S=0;S<_.length;S++)w=Math.max(Us(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var Ju=function(){function e(){}return e}(),Yu=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Xu=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Zu(e,t,n,r,i){var a=new Xu,o=od(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Uu.lastIndex=0,h;(h=Uu.exec(o))!=null;){var g=h.index;g>m&&Qu(a,o.substring(m,g),t,p),Qu(a,h[2],t,p,h[1]),m=Uu.lastIndex}m<o.length&&Qu(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,M=k.font=A.font||t.font;k.contentHeight=Js(M);var te=G(A.height,k.contentHeight);if(k.innerHeight=te,j&&(te+=j[0]+j[2]),k.height=te,k.lineHeight=zn(A.lineHeight,t.lineHeight,te),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break outer}var re=A.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)k.percentWidth=re,_.push(k),k.contentWidth=Us(Ls(M),k.text);else{if(ie){var ae=A.backgroundColor,oe=ae&&ae.image;oe&&(oe=zu(oe),Hu(oe)&&(k.width=Math.max(k.width,oe.width*te/oe.height)))}var se=b&&u!=null?u-D:null;se!=null&&se<k.width?!ie||se<ee?(k.text=``,k.width=k.contentWidth=0):(Wu(S,k.text,se-ee,M,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Us(Ls(M),k.text)):k.contentWidth=Us(Ls(M),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ce=k.percentWidth;k.width=parseInt(ce,10)/100*a.width}return a}function Qu(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Ys(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
25
+ `),l=!0),r.accumWidth=m}else{var h=nd(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
26
+ `);for(var g=Ls(c),_=0;_<u.length;_++){var v=u[_],y=new Ju;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:Us(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Yu)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Yu([y]))}}function $u(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ed=Cn(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function td(e){return!$u(e)||!!ed[e]}function nd(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Ls(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
27
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Hs(d,p.charCodeAt(0)),h=!r&&!td(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function rd(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Y.set(id,Ks(n,o,i),qs(r,s,a),o,s),Y.intersect(t,id,null,ad);var c=ad.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Ks(c.x,c.width,i,!0),e.baseY=qs(c.y,c.height,a,!0)}}var id=new Y(0,0,0,0),ad={outIntersectRect:{},clamp:!0};function od(e){return e==null?e=``:e+=``}function sd(e){var t=od(e.text),n=e.font;return cd(e,Us(Ls(n),t),Js(n),null)}function cd(e,t,n,r){var i=new Y(Ks(e.x||0,t,e.textAlign),qs(e.y||0,n,e.textBaseline),t,n),a=r??(ld(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function ld(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var ud=`__zr_style_`+Math.round(Math.random()*10),dd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},fd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};dd[ud]=!0;var pd=[`z`,`z2`,`invisible`],md=[`invisible`],hd=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=En(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&vd(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Y(0,0,0,0),t?Y.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Y(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:I(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Qn(dd,e)},t.prototype.useStyle=function(e){e[ud]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[ud]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,pd)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=En(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=En(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?md:pd,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return I(e,t),e},t.prototype.getAnimationStyleProps=function(){return fd},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(rc),gd=new Y(0,0,0,0),_d=new Y(0,0,0,0);function vd(e,t,n){return gd.copy(e.getBoundingRect()),e.transform&&gd.applyTransform(e.transform),_d.width=t,_d.height=n,!gd.intersect(_d)}var yd=Math.min,bd=Math.max,xd=Math.sin,Sd=Math.cos,Cd=Math.PI*2,wd=ir(),Td=ir(),Ed=ir();function Dd(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=yd(i,r[0]),a=bd(a,r[0]),o=yd(o,r[1]),s=bd(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Od(e,t,n,r,i,a){i[0]=yd(e,n),i[1]=yd(t,r),a[0]=bd(e,n),a[1]=bd(t,r)}var kd=[],Ad=[];function jd(e,t,n,r,i,a,o,s,c,l){var u=ba,d=_a,f=u(e,n,i,o,kd);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,kd[p]);c[0]=yd(m,c[0]),l[0]=bd(m,l[0])}f=u(t,r,a,s,Ad);for(var p=0;p<f;p++){var h=d(t,r,a,s,Ad[p]);c[1]=yd(h,c[1]),l[1]=bd(h,l[1])}c[0]=yd(e,c[0]),l[0]=bd(e,l[0]),c[0]=yd(o,c[0]),l[0]=bd(o,l[0]),c[1]=yd(t,c[1]),l[1]=bd(t,l[1]),c[1]=yd(s,c[1]),l[1]=bd(s,l[1])}function Md(e,t,n,r,i,a,o,s){var c=Da,l=wa,u=bd(yd(c(e,n,i),1),0),d=bd(yd(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=yd(e,i,f),o[1]=yd(t,a,p),s[0]=bd(e,i,f),s[1]=bd(t,a,p)}function Nd(e,t,n,r,i,a,o,s,c){var l=xr,u=Sr,d=Math.abs(i-a);if(d%Cd<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(wd[0]=Sd(i)*n+e,wd[1]=xd(i)*r+t,Td[0]=Sd(a)*n+e,Td[1]=xd(a)*r+t,l(s,wd,Td),u(c,wd,Td),i%=Cd,i<0&&(i+=Cd),a%=Cd,a<0&&(a+=Cd),i>a&&!o?a+=Cd:i<a&&o&&(i+=Cd),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ed[0]=Sd(p)*n+e,Ed[1]=xd(p)*r+t,l(s,Ed,s),u(c,Ed,c))}var Pd={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fd=[],Id=[],Ld=[],Rd=[],zd=[],Bd=[],Vd=Math.min,Hd=Math.max,Ud=Math.cos,Wd=Math.sin,Gd=Math.abs,Kd=Math.PI,qd=Kd*2,Jd=typeof Float32Array<`u`,Yd=[];function Xd(e){return Math.round(e/Kd*1e8)/1e8%2*Kd}function Zd(e,t){var n=Xd(e[0]);n<0&&(n+=qd);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=qd?i=n+qd:t&&n-i>=qd?i=n-qd:!t&&n>i?i=n+(qd-Xd(n-i)):t&&n<i&&(i=n-(qd-Xd(i-n))),e[0]=n,e[1]=i}var Qd=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,n){n||=0,n>0&&(this._ux=Gd(n/xs/e)||0,this._uy=Gd(n/xs/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(Pd.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Gd(e-this._xi),r=Gd(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Pd.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Pd.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Pd.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Yd[0]=r,Yd[1]=i,Zd(Yd,a),r=Yd[0],i=Yd[1];var o=i-r;return this.addData(Pd.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Ud(i)*n+e,this._yi=Wd(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Pd.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Pd.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Jd&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Jd&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Jd&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ld[0]=Ld[1]=zd[0]=zd[1]=Number.MAX_VALUE,Rd[0]=Rd[1]=Bd[0]=Bd[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Pd.M:t=r=e[a++],n=i=e[a++],zd[0]=r,zd[1]=i,Bd[0]=r,Bd[1]=i;break;case Pd.L:Od(t,n,e[a],e[a+1],zd,Bd),t=e[a++],n=e[a++];break;case Pd.C:jd(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],zd,Bd),t=e[a++],n=e[a++];break;case Pd.Q:Md(t,n,e[a++],e[a++],e[a],e[a+1],zd,Bd),t=e[a++],n=e[a++];break;case Pd.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Ud(f)*u+c,i=Wd(f)*d+l),Nd(c,l,u,d,f,p,m,zd,Bd),t=Ud(p)*u+c,n=Wd(p)*d+l;break;case Pd.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Od(r,i,r+h,i+g,zd,Bd);break;case Pd.Z:t=r,n=i;break}xr(Ld,Ld,zd),Sr(Rd,Rd,Bd)}return a===0&&(Ld[0]=Ld[1]=Rd[0]=Rd[1]=0),new Y(Ld[0],Ld[1],Rd[0]-Ld[0],Rd[1]-Ld[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Pd.M:i=o=e[d++],a=s=e[d++];break;case Pd.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Gd(_)>n||Gd(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Pd.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Ca(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Pd.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Aa(i,a,y,b,h,g,10),i=h,a=g;break;case Pd.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Ud(D)*T+C,s=Wd(D)*E+w),m=Hd(T,E)*Vd(qd,Math.abs(O)),i=Ud(k)*T+C,a=Wd(k)*E+w;break;case Pd.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Pd.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Pd.L&&v>0&&(e.lineTo(y,b),v=0),S){case Pd.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Pd.L:u=n[x++],d=n[x++];var w=Gd(u-c),T=Gd(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Pd.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],te=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;xa(c,k,j,M,D,Fd),xa(l,A,ee,te,D,Id),e.bezierCurveTo(Fd[1],Id[1],Fd[2],Id[2],Fd[3],Id[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,te),c=M,l=te;break;case Pd.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Oa(c,k,j,D,Fd),Oa(l,A,ee,D,Id),e.quadraticCurveTo(Fd[1],Id[1],Fd[2],Id[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Pd.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=Gd(ie-ae)>.001,fe=oe+se,pe=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,pe=!0),h+=E}if(de&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,fe,le):e.arc(ne,re,ue,oe,fe,le),pe)break lo;C&&(o=Ud(oe)*ie+ne,s=Wd(oe)*ae+re),c=Ud(fe)*ie+ne,l=Wd(fe)*ae+re;break;case Pd.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var me=n[x++],he=n[x++];if(f){var E=p[g++];if(h+E>_){var ge=_-h;e.moveTo(u,d),e.lineTo(u+Vd(ge,me),d),ge-=me,ge>0&&e.lineTo(u+me,d+Vd(ge,he)),ge-=he,ge>0&&e.lineTo(u+Hd(me-ge,0),d+he),ge-=me,ge>0&&e.lineTo(u,d+Hd(he-ge,0));break lo}h+=E}e.rect(u,d,me,he);break;case Pd.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Pd,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function $d(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function ef(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Sa(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function tf(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:ka(e,t,n,r,i,a,s,c,null)<=l/2}var nf=Math.PI*2;function rf(e){return e%=nf,e<0&&(e+=nf),e}var af=Math.PI*2;function of(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%af<1e-4)return!0;if(a){var d=r;r=rf(i),i=rf(d)}else r=rf(r),i=rf(i);r>i&&(i+=af);var f=Math.atan2(c,s);return f<0&&(f+=af),f>=r&&f<=i||f+af>=r&&f+af<=i}function sf(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var cf=Qd.CMD,lf=Math.PI*2,uf=1e-4;function df(e,t){return Math.abs(e-t)<uf}var ff=[-1,-1,-1],pf=[-1,-1];function mf(){var e=pf[0];pf[0]=pf[1],pf[1]=e}function hf(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=ya(t,r,a,s,l,ff);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=ff[h],_=g===0||g===1?.5:1;_a(e,n,i,o,g)<c||(f<0&&(f=ba(t,r,a,s,pf),pf[1]<pf[0]&&f>1&&mf(),p=_a(t,r,a,s,pf[0]),f>1&&(m=_a(t,r,a,s,pf[1]))),f===2?g<pf[0]?d+=p<t?_:-_:g<pf[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<pf[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function gf(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Ea(t,r,a,s,ff);if(c===0)return 0;var l=Da(t,r,a);if(l>=0&&l<=1){for(var u=0,d=wa(t,r,a,l),f=0;f<c;f++){var p=ff[f]===0||ff[f]===1?.5:1,m=wa(e,n,i,ff[f]);m<o||(ff[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=ff[0]===0||ff[0]===1?.5:1,m=wa(e,n,i,ff[0]);return m<o?0:a<t?p:-p}}function _f(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);ff[0]=-c,ff[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=lf-1e-4){r=0,i=lf;var u=a?1:-1;return o>=ff[0]+e&&o<=ff[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=lf,i+=lf);for(var f=0,p=0;p<2;p++){var m=ff[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=lf+h),(h>=r&&h<=i||h+lf>=r&&h+lf<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function vf(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===cf.M&&m>1&&(n||(s+=sf(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case cf.M:u=a[m++],d=a[m++],c=u,l=d;break;case cf.L:if(n){if($d(c,l,a[m],a[m+1],t,r,i))return!0}else s+=sf(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case cf.C:if(n){if(ef(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=hf(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case cf.Q:if(n){if(tf(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=gf(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case cf.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=sf(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(of(_,v,b,x,x+S,C,t,w,i))return!0}else s+=_f(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case cf.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if($d(u,d,f,d,t,r,i)||$d(f,d,f,p,t,r,i)||$d(f,p,u,p,t,r,i)||$d(u,p,u,d,t,r,i))return!0}else s+=sf(f,d,f,p,r,i),s+=sf(u,p,u,d,r,i);break;case cf.Z:if(n){if($d(c,l,u,d,t,r,i))return!0}else s+=sf(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!df(l,d)&&(s+=sf(c,l,u,d,r,i)||0),s!==0}function yf(e,t,n){return vf(e,0,!1,t,n)}function bf(e,t,n,r){return vf(e,t,!0,n,r)}var xf=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},dd),Sf={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fd.style)},Cf=Fs.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),wf=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Cf.length;++s)i[Cf[s]]=this[Cf[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=En(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?I(this.style,o):this.useStyle(o):a===`shape`?I(this.shape,o):e.prototype.attrKV.call(this,a,o)}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 e=this.style.fill;if(e!==`none`){if(U(e)){var t=ao(e,0);return t>.5?Cs:t>.2?nee:ws}else if(e)return ws}return Cs},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(U(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==ao(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Qd(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),bf(a,o/s,e,t)))return!0}if(this.hasFill())return yf(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Qn(xf,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=I({},this.shape);for(var l={},u=En(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Sf},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){rr(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return F(e.style)},n.prototype.getDefaultShape=function(){return F(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(hd),Tf=L({strokeFirst:!0,font:qt,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},xf),Ef=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return ld(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Qn(Tf,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=sd(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(hd);Ef.prototype.type=`tspan`;var Df=L({x:0,y:0},dd),Of={style:L({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fd.style)};function kf(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Af=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Qn(Df,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=kf(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Of},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(hd);Af.prototype.type=`image`;function jf(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Mf=Math.round;function Nf(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Mf(r*2)===Mf(i*2)&&(e.x1=e.x2=Ff(r,s,!0)),Mf(a*2)===Mf(o*2)&&(e.y1=e.y2=Ff(a,s,!0)),e):e}}function Pf(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Ff(r,s,!0),e.y=Ff(i,s,!0),e.width=Math.max(Ff(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ff(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Ff(e,t,n){if(!t)return e;var r=Mf(e*2);return(r+Mf(t))%2==0?r/2:(r+(n?1:-1))/2}var If=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Lf={},Rf=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new If},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Pf(Lf,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?jf(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(wf);Rf.prototype.type=`rect`;var zf={fill:`#000`},Bf=2,Vf={},Hf={style:L({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},fd.style)},Uf=function(e){rr(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=zf,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];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 t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},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,Xf(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);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 e=new Y(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||zf},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return I(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=En(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},I(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Hf},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;rd(Vf,r.overflowRect,i,a,o,s),i=Vf.baseX,a=Vf.baseY;var c=iee(tp(e),e,Vf.outerWidth,Vf.outerHeight),l=np(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=qs(a,c.contentHeight,s);if(l||n){var _=Ks(i,f,o),v=qs(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=ep(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=$f(`fill`in e?e.fill:(x=!0,r.fill)),C=Qf(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Bf,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Ef),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Jf(D,e),g+=m,E.setBoundingRect(cd(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;rd(Vf,t.overflowRect,i,a,n,r),i=Vf.baseX,a=Vf.baseY;var o=Zu(tp(e),e,Vf.outerWidth,Vf.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Ks(i,c,n),f=qs(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;np(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&np(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ep(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Ef),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=$f(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Qf(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Bf,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=zn(s.opacity,t.opacity,1),Jf(p,s),y&&(p.lineWidth=zn(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(cd(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Rf),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Af),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=G(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=zn(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Yf(e)&&(t=[e.fontStyle,e.fontWeight,qf(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Un(t)||e.textFont||e.font},t}(hd),Wf={left:!0,right:1,center:1},Gf={top:1,bottom:1,middle:1},Kf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function qf(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Jf(e,t){for(var n=0;n<Kf.length;n++){var r=Kf[n],i=t[r];i!=null&&(e[r]=i)}}function Yf(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Xf(e){return Zf(e),R(e.rich,Zf),e}function Zf(e){if(e){e.font=Uf.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Wf[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Gf[n]?n:`top`,e.padding&&=Vn(e.padding)}}function Qf(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function $f(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function ep(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function tp(e){var t=e.text;return t!=null&&(t+=``),t}function np(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var rp=Ul(),ip=function(e,t,n,r){if(r){var i=rp(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=rp(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},ap=`series`,op=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),sp=`original`,cp=`arrayRows`,lp=`objectRows`,up=`keyedColumns`,dp=`typedArray`,fp=`unknown`,pp=`column`,mp=`Roam`,hp=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],gp=function(){function e(e){R(hp,function(t){this[t]=B(e[t],e)},this)}return e}();function _p(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var vp=1,yp={},bp=Ul(),xp=Ul(),Sp=[`emphasis`,`blur`,`select`],Cp=[`normal`,`emphasis`,`blur`,`select`],wp=`highlight`,Tp=`downplay`,Ep=`select`,Dp=`unselect`,Op=`toggleSelect`,kp=`selectchanged`;function Ap(e){return e!=null&&e!==`none`}function jp(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Mp(e){jp(e,`emphasis`,2)}function Np(e){e.hoverState===2&&jp(e,`normal`,0)}function Pp(e){jp(e,`blur`,1)}function Fp(e){e.hoverState===1&&jp(e,`normal`,0)}function Ip(e){e.selected=!0}function Lp(e){e.selected=!1}function Rp(e,t,n){t(e,n)}function zp(e,t,n){Rp(e,t,n),e.isGroup&&e.traverse(function(e){Rp(e,t,n)})}function Bp(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Vp(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Hp(e,t,n,r){var i=n&&yn(n,`select`)>=0,a=!1;if(e instanceof wf){var o=bp(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Ap(s)||Ap(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!Ap(l.fill)&&Ap(s)?(a=!0,r=I({},r),l=I({},l),l.fill=so(s)):!Ap(l.stroke)&&Ap(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=so(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Up(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Wp(e,t,n){var r=yn(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Vp(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Gp(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Hp(this,e,t,n);if(e===`blur`)return Wp(this,e,n);if(e===`select`)return Up(this,e,n)}return n}function Kp(e){e.stateProxy=Gp;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Gp),n&&(n.stateProxy=Gp)}function qp(e,t){!tm(e,t)&&!e.__highByOuter&&zp(e,Mp)}function Jp(e,t){!tm(e,t)&&!e.__highByOuter&&zp(e,Np)}function Yp(e,t){e.__highByOuter|=1<<(t||0),zp(e,Mp)}function Xp(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&zp(e,Np)}function Zp(e){zp(e,Pp)}function Qp(e){zp(e,Fp)}function $p(e){zp(e,Ip)}function em(e){zp(e,Lp)}function tm(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function nm(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=xp(i),o=_p(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Fp(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function rm(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Qp(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Pp(e)}),Sn(t))a(e.getData(),t);else if(W(t))for(var u=En(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),xp(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function im(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){xp(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Pp(e)})}}}function am(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Hl(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=rp(o);rm(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&rm(r,u,d,n)}}}function om(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(rp(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function sm(e,t,n){var r=rp(e),i=om(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&im(r.componentMainType,r.componentIndex,n),R(a,function(e){return qp(e,t)})):(rm(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&im(r.componentMainType,r.componentIndex,n),qp(e,t))}function cm(e,t,n){nm(n);var r=rp(e),i=om(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?R(i,function(e){return Jp(e,t)}):Jp(e,t)}function lm(e,t,n){if(Cm(t)){var r=t.dataType,i=Hl(e.getData(r),t);V(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function um(e){R(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?$p(t):em(t)})})}function dm(e){var t=[];return e.eachSeries(function(e){R(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function fm(e,t,n){ym(e,!0),zp(e,Kp),hm(e,t,n)}function pm(e){ym(e,!1)}function mm(e,t,n,r){r?pm(e):fm(e,t,n)}function hm(e,t,n){var r=rp(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var gm=[`emphasis`,`blur`,`select`],_m={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function vm(e,t,n,r){n||=`itemStyle`;for(var i=0;i<gm.length;i++){var a=gm[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[_m[n]]()}}function ym(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function bm(e){return!!(e&&e.__highDownDispatcher)}function xm(e,t,n){var r=rp(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Sm(e){var t=yp[e];return t==null&&vp<=32&&(t=yp[e]=vp++),t}function Cm(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function wm(e){var t=e.type;return t===`highlight`||t===`downplay`}function Tm(e){var t=bp(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Em=Qd.CMD,Dm=[[],[],[]],Om=Math.sqrt,km=Math.atan2;function Am(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Em.M,d=Em.C,f=Em.L,p=Em.R,m=Em.A,h=Em.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Om(t[0]*t[0]+t[1]*t[1]),y=Om(t[2]*t[2]+t[3]*t[3]),b=km(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],br(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],br(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Dm[c];x[0]=n[o++],x[1]=n[o++],br(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var jm=Math.sqrt,Mm=Math.sin,Nm=Math.cos,Pm=Math.PI;function Fm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Im(e,t){return(e[0]*t[0]+e[1]*t[1])/(Fm(e)*Fm(t))}function Lm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Im(e,t))}function Rm(e,t,n,r,i,a,o,s,c,l,u){var d=Pm/180*c,f=Nm(d)*(e-n)/2+Mm(d)*(t-r)/2,p=-1*Mm(d)*(e-n)/2+Nm(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=jm(m),s*=jm(m));var h=(i===a?-1:1)*jm((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Nm(d)*g-Mm(d)*_,y=(t+r)/2+Mm(d)*g+Nm(d)*_,b=Lm([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Lm(x,S);if(Im(x,S)<=-1&&(C=Pm),Im(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Pm*1e6)/1e6;C=Pm*2+w%2*Pm}u.addData(l,v,y,o,s,b,C,d,a)}var zm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Bm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vm(e){var t=new Qd;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Qd.CMD,c=e.match(zm);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Bm)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Rm(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Rm(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Hm=function(e){rr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(wf);function Um(e){return e.setData!=null}function Wm(e,t){var n=Vm(e),r=I({},t);return r.buildPath=function(e){var t=Um(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Am(n,e),this.dirtyShape()},r}function Gm(e,t){return new Hm(Wm(e,t))}function Km(e,t){var n=Wm(e,t);return function(e){rr(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Hm)}function qm(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new wf(t);return o.createPathProxy(),o.buildPath=function(e){if(Um(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function Jm(e,t){t||={};var n=new wf;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Am(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Ym=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Xm=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ym},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(wf);Xm.prototype.type=`circle`;var Zm=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Qm=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Zm},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(wf);Qm.prototype.type=`ellipse`;var $m=Math.PI,eh=$m*2,th=Math.sin,nh=Math.cos,rh=Math.acos,ih=Math.atan2,ah=Math.abs,oh=Math.sqrt,sh=Math.max,ch=Math.min,lh=1e-4;function uh(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<lh))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function dh(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/oh(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*oh(sh(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function fh(e){var t;if(V(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function ph(e,t){var n,r=sh(t.r,0),i=sh(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=ah(c-s),p=f>eh&&f%eh;if(p>lh&&(f=p),!(r>lh))e.moveTo(l,u);else if(f>eh-lh)e.moveTo(l+r*nh(s),u+r*th(s)),e.arc(l,u,r,s,c,!d),i>lh&&(e.moveTo(l+i*nh(c),u+i*th(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*nh(s),j=r*th(s),ee=i*nh(c),M=i*th(c),te=f>lh;if(te){var ne=t.cornerRadius;ne&&(n=fh(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=ah(r-i)/2;if(v=ch(re,g),y=ch(re,_),b=ch(re,m),x=ch(re,h),w=S=sh(v,y),T=C=sh(b,x),(S>lh||C>lh)&&(E=r*nh(c),D=r*th(c),O=i*nh(s),k=i*th(s),f<$m)){var ie=uh(A,j,O,k,E,D,ee,M);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/th(rh((ae*se+oe*ce)/(oh(ae*ae+oe*oe)*oh(se*se+ce*ce)))/2),ue=oh(ie[0]*ie[0]+ie[1]*ie[1]);w=ch(S,(r-ue)/(le+1)),T=ch(C,(i-ue)/(le-1))}}}if(!te)e.moveTo(l+A,u+j);else if(w>lh){var de=ch(g,w),fe=ch(_,w),pe=dh(O,k,A,j,r,de,d),me=dh(E,D,ee,M,r,fe,d);e.moveTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),w<S&&de===fe?e.arc(l+pe.cx,u+pe.cy,w,ih(pe.y0,pe.x0),ih(me.y0,me.x0),!d):(de>0&&e.arc(l+pe.cx,u+pe.cy,de,ih(pe.y0,pe.x0),ih(pe.y1,pe.x1),!d),e.arc(l,u,r,ih(pe.cy+pe.y1,pe.cx+pe.x1),ih(me.cy+me.y1,me.cx+me.x1),!d),fe>0&&e.arc(l+me.cx,u+me.cy,fe,ih(me.y1,me.x1),ih(me.y0,me.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>lh)||!te)e.lineTo(l+ee,u+M);else if(T>lh){var de=ch(m,T),fe=ch(h,T),pe=dh(ee,M,E,D,i,-fe,d),me=dh(A,j,O,k,i,-de,d);e.lineTo(l+pe.cx+pe.x0,u+pe.cy+pe.y0),T<C&&de===fe?e.arc(l+pe.cx,u+pe.cy,T,ih(pe.y0,pe.x0),ih(me.y0,me.x0),!d):(fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,ih(pe.y0,pe.x0),ih(pe.y1,pe.x1),!d),e.arc(l,u,i,ih(pe.cy+pe.y1,pe.cx+pe.x1),ih(me.cy+me.y1,me.cx+me.x1),d),de>0&&e.arc(l+me.cx,u+me.cy,de,ih(me.y1,me.x1),ih(me.y0,me.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var mh=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}(),hh=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new mh},t.prototype.buildPath=function(e,t){ph(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(wf);hh.prototype.type=`sector`;var gh=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),_h=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new gh},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(wf);_h.prototype.type=`ring`;function vh(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)xr(u,u,e[f]),Sr(d,d,e[f]);xr(u,u,r[0]),Sr(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(or(e[f]));continue}else c=e[f-1],l=e[f+1];ur(a,l,c),pr(a,a,t);var h=hr(m,c),g=hr(m,l),_=h+g;_!==0&&(h/=_,g/=_),pr(o,a,-h),pr(s,a,g);var v=cr([],m,o),y=cr([],m,s);r&&(Sr(v,v,u),xr(v,v,d),Sr(y,y,u),xr(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function yh(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=vh(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var bh=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),xh=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bh},t.prototype.buildPath=function(e,t){yh(e,t,!0)},t}(wf);xh.prototype.type=`polygon`;var Sh=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Ch=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Sh},t.prototype.buildPath=function(e,t){yh(e,t,!1)},t}(wf);Ch.prototype.type=`polyline`;var wh={},Th=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Eh=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Th},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Nf(wh,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(wf);Eh.prototype.type=`line`;var Dh=[],aee=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 Oh(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?va:_a)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?va:_a)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Ta:wa)(e.x1,e.cpx1,e.x2,t),(n?Ta:wa)(e.y1,e.cpy1,e.y2,t)]}var kh=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new aee},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Oa(n,o,i,u,Dh),o=Dh[1],i=Dh[2],Oa(r,s,a,u,Dh),s=Dh[1],a=Dh[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(xa(n,o,c,i,u,Dh),o=Dh[1],c=Dh[2],i=Dh[3],xa(r,s,l,a,u,Dh),s=Dh[1],l=Dh[2],a=Dh[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Oh(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Oh(this.shape,e,!0);return mr(t,t)},t}(wf);kh.prototype.type=`bezier-curve`;var Ah=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}(),jh=function(e){rr(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ah},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(wf);jh.prototype.type=`arc`;var Mh=function(e){rr(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),wf.prototype.getBoundingRect.call(this)},t}(wf),Nh=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ph=function(e){rr(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Nh),Fh=function(e){rr(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Nh),Ih=Math.min,Lh=Math.max,Rh=Math.abs,zh=[0,0],Bh=[0,0],Vh=Ni(),Hh=Vh.minTv,Uh=Vh.maxTv,Wh=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new J;for(var n=0;n<2;n++)this._axes[n]=new J;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);J.sub(r[0],n[1],n[0]),J.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&J.set(t,0,0),Vh.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Vh.negativeSize&&J.copy(t,r?Vh.useDir?Vh.dirMinTv:Hh:Uh),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,zh),e._getProjMinMaxOnAxis(a,t._corners,Bh),Vh.negativeSize||zh[1]<Bh[0]||zh[0]>Bh[1]){if(i=!1,Vh.negativeSize||n)return i;var s=Rh(Bh[0]-zh[1]),c=Rh(zh[0]-Bh[1]);Ih(s,c)>Uh.len()&&(s<c?J.scale(Uh,o,-s*r):J.scale(Uh,o,c*r))}else if(!n){var s=Rh(Bh[0]-zh[1]),c=Rh(zh[0]-Bh[1]);(Vh.useDir||Ih(s,c)<Hh.len())&&((s<c||!Vh.bidirectional)&&(J.scale(Hh,o,s*r),Vh.useDir&&Vh.calcDirMTV()),(s>=c||!Vh.bidirectional)&&(J.scale(Hh,o,-c*r),Vh.useDir&&Vh.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Ih(l,o),s=Lh(l,s)}n[0]=o+Vh.touchThreshold,n[1]=s-Vh.touchThreshold,Vh.negativeSize=n[1]<n[0]},e}(),Gh=[],Kh=function(e){rr(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},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(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Y(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Gh)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(hd),qh=Ul();function Jh(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=G(r.duration,200),u=G(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),H(d)&&(d=d(n,i)),H(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function Yh(e,t,n,r,i,a,o){var s=!1,c;H(i)?(o=a,a=i,i=null):W(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Jh(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Xh(e,t,n,r,i,a){Yh(`update`,e,t,n,r,i,a)}function Zh(e,t,n,r,i,a){Yh(`enter`,e,t,n,r,i,a)}function Qh(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function $h(e,t,n,r,i,a){Qh(e)||Yh(`leave`,e,t,n,r,i,a)}function eg(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),$h(e,{style:{opacity:0}},t,n,r)}function tg(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||eg(e,t,n,r)}):eg(e,t,n,r)}function ng(e){qh(e).oldStyle=e.style}function rg(e){return qh(e).oldStyle}var ig=t({Arc:()=>jh,BezierCurve:()=>kh,BoundingRect:()=>Y,Circle:()=>Xm,CompoundPath:()=>Mh,Ellipse:()=>Qm,Group:()=>X,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Af,IncrementalDisplayable:()=>Kh,Line:()=>Eh,LinearGradient:()=>Ph,OrientedBoundingRect:()=>Wh,Path:()=>wf,Point:()=>J,Polygon:()=>xh,Polyline:()=>Ch,RadialGradient:()=>Fh,Rect:()=>Rf,Ring:()=>_h,Sector:()=>hh,Text:()=>Uf,WH:()=>sg,XY:()=>og,applyTransform:()=>Sg,calcZ2Range:()=>Gg,clipPointsByRect:()=>Dg,clipRectByRect:()=>Og,createIcon:()=>kg,decomposeTransform:()=>Yg,ensureCopyRect:()=>Hg,ensureCopyTransform:()=>Ug,expandOrShrinkRect:()=>Pg,extendPath:()=>ug,extendShape:()=>cg,getCurrentCanvasPainter:()=>Zg,getShapeClass:()=>fg,getTransform:()=>xg,groupTransition:()=>Eg,initProps:()=>Zh,isBoundingRectAxisAligned:()=>Bg,isElementRemoved:()=>Qh,lineLineIntersect:()=>jg,linePolygonIntersect:()=>Ag,makeImage:()=>mg,makePath:()=>pg,mergePath:()=>gg,payloadDisableAnimation:()=>Jg,registerShape:()=>dg,removeElement:()=>$h,removeElementWithFadeOut:()=>tg,resizePath:()=>_g,retrieveZInfo:()=>Wg,setTooltipConfig:()=>Lg,subPixelOptimize:()=>bg,subPixelOptimizeLine:()=>vg,subPixelOptimizeRect:()=>yg,transformDirection:()=>Cg,traverseElements:()=>zg,traverseUpdateZ:()=>Kg,updateProps:()=>Xh}),ag={},og=[`x`,`y`],sg=[`width`,`height`];function cg(e){return wf.extend(e)}var lg=Km;function ug(e,t){return lg(e,t)}function dg(e,t){ag[e]=t}function fg(e){if(ag.hasOwnProperty(e))return ag[e]}function pg(e,t,n,r){var i=Gm(e,t);return n&&(r===`center`&&(n=hg(n,i.getBoundingRect())),_g(i,n)),i}function mg(e,t,n){var r=new Af({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(hg(t,i))}}});return r}function hg(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var gg=qm;function _g(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function vg(e,t){return Nf(e,e,{lineWidth:t}),e}function yg(e,t){return Pf(e,e,t),e}var bg=Ff;function xg(e,t){for(var n=ni([]);e&&e!==t;)ii(n,e.getLocalTransform(),n),e=e.parent;return n}function Sg(e,t,n){return t&&!Sn(t)&&(t=Ms.getLocalTransform(t)),n&&(t=ci([],t)),br([],e,t)}function Cg(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:kc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:kc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Sg(a,t,n),kc(a[0])>kc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function wg(e){return!e.isGroup}function Tg(e){return e.shape!=null}function Eg(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){wg(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Tg(e)&&(t.shape=F(e.shape)),t}var a=r(e);t.traverse(function(e){if(wg(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Xh(e,r,n,rp(e).dataIndex)}}})}function Dg(e,t){return z(e,function(e){var n=e[0];n=Oc(n,t.x),n=Dc(n,t.x+t.width);var r=e[1];return r=Oc(r,t.y),r=Dc(r,t.y+t.height),[n,r]})}function Og(e,t){var n=Oc(e.x,t.x),r=Dc(e.x+e.width,t.x+t.width),i=Oc(e.y,t.y),a=Dc(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function kg(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Af(r)):pg(e.replace(`path://`,``),r,n,`center`)}function Ag(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(jg(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function jg(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Mg(u,d,c,l);if(Ng(f))return!1;var p=e-i,m=t-a,h=Mg(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Mg(p,m,u,d)/f;return!(g<0||g>1)}function Mg(e,t,n,r){return e*r-n*t}function Ng(e){return e<=1e-6&&e>=-1e-6}function Pg(e,t,n,r,i){return t==null?e:(An(t)?Fg[0]=Fg[1]=Fg[2]=Fg[3]=t:(Fg[0]=t[0],Fg[1]=t[1],Fg[2]=t[2],Fg[3]=t[3]),r&&(Fg[0]=Oc(0,Fg[0]),Fg[1]=Oc(0,Fg[1]),Fg[2]=Oc(0,Fg[2]),Fg[3]=Oc(0,Fg[3])),n&&(Fg[0]=-Fg[0],Fg[1]=-Fg[1],Fg[2]=-Fg[2],Fg[3]=-Fg[3]),Ig(e,Fg,`x`,`width`,3,1,i&&i[0]||0),Ig(e,Fg,`y`,`height`,0,2,i&&i[1]||0),e)}var Fg=[0,0,0,0];function Ig(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Oc(0,Dc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:kc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Lg(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=U(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(En(c),function(e){q(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=rp(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Rg(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function zg(e,t){if(e)if(V(e))for(var n=0;n<e.length;n++)Rg(e[n],t);else Rg(e,t)}function Bg(e){return!e||kc(e[1])<Vg&&kc(e[2])<Vg||kc(e[0])<Vg&&kc(e[3])<Vg}var Vg=1e-5;function Hg(e,t){return e?Y.copy(e,t):t.clone()}function Ug(e,t){return t?ri(e||ti(),t):void 0}function Wg(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Gg(e){var t=-1/0,n=1/0;Rg(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Kg(e,t,n){qg(e,t,n,-1/0)}function qg(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Oc(qg(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Oc(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Jg(e){return e.animation={duration:0},e}function Yg(e,t){return t?ri(Xg.transform,t):ni(Xg.transform),Xg.decomposeTransform(),Is(e,Xg),e}var Xg=new Ms;Xg.transform=ti();function Zg(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}dg(`circle`,Xm),dg(`ellipse`,Qm),dg(`sector`,hh),dg(`ring`,_h),dg(`polygon`,xh),dg(`polyline`,Ch),dg(`rect`,Rf),dg(`line`,Eh),dg(`bezierCurve`,kh),dg(`arc`,jh);var Qg={};function $g(e,t){for(var n=0;n<Sp.length;n++){var r=Sp[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function e_(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=H(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Sp.length;l++){var u=Sp[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function t_(e,t,n,r){n||=Qg;for(var i=e instanceof Uf,a=!1,o=0;o<Cp.length;o++){var s=t[Cp[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Uf,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=e_(n,t),u=t.normal,d=!!u.getShallow(`show`),f=r_(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(i_(u,n,!1));for(var o=0;o<Sp.length;o++){var p=Sp[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=r_(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=i_(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(f_(c).setLabelText=function(e){var r=e_(n,t,e);$g(c,r)})}else c&&(c.ignore=!0);e.dirty()}function n_(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Sp.length;r++){var i=Sp[r];n[i]=e.getModel([i,t])}return n}function r_(e,t,n,r,i){var a={};return a_(a,e,n,r,i),t&&I(a,t),a}function i_(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function a_(e,t,n,r,i){n||=Qg;var a=t.ecModel,o=a&&a.option.textStyle,s=o_(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);u_(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=An(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=h_.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Vn(_),h.__marginType=h_.textMargin)}u_(e,t,o,null,null,n,r,i,!0,!1)}function o_(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Qg).rich;if(n){t||={};for(var r=En(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var s_=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],c_=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],l_=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function u_(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Qg;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<s_.length;_++){var v=s_[_],y=i!==!1&&r?zn(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<c_.length;_++){var v=c_[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<l_.length;_++){var v=l_[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function d_(e,t){var n=t&&t.getModel(`textStyle`);return Un([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var f_=Ul();function p_(e,t,n,r){if(e){var i=f_(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function m_(e,t,n,r,i){var a=f_(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=tu(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,$g(e,e_({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Zh:Xh)(e,{percent:1},r,t,null,l)}var h_={minMargin:1,textMargin:2},g_=[`textStyle`,`color`],__=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],v_=new Uf,y_=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(g_):null)},e.prototype.getFont=function(){return d_({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<__.length;n++)t[__[n]]=this.getShallow(__[n]);return v_.useStyle(t),v_.update(),v_.getBoundingRect()},e}(),b_=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],x_=Fu(b_),S_=function(){function e(){}return e.prototype.getLineStyle=function(e){return x_(this,e)},e}(),C_=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],w_=Fu(C_),T_=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return w_(this,e,t)},e}(),E_=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){gn(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(F(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Gt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Du(E_),ju(E_),xn(E_,S_),xn(E_,T_),xn(E_,Lu),xn(E_,y_);var D_=Math.round(Math.random()*10);function O_(e){return[e||``,D_++].join(`_`)}function k_(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=wu(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=wu(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function A_(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(R(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),R(u.successor,d?p:f)}R(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return R(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),R(c,function(e){yn(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);yn(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return R(e,function(e){yn(t,e)>=0&&n.push(e)}),n}}function j_(e,t){return gn(gn({},e,!0),t,!0)}var M_={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`,`Friday`,`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`,custom:`Custom chart`,chart:`Chart`}},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:`. `}}}},N_={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:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},P_=`ZH`,F_=`EN`,I_=F_,L_={},R_={},z_=Gt.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||I_).toUpperCase().indexOf(P_)>-1?P_:I_}():I_;function B_(e,t){e=e.toUpperCase(),R_[e]=new E_(t),L_[e]=t}function V_(e){if(U(e)){var t=L_[e.toUpperCase()]||{};return e===P_||e===F_?F(t):gn(F(t),F(L_[I_]),!1)}else return gn(F(e),F(L_[I_]),!1)}function H_(e){return R_[e]}function U_(){return R_[I_]}B_(F_,M_),B_(P_,N_);var W_=null;function G_(e){W_||=e}function K_(){return W_}function q_(e,t){var n=K_(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function J_(e){var t=e.brk;return t?t.breaks:[]}function Y_(e){var t=e.brk;return t?t.hasBreaks():!1}var X_=1e3,Z_=X_*60,Q_=Z_*60,$_=Q_*24,ev=$_*365,tv={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},nv={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},rv=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,iv=`{yyyy}-{MM}-{dd}`,av={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:iv,hour:iv+` `+nv.hour,minute:iv+` `+nv.minute,second:iv+` `+nv.second,millisecond:rv},ov=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],sv=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function cv(e){return!U(e)&&!H(e)?lv(e):e}function lv(e){e||={};var t={},n=!0;return R(ov,function(t){n&&=e[t]==null}),R(ov,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=ov[s],l=W(a)&&!V(a)?a[c]:a,u=void 0;V(l)?(u=l.slice(),o=u[0]||``):U(l)?(o=l,u=[o]):(o==null?o=nv[r]:tv[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function uv(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function dv(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 fv(e){return e===dv(e)}function pv(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function mv(e,t,n,r){var i=el(e),a=i[vv(n)](),o=i[yv(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[bv(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[xv(n)](),d=(u-1)%12+1,f=i[Sv(n)](),p=i[Cv(n)](),m=i[wv(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof E_?r:H_(r||z_)||U_()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,uv(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,uv(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,uv(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,uv(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,uv(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,uv(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,uv(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,uv(m,3)).replace(/{S}/g,m+``)}function hv(e,t,n,r,i){var a=null;if(U(n))a=n;else if(H(n)){var o={time:e.time,level:e.time?e.time.level:0},s=K_();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=gv(e.value,i);a=n[u][u][0]}}return mv(new Date(e.value),a,i,r)}function gv(e,t){var n=el(e),r=n[yv(t)]()+1,i=n[bv(t)](),a=n[xv(t)](),o=n[Sv(t)](),s=n[Cv(t)](),c=n[wv(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function _v(e,t,n){switch(t){case`year`:e[Ev(n)](0);case`month`:e[Dv(n)](1);case`day`:e[Ov(n)](0);case`hour`:e[kv(n)](0);case`minute`:e[Av(n)](0);case`second`:e[jv(n)](0)}return e}function vv(e){return e?`getUTCFullYear`:`getFullYear`}function yv(e){return e?`getUTCMonth`:`getMonth`}function bv(e){return e?`getUTCDate`:`getDate`}function xv(e){return e?`getUTCHours`:`getHours`}function Sv(e){return e?`getUTCMinutes`:`getMinutes`}function Cv(e){return e?`getUTCSeconds`:`getSeconds`}function wv(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Tv(e){return e?`setUTCFullYear`:`setFullYear`}function Ev(e){return e?`setUTCMonth`:`setMonth`}function Dv(e){return e?`setUTCDate`:`setDate`}function Ov(e){return e?`setUTCHours`:`setHours`}function kv(e){return e?`setUTCMinutes`:`setMinutes`}function Av(e){return e?`setUTCSeconds`:`setSeconds`}function jv(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Mv(e){if(!sl(e))return U(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Nv(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Pv=Vn;function Fv(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Un(e)?e:`-`}function a(e){return dl(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?el(e):e;if(!isNaN(+c))return mv(c,r,n);if(s)return`-`}if(t===`ordinal`)return kn(e)?i(e):An(e)&&a(e)?e+``:`-`;var l=ol(e);return a(l)?Mv(l):kn(e)?i(e):typeof e==`boolean`?e+``:`-`}var Iv=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Lv=function(e,t){return`{`+e+(t??``)+`}`};function Rv(e,t,n){V(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Iv[a];e=e.replace(Lv(o),Lv(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Lv(Iv[c],s),n?Rr(l):l)}return e}function zv(e,t,n){return R(t,function(t,r){e=e.replace(`{`+r+`}`,n?Rr(t):t)}),e}function Bv(e,t){var n=U(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Rr(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Rr(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Vv(e,t){return t||=`transparent`,U(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Hv(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Uv={},Wv={},Gv=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Uv,!0),this._normalMasterList=n(Wv,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Uv[e]=t;return}Wv[e]=t},e.get=function(e){return Wv[e]||Uv[e]},e}();function Kv(e){return!!Uv[e]}function qv(e){Jv.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Jv=K();function Yv(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Jv.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Xv(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Kv(n)&&(i=0))}return{coordSysType:n,kind:i}}function Zv(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Xv(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var Qv=function(e,t){var n=t.getReferringComponents(e,ql).models[0];return n&&n.coordinateSystem},$v=R,ey=[`left`,`right`,`top`,`bottom`,`width`,`height`],ty=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function ny(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var ry=ny;On(ny,`vertical`),On(ny,`horizontal`);function iy(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function ay(e,t){var n=uy(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===ly.point)a=n.refPoint,i=sy(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=V(o)?o:[o,o];i=sy(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[Z(s[0],i.width)+i.x,Z(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function oy(e,t){var n=ay(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);V(a)||(a=[0,a]);var o=Z(r.width,t.getWidth()),s=Z(r.height,t.getHeight()),c=Math.min(o,s),l=Z(a[0],c/2),u=Z(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function sy(e,t,n){n=Pv(n||0);var r=t.width,i=t.height,a=Z(e.left,r),o=Z(e.top,i),s=Z(e.right,r),c=Z(e.bottom,i),l=Z(e.width,r),u=Z(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Y((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function cy(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i<n&&c?(s.width=t.height*n,a===`left`?s.left=0:a===`right`?s.right=0:s.left=`center`):(s.height=t.width/n,o===`top`?s.top=0:o===`bottom`?s.bottom=0:s.top=`middle`),sy(s,t)}var ly={rect:1,point:2};function uy(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Yv(e),l=c.coord,u=c.from;if(o.dataToLayout){a=ly.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ly.point,s=u,i=o.dataToPoint(l))}return a??=ly.rect,a===ly.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function dy(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Y(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=sy(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function fy(e,t){return e[ty[t][0]]!=null||e[ty[t][1]]!=null&&e[ty[t][2]]!=null}function py(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function my(e,t,n){var r=n&&n.ignoreSize;!V(r)&&(r=[r,r]);var i=o(ty[0],0),a=o(ty[1],1);c(ty[0],e,i),c(ty[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if($v(n,function(t){c[t]=e[t]}),$v(n,function(e){q(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!q(a,f)&&q(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){$v(e,function(e){t[e]=n[e]})}}function hy(e){return gy({},e)}function gy(e,t){return t&&e&&$v(ey,function(n){q(t,n)&&(e[n]=t[n])}),e}var _y=Ul(),vy=function(e){P(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=O_(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=py(this),r=n?hy(e):{};gn(e,t.getTheme().get(this.mainType)),gn(e,this.getDefaultOption()),n&&my(e,r,n)},t.prototype.mergeOption=function(e,t){gn(this.option,e,!0);var n=py(this);n&&my(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Eu(e))return e.defaultOption;var t=_y(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=gn(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Yl(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return iy(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(E_);ku(vy,E_),Pu(vy),k_(vy),A_(vy,yy);function yy(e){var t=[];return R(vy.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return wu(e).main}),e!==`dataset`&&yn(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},by=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var xy in I(by,{primary:by.neutral80,secondary:by.neutral70,tertiary:by.neutral60,quaternary:by.neutral50,disabled:by.neutral20,border:by.neutral30,borderTint:by.neutral20,borderShade:by.neutral40,background:by.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:by.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:by.neutral70,axisLineTint:by.neutral40,axisTick:by.neutral70,axisTickMinor:by.neutral60,axisLabel:by.neutral70,axisSplitLine:by.neutral15,axisMinorSplitLine:by.neutral05}),by)if(by.hasOwnProperty(xy)){var Sy=by[xy];xy===`theme`?Q.darkColor.theme=by.theme.slice():xy===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:xy.indexOf(`accent`)===0?Q.darkColor[xy]=no(Sy,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[xy]=no(Sy,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Cy=``;typeof navigator<`u`&&(Cy=navigator.platform||``);var wy=`rgba(0, 0, 0, 0.2)`,Ty=Q.color.theme[0],Ey=no(Ty,null,null,.9),Dy={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[Ey,Ty],aria:{decal:{decals:[{color:wy,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wy,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wy,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wy,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wy,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wy,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Cy.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},Oy={Must:1,Might:2,Not:3},ky=Ul();function Ay(e){ky(e).datasetMap=K()}function jy(e,t,n){var r={},i=Ny(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=ky(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),R(e,function(t,n){var i=W(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});R(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function My(e,t,n){var r={};if(!Ny(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&R(a,function(e,t){(W(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Iy(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Oy.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Oy.Not)&&(e.n=c),f(e)&&s[e.n]!==Oy.Not)return e;d||(u===Oy.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Ny(e){if(!e.get(`data`,!0))return Yl(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},ql).models[0]}function Py(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Yl(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},ql).models}function Fy(e,t){return Iy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Iy(e,t,n,r,i,a){var o,s=5;if(Mn(e))return Oy.Not;var c,l;if(r){var u=r[a];W(u)?(c=u.name,l=u.type):U(u)&&(c=u)}if(l!=null)return l===`ordinal`?Oy.Must:Oy.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Oy.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Oy.Not;var f=_[c];if(!f||Mn(f))return Oy.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=wl(g);if(!V(y))return Oy.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=U(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Oy.Might:Oy.Not;if(t&&e!==`-`)return Oy.Must}return Oy.Not}var Ly=K();function Ry(e,t){Hn(Ly.get(e)==null&&t),Ly.set(e,t)}function zy(e,t,n){var r=Ly.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var By=Ul(),Vy=Ul(),Hy=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=xl(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Gy(this,By,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Ky(this,By)},e}();function Uy(e,t,n,r){return Gy(e,Vy,xl(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function Wy(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Gy(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Wy(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Ky(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var qy,Jy,Yy,Xy=`\0_ec_inner`,Zy=1,Qy=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new E_(r),this._locale=new E_(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=rb(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,rb(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Yy(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&R(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=K(),s=t&&t.replaceMergeMainTypeMap;Ay(this),R(e,function(e,t){e!=null&&(vy.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?F(e):gn(n[t],e,!0))}),s&&s.each(function(e,t){vy.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),vy.topologicalTravel(a,vy.getAllClassMainTypes(),c,this);function c(t){var a=zy(this,t,xl(e[t])),o=r.get(t),c=El(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);zl(c,t,vy),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;R(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=vy.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=I({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),I(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&qy(this)}this._seriesIndices||qy(this)},t.prototype.getOption=function(){var e=F(this.option);return R(e,function(t,n){if(vy.hasClass(n)){for(var r=xl(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Ll(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Xy],e},t.prototype.setTheme=function(e){this._theme=new E_(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?wn(a,function(e){return!!e}):tb(`name`,i,a):tb(`id`,r,a):(o=[],R(xl(n),function(e){a[e]&&o.push(a[e])})),nb(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(nb(r?this.queryComponents(r):wn(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?wn(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(H(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=U(e)?r.get(e):W(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=Fl(e,null);return wn(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return wn(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return wn(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Jy(this),R(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){R(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Jy(this),R(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return R(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Jy(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Jy(this);var n=[];R(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){qy(this);var t=this._componentsMap,n=[];t.each(function(e,t){vy.hasClass(t)&&n.push(t)}),vy.topologicalTravel(n,vy.getAllClassMainTypes(),function(n){R(t.get(n),function(t){t&&(n!==`series`||!$y(t,e))&&t.restoreData()})})},t.internalField=function(){qy=function(e){var t=e._seriesIndices=[];R(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},Jy=function(e){},Yy=function(e,t){e.option={},e.option[Xy]=Zy,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;W(n)&&n.enabled==null&&(n.enabled=!0),eb(t,e._theme.option),gn(t,Dy,!1),e._mergeOption(t,null)}}(),t}(E_);function $y(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function eb(e,t){var n=e.color&&!e.colorLayer;R(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||vy.hasClass(r)||(typeof t==`object`?e[r]=e[r]?gn(e[r],t,!1):F(t):e[r]??(e[r]=t))})}function tb(e,t,n){if(V(t)){var r=K();return R(t,function(e){e!=null&&Fl(e,null)!=null&&r.set(e,!0)}),wn(n,function(t){return t&&r.get(t[e])})}else{var i=Fl(t,null);return wn(n,function(t){return t&&i!=null&&t[e]===i})}}function nb(e,t){return t.hasOwnProperty(`subType`)?wn(e,function(e){return e&&e.subType===t.subType}):e}function rb(e){var t=K();return e&&R(xl(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}xn(Qy,Hy);var ib=/^(min|max)?(.+)$/,ab=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(R(xl(e.series),function(e){e&&e.data&&Mn(e.data)&&Gn(e.data)}),R(xl(e.dataset),function(e){e&&e.source&&Mn(e.source)&&Gn(e.source)})),e=F(e);var r=this._optionBackup,i=ob(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],F(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=F(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)sb(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!lb(a,this._currentMediaIndices)&&(o=z(a,function(e){return F(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function ob(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&V(l)&&R(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),R(c,function(e){return f(e)}),R(r,function(e){return f(e.option)});function f(e){R(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function sb(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return R(e,function(e,t){var n=t.match(ib);if(!(!n||!n[1]||!n[2])){var a=n[1];cb(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function cb(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function lb(e,t){return e.join(`,`)===t.join(`,`)}var ub=R,db=W,fb=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function pb(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=fb.length;n<r;n++){var i=fb[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?gn(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?gn(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function mb(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,L(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function hb(e){mb(e,`itemStyle`),mb(e,`lineStyle`),mb(e,`areaStyle`),mb(e,`label`),mb(e,`labelLine`),mb(e,`upperLabel`),mb(e,`edgeLabel`)}function gb(e,t){var n=db(e)&&e[t],r=db(n)&&n.textStyle;if(r)for(var i=0,a=Cl.length;i<a;i++){var o=Cl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function _b(e){e&&(hb(e),gb(e,`label`),e.emphasis&&gb(e.emphasis,`label`))}function vb(e){if(db(e)){pb(e),hb(e),gb(e,`label`),gb(e,`upperLabel`),gb(e,`edgeLabel`),e.emphasis&&(gb(e.emphasis,`label`),gb(e.emphasis,`upperLabel`),gb(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(pb(t),_b(t));var n=e.markLine;n&&(pb(n),_b(n));var r=e.markArea;r&&_b(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!Mn(a))for(var o=0;o<a.length;o++)_b(a[o]);R(e.categories,function(e){hb(e)})}if(i&&!Mn(i))for(var o=0;o<i.length;o++)_b(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)_b(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)V(c[o])?(_b(c[o][0]),_b(c[o][1])):_b(c[o]);e.type===`gauge`?(gb(e,`axisLabel`),gb(e,`title`),gb(e,`detail`)):e.type===`treemap`?(mb(e.breadcrumb,`itemStyle`),R(e.levels,function(e){hb(e)})):e.type===`tree`&&hb(e.leaves)}}function yb(e){return V(e)?e:e?[e]:[]}function bb(e){return(V(e)?e[0]:e)||{}}function xb(e,t){ub(yb(e.series),function(e){db(e)&&vb(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),ub(n,function(t){ub(yb(e[t]),function(e){e&&(gb(e,`axisLabel`),gb(e.axisPointer,`label`))})}),ub(yb(e.parallel),function(e){var t=e&&e.parallelAxisDefault;gb(t,`axisLabel`),gb(t&&t.axisPointer,`label`)}),ub(yb(e.calendar),function(e){mb(e,`itemStyle`),gb(e,`dayLabel`),gb(e,`monthLabel`),gb(e,`yearLabel`)}),ub(yb(e.radar),function(e){gb(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),ub(yb(e.geo),function(e){db(e)&&(_b(e),ub(yb(e.regions),function(e){_b(e)}))}),ub(yb(e.timeline),function(e){_b(e),mb(e,`label`),mb(e,`itemStyle`),mb(e,`controlStyle`,!0);var t=e.data;V(t)&&R(t,function(e){W(e)&&(mb(e,`label`),mb(e,`itemStyle`))})}),ub(yb(e.toolbox),function(e){mb(e,`iconStyle`),ub(e.feature,function(e){mb(e,`iconStyle`)})}),gb(bb(e.axisPointer),`label`),gb(bb(e.tooltip).axisPointer,`label`)}function Sb(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Cb(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function wb(e){e&&R(Tb,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Tb=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Eb=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Db=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Ob(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Db.length;n++){var r=Db[n][1],i=Db[n][0];t[r]!=null&&(t[i]=t[r])}}function kb(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Ab(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function jb(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Mb(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Mb(e[n].children,t)}function Nb(e,t){xb(e,t),e.series=xl(e.series),R(e.series,function(e){if(W(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),kb(e.label);var n=e.data;if(n&&!Mn(n))for(var r=0;r<n.length;r++)kb(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Sb(e,`pointer.color`);i!=null&&Cb(e,`itemStyle.color`,i)}else if(t===`bar`){Ob(e),Ob(e.backgroundStyle),Ob(e.emphasis);var n=e.data;if(n&&!Mn(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Ob(n[r]),Ob(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Ab(e),Mb(e.data,Ab)}else t===`graph`||t===`sankey`?jb(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&L(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),wb(e)}}),e.dataRange&&(e.visualMap=e.dataRange),R(Eb,function(t){var n=e[t];n&&(V(n)||(n=[n]),R(n,function(e){wb(e)}))})}var Pb=bu(Fb);function Fb(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),R(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),Ib(e))})}function Ib(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Yc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Lb=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Fy(this,n)===Oy.Must&&(r.type=`ordinal`)}}return e}();function Rb(e){return e instanceof Lb}function zb(e,t,n){n||=Hb(e);var r=t.seriesLayoutBy,i=Ub(e,n,r,t.sourceHeader,t.dimensions);return new Lb({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:F(t)})}function Bb(e){return new Lb({data:e,sourceFormat:Mn(e)?dp:sp})}function Vb(e){return new Lb({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:F(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Hb(e){var t=fp;if(Mn(e))t=dp;else if(V(e)){e.length===0&&(t=cp);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(V(i)||Mn(i)){t=cp;break}else if(W(i)){t=lp;break}}}}else if(W(e)){for(var a in e)if(q(e,a)&&Sn(e[a])){t=up;break}}return t}function Ub(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Gb(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Kb(function(e){e!=null&&e!==`-`&&(U(e)?o??=1:o=0)},n,s,10):o=An(r)?r:+!!r,!i&&o===1&&(i=[],Kb(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Wb(e);else if(t===`keyedColumns`)i||(i=[],R(e,function(e,t){i.push(t)}));else if(t===`original`){var c=wl(e[0]);a=V(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Gb(i),dimensionsDetectedCount:a}}function Wb(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return En(n)}function Gb(e){if(e){var t=K();return z(e,function(e,n){e=W(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Kb(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function qb(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Jb,Yb,Xb,Zb,Qb,$b,ex=function(){function e(e,t){var n=Rb(e)?e:Bb(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),$b(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;$b=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Qb[dx(o,s)];I(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=B(ix(o,s),null,i,c,l),e.count=B(sx(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Qb=(e={},e[cp+`_`+pp]={pure:!0,appendData:i},e[cp+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[lp]={pure:!0,appendData:i},e[up]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[sp]={appendData:i},e[dp]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),tx=function(e){V(e)||gl(`series.data or dataset.source must be an array.`)};Jb={},Jb[cp+`_`+pp]=tx,Jb[cp+`_row`]=tx,Jb[lp]=tx,Jb[up]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??gl(`dimension name must not be null/undefined.`)},Jb[sp]=tx;var nx=function(e,t,n,r){return e[r]},rx=(Yb={},Yb[cp+`_`+pp]=function(e,t,n,r){return e[r+t]},Yb[cp+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Yb[lp]=nx,Yb[up]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Yb[sp]=nx,Yb);function ix(e,t){return rx[dx(e,t)]}var ax=function(e,t,n){return e.length},ox=(Xb={},Xb[cp+`_`+pp]=function(e,t,n){return Math.max(0,e.length-t)},Xb[cp+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Xb[lp]=ax,Xb[up]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Xb[sp]=ax,Xb);function sx(e,t){return ox[dx(e,t)]}var cx=function(e,t,n){return e[t]},lx=(Zb={},Zb[cp]=cx,Zb[lp]=function(e,t,n){return e[n]},Zb[up]=cx,Zb[sp]=function(e,t,n){var r=wl(e);return r instanceof Array?r[t]:r},Zb[dp]=cx,Zb);function ux(e){return lx[e]}function dx(e,t){return e===`arrayRows`?e+`_`+t:e}function fx(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return ux(a)(r,o,s)}else{var c=r;return a===`original`&&(c=wl(r)),c}}}}var px=/\{@(.+?)\}/g,mx=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&V(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),H(i))return s.status=t,s.dimensionIndex=r,i(s);if(U(i))return Rv(i,s).replace(px,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=fx(o,e,i);if(a&&V(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return fx(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function hx(e){var t,n;return W(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function gx(e){return new _x(e)}var _x=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(V(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){vx.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:vx.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),vx=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function yx(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!An(e)&&e!=null&&e!==`-`&&(e=+el(e)),e==null||e===``?NaN:Number(e))}var bx=K({number:function(e){return parseFloat(e)},time:function(e){return+el(e)},trim:function(e){return U(e)?Un(e):e}});function xx(e){return bx.get(e)}var Sx={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}},Cx=function(){function e(e,t){An(t)||_l(``),this._opFn=Sx[e],this._rvalFloat=ol(t)}return e.prototype.evaluate=function(e){return An(e)?this._opFn(e,this._rvalFloat):this._opFn(ol(e),this._rvalFloat)},e}(),Tx=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=An(e)?e:ol(e),r=An(t)?t:ol(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=U(e),s=U(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Ex=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ol(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ol(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Dx(e,t){return e===`eq`||e===`ne`?new Ex(e===`eq`,t):q(Sx,e)?new Cx(e,t):null}function Ox(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function kx(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Ax=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return yx(e,t)},e}();function jx(e,t){var n=new Ax,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&_l(``);var o=[],s={},c=e.dimensionsDefine;if(c)R(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(q(s,n)&&_l(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=ix(i,pp);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=B(Mx,null,e)),n.cloneRawData=B(Nx,null,e),n.count=B(sx(i,pp),null,r,a,o);var d=ux(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=B(Px,null,o,s),n.cloneAllDimensionInfo=B(Fx,null,o),n}function Mx(e){var t=e.sourceFormat;return Bx(t)||_l(``),e.data}function Nx(e){var t=e.sourceFormat,n=e.data;if(Bx(t)||_l(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(I({},n[i]));return r}}function Px(e,t,n){if(n!=null){if(An(n)||!isNaN(n)&&!q(t,n))return e[n];if(q(t,n))return t[n]}}function Fx(e){return F(e)}var Ix=K();function Lx(e){e=F(e);var t=e.type,n=``;t||_l(n);var r=t.split(`:`);r.length!==2&&_l(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Ix.set(t,e)}function Rx(e,t,n){var r=xl(e),i=r.length;i||_l(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=zx(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function zx(e,t,n,r){var i=``;t.length||_l(i),W(e)||_l(i);var a=e.type,o=Ix.get(a);o||_l(i);var s=z(t,function(e){return jx(e,o)});return z(xl(o.transform({upstream:s[0],upstreamList:s,config:F(e.config)})),function(e,n){var r=``;W(e)||_l(r),e.data||_l(r),Bx(Hb(e.data))||_l(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:pp,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:pp,sourceHeader:0,dimensions:e.dimensions};return zb(e.data,i,null)})}function Bx(e){return e===`arrayRows`||e===`objectRows`}var Vx=typeof Uint32Array>`u`?Array:Uint32Array,Hx=typeof Uint16Array>`u`?Array:Uint16Array,Ux=typeof Int32Array>`u`?Array:Int32Array,Wx=typeof Float64Array>`u`?Array:Float64Array,Gx={float:Wx,int:Ux,ordinal:Array,number:Array,time:Wx},Kx;function qx(e){return e>65535?Vx:Hx}function oee(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Jx(e,t,n,r,i){var a=Gx[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Yx=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Kx[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],qb(r),this._dimensions=z(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Gx[t||`float`](this._rawCount),this._rawExtent[i]=iu(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=iu());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Jx(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Kx.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=iu()),Jx(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),Wc(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=qx(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(qx(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=En(e),i=r.length;if(!i)return this;var a=t.count(),o=new(qx(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=iu();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(qx(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(qx(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=iu(),d=new(qx(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=iu();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Ox(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||kx(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&Cn(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?oee(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=F(this._extent),e._rawExtent=F(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return yx(e[r],this._dimensions[r])}Kx={arrayRows:e,objectRows:function(e,t,n,r){return yx(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return yx(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Xx=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Qx(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=Mn(o)?dp:sp,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[zb(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[zb(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&$x(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&$x(``),a.push(t),o.push(e._getVersionSign())}),n?i=Rx(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Vb(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Qx(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Yx,o.initData(new ex(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Qx(e)){var t=Ny(e);return t?[t.getSourceManager()]:[]}else return z(Py(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Qx(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Zx(e){e.option.transform&&Gn(e.option.transform)}function Qx(e){return e.mainType===`series`}function $x(e){throw Error(e)}var eS=`line-height:1`;function tS(e){var t=e.lineHeight;return t==null?eS:`line-height:`+Rr(t+``)+`px`}function nS(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Rr(r+``)+`px;color:`+Rr(n)+`;font-weight:`+Rr(i+``),valueStyle:`font-size:`+Rr(o+``)+`px;color:`+Rr(a)+`;font-weight:`+Rr(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var rS=[0,10,20,30],iS=[``,`
28
+ `,`
29
+
30
+ `,`
31
+
32
+
33
+ `];function aS(e,t){return t.type=e,t}function oS(e){return e.type===`section`}function sS(e){return oS(e)?lS:uS}function cS(e){if(oS(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=cS(e);n>=t&&(t=n+ +(r&&(!n||oS(e)&&!e.noHeader)))}),t}return 0}function lS(e,t,n,r){var i=t.noHeader,a=fS(cS(t)),o=[],s=t.blocks||[];Hn(!s||V(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(q(l,c)){var u=new Tx(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=sS(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):pS(r,o.join(``),i?n:a.html);if(i)return d;var f=Fv(t.header,`ordinal`,e.useUTC),p=nS(r,e.renderMode).nameStyle,m=tS(r);return e.renderMode===`richText`?gS(e,f,p)+a.richText+d:pS(r,`<div style="`+p+`;`+m+`;">`+Rr(f)+`</div>`+d,n)}function uS(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=V(e)?e:[e],z(e,function(e,t){return Fv(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Fv(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=nS(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:gS(e,f,v))+(o?``:_S(e,m,h,g,y)):pS(r,(s?``:d)+(a?``:mS(f,!s,v))+(o?``:hS(m,h,g,y)),n)}}function dS(e,t,n,r,i,a){if(e)return sS(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function fS(e){return{html:rS[e],richText:iS[e]}}function pS(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=tS(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function mS(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Rr(e)+`</span>`}function hS(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+z(e,function(e){return Rr(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function gS(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _S(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(` `):t,a)}function vS(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Vv(n)}function yS(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var bS=function(){function e(){this.richTextStyles={},this._nextStyleNameId=cl()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Bv({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?R(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function xS(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=V(s),l=vS(t,n),u,d,f,p;if(o>1||c&&!o){var m=SS(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=fx(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Il(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return aS(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[aS(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Un(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function SS(e,t,n,r,i){var a=t.getData(),o=Cn(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(fx(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(aS(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var CS=Ul();function wS(e,t){return e.getName(t)||e.getId(t)}var TS=`__universalTransitionEnabled`,ES=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=gx({count:kS,reset:AS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(CS(this).sourceManager=new Xx(this)).prepareSource();var r=this.getInitialData(e,n);MS(r,this),this.dataTask.context.data=r,CS(this).dataBeforeProcessed=r,DS(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=py(this),r=n?hy(e):{},i=this.subType;vy.hasClass(i)&&(i+=`Series`),gn(e,t.getTheme().get(this.subType)),gn(e,this.getDefaultOption()),Sl(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&my(e,r,n)},t.prototype.mergeOption=function(e,t){e=gn(this.option,e,!0),this.fillDataTextStyle(e.data);var n=py(this);n&&my(this.option,e,n);var r=CS(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);MS(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,CS(this).dataBeforeProcessed=i,DS(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Mn(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Sl(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=PS(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return CS(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=PS(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}CS(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return CS(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return CS(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return xS({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Gt.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Hy.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=wS(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=En(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[wS(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=wS(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=wS(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return vy.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(vy);xn(ES,mx),xn(ES,Hy),ku(ES,vy);function DS(e){var t=e.name;Il(e)||(e.name=OS(e)||t)}function OS(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function kS(e){return e.model.getRawData().count()}function AS(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),jS}function jS(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function MS(e,t){R(Zn(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,On(NS,t))})}function NS(e,t){var n=PS(e);return n&&n.setOutputEnd((t||this).count()),t}function PS(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var FS=function(){function e(){this.group=new X,this.uid=O_(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Du(FS),Pu(FS);function IS(){var e=Ul();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var LS=Ul(),RS=IS(),zS=function(){function e(){this.group=new X,this.uid=O_(`viewChart`),this.renderTask=gx({plan:HS,reset:US}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&VS(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&VS(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){zg(this.group,e)},e.markUpdateMethod=function(e,t){LS(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function BS(e,t,n){e&&bm(e)&&(t===`emphasis`?Yp:Xp)(e,n)}function VS(e,t,n){var r=Hl(e,t),i=t&&t.highlightKey!=null?Sm(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){BS(e,n,i)}):R(xl(r),function(t){BS(e.getItemGraphicEl(t),n,i)})}Du(zS,[`dispose`]),Pu(zS);function HS(e){return RS(e.model)}function US(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&LS(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),WS[c]}var WS={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)}}},GS=`\0__throttleOriginMethod`,KS=`\0__throttleRate`,qS=`\0__throttleType`;function JS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function YS(e,t,n,r){var i=e[t];if(i){var a=i[GS]||i,o=i[qS];if(i[KS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=JS(a,n,r===`debounce`),i[GS]=a,i[qS]=r,i[KS]=n}return i}}function XS(e,t){var n=e[t];n&&n[GS]&&(n.clear&&n.clear(),e[t]=n[GS])}var ZS=Ul(),QS={itemStyle:Fu(C_,!0),lineStyle:Fu(b_,!0)},$S={lineStyle:`stroke`,itemStyle:`fill`};function eC(e,t){return e.visualStyleMapper||QS[t]||(console.warn(`Unknown style type '`+t+`'.`),QS.itemStyle)}function tC(e,t){return e.visualDrawType||$S[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var nC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=eC(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=tC(e,r),c=a[s],l=H(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},rC=new E_,iC={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=eC(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){rC.option=n[r];var o=i(rC);I(e.ensureUniqueItemVisual(t,`style`),o),rC.option.decal&&(e.setItemVisual(t,`decal`,rC.option.decal),rC.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},aC={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();ZS(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=ZS(e).scope,a=tC(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},oC=Math.PI;function sC(e,t){t||={},L(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new X,r=new Rf({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Uf({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Rf({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new jh({shape:{startAngle:-oC/2,endAngle:-oC/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:oC*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:oC*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var cC=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):vu(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Hn(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=K(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||gx({plan:pC,reset:mC,count:_C}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||gx({reset:lC});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Hn(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,gx({reset:uC,onDirty:fC})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:vC(e)}),e.uid=O_(`stageHandler`),t&&(e.visualType=t),e},e}();function lC(e){e.overallReset(e.ecModel,e.api,e.payload)}function uC(e){return e.dirtyOnOverallProgress&&dC}function dC(){this.agent.dirty(),this.getDownstream().dirty()}function fC(){this.agent&&this.agent.dirty()}function pC(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function mC(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=xl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return gC(t)}):hC}var hC=gC(0);function gC(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function _C(e){return e.data.count()}function vC(e){xC=null;try{e(yC,bC)}catch{}return xC}var yC={},bC={},xC;SC(yC,Qy),SC(bC,gp),yC.eachSeriesByType=yC.eachRawSeriesByType=function(e){xC=e},yC.eachComponent=function(e){e.mainType===`series`&&e.subType&&(xC=e.subType)};function SC(e,t){for(var n in t.prototype)e[n]=er}var $=Q.darkColor,CC=$.background,wC=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},TC={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},EC={darkMode:!0,color:$.theme,backgroundColor:CC,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:CC,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:TC,y:TC,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:wC(),logAxis:wC(),valueAxis:wC(),categoryAxis:wC(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=wC();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};EC.categoryAxis.splitLine.show=!1;var DC=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=wu(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};R(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),OC=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],kC=OC.concat([`symbolKeepAspect`]),AC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<OC.length;o++){var s=OC[o],c=e.get(s);H(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(I({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=En(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},jC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<kC.length;r++){var i=kC[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function MC(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function NC(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function PC(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function FC(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}R([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=I({},t),i.dispatchAction(I(t,{type:e[1],seriesIndex:n(r,t)}))})})}function IC(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Hl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:I({},r)})}})}function LC(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(IC(`map`,`selectchanged`,t,r,e),IC(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(IC(`map`,`selected`,t,r,e),IC(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(IC(`map`,`unselected`,t,r,e),IC(`pie`,`unselected`,t,r,e))})}function RC(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var zC=new Tr,BC={};function VC(e,t){BC[e]=t}function HC(e){return BC[e]}var UC={};function WC(e,t){UC[e]=t}function GC(e){return UC[e]}var KC=Ul();function qC(e){KC(e).prepare={}}function JC(e){KC(e).fullUpdate={}}function YC(e){return KC(e).prepare}function XC(e){return KC(e).fullUpdate}var ZC=Math.round(Math.random()*9),QC=typeof Object.defineProperty==`function`,$C=function(){function e(){this._id=`__ec_inner_`+ZC++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return QC?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),ew=wf.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),tw={line:Eh,rect:Rf,roundRect:Rf,square:Rf,circle:Xm,diamond:wf.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:wf.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:wf.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:ew},nw={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},rw={};R(tw,function(e,t){rw[t]=new e});var iw=wf.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Xs(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=rw[r];i||=(r=`rect`,rw[r]),nw[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function aw(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function ow(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?mg(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?pg(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new iw({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=aw,a&&c.setColor(a),c}function sw(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function cw(e,t){if(e!=null)return V(e)||(e=[e,e]),[Z(e[0],t[0])||0,Z(G(e[1],e[0]),t[1])||0]}function lw(e){return isFinite(e)}function uw(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=lw(r)?r:0,i=lw(i)?i:1,a=lw(a)?a:0,o=lw(o)?o:0,e.createLinearGradient(r,a,i,o)}function dw(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=lw(o)?o:.5,s=lw(s)?s:.5,c=c>=0&&lw(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function fw(e,t,n){for(var r=t.type===`radial`?dw(e,t,n):uw(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function pw(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function mw(e){return parseInt(e,10)}function hw(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||mw(s[r])||mw(e.style[r]))-(mw(s[a])||0)-(mw(s[o])||0)||0}function gw(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:An(e)?[e]:V(e)?e:null}function _w(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&gw(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var vw=new Qd(!0);function yw(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function bw(e){return typeof e==`string`&&e!==`none`}function xw(e){var t=e.fill;return t!=null&&t!==`none`}function Sw(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Cw(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function ww(e,t,n){var r=Bu(t.image,t.__image,n);if(Hu(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*tr),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Tw(e,t,n,r,i){var a,o=yw(n),s=xw(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||vw,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?fw(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?fw(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?ww(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?ww(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=_w(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&Cw(e,n),s&&Sw(e,n)):(s&&Sw(e,n),o&&Cw(e,n)),T&&e.setLineDash([])}function Ew(e,t,n){var r=t.__image=Bu(n.image,t.__image,t,t.onload);if(!(!r||!Hu(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Dw(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=_w(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(yw(n)&&e.strokeText(i,n.x,n.y),xw(n)&&e.fillText(i,n.x,n.y)):(xw(n)&&e.fillText(i,n.x,n.y),yw(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Ow=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],kw=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Aw(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Bw(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?dd.opacity:o}(r||t.blend!==n.blend)&&(a||=(Bw(e,i),!0),e.globalCompositeOperation=t.blend||dd.blend);for(var s=0;s<Ow.length;s++){var c=Ow[s];(r||t[c]!==n[c])&&(a||=(Bw(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Bw(e,i),!0),e.shadowColor=t.shadowColor||dd.shadowColor),a}function jw(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Aw(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Bw(e,i),!0),bw(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Bw(e,i),!0),bw(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Bw(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Bw(e,i),!0),e.lineWidth=c)}for(var l=0;l<kw.length;l++){var u=kw[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Bw(e,i),!0),e[d]=a[d]||u[1])}return s}function see(e,t,n,r,i){return Aw(e,t.style,n&&n.style,r,i)}function Mw(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Nw(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Mw(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Pw(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 Fw=1,Iw=2,Lw=3,Rw=4;function zw(e){var t=xw(e),n=yw(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Bw(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Vw(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Hw(e,t,n),Uw(e,n)}function Hw(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||pw(i,a))&&(a&&(Bw(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Bw(e,n),e.save(),Nw(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof wf&&t.autoBatch&&zw(o);s||Pw(r,l.transform)?(Bw(e,n),Mw(e,t)):u||Bw(e,n),t instanceof wf?(n.lastDrawType!==Fw&&(c=!0,n.lastDrawType=Fw),jw(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Tw(e,t,o,u,n)):t instanceof Ef?(n.lastDrawType!==Lw&&(c=!0,n.lastDrawType=Lw),jw(e,t,l,c,n),Dw(e,t,o)):t instanceof Af?(n.lastDrawType!==Iw&&(c=!0,n.lastDrawType=Iw),see(e,t,l,c,n),Ew(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Rw&&(c=!0,n.lastDrawType=Rw),Ww(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Bw(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Uw(e,t){Bw(e,t),t.prevElClipPaths&&e.restore()}function Ww(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Hw(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Uw(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Hw(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Uw(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Gw=new $C,Kw=new Ia(100),qw=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Jw(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Gw.delete(e);var a=Gw.get(e);if(a)return a;var o=L(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 c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Gw.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<qw.length;++s){var c=o[qw[s]];if(c!=null&&!V(c)&&!U(c)&&!An(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Kw.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Xw(o.dashArrayX),f=Zw(o.dashArrayY),p=Yw(o.symbol),m=Qw(d),h=$w(f),g=!i&&$t.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&Kw.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=ul(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=ul(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=ow(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Vw(y,u)}}}}function Yw(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return Yw([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Xw(e){if(!e||e.length===0)return[[0,0]];if(An(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!An(e[r])){n=!1;break}if(n)return Xw([e]);for(var i=[],r=0;r<e.length;++r)if(An(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=z(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Zw(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(An(e)){var t=Math.ceil(e);return[t,t]}var n=z(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Qw(e){return z(e,function(e){return $w(e)})}function $w(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var eT=bu(tT);function tT(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Jw(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Jw(i,t)}}})}var nT=1,rT=800,iT=900,aT=920,oT=1e3,sT=2e3,cT=5e3,lT=1e3,uT=1100,dT=2e3,fT=3e3,pT=4e3,mT=4500,hT=4600,gT=5e3,_T=6e3,vT=7e3,yT={PROCESSOR:{SERIES_FILTER:rT,AXIS_STATISTICS:aT,FILTER:oT,STATISTIC:cT,STATISTICS:cT},VISUAL:{LAYOUT:lT,PROGRESSIVE_LAYOUT:uT,GLOBAL:dT,CHART:fT,POST_CHART_LAYOUT:hT,COMPONENT:pT,BRUSH:gT,CHART_ITEM:mT,ARIA:_T,DECAL:vT}},bT=`__flagInMainProcess`,xT=`__mainProcessVersion`,ST=`__pendingUpdate`,CT=`__needsUpdateStatus`,wT=/^[a-zA-Z0-9_]+$/,TT=`__connectUpdateStatus`,ET=0,DT=1,OT=2;function kT(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return jT(this,e,t)}}function AT(e){return function(){var t=[...arguments];return jT(this,e,t)}}function jT(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Tr.prototype[t].apply(e,n)}var MT=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Tr),NT=MT.prototype;NT.on=AT(`on`),NT.off=AT(`off`);var PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T=function(e){P(t,e);function t(t,n,r){var i=e.call(this,new DC)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[xT]=1,r.ssr&&Cc(function(e){var t=rp(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=yc(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=JS(B(c.flush,c),17),i._updateTheme(n),i._locale=V_(r.locale||z_),i._coordSysMgr=new Gv;var l=i._api=JT(i);function u(e,t){return e.__prio-t.__prio}return ea(sE,u),ea(aE,u),i._scheduler=new cC(i,l,aE,sE),i._messageCenter=new MT,i._initEvents(),i.resize=B(i.resize,i),c.animation.on(`frame`,i._onframe,i),UT(c,i),WT(c,i),Gn(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(ZT(this),this[ST]){var r=this[ST].silent;this[bT]=!0,QT(this);try{PT(this),LT.update.call(this,null,this[ST].updateParams)}catch(e){throw this[bT]=!1,this[ST]=null,e}this._zr.flush(),this[bT]=!1,this[ST]=null,VT.call(this,r),HT.call(this,r)}else if(e.unfinished){var i=nT;do{e.unfinished=!1;var a=$t.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),zT(this,t),e.performVisualTasks(t),qT(this,this._model,n,`remain`,{}),i-=$t.getTime()-a}while(i>0&&e.unfinished);e.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(e,t,n){if(!this[bT]){if(this._disposed){this.id;return}var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[bT]=!0,QT(this),!this._model||t){var o=new ab(this._api),s=this._theme,c=this._model=new Qy;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},oE);var l={seriesTransition:a,optionChanged:!0};if(n)this[ST]={silent:r,updateParams:l},this[bT]=!1,this.getZr().wakeUp();else{try{PT(this),LT.update.call(this,null,l)}catch(e){throw this[ST]=null,this[bT]=!1,e}this._ssr||this._zr.flush(),this[ST]=null,this[bT]=!1,VT.call(this,r),HT.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[bT]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[ST]&&(r??=this[ST].silent,i=this[ST].updateParams,this[ST]=null),this[bT]=!0,QT(this);try{this._updateTheme(e),n.setTheme(this._theme),PT(this),LT.update.call(this,{type:`setTheme`},i)}catch(e){throw this[bT]=!1,e}this[bT]=!1,VT.call(this,r),HT.call(this,r)}}},t.prototype._updateTheme=function(e){U(e)&&(e=cE[e]),e&&(e=F(e),e&&Nb(e,!0),this._theme=e)},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||Gt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(dE[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(uE,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(F(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=$t.createCanvas(),h=yc(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new Rf({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Af({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return RT(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return RT(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return RT(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Gl(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Gl(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?NC(i,t):MC(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(tE,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&RC(i,function(e){var t=rp(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(iE,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),LC(t,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,this.getDom()&&Zl(this.getDom(),pE,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete uE[e.id]},t.prototype.resize=function(e){if(!this[bT]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[ST]&&(r??=this[ST].silent,n=!0,this[ST]=null),this[bT]=!0,QT(this);try{n&&PT(this),LT.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[bT]=!1,e}this[bT]=!1,VT.call(this,r),HT.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(W(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),lE[e]){var n=lE[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=rE[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(W(t)||(t={silent:!!t}),nE[e.type]&&this._model){if(this[bT]){this._pendingActions.push(e);return}var n=t.silent;BT.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Gt.browser.weChat&&this._throttledZrFlush(),VT.call(this,n),HT.call(this,n)}},t.prototype.updateLabelLayout=function(){zC.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){PT=function(e){qC(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),FT(e,!0),FT(e,!1),t.plan()},FT=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=wu(e.type);u=new(t?FS.getClass(d.main,d.sub):zS.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},IT=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){R([].concat(e._componentsViews,e._chartsViews),l);return}var o=Xl(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),R(xl(s),function(e){var t=Fl(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(wm(n))if(t instanceof ES)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&am(t,n,e._api);else{var r=om(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&im(t.mainType,t.componentIndex,e._api),a&&R(a,function(e){n.type===`highlight`?Yp(e):Xp(e)})}else Cm(n)&&t instanceof ES&&(lm(t,n,e._api),um(t),XT(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},LT={prepareAndUpdate:function(e){PT(this),LT.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){JC(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),zC.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),zT(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),GT(this,r,i,e,n),zC.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),qT(t,n,r,e,{},a),zC.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),zS.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),GT(this,n,this._api,e,{}),zC.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),zS.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),zC.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){LT.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Gl(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}RT=e,zT=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},BT=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=nE[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&wu(s[0]);this[bT]=!0,QT(this);var u=[e],d=!1;e.batch&&(d=!0,u=z(e.batch,function(t){return t=L(I({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Cm(e),_=wm(e);if(_&&nm(this._api),R(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=I({},t),p.type=h,f.push(p),_){var a=Kl(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;IT(n,c,t,u),XT(n)}else g?(IT(n,c,t,`series`),XT(n)):l&&IT(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[ST]?(PT(this),LT.update.call(this,e),this[ST]=null):LT[c].call(this,e)}catch(e){throw this[bT]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[bT]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Hn(W(y)),v=L({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},VT=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();BT.call(this,n,e)}},HT=function(e){!e&&this.trigger(`updated`)},UT=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[ST]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},WT=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=RC(n,bm);r&&(sm(r,e,t._api),XT(t))}).on(`mouseout`,function(e){var n=e.target,r=RC(n,bm);r&&(cm(r,e,t._api),XT(t))}).on(`click`,function(e){var n=e.target,r=RC(n,function(e){return rp(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=rp(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;ea(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),R(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}GT=function(e,t,r,i,a){n(t),KT(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive=!1}),qT(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},KT=function(e,t,n,r,i,a){R(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},qT=function(e,t,n,r,l,u){var d=e._scheduler;l=I(l||{},{updatedSeries:t.getSeries()}),zC.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),um(t)}),d.unfinished=f||d.unfinished,zC.trigger(`series:layoutlabels`,t,n,l),zC.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),zC.trigger(`series:afterupdate`,t,n,l)},XT=function(e){e[CT]=!0,e.getZr().wakeUp()},QT=function(e){e[xT]=(e[xT]+1)%1e6},ZT=function(e){e[CT]&&(e.getZr().storage.traverse(function(e){Qh(e)||r(e)}),e[CT]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>G(t.get(`hoverLayerThreshold`),Dy.hoverLayerThreshold)&&!Gt.node&&!Gt.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Wg(e);t.eachRendered(function(e){return Kg(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Qh(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Qh(e))return;if(e instanceof wf&&Tm(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}JT=function(e){return new(function(t){P(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Yp(t,n),XT(e)},n.prototype.leaveEmphasis=function(t,n){Xp(t,n),XT(e)},n.prototype.enterBlur=function(t){Zp(t),XT(e)},n.prototype.leaveBlur=function(t){Qp(t),XT(e)},n.prototype.enterSelect=function(t){$p(t),XT(e)},n.prototype.leaveSelect=function(t){em(t),XT(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[xT]},n.prototype.usingTHL=function(){return e._usingTHL},n}(gp))(e)},YT=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[TT]=t}}R(rE,function(n,r){e._messageCenter.on(r,function(n){if(dE[e.group]&&e[TT]!==ET){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];R(uE,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,ET),R(i,function(e){e[TT]!==DT&&e.dispatchAction(r)}),t(i,OT)}})})}}(),t}(Tr),eE=$T.prototype;eE.on=kT(`on`),eE.off=kT(`off`),eE.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var tE=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],nE={},rE={},iE={},aE=[],oE=[],sE=[],cE={},lE={},uE={},dE={},fE=new Date-0;new Date-0;var pE=`_echarts_instance_`;function mE(e,t,n){var r=!(n&&n.ssr);if(r){var i=hE(e);if(i)return i}var a=new $T(e,t,n);return a.id=`ec_`+fE++,uE[a.id]=a,r&&Zl(e,pE,a.id),YT(a),zC.trigger(`afterinit`,a),a}function hE(e){return uE[Ql(e,pE)]}function gE(e,t){cE[e]=t}function _E(e){yn(oE,e)<0&&oE.push(e)}function vE(e,t){DE(aE,e,t,sT)}function yE(e){xE(`afterinit`,e)}function bE(e){xE(`afterupdate`,e)}function xE(e,t){zC.on(e,t)}function SE(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;nE[r]||(Hn(wT.test(r)&&wT.test(i)),a&&Hn(i!==r),nE[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},iE[i]=1,a&&s&&(iE[l]=1),rE[l]=r)}function CE(e,t){Gv.register(e,t)}function wE(e,t){DE(sE,e,t,lT,`layout`,!0)}function TE(e,t){DE(sE,e,t,fT,`visual`,!0)}var EE=[];function DE(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),!(yn(EE,n)>=0)){EE.push(n);var o=cC.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function OE(e,t){lE[e]=t}function kE(e,t,n){var r=HC(`registerMap`);r&&r(e,t,n)}var AE=Lx;TE(dT,nC),TE(mT,iC),TE(mT,aC),TE(dT,AC),TE(mT,jC),TE(vT,eT),_E(Nb),vE(iT,Pb),OE(`default`,sC),SE({type:wp,event:wp,update:wp},er),SE({type:Tp,event:Tp,update:Tp},er),SE({type:Ep,event:kp,update:Ep,action:er,refineEvent:jE,publishNonRefinedEvent:!0}),SE({type:Dp,event:kp,update:Dp,action:er,refineEvent:jE,publishNonRefinedEvent:!0}),SE({type:Op,event:kp,update:Op,action:er,refineEvent:jE,publishNonRefinedEvent:!0});function jE(e,t,n,r){return{eventContent:{selected:dm(n),isFromClick:t.isFromClick||!1}}}gE(`default`,{}),gE(`dark`,EC);var ME=[],NE={registerPreprocessor:_E,registerProcessor:vE,registerPostInit:yE,registerPostUpdate:bE,registerUpdateLifecycle:xE,registerAction:SE,registerCoordinateSystem:CE,registerLayout:wE,registerVisual:TE,registerTransform:AE,registerLoading:OE,registerMap:kE,registerImpl:VC,PRIORITY:yT,ComponentModel:vy,ComponentView:FS,SeriesModel:ES,ChartView:zS,registerComponentModel:function(e){vy.registerClass(e)},registerComponentView:function(e){FS.registerClass(e)},registerSeriesModel:function(e){ES.registerClass(e)},registerChartView:function(e){zS.registerClass(e)},registerCustomSeries:function(e,t){WC(e,t)},registerSubTypeDefaulter:function(e,t){vy.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){bc(e,t)}};function PE(e){if(V(e)){R(e,function(e){PE(e)});return}yn(ME,e)>=0||(ME.push(e),H(e)&&(e={install:e}),e.install(NE))}function FE(e){return e==null?0:e.length||1}function IE(e){return e}var LE=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||IE,this._newKeyGetter=r||IE,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=FE(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=FE(c),d=FE(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=FE(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=FE(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),RE=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function zE(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};R(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;BE(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),HE(n.type)&&(a[0]=t),BE(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}op.each(function(e,t){var i=BE(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=z(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new RE(s,t),n}function BE(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function VE(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function HE(e){return!(e===`ordinal`||e===`time`)}var UE=function(){function e(e){this.otherDims={},e!=null&&I(this,e)}return e}(),WE=Ul(),GE={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},KE=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=YE(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=qb(this.source),n=!XE(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=GE[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function qE(e){return e instanceof KE}function JE(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function YE(e){var t=WE(e);return t.dimNameMap||=JE(e.dimensionsDefine)}function XE(e){return e>30}var ZE=W,QE=z,$E=typeof Int32Array>`u`?Array:Int32Array,eD=`e\0\0`,tD=-1,nD=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],rD=[`_approximateExtent`],iD,aD,oD,sD,cD,lD,uD,dD=function(){function e(e,t){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`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;qE(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=U(u)?new UE({name:u}):u instanceof UE?u:new UE(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();R(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(An(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Yx&&(i=e),!i){var a=this.dimensions,o=Rb(e)||Sn(e)?new ex(e,a.length):e;i=new Yx;var s=QE(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=zE(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&uD(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Tl(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Fl(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Fl(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)uD(this,o);iD(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){ZE(e)?I(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=oD(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return aD(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return V(e)?r.getValues(QE(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?tD:r},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=QE(sD(e),this._getStoreDimIndex,this);this._store.each(i,r?B(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=QE(sD(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?B(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=En(e),i=[];return R(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){H(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=QE(sD(e),this._getStoreDimIndex,this),o=lD(this);return o._store=this._store.map(a,i?B(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=QE(sD(e),this._getStoreDimIndex,this);this._store.modify(a,i?B(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=lD(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=lD(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=lD(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new E_(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new LE(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return aD(e,t)},function(e){return aD(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},ZE(e)?I(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),V(i)?i=i.slice():ZE(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,ZE(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){ZE(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){ip(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:QE(this.dimensions,this._getDimInfo,this),this.hostModel),cD(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Bn(arguments)))})},e.internalField=function(){iD=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new $E(a.categories.length);for(var s=0;s<n.length;s++)n[s]=tD;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},oD=function(e,t,n){return Fl(e._getCategory(t,n),null)},aD=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=oD(e,e._idDimIdx,t)),n??=eD+t,n},sD=function(e){return V(e)||(e=e==null?[]:[e]),e},lD=function(t){var n=new e(t._schema?t._schema:QE(t.dimensions,t._getDimInfo,t),t.hostModel);return cD(n,t),n},cD=function(e,t){R(nD.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,R(rD,function(n){e[n]=F(t[n])}),e._calculationInfo=I({},t._calculationInfo)},uD=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=oD(e,i,t)),s==null&&a!=null&&(r[t]=s=oD(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function fD(e,t){Rb(e)||(e=Bb(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=pD(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&XE(o),c=r===e.dimensionsDefine,l=c?YE(e):JE(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new Ux(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=W(n)?n:{name:n},o=new UE,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=xl(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);R(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;R(n,function(e){var t,n,r,i;if(U(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=I({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=xl(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}R(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(L(o,i),t,a),o.name==null&&n){var s=n[a];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&L(o.otherDims,r)})}});function g(e,t,n){op.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)R(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=mD(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Fy(e,S)===Oy.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return mu(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new KE({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function pD(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function mD(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var hD=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function gD(e){var t=e.get(`coordinateSystem`),n=new hD(t),r=_D[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var _D={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,ql).models[0],a=e.getReferringComponents(`yAxis`,ql).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),vD(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),vD(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,ql).models[0];t.coordSysDims=[`single`],n.set(`single`,i),vD(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,ql).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),vD(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),vD(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),vD(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,ql).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function vD(e){return e.get(`type`)===`category`}function yD(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;bD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function bD(e){return!qE(e.schema)}function xD(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function SD(e,t){return xD(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function CD(e,t){var n=e.get(`coordinateSystem`),r=Gv.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=VE(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function wD(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function TD(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Bb(e)):(i=r.getSource(),a=i.sourceFormat===sp);var o=gD(t),s=CD(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?On(jy,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=fD(i,u),f=wD(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=yD(t,{schema:d,store:p}),h=new dD(d,t);h.setCalculationInfo(m);var g=f!=null&&ED(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function ED(e){if(e.sourceFormat===`original`)return!V(wl(DD(e.data||[])))}function DD(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var OD=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Pu(OD);var kD=0,AD=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++kD,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&z(r,jD);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!U(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=K(this.categories)},e}();function jD(e){return W(e)&&e.value!=null?e.value:e+``}var MD=En({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function ND(e,t,n){var r;e||={};var i=K_();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(R(MD,function(t){a[t]&&(e[t]=B(a[t],a))}),r=a)}return r??BD(e,n),{brk:r,mapper:e}}function PD(e,t){R(MD,function(n){e[n]=t[n]})}function FD(e,t){e.freeze=er}function ID(e){return e.getExtentUnsafe(0,2)}function LD(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function RD(e){var t=LD(e,3);return t[1]-t[0]}function zD(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function BD(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():iu(),I(n,VD),n}var VD={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=LD(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){HD(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),HD(r,e,t,n)},freeze:function(){}};function HD(e,t,n,r){uu(n,r)&&(e[t][0]=n,e[t][1]=r)}function UD(e){return WD(e)||KD(e)}function WD(e){return e.type===`interval`}function GD(e){return e.type===`time`}function KD(e){return e.type===`log`}function qD(e){return e.type===`ordinal`}function JD(e){var t=nl(e),n=Nc(10,t),r=Ac(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Uc(r*n,-t)}function YD(e){return Gc(e)+2}function XD(e,t){return Pc(e)/Pc(t)}function ZD(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Nc(t,e)}function QD(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=kc(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!lu(r[0])||!lu(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function $D(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function eO(e,t){return e||=t,Ac(Oc(e,1))}function tO(e,t,n){var r=ID(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var nO=function(e){P(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,PD(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new AD({}),V(i)&&(i=new AD({categories:z(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=ND(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,FD(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Ac(e),e},t.prototype.getTicks=function(){var e=[];return tO(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Dc(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=ID(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Ac(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(OD);OD.registerClass(nO);function rO(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=YD(f);u<t-1;){var m=Uc(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=K_();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var iO=function(e){P(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=ND(r,q_(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return F(this._cfg)},t.prototype.setConfig=function(e){var t=ID(this);this._cfg=e=F(e),e.niceExtent??=t.slice(),e.intervalPrecision??=YD(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=ID(this),i=t.niceExtent,a=t.intervalPrecision,o=K_(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Uc(i[0]-n,a):r[0]});for(var d=function(e,t){return Ac((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Dc(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Uc(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Uc(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Uc(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return rO(this,e,J_(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Gc(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Mv(Uc(e.value,n,!0))},t.type=`interval`,t}(OD);OD.registerClass(iO);var aO=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},oO=function(e){P(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=ND(r,q_(r,n),null).brk,r}return t.prototype.getLabel=function(e){return mv(e.value,av[pv(dv(this._minLevelUnit))]||av.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return hv(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=ID(this),r=K_(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return K_().addBreaksToTicks(o,i.breaks,n),o;o=gO(this._minLevelUnit,this._approxInterval,s,n,zD(this),i);var c=ov.length-1,l=0;return R(o,function(e){e.time&&(c=Math.min(c,yn(ov,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&K_().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&K_().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(yn(ov,gv(e.vmin,s)),yn(ov,gv(e.vmax,s))),n=0,r=0;r<ov.length;r++)if(!cO(ov[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:ov[Math.max(i,t)],upperTimeUnit:ov[i]}}),o},t.prototype.getMinorTicks=function(e){return rO(this,e,J_(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return An(e)?Math.round(e):+el(e)},t.type=`time`,t}(OD),sO=[[`second`,X_],[`minute`,Z_],[`hour`,Q_],[`quarter-day`,Q_*6],[`half-day`,Q_*12],[`day`,$_*1.2],[`half-week`,$_*3.5],[`week`,$_*7],[`month`,$_*31],[`quarter`,$_*95],[`half-year`,ev/2],[`year`,ev]];function cO(e,t,n,r){return _v(new Date(t),e,r).getTime()===_v(new Date(n),e,r).getTime()}function lO(e,t){return e/=$_,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function uO(e){var t=30*$_;return e/=t,e>6?6:e>3?3:e>2?2:1}function dO(e){return e/=Q_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function fO(e,t){return e/=t?Z_:X_,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function pO(e){return Oc(rl(e,!0),1)}function mO(e,t,n){var r=Math.max(0,yn(ov,t)-1);return _v(new Date(e),ov[r],n).getTime()}function hO(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function gO(e,t,n,r,i,a){var o=sv,s=0;function c(e,t,n,i,o,c,l){for(var u=hO(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!cO(dv(e),r[0],r[1],n)){s&&(i=[{value:mO(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/$_/365)),p=vv(n),m=Tv(n);break;case`half-year`:case`quarter`:case`month`:f=uO(t),p=yv(n),m=Ev(n);break;case`week`:case`half-week`:case`day`:f=lO(t,31),p=bv(n),m=Dv(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=dO(t),p=xv(n),m=Ov(n);break;case`minute`:f=fO(t,!0),p=Sv(n),m=kv(n);break;case`second`:f=fO(t,!1),p=Cv(n),m=Av(n);break;case`millisecond`:f=pO(t),p=wv(n),m=jv(n);break}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=dv(o[m]);if(fv(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?dv(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=wn(z(u,function(e){return wn(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=gv(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}mu(S,hu,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=gv(r[0],n),k=gv(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var _O=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=$_,n[1]+=$_),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-$_}e.setExtent(n[0],n[1]);var i=eO(t.splitNumber,10),a=zD(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=sO.length,l=Math.min(aO(sO,a,0,c),c-1),u=sO[l][1],d=sO[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};OD.registerClass(oO);var vO=0,yO=1,bO=2,xO=function(e){P(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=iO.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[vO]=i[yO]=a[vO]=a[yO]=NaN,PD(r,t.mapperMethods);var s=K_(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},bO,l),r.powStub=new iO({breakParsed:l.original}),r.intervalStub=new iO({breakParsed:l.transformed}),FD(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=K_(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=ZD(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,J_(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return rO(this,e,J_(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(XD(e,this.base))},scale:function(e){return ZD(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=XD(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return SO.depth=n,CO.lookup=this._lookup,ZD(n===2?e:this.intervalStub.transformOut(e,SO),this.base,CO)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!uu(t,n)||t<=0||n<=0)){var r=wO,i=wO;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[vO]=t,r[yO]=n);var o=this.base;this.intervalStub.setExtent2(e,i[vO]=XD(t,o),i[yO]=XD(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return uu(t[0],t[1])&&dl(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(OD);OD.registerClass(xO);var SO={},CO={},wO=[],TO={value:1,category:1,time:1,log:1},EO=Ul();function DO(e){var t=e.get(`type`);return(t==null||!q(TO,t)&&!OD.getClass(t))&&(t=`value`),t}function OO(e,t,n){var r=K_(),i;switch(r&&(i=zO(e,t,n)),t){case`category`:return new nO({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:iu()});case`time`:return new oO({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new xO({logBase:e.get(`logBase`),breakOption:i});case`value`:return new iO({breakOption:i});default:return new((OD.getClass(t))||iO)({})}}function kO(e,t,n){var r=n?LD(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return uu(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function AO(e){EO(e).noOnMyZero=!0}function jO(e){return EO(e).noOnMyZero}function MO(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=cv(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(H(t)){if(e.type===`category`)return function(n,r){return t(NO(e,n),n.value-e.scale.getExtent()[0],null)};var r=K_();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(NO(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function NO(e,t){var n=e.scale;return qD(n)?n.getLabel(t):t.value}function PO(e){return e.get(`interval`)??`auto`}function FO(e){return e.type===`category`&&PO(e.getLabelModel())===0}function IO(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[SD(e,t)]=!0}),En(n)}function LO(e){return e===`middle`||e===`center`}function RO(e){return e.getShallow(`show`)}function zO(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!K_()||!n||!BO(t)?void 0:r}function BO(e){return e!==`category`}function VO(e,t,n,r,i,a){var o=KD(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=$D(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function HO(e,t){return qD(e)?e.getRawOrdinalNumber(t.value):t.value}function UO(e,t){return qD(e)&&!!t.get(`boundaryGap`)}var WO=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),GO=pu(),KO=Ul(),qO=Ul();function JO(e,t){var n=e.model,r=KO(XC(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function YO(e,t){return QO(JO(e,t))}function XO(e,t){var n=[];return ZO(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(QO(e))}),n}function ZO(e,t){var n=KO(XC(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function QO(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function $O(e,t){var n=e.model.ecModel,r=KO(XC(n)).axSer;r&&tk(n,r.get(e.model.uid),t)}function ek(e,t,n){var r=JO(e,t);r&&tk(e.model.ecModel,r.sers,n)}function tk(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function nk(e,t){var n=JO(e,t);if(!n||!n.sers.length)return 0;var r=0;return tk(e.model.ecModel,n.sers,function(){r++}),r}function rk(e,t,n){var r=KO(XC(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function ik(e,t){var n=e.model,r=KO(XC(n.ecModel)).keys;r&&R(r.get(n.uid),function(e){t(e)})}function ak(e){var t=qO(YC(e)),n=t.keyed||=K();ZO(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&sk.liPosMinGap(e,t,o)})}function ok(e,t){sk[e]=t}var sk={};function ck(e,t,n){if(e){var r=t.ecModel,i=KO(XC(r)),a=e.model.uid,o=i.axSer||=K();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=dk.get(lk(s,c,n))||dk.get(lk(s,c,null));if(l){var u=i.keyed||=K(),d=i.keys||=K(),f=l.key,p=u.get(f)||u.set(f,K()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function lk(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function uk(e,t){var n=lk(t.seriesType,t.baseAxis,t.coordSysType);dk.set(n,t),GO(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:ak})})}var dk=K(),fk=Ul(),pk=3,mk=function(){function e(e,t,n,r,i){var a=qD(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(WD(e)||KD(e)||GD(e))&&(ou(l,gk(e,t.get(`dataMin`,!0))),su(l,gk(e,t.get(`dataMax`,!0)))),du(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=gk(e,H(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=gk(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=_k(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!lu(u[0])&&(u[0]=NaN),!lu(u[1])&&(u[1]=NaN);var g=s||Ln(u[0])||Ln(u[1])||a&&!o,_=WD(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=gk(e,t.get(`startValue`,!0)),x=b!=null;!dl(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),dl(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),hk(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),hk(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function hk(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),fu(t))}function gk(e,t){return t==null?null:Ln(t)?NaN:e.parse(t)}function _k(e,t){var n;if(qD(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=V(r)?r:[r,r]}return[vk(n[0]),vk(n[1])]}function vk(e){return Ys(typeof e==`boolean`?0:e,1)||0}function yk(e){var t=fk(e.scale);return t.extent||=iu(),t}function bk(e,t){yk(e).dimIdxInCoord=t.get(e.dim)}function xk(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||Sk(n,e,i,r,t)}function Sk(e,t,n,r,i){var a=yk(t),o=a.extent,s=!1;$O(t,function(r){if(r.boxCoordinateSystem){var i=Yv(r).coord,c=a.dimIdxInCoord;if(c>=0&&V(i)){var l=i[c];l!=null&&!V(l)&&au(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(IO(u,n),function(e){cu(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=Ok(e,t,r);wk(e,new mk(e,r,o,s,c),i),a.extent=null}function Ck(e,t){var n=e.scale;wk(n,new mk(n,e.model,t,!1,!1),pk)}function wk(e,t,n){e.rawExtentInfo=t,t.from=n}function Tk(e,t){Ek.set(e,t)}var Ek=K();function Dk(e,t,n,r,i){e.rawExtentInfo||Ck({scale:e,model:t},i||iu());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function Ok(e,t,n){var r=UO(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return ik(t,function(e){a=!!Ek.get(e)||a}),a}function kk(e,t,n,r){if(n.ctnShp){var i;if(ik(e,function(t){var n=Ek.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],ou(i,a[0]),su(i,a[1]),AO(e))}}),i){var a=t.getExtent();if(qD(t))e.onBand||t.setExtent2(1,Dc(a[0],a[0]+i[0]),Oc(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Dc(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Oc(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function Ak(e,t){var n=KD(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=QD(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?Mk(r,t):jk(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=YD(d)),i[0]||(s[0]=Uc(jc(s[0]/u)*u,l)),i[1]||(s[1]=Uc(Mc(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),VO(e,i,o,s,a,c)}function jk(e,t){var n=eO(t.splitNumber,5),r=zD(e),i=t.minInterval,a=t.maxInterval,o=rl(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=YD(o),c=e.getExtent(),l=[Uc(Mc(c[0]/o)*o,s),Uc(jc(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function Mk(e,t){var n=eO(t.splitNumber,10),r=e.getExtent(),i=zD(e),a=Oc(tl(i),1);n/i*a<=.5&&(a*=10);var o=YD(a),s=[Uc(Mc(r[0]/a)*a,o),Uc(jc(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function Nk(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;Pk(t,n,r,i,null)}function Pk(e,t,n,r,i){var a=Dk(e,t,r,n,i),o=WD(e)||GD(e);Fk(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&kk(n,e,a,r)}function Fk(e,t){Ik[e.type](e,t)}var Ik={interval:Ak,log:Ak,time:_O,ordinal:er},Lk=1e-8;function Rk(e,t){return Math.abs(e-t)<Lk}function zk(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=sf(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!Rk(i[0],s[0])||!Rk(i[1],s[1]))&&(r+=sf(i[0],i[1],s[0],s[1],t,n)),r!==0}var Bk=[];function Vk(e,t){for(var n=0;n<e.length;n++)br(e[n],e[n],t)}function Hk(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(xr(t,t,a),Sr(n,n,a))}}function Uk(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Wk=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),Gk=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),Kk=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),qk=function(e){P(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return Uk(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return R(i,function(t){t.type===`polygon`?Hk(t.exterior,n,r,e):R(t.points,function(t){Hk(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Y(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(zk(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(zk(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new Y(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(Vk(u.exterior,s),R(u.interiors,function(e){Vk(e,s)})):R(u.points,function(e){Vk(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Wk),Jk=function(e){P(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=ni(Bk),i=e;i&&!i.isGeoSVGGraphicRoot;)ii(r,i.getLocalTransform(),r),i=i.parent;return ci(r,r),br(n,n,r),n},t}(Wk);function Yk(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return R(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=Zk(i,r,n);break;case`Polygon`:Xk(i,r,n);break;case`MultiLineString`:Xk(i,r,n);break;case`MultiPolygon`:R(i,function(e,t){return Xk(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function Xk(e,t,n){for(var r=0;r<e.length;r++)e[r]=Zk(e[r],t[r],n)}function Zk(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function Qk(e,t){return e=Yk(e),z(wn(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new Gk(a[0],a.slice(1)));break;case`MultiPolygon`:R(r.coordinates,function(e){e[0]&&i.push(new Gk(e[0],e.slice(1)))});break;case`LineString`:i.push(new Kk([r.coordinates]));break;case`MultiLineString`:i.push(new Kk(r.coordinates))}var o=new qk(n[t||`name`],i,n.cp);return o.properties=n,o})}var $k=Ul(),eA=Ul(),tA={estimate:1,determine:2};function nA(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function rA(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(aA(n,r),function(t,n){return{formattedLabel:MO(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?oA(e,t):lA(e)}function iA(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:aA(i,r)}:e.type===`category`?cA(e,t):{ticks:r.getTicks(n)}}function aA(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),mu(r,gu,null),Wc(r),z(r,function(e){return{value:e}})}function oA(e,t){var n=e.getLabelModel(),r=sA(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function sA(e,t,n){var r=dA(e),i=PO(t),a=n.kind===tA.estimate;if(!a){var o=pA(r,i);if(o)return o}var s,c;H(i)?s=bA(e,i,!1):(c=i===`auto`?hA(e,n):i,s=bA(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return mA(r,i,l),!0}):mA(r,i,l),l}function cA(e,t){var n=uA(e),r=PO(t),i=pA(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=bA(e,r,!0);else if(r===`auto`){var s=sA(e,e.getLabelModel(),nA(tA.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=bA(e,o,!0);return mA(n,r,{ticks:a,tickCategoryInterval:o})}function lA(e){var t=e.scale.getTicks(),n=MO(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var uA=fA(`axisTick`),dA=fA(`axisLabel`);function fA(e){return function(t){return eA(t)[e]||(eA(t)[e]={list:[]})}}function pA(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function mA(e,t,n){return e.list.push({key:t,value:n}),n}function hA(e,t){if(t.kind===tA.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return eA(e).autoInterval=n,!0}),n}return eA(e).autoInterval??(eA(e).autoInterval=e.calculateCategoryInterval(t))}function gA(e,t){var n=t.kind,r=yA(e),i=MO(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Gs(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===tA.estimate?(t.out.noPxChangeTryDetermine.push(B(_A,null,e,S,c)),S):vA(e,S,c)??S}function _A(e,t,n){return vA(e,t,n)==null}function vA(e,t,n){var r=$k(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function yA(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 bA(e,t,n){var r=MO(e),i=e.scale,a=[],o=H(t);return tO(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var xA=.8;function SA(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=RD(r);dl(o)||(o=NaN);var s=e.getExtent(),c=kc(s[1]-s[0]);return qD(r)?CA(n,e,o,c):i&&wA(n,e,o,c,i),a!=null&&(n.w=dl(n.w)?Oc(a,n.w):a),n}function CA(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function wA(e,t,n,r,i){var a=!1,o=-1/0;R(i.key?[YO(t,i.key)]:XO(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),dl(n)&&n>0&&dl(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*xA,e.w2=e.w*n/r)}var TA=[0,1],EA=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Rc(e,TA,DA(this),t)},e.prototype.coordToData=function(e,t){var n=Rc(e,DA(this),TA,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(iA(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(HO(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=OA(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(qD(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=nA(tA.determine),rA(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return SA(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=nA(tA.determine),gA(this,e)},e}();function DA(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function OA(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=SA(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var kA=Math.PI*2,AA=Qd.CMD,jA=[`top`,`right`,`bottom`,`left`];function MA(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function NA(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%kA<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=rf(i),i=rf(f)}else r=rf(r),i=rf(i);r>i&&(i+=kA);var p=Math.atan2(s,o);if(p<0&&(p+=kA),p>=r&&p<=i||p+kA>=r&&p+kA<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function PA(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function FA(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var IA=[];function LA(e,t,n){var r=FA(t.x,t.y,t.width,t.height,e.x,e.y,IA);return n.set(IA[0],IA[1]),r}function RA(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case AA.M:a=u[p++],o=u[p++],r=a,i=o;break;case AA.L:h=PA(r,i,u[p],u[p+1],d,f,IA,!0),r=u[p++],i=u[p++];break;case AA.C:h=Sa(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,IA),r=u[p++],i=u[p++];break;case AA.Q:h=ka(r,i,u[p++],u[p++],u[p],u[p+1],d,f,IA),r=u[p++],i=u[p++];break;case AA.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=NA(g,_,y,b,b+x,S,C,f,IA),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case AA.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=FA(a,o,w,T,d,f,IA);break;case AA.Z:h=PA(r,i,a,o,d,f,IA,!0),r=a,i=o;break}h<l&&(l=h,n.set(IA[0],IA[1]))}return l}var zA=new J,BA=new J,VA=new J,HA=new J,UA=new J;function WA(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||jA,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&ci([],u),f=t.get(`length2`)||0;l&&VA.copy(l);for(var p=0;p<o.length;p++){var m=o[p];MA(m,0,s,zA,HA),J.scaleAndAdd(BA,zA,HA,f),BA.transform(d);var h=e.getBoundingRect(),g=l?l.distance(BA):e instanceof wf?RA(BA,e.path,VA):LA(BA,h,VA);g<c&&(c=g,BA.transform(u),VA.transform(u),VA.toArray(a[0]),BA.toArray(a[1]),zA.toArray(a[2]))}qA(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var GA=[],KA=new J;function qA(e,t){if(t<=180&&t>0){t=t/180*Math.PI,zA.fromArray(e[0]),BA.fromArray(e[1]),VA.fromArray(e[2]),J.sub(HA,zA,BA),J.sub(UA,VA,BA);var n=HA.len(),r=UA.len();if(!(n<.001||r<.001)){HA.scale(1/n),UA.scale(1/r);var i=HA.dot(UA);if(Math.cos(t)<i){var a=PA(BA.x,BA.y,VA.x,VA.y,zA.x,zA.y,GA,!1);KA.fromArray(GA),KA.scaleAndAdd(UA,a/Math.tan(Math.PI-t));var o=VA.x===BA.x?(KA.y-BA.y)/(VA.y-BA.y):(KA.x-BA.x)/(VA.x-BA.x);if(isNaN(o))return;o<0?J.copy(KA,BA):o>1&&J.copy(KA,VA),KA.toArray(e[1])}}}}function JA(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,zA.fromArray(e[0]),BA.fromArray(e[1]),VA.fromArray(e[2]),J.sub(HA,BA,zA),J.sub(UA,VA,BA);var r=HA.len(),i=UA.len();if(!(r<.001||i<.001)&&(HA.scale(1/r),UA.scale(1/i),HA.dot(t)<Math.cos(n))){var a=PA(BA.x,BA.y,VA.x,VA.y,zA.x,zA.y,GA,!1);KA.fromArray(GA);var o=Math.PI/2,s=o+Math.acos(UA.dot(t))-n;if(s>=o)J.copy(KA,VA);else{KA.scaleAndAdd(UA,a/Math.tan(Math.PI/2-s));var c=VA.x===BA.x?(KA.y-BA.y)/(VA.y-BA.y):(KA.x-BA.x)/(VA.x-BA.x);if(isNaN(c))return;c<0?J.copy(KA,BA):c>1&&J.copy(KA,VA)}KA.toArray(e[1])}}}function YA(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function XA(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=gr(r[0],r[1]),a=gr(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=yr([],r[1],r[0],o/i),c=yr([],r[1],r[2],o/a),l=yr([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function ZA(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Cp.length;c++){var l=Cp[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:G(i.states[l]&&i.states[l].ignore,s))||!G(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&YA(r,!0,l,u);continue}r||(r=new Ch,e.setTextGuideLine(r),!d&&(s||!o)&&YA(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),YA(r,!1,l,u)}}if(r){L(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=XA}}function QA(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Sp.length;r++){var i=Sp[r];n[i]=e.getModel([i,t])}return n}var $A=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],ej=1,tj=2,nj=ej|tj;function rj(e,t,n){n||=nj,t?e.dirty|=n:e.dirty&=~n}function ij(e,t){return t||=nj,e.dirty==null||!!(e.dirty&t)}function aj(e){if(e)return ij(e)&&oj(e,e.label,e),e}function oj(e,t,n){var r=t.getComputedTransform();e.transform=Ug(e.transform,r);var i=e.localRect=Hg(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=h_.textMargin);for(var d=0;d<4;d++)sj[d]=u===h_.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===h_.textMargin&&Pg(i,sj,!1,!1);var f=e.rect=Hg(e.rect,i);return r&&f.applyTransform(r),u===h_.minMargin&&Pg(f,sj,!1,!1),e.axisAligned=Bg(r),(e.label=e.label||{}).ignore=t.ignore,rj(e,!1),rj(e,!0,tj),e}var sj=[0,0,0,0];function cj(e,t,n){return e.transform=Ug(e.transform,n),e.localRect=Hg(e.localRect,t),e.rect=Hg(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Bg(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function lj(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function uj(e,t){for(var n=0;n<$A.length;n++){var r=$A[n];e[r]??(e[r]=t[r])}return aj(e)}function dj(e){var t=e.obb;return(!t||ij(e,tj))&&(e.obb=t||=new Wh,t.fromBoundingRect(e.localRect,e.transform),rj(e,!1,tj)),t}function fj(e,t,n,r,i){var a=e.length,o=og[t],s=sg[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function pj(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function mj(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=aj(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(hj(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function hj(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:dj(e).intersect(dj(t),n,r)}function gj(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function _j(e,t){var n=e.label,r=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:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:gj(r&&r.shape.points)}}var vj=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],yj=new Ms,bj=Ul(),xj=Ul();function Sj(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var Cj=[`x`,`y`,`rotation`],wj=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Y.applyTransform(c,c,s),s?yj.setLocalTransform(s):(yj.x=yj.y=yj.rotation=yj.originX=yj.originY=0,yj.scaleX=yj.scaleY=1),yj.rotation=rf(yj.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Y.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:yj.x,y:yj.y,scaleX:yj.scaleX,scaleY:yj.scaleY,rotation:yj.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(H(r)||En(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=rp(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){WA(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=H(a.layoutOptionOrCb)?a.layoutOptionOrCb(_j(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Z(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Z(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=bj(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<vj.length;m++){var h=vj[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];R(this._labelList,function(e){e.defaultAttr.ignore||r.push(uj({},e))});var i=wn(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=wn(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});fj(i,0,0,t),fj(a,1,0,n);var o=wn(r,function(e){return e.layoutOption.hideOverlap});pj(o),mj(o)},e.prototype.processLabelsOverall=function(){var e=this;R(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=bj(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=rp(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);ZA(e,QA(o),s),WA(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Qh(e))){var i=bj(n),a=i.oldLayout,o=rp(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(yn(u,`select`)>=0&&n.attr(i.oldLayoutSelect),yn(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Xh(n,c,t,s)}else if(n.attr(c),!f_(n).valueAnimation){var d=G(n.style.opacity,1);n.style.opacity=0,Zh(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};Sj(f,c,Cj),Sj(f,n.states.select,Cj)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Sj(p,c,Cj),Sj(p,n.states.emphasis,Cj)}m_(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=xj(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Xh(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Zh(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),Tj=Ul();function Ej(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=Tj(t).labelManager;r||=Tj(t).labelManager=new wj,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=Tj(t).labelManager;R(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var Dj=Math.sin,Oj=Math.cos,kj=Math.PI,Aj=Math.PI*2,jj=180/kj,Mj=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=fo(u-Aj)||(l?c>=Aj:-c>=Aj),f=c>0?c%Aj:c%Aj+Aj,p=!1;p=d?!0:!fo(u)&&f>=kj==!!l;var m=e+n*Oj(a),h=t+r*Dj(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*jj);if(d){var _=1/this._p,v=(l?1:-1)*(Aj-_);this._add(`A`,n,r,g,1,+l,e+n*Oj(a+v),t+r*Dj(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*Oj(o),b=t+r*Dj(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Nj=`none`,Pj=Math.round;function Fj(e){var t=e.fill;return t!=null&&t!==Nj}function Ij(e){var t=e.stroke;return t!=null&&t!==Nj}var Lj=[`lineCap`,`miterLimit`,`lineJoin`],Rj=z(Lj,function(e){return`stroke-`+e.toLowerCase()});function zj(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Af){e(`opacity`,i);return}if(Fj(t)){var a=lo(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,Nj);if(Ij(t)){var s=lo(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=_w(n),p=f[0],m=f[1];p&&(m=Pj(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,Nj);for(var h=0;h<Lj.length;h++){var g=Lj[h];if(r||t[g]!==xf[g]){var _=t[g]||xf[g];_&&e(Rj[h],_)}}}else r&&e(`stroke`,Nj)}var Bj=`http://www.w3.org/2000/svg`,Vj=`http://www.w3.org/1999/xlink`,Hj=`http://www.w3.org/2000/xmlns/`,Uj=`http://www.w3.org/XML/1998/namespace`,Wj=`ecmeta_`;function Gj(e){return document.createElementNS(Bj,e)}function Kj(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function qj(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function Jj(e){return`</`+e+`>`}function Yj(e,t){t||={};var n=t.newline?`
34
+ `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return qj(i,a)+(i===`style`?o||``:Rr(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+Jj(i)}return r(e)}function Xj(e,t,n){n||={};var r=n.newline?`
35
+ `:``,i=` {`+r,a=r+`}`,o=z(En(e),function(t){return t+i+z(En(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(En(t),function(e){return`@keyframes `+e+i+z(En(t[e]),function(n){return n+i+z(En(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function Zj(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Qj(e,t,n,r){return Kj(`svg`,`root`,{width:e,height:t,xmlns:Bj,"xmlns:xlink":Vj,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var $j=0;function eM(){return $j++}var tM={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`},nM=`transform-origin`;function rM(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new Mj;return i.reset(Do(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function iM(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[nM]=n+`px `+r+`px`)}var aM={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function oM(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sM(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=Zj(n.zrId);t.animation=!0,lM(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=En(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=oM(i,n);return a.replace(o,s)}}function cM(e){return U(e)?tM[e]?`cubic-bezier(`+tM[e]+`)`:Ma(e)?e:``:``}function lM(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Mh){var s=sM(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=cM(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=cM(d.easing),m=d.rawValue;(U(m)||An(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};Is(g,e),I(g,s[h]);var _=Oo(g),v=s[h][u];l[h]=_?{transform:_}:{},iM(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Qd);var S=y.len();y.reset(),l[h].d=rM(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return aM[e]})}for(var w=En(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][nM]!==l[O][nM]){T=!1;break}E=l[D][nM]}if(T&&E){for(var h in l)l[h][nM]&&delete l[h][nM];t[nM]=E}if(wn(w,function(e){return En(l[e]).length>0}).length)return oM(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+eM();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function uM(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};dM(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=so(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),dM(r,t,n,!0)}}function dM(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+eM(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var fM=Math.round;function pM(e){return e&&U(e.src)}function mM(e){return e&&H(e.toDataURL)}function hM(e,t,n,r){zj(function(i,a){var o=i===`fill`||i===`stroke`;o&&To(a)?AM(t,e,i,r):o&&So(a)?jM(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),kM(n,e,r)}function gM(e,t){var n=Sc(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[Wj+`silent`]=`true`))}function _M(e){return fo(e[0]-1)&&fo(e[1])&&fo(e[2])&&fo(e[3]-1)}function vM(e){return fo(e[4])&&fo(e[5])}function yM(e,t,n){if(t&&!(vM(t)&&_M(t))){var r=n?10:1e4;e.transform=_M(t)?`translate(`+fM(t[4]*r)/r+` `+fM(t[5]*r)/r+`)`:ho(t)}}function bM(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(fM(r[a][0]*n)/n),i.push(fM(r[a][1]*n)/n);t.points=i.join(` `)}function xM(e){return!e.smooth}function SM(e){var t=z(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=fM(o*r)/r)}}}var CM={circle:[SM([`cx`,`cy`,`r`])],polyline:[bM,xM],polygon:[bM,xM]};function wM(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function TM(e,t){var n=e.style,r=e.shape,i=CM[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Do(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&wM(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}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 p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new Mj,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return yM(a,e.transform),hM(a,n,e,t),gM(a,e),t.animation&&lM(e,a,t),t.emphasis&&uM(e,a,t),Kj(s,e.id+``,a)}function EM(e,t){var n=e.style,r=n.image;if(r&&!U(r)&&(pM(r)?r=r.src:mM(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),yM(c,e.transform),hM(c,n,e,t),gM(c,e),t.animation&&lM(e,c,t),Kj(`image`,e.id+``,c)}}function DM(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=_o(n.y||0,Js(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":go[n.textAlign]||n.textAlign};if(Yf(n)){var c=``,l=n.fontStyle,u=qf(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),yM(s,e.transform),hM(s,n,e,t),gM(s,e),t.animation&&lM(e,s,t),Kj(`text`,e.id+``,s,void 0,r)}}function OM(e,t){if(e instanceof wf)return TM(e,t);if(e instanceof Af)return EM(e,t);if(e instanceof Ef)return DM(e,t)}function kM(e,t,n){var r=e.style;if(vo(r)){var i=yo(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=lo(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=Kj(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[Kj(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Eo(o)}}function AM(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Co(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(wo(i))a=`radialGradient`,o.cx=G(i.x,.5),o.cy=G(i.y,.5),o.r=G(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=mo(s[l].offset)*100+`%`,f=s[l].color,p=lo(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(Kj(`stop`,l+``,g))}var _=Yj(Kj(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=Kj(a,y,o,c)),t[n]=Eo(y)}function jM(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(bo(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(U(h)?m=h:pM(h)?m=h.src:mM(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Hn(f,g),Hn(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=Bu(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=Kj(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=F(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Oo(i);x&&(o.patternTransform=x);var S=Kj(`pattern`,``,o,[d]),C=Yj(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=Kj(`pattern`,T,o,[d])),t[n]=Eo(T)}}function MM(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=Kj(`clipPath`,a,o,[TM(e,n)])}t[`clip-path`]=Eo(a)}function NM(e){return document.createTextNode(e)}function PM(e,t,n){e.insertBefore(t,n)}function FM(e,t){e.removeChild(t)}function IM(e,t){e.appendChild(t)}function LM(e){return e.parentNode}function RM(e){return e.nextSibling}function zM(e,t){e.textContent=t}var BM=58,VM=120,HM=Kj(``,``);function UM(e){return e===void 0}function WM(e){return e!==void 0}function GM(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function KM(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function qM(e){var t,n=e.children,r=e.tag;if(WM(r)){var i=e.elm=Gj(r);if(XM(HM,e),V(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&IM(i,qM(a))}else WM(e.text)&&!W(e.text)&&IM(i,NM(e.text))}else e.elm=NM(e.text);return e.elm}function JM(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&PM(e,qM(a),t)}}function YM(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(WM(i.tag)?FM(LM(i.elm),i.elm):FM(e,i.elm))}}function XM(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===VM?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(Hj,n,o):n.charCodeAt(3)===BM?r.setAttributeNS(Uj,n,o):n.charCodeAt(5)===BM?r.setAttributeNS(Vj,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function ZM(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:KM(o,l)?(QM(o,l),o=t[++r],l=n[++i]):KM(s,u)?(QM(s,u),s=t[--a],u=n[--c]):KM(o,u)?(QM(o,u),PM(e,o.elm,RM(s.elm)),o=t[++r],u=n[--c]):KM(s,l)?(QM(s,l),PM(e,s.elm,o.elm),s=t[--a],l=n[++i]):(UM(d)&&(d=GM(t,r,a)),f=d[l.key],UM(f)?PM(e,qM(l),o.elm):(p=t[f],p.tag===l.tag?(QM(p,l),t[f]=void 0,PM(e,p.elm,o.elm)):PM(e,qM(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,JM(e,m,n,i,c)):YM(e,t,r,a))}function QM(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(XM(e,t),UM(t.text)?WM(r)&&WM(i)?r!==i&&ZM(n,r,i):WM(i)?(WM(e.text)&&zM(n,``),JM(n,null,i,0,i.length-1)):WM(r)?YM(n,r,0,r.length-1):WM(e.text)&&zM(n,``):e.text!==t.text&&(WM(r)&&YM(n,r,0,r.length-1),zM(n,t.text)))}function $M(e,t){if(KM(e,t))QM(e,t);else{var n=e.elm,r=LM(n);qM(t),r!==null&&(PM(r,t.elm,RM(n)),YM(r,[e],0,0))}return t}var eN=0,tN=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=nN(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+eN++,this._oldVNode=Qj(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=Gj(`svg`);XM(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,$M(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return OM(e,Zj(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=Zj(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=rN(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=Kj(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(En(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(Kj(`defs`,`defs`,{},c)),e.animation){var l=Xj(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=Kj(`style`,`stl`,{},[],l);a.push(u)}}return Qj(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},Yj(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};MM(d[g],_,t);var v=Kj(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=OM(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=hw(r,0,n),t=hw(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(So(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},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(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=ko(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function nN(e){return function(){}}function rN(e,t,n,r){var i;if(n&&n!==`none`)if(i=Kj(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),To(n))AM({fill:n},i.attrs,`fill`,r);else if(So(n))jM({style:{fill:n},dirty:er,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=lo(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function iN(e){e.registerPainter(`svg`,tN)}function aN(e,t,n){var r=$t.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function oN(e){return!e.__cursors.get(0)}function sN(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var cN=function(e){rr(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=xs,typeof t==`string`?a=aN(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&($n(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=sN(this)},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 e=this.dpr;this.domBack=aN(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Y(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Y(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Y(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=sN(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;Pn(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||fw(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):Fn(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=ww(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&R(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(Tr),lN=1e5,uN=314159,dN=void 0,fN=1,pN=2;function mN(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function hN(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function gN(e,t,n,r){var i=new cN(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,_N(i),i}function _N(e){e.__cursorStack=[],e.__cursors=K()}function vN(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function yN(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,vN({key:r})))}function bN(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function xN(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function SN(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&CN)||s.__builtin__)&&(!(n&wN)||!s.__builtin__)&&(!(n&TN)||s!==e.hoverlayer))&&t(s,a,o,i)}}var CN=1,wN=2,TN=4,EN=CN|TN,DN=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=I({},n||{}),this.dpr=n.devicePixelRatio||xs,this._singleCanvas=i,this.root=e,e.style&&($n(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=gN(a,this,uN,0);c.initContext(),this._insertLayer(c,uN,0,!0),this._domRoot=e}else{this._width=hw(e,0,n),this._height=hw(e,1,n);var l=this._domRoot=hN(this._width,this._height);e.appendChild(l)}}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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=pN),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return SN(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},wN),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=dN,n!==dN&&(!t&&n===pN&&(t=this._i.hoverlayer=this._ensureLayer(lN)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Hw(i,s,r),c&&(s.style=l)}}i&&(Uw(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(lN)},e.prototype.paintOne=function(e,t){Vw(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)SN(this._i,function(e){e.afterBrush&&e.afterBrush()},EN),this._paintHoverList(e);else{var i=this;ia(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(uN).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),SN(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},CN)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return SN(this._i,function(i){var a=!1;if(bN(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!oN(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}bN(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},EN),Gt.wxa&&SN(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=oN(e),c=s&&$t.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=pN),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Hw(o,f,a),f.setPrevPaintRect(p))}else Hw(o,f,a);if(s&&$t.getTime()-c>15){d++;break}}}Uw(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=uN,t=0);var i=xN(this._i,e)[t];return i||(i=gN(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&gn(i,this._layerConfig[e],!0),(n||r&&e!==uN)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&mN(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=xN(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),xN(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return SN(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return SN(this._i,function(n,r){e.call(t,n,r)},CN)},e.prototype.eachOtherLayer=function(e,t){return SN(this._i,function(n,r){e.call(t,n,r)},wN)},e.prototype.getLayers=function(){var e={};return SN(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}SN(n._i,function(e){e.__dirty=!1,bN(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},EN);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){hn(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=yN(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}SN(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(oN(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(bN(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===dN&&(n._hoverLayerDirty=fN))},EN)},e.prototype.clear=function(){return SN(this._i,function(e){e.clear(),_N(e)},CN),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,SN(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?gn(n[e],t,!0):n[e]=t,SN(this._i,function(e,t){gn(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=hw(i,0,r),t=hw(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,SN(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(uN).resize(e,t)}return this},e.prototype.clearLayer=function(e){R(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[uN][0].dom;var t=new cN(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;SN(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Hw(n,l,a)}Uw(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function ON(e){e.registerPainter(`canvas`,DN)}var kN=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return TD(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new X,n=ow(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=ow(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(ES);function AN(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=fx(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(fx(e,t,n[o]));return a.join(` `)}}function jN(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!V(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var MN=function(e){P(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=ow(e,-1,-1,2,2,null,a);o.attr({z2:G(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=NN,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Yp(this.childAt(0))},t.prototype.downplay=function(){Xp(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Xh(f,p,o,n),ng(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Zh(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=n_(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=cw(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Af){var S=a.style;a.useStyle(I({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(I({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;t_(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):AN(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),mm(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=rp(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&$h(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();$h(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return sw(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(X);function NN(e,t){this.parent.drift(e,t)}function PN(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function FN(e){return e!=null&&!W(e)&&(e={isIgnore:e}),e||{}}function IN(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:n_(t),cursorStyle:t.get(`cursor`)}}function LN(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var RN=function(){function e(e){this.group=new X,this._SymbolCtor=e||MN}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=FN(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=IN(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);PN(e,i,r,t)&&LN(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!PN(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Xh(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);PN(t,s,i,e)?(o||=LN(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=IN(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=FN(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(PN(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function zN(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=BN(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=z(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return xD(t,d[0])&&(f=!0,d[0]=p),xD(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function BN(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:An(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function VN(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function HN(e,t){return!isFinite(e)||!isFinite(t)}var UN=typeof Float32Array<`u`?Float32Array:void 0,WN=typeof Float64Array<`u`?Float64Array:void 0;function GN(e){return KN({ctor:UN},e).arr}function KN(e,t){var n=e.arr,r=e.ctor;if(t>Xc&&(t=Xc),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function qN(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function JN(e,t,n,r,i,a,o,s){for(var c=qN(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=zN(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=VN(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,M=GN(ee),te=GN(ee),ne=GN(ee),re=GN(ee),ie=[],y=0;y<m.length;y++){var ae=m[y],oe=y*2,se=ae*2;M[oe]=l[se],M[oe+1]=l[se+1],te[oe]=u[se],te[oe+1]=u[se+1],ne[oe]=d[se],ne[oe+1]=d[se+1],re[oe]=f[se],re[oe+1]=f[se+1],ie[y]=p[ae]}return{current:M,next:te,stackedOnCurrent:ne,stackedOnNext:re,status:ie}}var YN=Math.min,XN=Math.max;function ZN(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(HN(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;HN(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||HN(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,M=C-v,te=void 0,ne=void 0;if(s===`x`){te=Math.abs(A),ne=Math.abs(j);var re=E>0?1:-1;p=_-re*te*o,m=v,O=_+re*ne*o,k=v}else if(s===`y`){te=Math.abs(ee),ne=Math.abs(M);var ie=D>0?1:-1;p=_,m=v-ie*te*o,O=_,k=v+ie*ne*o}else te=Math.sqrt(A*A+ee*ee),ne=Math.sqrt(j*j+M*M),T=ne/(ne+te),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=YN(O,XN(S,_)),k=YN(k,XN(C,v)),O=XN(O,YN(S,_)),k=XN(k,YN(C,v)),E=O-_,D=k-v,p=_-E*te/ne,m=v-D*te/ne,p=YN(p,XN(l,_)),m=YN(m,XN(u,v)),p=XN(p,YN(l,_)),m=XN(m,YN(u,v)),E=_-p,D=v-m,O=_+E*ne/te,k=v+D*ne/te}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var QN=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),$N=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new QN},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&HN(n[i*2-2],n[i*2-1]);i--);for(;r<i&&HN(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=ZN(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Qd.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?ya(i,u,f,m,e,s):ya(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?_a(a,d,p,h,b):_a(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(wf),eP=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(QN),tP=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new eP},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&HN(n[a*2-2],n[a*2-1]);a--);for(;i<a&&HN(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=ZN(e,n,i,a,a,1,t.smooth,o,t.connectNulls);ZN(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(wf);function nP(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Rf({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=H(i)?function(e){i(e,d)}:null;Zh(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function rP(e,t,n){var r=e.getArea(),i=Uc(r.r0,1),a=Uc(r.r,1),o=new hh({shape:{cx:Uc(e.cx,1),cy:Uc(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Zh(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function iP(e,t,n,r,i){return e?e.type===`polar`?rP(e,t,n):e.type===`cartesian2d`?nP(e,t,n,r,i):null:null}function aP(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function oP(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function sP(e,t){return e.type===t}function cP(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`&&!!e.getViewRect}function lP(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||q(e,`text`)))}function uP(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},q(r,`text`)&&(o.text=r.text),q(r,`rich`)&&(o.rich=r.rich),q(r,`textFill`)&&(o.fill=r.textFill),q(r,`textStroke`)&&(o.stroke=r.textStroke),q(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),q(r,`fontSize`)&&(o.fontSize=r.fontSize),q(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),q(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=q(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),q(r,`textPosition`)&&(i.position=r.textPosition),q(r,`textOffset`)&&(i.offset=r.textOffset),q(r,`textRotation`)&&(i.rotation=r.textRotation),q(r,`textDistance`)&&(i.distance=r.textDistance)}return dP(o,e),R(o.rich,function(e){dP(e,e)}),{textConfig:i,textContent:a}}function dP(e,t){t&&(t.font=t.textFont||t.font,q(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),q(t,`textAlign`)&&(e.align=t.textAlign),q(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),q(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),q(t,`textWidth`)&&(e.width=t.textWidth),q(t,`textHeight`)&&(e.height=t.textHeight),q(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),q(t,`textPadding`)&&(e.padding=t.textPadding),q(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),q(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),q(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),q(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),q(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),q(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),q(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function fP(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||Q.color.neutral99;pP(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||Q.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||Q.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,R(t.rich,function(e){pP(e,e)}),r}function pP(e,t){t&&(q(t,`fill`)&&(e.textFill=t.fill),q(t,`stroke`)&&(e.textStroke=t.fill),q(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),q(t,`font`)&&(e.font=t.font),q(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),q(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),q(t,`fontSize`)&&(e.fontSize=t.fontSize),q(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),q(t,`align`)&&(e.textAlign=t.align),q(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),q(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),q(t,`width`)&&(e.textWidth=t.width),q(t,`height`)&&(e.textHeight=t.height),q(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),q(t,`padding`)&&(e.textPadding=t.padding),q(t,`borderColor`)&&(e.textBorderColor=t.borderColor),q(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),q(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),q(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),q(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),q(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),q(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),q(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),q(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),q(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),q(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function mP(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function hP(e){for(var t=iu(),n=iu(),r=0;r<e.length;){var i=e[r++],a=e[r++];HN(i,a)||(au(t,i),au(n,a))}return[t,n]}function gP(e,t){var n=hP(e),r=n[0],i=n[1],a=hP(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function _P(e){return An(e)?e:e?.5:0}function vP(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=GN(r*2),a=0;a<r;a++){var o=VN(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yP(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;HN(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function bP(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:to((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function xP(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=z(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=bP(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;R(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Ph(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function SP(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&CP(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(e){e.tick.offInterval||(s[HO(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function CP(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(MN.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function wP(e){for(var t=e.length/2;t>0&&HN(e[t*2-2],e[t*2-1]);t--);return t-1}function TP(e,t){return[e[t*2],e[t*2+1]]}function EP(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!HN(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function DP(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Sp.length;t++)if(e.get([Sp[t],`endLabel`,`show`]))return!0;return!1}function OP(e,t,n,r){if(sP(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=DP(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=nP(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return rP(t,n,r)}function kP(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var AP=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new X,t=new RN;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=B(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=zN(r,a,_),y=g&&vP(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&SP(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=xP(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=yP(y,c,r,w,x),c=yP(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Vv(E)),m.setClipPath(OP(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Vv(E));var D=m.getClipPath();D?Zh(D,{shape:OP(this,r,!1,e).shape},e):m.setClipPath(OP(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!mP(this._stackedOnPoints,y)||!mP(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=yP(y,c,r,w,x),c=yP(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(L(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),vm(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}rp(f).seriesIndex=e.seriesIndex,mm(f,k,A,j);var M=_P(e.get(`smooth`)),te=e.get(`smoothMonotone`);if(f.setShape({smooth:M,smoothMonotone:te,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(L(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=_P(ne.get(`smooth`))),p.setShape({smooth:M,stackedOnSmooth:re,smoothMonotone:te,connectNulls:x}),vm(p,e,`areaStyle`),rp(p).seriesIndex=e.seriesIndex,mm(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`),se=oe===!0||ae===!0||ae===`line`,ce=oe===!0||ae===!0||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,ce)},t.prototype.packEventData=function(e,t,n){rp(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Hl(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(HN(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new MN(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else zS.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Hl(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else zS.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Bp(this._polyline,e),t&&Bp(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new $N({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new tP({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);H(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=H(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=H(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(DP(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Uf({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=wP(o);c>=0&&(t_(a,n_(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?AN(i,e):jN(i,n)},enableTextSetter:!0},kP(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=EP(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=TP(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=tu(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=TP(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=f_(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=JN(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=yP(u.stackedOnCurrent,u.current,n,i,o),d=yP(u.current,null,n,i,o),m=yP(u.stackedOnNext,u.next,n,i,o),p=yP(u.next,null,n,i,o)),gP(d,p)>3e3||c&&gP(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Xh(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Xh(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(zS);function jP(e,t){return{seriesType:e,plan:IS(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=z(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);xD(n,o[0])&&(o[0]=c),xD(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&GN(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var MP={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},NP=function(e){return Math.round(e.length/2)};function PP(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;U(i)?p=MP[i]:H(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,NP))}}}}}function FP(e){e.registerChartView(AP),e.registerSeriesModel(kN),e.registerLayout(jP(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,PP(`line`))}var IP=function(e){P(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(EA),LP=null;function RP(e){LP||=e}function zP(){return LP}var BP=`expandAxisBreak`,VP=`collapseAxisBreak`,HP=`toggleAxisBreak`,UP=`axisbreakchanged`,WP={type:BP,event:UP,update:`update`,refineEvent:qP},GP={type:VP,event:UP,update:`update`,refineEvent:qP},KP={type:HP,event:UP,update:`update`,refineEvent:qP};function qP(e,t,n,r){var i=[];return R(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function JP(e){e.registerAction(WP,t),e.registerAction(GP,t),e.registerAction(KP,t);function t(e,t){var n=[],r=Gl(t,e);function i(t,i){R(r[t],function(t){R(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(L((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var YP=Math.PI,XP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],ZP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],QP=Ul(),$P=Ul(),eF=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function tF(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=TF(e.axisName)&&LO(e.nameLocation);R(r,function(e){var t=aj(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?ci(nF,n.transform):ni(nF),t.transform&&ii(nF,nF,t.transform),Y.copy(rF,t.localRect),rF.applyTransform(nF),s?s.union(rF):Y.copy(s=new Y(0,0,0,0),rF))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Y(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var nF=ti(),rF=new Y(0,0,0,0),iF=function(e,t,n,r,i,a){if(LO(e.nameLocation)){var o=a.stOccupiedRect;o&&aF(cj({},o,a.transGroup.transform),r,i)}else oF(a.labelInfoList,a.dirVec,r,i)};function aF(e,t,n){var r=new J;hj(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&lj(t,r)}function oF(e,t,n,r){for(var i=J.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||aF(s,n,r)}}var sF=function(){function e(e,t,n,r){this.group=new X,this._axisModel=e,this._api=t,this._local={},this._shared=r||new eF(iF),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=G(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=G(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:r,nameLocation:zn(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:TF(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new X({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new J(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},R(cF,function(r){e[r]&&lF[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Zc(t-e),i,a;return Qc(r)?(a=n>0?`top`:`bottom`,i=`center`):Qc(r-YP)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<YP?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),cF=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],lF={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(br(u,u,l),br(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Y_(r.axis.scale))zP().buildAxisBreakLine(r,i,a,m);else{var h=new Eh(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));vg(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);U(g)&&(g=[g,g]),(U(_)||An(_))&&(_=[_,_]);var v=cw(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=ow(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){vF(t,i,s)&&uF(e,t,n,r,i,a,o,tA.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){vF(t,i,s)&&uF(e,t,n,r,i,a,o,tA.determine);var c=gF(e,i,a,r);pF(e,t.labelLayoutList,c),_F(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(TF(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new J(0,0),_=new J(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=ti();_.transform(oi(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*YP/180);var b,x;LO(u)?b=sF.innerTextLayout(e.rotation,y??e.rotation,d):(b=dF(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Rn(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Uf({x:g.x,y:g.y,rotation:b.rotation,silent:sF.isLabelSilent(r),style:r_(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Lg({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=sF.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,rp(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=aj({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:LO(u)?XP[E]:ZP[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function uF(e,t,n,r,i,a,o,s){bF(t)||yF(e,t,i,s,r,o);var c=t.labelLayoutList;SF(e,r,c,a),DF(r,e.rotation,c);var l=e.optionHideOverlap;fF(r,c,l),l&&mj(wn(c,function(e){return e&&!e.label.ignore})),tF(e,n,r,c)}function dF(e,t,n,r){var i=Zc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Qc(i-YP/2)?(o=c?`bottom`:`top`,a=`center`):Qc(i-YP*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<YP*1.5&&i>YP/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function fF(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(FO(r))return;function a(e,a,o){var s=aj(t[a]),c=aj(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=QP(s.label).labelInfo.tick;if(GD(l)&&u.notNice||qD(l)&&u.offInterval){mF(s.label);return}}if(e===!1||s.suggestIgnore){mF(s.label);return}if(c.suggestIgnore){mF(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=uj({marginForce:f},s),c=uj({marginForce:f},c)}hj(s,c,null,{touchThreshold:d})&&mF(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function pF(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=$P(r),a=QP(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){mF(r);return}}})}function mF(e){e&&(e.ignore=!0)}function hF(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(br(o,o,t),br(s,s,t));var u=new Eh({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});vg(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=$P(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function gF(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=hF(i.getTicksCoords(),n.transform,c,L(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function _F(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=L(c.getLineStyle(),L(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=hF(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function vF(e,t,n){if(bF(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),xF(e,null,null,null))}return!0}function yF(e,t,n,r,i,a){var o=i.axis,s=Rn(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new X;n.add(c);var l=nA(r);if(!s||o.scale.isBlank()){xF(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Rn(e.raw.labelRotate,u.get(`rotate`))||0)*YP/180,p=sF.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;R(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=HO(o.scale,n);if(m&&m[f]){var y=m[f];W(y)&&y.textStyle&&(l=new E_(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=G(l.getShallow(`alignMinLabel`,!0),x),C=G(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=G(l.getShallow(`verticalAlignMinLabel`,!0),w),E=G(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Uf({x:0,y:0,rotation:0,silent:sF.isLabelSilent(i),z2:D,style:r_(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:H(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=QP(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Lg({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=sF.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),rp(O).eventData=A,j&&EF(i,a,O,j)}h.push(O),c.add(O)}),xF(t,z(h,function(e){return{label:e,priority:QP(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function bF(e){return!!e.labelLayoutList}function xF(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function SF(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);R(n,function(n,a){var o=aj(n);if(o){var s=o.label,c=QP(s);o.suggestIgnore=s.ignore,s.ignore=!1,Is(CF,wF);var l=t.axis;CF.x=l.dataToCoord(HO(l.scale,c.labelInfo.tick)),CF.y=e.labelOffset+e.labelDirection*i,CF.rotation=c.layoutRotation,r.add(CF),CF.updateTransform(),r.remove(CF),CF.decomposeTransform(),Is(s,CF),s.markRedraw(),rj(o,!0),aj(o)}})}var CF=new Rf,wF=new Rf;function TF(e){return!!e}function EF(e,t,n,r){n.on(`click`,function(n){var i={type:BP,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function DF(e,t,n){var r=K_();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&QP(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&R(i,function(r){zP().adjustBreakLabelPair(e.axis.inverse,t,[aj(n[r[0]]),aj(n[r[1]])])})}}function OF(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Rn(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function kF(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function AF(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,ql).models[0]}),t}function jF(e,t,n,r,i,a){for(var o=OF(e,n),s=!1,c=!1,l=0;l<t.length;l++)UD(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new sF(n,r,o,i)}function MF(e,t,n){var r=OF(t,n);e.updateCfg(r)}function NF(e){return e.dim+`_`+e.index}function PF(){ok(`liPosMinGap`,FF)}function FF(e,t,n){var r=K(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Ox(u);function f(n){tk(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}KN(IF,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||kx(d,a))&&(l&&(a=c.transformIn(a,null)),IF.arr[m++]=a)}});var h=IF.typed?IF.arr.subarray(0,m):(IF.arr.length=m,IF.arr);IF.typed?h.sort():Wc(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=dl(g)?g:m>0?-2:-1,n.serUids=r}var IF=KN({ctor:WN},50);function LF(e){return function(t,n){var r=SA(t,{fromStat:{key:e}});if(dl(r.w2))return[-r.w2/2,r.w2/2]}}function RF(e){return e+`|&`}function zF(e,t){return e+`|&`+t}function BF(e){return PF(),{liPosMinGap:!qD(e.scale)}}var VF=`pictorialBar`;function HF(e,t,n,r){uk(e,{key:t,seriesType:n,coordSysType:r,getMetrics:BF})}function UF(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var WF={left:0,right:0,top:0,bottom:0},GF=[`25%`,`25%`],KF=`cartesian2d`,qF=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=hy(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&my(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&my(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:WF,outerBoundsContain:`all`,outerBoundsClampWidth:GF[0],outerBoundsClampHeight:GF[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(vy),JF=pu(),YF=`__ec_stack_`;function XF(e){return e.get(`stack`)||YF+e.seriesIndex}function ZF(e){if(qD(e.axis.scale)){for(var t=SA(e.axis),n=[],r=0;r<e.count;r++)n.push(L({stackId:YF+r},e));for(var i=eI({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[YF+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function QF(e,t){var n=$F(e,t);return n.columnMap=eI(n),n}function $F(e,t){var n=zF(t,KF),r=[],i=SA(e,{fromStat:{key:n},min:1});return ek(e,n,function(e){r.push({barWidth:Z(e.get(`barWidth`),i.w),barMaxWidth:Z(e.get(`barMaxWidth`),i.w),barMinWidth:Z(e.get(`barMinWidth`)||(rI(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:XF(e)})}),{bandWidthResult:i,seriesInfo:r}}function eI(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;q(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Dc(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Oc(35-o.length*4,15)+`%`;var c=Z(i,t),l=Z(a,1),u=(n-c)/(r+(r-1)*l);u=Oc(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Dc(o,i)),a&&(o=Oc(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Dc(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Oc(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function tI(e){return{seriesType:e,overallReset:function(t){var n=zF(e,KF);rk(t,n,function(t){var r=QF(t,e);ek(t,n,function(e){var t=r.columnMap[XF(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function nI(e){return{seriesType:e,plan:IS(),reset:function(e){if(kF(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=xD(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(UF(i))),p=rI(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&GN(r*3),c=p&&s&&GN(r*3),l=p&&GN(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,kc(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,kc(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function rI(e){return e.pipelineContext&&e.pipelineContext.large}function iI(e){return LF(zF(e,KF))}function aI(e){JF(e,function(){function t(t){var n=zF(t,KF);HF(e,n,t,KF),Tk(n,iI(t))}t(`bar`),t(`pictorialBar`)})}var oI=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return TD(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)R(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},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`,defaultBarGap:`10%`},t}(ES);ES.registerClass(oI);var sI=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return TD(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=vu(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=j_(oI.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(oI),cI=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}(),lI=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new cI},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(wf);function uI(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Xs(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+fI(m,s+_,!1),x=u+p*y(m)+pI(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+fI(m,-s+_,!1),x=u+p*y(m)+pI(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+fI(h,s+_,!0),x=u+p*y(h)+pI(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+fI(h,-s+_,!0),x=u+p*y(h)+pI(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Xs(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function dI(e,t,n,r){if(An(r)){e.setTextConfig({rotation:r});return}else if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function fI(e,t,n){return t*Math.sin(e)*(n?-1:1)}function pI(e,t,n){return t*Math.cos(e)*(n?1:-1)}function mI(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;V(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(r,function(e){return Ys(e,i)})}}var hI=Math.max,gI=Math.min,_I=function(e){P(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=bI(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=EI[s.type](a,e);if(!t)return null;var n=LI(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=EI[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!TI[s.type](r)))){var o=!1;f&&(o=vI[s.type](p,r));var g=yI[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),kI(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?xI(d,u,g,r,t,l,!1,!1):Zh(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=EI[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=EI[s.type](a,t),E=II(l,T,s);Xh(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!TI[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=vI[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&tg(D,e,n),D=null),D?ng(D):D=yI[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=f_(k);A.prevValue!=null&&(A.prevValue=A.value)}}else kI(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?xI(d,u,D,C,t,l,!0,x):Xh(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&tg(n,e,t)}).execute();var C=this._backgroundGroup||=new X;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),NI(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),NI(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&iP(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:z(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){tg(t,e,rp(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(zS),vI={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=hI(t.x,e.x),s=gI(t.x+t.width,i),c=hI(t.y,e.y),l=gI(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=gI(t.r,e.r),a=hI(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},yI={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Rf({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?lI:hh,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=uI(OI(i),{isRoundCap:l===lI}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Xh:Zh)(u,{shape:p},a)}return u}};function bI(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function xI(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Xh:Zh)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Xh:Zh)(n,{shape:l},u,i)}function SI(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var CI=[`x`,`y`,`width`,`height`],wI=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],TI={cartesian2d:function(e){return!SI(e,CI)},polar:function(e){return!SI(e,wI)}},EI={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?AI(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function DI(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function OI(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function kI(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,mI(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?RI(i,a.coordinateSystem):zI(i,a.coordinateSystem),p=n_(r);t_(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:AN(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,dI(e,h===`outside`?f:h,OI(o),r.get([`label`,`rotate`]))}p_(m,p,a.getRawValue(n),function(e){return jN(t,e)});var g=r.getModel([`emphasis`]);mm(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),vm(e,r),DI(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function AI(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var jI=function(){function e(){}return e}(),MI=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new jI},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(wf);function NI(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?_u(e):0;if(l){var d=new MI({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new MI({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,rp(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,PI),f.on(`mousemove`,PI)),n&&n.push(f)}var PI=JS(function(e){var t=this,n=FI(t,e.offsetX,e.offsetY);rp(t).dataIndex=n>=0?n:null},30,!1);function FI(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function II(e,t,n){if(sP(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function LI(e,t,n){return new(e.type===`polar`?hh:Rf)({shape:II(t,n,e),silent:!0,z2:0})}function RI(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function zI(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function BI(e){e.registerChartView(_I),e.registerSeriesModel(sI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tI(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nI(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,PP(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),aI(e)}function VI(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function HI(e,t,n){t=V(t)&&{coordDimensions:t}||I({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=fD(r,t).dimensions,a=new dD(i,e);return a.initData(r,n),a}var UI=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),WI=Ul(),GI=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UI(B(this.getData,this),B(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return HI(this,{coordDimensions:[`value`],encodeDefaulter:On(My,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=WI(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Jc(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){Sl(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,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%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(ES);qv({fullType:GI.type,getCoord2:function(e){return e.getShallow(`center`)}});var KI=Math.PI/180;function qI(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;YI(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}fj(e,1,c,c+o)&&d(e)}function JI(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;$I(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!$I(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,YI(m,g,!1)}}qI(l,t,n,r,1,i,a,o,s,d),qI(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!$I(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function YI(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}XI(a,r)}}}function XI(e,t){QI.rect=e,oj(QI,t,ZI)}var ZI={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},QI={};function $I(e){return e.position===`center`}function eL(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*KI,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=Z(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=Z(T,l);var E=w.get(`length2`);if(E=Z(E,l),Math.abs(d.endAngle-d.startAngle)<o){R(h.states,p),h.ignore=!0,g&&(R(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,ee,M;r=d.cx,i=d.cy;var te=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,M=`center`;else{var ne=(te?(d.r+d.r0)/2*O:d.r*O)+r,re=(te?(d.r+d.r0)/2*k:d.r*k)+i;if(A=ne+O*3,j=re+k*3,!te){var ie=ne+O*(T+c-d.r),ae=re+k*(T+c-d.r),oe=ie+(O<0?-1:1)*E,se=ae;A=x===`edge`?O<0?u+S:u+l-S:oe+(O<0?-b:b),j=se,ee=[[ne,re],[ie,ae],[oe,se]]}M=te?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var ce=Math.PI,le=0,ue=v.get(`rotate`);if(An(ue))le=ce/180*ue;else if(y===`center`)le=0;else if(ue===`radial`||ue===!0)le=O<0?-D+ce:-D;else if(ue===`tangential`||ue===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var de=Math.atan2(O,k);de<0&&(de=ce*2+de),k>0&&ue!==`tangential-noflip`&&(de=ce+de),le=de-ce}if(a=!!le,h.x=A,h.y=j,h.rotation=le,h.setStyle({verticalAlign:`middle`}),te){h.setStyle({align:M});var fe=h.states.select;fe&&(fe.x+=h.x,fe.y+=h.y)}else{var pe=new Y(0,0,0,0);XI(pe,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new J(O,k),linePoints:ee,textAlign:M,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:pe,unconstrainedWidth:pe.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:te})}}),!a&&e.get(`avoidLabelOverlap`)&&JI(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(R(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(R(v.states,p),v.ignore=!0):(qA(x,g.minTurnAngle),JA(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new J(x[0][0],x[0][1])})}}}var tL=Math.PI*2,nL=Math.PI/180,rL=yu(`pie`,iL);function iL(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=oy(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*nL,d=e.get(`endAngle`),f=e.get(`padAngle`)*nL;d=d===`auto`?u-tL:-d*nL;var p=e.get(`minAngle`)*nL+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;Zd(S,!_),u=S[0],d=S[1];var w=aL(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?Rc(e,b,[c,s]):s}),O=i}),E<tL&&m)if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var aL=Ul(),oL=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new Uf;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=I(mI(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(Zh(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,Zh(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Xh(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),Zh(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else ng(i),Xh(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),vm(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=I({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},mI(s.getModel(`itemStyle`),c)),I(i.ensureState(`select`),{x:p,y:m,shape:mI(o.getModel([`select`,`itemStyle`]),c)}),I(i.ensureState(`blur`),{shape:mI(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&I(g.ensureState(`select`),{x:p,y:m}),I(_.ensureState(`select`),{x:p,y:m}),mm(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;t_(r,n_(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Ch,this.setTextGuideLine(d)),ZA(this,QA(i),{stroke:s,opacity:zn(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(hh),sL=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new hh({shape:F(aL(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new oL(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){tg(a.getItemGraphicEl(t),e,t)}).execute(),eL(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(zS);function cL(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(An(r)&&!isNaN(r)&&r<0)})}}}function lL(e){e.registerChartView(sL),e.registerSeriesModel(GI),FC(`pie`,e.registerAction),e.registerLayout(rL),e.registerProcessor(VI(`pie`)),e.registerProcessor(cL(`pie`))}var uL=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return TD(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],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:Q.color.primary}},universalTransition:{divideShape:`clone`}},t}(ES),dL=4,fL=function(){function e(){}return e}(),pL=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new fL},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<dL,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Y(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(wf),mL=function(){function e(){this.group=new X}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new pL({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=ow(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<dL;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=rp(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),hL=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,gL(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),_u(t),gL(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=jP(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(gL(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new mL:new RN,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(zS);function gL(e){return{clipShape:oP(e)}}var _L=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,ql).models[0]},t.type=`cartesian2dAxis`,t}(vy);xn(_L,WO);var vL={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:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},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,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},yL=gn({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},vL),bL=gn({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},vL),xL={category:yL,value:bL,time:gn({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},bL),log:L({logBase:10},bL)};function SL(e,t,n,r){R(TO,function(i,a){var o=gn(gn({},xL[a],!0),r,!0),s=function(e){P(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=py(this),r=n?hy(e):{};gn(e,t.getTheme().get(a+`Axis`)),gn(e,this.getDefaultOption()),e.type=CL(e),n&&my(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=AD.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=zP();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,CL)}function CL(e){return e.type||(e.data?`category`:`value`)}var wL=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),wn(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),TL=[`x`,`y`];function EL(e){return(e.type===`interval`||e.type===`time`)&&!Y_(e)}var DL=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=KF,t.dimensions=TL,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!EL(e)||!EL(t))){var n=LD(e,null),r=LD(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=ci([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Y(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return br(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return br(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Y(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(wL);function OL(e,t){var n=e.scale,r=e.model,i=Dk(n,r,r.ecModel,e,null),a=KD(n),o=KD(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=kc(l[0].value-l[1].value),g=kc(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=QD(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*Oc(c,2):JD(E),D=YD(E)}function j(){w=Uc(k-E*f,D)}function ee(){T=Uc(O+E*p,D)}function M(){k=f?Uc(w+E*f,D):w}function te(){O=p?Uc(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var ne=e.getExtent(),re=kc(ne[1]-ne[0]);D=qc([T,w],re,.5/m),M(),te(),dl(D)&&(E=Uc(E,D))}else{var ie=C[1]-C[0];E=a?Oc(tl(ie),1):rl(ie/m,2),D=YD(E),b[0]?(w=C[0],A(function(){if(M(),O=Uc(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(te(),k=Uc(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Uc(Mc(C[0]/E)*E,D),O=Uc(jc(C[1]/E)*E,D);var e=Ac((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=jc(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Uc(k-E*n[0],D),O=Uc(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}VO(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var kL=[[3,1],[0,2]],AL=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=TL,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){xk(e,1);var t=e.scale;qD(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=En(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):Nk(i)}R(n,function(e){FL(e,e.__alignTo)?Nk(e):OL(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){ML(n,`y`,e,i)}),R(n.y,function(e){ML(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=uy(e,t),i=this._rect=sy(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(LL(a,i),!n){var c=HL(i,o,a,s,t),l=void 0;if(s)zL?(zL(this._axesList,i),LL(a,i)):l=VL(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=WL(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=VL(d,f,p,i,a,c,r))}UL(i,a,tA.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}W(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,ql).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,ql).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,yn(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,R(o.x,function(t,n){R(o.y,function(i,a){var o=`x`+n+`y`+a,s=new DL(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),PL(o.x),PL(o.y);function c(t){return function(n,r){if(jL(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=DO(n),u=new IP(t,OO(n,l,!0),[0,0],l,c);u.onBand=UO(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return R(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);yn(t,i)<0&&t.push(i),yn(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),R(o._axesList,function(t){bk(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;Zv({targetModel:e,coordSysType:KF,coordSysProvider:r});function r(){var r=AF(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(ck(t,e,KF),ck(n,e,KF))},this),r},e.dimensions=TL,e.dimIdxMap=JE(TL),e}();function jL(e,t){return e.getCoordSysModel()===t}function ML(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)NL(s,i[c])&&(a=i[c]);else for(var l in i)if(q(i,l)&&NL(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function NL(e,t){if(!t)return!1;var n=t.scale,r=kO(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&jO(t)&&(i=!1),i}function PL(e){for(var t=En(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];UD(a.scale)&&zO(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function FL(e,t){return Y_(e.scale)||Y_(t.scale)||t.scale.getTicks().length<2}function IL(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function LL(e,t){R(e.x,function(e){return RL(e,t.x,t.width)}),R(e.y,function(e){return RL(e,t.y,t.height)})}function RL(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),IL(e,t)}var zL;function BL(e){zL=e}function VL(e,t,n,r,i,a,o){UL(r,i,tA.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Tn(s,function(e){return e>0})==null;return Pg(r,s,!0,!0,n),LL(i,r),c;function l(e){R(i[og[e]],function(t){if(RO(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(HO(t.scale,QP(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=LO(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[og[n]]-t[og[n]],a=t[sg[n]]+t[og[n]]-(e[sg[n]]+e[og[n]]);i=d(i,1-r),a=d(a,r);var o=kL[n][0],c=kL[n][1];s[o]=Oc(s[o],i),s[c]=Oc(s[c],a)}function d(e,t){return e>0&&!Ln(t)&&t>1e-4&&(e/=t),e}}function HL(e,t,n,r,i){var a=new eF(GL);return R(n,function(n){return R(n,function(n){if(RO(n.model)){var o=!r;n.axisBuilder=jF(e,t,n.model,i,a,o)}})}),a}function UL(e,t,n,r,i,a){var o=n===tA.determine;R(t,function(t){return R(t,function(t){RO(t.model)&&(MF(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[og[1-t]]=e[sg[t]]<=a.refContainer[sg[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){RO(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function WL(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=sy(e.get(`outerBounds`,!0)||WF,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||yn([`all`,`axisLabel`],a)<0?`all`:a,s=[Bc(G(e.get(`outerBoundsClampWidth`,!0),GF[0]),t.width),Bc(G(e.get(`outerBoundsClampHeight`,!0),GF[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var GL=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;iF(e,t,n,r,i,a),LO(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&oF(e.labelInfoList,e.dirVec,r,i)})};function KL(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return qL(n,e,t),n.seriesInvolved&&YL(n,e),n}function qL(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=tR(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),On(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,On(p,!d||`cross`,u)),d&&R(f.otherAxes,On(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!eR(d))){s??=d.get(`triggerTooltip`),d=r?JL(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=tR(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:eR(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=XL(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function JL(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=F(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new E_(c,n,r))}function YL(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[tR(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function XL(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(ZL(a[r+`AxisId`],n.id)||ZL(a[r+`AxisIndex`],n.componentIndex)||ZL(a[r+`AxisName`],n.name))return i}}function ZL(e,t){return e===`all`||V(e)&&yn(e,t)>=0||e===t}function QL(e){var t=$L(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=eR(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function $L(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[tR(e)]}function cee(e){var t=$L(e);return t&&t.axisPointerModel}function eR(e){return!!e.get([`handle`,`show`])}function tR(e){return e.type+`||`+e.id}var nR={},rR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&QL(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=cee(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){nR[e]=t},t.getAxisPointerClass=function(e){return e&&nR[e]},t.type=`axis`,t}(FS),iR=Ul();function aR(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=iR(e).splitAreaColors,f=K(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=V(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Rf({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:L({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}iR(e).splitAreaColors=f}}}function oR(e){iR(e).splitAreaColors=null}var sR=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],cR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new X,this.group.add(this._axisGroup),RO(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),R(sR,function(e){t.get([e,`show`])&&lR[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Eg(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){oR(this)},t.type=`cartesianAxis`,t}(rR),lR={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=V(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Eh({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:L({stroke:c[x]},_),silent:!0});vg(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Eh({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});vg(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){aR(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=zP(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},uR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(cR),dR=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=uR.type,t}return t.type=`yAxis`,t}(cR),fR=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Rf({shape:e.coordinateSystem.getRect(),style:L({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(FS),pR={offset:0};function mR(e){e.registerComponentView(fR),e.registerComponentModel(qF),e.registerCoordinateSystem(`cartesian2d`,AL),SL(e,`x`,_L,pR),SL(e,`y`,_L,pR),e.registerComponentView(uR),e.registerComponentView(dR),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var hR=`single`,gR=`singleAxis`,_R=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=gR,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}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(vy);xn(_R,WO.prototype);function vR(e,t){var n=e.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===`cartesian2d`&&a===`ordinal`||r===`single`,s=t.model.get(`jitter`)>0;return o&&s}var yR=Ul();function bR(e,t,n,r){if(e instanceof IP&&e.scale.type!==`ordinal`)return n;var i=e.model,a=i.get(`jitter`);if(!(a>0))return n;var o=i.get(`jitterOverlap`),s=i.get(`jitterMargin`)||0,c=qD(e.scale)?SA(e).w:null;return o?xR(n,a,c,r):SR(e,t,n,r,a,s)}function xR(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function SR(e,t,n,r,i,a){var o=yR(e);o.items||=[];var s=o.items,c=CR(s,t,n,r,i,a,1),l=CR(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=qD(e.scale)?SA(e).w:null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?xR(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function CR(e,t,n,r,i,a,o){for(var s=n,c=0;c<e.length;c++){var l=e[c],u=t-l.fixedCoord,d=s-l.floatCoord,f=u*u+d*d,p=r+l.r+a;if(f<p*p){var m=l.floatCoord+Math.sqrt(p*p-u*u)*o;if(Math.abs(m-n)>i/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m<s){s=m,c=-1;continue}}}return s}function wR(){return{seriesType:`scatter`,plan:IS(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==`cartesian2d`&&t.type!==`single`)){var n=t.getBaseAxis&&t.getBaseAxis();if(n&&vR(e,n)){var r=n.dim,i=n.orient,a=i===`horizontal`&&n.type!==`category`||i===`vertical`&&n.type===`category`,o=r===`y`||r===`single`&&a,s=r===`x`||r===`single`&&!a;if(!(!o&&!s))return{progress:function(e,t){for(var r=t.getLayout(`points`),i=!!r,a=e.start;a<e.end;a++){var c=i?(a-e.start)*2:-1,l=i?[r[c],r[c+1]]:t.getItemLayout(a);if(l){var u=t.getItemVisual(a,`symbolSize`),d=u instanceof Array?(u[1]+u[0])/2:u;if(o){var f=bR(n,l[0],l[1],d/2);i?r[c+1]=f:l[1]=f}else if(s){var f=bR(n,l[1],l[0],d/2);i?r[c]=f:l[0]=f}}}}}}}}}}function TR(e){PE(mR),e.registerSeriesModel(uL),e.registerChartView(hL),e.registerLayout(jP(`scatter`))}function ER(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,wR())}function DR(e){var t=e.polar;if(t){V(t)||(t=[t]);var n=[];R(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],V(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}R(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var OR=`radar`,kR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UI(B(this.getData,this),B(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return HI(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=vS(this,e);return aS(`section`,{header:o,sortBlocks:!0,blocks:z(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return aS(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(z(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.`+OR,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}(ES),AR=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OR,t}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=sw(e.getItemVisual(t,`symbolSize`)),i=ow(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),ig[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return z(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new xh,i=new Ch,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),Zh(r,o,e,t),Zh(i,o,e,t);var s=new X,u=new X;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),ng(s),ng(i),Xh(i,u,e),Xh(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(L(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),vm(r,n,`lineStyle`),vm(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,R([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=F(l)})}),o.useStyle(L(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof Af){var r=e.style;e.useStyle(I({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),t_(e,n_(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),mm(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=OR,t}(zS),jR=xL.value,MR=`radar`,NR=MR,PR=MR;function FR(e,t){return L({show:t},e)}var IR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`clockwise`),r=this.get(`scale`),i=this.get(`axisLine`),a=this.get(`axisTick`),o=this.get(`axisLabel`),s=this.get(`axisName`),c=this.get([`axisName`,`show`]),l=this.get([`axisName`,`formatter`]),u=this.get(`axisNameGap`),d=this.get(`triggerEvent`),f=z(this.get(`indicator`)||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=L({color:f.color},s));var m=gn(F(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(U(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else H(l)&&(m.name=l(m.name,m));var g=new E_(m,null,this.ecModel);return xn(g,WO.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=O_(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=NR,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:gn({lineStyle:{color:Q.color.neutral20}},jR.axisLine),axisLabel:FR(jR.axisLabel,!1),axisTick:FR(jR.axisTick,!1),splitLine:FR(jR.splitLine,!0),splitArea:FR(jR.splitArea,!0),indicator:[]},t}(vy),LR=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;R(z(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new sF(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=V(u)?u:[u],p=V(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new Xm({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new _h({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=z(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),z(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new Ch({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new xh({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();R(h,function(e,t){this.group.add(gg(e,{style:L({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),R(m,function(e,t){this.group.add(gg(e,{style:L({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(FS),RR=function(e){P(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(EA),zR=function(){function e(e,t,n){this.type=MR,this.dimensions=[],this._model=e,this._indicatorAxes=z(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new RR(n,new iO);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=uy(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=Z(r[0],n.width)+n.x,this.cy=Z(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(U(o)||An(o))&&(o=[0,o]),this.r0=Z(o[0],a),this.r=Z(o[1],a);var s=i?-1:1;R(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+s*t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model,i=eO(r.get(`splitNumber`),5),a=new iO;a.setExtent(0,i),a.setConfig({interval:1}),R(n,function(e){xk(e,1),OL(e,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(NR,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(PR,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&R(t.getIndicatorAxes(),function(t){ck(t,e,MR)})}}),r},e.dimensions=[],e}();function BR(e){e.registerCoordinateSystem(`radar`,zR),e.registerComponentModel(IR),e.registerComponentView(LR),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}var VR=yu(OR,HR);function HR(e){e.eachSeriesByType(OR,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();R(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=UR(i)?i:WR(r)})}),t.each(function(e){var i=Tn(n[e],function(e){return UR(e)})||WR(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function UR(e){return!isNaN(e[0])&&!isNaN(e[1])}function WR(e){return[e.cx,e.cy]}function GR(e){PE(BR),e.registerChartView(AR),e.registerSeriesModel(kR),e.registerLayout(VR),e.registerProcessor(VI(`radar`)),e.registerPreprocessor(DR)}var KR=Ul();function qR(e,t,n){KR(e)[t]=n}function JR(e,t,n){var r=KR(e);r[t]===n&&(r[t]=null)}function YR(e,t){return!!KR(e)[t]}SE({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},er);var XR={axisPointer:1,tooltip:1,brush:1};function ZR(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||XR.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Wg(r),o=Wg(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var QR=function(e){P(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=B(n._mousedownHandler,n),i=B(n._mousemoveHandler,n),a=B(n._mouseupHandler,n),o=B(n._mousewheelHandler,n),s=B(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Wg(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:G(c.z2,-1/0)},p=I({},n.triggerInfo);this._opt=L(I({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(nz(t,`mousedown`,r,f),nz(t,`mousemove`,i,f),nz(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(nz(t,`mousewheel`,o,f),nz(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,rz(t,`mousedown`,r),rz(t,`mousemove`,i),rz(t,`mouseup`,a),rz(t,`mousewheel`,o),rz(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(ZR(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Xr(e)||$R(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||YR(t,`globalPan`)||$R(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!sz(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&Yr(e.event),e.__ecRoamConsumed=!0,oz(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!$R(e)){var t=this._zr;if(!Xr(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!$R(e)){var t=sz(`zoomOnMouseWheel`,e,this._opt),n=sz(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(YR(this._zr,`globalPan`)||$R(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(Yr(r.event),r.__ecRoamConsumed=!0,oz(e,t,n,r,i))},t}(Tr);function $R(e){return e.__ecRoamConsumed}var ez=Ul();function tz(e){var t=ez(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function nz(e,t,n,r){for(var i=tz(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),iz(e,t)}function rz(e,t,n){for(var r=tz(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||az(e,t);return}}function iz(e,t){var n=tz(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function az(e,t){var n=tz(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function oz(e,t,n,r,i){i.isAvailableBehavior=B(sz,null,n,r),e.trigger(t,i)}function sz(e,t,n){var r=n[e];return!e||r&&(!U(r)||t.event[r+`Key`])}function cz(e){U(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var lz,uz={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`},dz=En(uz),fz={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},pz=En(fz),mz=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=cz(e);this._defsUsePending=[];var r=new X;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),bz(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;wz(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=Ez(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=Nz(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new X,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Rf({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=lz[o];if(l&&q(lz,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=hz[o];if(f&&q(hz,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new Ef({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});vz(t,n),bz(e,n,this._defsUsePending,!1,!1),xz(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){lz={g:function(e,t){var n=new X;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Rf;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new Xm;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new Eh;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new Qm;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=yz(n));var i=new xh({shape:{points:r||[]},silent:!0});return vz(t,i),bz(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=yz(n));var i=new Ch({shape:{points:r||[]},silent:!0});return vz(t,i),bz(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Af;return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new X;return vz(t,o),bz(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new X;return vz(t,o),bz(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Gm(e.getAttribute(`d`)||``);return vz(t,n),bz(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),hz={lineargradient:function(e){var t=new Ph(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return gz(e,t),_z(e,t),t},radialgradient:function(e){var t=new Fh(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return gz(e,t),_z(e,t),t}};function gz(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function _z(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};jz(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Xa(o);c&&c[3]&&(c[3]*=Ha(s),o=io(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function vz(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},L(t.__inheritedStyle,e.__inheritedStyle))}function yz(e){for(var t=Ez(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function bz(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(kz(e,t),jz(e,o,s),r||Mz(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Cz(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=Cz(a,`stroke`,o.stroke,n)),R([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),R([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=z(Ez(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function xz(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var Sz=/^url\(\s*#(.*?)\)/;function Cz(e,t,n,r){var i=n&&n.match(Sz);if(i){var a=Un(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function wz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var Tz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ez(e){return e.match(Tz)||[]}var Dz=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Oz=Math.PI/180;function kz(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(Dz,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=Ez(o);switch(i||=ti(),s){case`translate`:ai(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:si(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:oi(i,i,-parseFloat(c[0])*Oz,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*Oz);ii(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*Oz);ii(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var Az=/([^\s:;]+)\s*:\s*([^:;]+)/g;function jz(e,t,n){var r=e.getAttribute(`style`);if(r){Az.lastIndex=0;for(var i;(i=Az.exec(r))!=null;){var a=i[1],o=q(uz,a)?uz[a]:null;o&&(t[o]=i[2]);var s=q(fz,a)?fz[a]:null;s&&(n[s]=i[2])}}}function Mz(e,t,n){for(var r=0;r<dz.length;r++){var i=dz[r],a=e.getAttribute(i);a!=null&&(t[uz[i]]=a)}for(var r=0;r<pz.length;r++){var i=pz[r],a=e.getAttribute(i);a!=null&&(n[fz[i]]=a)}}function Nz(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Pz(e,t){return new mz().parse(e,t)}var Fz=K([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),Iz=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=K(),this._freedGraphics=[],this._mapName=e,this._parsedXML=cz(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Rz(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Pz(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Hn(n!=null)}catch(e){throw Error(`Invalid svg format
36
+ `+e.message)}var r=new X;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Y(c,l,u,d)}if(o){var p=Nz(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Rf({shape:s.plain()}));var m=[];return R(t.named,function(e){Fz.get(e.svgNodeTagLower)!=null&&(m.push(e),Lz(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Lz(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function Rz(e){var t=[],n=K();return R(e,function(e){if(e.namedFrom==null){var r=new Jk(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var zz=[126,25],Bz=`南海诸岛`,Vz=[[[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]]],Hz=0;Hz<Vz.length;Hz++)for(var Uz=0;Uz<Vz[Hz].length;Uz++)Vz[Hz][Uz][0]/=10.5,Vz[Hz][Uz][1]/=-10.5/.75,Vz[Hz][Uz][0]+=zz[0],Vz[Hz][Uz][1]+=zz[1];function Wz(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===Bz)return;t.push(new qk(Bz,z(Vz,function(e){return{type:`polygon`,exterior:e}}),zz))}}var Gz={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Kz(e,t){if(e===`china`){var n=Gz[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var qz=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Jz(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:qz[0]})}var Yz=`name`,Xz=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=K(),this._mapName=e,this._specialAreas=n,this._geoJSON=Qz(t)}return e.prototype.load=function(e,t){t||=Yz;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:Zz(r)})}var i=K(),a=[];return R(n.regions,function(t){var n=t.name;e&&q(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new Y(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?Qk(n,e):[]}catch(e){throw Error(`Invalid geoJson format
37
+ `+e.message)}return Wz(t,r),R(r,function(e){var n=e.name;Kz(t,e),Jz(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Zz(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function Qz(e){return U(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var $z=K(),eB={registerMap:function(e,t,n){if(t.svg){var r=new Iz(e,t.svg);$z.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new Xz(e,i,n);$z.set(e,r)}},getGeoResource:function(e){return $z.get(e)},getMapForUser:function(e){var t=$z.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=$z.get(e);if(r)return r.load(t,n)}};function tB(e){return e}var nB=`view`,rB=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=nB,i.dimensions=[`x`,`y`];var a=tB(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=Ps(),o[1]=Ps(),o[2]=Ps(),a.mtRaw=ti(),a.mtRawInv=ti(),a.mtOverall=ti(),a.mtOverallInv=ti(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return sB(null,this)},t.prototype.getViewRect=function(){return cB(null,this)},t.prototype.getRoamTransform=function(){return Ns(tB(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?tB(this).mtRaw:tB(this).mtOverall;return n||=[],r?br(n,e,r):ar(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=tB(this).mtOverallInv;return r?br(n,e,r):ar(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=OB(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=OB(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=tB(this);return Ti(iB,t.dataRect),Di(iB,iB,t.mtOverall),Oi(iB,e[0],e[1])},t.dimensions=[`x`,`y`],t}(Ms),iB=Ci();function aB(e,t){return ri(e||[],tB(t).mtOverall)}function oB(e){return tB(e).zoom}function sB(e,t){return Ti(e||Ci(),tB(t).dataRect)}function cB(e,t){return Ti(e||Ci(),tB(t).viewRect)}function lB(e,t,n){return Is(e||Ps(),tB(t).trans[n])}function uB(e){return!!(e.dataRect&&e.viewRect)}function dB(e,t,n,r){r===1?TB(e,t.trans[0],n):Is(e,n)}function fB(e,t,n){Ns(n,pB),ii(pB,pB,t.mtRawInv),Yg(e,pB)}var pB=ti();function mB(e,t){var n=tB(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=JB(t.getShallow(`zoom`)||1,r)||1,uB(n)&&_B(n)}function hB(e,t,n,r,i){var a=tB(e);a.dataRect=new Y(t,n,r,i),uB(a)&&_B(a)}function gB(e,t,n,r,i){var a=tB(e);a.viewRect=new Y(t,n,r,i),uB(a)&&_B(a)}function _B(e){vB(e),xB(e),CB(e)}function vB(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=Ti(bB,t),t.y=-t.y-t.height),Ei(yB,t,n),Yg(r,yB),i&&(r.scaleY=-r.scaleY);var a=Ns(r,e.mtRaw);ci(e.mtRawInv,a)}var yB=ti(),bB=Ci();function xB(e){var t=kB(e),n=VB(SB,e,e.centerOption)?br(SB,SB,e.mtRaw):t,r=e.zoom,i=e.trans[1];i.x=t[0]-r*n[0],i.y=t[1]-r*n[1],i.scaleX=i.scaleY=r}var SB=[];function CB(e){var t=e.trans,n=t[1],r=t[0],i=t[2];TB(i,r,n);var a=Ns(i,e.mtOverall),o=ci(e.mtOverallInv,a);wB(e,i,a,o),wB(e.lgGeo,i,a,o)}function wB(e,t,n,r){e&&(Is(e,t),ri(e.transform||=[],n),ri(e.invTransform||=[],r))}function TB(e,t,n){Ns(t,EB),Ns(n,DB),ii(DB,DB,EB),Yg(e,DB)}var EB=ti(),DB=ti();function OB(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function kB(e){var t=e.viewRect;return AB[0]=t.x+t.width/2,AB[1]=t.y+t.height/2,AB}var AB=[];function jB(e){return e&&e.type===`view`}function MB(e,t,n,r){var i=tB(n);i.syncBackEl=e,i.syncBackType=t,r?Xh(e,lB(null,n,t),r):(lB(e,n,t),e.dirty())}function NB(e,t,n,r){var i=tB(e),a=i.syncBackEl;a?(a.stopAnimation(),dB(PB,i,a,i.syncBackType)):Is(PB,i.trans[2]),fB(FB,i,PB),r?zB(PB,FB,i,r):Is(PB,FB),fB(PB,i,PB),GB(i,t,n,PB)}var PB=Ps(),FB=Ps();function IB(e,t,n){var r=LB(t);r&&(NB(r,t,n,e),mB(r,t))}function LB(e){return e.__ownRoamView?e.__ownRoamView():null}function RB(e,t,n,r){n.setUpdatePayload(Jg(e));var i=_p(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function zB(e,t,n,r){r.dx!=null&&r.dy!=null&&(e.x+=r.dx,e.y+=r.dy);var i=r.zoom;if(i!=null){var a=BB(t),o=JB(a*i,n.zoomLimit)/a;e.x-=(r.originX-e.x)*(o-1),e.y-=(r.originY-e.y)*(o-1),e.scaleX*=o,e.scaleY*=o}}function BB(e){return e.scaleX}function VB(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?sr(e,Z(n[0],i.w),Z(n[1],i.h)):r&&sr(e,Z(n[0],r.width,r.x),Z(n[1],r.height,r.y)),!0}function HB(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[UB(0,t,n,r),UB(1,t,n,r)]}function UB(e,t,n,r){return n&&r&&r[sg[e]]&&Vc(n[e])?(t[e]-r[og[e]])/r[sg[e]]*100+`%`:t[e]}function WB(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function GB(e,t,n,r){var i=kB(e),a=BB(r),o=kc(a)>1e-6;KB[0]=o?(i[0]-r.x)/a:i[0],KB[1]=o?(i[1]-r.y)/a:i[1],br(KB,KB,e.mtRawInv);var s=HB(e,KB);qB(t,s,a),R(n,function(e){e!==t&&qB(e,s.slice(),a)})}var KB=[];function qB(e,t,n){var r=e.option;r.center=t,r.zoom=n}function JB(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function YB(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=tB(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function XB(e,t,n,r,i,a,o,s){if(!LB(e)){n.disable();return}n.enable(G(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=Jg(L({type:eV(r,e.subType,mp)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function ZB(e){return function(t,n,r){return QB.copy(e.getBoundingRect()),QB.applyTransform(e.getComputedTransform()),QB.contain(n,r)}}var QB=new Y(0,0,0,0);function $B(e,t,n){var r=eV(t,n,mp);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(Xl(e,t,n),function(t){IB(e,t),RB(e,t,r,i)})})}function eV(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function tV(e){return e.zoom!=null}function nV(e,t,n,r,i,a,o){var s=new rB(null,WB(e.ecModel,t));return hB(s,n,r,i,a),o?gB(s,o.x,o.y,o.width,o.height):gB(s,n,r,i,a),mB(s,e),s}var rV=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],iV=K(rV),aV=K(rV.concat([`g`])),oV=K(rV.concat([`g`])),sV=Ul();function cV(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function lV(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var uV=function(){function e(e){var t=this.group=new X,n=this._transformGroup=new X;t.add(n),this.uid=O_(`ec_map_draw`),this._controller=new QR(e.getZr()),n.add(this._regionsGroup=new X),n.add(this._svgGroup=new X)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();_V(e)&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=s.view,l=this._regionsGroup,u=this._transformGroup,d=!l.childAt(0)||i,f;s.shouldClip()?(f=cB(null,c),this.group.setClipPath(new Rf({shape:f.clone()}))):this.group.removeClipPath(),MB(u,1,c,d?null:e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0;s.resourceType===`geoJSON`?this._buildGeoJSON(c,n,s,e,o,p):s.resourceType===`geoSVG`&&this._buildSVG(c,n,s,e,o,p),XB(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},f,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,l,n,r)},e.prototype.__updateOnOwnRoam=function(e){MB(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=K(),s=K(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=Ns(lB(null,e,0));function f(e,t){return t&&(e=t(e)),e&&br([],e,d)}function p(e){for(var t=[],n=!u&&l&&l.project,r=0;r<e.length;++r){var i=f(e[r],n);i&&t.push(i)}return t}function m(e){return{shape:{points:p(e)}}}c.removeAll(),R(n.regions,function(e){var n=e.name,d=o.get(n),p=s.get(n)||{},h=p.dataIdx,g=p.regionModel;if(!d){d=o.set(n,new X),c.add(d),h=i?i.indexOfName(n):null,g=_V(r)?r.getRegionModel(n):i?i.getItemModel(h):null;var _=g.get(`silent`,!0);_!=null&&(d.silent=_),s.set(n,{dataIdx:h,regionModel:g})}var v=[],y=[];R(e.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);u&&(t=gV(t,u)),R(t,function(e){v.push(new xh(m(e)))})}else{var n=e.points;u&&(n=gV(n,u,!0)),R(n,function(e){y.push(new Ch(m(e)))})}});var b=f(e.getCenter(),l&&l.project);function x(e,o){if(e.length){var s=new Mh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(s),dV(t,i,a,s,h,g),fV(r,i,s,n,g,h,b),o&&(lV(s),R(s.states,lV))}}x(v),x(y,!0)}),o.each(function(e,t){var n=s.get(t),a=n.dataIdx,o=n.regionModel;pV(r,i,e,t,o,a),mV(r,i,e,t,o),hV(r,e,t,o)},this)},e.prototype._buildSVG=function(e,t,n,r,i,a){var o=n.map;lB(this._svgGroup,e,0),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=K(),c=!1;R(this._svgGraphicRecord.named,function(e){var n=e.name,o=e.svgNodeTagLower,l=e.el,u=i?i.indexOfName(n):null,d=r.getRegionModel(n);iV.get(o)!=null&&l instanceof hd&&dV(t,i,a,l,u,d),l instanceof hd&&(l.culling=!0);var f=d.get(`silent`,!0);f!=null&&(l.silent=f),l.z2EmphasisLift=0,e.namedFrom||(oV.get(o)!=null&&fV(r,i,l,n,d,u,null),pV(r,i,l,n,d,u),mV(r,i,l,n,d),aV.get(o)!=null&&(hV(r,l,n,d)===`self`&&(c=!0),(s.get(n)||s.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(c,r)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&_V(t)){var n=t.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Kp(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=eB.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=eB.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=sV(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function dV(e,t,n,r,i,a){var o=a.getModel(`itemStyle`),s=a.getModel([`emphasis`,`itemStyle`]),c=a.getModel([`blur`,`itemStyle`]),l=a.getModel([`select`,`itemStyle`]),u=cV(o),d=cV(s),f=cV(l),p=cV(c);if(t){var m=t.getItemVisual(i,`style`),h=t.getItemVisual(i,`decal`);n&&m.fill&&(u.fill=m.fill),h&&(u.decal=Jw(h,e))}r.setStyle(u),r.style.strokeNoScale=!0,r.ensureState(`emphasis`).style=d,r.ensureState(`select`).style=f,r.ensureState(`blur`).style=p,Kp(r)}function fV(e,t,n,r,i,a,o){var s=t&&isNaN(t.get(t.mapDimension(`value`),a)),c=t&&t.getItemLayout(a);if(_V(e)||s||c&&c.showLabel){var l=_V(e)?r:a,u=void 0;(!t||a>=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;t_(n,n_(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(sV(f).ignore=f.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+`%`,(o[1]-p.y)/p.height*100+`%`]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function pV(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):rp(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function mV(e,t,n,r,i){t||Lg({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function hV(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return mm(t,a,i.get(`blurScope`),i.get(`disabled`)),_V(e)&&xm(t,e,n),a}function gV(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),R(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}function _V(e){return e.mainType===`geo`}var vV=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=HI(this,{coordDimensions:[`value`],encodeDefaulter:On(My,this)}),n=K(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return R(eB.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&gn(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(Xv(this).kind!==2)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=[];return R(this.seriesGroup.f,function(e){var t=e.originalData.indexOfName(a),n=r.mapDimension(`value`);isNaN(e.originalData.get(n,t))||o.push(e.name)}),aS(`section`,{header:o.join(`, `),noHeader:!o.length,blocks:[aS(`nameValue`,{name:a,value:i})]})},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=ow(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return bV(this)?this.coordinateSystem.view:null},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:Q.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Q.color.border,areaColor:Q.color.background},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{areaColor:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},nameProperty:`name`},t}(ES);function yV(e){return e.indexOf(`i`)===0}function bV(e){return xV(e.seriesGroup)===e&&!e.getHostGeoModel()}function xV(e){return e.f[0]}function SV(e,t){var n={};return e.eachRawSeriesByType(`map`,function(r){var i=r.getHostGeoModel(),a=i?`o`+i.id:`i`+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};!e.isSeriesFiltered(r)&&!t&&o.f.push(r),o.r.push(r)}),n}var CV=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`map`,t}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){var a=this._mapDraw;a&&r&&r.type===`geoRoam`&&a.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id?a&&i.add(a.group):bV(e)?(a||=this._mapDraw=new uV(n),i.add(a.group),a.draw(e,t,n,this,r)):this._clearMapDraw(),e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;bV(t)&&r&&r.__updateOnOwnRoam(t)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var t=e.originalData,n=this.group;t.each(t.mapDimension(`value`),function(r,i){if(!isNaN(r)){var a=t.getItemLayout(i);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new Xm({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=xV(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);t_(c,n_(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Bp(c,e)}}n.add(c)}}})},t.type=`map`,t}(zS),wV={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},TV=[`lng`,`lat`],EV=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=TV,i.type=`geo`,i._nameCoordMap=K(),i.name=t;var a=r.projection,o=eB.load(n,r.nameMap,r.nameProperty),s=eB.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=wV[s.type];i._clip=r.clip,i.view=new rB(!a&&l.invertLongitute,WB(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u||=f.clone(),u.union(f)}else u=o.boundingRect;return hB(i.view,u.x,u.y,u.width,u.height),i.aspectScale=a?1:G(r.aspectScale,l.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(U(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.view.dataToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.view.pointToData(e,n)},t.prototype.convertToPixel=function(e,t,n){var r=DV(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=DV(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e||=0;var t=cB(null,this.view);return t.x-=e,t.y-=e,t.width+=2*e,t.height+=2*e,t},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(Ms);function DV(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,ql).models[0]||{}).coordinateSystem:null}function OV(e,t){var n=this.view,r=e.get(`boundingCoords`);if(r!=null){var i=r[0],a=r[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=i[0],c=i[1],l=a[0],u=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var d=function(e,t,n,r){for(var s=n-e,c=r-t,l=0;l<=100;l++){var u=l/100,d=o.project([e+s*u,t+c*u]);xr(i,i,d),Sr(a,a,d)}};d(s,c,l,c),d(l,c,l,u),d(l,u,s,u),d(s,u,l,c)}hB(n,i[0],i[1],a[0]-i[0],a[1]-i[1])}}var f=n.getBoundingRect(),p=e.get(`layoutCenter`),m=e.get(`layoutSize`),h=uy(e,t).refContainer,g=f.width/f.height*this.aspectScale,_=!1,v,y;p&&m&&(v=[Z(p[0],h.width)+h.x,Z(p[1],h.height)+h.y],y=Z(m,Math.min(h.width,h.height)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(y)&&(_=!0));var b;if(_)b={},g>1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=sy(x,h),b=cy(e,b,g)}gB(n,b.x,b.y,b.width,b.height),mB(n,e)}function kV(e,t){R(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var AV=new(function(){function e(){this.dimensions=TV}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`),clip:e.getShallow(`clip`,!0)}}return e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new EV(o+a,o,I({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=OV,s.resize(i,t)}),e.eachSeries(function(e){Zv({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,ql).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),R(SV(e,!0),function(i,a){if(yV(a)){var o=i.r[0],s=[];R(i.r,function(e){s.push(e.get(`nameMap`)),e.seriesGroup=null});var c=a.slice(1),l=new EV(c,c,I({nameMap:_n(s),api:t,ecModel:e},r(o))),u;R(i.r,function(e){u=G(u,e.get(`scaleLimit`))}),n.push(l),l.resize=OV,l.resize(o,t),R(i.r,function(e){e.coordinateSystem=l,kV(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=K(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return R(eB.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&gn(n,r)}),i},e}()),jV=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n);var r=eB.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||Q.color.backgroundTint)}Sl(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=AV.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=Cn(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new E_(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},K()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new E_(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(H(r))return i.status=t,r(i);if(U(r))return r.replace(`{a}`,e??``)},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},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:Q.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Q.color.border},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},regions:[]},t}(vy),MV=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new uV(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;r&&r.__updateOnOwnRoam(t)},t.prototype._handleRegionClick=function(e){var t;RC(e.target,function(e){return(t=rp(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=rp(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(FS);function NV(e,t,n){eB.registerMap(e,t,n)}function PV(e){e.registerCoordinateSystem(`geo`,AV),e.registerComponentModel(jV),e.registerComponentView(MV),e.registerImpl(`registerMap`,NV),e.registerImpl(`getMap`,function(e){return eB.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;R(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];R(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.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(e,t,n){var r=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?`geo`:`series`),i=r===ap;if(!(r!==`geo`&&!i)){var a=i?`map`:null;t.eachComponent(Xl(e,r,a),function(r){i&&!bV(r)||(IB(e,r,i?r.seriesGroup.r:null),RB(e,r,t,n))})}})}var FV=yu(`map`,IV);function IV(e){R(SV(e),function(t,n){if(!(!xV(t)||!yV(n))){var r={};R(t.f,function(t){var n=t.coordinateSystem,i=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&i.each(i.mapDimension(`value`),function(e,t){var a=i.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=r[a]||0,c=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(t,{point:c,offset:s})}})});var i=xV(t).getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!r[t],i.setItemLayout(e,n)})}})}function LV(e,t){var n={};return R(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}var RV=yu(`map`,zV);function zV(e){R(SV(e),function(e){var t=xV(e);if(t){var n=LV(z(e.f,function(e){return e.getData()}),t.get(`mapValueCalculation`));R(e.f,function(t){t.seriesGroup=e,t.originalData=t.getData(),t.setData(n.cloneShallow())})}})}function BV(e){PE(PV),e.registerChartView(CV),e.registerSeriesModel(vV),e.registerLayout(FV),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,RV),FC(`map`,e.registerAction)}function VV(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function HV(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){KV(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=qV(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function UV(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function WV(e){return arguments.length?e:QV}function GV(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function KV(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function qV(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=JV(s),a=YV(a),s&&a;){i=JV(i),o=YV(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(ZV(XV(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!JV(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!YV(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function JV(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function YV(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function XV(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function ZV(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function QV(e,t){return e.parentNode===t.parentNode?1:2}var $V=Ul();function eH(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,sH(t,n,e),R(n,function(n){R(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,On(tH,e))})}),t.wrapMethod(`cloneShallow`,On(rH,e)),R(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,On(nH,e))}),Hn(n[t.dataType]===t)}function tH(e,t){if(oH(this)){var n=I({},$V(this).datas);n[this.dataType]=t,sH(t,n,e)}else cH(t,this.dataType,$V(this).mainData,e);return t}function nH(e,t){return e.struct&&e.struct.update(),t}function rH(e,t){return R($V(t).datas,function(n,r){n!==t&&cH(n.cloneShallow(),r,t,e)}),t}function iH(e){var t=$V(this).mainData;return e==null||t==null?t:$V(t).datas[e]}function aH(){var e=$V(this).mainData;return e==null?[{data:e}]:z(En($V(e).datas),function(t){return{type:t,data:$V(e).datas[t]}})}function oH(e){return $V(e).mainData===e}function sH(e,t,n){$V(e).datas={},R(t,function(t,r){cH(t,r,e,n)})}function cH(e,t,n,r){$V(n).datas[t]=e,$V(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=iH,e.getLinkedDataAll=aH}var lH=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){H(e)&&(n=t,t=e,e=null),e||={},U(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},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 e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),uH=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,V(n)?n.length:1),a.push(e);var r=new lH(Fl(e.name,``),i);t?dH(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=fD(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new dD(c,n);return l.initData(a),r&&r(l),eH({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function dH(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function fH(e,t,n){if(e&&yn(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(U(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function pH(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function mH(e,t){return yn(pH(e),t)>=0}function hH(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var gH=`tree`,_H=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new E_(e.leaves||{},this,this.ecModel),r=uH.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return aS(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=hH(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+gH,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Q.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(ES),vH=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),yH=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new vH},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=Z(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(wf),bH=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=gH,t._mainGroup=new X,t}return t.prototype.init=function(e,t){this._controller=new QR(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),XB(e,n,this._controller,ZB(this.group),null);var o=this._data;r.diff(o).add(function(t){xH(r,t)&&SH(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!xH(r,t)){i&&EH(o,n,i,a,e);return}SH(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&EH(o,t,n,a,e)}).execute(),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){MB(this.group,2,t.coordinateSystem,null),tV(e)&&this._updateNodeAndLinkScale(t)},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];Dd(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=nV(e,t,i[0],i[1],a[0]-i[0],a[1]-i[1]);MB(this.group,2,c,this._firstRender?null:e),this._min=i,this._max=a},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=YB(e.coordinateSystem,e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=gH,t}(zS);function xH(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function SH(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:Q.color.neutral00,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new MN(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Xh(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?Zn(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(rp(n).focus=k),CH(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Bp(n.__edge,t)}})}function CH(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new kh({shape:DH(u,d,f,i,i)}),Xh(h,{shape:DH(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new yH({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),Xh(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(L({strokeNoScale:!0,fill:null},m)),vm(h,c,`lineStyle`),Kp(h),s.add(h))}function wH(e,t,n,r,i){var a=t.tree.root,o=TH(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?$h(d,{shape:DH(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&$h(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function TH(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function EH(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=TH(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};$h(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),R(a.children,function(t){wH(t,e,r,i,c)}),wH(a,e,r,i,c)}function DH(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=GV(l,d),m=GV(l,d+(f-d)*n),h=GV(u,f+(d-f)*n),g=GV(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}function OH(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function kH(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function AH(e,t){e.eachSeriesByType(`tree`,function(e){jH(e,t)})}function jH(e,t){var n=uy(e,t).refContainer,r=sy(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=WV(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=WV());var c=e.getData().tree.root,l=c.children[0];if(l){VV(c),OH(l,HV,s),c.hierNode.modifier=-l.hierNode.prelim,kH(l,UV);var u=l,d=l,f=l;kH(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),kH(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=GV(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),kH(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),kH(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function MH(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:ap,subType:gH,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),$B(e,ap,gH)}var NH=yu(gH,PH);function PH(e){e.eachSeriesByType(gH,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();I(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function FH(e){e.registerChartView(bH),e.registerSeriesModel(_H),e.registerLayout(AH),e.registerVisual(NH),MH(e)}var IH=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function LH(e){for(var t=0;t<IH.length;t++)e.registerAction({type:IH[t],update:`updateView`},er);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=fH(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=mH(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function RH(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=Uy(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var zH=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};BH(n);var r=e.levels||[],i=new E_({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=VH(r,t);var a=z(r||[],function(e){return new E_(e,i,t)},this),o=uH.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return aS(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=hH(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},I(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=K(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){RH(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,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:Q.color.neutral00,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}(ES);function BH(e){var t=0;R(e.children,function(e){BH(e);var n=e.value;V(n)&&(n=n[0]),t+=n});var n=e.value;V(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),V(e.value)?e.value[0]=n:e.value=n}function VH(e,t){var n=xl(t.get(`color`)),r=xl(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;R(e,function(e){var t=new E_(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var HH=8,UH=8,WH=5,GH=function(){function e(e){this.group=new X,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=uy(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=sy(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),dy(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Fl(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+HH*2,t.emptyItemWidth);t.totalWidth+=o+UH,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new xh({shape:{points:KH(c,0,_,u,m===f.length-1,m===0)},style:L(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Uf({style:r_(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:On(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=r_(o,{text:v}),y.ensureState(`emphasis`).style=p,mm(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),qH(y,e,g),c+=_+UH}},e.prototype.remove=function(){this.group.removeAll()},e}();function KH(e,t,n,r,i,a){var o=[[i?e:e-WH,t],[e+n,t],[e+n,t+r],[i?e:e-WH,t+r]];return!a&&o.splice(2,0,[e+n+WH,t+r/2]),!i&&o.push([e,t+r/2]),o}function qH(e,t,n){rp(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&hH(n,t)}}var JH=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function YH(){return new JH}var XH=Math.max,ZH=Math.min,QH=R,$H=[`itemStyle`,`borderWidth`],eU=[`itemStyle`,`gapWidth`],tU=[`upperLabel`,`show`],nU=[`upperLabel`,`height`],rU={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=uy(e,n).refContainer,o=sy(e.getBoxLayoutParams(),a),s=r&&r.type,c=fH(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=pH(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,dU(e,c,u,o)):l?(f=!0,I({},l)):I({},o);if(f){var m=hU(o,p);m=gU(m,e),p.width=o.width*m,p.height=o.height*m}var h=i.sort;h&&h!==`asc`&&h!==`desc`&&(h=`desc`);var g={squareRatio:i.squareRatio,sort:h,leafDepth:i.leafDepth};u.hostTree.clearLayouts();var _={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};u.setLayout(_),iU(u,g,!1,0),_=u.getLayout(),QH(d,function(e,t){var n=(d[t+1]||u).getValue();e.setLayout(I({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var v=e.getData().tree.root;v.setLayout(fU(o,l,c),!0),e.setLayoutInfo(o),pU(v,new Y(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function iU(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get($H),l=s.get(eU)/2,u=mU(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=XH(i-2*f,0),a=XH(a-f-p,0);var m=i*a,h=aU(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=ZH(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=lU(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,uU(y,_,g,l,!1),_=ZH(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&uU(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)iU(h[b],t,n,r+1)}}}function aU(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=wn(o,function(e){return!e.isRemoved()}),sU(o,s);var l=cU(t,o,s);if(l.sum===0||(l.sum=oU(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function oU(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function sU(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function cU(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=iu(),QH(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function lU(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?XH(l*r/c,c/(l*i)):1/0}function uU(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=XH(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=XH(v-2*r,0);m[s[o]]=n[s[o]]+ZH(r,g/2),m[s[a]]=l+ZH(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function dU(e,t,n,r){var i=(t||{}).node,a=r.width,o=r.height,s=I({},r);if(!i||i===n)return s;for(var c,l=a*o,u=l*e.option.zoomToNodeRatio;c=i.parentNode;){for(var d=0,f=c.children,p=0,m=f.length;p<m;p++)d+=f[p].getValue();var h=i.getValue();if(h===0)return s;u*=d/h;var g=c.getModel(),_=g.get($H),v=Math.max(_,mU(g));u+=4*_*_+(3*_+v)*u**.5,u>Xc&&(u=Xc),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function fU(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function pU(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new Y(t.x-a.x,t.y-a.y,t.width,t.height);QH(e.viewChildren||[],function(e){pU(e,c,n,r,i+1)})}}function mU(e){return e.get(tU)?e.get(nU):0}function hU(e,t){return t.width/e.width||t.height/e.height||1}function gU(e,t){return JB(e,t.get(`scaleLimit`,!0))}var _U=X,vU=Rf,yU=3,bU=`label`,xU=`upperLabel`,SU=100,CU=20,wU=30,TU=Fu([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),EU=function(e){var t=TU(e);return t.stroke=t.fill=t.lineWidth=null,t},DU=Ul(),OU=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=kU(),n}return t.prototype.render=function(e,t,n,r){if(!(yn(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=fH(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new _U,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=kU(),o=kU(),s=this._storage,c=[];function l(e,r,i,l){return AU(t,o,s,n,a,c,e,r,i,l)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=f(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:p};function d(e,t,n,r,i){r?(t=e,R(e,function(e,t){!e.isRemoved()&&o(t,t)})):new LE(t,e,a,a).add(o).update(o).remove(On(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&d(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function f(e){var t=kU();return e&&R(e,function(e,n){var r=t[n];R(e,function(e){e&&(r.push(e),DU(e).willDelete=!0)})}),t}function p(){R(u,function(e){R(e,function(e){e.parent&&e.parent.remove(e)})}),R(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(H(i)?0:i)||0,s=(H(a)?null:a)||`cubicOut`,c=YH();R(t.willDeleteEls,function(e,t){R(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=DU(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),R(this._storage,function(e,n){R(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof X?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=I({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(B(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new QR(e.getZr()),r.on(`pan`,B(this._onPan,this)),r.on(`zoom`,B(this._onZoom,this))),r.enable(n.get(`roam`),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>yU||Math.abs(e.dy)>yU)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Y(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=hU(c,o),u=l*r;u=gU(u,i);var d=u/l;t-=c.x,n-=c.y;var f=ti();ai(f,f,[-t,-n]),si(f,f,[d,d]),ai(f,f,[t,n]),s.applyTransform(f),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(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Hv(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new GH(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(mH(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=kU(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(zS);function kU(){return{nodeGroup:[],background:[],content:[]}}function AU(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=ce(`nodeGroup`,_U);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),DU(D).nodeWidth=p,DU(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=ce(`background`,vU,l,CU);O&&re(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),ee=k.get(`disabled`),M=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)bm(D)&&ym(D,!1),O&&(ym(O,!ee),d.setItemGraphicEl(o.dataIndex,O),hm(O,M,j));else{var te=ce(`content`,vU,l,wU);te&&ie(D,te),O.disableMorphing=!0,O&&bm(O)&&ym(O,!1),ym(D,!ee),d.setItemGraphicEl(o.dataIndex,D);var ne=f.getShallow(`cursor`);ne&&te.attr(`cursor`,ne),hm(D,M,j)}return D;function re(t,n,r){var i=rp(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)ae(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=EU(S);c.fill=s;var l=TU(C);l.fill=C.get(`borderColor`);var u=TU(w);u.fill=w.get(`borderColor`);var d=TU(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;oe(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Kp(n)}t.add(n)}function ie(t,n){var r=rp(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)ae(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=EU(S);l.fill=c,l.decal=s.decal;var u=TU(C),d=TU(w),f=TU(T);oe(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Kp(n)}t.add(n)}function ae(e){!e.invisible&&a.push(e)}function oe(t,n,r,i){var a=f.getModel(i?xU:bU),s=Fl(f.get(`name`),null),c=a.getShallow(`show`);t_(t,n_(f,i?xU:bU),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Vn(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,se(d,i,u);var m=l.getState(`emphasis`);se(m?m.style:null,i,u)}}function se(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function ce(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,le(c,s)):g||(s=new r,s instanceof hd&&(s.z2=jU(a,o)),ue(c,s)),t[e][_]=s}function le(e,t){var n=e[_]={};t instanceof _U?(n.oldX=t.x,n.oldY=t.y):n.oldShape=I({},t.shape)}function ue(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof X;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function jU(e,t){return e*SU+t}var MU=R,NU=W,PU=-1,FU=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=F(t);this.type=r,this.mappingMethod=n,this._normalizeData=qU[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(RU(i),IU(i)):n===`category`?i.categories?LU(i):RU(i,!0):(Hn(n!==`linear`||i.dataExtent),RU(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return B(this._normalizeData,this)},e.listVisualTypes=function(){return En(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){W(e)?R(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=V(t)?[]:W(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&MU(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(V(e))e=e.slice();else if(NU(e)){var t=[];MU(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||U(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(JU(u[1],e,l[1]))return a}else if(l[1]===1/0){if(JU(u[0],l[0],e))return a}else if(JU(u[0],l[0],e)&&JU(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:VU(`color`),getColorMapper:function(){var e=this.option;return B(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),HU.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=eo(t,e.parsedVisual,r),i?r:io(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return io(eo(e,this.option.parsedVisual),`rgba`)},category:HU,piecewise:function(e,t){var n=GU.call(this,t);return n??=io(eo(e,this.option.parsedVisual),`rgba`),n},fixed:UU}},colorHue:zU(function(e,t){return no(e,t)}),colorSaturation:zU(function(e,t){return no(e,null,t)}),colorLightness:zU(function(e,t){return no(e,null,null,t)}),colorAlpha:zU(function(e,t){return ro(e,t)}),decal:{applyVisual:VU(`decal`),_normalizedToVisual:{linear:null,category:HU,piecewise:null,fixed:null}},opacity:{applyVisual:VU(`opacity`),_normalizedToVisual:WU([0,1])},liftZ:{applyVisual:VU(`liftZ`),_normalizedToVisual:{linear:UU,category:UU,piecewise:UU,fixed:UU}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:BU,category:HU,piecewise:function(e,t){var n=GU.call(this,t);return n??=BU.call(this,e),n},fixed:UU}},symbolSize:{applyVisual:VU(`symbolSize`),_normalizedToVisual:WU([0,1])}},e}();function IU(e){var t=e.pieceList;e.hasSpecialVisual=!1,R(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function LU(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(MU(t,function(e,t){n[e]=t}),!V(r)){var i=[];W(r)?MU(r,function(e,t){var r=n[t];i[r??PU]=e}):i[PU]=r,r=KU(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function RU(e,t){var n=e.visual,r=[];W(n)?MU(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),KU(e,r)}function zU(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:WU([0,1])}}function BU(e){var t=this.option.visual;return t[Math.round(Rc(e,[0,1],[0,t.length-1],!0))]||{}}function VU(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function HU(e){var t=this.option.visual;return t[this.option.loop&&e!==PU?e%t.length:e]}function UU(){return this.option.visual[0]}function WU(e){return{linear:function(t){return Rc(t,e,this.option.visual,!0)},category:HU,piecewise:function(t,n){var r=GU.call(this,n);return r??=Rc(t,e,this.option.visual,!0),r},fixed:UU}}function GU(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[FU.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function KU(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=z(t,function(e){return Xa(e)||[0,0,0,1]})),t}var qU={linear:function(e){return Rc(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=FU.findPieceIndex(e,t,!0);if(n!=null)return Rc(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??PU},fixed:er};function JU(e,t,n){return e?t<=n:t<n}var YU=`itemStyle`,XU=Ul(),ZU={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||QU(t,{},e.getViewRoot().getAncestors(),e)}};function QU(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(YU),c=$U(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=eW(c),u=tW(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=eW(c),l.fill=f;else{var m=rW(e,i,a,s,c,p);R(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&QU(e,aW(i,c,e,t,m,r),n,r)})}}}function $U(e,t,n){var r=I({},t),i=n.designatedVisualItemStyle;return R([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function eW(e){var t=nW(e,`color`);if(t){var n=nW(e,`colorAlpha`),r=nW(e,`colorSaturation`);return r&&(t=no(t,null,null,r)),n&&(t=ro(t,n)),t}}function tW(e,t){return t==null?null:no(t,null,null,e)}function nW(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function rW(e,t,n,r,i,a){if(!(!a||!a.length)){var o=iW(t,`color`)||i.color!=null&&i.color!==`none`&&(iW(t,`colorAlpha`)||iW(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new FU(d);return XU(f).drColorMappingBy=u,f}}}function iW(e,t){var n=e.get(t);return V(n)&&n.length?{name:t,range:n}:null}function aW(e,t,n,r,i,a){var o=I({},t);if(i){var s=i.type,c=s===`color`&&XU(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function oW(e){e.registerSeriesModel(zH),e.registerChartView(OU),e.registerVisual(ZU),e.registerLayout(rU),LH(e)}function sW(e){return`_EC_`+e}var cW=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[sW(e)]){var r=new lW(e,t);return r.hostGraph=this,this.nodes.push(r),n[sW(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[sW(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(An(e)&&(e=this.nodes[e]),An(t)&&(t=this.nodes[t]),e instanceof lW||(e=r[sW(e)]),t instanceof lW||(t=r[sW(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new uW(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof lW&&(e=e.id),t instanceof lW&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof lW||(t=this._nodesMap[sW(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),lW=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-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(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=K(),t=K(),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var l=c.inEdges,u=0,d=l.length,f=void 0,p=void 0;u<d;u++)f=l[u],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s<o.length;){var m=o[s];s++,t.set(m.dataIndex,!0);for(var h=m.outEdges,u=0,g=h.length,_=void 0,v=void 0;u<g;u++)_=h[u],v=_.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),uW=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=K(),t=K();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,c=o.length,l=void 0,u=void 0;s<c;s++)l=a.inEdges[s],u=l.dataIndex,u>=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i<r.length;){var d=r[i];i++,t.set(d.dataIndex,!0);for(var f=d.outEdges,s=0,c=f.length,p=void 0,m=void 0;s<c;s++)p=d.outEdges[s],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function dW(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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)}}}xn(lW,dW(`hostGraph`,`data`)),xn(uW,dW(`hostGraph`,`edgeData`));function fW(e,t,n,r,i){for(var a=new cW(r),o=0;o<e.length;o++)a.addNode(Rn(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(Rn(Fl(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=TD(e,n);else{var h=Gv.get(p),g=h&&h.dimensions||[];yn(g,`value`)<0&&g.concat([`value`]);var _=fD(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new dD(_,n),m.initData(e)}var v=new dD([`value`],n);return v.initData(c,s),i&&i(m,v),eH({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var pW=`-->`,mW=function(e){return e.get(`autoCurveness`)||null},hW=function(e,t){var n=mW(e),r=20,i=[];if(An(n))r=n;else if(V(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},gW=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(pW)},_W=function(e){var t=e.split(pW);return[t[0],t[2],t[1]].join(pW)},vW=function(e,t){var n=gW(e.node1,e.node2,t);return t.__edgeMap[n]},yW=function(e,t){return bW(gW(e.node1,e.node2,t),t)+bW(gW(e.node2,e.node1,t),t)},bW=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function xW(e){mW(e)&&(e.__curvenessList=[],e.__edgeMap={},hW(e))}function SW(e,t,n,r){if(mW(n)){var i=gW(e,t,n),a=n.__edgeMap,o=a[_W(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function CW(e,t,n,r){var i=mW(t),a=V(i);if(!i)return null;var o=vW(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=yW(e,t);hW(t,l),e.lineStyle=e.lineStyle||{};var u=gW(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=bW(_W(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}var wW=`graph`,TW=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new UI(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Sl(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){xW(this);var a=fW(r,n,this,!0,o);return R(a.edges,function(e){SW(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=E_.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},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(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),aS(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return xS({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=z(this.option.categories||[],function(e){return e.value==null?I({value:0},e):e}),t=new dD([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return jB(e)&&e},t.type=`series.`+wW,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:Q.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(ES);function EW(e){return e instanceof Array||(e=[e,e]),e}var DW=yu(wW,OW);function OW(e){e.eachSeriesByType(wW,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=EW(e.get(`edgeSymbol`)),i=EW(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=EW(r.getShallow(`symbol`,!0)),o=EW(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(I(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function kW(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),AW(n,e)}}function AW(e,t){e.eachEdge(function(e,n){var r=zn(e.getModel().get([`lineStyle`,`curveness`]),-CW(e,t,n,!0),0),i=or(e.node1.getLayout()),a=or(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var jW=yu(wW,MW);function MW(e,t){e.eachSeriesByType(wW,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];R(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}AW(r.graph,e)}else(!t||t===`none`)&&kW(e)})}function NW(e){var t=e.coordinateSystem;return jB(t)?YB(t,e):1}function PW(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var FW=Math.PI,IW=[];function LW(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];mr(h,h),pr(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),zW(n,e.get([`circular`,`rotateLabel`]),c,l)}RW[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=zn(t.getModel().get([`lineStyle`,`curveness`]),CW(t,e,n),0),i=or(t.node1.getLayout()),a=or(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var RW={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;IW.length=o;var c=NW(e);t.eachNode(function(e){var t=PW(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=FW/2),IW[e.dataIndex]=n,s+=n*2});var l=(2*FW-s)/o/2,u=0;t.eachNode(function(e){var t=l+IW[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function zW(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);I(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}var BW=yu(wW,VW);function VW(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&LW(e,`symbolSize`)})}var HW=lr;function UW(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=ir(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=or(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;ur(t,u.p,s.p);var d=dr(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),mr(t,t),!s.fixed&&HW(s.p,s.p,t,f*d*p),!u.fixed&&HW(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(ur(t,c,g.p),HW(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];ur(t,u.p,s.p);var d=dr(t);d===0&&(sr(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&HW(s.pp,s.pp,t,v),!u.fixed&&HW(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(ur(y,g.p,g.pp),HW(g.p,g.p,y,p),ar(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}var WW=yu(wW,GW);function GW(e){e.eachSeriesByType(wW,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?kW(e):s===`circular`&&LW(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=V(u)?u:[u,u],p=V(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=Rc(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=UW(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=Rc(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=zn(i.getModel().get([`lineStyle`,`curveness`]),-CW(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&ar(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],ar(f[0],u),ar(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function KW(e,t,n){var r=uy(e,t);return cy(e,sy(I(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function qW(e,t){var n=[];return e.eachSeriesByType(`graph`,function(e){Zv({targetModel:e,coordSysType:`view`,coordSysProvider:r,isDefaultDataCoordSys:!0});function r(){var r=e.getData(),i=r.mapArray(function(e){var t=r.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),a=[],o=[];Dd(i,a,o),o[0]-a[0]===0&&(o[0]+=1,--a[0]),o[1]-a[1]===0&&(o[1]+=1,--a[1]);var s=(o[0]-a[0])/(o[1]-a[1]),c=KW(e,t,s);isNaN(s)&&(a=[c.x,c.y],o=[c.x+c.width,c.y+c.height]);var l=o[0]-a[0],u=o[1]-a[1],d=nV(e,t,a[0],a[1],l,u,c);return n.push(d),d}}),n}var JW=Eh.prototype,YW=kh.prototype,XW=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(XW);function ZW(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var QW=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new XW},t.prototype.buildPath=function(e,t){ZW(t)?JW.buildPath.call(this,e,t):YW.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return ZW(this.shape)?JW.pointAt.call(this,e):YW.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=ZW(t)?[t.x2-t.x1,t.y2-t.y1]:YW.tangentAt.call(this,e);return mr(n,n)},t}(wf),$W=[`fromSymbol`,`toSymbol`];function eG(e){return`_`+e+`Type`}function tG(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=sw(i),l=cw(o||0,c);return r+c+l+(a||``)+(s||``)}function nG(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=sw(i),l=cw(o||0,c),u=ow(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function rG(e){var t=new QW({name:`line`,subPixelOptimize:!0});return iG(t.shape,e),t}function iG(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 n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var aG=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=rG(i);o.shape.percent=0,Zh(o,{z2:G(a,0),shape:{percent:1}},r,t),this.add(o),R($W,function(n){var r=nG(n,e,t);this.add(r),this[eG(n)]=tG(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};iG(o.shape,a),Xh(i,o,r,t),R($W,function(n){var r=tG(n,e,t),i=eG(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=nG(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=n_(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,R($W,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<Sp.length;n++){var r=Sp[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);t_(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||Q.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?Uc(g,10):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);V(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),mm(this,u,d,l)},t.prototype.highlight=function(){Yp(this)},t.prototype.downplay=function(){Xp(this)},t.prototype.updateLayout=function(e,t){this.childOfName(`line`).stopAnimation(),this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);iG(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=ur([],l,c);mr(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(X),oG=function(){function e(e){this.group=new X,this._LineCtor=e||aG}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=cG(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=cG(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!sG(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i<e.end;i++)if(uG(t.getItemLayout(i))){var a=new this._LineCtor(t,i,this._seriesScope);a.traverse(r),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(uG(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!uG(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function sG(e){return e.animators&&e.animators.length>0}function cG(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:n_(t)}}function lG(e){return isNaN(e[0])||isNaN(e[1])}function uG(e){return e&&!lG(e[0])&&!lG(e[1])}var dG=[],fG=[],pG=[],mG=wa,hG=vr,gG=Math.abs;function _G(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){dG[0]=mG(r[0],i[0],a[0],u),dG[1]=mG(r[1],i[1],a[1],u);var d=gG(hG(dG,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;fG[0]=mG(r[0],i[0],a[0],s),fG[1]=mG(r[1],i[1],a[1],s),pG[0]=mG(r[0],i[0],a[0],p),pG[1]=mG(r[1],i[1],a[1],p);var d=hG(fG,t)-c;if(gG(d)<.01)break;var m=hG(pG,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function vG(e,t){var n=[],r=Oa,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[or(c[0]),or(c[1])],c[2]&&c.__original.push(or(c[2])));var d=c.__original;if(c[2]!=null){if(ar(i[0],d[0]),ar(i[1],d[2]),ar(i[2],d[1]),l&&l!==`none`){var f=PW(e.node1),p=_G(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=PW(e.node2),p=_G(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}ar(c[0],i[0]),ar(c[1],i[2]),ar(c[2],i[1])}else{if(ar(a[0],d[0]),ar(a[1],d[1]),ur(o,a[1],a[0]),mr(o,o),l&&l!==`none`){var f=PW(e.node1);lr(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=PW(e.node2);lr(a[1],a[1],o,-f*t)}ar(c[0],a[0]),ar(c[1],a[1])}})}var yG=Ul();function bG(e){if(e)return yG(e).bridge}function xG(e,t){e&&(yG(e).bridge=t)}var SG=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=wW,t}return t.prototype.init=function(e,t){var n=new RN,r=new oG,i=this.group,a=new X;this._controller=new QR(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=LB(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&MB(o,2,i,this._firstRender?null:e),vG(e.getGraph(),NW(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&XB(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),LW(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),AW(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(rp(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(rp(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){zW(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=LB(t);!this._active||!r||(MB(this._mainGroup,2,r,null),tV(e)&&(this._updateNodeAndLinkScale(),vG(t.getGraph(),NW(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=NW(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(vG(e.getGraph(),NW(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=bG(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(aB(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new X,o=n.group.children(),s=r.group.children(),c=new X,l=new X;a.add(l),a.add(c);for(var u=0;u<o.length;u++){var d=o[u],f=d.children()[0],p=d.x,m=d.y,h=I(F(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=F(f.style),_=new f.constructor({shape:h,style:g,z2:151});l.add(_)}for(var u=0;u<s.length;u++){var d=s[u],v=d.children()[0],g=F(v.style),h=F(v.shape),y=new QW({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:aB(null,i.coordSys)})}},t.type=wW,t}(zS),CG=yu(wW,wG);function wG(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(wW,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){An(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}var TG=yu(wW,EG);function EG(e){var t={};e.eachSeriesByType(wW,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){U(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);I(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function DG(e){e.registerChartView(SG),e.registerSeriesModel(TW),e.registerProcessor(CG),e.registerVisual(TG),e.registerVisual(DW),e.registerLayout(jW),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,BW),e.registerLayout(WW),e.registerCoordinateSystem(`graphView`,{dimensions:rB.dimensions,create:qW}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},er),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},er),$B(e,ap,wW)}var OG=`chord`,kG=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new UI(B(this.getData,this),B(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return fW(r,n,this,!0,i).data;function i(e,t){var n=E_.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),aS(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return aS(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.`+OG,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(ES),AG=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;rp(i).dataType=`node`,i.z2=2;var a=new Uf;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=I(mI(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):Xh(d,{shape:u},o,t);var f=I(mI(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),vm(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),vm(d,s,`itemStyle`);var p=c.get(`focus`);mm(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=n_(t),u=n.getVisual(`style`);t_(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,zn(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(hh),jG=function(e){P(t,e);function t(t,n,r,i){var a=e.call(this)||this;return rp(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=I(mI(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),MG(m,o,e,u)):(ng(m),MG(m,o,e,u),Xh(m,{shape:p},a,n)),mm(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),vm(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(wf);function MG(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(U(s)&&U(c)){var l=e.shape;o.fill=new Ph((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var NG=Math.PI/180,PG=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OG,t}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*NG;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new AG(r,e,o);rp(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&tg(s,e,n);return}s?s.updateData(r,t,o):s=new AG(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&tg(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Z(s[0],n.getWidth()),this.group.originY=Z(s[1],n.getHeight()),Zh(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new jG(n,r,e,t);rp(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&tg(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=OG,t}(zS),FG=Math.PI/180,IG=yu(OG,LG);function LG(e,t){e.eachSeriesByType(OG,function(e){RG(e,t)})}function RG(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=oy(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*FG,0),d=Math.max((e.get(`minAngle`)||0)*FG,0),f=-e.get(`startAngle`)*FG,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];Zd(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)<d?w+=d-Math.abs(n):(D=Math.min(D,Math.abs(n)-d),T+=Math.abs(n)-d,E+=Math.abs(n)),e.setLayout({angle:n,value:t})});var O=!1;if(w>T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*w<d&&(O=!0)}});var A=w;r.eachNode(function(e){if(!(A<=0)){var t=e.getLayout().angle;if(t>d&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,ee=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),ee[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=ee[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=ee[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),ee[r]=a,ee[d]=p})}}}function zG(e){e.registerChartView(PG),e.registerSeriesModel(kG),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,IG),e.registerProcessor(VI(`chord`))}var BG=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),VG=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new BG},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(wf);function HG(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:Z(n[0],t.getWidth()),cy:Z(n[1],t.getHeight()),r:Z(e.get(`radius`),a/2)}}function UG(e,t){var n=e==null?``:e+``;return t&&(U(t)?n=t.replace(`{value}`,n):H(t)&&(n=t(e))),n}var WG=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=HG(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?lI:hh,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];Zd(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),R(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=Z(h.get(`length`),f),x=Z(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,ee=new Eh({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&ee.setStyle({stroke:r(A/v)}),l.add(ee)}if(_.get(`show`)){var j=_.get(`distance`)+D,M=UG(Uc(A*(m-p)/v+p,14),_.get(`formatter`)),te=r(A/v),ne=O*(f-b-j)+u,re=k*(f-b-j)+d,ie=_.get(`rotate`),ae=0;ie===`radial`?(ae=-S+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):ie===`tangential`?ae=-S-Math.PI/2:An(ie)&&(ae=ie*Math.PI/180),ae===0?l.add(new Uf({style:r_(_,{text:M,x:ne,y:re,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:te}),silent:!0})):l.add(new Uf({style:r_(_,{text:M,x:ne,y:re,verticalAlign:`middle`,align:`center`},{inheritColor:te}),silent:!0,originX:ne,originY:re,rotation:ae}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var oe=0;oe<=y;oe++){O=Math.cos(S),k=Math.sin(S);var se=new Eh({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&se.setStyle({stroke:r((A+oe/y)/v)}),l.add(se),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=Z(r.get(`width`),i.r),o=Z(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=Z(c[0],i.r),u=Z(c[1],i.r),d=r.get(`keepAspect`),f=s?ow(s,l-a/2,u-o,a,o,null,d):new VG({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?lI:hh,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=Rc(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);Zh(r,{rotation:-((isNaN(+n)?x[0]:Rc(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);Zh(i,{shape:{endAngle:Rc(n,b,x,m.get(`clip`))}},e),l.add(i),ip(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,Xh(s,{rotation:-((isNaN(+r)?x[0]:Rc(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);Xh(v,{shape:{endAngle:Rc(r,b,x,m.get(`clip`))}},e),l.add(v),ip(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`),s=r(Rc(g.get(_,e),b,[0,1],!0));if(p){var c=g.getItemGraphicEl(e),l=g.getItemVisual(e,`style`),u=l.fill;if(c instanceof Af){var d=c.style;c.useStyle(I({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},l))}else c.useStyle(l),c.type!==`pointer`&&c.setColor(u);c.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),c.style.fill===`auto`&&c.setStyle(`fill`,s),c.z2EmphasisLift=0,vm(c,t),mm(c,i,a,o)}if(h){var m=f[e];m.useStyle(g.getItemVisual(e,`style`)),m.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),m.style.fill===`auto`&&m.setStyle(`fill`,s),m.z2EmphasisLift=0,vm(m,t),mm(m,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=ow(i,t.cx-r/2+Z(a[0],t.r),t.cy-r/2+Z(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new X,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new Uf({silent:!0}),f[e]=new Uf({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new X,g=r(Rc(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+Z(v[0],i.r),b=i.cy+Z(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:r_(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+Z(C[0],i.r),T=i.cy+Z(C[1],i.r),E=Z(S.get(`width`),i.r),D=Z(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:r_(S,{x:w,y:T,text:UG(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),p_(x,{normal:S},a,function(e){return UG(e,k)}),p&&m_(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return UG(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(zS),GG=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return HI(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:{show:!0,roundCap:!1,lineStyle:{color:[[1,Q.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Q.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Q.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:Q.color.axisLabel,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:Q.color.neutral00,borderWidth:0,borderColor:Q.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:Q.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Q.color.transparent,borderWidth:0,borderColor:Q.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:Q.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(ES);function KG(e){e.registerChartView(WG),e.registerSeriesModel(GG)}var qG=`funnel`,JG=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UI(B(this.getData,this),B(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return HI(this,{coordDimensions:[`value`],encodeDefaulter:On(My,this)})},t.prototype._defaultLabelLine=function(e){Sl(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.`+qG,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,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:Q.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},t}(ES),YG=[`itemStyle`,`opacity`],XG=function(e){P(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new Ch,o=new Uf;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(YG);c??=1,n||ng(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,Zh(r,{style:{opacity:c}},i,t)):Xh(r,{style:{opacity:c},shape:{points:o.points}},i,t),vm(r,a),this._updateLabel(e,t),mm(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;t_(i,n_(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new J(d[0][0],d[0][1]):null},Xh(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),ZA(n,QA(o),{stroke:l})},t}(xh),ZG=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=qG,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new XG(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){tg(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=qG,t}(zS);function QG(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return H(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function $G(e){var t=e.hostModel,n=nK(t);e.each(function(t){var r=e.getItemModel(t),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(t),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,d=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);U(i)&&(!n&&yn([`top`,`bottom`],i)>-1&&(i=`left`),n&&yn([`left`,`right`],i)>-1&&(i=`bottom`)),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=n?s[3][0]:s[1][0],m=n?s[3][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=n?s[0][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=n?s[1][0]:s[3][0],m=n?s[1][1]:s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),n?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}var eK=yu(qG,tK);function tK(e,t){e.eachSeriesByType(qG,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=uy(e,t),o=sy(e.getBoxLayoutParams(),a.refContainer),s=nK(e),c=o.width,l=o.height,u=QG(n,i),d=o.x,f=o.y,p=s?[Z(e.get(`minSize`),l),Z(e.get(`maxSize`),l)]:[Z(e.get(`minSize`),c),Z(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s){var i=Rc(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=Rc(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s?d+=c:f+=l,u=u.reverse());for(var x=0;x<u.length;x++){var S=u[x],C=u[x+1],w=n.getItemModel(S);if(s){var T=w.get([`itemStyle`,`width`]);T==null?T=y:(T=Z(T,c),i===`ascending`&&(T=-T));var E=b(S,d),D=b(C,d+T);d+=T+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}else{var O=w.get([`itemStyle`,`height`]);O==null?O=y:(O=Z(O,l),i===`ascending`&&(O=-O));var E=b(S,f),D=b(C,f+O);f+=O+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}}$G(n)})}function nK(e){return e.get(`orient`)===`horizontal`}function rK(e){e.registerChartView(ZG),e.registerSeriesModel(JG),e.registerLayout(eK),e.registerProcessor(VI(qG))}var iK=.3,aK=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new X,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){var i=this._dataGroup;this._progressiveEls=[],i.removeAll();var a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=lK(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){uK(cK(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n);i.add(r);var u=sK(a,t,c,s);a.setItemGraphicEl(t,r),Xh(r,{shape:{points:u}},e,t),ng(r),uK(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=oK(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=this._progressiveEls=[],o=e.start;o<e.end;o++){var s=cK(r,this._dataGroup,o,i.dimensions,i);s.incremental=_u(t),uK(s,r,o,lK(t)),a.push(s)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(zS);function oK(e,t,n){var r=e.model,i=e.getRect(),a=new Rf({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),Zh(a,{shape:{width:i.width,height:i.height}},t,n),a}function sK(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);dK(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function cK(e,t,n,r,i){var a=new Ch({shape:{points:sK(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function lK(e){var t=e.get(`smooth`,!0);return t===!0&&(t=iK),t=ol(t),Ln(t)&&(t=0),{smooth:t}}function uK(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);vm(e,i,`lineStyle`),mm(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function dK(e,t){return t===`category`?e==null:e==null||isNaN(e)}var fK=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return TD(null,this,{useEncodeDefaulter:B(pK,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},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:300,smooth:!1,animationEasing:`linear`},t}(ES);function pK(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return R(t.dimensions,function(e){n[e]=mK(e)}),n}}function mK(e){return+e.replace(`dim`,``)}var hK=[`lineStyle`,`opacity`],gK={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(hK,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function _K(e){vK(e),yK(e)}function vK(e){if(!e.parallel){var t=!1;R(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function yK(e){R(xl(e.parallelAxis),function(t){if(W(t)){var n=t.parallelIndex||0,r=xl(e.parallel)[n];r&&r.parallelAxisDefault&&gn(t,r.parallelAxisDefault,!1)}})}var bK=5,xK=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},R(SK,function(e,t){n.getZr().on(t,this._handlers[t]=B(e,this))},this)),YS(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){XS(this,`_throttledDispatchExpand`),R(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(I({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(FS),SK={mousedown:function(e){CK(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(CK(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>bK)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!CK(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function CK(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var wK=`parallel`,TK=wK,EK=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&gn(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){R([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];R(wn(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=TK,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}(vy),DK=function(e){P(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(EA);function OK(e,t,n,r,i,a){e||=0;var o=Yc(n[1],-n[0]);if(i!=null&&(i=AK(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(Yc(t[1],-t[0]));s=AK(s,[0,o]),i=a=AK(s,[i,a]),r=0}t[0]=AK(t[0],n),t[1]=AK(t[1],n);var c=kK(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=Yc(u[0],l):u[1]=Yc(u[1],-l),t[r]=AK(t[r],u);var d=kK(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=Yc(t[r],c.sign*i)),d=kK(t,r),a!=null&&d.span>a&&(t[1-r]=Yc(t[r],d.sign*a)),t}function kK(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function AK(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var jK=function(){function e(e,t,n){this.type=wK,this._axesMap=K(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;R(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=DO(a),s=this._axesMap.set(e,new DK(e,OO(a,o,!1),[0,0],o,r));s.onBand=UO(s.scale,a),s.inverse=a.get(`inverse`),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){R(this.dimensions,function(e){var t=this._axesMap.get(e);xk(t,1),Nk(t)},this)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(e,t){var n=uy(e,t).refContainer;this._rect=sy(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=MK(e.get(`axisExpandWidth`),s),u=MK(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=MK(f[1]-f[0],s),f[1]=f[0]+p):(p=MK(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||jc(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[jc(Uc(f[0]/l,1))+1,Mc(Uc(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),R(n,function(t,n){var a=(r.axisExpandable?PK:NK)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:Ic/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=ti();oi(u,u,l),ai(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];R(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Sg([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return F(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?OK(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[Oc(0,a[1]*o/f-f/2)],r[1]=Dc(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function MK(e,t){return Dc(Oc(e,t[0]),t[1])}function NK(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function PK(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}function FK(e,t){var n=[];return e.eachComponent(TK,function(r,i){var a=new jK(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`parallel`){var t=e.coordinateSystem=e.getReferringComponents(TK,ql).models[0].coordinateSystem;t&&R(t.dimensions,function(n){ck(t.getAxis(n),e,wK)})}}),n}var IK={create:FK},LK=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return Fu([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=F(e);if(t)for(var n=t.length-1;n>=0;n--)Wc(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(vy);xn(LK,WO);var RK=!0,zK=Math.min,BK=Math.max,VK=Math.pow,HK=1e4,UK=6,WK=6,GK=`globalPan`,KK={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qK={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},JK={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},YK=0,XK=function(e){P(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new X,n._uid=`brushController_`+YK++,R(Oq,function(e,t){this._handlers[t]=B(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||qR(t,GK,this._uid),R(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=gn(F(JK),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;JR(e,GK,this._uid),R(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};R(e,function(e){t[e.panelId]=F(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(e){return gn(F(JK),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new LE(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:tq(i,r[t]=o==null?QK(i,ZK(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),aq(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Tr);function ZK(e,t){var n=jq[t.brushType].createCover(e,t);return n.__brushOption=t,eq(n,t),e.group.add(n),n}function QK(e,t){var n=nq(t);return n.endCreating&&(n.endCreating(e,t),eq(t,t.__brushOption)),t}function $K(e,t){var n=t.__brushOption;nq(t).updateCoverShape(e,t,n.range,n)}function eq(e,t){var n=t.z;n??=HK,e.traverse(function(e){e.z=n,e.z2=n})}function tq(e,t){nq(t).updateCommon(e,t),$K(e,t)}function nq(e){return jq[e.__brushOption.brushType]}function rq(e,t,n){var r=e._panels;if(!r)return RK;var i,a=e._transform;return R(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function iq(e,t){var n=e._panels;if(!n)return RK;var r=t.__brushOption.panelId;return r==null?RK:n[r]}function aq(e){var t=e._covers,n=t.length;return R(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function oq(e,t){var n=z(e._covers,function(e){var t=e.__brushOption,n=F(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function sq(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return VK(i*i+a*a,.5)>UK}function cq(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function lq(e,t,n,r){var i=new X;return i.add(new Rf({name:`main`,style:pq(n),silent:!0,draggable:!0,cursor:`move`,drift:On(vq,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:On(oq,t,{isEnd:!0})})),R(r,function(n){i.add(new Rf({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:On(vq,e,t,i,n),ondragend:On(oq,t,{isEnd:!0})}))}),i}function uq(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=BK(i,WK),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;fq(e,t,`main`,o,s,m,h),r.transformable&&(fq(e,t,`w`,c,l,a,_),fq(e,t,`e`,f,l,a,_),fq(e,t,`n`,c,l,g,a),fq(e,t,`s`,c,p,g,a),fq(e,t,`nw`,c,l,a,a),fq(e,t,`ne`,f,l,a,a),fq(e,t,`sw`,c,p,a,a),fq(e,t,`se`,f,p,a,a))}function dq(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(pq(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),R([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?gq(e,n[0]):_q(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?qK[a]+`-resize`:null})})}function fq(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(Sq(xq(e,t,[[r,i],[r+a,i+o]])))}function pq(e){return L({strokeNoScale:!0},e.brushStyle)}function mq(e,t,n,r){var i=[zK(e,n),zK(t,r)],a=[BK(e,n),BK(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function hq(e){return xg(e.group)}function gq(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Cg({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],hq(e))]}function _q(e,t){var n=[gq(e,t[0]),gq(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function vq(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=bq(t,i,a);R(r,function(e){var t=KK[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(mq(s[0][0],s[1][0],s[0][1],s[1][1])),tq(t,n),oq(t,{isEnd:!1})}function yq(e,t,n,r){var i=t.__brushOption.range,a=bq(e,n,r);R(i,function(e){e[0]+=a[0],e[1]+=a[1]}),tq(e,t),oq(e,{isEnd:!1})}function bq(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function xq(e,t,n){var r=iq(e,t);return r&&r!==RK?r.clipPath(n,e._transform):F(n)}function Sq(e){var t=zK(e[0][0],e[1][0]),n=zK(e[0][1],e[1][1]),r=BK(e[0][0],e[1][0]),i=BK(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Cq(e,t,n){if(!(!e._brushType||Aq(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=rq(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===RK||s.panelId===a.panelId)&&jq[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function wq(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Tq(e,t,n){return e.childOfName(`main`).contain(t,n)}function Eq(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),sq(e)||i){if(a&&!i){o.brushMode===`single`&&aq(e);var c=F(o);c.brushType=Dq(c.brushType,a),c.panelId=a===RK?null:a.panelId,i=e._creatingCover=ZK(e,c),e._covers.push(i)}if(i){var l=jq[Dq(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(xq(e,i,e._track)),r&&(QK(e,i),l.updateCommon(e,i)),$K(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&rq(e,t,n)&&aq(e)&&(s={isEnd:r,removeOnClick:!0});return s}function Dq(e,t){return e===`auto`?t.defaultBrushType:e}var Oq={mousedown:function(e){if(this._dragging)kq(this,e);else if(!e.target||!e.target.draggable){wq(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=rq(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Cq(this,e,r),this._dragging){wq(e);var i=Eq(this,e,r,!1);i&&oq(this,i)}},mouseup:function(e){kq(this,e)}};function kq(e,t){if(e._dragging){wq(t);var n=t.offsetX,r=t.offsetY,i=Eq(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&oq(e,i)}}function Aq(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var jq={lineX:Mq(0),lineY:Mq(1),rect:{createCover:function(e,t){function n(e){return e}return lq({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=cq(e);return mq(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){uq(e,t,n,r)},updateCommon:dq,contain:Tq},polygon:{createCover:function(e,t){var n=new X;return n.add(new Ch({name:`main`,style:pq(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new xh({name:`main`,draggable:!0,drift:On(yq,e,t),ondragend:On(oq,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:xq(e,t,n)})},updateCommon:dq,contain:Tq}};function Mq(e){return{createCover:function(t,n){return lq({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=cq(t);return[zK(n[0][e],n[1][e]),BK(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=iq(t,n);if(o!==RK&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),uq(t,n,c,i)},updateCommon:dq,contain:Tq}}function Nq(e){return e=Iq(e),function(t){return Dg(t,e)}}function Pq(e,t){return e=Iq(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function Fq(e,t,n){var r=Iq(e);return function(e,i){return r.contain(i[0],i[1])&&!ZR(e,t,n)}}function Iq(e){return Y.create(e)}var Lq=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new XK(n.getZr())).on(`brush`,B(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!Rq(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new X,this.group.add(this._axisGroup),e.get(`show`)){var a=Bq(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=I({strokeContainThreshold:c},u),f=new sF(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),Eg(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=Y.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:Nq(l),isTargetByCursor:Fq(l,a,r),getLinearBrushOtherExtent:Pq(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(zq(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=z(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(FS);function Rq(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function zq(e){var t=e.axis;return z(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Bq(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var Vq={type:`axisAreaSelect`,event:`axisAreaSelected`};function Hq(e){e.registerAction(Vq,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var Uq={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function Wq(e){e.registerComponentView(xK),e.registerComponentModel(EK),e.registerCoordinateSystem(`parallel`,IK),e.registerPreprocessor(_K),e.registerComponentModel(LK),e.registerComponentView(Lq),SL(e,`parallel`,LK,Uq),Hq(e)}function Gq(e){PE(Wq),e.registerChartView(aK),e.registerSeriesModel(fK),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,gK)}var Kq=`sankey`,qq=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)i[o].depth!=null&&i[o].depth>=0&&(a[i[o].depth]=new E_(i[o],this,t));return fW(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return aS(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return aS(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+Kq,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:Q.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(ES),Jq=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}(),Yq=function(e){P(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Jq},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Yp(this)},t.prototype.downplay=function(){Xp(this)},t}(wf),Xq=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Kq,t._mainGroup=new X,t}return t.prototype.init=function(e,t){this._controller=new QR(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),XB(e,n,this._controller,ZB(i),null),r.eachEdge(function(t){var n=new Yq,r=rp(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),Zq(n.style,u,t);var k=``+a.get(`value`),A=n_(a,`edgeLabel`);t_(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,zn(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);vm(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return Zq(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var ee=j.get(`focus`);mm(n,ee===`adjacency`?t.getAdjacentDataIndices():ee===`trajectory`?t.getTrajectoryDataIndices():ee,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Rf({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});t_(f,n_(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),vm(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),rp(f).dataType=`node`;var p=u.get(`focus`);mm(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(Qq(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){MB(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=nV(e,t,n.x,n.y,n.width,n.height);MB(this.group,2,r,this._firstRender?null:e)},t.type=Kq,t}(zS);function Zq(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);U(r)&&U(i)&&(e.fill=new Ph(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function Qq(e,t,n){var r=new Rf({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Zh(r,{shape:{width:e.width+20}},t,n),r}var $q=yu(Kq,eJ);function eJ(e,t){e.eachSeriesByType(Kq,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=uy(e,t).refContainer,a=sy(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;nJ(l),tJ(l,u,n,r,o,s,wn(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function tJ(e,t,n,r,i,a,o,s,c){rJ(e,t,n,i,a,s,c),cJ(e,t,a,i,r,o,s),xJ(e,s)}function nJ(e){R(e,function(e){var t=yJ(e.outEdges,vJ),n=yJ(e.inEdges,vJ),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function rJ(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=yn(t,y);s[b]=0;var x=y.node2,S=yn(e,x);--c[S]===0&&yn(u,x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&aJ(e,o,a,C),sJ(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function iJ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function aJ(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];yn(i,u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}R(e,function(e){iJ(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&oJ(e,r)}function oJ(e,t){R(e,function(e){!iJ(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function sJ(e,t,n){R(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function cJ(e,t,n,r,i,a,o){var s=lJ(e,o);uJ(s,t,n,r,i,o),dJ(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,fJ(s,c,o),dJ(s,i,n,r,o),bJ(s,c,o),dJ(s,i,n,r,o)}function lJ(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=eu(e,function(e){return e.getLayout()[r]});return Wc(i.keys),R(i.keys,function(e){n.push(i.buckets.get(e))}),n}function uJ(e,t,n,r,i,a){var o=1/0;R(e,function(e){var t=e.length,s=0;R(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),R(e,function(e){R(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),R(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function dJ(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;R(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function fJ(e,t,n){R(e.slice().reverse(),function(e){R(e,function(e){if(e.outEdges.length){var r=yJ(e.outEdges,pJ,n)/yJ(e.outEdges,vJ);if(isNaN(r)){var i=e.outEdges.length;r=i?yJ(e.outEdges,mJ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-_J(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-_J(e,n))*t;e.setLayout({y:o},!0)}}})})}function pJ(e,t){return _J(e.node2,t)*e.getValue()}function mJ(e,t){return _J(e.node2,t)}function hJ(e,t){return _J(e.node1,t)*e.getValue()}function gJ(e,t){return _J(e.node1,t)}function _J(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function vJ(e){return e.getValue()}function yJ(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function bJ(e,t,n){R(e,function(e){R(e,function(e){if(e.inEdges.length){var r=yJ(e.inEdges,hJ,n)/yJ(e.inEdges,vJ);if(isNaN(r)){var i=e.inEdges.length;r=i?yJ(e.inEdges,gJ,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-_J(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-_J(e,n))*t;e.setLayout({y:o},!0)}}})})}function xJ(e,t){var n=t===`vertical`?`x`:`y`;R(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),R(e,function(e){var t=0,n=0;R(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),R(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}var SJ=yu(Kq,CJ);function CJ(e){e.eachSeriesByType(Kq,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;R(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),R(n,function(t){var n=new FU({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&R(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function wJ(e){e.registerChartView(Xq),e.registerSeriesModel(qq),e.registerLayout($q),e.registerVisual(SJ),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:ap,subType:Kq,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),$B(e,ap,Kq)}var TJ=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];R(g,function(e,t){var n;V(e)?(n=e.slice(),e.unshift(t)):V(e.value)?(n=I({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:VE(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:VE(h),dimsDef:v.slice()}];return HI(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:On(jy,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function EJ(e,t){for(var n=t.ends.length,r=0,i=0;i<n;i++)e.contain(t.ends[i][0],t.ends[i][1])&&r++;return r?+(r<n):2}var DJ=`boxplot`,OJ=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.`+DJ,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:Q.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}},animationDuration:800},t}(ES);xn(OJ,TJ,!0);var kJ=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=DJ,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.getWhiskerBoxesLayout()===`horizontal`),s=e.get(`clip`,!0),c=e.coordinateSystem,l=c.getArea&&c.getArea(),u=s&&iP(c,!1,e);r.diff(a).add(function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=s?EJ(l,t):0;if(n===2)return;var a=MJ(t,r,e,o,!0);aP(n===1,a,u),r.setItemGraphicEl(e,a),i.add(a)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var c=r.getItemLayout(e),d=s?EJ(l,c):0;if(d===2){i.remove(n);return}n?(ng(n),NJ(c,n,r,e)):n=MJ(c,r,e,o),aP(d===1,n,u),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=DJ,t}(zS),AJ=function(){function e(){}return e}(),jJ=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new AJ},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(wf);function MJ(e,t,n,r,i){var a=e.ends,o=new jJ({shape:{points:i?PJ(a,r,e):a}});return NJ(e,o,t,n,i),o}function NJ(e,t,n,r,i){var a=n.hostModel,o=ig[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);vm(t,s),mm(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function PJ(e,t,n){return z(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var FJ=pu(),IJ=yu(DJ,LJ);function LJ(e){var t=RF(DJ);rk(e,t,function(e){var n=nk(e,t);if(n){var r=RJ(e,n);ek(e,t,function(e){var t=e.seriesIndex;zJ(e,r.boxOffsetList[t],r.boxWidthList[t])})}})}function RJ(e,t){var n=[],r=[],i=[],a=SA(e,{fromStat:{key:RF(DJ)},min:1}).w;ek(e,RF(DJ),function(e){var t=e.get(`boxWidth`);V(t)||(t=[t,t]),i[e.seriesIndex]=[Z(t[0],a)||0,Z(t[1],a)||0]});var o=a*.8-2,s=o/t*.3,c=(o-s*(t-1))/t,l=c/2-o/2;return ek(e,RF(DJ),function(e){var t=e.seriesIndex;r[t]=l,l+=s+c,n[t]=Dc(Oc(c,i[t][0]),i[t][1])}),{boxOffsetList:r,boxWidthList:n}}function zJ(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.getWhiskerBoxesLayout()===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function BJ(e){FJ(e,function(){var t=RF(DJ);uk(e,{key:t,seriesType:DJ,getMetrics:BF}),Tk(t,LF(t))})}function VJ(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=Wc(e[o].slice()),c=il(s,.25),l=il(s,.5),u=il(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=H(g)?g({value:o}):U(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var HJ={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&_l(``);var n=VJ(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function UJ(e){e.registerSeriesModel(OJ),e.registerChartView(kJ),e.registerLayout(IJ),e.registerTransform(HJ),BJ(e)}var WJ=`candlestick`,GJ=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+WJ,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:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(ES);xn(GJ,TJ,!0);var KJ=[`itemStyle`,`borderColor`],qJ=[`itemStyle`,`borderColor0`],JJ=[`itemStyle`,`borderColorDoji`],YJ=[`itemStyle`,`color`],XJ=[`itemStyle`,`color0`];function ZJ(e,t){return t.get(e>0?YJ:XJ)}function QJ(e,t){return t.get(e===0?JJ:e>0?KJ:qJ)}var $J={seriesType:WJ,plan:IS(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=ZJ(i,r),a.stroke=QJ(i,r)||a.fill,I(t.ensureUniqueItemVisual(n,`style`),a)}}}}},eY=[`color`,`borderColor`],tY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&iP(o,!1,e);this._data||r.removeAll();var l=sY(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?EJ(s,o):0;if(u===2)return;var d=iY(o,n,l,!0);Zh(d,{shape:{points:o.ends}},e,n),aP(u===1,d,c),aY(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?EJ(s,f):0;if(p===2){r.remove(d);return}d?(Xh(d,{shape:{points:f.ends}},e,o),ng(d)):d=iY(f,o,l),aY(d,t,o,i),aP(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),uY(e,this.group);var t=e.get(`clip`,!0)?iP(e.coordinateSystem,!1,e):null;aP(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=sY(t),a;(a=e.next())!=null;){var o=iY(n.getItemLayout(a),a,i);aY(o,n,a,r),o.incremental=_u(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){uY(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),aP(!1,this.group,null),this._data=null},t.type=WJ,t}(zS),nY=function(){function e(){}return e}(),rY=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new nY},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(wf);function iY(e,t,n,r){var i=e.ends;return new rY({shape:{points:r?oY(i,n,e):i},z2:100})}function aY(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,vm(e,i);var o=t.getItemLayout(n).sign;R(e.states,function(e,t){var n=i.getModel(t),r=ZJ(o,n),a=QJ(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);mm(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function oY(e,t,n){return z(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function sY(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var cY=function(){function e(){}return e}(),lY=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new cY},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(wf);function uY(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new lY({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new lY({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new lY({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),dY(1,o,e,i),dY(-1,s,e,i),dY(0,c,e,i),r&&(o.incremental=_u(e),s.incremental=_u(e),c.incremental=_u(e)),n&&n.push(o,s,c)}function dY(e,t,n,r){var i=QJ(e,n)||ZJ(e,n),a=n.getModel(`itemStyle`).getItemStyle(eY);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function fY(e){!e||!V(e.series)||R(e.series,function(e){W(e)&&e.type===`k`&&(e.type=WJ)})}var pY=pu(),mY={seriesType:WJ,plan:IS(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=gY(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=z(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Dc(m,h),y=Oc(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:hY(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=bg(a[i]+r/2,1,!1),o[i]=bg(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=bg(e[i],1),e}}function m(n,r){for(var o=GN(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=hY(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function hY(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function gY(e,t){var n=SA(e.getBaseAxis(),{fromStat:{key:RF(WJ)},min:1}).w,r=Z(G(e.get(`barMaxWidth`),n),n),i=Z(G(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?Oc(Dc(n/2,r),i):Z(a,n)}function _Y(e){pY(e,function(){var t=RF(WJ);uk(e,{key:t,seriesType:WJ,getMetrics:BF}),Tk(t,LF(t))})}function vY(e){e.registerChartView(tY),e.registerSeriesModel(GJ),e.registerPreprocessor(fY),e.registerVisual($J),e.registerLayout(mY),_Y(e)}function yY(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var bY=function(e){P(t,e);function t(t,n){var r=e.call(this)||this,i=new MN(t,n),a=new X;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=ow(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}yY(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}yY(n,e)},t.prototype.highlight=function(){Yp(this)},t.prototype.downplay=function(){Xp(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=sw(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=cw(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,mm(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(X),xY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new RN(bY)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,SY(e)),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=jP(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(SY(e))},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=li(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(zS);function SY(e){return{clipShape:oP(e)}}var CY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return TD(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},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}(ES);function wY(e){e.registerChartView(xY),e.registerSeriesModel(CY),e.registerLayout(jP(`effectScatter`))}var TY=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new aG(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);V(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=ow(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=Rn(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=H(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return gr(e.__p1,e.__cp1)+gr(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<=1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=wa,c=Ta;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<=1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<=1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=gr(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*gr(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(X),EY=function(e){P(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new Ch({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;Xh(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,mm(this,o,s,c)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.stopAnimation(),n.setShape(`points`,e.getItemLayout(t))},t}(X),DY=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new EY(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=gr(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<=1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<=1?l[0]-c[0]:c[0]-l[0],d=e.__t<=1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(TY),OY=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),kY=function(e){P(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OY},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if($d(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(tf(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if($d(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new Y(n,r,i,a)}return e},t}(wf),AY=function(){function e(){this.group=new X}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`linesPoints`),a=r&&r.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var c=this._create();c.incremental=n,c.setShape({segs:i}),this._setCommon(c,t),c.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new kY({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.getModel(`lineStyle`).getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual(`style`);i&&i.stroke&&e.setStyle(`stroke`,i.stroke),e.setStyle(`fill`,null);var a=rp(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),jY={seriesType:`lines`,plan:IS(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}}},MY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=!!Zg(n);c&&s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&c&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),i.updateData(r);var l=e.get(`clip`,!0)&&iP(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData(),_u(t)),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=this._lineDraw;if(!this._finished||!i||!i.updateLayout)return{update:!0};var a=jY.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),i.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new AY:new oG(i?r?DY:EY:r?TY:aG),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=Zg(e);t&&this._lastZlevel!=null&&t.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(zS),NY=typeof Uint32Array>`u`?Array:Uint32Array,PY=typeof Float64Array>`u`?Array:Float64Array;function FY(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=z(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),_n([t,e[0],e[1]])}))}var IY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],FY(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(FY(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Zn(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Zn(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),An(e[0])){for(var n=e.length,r=new NY(n),i=new PY(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];i[a++]=d,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new dD([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getItemModel(e),o=a.get(`name`);if(!o){var s=a.get(`fromName`),c=a.get(`toName`),l=[];s!=null&&l.push(s),c!=null&&l.push(c),o=l.join(` > `)}return aS(`nameValue`,{name:o,value:i,noValue:i==null||isNaN(i)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},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}(ES);function LY(e){return e instanceof Array||(e=[e,e]),e}var RY={seriesType:`lines`,reset:function(e){var t=LY(e.get(`symbol`)),n=LY(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=LY(n.getShallow(`symbol`,!0)),i=LY(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function zY(e){e.registerChartView(MY),e.registerSeriesModel(IY),e.registerLayout(jY),e.registerVisual(RY)}var BY=256,VY=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=$t.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(BY-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=$t.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Q.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function HY(e,t,n){var r=e[1]-e[0];t=z(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function UY(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}var WY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):cP(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(cP(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=sP(a,`cartesian2d`),s=sP(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=SA(f).w+.5,l=SA(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=n_(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new Rf({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var ee=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(Ln(ee.x))continue;D=new Rf({z2:1,shape:ee,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var M=a.dataToLayout([h.get(T[0],E)]),ee=M.contentRect||M.rect;if(Ln(ee.x)||Ln(ee.y))continue;D=new Rf({z2:1,shape:ee,style:O})}if(h.hasItemOption){var te=h.getItemModel(E),ne=te.getModel(`emphasis`);g=ne.getModel(`itemStyle`).getItemStyle(),_=te.getModel([`blur`,`itemStyle`]).getItemStyle(),v=te.getModel([`select`,`itemStyle`]).getItemStyle(),y=te.get([`itemStyle`,`borderRadius`]),S=ne.get(`focus`),C=ne.get(`blurScope`),w=ne.get(`disabled`),b=n_(te)}D.shape.r=y;var re=e.getRawValue(E),ie=`-`;re&&re[2]!=null&&(ie=re[2]+``),t_(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:ie}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,mm(D,S,C,w),D.incremental=_u(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new VY;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?UY(v,n.option.range):HY(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Af({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(zS),GY=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return TD(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=Gv.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},t}(ES);function KY(e){e.registerChartView(WY),e.registerSeriesModel(GY)}var qY=[`itemStyle`,`borderWidth`],JY=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],YY=new Xm,XY=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=VF,t}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:JY[+s],categoryDim:JY[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=ZY(i,e,cX(i,e),l),n=dX(i,l,t);i.setItemGraphicEl(e,n),r.add(n),_X(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=ZY(i,e,cX(i,e),l),s=mX(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?fX(n,l,o):n=dX(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),_X(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&pX(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?iP(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){pX(r,rp(t).dataIndex,e,t)}):n.removeAll()},t.type=VF,t}(zS);function ZY(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};QY(n,a,i,r,d),eX(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),tX(n,d.symbolScale,c,r,d);var f=d.symbolSize;return nX(n,f,i,a,o,cw(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function QY(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(V(o)){var d=[$Y(s,o[0])-c,$Y(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:$Y(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function $Y(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function eX(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=V(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=Z(m[d.index],f),m[u.index]=Z(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function tX(e,t,n,r,i){var a=e.get(qY)||0;a&&(YY.attr({scaleX:t[0],scaleY:t[1],rotation:n}),YY.updateTransform(),a/=YY.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function nX(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=Rn(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=Z(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=sl(r),w=C?r:vX((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?vX((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=I({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function rX(e){var t=e.symbolPatternSize,n=ow(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function iX(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(hX(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?gX(e,null,m(u),n,r):gX(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=rX(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);gX(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function aX(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?gX(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=rX(n),i.add(a),gX(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function oX(e,t,n){var r=I({},t.barRectShape),i=e.__pictorialBarRect;i?gX(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Rf({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function sX(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=I({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Xh(i,{shape:a},s,c);else{a[o.wh]=0,i=new Rf({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],ig[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function cX(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=lX,n.isAnimationEnabled=uX,n}function lX(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function uX(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function dX(e,t,n,r){var i=new X,a=new X;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?iX(i,t,n):aX(i,t,n),oX(i,n,r),sX(i,t,n,r),i.__pictorialShapeStr=mX(e,n),i.__pictorialSymbolMeta=n,i}function fX(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Xh(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?iX(e,t,n,!0):aX(e,t,n,!0),oX(e,n,!0),sX(e,t,n,!0)}function pX(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];hX(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),R(a,function(e){$h(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function mX(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function hX(e,t,n){R(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function gX(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&ig[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function _X(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);hX(e,function(e){if(e instanceof Af){var t=e.style;e.useStyle(I({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,t_(m,n_(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:AN(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),mm(e,u,d,a.get(`disabled`))}function vX(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var yX=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.`+VF,t.dependencies=[`grid`],t.defaultOption=j_(oI.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%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Q.color.primary}}}),t}(oI);function bX(e){e.registerChartView(XY),e.registerSeriesModel(yX),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,tI(VF)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,nI(VF)),aI(e)}var xX=2,SX=`themeRiver`,CX=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new UI(B(this.getData,this),B(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=eu(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,ql).models[0].get(`type`),r=wn(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=K(),s=0,c=0;c<i.length;++c)a.push(i[c][xX]),o.get(i[c][xX])||(o.set(i[c][xX],s),s++);var l=fD(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:VE(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new dD(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=eu(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){V(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return aS(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.`+SX,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}(ES),wX=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=SX,t._layers=[],t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new LE(this._layersSeries||[],o,u,u),f=[];d.add(B(p,this,`add`)).update(B(p,this,`update`)).remove(B(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new X;y=new tP({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(TX(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,Xh(y,{shape:{points:l,stackedOnPoints:u}},e),ng(y)}t_(y,n_(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),vm(y,e),mm(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=SX,t}(zS);function TX(e,t,n){var r=new Rf({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Zh(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var EX=yu(SX,DX);function DX(e,t){e.eachSeriesByType(SX,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=Z(a[0],i.height),a[1]=Z(a[1],i.height),OX(t,e,i.height-a[0]-a[1])):(a[0]=Z(a[0],i.width),a[1]=Z(a[1],i.width),OX(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function OX(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=z(i,function(t){return z(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=kX(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function kX(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function AX(e){e.registerChartView(wX),e.registerSeriesModel(CX),e.registerLayout(EX),e.registerProcessor(VI(SX))}var jX=2,MX=4,NX=function(e){P(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=jX,a.textConfig={inside:!0},rp(a).seriesIndex=n.seriesIndex;var o=new Uf({z2:MX,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;rp(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=I({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=Jw(d,i)),I(l,mI(o.getModel(`itemStyle`),l,!0)),R(Sp,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=mI(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,Zh(a,{shape:{r:c.r}},n,t.dataIndex)):(Xh(a,{shape:l},n),ng(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?Zn(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;mm(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),R(Cp,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=r_(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=rf(w===`tangential`?Math.PI/2-o:o),O=D>T&&!Qc(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=i.r0===0&&Qc(a-2*Math.PI)?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=rf(-o)+(O?Math.PI:0):w===`tangential`?k=rf(Math.PI/2-o)+(O?Math.PI:0):An(w)&&(k=w*Math.PI/180),h.rotation=rf(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(hh),PX=`sunburst`,FX=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};IX(n);var r=this._levelModels=z(e.levels||[],function(e){return new E_(e,this,t)},this),i=uH.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=hH(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){RH(this)},t.type=`series.`+PX,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}},animationType:`expansion`,animationDuration:1e3,animationDurationUpdate:500,data:[],sort:`desc`},t}(ES);function IX(e){var t=0;R(e.children,function(e){IX(e);var n=e.value;V(n)&&(n=n[0]),t+=n});var n=e.value;V(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),V(e.value)?e.value[0]=n:e.value=n}var LX=`sunburstRootToNode`,RX=`sunburstHighlight`,zX=`sunburstUnhighlight`;function BX(e){e.registerAction({type:LX,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=fH(e,[LX],t);if(r){var i=t.getViewRoot();i&&(e.direction=mH(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:RX,update:`none`},function(e,t,n){e=I({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=fH(e,[RX],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(I(e,{type:`highlight`}))}),e.registerAction({type:zX,update:`updateView`},function(e,t,n){e=I({},e),n.dispatchAction(I(e,{type:`downplay`}))})}var VX=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=PX,t}return t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new LE(t,e,n,n).add(r).update(r).remove(On(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new NX(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new NX(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&Hv(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:LX,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=PX,t}(zS),HX=yu(PX,UX);function UX(e){var t={};function n(e,n,r){if(e.depth===0)return Q.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&U(a)&&(a=$a(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(PX,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),I(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}var WX=Math.PI/180,GX=yu(PX,KX);function KX(e,t){e.eachSeriesByType(PX,function(e){var n=e.get(`center`),r=e.get(`radius`);V(r)||(r=[0,r]),V(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=Z(n[0],i),c=Z(n[1],a),l=Z(r[0],o/2),u=Z(r[1],o/2),d=-e.get(`startAngle`)*WX,f=e.get(`minAngle`)*WX,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&qX(m,g);var _=0;R(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=Z(_,o/2)),x!=null&&(m=Z(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;R(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function qX(e,t){var n=e.children||[];e.children=JX(n,t),n.length&&R(e.children,function(e){qX(e,t)})}function JX(e,t){if(H(t)){var n=z(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),z(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function YX(e){e.registerChartView(VX),e.registerSeriesModel(FX),e.registerLayout(GX),e.registerVisual(HX),BX(e)}var XX={color:`fill`,borderColor:`stroke`},ZX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},QX=Ul(),$X=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return TD(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=QX(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(ES);function eZ(e,t){return t||=[0,0],z([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?SA(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function tZ(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(t){return e.dataToPoint(t)},size:B(eZ,e)}}}function nZ(e,t){return t||=[0,0],z([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function rZ(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:oB(t)},api:{coord:function(t){return e.dataToPoint(t)},size:B(nZ,e)}}}function iZ(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?SA(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function aZ(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:B(iZ,e)}}}function oZ(e,t){return t||=[0,0],z([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?SA(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function sZ(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:B(oZ,e)}}}function cZ(e){var t=e.getRect(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function lZ(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var uZ={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},dZ=En(uZ);Cn(Fs,function(e,t){return e[t]=1,e},{}),Fs.join(`, `);var fZ=[``,`style`,`shape`,`extra`],pZ=Ul();function mZ(e,t,n,r,i){var a=e+`Animation`,o=Jh(e,r,i)||{},s=pZ(t).userDuring;return o.duration>0&&(o.during=s?B(wZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),I(o,n[a]),o}function hZ(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=pZ(e),l=t.style;c.userDuring=t.during;var u={},d={};if(OZ(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];EZ(`shape`,h,f[m])}else EZ(`shape`,t,d),EZ(`extra`,t,d);if(!a&&s&&(DZ(e,t,u),TZ(`shape`,e,t,u),TZ(`extra`,e,t,u),kZ(e,t,l,u)),d.style=l,yZ(e,d,o),xZ(e,t),s)if(a){var g={};R(fZ,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),I(e?g[e]:g,n.enterFrom))});var _=mZ(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else bZ(e,t,i||0,n,u);gZ(e,t),l?e.dirty():e.markRedraw()}function gZ(e,t){for(var n=pZ(e).leaveToProps,r=0;r<fZ.length;r++){var i=fZ[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=pZ(e).leaveToProps={},i&&(n[i]=n[i]||{}),I(i?n[i]:n,a.leaveTo))}}function _Z(e,t,n,r){if(e){var i=e.parent,a=pZ(e).leaveToProps;if(a){var o=mZ(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function vZ(e){return e===`all`}function yZ(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function bZ(e,t,n,r,i){if(i){var a=mZ(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function xZ(e,t){q(t,`silent`)&&(e.silent=t.silent),q(t,`ignore`)&&(e.ignore=t.ignore),e instanceof hd&&q(t,`invisible`)&&(e.invisible=t.invisible),e instanceof wf&&q(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var SZ={},CZ={setTransform:function(e,t){return SZ.el[e]=t,this},getTransform:function(e){return SZ.el[e]},setShape:function(e,t){var n=SZ.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=SZ.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=SZ.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=SZ.el.style;if(t)return t[e]},setExtra:function(e,t){var n=SZ.el.extra||(SZ.el.extra={});return n[e]=t,this},getExtra:function(e){var t=SZ.el.extra;if(t)return t[e]}};function wZ(){var e=this,t=e.el;if(t){var n=pZ(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}SZ.el=t,r(CZ)}}function TZ(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),vZ(c))I(o,a);else for(var l=xl(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(vZ(s)||yn(s,e)>=0){!o&&(o=r[e]={});for(var p=En(a),u=0;u<p.length;u++){var d=p[u],f=a[d];AZ(i[d],f)&&(o[d]=f)}}}}}function EZ(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=En(r),o=0;o<a.length;o++){var s=a[o];i[s]=Ro(r[s])}}function DZ(e,t,n){for(var r=t.transition,i=vZ(r)?Fs:xl(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function OZ(e,t,n){for(var r=0;r<dZ.length;r++){var i=dZ[r],a=uZ[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Fs.length;r++){var s=Fs[r];t[s]!=null&&(n[s]=t[s])}}function kZ(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!vZ(o)){var c=xl(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(vZ(s)||vZ(o)||yn(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=En(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function AZ(e,t){return Sn(e)?e!==t:e!=null&&isFinite(e)}var jZ=Ul(),MZ=[`percent`,`easing`,`shape`,`style`,`extra`];function NZ(e){e.stopAnimation(`keyframe`),e.attr(jZ(e))}function PZ(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(V(t)){R(t,function(t){PZ(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=Jh(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=jZ(e);R(fZ,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),R(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=En(c);if(n||(l=wn(l,function(e){return yn(MZ,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;R(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var FZ=`emphasis`,IZ=`normal`,LZ=`blur`,RZ=`select`,zZ=[IZ,FZ,LZ,RZ],BZ={normal:[`itemStyle`],emphasis:[FZ,`itemStyle`],blur:[LZ,`itemStyle`],select:[RZ,`itemStyle`]},VZ={normal:[`label`],emphasis:[FZ,`label`],blur:[LZ,`label`],select:[RZ,`label`]},HZ=[`x`,`y`],UZ=`e\0\0`,WZ={normal:{},emphasis:{},blur:{},select:{}},GZ={cartesian2d:tZ,geo:rZ,single:aZ,polar:sZ,calendar:cZ,matrix:lZ};function KZ(e){return e instanceof wf}function qZ(e){return e instanceof hd}function JZ(e,t){t.copyTransform(e),qZ(t)&&qZ(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,KZ(t)&&KZ(e)&&t.setShape(e.shape))}var YZ=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=tQ(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){rQ(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&_Z(n,QX(n).option,e)}).update(function(t,c){rQ(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?iP(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=tQ(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=_u(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=rQ(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){zg(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(zS);function XZ(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=_Q(r);n=pg(a,null,i,r.layout||`center`),QX(n).customPathData=a}else if(t===`image`)n=new Af({}),QX(n).customImagePath=e.style.image;else if(t===`text`)n=new Uf({});else if(t===`group`)n=new X;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;_l(o)}n=new Mh({shape:{paths:z(r.paths,function(e){if(e.type===`path`)return pg(e.shape.pathData,e,null);var t=fg(e.type);return t||_l(``),new t})}})}else{var s=fg(t);if(!s){var o=``;_l(o)}n=new s}return QX(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function ZZ(e,t,n,r,i,a,o){NZ(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=HZ);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;q(l,`textFill`)&&(l.fill=l.textFill),q(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=KZ(t)?c.decal:null;e&&d&&(d.dirty=!0,u=Jw(d,e)),c.__decalPattern=u}if(qZ(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}hZ(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),PZ(t,r.keyframeAnimation,a)}function QZ(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),Kp(a)}}function $Z(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<zZ.length;s++)eQ(r,t,zZ[s])}}function eQ(e,t,n){var r=n===IZ,i=r?t:lQ(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function tQ(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=GC(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):GZ[o.type](o));for(var c=L({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:nQ(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<zZ.length;g++){var _=zZ[g];m[_]=e.getModel(BZ[_]),h[_]=e.getModel(VZ[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(BZ[n])):v(e).getModel(BZ[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(VZ[n])):v(e).getModel(VZ[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(L({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,IZ).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:U(a)?a:Q.color.neutral99},l=b(r,IZ),d=r_(l,null,c,!1,!0);d.text=l.getShallow(`show`)?G(e.getFormattedLabel(r,IZ),AN(t,r)):null;var f=i_(l,c,!1);return E(n,s),s=fP(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,FZ).getItemStyle(),a=b(r,FZ),o=r_(a,null,null,!0,!0);o.text=a.getShallow(`show`)?zn(e.getFormattedLabel(r,FZ),e.getFormattedLabel(r,IZ),AN(t,r)):null;var s=i_(a,null,!0);return E(n,i),i=fP(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)q(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,q(XX,e)){var r=t.getItemVisual(n,`style`);return r?r[XX[e]]:null}if(q(ZX,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return ZF(L({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return d_(e,n)}}function nQ(e){var t={};return R(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function rQ(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=iQ(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&mm(s,r.focus,r.blurScope,r.emphasisDisabled),s}function iQ(e,t,n,r,i,a){var o=-1,s=t;t&&aQ(t,r,i)&&(o=yn(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=XZ(r),s&&JZ(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),WZ.normal.cfg=WZ.normal.conOpt=WZ.emphasis.cfg=WZ.emphasis.conOpt=WZ.blur.cfg=WZ.blur.conOpt=WZ.select.cfg=WZ.select.conOpt=null,WZ.isLegacy=!1,sQ(l,n,r,i,c,WZ),oQ(l,n,r,i,c),ZZ(e,l,n,r,WZ,i,c),q(r,`info`)&&(QX(l).info=r.info);for(var u=0;u<zZ.length;u++){var d=zZ[u];if(d!==IZ){var f=lQ(r,d),p=uQ(r,f,d);QZ(d,l,f,p,WZ)}}return $Z(l,r,i),r.type===`group`&&dQ(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function aQ(e,t,n){var r=QX(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&vQ(a)&&_Q(a)!==r.customPathData||i===`image`&&q(o,`image`)&&o.image!==r.customImagePath}function oQ(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&aQ(o,a,r)&&(o=null),o||(o=XZ(a),e.setClipPath(o)),ZZ(null,o,t,a,null,r,i)}}function sQ(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){cQ(n,null,a),cQ(n,FZ,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=XZ(o),e.setTextContent(u)),ZZ(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<zZ.length;f++){var p=zZ[f];if(p!==IZ){var m=a[p].conOpt;QZ(p,u,m,uQ(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function cQ(e,t,n){var r=t?lQ(e,t):e,i=t?uQ(e,r,FZ):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?lQ(s,t):s:null;if(i&&(n.isLegacy||lP(i,a,!!o,!!c))){n.isLegacy=!0;var l=uP(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function lQ(e,t){return t?e?e[t]:null:e}function uQ(e,t,n){var r=t&&t.style;return r==null&&n===FZ&&e&&(r=e.styleEmphasis),r}function dQ(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){pQ({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,iQ(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)fQ(t,t.childAt(p),i)}}function fQ(e,t,n){t&&_Z(t,QX(e).option,n)}function pQ(e){new LE(e.oldChildren,e.newChildren,mQ,mQ,e).add(hQ).update(hQ).remove(gQ).execute()}function mQ(e,t){return(e&&e.name)??UZ+t}function hQ(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];iQ(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function gQ(e){var t=this.context,n=t.oldChildren[e];n&&_Z(n,QX(n).option,t.seriesModel)}function _Q(e){return e&&(e.pathData||e.d)}function vQ(e){return e&&(q(e,`pathData`)||q(e,`d`))}function yQ(e){e.registerChartView(YZ),e.registerSeriesModel($X)}var bQ=Ul(),xQ=F,SQ=B,CQ=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new X,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=On(wQ,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}OQ(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&SA(r).w>o)return!0;if(a){var s=$L(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=bQ(e).pointerEl=new ig[i.type](xQ(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=bQ(e).labelEl=new Uf(xQ(t.label));e.add(i),EQ(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=bQ(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=bQ(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),EQ(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=kg(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Yr(e.event)},onmousedown:SQ(this._onHandleDragMove,this,0,0),drift:SQ(this._onHandleDragMove,this),ondragend:SQ(this._onHandleDragEnd,this)}),n.add(r)),OQ(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);V(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,YS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){wQ(this._axisPointerModel,!t&&this._moveAnimation,this._handle,DQ(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(DQ(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(DQ(r)),bQ(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),XS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function wQ(e,t,n,r){TQ(bQ(n).lastProp,r)||(bQ(n).lastProp=r,t?Xh(n,r,e):(n.stopAnimation(),n.attr(r)))}function TQ(e,t){if(W(e)&&W(t)){var n=!0;return R(t,function(t,r){n&&=TQ(e[r],t)}),!!n}else return e===t}function EQ(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function DQ(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function OQ(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function kQ(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function AQ(e,t,n,r,i){var a=MQ(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Pv(o.get(`padding`)||0),c=o.getFont(),l=Gs(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),jQ(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:r_(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function jQ(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function MQ(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:NO(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),U(o)?a=o.replace(`{value}`,a):H(o)&&(a=o(s))}return a}function NQ(e,t,n){var r=ti();return oi(r,r,n.rotation),ai(r,r,n.position),Sg([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function PQ(e,t,n,r,i,a){var o=sF.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),AQ(t,r,i,a,{position:NQ(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function FQ(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function IQ(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function LQ(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function RQ(e,t,n){return SA(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function zQ(e,t,n){return[Oc(Dc(t[0],t[1]),e-n/2),Dc(e+n/2,Oc(t[0],t[1]))]}var BQ=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=VQ(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=kQ(r),f=HQ[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}PQ(t,e,OF(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=OF(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=NQ(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=VQ(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Dc(o[1],l[c]),l[c]=Oc(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(CQ);function VQ(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var HQ={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:FQ([t,r[0]],[t,r[1]],UQ(e))}},shadow:function(e,t,n,r,i,a){var o=RQ(e,i,a),s=r[1]-r[0],c=zQ(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:IQ([l,r[0]],[u-l,s],UQ(e))}}};function UQ(e){return e.dim===`x`?0:1}var WQ=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,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:Q.color.accent40,throttle:40}},t}(vy),GQ=Ul(),KQ=R;function qQ(e,t,n){if(!Gt.node){var r=t.getZr();GQ(r).records||(GQ(r).records={}),JQ(r,t);var i=GQ(r).records[e]||(GQ(r).records[e]={});i.handler=n}}function JQ(e,t){if(GQ(e).initialized)return;GQ(e).initialized=!0,n(`click`,On(ZQ,`click`)),n(`mousemove`,On(ZQ,`mousemove`)),n(`mousewheel`,On(ZQ,`mousewheel`)),n(`globalout`,XQ);function n(n,r){e.on(n,function(n){var i=QQ(t);KQ(GQ(e).records,function(e){e&&r(e,n,i.dispatchAction)}),YQ(i.pendings,t)})}}function YQ(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function XQ(e,t,n){e.handler(`leave`,null,n)}function ZQ(e,t,n,r){t.handler(e,n,r)}function QQ(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function $Q(e,t){if(!Gt.node){var n=t.getZr();(GQ(n).records||{})[e]&&(GQ(n).records[e]=null)}}var e$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;qQ(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){$Q(`axisPointer`,t)},t.prototype.dispose=function(e,t){$Q(`axisPointer`,t)},t.type=`axisPointer`,t}(FS);function t$(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Hl(a,e);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var n$=Ul();function r$(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||B(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){p$(i)&&(i=t$({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=p$(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||p$(i),f={},p={},m={list:[],map:{}},h={showPointer:On(o$,p),showTooltip:On(s$,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=d$(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&i$(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,f$(t),f$(e)))),g[e.key]=a}})}),R(g,function(e,t){i$(u[t],e,h,!0,f)}),c$(p,u,f),l$(m,i,e,o),u$(u,o,n),f}}function i$(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=a$(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function a$(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(dl(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function o$(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function s$(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=tR(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function c$(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function l$(e,t,n,r){if(p$(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function u$(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=n$(r)[i]||{},o=n$(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function d$(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function f$(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function p$(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function m$(e){rR.registerAxisPointerClass(`CartesianAxisPointer`,BQ),e.registerComponentModel(WQ),e.registerComponentView(e$),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=KL(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},r$)}function h$(e){PE(mR),PE(m$)}var g$=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),c=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=r.get(`type`);if(u&&u!==`none`){var d=kQ(r),f=v$[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}AQ(e,n,r,i,_$(t,n,r,o,r.get([`label`,`margin`])))},t}(CQ);function _$(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=ti();oi(f,f,s),ai(f,f,[r.cx,r.cy]),l=Sg([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=sF.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var v$={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:FQ(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i,a,o){var s=Math.PI/180,c=RQ(e,a,o),l;if(e.dim===`angle`)l=LQ(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=zQ(n,r,c),d=u[0],f=u[1];l=LQ(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},y$=`polar`,b$=y$,x$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=y$,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(vy),S$=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,ql).models[0]},t.type=`polarAxis`,t}(vy);xn(S$,WO);var C$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(S$),w$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(S$),T$=function(e){P(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(EA);T$.prototype.dataToRadius=EA.prototype.dataToCoord,T$.prototype.radiusToData=EA.prototype.coordToData;var E$=Ul(),D$=function(e){P(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=Gs(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=E$(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(EA);D$.prototype.dataToAngle=EA.prototype.dataToCoord,D$.prototype.angleToData=EA.prototype.coordToData;var O$=[`radius`,`angle`],k$=function(){function e(e){this.dimensions=O$,this.type=y$,this.cx=0,this.cy=0,this._radiusAxis=new T$,this._angleAxis=new D$,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return A$(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return A$(t)===this?this.pointToData(n):null},e}();function A$(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function j$(e,t,n){var r=t.get(`center`),i=uy(t,n).refContainer;e.cx=Z(r[0],i.width)+i.x,e.cy=Z(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:V(s)||(s=[0,s]);var c=[Z(s[0],o),Z(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function M$(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(xk(r,1),xk(i,1),Nk(r),Nk(i),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function N$(e){return e.mainType===`angleAxis`}function P$(e,t){if(e.type=DO(t),e.scale=OO(t,e.type,!1),e.onBand=UO(e.scale,t),e.inverse=t.get(`inverse`),N$(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var F$={dimensions:O$,create:function(e,t){var n=[];return e.eachComponent(b$,function(e,r){var i=new k$(r+``);i.update=M$;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);P$(a,s),P$(o,c),j$(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.coordinateSystem=e.getReferringComponents(b$,ql).models[0].coordinateSystem;t&&(ck(t.getRadiusAxis(),e,y$),ck(t.getAngleAxis(),e,y$))}}),n}},I$=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function L$(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function R$(e){return+!e.getRadiusAxis().inverse}function z$(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var B$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=[];R(n.getViewLabels(),function(e){if(!e.tick.offInterval){e=F(e);var t=n.scale;e.coord=n.dataToCoord(HO(t,e.tick)),s.push(e)}}),z$(s),z$(a),R(I$,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&V$[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(rR),V$={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=R$(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new ig[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new _h({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[R$(n)],l=z(r,function(e){return new Eh({shape:L$(n,[c,c+s],e.coord)})});e.add(gg(l,{style:L(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[R$(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new Eh({shape:L$(n,[l,l+c],i[d][f].coord)}));e.add(gg(u,{style:L(s.getModel(`lineStyle`).getLineStyle(),L(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);R(o,function(r,i){var o=c,d=r.tick.value,f=a[R$(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];W(v)&&v.textStyle&&(o=new E_(v.textStyle,c,c.ecModel))}var y=new Uf({silent:sF.isLabelSilent(t),style:r_(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),Lg({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=sF.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,rp(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new Eh({shape:L$(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(gg(l[u],{style:L({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new Eh({shape:L$(n,a,i[c][l].coord)}));e.add(gg(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new hh({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(gg(l[h],{style:L({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},H$=[`splitLine`,`splitArea`,`minorSplitLine`],U$=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this._axisGroup,i=this._axisGroup=new X;this.group.add(i);var a=e.axis,o=a.polar,s=o.getAngleAxis(),c=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=s.getExtent()[0],d=a.getExtent(),f=new sF(e,n,G$(o,e,u));f.build(),i.add(f.group),Eg(r,i,e),R(H$,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&W$[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(rR),W$={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new ig[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(gg(p[m],{style:L({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new Xm({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(gg(c,{style:L({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new hh({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(gg(l[d],{style:L({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function G$(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}var K$=pu();function q$(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}var J$=yu(`bar`,Y$);function Y$(e){var t=zF(`bar`,y$);rk(e,t,function(e){var n=Z$(e,`bar`),r={};ek(e,t,function(t){X$(e,t,n,r)})})}function X$(e,t,n,r){var i=t.getData(),a=q$(t),o=n[a],s=o.offset,c=o.width,l=t.coordinateSystem,u=l.getOtherAxis(e),d=l.cx,f=l.cy,p=t.get(`barMinHeight`)||0,m=t.get(`barMinAngle`)||0;r[a]=r[a]||[];for(var h=i.mapDimension(u.dim),g=i.mapDimension(e.dim),_=xD(i,h),v=e.dim!==`radius`||!t.get(`roundCap`,!0),y=u.dataToCoord(UF(u)),b=0,x=i.count();b<x;b++){var S=i.get(h,b),C=i.get(g,b),w=S>=0?`p`:`n`,T=y;_&&(r[a][C]||(r[a][C]={p:y,n:y}),T=r[a][C][w]);var E=void 0,D=void 0,O=void 0,k=void 0;if(u.dim===`radius`){var A=u.dataToCoord(S)-y,j=e.dataToCoord(C);kc(A)<p&&(A=(A<0?-1:1)*p),E=T,D=T+A,O=j-s,k=O-c,_&&(r[a][C][w]=D)}else{var ee=u.dataToCoord(S,v)-y,M=e.dataToCoord(C);kc(ee)<m&&(ee=(ee<0?-1:1)*m),E=M+s,D=E+c,O=T,k=T+ee,_&&(r[a][C][w]=k)}i.setItemLayout(b,{cx:d,cy:f,r0:E,r:D,startAngle:-O*Ic/180,endAngle:-k*Ic/180,clockwise:O>=k})}}function Z$(e,t){var n=zF(t,y$),r=SA(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};ek(e,n,function(e){var t=q$(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=Z(e.get(`barWidth`),r),l=Z(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=Dc(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=Z(o,r),d=Z(s,1),f=(i-u)/(a+(a-1)*d);f=Oc(f,0),R(c,function(e,t){var n=e.maxWidth;n&&n<f&&(n=Dc(n,i),e.width&&(n=Dc(n,e.width)),i-=n,e.width=n,a--)}),f=(i-u)/(a+(a-1)*d),f=Oc(f,0);var p=0,m;R(c,function(e,t){e.width||=f,m=e,p+=e.width*(1+d)}),m&&(p-=m.width*d);var h=-p/2;return R(c,function(e,t){l[t]=l[t]||{offset:h,width:e.width},h+=e.width*(1+d)}),l}function Q$(e,t){K$(e,function(){var n=zF(t,y$);HF(e,n,t,y$),Tk(n,LF(n))})}var $$={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},e1={splitNumber:5},t1=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(FS);function n1(e){PE(m$),rR.registerAxisPointerClass(`PolarAxisPointer`,g$),e.registerCoordinateSystem(`polar`,F$),e.registerComponentModel(x$),e.registerComponentView(t1),SL(e,`angle`,C$,$$),SL(e,`radius`,w$,e1),e.registerComponentView(B$),e.registerComponentView(U$),e.registerLayout(J$),Q$(e,`bar`)}function r1(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Rn(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=e.get([`axisLabel`,`rotate`]);return i.labelRotate=a===`top`?-u:u,i.z2=1,i}var i1=[`splitArea`,`splitLine`,`breakArea`],a1=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new X;var s=new sF(t,r,r1(t));s.build(),a.add(this._axisGroup),a.add(s.group),R(i1,function(e){t.get([e,`show`])&&o1[e](this,this.group,this._axisGroup,t,r)},this),Eg(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){oR(this)},t.type=`singleAxis`,t}(rR),o1={splitLine:function(e,t,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`);c=c instanceof Array?c:[c];for(var l=s.get(`width`),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),f=[],p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=0;_<m.length;++_){var v=a.toGlobalCoord(m[_].coord);d?(h[0]=v,h[1]=u.y,g[0]=v,g[1]=u.y+u.height):(h[0]=u.x,h[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new Eh({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});vg(y.shape,l);var b=p++%c.length;f[b]=f[b]||[],f[b].push(y)}for(var x=s.getLineStyle([`color`]),_=0;_<f.length;++_)t.add(gg(f[_],{style:L({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){aR(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=zP(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},s1=function(e){P(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(EA),c1=[`single`],l1=function(){function e(e,t,n){this.type=hR,this.dimension=`single`,this.dimensions=c1,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=DO(e),a=new s1(r,OO(e,i,!0),[0,0],i,e.get(`position`));a.onBand=UO(a.scale,e),a.inverse=e.get(`inverse`),a.orient=e.get(`orient`),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(e,t){var n=this._axis;xk(n,1),Nk(n)},e.prototype.resize=function(e,t){var n=uy(e,t).refContainer;this._rect=sy(e.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=+!!t.inverse;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},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(e){var t=this.getRect(),n=this.getAxis();return n.orient===`horizontal`?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return u1(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return u1(t)===this?this.pointToData(n):null},e}();function u1(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function d1(e,t){var n=[];return e.eachComponent(gR,function(r,i){var a=new l1(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(gR,ql).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&ck(n.getAxis(),e,hR)}}),n}var f1={create:d1,dimensions:c1},p1=[`x`,`y`],m1=[`width`,`height`],h1=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=_1(a),c=v1(o,s),l=v1(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=kQ(r),p=g1[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}PQ(t,e,r1(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=r1(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=NQ(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=_1(i),s=v1(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=v1(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(CQ),g1={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:FQ([t,r[0]],[t,r[1]],_1(e))}},shadow:function(e,t,n,r,i,a){var o=RQ(e,i,a),s=r[1]-r[0],c=zQ(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:IQ([l,r[0]],[u-l,s],_1(e))}}};function _1(e){return+!e.isHorizontal()}function v1(e,t){var n=e.getRect();return[n[p1[t]],n[p1[t]]+n[m1[t]]]}var y1=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(FS);function b1(e){PE(m$),rR.registerAxisPointerClass(`SingleAxisPointer`,h1),e.registerComponentView(y1),e.registerComponentView(a1),e.registerComponentModel(_R),SL(e,`single`,_R,_R.defaultOption),e.registerCoordinateSystem(`single`,f1)}var x1=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=hy(t);e.prototype.init.apply(this,arguments),S1(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),S1(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`}},itemStyle:{color:Q.color.neutral00,borderWidth:1,borderColor:Q.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:Q.size.s,color:Q.color.secondary},monthLabel:{show:!0,position:`start`,margin:Q.size.s,align:`center`,formatter:null,color:Q.color.secondary},yearLabel:{show:!0,position:null,margin:Q.size.xl,formatter:null,color:Q.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(vy);function S1(e,t){var n=e.cellSize,r=V(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),my(e,t,{type:`box`,ignoreSize:z([0,1],function(e){return fy(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var C1=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new Rf({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Ch({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return U(e)&&e?zv(e,t):H(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new Uf({z2:30,style:r_(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||U(a))&&(a&&(t=H_(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new Uf({z2:30,style:I(r_(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||U(c))&&(c&&(t=H_(c)||t),c=t.get([`time`,`dayOfWeekShort`])||z(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=Z(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToCalendarLayout([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new Uf({z2:30,style:I(r_(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(FS),w1=864e5,T1=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}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(e){e=el(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype._update=function(e,t){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,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];R([0,1],function(e){l(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},c=this._rect=sy(a,s);R([0,1],function(e){l(i,e)||(i[e]=c[r[e]]/o[e])});function l(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t,n){n||=[],V(e)&&(e=e[0]),t??=!0;var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+w1))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient===`vertical`?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToLayout=function(e,t,n){n||={};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(e,t);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,Y.copy(i,r),Pg(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{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(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=E1(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=E1(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=E1(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(V(e)&&e.length===1&&(e=e[0]),V(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+`-01-01`,n+`-12-31`]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/w1)-Math.floor(t[0].time/w1)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){Zv({targetModel:t,coordSysType:`calendar`,coordSysProvider:Qv})}),r},e.dimensions=[`time`,`value`],e}();function E1(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function D1(e){e.registerComponentModel(x1),e.registerComponentView(C1),e.registerCoordinateSystem(`calendar`,T1)}var O1={level:1,leaf:2,nonLeaf:3},k1={none:0,all:1,body:2,corner:3};function A1(e,t,n){var r=t[og[n]].getCell(e);return!r&&An(e)&&e<0&&(r=t[og[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function j1(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function M1(e,t,n,r,i){N1(e[0],t,i,n,r,0),N1(e[1],t,i,n,r,1)}function N1(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=V(o)?o:[o],c=s.length,l=!!n;if(c>=1?(P1(e,t,s,l,i,a,0),c>1&&P1(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[og[1-a]].getLocatorCount(a),d=i[og[a]].getLocatorCount(a)-1;n===k1.body?u=Oc(0,u):n===k1.corner&&(d=Dc(-1,d)),d<u&&(u=d=NaN),Ln(e[0])&&(e[0]=u),Ln(e[1])&&(e[1]=d),e[0]=Oc(Dc(e[0],d),u),e[1]=Oc(Dc(e[1],d),u)}}function P1(e,t,n,r,i,a,o){var s=A1(n[o],i,a);if(!s){e[0]=e[1]=NaN;return}var c=s.id[og[a]],l=c,u=W1(s);u&&(l+=u.span[og[a]]-1),e[0]=Dc(e[0],c,l),e[1]=Oc(e[1],c,l)}function F1(e,t){return Ln(e[t][0])||Ln(e[t][1])}function I1(e,t,n,r){t||=L1;for(var i=0;i<r;i++)t[i]=!1;for(;;){for(var a=!1,i=0;i<r;i++){var o=n[i];!t[i]&&o.cellMergeOwner&&R1(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var L1=[];function R1(e,t){return!z1(e[0],t[0])||!z1(e[1],t[1])?!1:(e[0][0]=Dc(e[0][0],t[0][0]),e[0][1]=Oc(e[0][1],t[0][1]),e[1][0]=Dc(e[1][0],t[1][0]),e[1][1]=Oc(e[1][1],t[1][1]),!0)}function z1(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function B1(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function V1(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function H1(e,t,n,r){var i=A1(t[r][0],n,r),a=A1(t[r][1],n,r);e[og[r]]=e[sg[r]]=NaN,i&&a&&(e[og[r]]=i.xy,e[sg[r]]=a.xy+a.wh-i.xy)}function U1(e,t,n,r){return e[og[t]]=n,e[og[1-t]]=r,e}function W1(e){return e&&(e.type===O1.leaf||e.type===O1.nonLeaf)?e:null}function G1(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var K1=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=q1(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!V(n)&&(n=[]),n)this._initByDimModelData(n);else if(r!=null){n=Array(r);for(var i=0;i<r;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&R(e,function(e,l){var u;U(e)?u={value:e}:W(e)?(u=e,e.value!=null&&!U(e.value)&&(u={value:null})):u={value:null};var d={type:O1.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new J,span:U1(new J,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:G1()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:O1.level,xy:NaN,wh:NaN,option:null,id:new J,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[og[t.dimIdx]]=p,c+=p,n+=p}),c}function s(){for(var e=[];n.length<a;)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=e.length;var s=o.option.value;e.push(s),n.push(o),t._uniqueValueGen.calcDupBase(s)}}t._uniqueValueGen.ensureValueUnique(e,n),t._scale=new nO({ordinalMeta:t._ordinalMeta=new AD({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=O1.leaf,l.span[og[1-t.dimIdx]]=t._levels.length-l.level}t._initCellsId(),t._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:O1.level,xy:NaN,wh:NaN,option:null,id:new J,dim:e}],e._initLevelIdOptions(),e._scale=new nO({ordinalMeta:e._ordinalMeta=new AD({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:O1.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new J,span:U1(new J,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:G1()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;U1(e.id,n,e.firstLeafLocator,e.level-t)},e.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;R(this._cells,function(n){U1(n.id,t,n.firstLeafLocator,n.level-e)})},e.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get(`levels`,!0);n=V(n)?n:[],R(this._levels,function(r,i){U1(r.id,t,0,i-e),r.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow(`show`,!0)},e.prototype.resetLayoutIterator=function(e,t,n,r){if(e||=new nu,t===this.dimIdx){var i=this._leavesCount,a=n==null?0:Math.max(0,n);r=r==null?i:Math.min(r,i),e.reset(this._cells,a,a+r)}else{var i=this._levels.length,a=n==null?0:Math.max(0,n+i);r=r==null?i:Math.min(r,i),e.reset(this._levels,a,a+r)}return e},e.prototype.resetCellIterator=function(e){return(e||new nu).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new nu).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[og[t]]=r?r.xy:NaN,e[sg[t]]=r?r.wh:NaN},e.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},e.prototype.getCell=function(e){var t=this._scale.parse(e);return Ln(t)?void 0:this._cells[t]},e.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function q1(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=Oc(r,+t[1]+1))}function a(){return``+t+r++}function o(e,t){for(var n=K(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=L({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var J1=function(){function e(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=K(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!V(n)&&(n=null),R(n,function(n,r){if(!(!W(n)||!V(n.coord))){var i=j1([]);if(M1(i,null,n.coord,e._dims,n.coordClamp?k1[e._kind]:k1.none),!(F1(i,0)||F1(i,1))){var a=n&&n.mergeCells,o={id:new J,span:new J,locatorRange:i,option:n,cellMergeOwner:a};B1(o,i),t.push(o)}}});for(var i=[],a=0;a<t.length;a++){var o=t[a];if(o.cellMergeOwner){var s=o.locatorRange;I1(s,i,t,a);for(var c=0;c<a;c++)i[c]&&(t[c].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var l=I({},o.option);l.coord=null;var u={id:new J,span:new J,locatorRange:s,option:l,cellMergeOwner:!0};B1(u,s),t.push(u)}}}R(t,function(t){var n=r(t.id.x,t.id.y);if(t.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=t.span,n.locatorRange=t.locatorRange,n.spanRect=G1(),e._cellMergeOwnerList.push(n)),!(!t.cellMergeOwner&&!t.option))for(var i=0;i<t.span.y;i++)for(var a=0;a<t.span.x;a++){var o=r(t.id.x+a,t.id.y+i);o.option=t.option,t.cellMergeOwner&&(o.inSpanOf=n)}})}function r(e,n){var r=X1(e,n),i=t.get(r);return i||=t.set(r,{id:new J(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(X1(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!F1(e,0)&&!F1(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){Y1[0]=e[0][0],Y1[1]=e[1][0];var t=this.getCell(Y1),n=t&&t.inSpanOf;if(n){V1(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;I1(e,null,r,r.length)},e}(),Y1=[];function X1(e,t){return e+`|`+t}var Z1={show:!0,color:Q.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function Q1(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:Q.color.borderTint}}var $1={show:!0,label:Z1,itemStyle:Q1(!1),silent:void 0,dividerLineStyle:{width:1,color:Q.color.border}},e0={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:$1,y:$1,body:{label:Z1,itemStyle:Q1(!1),silent:void 0},corner:{label:Z1,itemStyle:Q1(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:Q.color.axisLine,borderWidth:1},triggerEvent:!1},t0=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new n0(this.get(`x`,!0)||{}),y:new n0(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new K1(`x`,e.x),y:e.y.dim=new K1(`y`,e.y)};this._body=new J1(`body`,new E_(this.getShallow(`body`)),t),this._corner=new J1(`corner`,new E_(this.getShallow(`corner`)),t)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type=`matrix`,t.layoutMode=`box`,t.defaultOption=e0,t}(vy),n0=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(E_),r0=Math.round,i0=0,a0=99,o0={normal:25,special:100},s0={normal:50,special:125},c0=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t){this.group.removeAll();var n=this.group,r=e.coordinateSystem.getRect(),i=e.getDimensionModel(`x`),a=e.getDimensionModel(`y`),o=i.dim,s=a.dim;l0(n,e,t),u0(n,e,o,s,t);var c=G(e.getShallow(`borderZ2`,!0),a0),l=c-1,u=e.getModel(`backgroundStyle`).getItemStyle([`borderWidth`]);u.lineWidth=0;var d=e.getModel(`backgroundStyle`).getItemStyle([`color`,`decal`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]);d.fill=`none`;var f=g0(r.clone(),u,i0),p=g0(r.clone(),d,c);f.silent=!0,p.silent=!0,n.add(f),n.add(p);var m=o.getUnitLayoutInfo(0,0),h=s.getUnitLayoutInfo(1,0);m&&h&&(o.shouldShow()&&n.add(_0({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(_0({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(FS);function l0(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(og[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel(`itemStyle`),s=i.getModel(`label`),c=t.getShallow(`tooltip`,!0),l=[],u=a.resetCellIterator();u.next();){var d=u.item,f={};Y.copy(f,d.rect),sr(l,d.id.x,d.id.y),d0(l,t,e,n,d.option,o,s,i,f,d.option.value,s0,c,r===0?`x`:`y`)}}}function u0(e,t,n,r,i){a(`body`,t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a(`corner`,t.getCorner(),r,n);function a(n,r,a,o){var s=new E_(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new nu,d=new nu,f=[],p=t.getShallow(`tooltip`,!0);for(o.resetLayoutIterator(d,1);d.next();)for(a.resetLayoutIterator(u,0);u.next();){var m=u.item,h=d.item;sr(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?Y.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;d0(f,t,e,i,v,c,l,s,_,v?v.value:null,o0,p,n)}}}}function d0(e,t,n,r,i,a,o,s,c,l,u,d,f){p0.option=i?i.itemStyle:null,p0.parentModel=a,f0.option=i,f0.parentModel=s;var p=G(f0.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),m=d&&d.show,h=g0(c,p0.getItemStyle(),p);n.add(h);var g=f0.get(`cursor`);g!=null&&h.attr(`cursor`,g);var _;if(l!=null){var v=l+``;m0.option=i?i.label:null,m0.parentModel=o,m0.ecModel=r;var y=m0.getShallow(`formatter`);if(y){var b={componentType:`matrix`,componentIndex:t.componentIndex,name:v,value:l,coord:e.slice(),$vars:[`name`,`value`,`coord`]};if(U(y))v=zv(y,b);else if(H(y)){var x=y(b);x!=null&&(v=x+``)}}if(t_(h,{normal:m0},{defaultText:v,autoOverflowArea:!0,layoutRect:F(h.shape)}),_=h.getTextContent(),_){_.z2=p+1;var S=_.style;if(S&&S.overflow&&S.overflow!==`none`&&S.lineOverflow){var C={};Y.copy(C,c),Pg(C,(h.style?.lineWidth||0)/2,!0,!0),h.updateInnerText(),_.getLocalTransform(h0),ci(h0,h0),Y.applyTransform(C,C,h0),_.setClipPath(new Rf({shape:C}))}}Lg({el:h,componentModel:t,itemName:v,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}var w=t.get(`triggerEvent`,!0);if(_){var T=m0.get(`silent`);T??=!(w||m),_.silent=T,_.ignoreHostSilent=!0}var E=f0.get(`silent`);if(E??=!h.style||h.style.fill===`none`||!h.style.fill,h.silent=E,w&&h){var D={componentType:`matrix`,componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:f,name:_&&_.style?_.style.text:void 0,value:l,coord:e.slice()};rp(h).eventData=D}ru(f0),ru(p0),ru(m0)}var f0=new E_,p0=new E_,m0=new E_,h0=[];function g0(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=Ff(e.x,r,!0),e.y=Ff(e.y,r,!0),e.width=Ff(i,r,!0)-e.x,e.height=Ff(a,r,!0)-e.y}return new Rf({shape:e,style:t,z2:n})}function _0(e,t,n){var r=t.lineWidth;return r&&(r0(e.x1*2)===r0(e.x2*2)&&(e.x1=e.x2=Ff(e.x1,r,!0)),r0(e.y1*2)===r0(e.y2*2)&&(e.y1=e.y2=Ff(e.y1,r,!0))),new Eh({shape:e,style:t,silent:!0,z2:n})}var v0=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type=`matrix`,this._model=t;var i=this._dimModels={x:t.getDimensionModel(`x`),y:t.getDimensionModel(`y`)};this._dims={x:i.x.dim,y:i.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:`x`,type:`ordinal`},{name:`y`,type:`ordinal`},{name:`value`}]},e.create=function(t,n){var r=[];return t.eachComponent(`matrix`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){Zv({targetModel:t,coordSysType:`matrix`,coordSysProvider:Qv})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=sy(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});S0(r,n,i,0),S0(r,n,i,1),C0(0,n),C0(1,n),w0(this._model.getBody(),n),w0(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,y0),n[0]=y0.rect.x+y0.rect.width/2,n[1]=y0.rect.y+y0.rect.height/2,n},e.prototype.dataToLayout=function(e,t,n){var r=this._dims;n||={};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=j1(n.matrixXYLocatorRange);return V(e)?(M1(a,null,e,r,G(t&&t.clamp,k1.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==k1.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==k1.body)&&this._model.getCorner().expandRangeByCellMerge(a)),H1(i,a,r,0),H1(i,a,r,1),n):n},e.prototype.pointToData=function(e,t,n){var r=this._dims;return j0(A0,0,r,e,t&&t.clamp),j0(A0,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,A0.y===k0.inCorner&&A0.x===k0.inBody?M0(A0,n,0,r):A0.x===k0.inCorner&&A0.y===k0.inBody?M0(A0,n,1,r):(N0(A0,n,0,r),N0(A0,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=O0(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=O0(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=O0(t);return i===this?i.pointToData(n,r):void 0},e.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},e.dimensions=[`x`,`y`,`value`],e}(),y0={rect:G1()},b0=new nu,x0=new nu;function S0(e,t,n,r){for(var i=1-r,a=t[og[r]],o=t[og[i]],s=o.shouldShow(),c=a.resetCellIterator();c.next();)c.item.wh=c.item.xy=NaN;for(var l=o.resetLayoutIterator(null,r);l.next();)l.item.wh=l.item.xy=NaN;for(var u=n[sg[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new E_,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[og[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new E_,h=a.resetCellIterator();h.next();)h.item.type===O1.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=E0(t,r,n);Ln(i)||(e.wh=D0(i,u),u=D0(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[og[r]],b=a.getLocatorCount(r)-1,x=new nu;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){Ln(e.wh)&&(e.wh=_),e.xy=y,e.id[og[r]]===b&&!v&&(e.wh=n[og[r]]+n[sg[r]]-e.xy),y+=e.wh}}function C0(e,t){for(var n=t[og[e]].resetCellIterator();n.next();){var r=n.item;T0(r.rect,e,r.id,r.span,t),T0(r.rect,1-e,r.id,r.span,t),r.type===O1.nonLeaf&&(r.xy=r.rect[og[e]],r.wh=r.rect[sg[e]])}}function w0(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;T0(r,0,i,n,t),T0(r,1,i,n,t)}})}function T0(e,t,n,r,i){e[sg[t]]=0;var a=n[og[t]]<0?i[og[1-t]]:i[og[t]],o=a.getUnitLayoutInfo(t,n[og[t]]);if(e[og[t]]=o.xy,e[sg[t]]=o.wh,r[og[t]]>1){var s=a.getUnitLayoutInfo(t,n[og[t]]+r[og[t]]-1);e[sg[t]]=s.xy+s.wh-o.xy}}function E0(e,t,n){return D0(Bc(e,n[sg[t]]),n[sg[t]])}function D0(e,t){return Math.max(Math.min(e,G(t,1/0)),0)}function O0(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var k0={inBody:1,inCorner:2,outside:3},A0={x:null,y:null,point:[]};function j0(e,t,n,r,i){var a=n[og[t]],o=n[og[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[og[t]]=k0.outside;return}if(i===k1.body){c?(e[og[t]]=k0.inBody,d=Dc(s.xy+s.wh,Oc(c.xy,d)),e.point[t]=d):e[og[t]]=k0.outside;return}else if(i===k1.corner){u?(e[og[t]]=k0.inCorner,d=Dc(u.xy+u.wh,Oc(l.xy,d)),e.point[t]=d):e[og[t]]=k0.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(d<p){if(!i){e[og[t]]=k0.outside;return}d=p}else if(d>m){if(!i){e[og[t]]=k0.outside;return}d=m}e.point[t]=d,e[og[t]]=f<=d&&d<=m?k0.inBody:p<=d&&d<=f?k0.inCorner:k0.outside}function M0(e,t,n,r){var i=1-n;if(e[og[n]]!==k0.outside)for(r[og[n]].resetCellIterator(x0);x0.next();){var a=x0.item;if(F0(e.point[n],a.rect,n)&&F0(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[og[i]];return}}}function N0(e,t,n,r){if(e[og[n]]!==k0.outside){for((e[og[n]]===k0.inCorner?r[og[1-n]]:r[og[n]]).resetLayoutIterator(b0,n);b0.next();)if(P0(e.point[n],b0.item)){t[n]=b0.item.id[og[n]];return}}}function P0(e,t){return t.xy<=e&&e<=t.xy+t.wh}function F0(e,t,n){return t[og[n]]<=e&&e<=t[og[n]]+t[sg[n]]}function I0(e){e.registerComponentModel(t0),e.registerComponentView(c0),e.registerCoordinateSystem(`matrix`,v0)}function L0(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function R0(e,t){var n;return R(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function z0(e,t,n){var r=I({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(gn(i,r,!0),my(i,r,{ignoreSize:!0}),gy(n,i),H0(n,i),H0(n,i,`shape`),H0(n,i,`style`),H0(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var B0=[`transition`,`enterFrom`,`leaveTo`],V0=B0.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function H0(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?B0:V0,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function U0(e,t){if(e&&(e.hv=t.hv=[R0(t,[`left`,`right`]),R0(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var W0=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=El(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];R(o,function(e,t){var n=e.newOption;n&&(s.push(n),L0(e,n),z0(i,t,n),U0(i[t],n))},this),n.elements=wn(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){R(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(vy),G0={path:null,compoundPath:null,group:X,image:Af,text:Uf},K0=Ul(),q0=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);R(t,function(t){var o=Fl(t.id,null),s=o==null?null:n.get(o),c=Fl(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&lP(d,u,!!p,!!f)){var m=uP(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=Q0(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=Y0(o,l,t.type,n):(b&&(K0(b).isNew=!1),NZ(b)),b&&(hZ(b,h,e,{isInit:y}),Z0(b,t,i,a))}else if(v){X0(s,t,n,e);var x=Y0(o,l,t.type,n);x&&(hZ(x,h,e,{isInit:!0}),Z0(x,t,i,a))}else g===`remove`&&(gZ(s,t),X0(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new Uf(f))}else v&&S.setTextContent(new Uf(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||K0(D).type!==T,E=y?J0(T):D}else v&&(y=!0,E=J0(T));S.setClipPath(E),hZ(E,w,e,{isInit:y}),PZ(E,w.keyframeAnimation,e)}var O=K0(S);S.setTextConfig(p),O.option=t,$0(S,e,t),Lg({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),PZ(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=Fl(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=K0(d),h=K0(f);m.width=Z(m.option.width,p?a:h.width)||0,m.height=Z(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=Fl(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=K0(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=dy(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!K0(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(vZ(y)||yn(y,S)>=0)?b[S]=C:d[S]=C}Xh(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){X0(n,K0(n).option,t,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(FS);function J0(e){var t=new(q(G0,e)?G0[e]:fg(e))({});return K0(t).type=e,t}function Y0(e,t,n,r){var i=J0(n);return t.add(i),r.set(e,i),K0(i).id=e,K0(i).isNew=!0,i}function X0(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){X0(e,t,n,r)}),_Z(e,t,r),n.removeKey(K0(e).id))}function Z0(e,t,n,r){e.isGroup||R([[`cursor`,hd.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];q(t,r)?e[r]=G(t[r],n[1]):e[r]??(e[r]=n[1])}),R(En(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=H(r)?r:null}}),q(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Q0(e){return e=I({},e),R([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(ey),function(t){delete e[t]}),e}function $0(e,t,n){var r=rp(e).eventData;!e.silent&&!e.ignore&&!r&&(r=rp(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function e2(e){e.registerComponentModel(W0),e.registerComponentView(q0),e.registerPreprocessor(function(e){var t=e.graphic;V(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var t2=[`x`,`y`,`radius`,`angle`,`single`],n2=Ul(),r2=[`cartesian2d`,`polar`,`singleAxis`];function i2(e){return yn(r2,e.get(`coordinateSystem`))>=0}function a2(e){return e+`Axis`}function o2(e,t){var n=K(),r=[],i=K();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function s2(e){var t=e.ecModel,n={infoList:[],infoMap:K()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(a2(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function c2(e){var t=n2(YC(e));return t.axisProxyMap||=K()}function l2(e){if(e)return c2(e.ecModel).get(e.uid)}function u2(e,t){c2(e.ecModel).set(e.uid,t)}function d2(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?l2(n.model):null}var f2=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),p2=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=m2(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=m2(e);gn(this.option,e,!0),gn(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;R([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=K();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return R(t2,function(n){var r=this.getReferringComponents(a2(n),Jl);if(r.specified){t=!0;var i=new f2;R(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new f2;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,ql).models[0];o&&R(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,ql).models[0]&&a.add(e.componentIndex)})}}}r&&R(t2,function(t){if(r){var i=n.findComponents({mainType:a2(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new f2;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);R([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(a2(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){R(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return l2(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(a2(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;R([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;R([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return l2(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},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}(vy);function m2(e){var t={};return R([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var h2=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(p2),g2=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(FS),_2=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(g2),v2=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return F(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(i2(t)){var n=a2(this._dimName),r=t.getReferringComponents(n,ql).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return F(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];R([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=Rc(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=Rc(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),Wc(s),Wc(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;OK(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=Rc(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);fu(t)}var f=qD(r)||GD(r),p=n.getExtent(),m=kc(p[1]-p[0]),h=f?0:qc(s,m,.5);R([[0,Mc],[1,jc]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=Uc(s[n],h),s[n]=Dc(t[1],Oc(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),fu(s);var g=[Rc(s[0],t,a,!0),Rc(s[1],t,a,!0)];return fu(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;xk(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=L({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;R(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=z(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else R(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});R(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;R([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=Rc(i,[0,100],n,!0)-n[0]):i=Rc(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),y2={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(a2(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!l2(i)){var o=new v2(t,r,a,e);n.push(o),u2(i,o)}});var r=K();return R(n,function(e){R(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=d2(e,i);a?n.push([i,a]):i.reset(e,null)}),R(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function b2(e){e.registerAction(`dataZoom`,function(e,t){R(o2(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var x2=pu();function S2(e){x2(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,y2),b2(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function C2(e){e.registerComponentModel(h2),e.registerComponentView(_2),S2(e)}var w2=function(){function e(){}return e}(),T2={};function E2(e,t){T2[e]=t}function D2(e){return T2[e]}var O2=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=I({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){R(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=D2(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(gn(e,n[t]),n[t]=null),gn(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(vy);function k2(e,t){var n=Pv(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Rf({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var A2=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=K(),l=[];R(s,function(e,t){l.push(t)}),new LE(this._featureNames||[],l).add(u).update(u).remove(On(u,null)).execute(),this._featureNames=wn(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new E_(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(j2(p))_={onclick:h.option.onclick,featureName:p};else{var v=D2(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){M2(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=O_(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Yp:Xp)(r[e])},M2(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof w2&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;U(d)?(p={},p[c]=d):p=d,U(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};R(p,function(c,d){var f=kg(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Uf({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:d_({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Lg({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Yp:Xp)(f),i.add(f),f.on(`click`,B(s.onclick,s,t,n,d)),h[d]=f})}var f=uy(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=sy(p,f,m);ry(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),dy(i,p,f,m),i.add(k2(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!H(c)&&t){var l=c.style||={},u=Gs(t,Uf.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){R(this._features,function(e){e&&e instanceof w2&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){R(this._features,function(n){n&&n instanceof w2&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(FS);function j2(e){return e.indexOf(`my`)===0}function M2(e){return e instanceof w2}var N2=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Gt.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(w2),P2=`__ec_magicType_stack__`,F2=[[`line`,`bar`],[`stack`]],I2=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return R(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(L2[n]){var a={series:[]};R(F2,function(e){yn(e,n)>=0&&R(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=L2[n](t,i,e,r);o&&(L(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,ql).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=gn({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(w2),L2={line:function(e,t,n,r){if(e===`bar`)return gn({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return gn({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===P2;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),gn({id:t,stack:i?``:P2},r.get([`option`,`stack`])||{},!0)}};SE({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var R2=Array(60).join(`-`),z2=` `;function B2(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=NF(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function V2(e){var t=[];return R(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(z(e.series,function(e){return e.name})),o=[r.model.getCategories()];R(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(z2)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(z2))}t.push(s.join(`
38
+ `))}),t.join(`
39
+
40
+ `+R2+`
41
+
42
+ `)}function H2(e){return z(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+z2:``)+r.join(z2))}),n.join(`
43
+ `)}).join(`
44
+
45
+ `+R2+`
46
+
47
+ `)}function U2(e){var t=B2(e);return{value:wn([V2(t.seriesGroupByCategoryAxis),H2(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
48
+
49
+ `+R2+`
50
+
51
+ `),meta:t.meta}}function W2(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function G2(e){if(e.slice(0,e.indexOf(`
52
+ `)).indexOf(z2)>=0)return!0}var K2=RegExp(`[`+z2+`]+`,`g`);function q2(e){for(var t=e.split(/\n+/g),n=W2(t.shift()).split(K2),r=[],i=z(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=W2(t[a]).split(K2);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function J2(e){for(var t=e.split(/\n+/g),n=W2(t.shift()),r=[],i=0;i<t.length;i++){var a=W2(t[i]);if(a){var o=a.split(K2),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function Y2(e,t){var n=e.split(RegExp(`
53
+ *`+R2+`
54
+ *`,`g`)),r={series:[]};return R(n,function(e,n){if(G2(e)){var i=q2(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=J2(e);r.series.push(i)}}),r}var X2=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=U2(e);if(H(l)){var f=l(t.getOption());U(f)?s.innerHTML=f:Nn(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.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`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}qr(_,`click`,b),qr(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=H(u)?u(s,t.getOption()):Y2(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(w2);function Z2(e,t){return z(e,function(e,n){var r=t&&t[n];if(W(r)&&!V(r)){W(e)&&!V(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=L(e,r),i&&delete e.name,e}else return e})}SE({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];R(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(I({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:Z2(e.data,i)})}}),t.mergeOption(L({series:n},e.newOption))});var Q2=R,$2=Ul();function e4(e,t){var n=i4(e);Q2(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function t4(e){var t=i4(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Q2(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function n4(e){$2(e).snapshots=null}function r4(e){return i4(e).length}function i4(e){var t=$2(e);return t.snapshots||=[{}],t.snapshots}var a4=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){n4(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(w2);SE({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var o4=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],s4=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=l4(t,e);R(u4,function(e,t){(!n||!n.include||yn(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=p4[e.brushType](0,n,t);e.__rangeOffset={offset:h4[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){R(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&R(r.coordSyses,function(r){n(e,p4[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){R(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=p4[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?h4[e.brushType](r.values,i.offset,_4(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return z(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Nq(r),isTargetByCursor:Fq(r,e,n.coordSysModel),getLinearBrushOtherExtent:Pq(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&yn(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=l4(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<d4.length;s++)if(d4[s](r,a))return a}return!0},e}();function c4(e){return e[0]>e[1]&&e.reverse(),e}function l4(e,t){return Gl(e,t,{includeMainTypes:o4})}var u4={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=K(),o={},s={};!n&&!r&&!i||(R(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),R(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),R(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];R(i.getCartesians(),function(e,t){(yn(n,e.getAxis(`x`).model)>=0||yn(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:f4.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){R(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:f4.geo})})}},d4=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],f4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=sB(null,e);return Di(t,t,aB(null,e)),t}},p4={lineX:On(m4,0),lineY:On(m4,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[c4([i[0],a[0]]),c4([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[iu(),iu()];return{values:z(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function m4(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=c4(z([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var h4={lineX:On(g4,0),lineY:On(g4,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return z(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function g4(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function _4(e,t){var n=v4(e),r=v4(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function v4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var y4=R,b4=Rl(`toolbox-dataZoom_`),x4={x:`width`,y:`height`},S4=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new XK(n.getZr()),this._brushController.on(`brush`,B(this._onBrush,this)).mount()),E4(e,t,this,r,n),T4(e,t)},t.prototype.onclick=function(e,t,n){C4[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new s4(w4(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),e4(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=OK(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=qc(d,i[x4[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?Uc(o[0],f):o[0],endValue:isFinite(f)?Uc(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];y4(e,function(e,n){t.push(F(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(w2),C4={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(t4(this.ecModel))}};function w4(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 T4(e,t){e.setIconStatus(`back`,r4(t)>1?`emphasis`:`normal`)}function E4(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new s4(w4(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}Ry(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=Gl(e,w4(r));y4(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),y4(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:b4+t+a};o[n]=a,i.push(o)}return i});function D4(e){e.registerComponentModel(O2),e.registerComponentView(A2),E2(`saveAsImage`,N2),E2(`magicType`,I2),E2(`dataView`,X2),E2(`dataZoom`,S4),E2(`restore`,a4),PE(C2)}var O4=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(vy);function k4(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function A4(e){if(Gt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var j4=A4([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),M4=A4([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function N4(e,t){if(!e)return t;t=Nv(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function P4(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var F4=N4(M4,`transition`),I4=N4(j4,`transform`),L4=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(Gt.transform3dSupported?`will-change:transform;`:``);function R4(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function z4(e,t,n){if(!U(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Vv(t);var a=R4(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=I4+`:`,l;yn([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function B4(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Gt.transformSupported?``+I4+i:`,left`+i+`,top`+i)),F4+`:`+a}function V4(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Gt.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Gt.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+I4+`:`+o+`;`:[[`top`,0],[`left`,0],[j4,o]]}function H4(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=G(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function U4(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=yS(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(B4(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Nv(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(H4(d)),f!=null&&i.push(`padding:`+Pv(f).join(`px `)+`px`),i.join(`;`)+`;`}function W4(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&jr(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var G4=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Gt.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(U(i)?document.querySelector(i):Nn(i)?i:H(i)&&i(e.getDom()));W4(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;Gr(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=P4(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=L4+U4(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+V4(i[0],i[1],!0)+(`border-color:`+Vv(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(U(i)&&n.get(`trigger`)===`item`&&!k4(n)&&(o=z4(n,r,i)),U(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,V(e)||(e=[e]);for(var s=0;s<e.length;s++)Nn(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(W4(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;R(V4(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,Gt.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Mr(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),K4=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Y4(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;W(e)&&_l(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Uf({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:yS(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),R([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),R([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=J4(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;Y4(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=q4(i.borderWidth||0),o=J4(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function q4(e){return Math.max(0,e)}function J4(e){var t=q4(e.shadowBlur||0),n=q4(e.shadowOffsetX||0),r=q4(e.shadowOffsetY||0);return{left:q4(t-n),right:q4(t+n),top:q4(t-r),bottom:q4(t+r)}}function Y4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var X4=new Rf({shape:{x:-1,y:-1,width:2,height:2}}),Z4=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(Gt.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=$l(n.get(`renderMode`));this._tooltipContent=r===`richText`?new K4(t):new G4(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(Gt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?YS(this,`_updatePosition`,50,`fixRate`):XS(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);qQ(`itemTooltip`,this._api,B(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Gt.node||!n.getDom())){var i=$4(r,n);this._ticket=``;var a=r.dataByCoordSys,o=i3(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=X4;c.x=r.x,c.y=r.y,c.update(),rp(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=t$(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide($4(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&Q4([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(rp(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;RC(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(rp(e).dataIndex==null?rp(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=B(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=Q4([t.tooltipOption],r),o=this._renderMode,s=[],c=aS(`section`,{blocks:[],noHeader:!0}),l=[],u=new bS;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=MQ(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=aS(`section`,{header:f,noHeader:!Un(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=NO(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Vv(m.color),o);var h=hx(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=Q4([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=dS(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
55
+
56
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=rp(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=Q4([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new bS;h.marker=g.makeTooltipMarker(`item`,Vv(h.color),d);var _=hx(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?dS(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=rp(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(U(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=F(a),a.content=Rr(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=Q4(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new bS;this._showOrMove(d,function(){var n=F(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(U(u)){var p=e.ecModel.get(`useUTC`),m=V(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=mv(m.axisValue,d,p)),d=Rv(d,n,!0)}else if(H(u)){var g=B(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||V(t))return{color:r||i};if(!V(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),H(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),V(t))n=Z(t[0],s),r=Z(t[1],c);else if(W(t)){var p=t;p.width=l[0],p.height=l[1];var m=sy(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(U(t)&&o){var h=n3(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=e3(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=r3(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=r3(d)?l[1]/2:d===`bottom`?l[1]:0),k4(e)){var h=t3(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Gt.node||!t.getDom()||(XS(this,`_updatePosition`),this._tooltipContent.dispose(),$Q(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(FS);function Q4(e,t,n){var r=t.ecModel,i;n?(i=new E_(n,r,r),i=new E_(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof E_&&(o=o.get(`tooltip`,!0)),U(o)&&(o={formatter:o}),o&&(i=new E_(o,i,r)))}return i}function $4(e,t){return e.dispatchAction||B(t.dispatchAction,t)}function e3(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function t3(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function n3(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function r3(e){return e===`center`||e===`middle`}function i3(e,t,n){var r=Kl(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Yl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=rp(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function a3(e){PE(m$),e.registerComponentModel(O4),e.registerComponentView(Z4),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},er),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},er)}var o3=[`rect`,`polygon`,`keep`,`clear`];function s3(e,t){var n=xl(e?e.brush:[]);if(n.length){var r=[];R(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;V(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),mu(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,o3)}}var c3=R;function l3(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function u3(e,t,n){var r={};return c3(t,function(t){var a=r[t]=i();c3(e[t],function(e,r){if(FU.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new FU(i),r===`opacity`&&(i=F(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new FU(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function d3(e,t,n){var r;R(n,function(e){t.hasOwnProperty(e)&&l3(t[e])&&(r=!0)}),r&&R(n,function(n){t.hasOwnProperty(n)&&l3(t[n])?e[n]=F(t[n]):delete e[n]})}function f3(e,t,n,r,i,a){var o={};R(e,function(e){o[e]=FU.prepareVisualTypes(t[e])});var s;function c(e){return MC(n,s,e)}function l(e,t){PC(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function p3(e,t,n,r){var i={};return R(e,function(e){i[e]=FU.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return MC(a,l,e)}function c(e,t){PC(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function m3(e){var t=e.brushType,n={point:function(r){return h3[t].point(r,n,e)},rect:function(r){return h3[t].rect(r,n,e)}};return n}var h3={lineX:g3(0),lineY:g3(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&zk(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(zk(r,i,a)||zk(r,i+o,a)||zk(r,i,a+s)||zk(r,i+o,a+s)||Y.create(e).contain(c[0],c[1])||Ag(i,a,i+o,a,r)||Ag(i,a,i,a+s,r)||Ag(i+o,a,i+o,a+s,r)||Ag(i,a+s,i+o,a+s,r))return!0}}};function g3(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return _3(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),_3(s[0],o)||_3(s[1],o)||_3(o[0],s)||_3(o[1],s)}}}}function _3(e,t){return t[0]<=e&&e<=t[1]}var v3=[`inBrush`,`outOfBrush`],y3=`__ecBrushSelect`,b3=`__ecInBrushSelectEvent`;function x3(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new s4(t.option,e)).setInputRanges(t.areas,e)})}var S3=bu(C3);function C3(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),x3(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:F(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=z(t.areas,function(e){var t=O3[e.brushType],n=L({boundingRect:t?t(e):void 0},e);return n.selectors=m3(n),n}),m=u3(t.option,v3,function(e){e.mappingMethod=`fixed`});V(c)&&R(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||D3(t,r))&&(R(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){E3(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return E3(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&f3(v3,m,i,a)})}),w3(t,i,a,r,n)}function w3(e,t,n,r,i){if(i){var a=e.getZr();a[b3]||(a[y3]||(a[y3]=T3),YS(a,y3,n,t)(e,r))}}function T3(e,t){if(!e.isDisposed()){var n=e.getZr();n[b3]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[b3]=!1}}function E3(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function D3(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(V(n)?yn(n,t)<0:t!==n)}var O3={rect:function(e){return k3(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[iu(),iu()];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&k3(t)}};function k3(e){return new Y(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var A3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new XK(t.getZr())).on(`brush`,B(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){x3(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:F(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:F(n),$from:t})},t.type=`brush`,t}(FS),j3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&d3(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=z(e,function(e){return M3(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=M3(this.option,e),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:Q.color.backgroundTint,borderColor:Q.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Q.color.disabled},t}(vy);function M3(e,t){return gn({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new E_(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var N3=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],P3=function(e){P(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,R(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return R(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r!==n&&n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:N3.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:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(w2);function F3(e){e.registerComponentView(A3),e.registerComponentModel(j3),e.registerPreprocessor(s3),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,S3),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},er),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},er),E2(`brush`,P3)}var I3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(vy),L3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=G(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Uf({style:r_(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Uf({style:r_(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Hv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Hv(p,`_`+e.get(`subtarget`))}),rp(c).eventData=rp(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=sy(g,uy(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Rf({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(FS);function R3(e){e.registerComponentModel(I3),e.registerComponentView(L3)}var z3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],R(t,function(e,t){var n=Fl(wl(e),``),a;W(e)?(a=F(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new dD([{name:`value`,type:a}],this)).initData(i,r)},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:Q.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Q.color.secondary},data:[]},t}(vy),B3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=j_(z3.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:Q.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:Q.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:Q.color.tertiary},itemStyle:{color:Q.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Q.color.accent60},itemStyle:{color:Q.color.accent60,borderColor:Q.color.accent60},controlStyle:{color:Q.color.accent70,borderColor:Q.color.accent70}},progress:{lineStyle:{color:Q.color.accent30},itemStyle:{color:Q.color.accent40}},data:[]}),t}(z3);xn(B3,mx.prototype);var V3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(FS),H3=function(e){P(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(EA),U3=Math.PI,W3=Ul(),G3=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return aS(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},R([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=K3(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:U(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:U3/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*U3/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=ti(),o=i.x,s=i.y+i.height;ai(a,a,[-o,-s]),oi(a,a,-U3/2),ai(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||U(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`)||t.get(`type`);r!==`category`&&r!==`time`&&(r=`value`);var i=OO(t,r,!1);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),Fk(i,{fixMinMax:[!0,!0]});var o=new H3(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new X;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new Eh({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:I({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new Eh({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:L({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],R(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=J3(s,c,t,{x:o,y:0,onclick:B(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),fm(d);var f=rp(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],R(o,function(r){if(!r.tick.offInterval){var o=r.tick.value,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new Uf({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:B(i._changeTimeline,i,o),silent:!1,style:r_(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=r_(l),d.ensureState(`progress`).style=r_(u),t.add(d),fm(d),W3(d).dataIndex=o,i._tickLabels.push(d)}})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,B(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,B(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,B(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=Ys(G(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=q3(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),fm(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=B(s._handlePointerDrag,s),e.ondragend=B(s._handlePointerDragend,s),Y3(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){Y3(e,s._progressLine,a,n,r)}};this._currentPointer=J3(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=Wc(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return Sg(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,W3(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(V3);function K3(e,t){return sy(e.getBoxLayoutParams(),uy(e,t).refContainer,e.get(`padding`))}function q3(e,t,n,r){var i=r.style,a=kg(e.get([`controlStyle`,t]),r||{},new Y(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function J3(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=ow(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=gn({rectHover:!0,z2:100},r,!0);var c=sw(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=cw(e.get(`symbolOffset`),c);l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]);var u=e.get(`symbolRotate`);return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function Y3(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}function X3(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),L({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function Z3(e){var t=e&&e.timeline;V(t)||(t=t?[t]:[]),R(t,function(e){e&&Q3(e)})}function Q3(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),$3(e),e6(e,`controlPosition`)){var r=e.controlStyle||={};e6(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!e6(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}R(e.data||[],function(e){W(e)&&!V(e)&&(!e6(e,`value`)&&e6(e,`name`)&&(e.value=e.name),$3(e))})}function $3(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};R(r,function(e,t){!a[t]&&!e6(i,t)&&(i[t]=e)}),n.label&&!e6(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function e6(e,t){return e.hasOwnProperty(t)}function t6(e){e.registerComponentModel(B3),e.registerComponentView(G3),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),X3(e),e.registerPreprocessor(Z3)}function n6(e,t){if(!e)return!1;for(var n=V(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function r6(e){Sl(e,`label`,[`show`])}var i6=Ul(),a6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Gt.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=i6(e)[i];if(!n||!n.data){i6(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&r6(n),R(n.data,function(e){e instanceof Array?(r6(e[0]),r6(e[1])):r6(e)}),a=this.createMarkerModelFromSeries(n,this,t),I(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),i6(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return aS(`section`,{header:this.name,blocks:[aS(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=mx.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return i6(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(vy);xn(a6,mx.prototype);var o6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(a6);function s6(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function c6(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function l6(e,t,n,r,i,a,o){var s=[],c=xD(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=_6(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=Gc(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var u6={min:On(l6,`min`),max:On(l6,`max`),average:On(l6,`average`),median:On(l6,`median`)};function d6(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!c6(t)&&!V(t.coord)&&V(i)){var a=f6(t,n,r,e);if(t=F(t),t.type&&u6[t.type]&&a.baseAxis&&a.valueAxis){var o=yn(i,a.baseAxis.dim),s=yn(i,a.valueAxis.dim),c=u6[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!V(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&u6[t.type]){var u=r.getOtherAxis(l);u&&(t.value=_6(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)u6[d[f]]&&(d[f]=_6(n,n.mapDimension(i[f]),d[f]));return t}}function f6(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(p6(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function p6(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function m6(e,t){return e&&e.containData&&t.coord&&!s6(t)?e.containData(t.coord):!0}function h6(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!s6(t)&&!s6(n)?e.containZone(t.coord,n.coord):!0}function g6(e,t){return e?function(e,n,r,i){return yx(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return yx(e.value,t[i])}}function _6(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var v6=Ul(),y6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){v6(e).keep=!1}),t.eachSeries(function(e){var i=a6.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!v6(e).keep&&r.group.remove(e.group)}),b6(t,i,this.type)},t.prototype.markKeep=function(e){v6(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;R(e,function(e){var r=a6.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Zp(e):Qp(e))})})},t.type=`marker`,t}(FS);function b6(e,t,n){e.eachSeries(function(e){var r=a6.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=Wg(r),o=a.z,s=a.zlevel;Kg(i.group,o,s)}})}function x6(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=Z(s.get(`x`),l)+d,h=Z(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var S6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=a6.getMarkerModelFromSeries(e,`markPoint`);t&&(x6(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new RN),l=C6(i,e,t);t.setData(l),x6(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(H(r)||H(i)||H(a)||H(s)){var u=t.getRawValue(e),d=t.getDataParams(e);H(r)&&(r=r(u,d)),H(i)&&(i=i(u,d)),H(a)&&(a=a(u,d)),H(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=NC(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:G(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){rp(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(y6);function C6(e,t,n){var r=e?z(e&&e.dimensions,function(e){var n=t.getData();return I(I({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new dD(r,n),a=z(n.get(`data`),On(d6,t));e&&(a=wn(a,On(m6,e)));var o=g6(!!e,r);return i.initData(a,null,o),i}function w6(e){e.registerComponentModel(o6),e.registerComponentView(S6),e.registerPreprocessor(function(e){n6(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var T6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(a6),E6=Ul(),D6=function(e,t,n,r){var i=e.getData(),a;if(V(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=Rn(r.yAxis,r.xAxis);else{var l=f6(r,i,t,e);s=l.valueAxis,c=_6(i,SD(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=F(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&An(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[d6(e,a[0]),d6(e,a[1]),I({},a[2])];return h[2].type=h[2].type||null,gn(h[2],h[0]),gn(h[2],h[1]),h};function O6(e){return!isNaN(e)&&!isFinite(e)}function k6(e,t,n,r){var i=1-e,a=r.dimensions[e];return O6(t[i])&&O6(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function A6(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(k6(1,n,r,e)||k6(0,n,r,e)))return!0}return m6(e,t[0])&&m6(e,t[1])}function j6(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Z(o.get(`x`),i.getWidth()),l=Z(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(sP(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;O6(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):O6(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var M6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=a6.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=E6(t).from,a=E6(t).to;i.each(function(t){j6(i,t,!0,e,n),j6(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new oG);this.group.add(c.group);var l=N6(i,e,t),u=l.from,d=l.to,f=l.line;E6(t).from=u,E6(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);V(p)||(p=[p,p]),V(m)||(m=[m,m]),V(h)||(h=[h,h]),V(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:G(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){rp(e).dataModel=t,e.traverse(function(e){rp(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);j6(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=NC(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:G(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:G(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:G(a.get(`symbolSize`),m[+!i]),symbol:G(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(y6);function N6(e,t,n){var r=e?z(e&&e.dimensions,function(e){var n=t.getData();return I(I({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new dD(r,n),a=new dD(r,n),o=new dD([],n),s=z(n.get(`data`),On(D6,t,e,n));e&&(s=wn(s,On(A6,e)));var c=g6(!!e,r);return i.initData(z(s,function(e){return e[0]}),null,c),a.initData(z(s,function(e){return e[1]}),null,c),o.initData(z(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function P6(e){e.registerComponentModel(T6),e.registerComponentView(M6),e.registerPreprocessor(function(e){n6(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var F6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(a6),I6=Ul(),L6=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=d6(e,i),s=d6(e,a),c=o.coord,l=s.coord;c[0]=Rn(c[0],-1/0),c[1]=Rn(c[1],-1/0),l[0]=Rn(l[0],1/0),l[1]=Rn(l[1],1/0);var u=_n([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function R6(e){return!isNaN(e)&&!isFinite(e)}function z6(e,t,n,r){var i=1-e;return R6(t[i])&&R6(n[i])}function B6(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return sP(e,`cartesian2d`)?n&&r&&(z6(1,n,r,e)||z6(0,n,r,e))?!0:h6(e,i,a):m6(e,i)||m6(e,a)}function V6(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=Z(o.get(n[0]),i.getWidth()),l=Z(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(sP(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);R6(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):R6(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var H6=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],U6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=a6.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=z(H6,function(i){return V6(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new X});this.group.add(c.group),this.markKeep(c);var l=W6(i,e,t);t.setData(l),l.each(function(t){var n=z(H6,function(n){return V6(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];Wc(d),Wc(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t),h=m.getModel(`itemStyle`).getItemStyle(),g=m.get(`z2`),_=NC(o,`color`);h.fill||(h.fill=_,U(h.fill)&&(h.fill=ro(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,G(g,0))}),l.diff(I6(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new xh({z2:G(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=I6(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?Xh(r,{z2:G(a,0),shape:{points:i.points}},t,e):r=new xh({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=I6(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),t_(e,n_(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:U(i.fill)?ro(i.fill,1):Q.color.neutral99}),vm(e,r),mm(e,null,null,r.get([`emphasis`,`disabled`])),rp(e).dataModel=t}),I6(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(y6);function W6(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=z(e&&e.dimensions,function(e){var n=t.getData();return I(I({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=z(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new dD(i,n)}else i=[{name:`value`,type:`float`}],r=new dD(i,n);var s=z(n.get(`data`),On(L6,t,e,n));e&&(s=wn(s,On(B6,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return yx(a,i[r])}:function(e,t,n,r){return yx(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function G6(e){e.registerComponentModel(F6),e.registerComponentView(U6),e.registerPreprocessor(function(e){n6(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var K6=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`])}},q6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),V(t)&&R(t,function(e,r){U(e)&&(e={type:e}),t[r]=gn(e,K6(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&Il(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=K(),a=z(r,function(e){return(U(e)||An(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new E_(e,this,this.ecModel))},this);this._data=wn(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;R(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&yn(this._availableNames,e)>=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`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,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:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(vy),J6=On,Y6=R,X6=X,Z6=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new X6),this.group.add(this._selectorGroup=new X6),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=uy(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=sy(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=sy(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=k2(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=K(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),Y6(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
57
+ `)){var p=new X6;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,J6(e8,f,null,r,d)).on(`mouseover`,J6(t8,m.name,null,r,d)).on(`mouseout`,J6(n8,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=rp(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Xa(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:io(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,J6(e8,null,f,r,d)).on(`mouseover`,J6(t8,null,f,r,d)).on(`mouseout`,J6(n8,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=rp(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};rp(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();Y6(e,function(e){var r=e.type,i=new Uf({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),t_(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),fm(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=Q6(c,r,o,s,d,m,u),y=new X6,b=r.getModel(`textStyle`);if(H(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add($6({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;U(w)&&w?T=w.replace(`{name}`,t??``):H(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Uf({style:r_(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Rf({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Lg({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),fm(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();ry(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){ry(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(FS);function Q6(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),Y6(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:Jw(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function $6(e){var t=e.icon||`roundRect`,n=ow(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function e8(e,t,n,r){n8(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),t8(e,t,n,r)}function t8(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function n8(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function r8(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),i8(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),i8(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function i8(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
58
+ `||r===``)){var i=e.isSelected(r);q(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function a8(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,On(r8,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,On(r8,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,On(r8,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,On(r8,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,On(r8,`unSelect`))}var o8=bu(s8);function s8(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function c8(e){e.registerComponentModel(q6),e.registerComponentView(Z6),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,o8),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),a8(e)}var l8=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=hy(t);e.prototype.init.call(this,t,n,r),u8(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),u8(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=j_(q6.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:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(q6);function u8(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,my(t,n,{type:`box`,ignoreSize:!!i})}var d8=X,f8=[`width`,`height`],p8=[`x`,`y`],m8=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new d8),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new d8)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=V(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Uf({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=kg(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:B(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=f8[s],l=p8[s],u=f8[1-s],d=p8[1-s];i&&ry(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=F(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;ry(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),ry(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Rf({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Xh(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,U(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=f8[i],o=p8[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(Z6);function h8(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function g8(e){PE(c8),e.registerComponentModel(l8),e.registerComponentView(m8),h8(e)}function _8(e){PE(c8),PE(g8)}var v8=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=j_(p2.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(p2),y8=Ul();function b8(e,t,n){y8(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function x8(e,t){for(var n=y8(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||S8(n,o))}}}function S8(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function C8(e,t){var n={model:t,containsPoint:On(T8,t),dispatchAction:On(w8,e),dataZoomInfoMap:null,controller:null},r=n.controller=new QR(e.getZr());return R([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function w8(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function T8(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function E8(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,c;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:!t.get(`zoomLock`,!0)||`move`;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=G(t.get(`cursorGrab`,!0),s),c=G(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function D8(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=y8(t),r=n.coordSysRecordMap||=K();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){R(s2(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,C8(t,n.model));(a.dataZoomInfoMap||=K()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){S8(r,e);return}var s=E8(a,e,t);n.enable(s.controlType,s.opt),YS(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var O8=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),b8(r,t,{pan:B(k8.pan,this),zoom:B(k8.zoom,this),scrollMove:B(k8.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){x8(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(g2),k8={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=j8[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(OK(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:A8(function(e,t,n,r,i,a){var o=j8[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:A8(function(e,t,n,r,i,a){return j8[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function A8(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(OK(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var j8={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function M8(e){S2(e),e.registerComponentModel(v8),e.registerComponentView(O8),D8(e)}var N8=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=j_(p2.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:.5},areaStyle:{color:Q.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:.5},areaStyle:{color:Q.color.accent20,opacity:.3}},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:Q.color.neutral00,borderColor:Q.color.accent20},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:Q.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(p2),P8=Rf,F8=1,I8=30,L8=7,R8=`horizontal`,z8=`vertical`,B8=5,V8=[`line`,`bar`,`candlestick`,`scatter`],H8={easing:`cubicOut`,duration:100,delay:0},U8=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=B(this._onBrush,this),this._onBrushEnd=B(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),YS(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.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(){XS(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new X;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?L8:0,r=uy(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===R8?{right:r.width-i.x-i.width,top:r.height-I8-a-n,width:i.width,height:I8}:{right:a,top:i.y,width:I8,height:i.height},s=hy(e.option);R([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=sy(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===z8&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===R8&&!i?{scaleY:o?1:-1,scaleX:1}:n===R8&&i?{scaleY:o?1:-1,scaleX:-1}:n===z8&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new P8({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new P8({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:B(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:Rc(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new X,r=new xh({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new Ch({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){R(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&yn(V8,e.get(`type`))<0)){var o=r.getComponent(a2(i),a).axis,s=G8(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new P8({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new P8({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:F8,fill:Q.color.transparent}})),R([0,1],function(t){var a=o.get(`handleIcon`);!rw[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=ow(a,-1,0,2,2,null,!0);s.attr({cursor:K8(this._orient),draggable:!0,drift:B(this._onDragMove,this,t),ondragend:B(this._onDragEnd,this),onmouseover:B(this._onOverDataInfoTriggerArea,this,!0),onmouseout:B(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=Z(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),fm(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new Uf({silent:!0,invisible:!f,style:r_(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=Z(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Rf({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=ow(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,Q.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Rf({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:B(this._onActualMoveZoneDrift,this),ondragstart:B(this._onActualMoveZoneDragStart,this),ondragend:B(this._onActualMoveZoneDragEnd,this),onmouseover:B(this._onOverDataInfoTriggerArea,this,!0),onmouseout:B(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Rc(e[0],[0,100],t,!0),Rc(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];OK(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:Rc(a.minSpan,o,i,!0),a.maxSpan==null?null:Rc(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Wc([Rc(r[0],i,o,!0),Rc(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Wc(n.slice()),i=this._size;R([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new Rf,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var c=this._range,l;if(e){var u={start:c[0],end:c[1]},d=d2(t,o);if(d){var f=d.calculateDataWindow(u).percentInverted;u={start:f[0],end:f[1]}}l=o.calculateDataWindow(u)}else l=o.getWindow();a=[W8(t,0,l,s),W8(t,1,l,s)]}}var p=Wc(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=xg(n.handles[e].parent,this.group),o=Cg(e===0?`right`:`left`,t),s=this._handleWidth/2+B8,c=Sg([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===R8?`middle`:o,align:i===R8?o:`center`,text:a[e]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,t,n){this.api.getZr().setCursorStyle(`grabbing`),this._onDragMove(`all`,e,t,n)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr(`cursor`,`grabbing`),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr(`cursor`,`grab`),this._onDragEnd()},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Yr(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Sg([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new J(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();OK(0,a,r,0,o.minSpan==null?null:Rc(o.minSpan,i,r,!0),o.maxSpan==null?null:Rc(o.maxSpan,i,r,!0)),this._range=Wc([Rc(a[0],r,i,!0),Rc(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Yr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new P8({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?H8:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=s2(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(g2);function W8(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:qD(r)||GD(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?Uc(o,a,!0):o+``;return H(i)?i(o,s):U(i)?i.replace(`{value}`,s):s}function G8(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function K8(e){return e===`vertical`?`ns-resize`:`ew-resize`}function q8(e){e.registerComponentModel(N8),e.registerComponentView(U8),S2(e)}function J8(e){PE(M8),PE(q8)}var Y8={get:function(e,t,n){var r=F((X8[e]||{})[t]);return n&&V(r)?r[r.length-1]:r}},X8={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},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]}},Z8=FU.mapVisual,Q8=FU.eachVisual,$8=V,e5=R,t5=Wc,n5=Rc,r5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&d3(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=B(e,this),this.controllerVisuals=u3(this.option.controller,t,e),this.targetVisuals=u3(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return e5(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Yl(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return z(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],V(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(U(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(H(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=t5([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=Tn(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};gn(r,n),gn(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){$8(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},e5(r,function(e,t){if(FU.isValidType(t)){var n=Y8.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;e5(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&F(t)||(a?i:[i]),c.symbolSize??=n&&F(n)||(a?s[0]:[s[0],s[0]]),c.symbol=Z8(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;Q8(l,function(e){e>u&&(u=e)}),c.symbolSize=Z8(l,function(e){return n5(e,[0,u],[0,s[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(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(vy),i5=[20,140],a5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=i5[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=i5[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):V(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Wc((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=G(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=o5(this,`outOfRange`,this.getExtent()),n=o5(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=j_(r5.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:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(r5);function o5(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var s5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Pv(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Rf({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return R(FU.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),FU.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=uy(t,n).refContainer;dy(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(FS),c5=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function l5(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=c5[o],c=[0,null,10],l={},u=0;u<3;u++)l[c5[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=sy(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function u5(e,t){return R(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var d5=Rc,f5=R,p5=Math.min,m5=Math.max,h5=12,g5=6,_5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=B(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=B(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Uf({style:r_(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=l5(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new X;s.add(c),c.add(n.outOfRange=v5()),c.add(n.inRange=v5(null,a?x5(this._orient):null,B(this._dragHandle,this,`all`,!1),B(this._dragHandle,this,`all`,!0))),c.setClipPath(new Rf({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=m5(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=B(this._dragHandle,this,n,!1),s=B(this._dragHandle,this,n,!0),c=Ys(e.get(`handleSize`),r[0]),l=ow(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=x5(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Yr(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),ym(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Uf({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Yr(e.event)},ondragend:s,style:r_(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Ys(e.get(`indicatorSize`),n[0]),o=ow(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof Af){var c=o.style;o.useStyle(I({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Uf({silent:!0,invisible:!0,style:r_(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:g5)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():b5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[d5(t[0],n,r,!0),d5(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];OK(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[d5(r[0],i,a,!0),d5(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new Ph(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new X(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);f5([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=d5(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=Sg(n.handleLabelPoints[l],xg(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=d5(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Sg(c.indicatorLabelPoint,xg(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=p5(m5(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=p5(m5(i[0],e),i[1]);var o=y5(n,a,i),s=[e-o,e+o],c=d5(e,i,a,!0),l=[d5(s[0],i,a,!0),d5(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||b5(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Vl(u,d);this._dispatchHighDown(`downplay`,u5(f[0],n)),this._dispatchHighDown(`highlight`,u5(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(RC(e.target,function(e){var n=rp(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,u5(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=xg(t,r?null:this.group);return V(e)?Sg(e,i,n):Cg(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(s5);function v5(e,t,n,r){return new xh({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Yr(e.event)},ondragend:r})}function y5(e,t,n){var r=h5/2,i=e.get(`hoverLinkDataSize`);return i&&(r=d5(i,t,n,!0)/2),r}function b5(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function x5(e){return e===`vertical`?`ns-resize`:`ew-resize`}var S5={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},C5=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},w5=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(p3(t.stateList,t.targetVisuals,B(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(B(T5,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function T5(e,t,n,r){for(var i=t.targetVisuals[r],a=FU.prepareVisualTypes(i),o={color:NC(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var E5=R;function D5(e){var t=e&&e.visualMap;V(t)||(t=t?[t]:[]),E5(t,function(e){if(e){O5(e,`splitList`)&&!O5(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&V(t)&&E5(t,function(e){W(e)&&(O5(e,`start`)&&!O5(e,`min`)&&(e.min=e.start),O5(e,`end`)&&!O5(e,`max`)&&(e.max=e.end))})}})}function O5(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var k5=!1;function A5(e){k5||(k5=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(S5,C5),R(w5,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(D5))}function j5(e){e.registerComponentModel(a5),e.registerComponentView(_5),A5(e)}var M5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],N5[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=F(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=z(this._pieceList,function(e){return e=F(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=FU.listVisualTypes(),i=this.isCategory();R(t.pieces,function(e){R(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(e,n){var r=!1;R(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&R(this.stateList,function(e){(t[e]||(t[e]={}))[n]=Y8.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;R(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=F(e)},t.prototype.getValueState=function(e){var t=FU.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){FU.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return R(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=j_(r5.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}(r5),N5={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),al(e),R(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;R(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),P5(t,e)},pieces:function(e){var t=this.option;R(t.pieces,function(t,n){W(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=FU.retrieveVisuals(t),e.push(r)},this),P5(t,e),al(e),R(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function P5(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var F5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Rn(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),R(o.viewPieceList,function(o){var s=o.piece,u=new X;u.onclick=B(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Uf({style:r_(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:G(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),ry(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:u5(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return l5(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new X,o=this.visualMapModel.textStyleModel;a.add(new Uf({style:r_(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=ow(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=F(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,R(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(s5);function I5(e){e.registerComponentModel(M5),e.registerComponentView(F5),A5(e)}function L5(e){PE(j5),PE(I5)}var R5=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:Gg(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),z5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new R5(this);this._target=null,this.ecModel.eachSeries(function(e){xG(e,null)}),this.shouldShow()&&xG(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:Q.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Q.color.neutral30,borderColor:Q.color.neutral40,opacity:.3},z:10},t}(vy),B5=function(e){P(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new rB,!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||Q.color.neutral00;var o=uy(e,n).refContainer,s=sy(iy(e,!0),o),c=a.lineWidth||0,l=this._contentRect=Pg(s.clone(),c/2,!0,!0),u=new X;r.add(u),u.setClipPath(new Rf({shape:l.plain()}));var d=this._targetGroup=new X;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new Rf({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new Rf({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),H5(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),H5(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,hB(n,a.x,a.y,a.width,a.height);var o=sy({left:`center`,top:`center`,aspect:a.width/a.height},r);gB(n,o.x,o.y,o.width,o.height),lB(i,n,0),i.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=ci([],e.targetTrans),n=ii([],aB(null,this._coordSys),t);this._transThisToTarget=ci([],n);var r=e.viewportRect;r=r?r.clone():new Y(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(L({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new QR(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,B(this._onPan,this)).on(`zoom`,B(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=br([],[e.oldX,e.oldY],t),r=br([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(V5(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=br([],[e.originX,e.originY],t);this._api.dispatchAction(V5(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(FS);function V5(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,I(n,t),n}function H5(e,t){var n=Wg(e);Kg(t.group,n.z,n.zlevel)}function U5(e){e.registerComponentModel(z5),e.registerComponentView(B5)}var W5={label:{enabled:!0},decal:{show:!1}},G5=Ul(),K5=Ul(),q5=bu(J5);function J5(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=K5(e).scope||(K5(e).scope={}),i=F(W5);gn(i.label,e.getLocaleModel().get(`aria`),!1),gn(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=K();e.eachSeries(function(e){e.isColorBySeries()||(G5(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(H(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=Uy(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=G5(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=Uy(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=o>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?wn(i.getValues(_),function(e,t){return yn(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(s(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function s(e,t){if(!U(e))return e;var n=e;return R(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function c(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function Y5(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},R([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function X5(e){e.registerPreprocessor(Y5),e.registerVisual(e.PRIORITY.VISUAL.ARIA,q5)}var Z5={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Q5=function(){function e(e){(this._condVal=U(e)?new RegExp(e):In(e)?e:null)??_l(``)}return e.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):An(t)?this._condVal.test(e+``):!1},e}(),$5=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),e7=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),t7=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),n7=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),r7=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function i7(e,t){if(e===!0||e===!1){var n=new $5;return n.value=e,n}return c7(e)||_l(``),e.and?a7(`and`,e,t):e.or?a7(`or`,e,t):e.not?o7(e,t):s7(e,t)}function a7(e,t,n){var r=t[e],i=``;V(r)||_l(i),r.length||_l(i);var a=e===`and`?new e7:new t7;return a.children=z(r,function(e){return i7(e,n)}),a.children.length||_l(i),a}function o7(e,t){var n=e.not,r=``;c7(n)||_l(r);var i=new n7;return i.child=i7(n,t),i.child||_l(r),i}function s7(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=En(e),o=e.parser,s=o?xx(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=q(Z5,l)?Z5[l]:l,d=e[l],f=s?s(d):d,p=Dx(u,f)||u===`reg`&&new Q5(f);p||_l(n),i.push(p)}}i.length||_l(n);var m=new r7;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function c7(e){return W(e)&&!Sn(e)}var l7=function(){function e(e,t){this._cond=i7(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function u7(e,t){return new l7(e,t)}var d7={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=u7(e.config,{valueGetterAttrMap:K({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;q(e,`dimension`)||_l(n);var i=t.getDimensionInfo(r);return i||_l(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},f7={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=xl(n);i.length||_l(r);var a=[];R(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??_l(r),i!==`asc`&&i!==`desc`&&_l(r),s&&s!==`min`&&s!==`max`&&_l(``),i!==`asc`&&i!==`desc`&&_l(``);var c=t.getDimensionInfo(n);c||_l(r);var l=o?xx(o):null;o&&!l&&_l(r),a.push({dimIdx:c.index,parser:l,comparator:new Tx(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&_l(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function p7(e){e.registerTransform(d7),e.registerTransform(f7)}var m7=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Xx(this),Zx(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Zx(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:pp},t}(vy),h7=function(e){P(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(FS);function g7(e){e.registerComponentModel(m7),e.registerComponentView(h7)}var _7=Qd.CMD;function v7(e,t){return Math.abs(e-t)<1e-5}function y7(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){v7(e,n)&&v7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===_7.L||_===_7.C||_===_7.Q)&&(i=[s,c])),_){case _7.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case _7.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case _7.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case _7.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case _7.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case _7.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case _7.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function b7(e,t,n,r,i,a,o,s,c,l){if(v7(e,n)&&v7(t,r)&&v7(i,o)&&v7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];xa(e,n,i,o,.5,T),xa(t,r,a,s,.5,E),b7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),b7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function x7(e,t){var n=y7(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];b7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function S7(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function C7(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=S7([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function w7(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=S7([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function T7(e,t,n,r){return e*r-n*t}function E7(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=T7(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=T7(e-i,t-a,u,d)/f;return p<0||p>1?null:new J(p*c+e,p*l+t)}function D7(e,t,n){var r=new J;J.sub(r,n,t),r.normalize();var i=new J;return J.sub(i,e,t),i.dot(r)}function O7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function k7(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=E7(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:D7(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)O7(m,e[a].slice());O7(m,p),O7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)O7(h,e[a%r].slice());return O7(h,f),O7(h,p),[{points:m},{points:h}]}function A7(e){var t=e.points,n=[],r=[];Dd(t,n,r);var i=new Y(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new J,u=new J;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),k7(t,l,u)}function j7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);j7(e,a[0],i,r),j7(e,a[1],n-i,r)}return r}function M7(e,t){for(var n=[],r=0;r<t;r++)n.push(Jm(e));return n}function N7(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function P7(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function F7(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:w7(r,t,n),i=Rf;break;case`sector`:C7(r,t,n),i=hh;break;case`circle`:C7({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=hh;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=z(x7(e.getUpdatedPathProxy(),o),function(e){return P7(e)}),c=s.length;if(c===0)j7(A7,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=z(s,function(e){var t=[],n=[];Dd(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(j7(A7,{points:p.poly},m,n),f-=m)}}i=xh;break}if(!i)return M7(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),N7(e,g),h.push(g)}return h}function I7(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;xa(m,g,v,b,w,i),xa(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function L7(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function R7(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=I7(c,l),u=n[0],d=n[1],r=u,i=d):(d=L7(i||c,c),u=c):(u=L7(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function z7(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function B7(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function V7(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function H7(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=z7(s),u=z7(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=V7(s));for(var _=B7(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var ee=A-E,M=j-D;T+=ee*ee+M*M}if(T<m){m=T,p=S;for(var te=0;te<h.length;te++)f[te]=h[te]}}else for(var ne=0;ne<g;ne+=2)f[ne]=c[ne]-u[0],f[ne+1]=c[ne+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function U7(e){return e.__isCombineMorphing}var W7=`__mOriginal_`;function G7(e,t,n){var r=W7+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function K7(e,t){var n=W7+t;e[n]&&(e[t]=e[n],e[n]=null)}function q7(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function J7(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=R7(y7(n),y7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&q7(a,s),c&&q7(o,c),G7(t,`updateTransform`,{replace:l}),t.transform=null;var u=H7(a,o,10,Math.PI),d=[];G7(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);yr(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function Y7(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;J7(e,t),t.__morphT=0;function a(){K7(t,`buildPath`),K7(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},L({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function X7(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function Z7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return z(z(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:X7(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function Q7(e){return F7(e.path,e.count)}function $7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function e9(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];U7(n)?i(n.childrenRef()):n instanceof wf&&r.push(n)}}i(e);var a=r.length;if(!a)return $7();var o=(n.dividePath||Q7)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),$7();r=Z7(r),o=Z7(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Ms,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||J7(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}G7(t,`addSelfToZr`,{after:function(e){m(e)}}),G7(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,K7(t,`addSelfToZr`),K7(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?L({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;Y7(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},L({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)K7(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function t9(e,t,n){var r=t.length,i=[],a=n.dividePath||Q7;function o(e){for(var t=0;t<e.length;t++){var n=e[t];U7(n)?o(n.childrenRef()):n instanceof wf&&i.push(n)}}if(U7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(Jm(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),$7()}i=Z7(i),t=Z7(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?L({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;Y7(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function n9(e){return V(e[0])}function r9(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var i9={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=Jm(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function a9(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=Jh(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=I({setToFinal:!0},o),l,u;n9(e)&&(l=e,u=t),n9(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(U7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?L({delay:s(r,i)},c):c;Y7(f,p,m),a(f,p,f,p,m)}}else for(var h=L({dividePath:i9[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?e9(l,u,h):t9(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?L({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?r9(u,l):r9(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function o9(e){if(!e)return[];if(V(e)){for(var t=[],n=0;n<e.length;n++)t.push(o9(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof wf&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var s9=1e4,c9=0,l9=1,u9=2,d9=Ul();function f9(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function p9(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function m9(e,t,n,r){var i=f9(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return p9(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function h9(e){var t=[];return R(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>s9))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:m9(n,a,r,!1),childGroupId:m9(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function g9(e,t,n){e.traverse(function(e){e instanceof wf&&Zh(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function _9(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function v9(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function y9(e,t,n){var r=Jh(`update`,n,t);r&&e.traverse(function(e){if(e instanceof hd){var t=rg(e);t&&e.animateFrom({style:t},r)}})}function b9(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function x9(e,t,n){var r=h9(e),i=h9(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?I(I({},n.style),e.style):e.style},i)}var o=!1,s=c9,c=K(),l=K();R(r,function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=l9;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=u9;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===l9?n.childGroupId:n.groupId:s===u9?n.childGroupId:n.groupId}}var m=b9(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&y9(u,s.dataIndex,c);return}l&&h[l.id]||u&&(v9(u),l?(v9(l),_9(l),o=!0,a9(o9(l),o9(u),s.divide,c,e,a)):g9(u,c,e))}new LE(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=wn(z(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(v9(l),u.length?(R(u,function(e){v9(e),_9(e)}),o=!0,a9(o9(u),o9(l),n.divide,c,e,a)):g9(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=wn(z(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(R(c,function(e){return v9(e)}),s?(v9(s),_9(s),o=!0,a9(o9(s),o9(c),n.divide,l,e[0],a)):R(c,function(t){return g9(t,l,e[0])}))}}).updateManyToMany(function(e,t){new LE(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&R(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Jh(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof wf&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function S9(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function C9(e){return V(e)?e.sort().join(`,`):e}function w9(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function T9(e,t){var n=K(),r=K(),i=K();return R(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=S9(t),c=C9(s);r.set(c,{dataGroupId:a,data:o}),V(s)&&R(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),R(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=S9(e),s=C9(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:w9(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:w9(a),data:a}]});else if(V(o)){var l=[];R(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:w9(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:w9(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:w9(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:w9(a)})}}}}),n}function E9(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function D9(e,t,n,r){var i=[],a=[];R(xl(e.from),function(e){var n=E9(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:w9(t.oldData[n]),groupIdDim:e.dimension})}),R(xl(e.to),function(e){var r=E9(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:w9(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&x9(i,a,r)}function O9(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){R(xl(n.seriesTransition),function(e){R(xl(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][TS]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=d9(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)R(xl(i),function(e){D9(e,r,n,t)});else{var a=T9(r,n);R(a.keys(),function(e){var n=a.get(e);x9(n.oldSeries,n.newSeries,t)})}R(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[TS]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<s9&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var k9=function(){function e(t,n){PD(this,e.decoratedMethods),this._outOfBrk=BD(null,n);var r=this._linear=BD(null,n);FD(this,r),this.breaks=t&&t.breaks||[]}return e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<e&&e<r.vmax)return t(e,r.vmax)}return 0},e.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===2?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){uu(t,n)&&(e===0&&N9(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===2)return e;for(var n=j9,r=M9,i=!0,a=0;a<this.breaks.length;a++){var o=this.breaks[a];if(e<=o.vmax){e>o.vmin?n+=o.vmin-r+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=e-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=e-r),n},transformOut:function(e,t){if(t&&t.depth===2)return e;for(var n=j9,r=M9,i=!0,a=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],c=n+s.vmin-r,l=c+s.gapReal;if(e<=l){a=e>c?s.vmin+(e-c)/(l-c)*(s.vmax-s.vmin):r+e-n,r=s.vmax,i=!1;break}n=l,r=s.vmax}return i&&(a=r+e-n),a}},e}();function A9(e,t){return new k9(e,t)}var j9=0,M9=0;function N9(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};R(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=I9(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));R(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Oc(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function P9(e,t,n,r,i,a){e!==`no`&&R(n,function(n){var o=I9(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&l<o.vmax+u&&(e!==`preserve_extent_bound`||l!==a[0]&&l!==a[1])&&t.splice(s,1)}})}function F9(e,t,n,r){R(t,function(t){var i=I9(t,n);i&&(e.push({value:i.vmin,break:{type:`vmin`,parsedBreak:i},time:r?r(i):void 0}),e.push({value:i.vmax,break:{type:`vmax`,parsedBreak:i},time:r?r(i):void 0}))}),t.length&&e.sort(function(e,t){return e.value-t.value})}function I9(e,t){var n=Oc(e.vmin,t[0]),r=Dc(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function L9(e,t,n){var r=[];if(!e)return{breaks:r};function i(e,t){return e>=0&&e<.99999}R(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:F(e),vmin:t.parse(e.start),vmax:t.parse(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(U(e.gap)){var s=Un(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t.parse(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&R([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return R(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:wn(r,function(e){return!!e})}}function R9(e,t){return z9(t)===z9(e)}function z9(e){return e.start+`_\0_`+e.end}function B9(e,t,n){var r=[];R(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),R(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=Tn(r,function(n){return R9(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return R(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function V9(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=Tn(n,function(e){return R9(e.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:r,depth:2},s={vmin:e.transformOut(i.vmin,o),vmax:e.transformOut(i.vmax,o),breakOption:i.breakOption,gapParsed:F(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function H9(e,t,n,r,i){i.original=L9(e,t,n);var a=i.transformed=L9(e,t,n),o=i.lookup;a.breaks=z(a.breaks,function(e,n){var i={depth:2},a=t.transformIn(e.vmin,i),s=t.transformIn(e.vmax,i),c={type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?t.transformIn(e.vmin+e.gapParsed.val,i)-a:e.gapParsed.val};return o.from[r+n]=a,o.to[r+n]=e.vmin,o.from[r+n+1]=s,o.to[r+n+1]=e.vmax,{vmin:a,vmax:s,gapParsed:c,gapReal:e.gapReal,breakOption:e.breakOption}})}var U9={vmin:`start`,vmax:`end`};function W9(e,t){return t&&(e||={},e.break={type:U9[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function G9(){G_({createBreakScaleMapper:A9,pruneTicksByBreak:P9,addBreaksToTicks:F9,parseAxisBreakOption:L9,identifyAxisBreak:R9,serializeAxisBreakIdentifier:z9,retrieveAxisBreakPairs:B9,getTicksBreakOutwardTransform:V9,parseAxisBreakOptionInwardTransform:H9,makeAxisLabelFormatterParamBreak:W9})}var K9=Ul();function lee(e,t){var n=Tn(e,function(e){return K_().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function uee(e){R(e,function(e){return e.shouldRemove=!0})}function dee(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function fee(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!K_())return;var o=K_().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new X({ignoreModelZ:!0}),y=a.isHorizontal(),b=K9(t).visualList||(K9(t).visualList=[]);uee(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=lee(b,t);s.shouldRemove=!1;var c=new X;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:BP,breaks:[{start:t.breakOption.start,end:t.breakOption.end}]};e[a.dim+`AxisIndex`]=n.componentIndex,i.dispatchAction(e)}),c.silent=!d,v.add(c)},S=0;S<o.length;S++)x(S);e.add(v),dee(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=+!a,v=1-d,y=r[og[v]]+r[sg[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[og[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return Nf(i,i,{lineWidth:1}),t[0]=i.x1,t[1]=i.y1,t[d]}n=b(n),i=b(i);for(var x=[],S=[],C=!0,w=r[og[v]],T=0;;T++){var E=w===r[og[v]],D=w>=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(T<e.length?A=e[T]:(A=Math.random(),e.push(A)),w+=A*(u-l)+l,C=!C,D)break}var j=K_().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new Ch({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new Ch({anid:`break_b_`+j,shape:{points:S},style:s,z:f}));var ee=S.slice();ee.reverse();var M=x.concat(ee);t.add(new xh({anid:`break_c_`+j,shape:{points:M},style:{fill:_,opacity:p.opacity},z:f}))}}}function pee(e,t,n,r){var i=e.axis,a=n.transform;Hn(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=z(K_().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1),function(e){var t=e[0].break.parsedBreak,n=[i.dataToCoord(t.vmin,!0),i.dataToCoord(t.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:K_().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u<s.length;u++){var d=s[u],f=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);c<=f&&m(c,f,l,d),c=p,l=d}c<=o[1]&&m(c,o[1],l,null);function m(e,n,i,o){function s(e,t){a&&(br(e,e,a),br(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};Nf(n,n,r.style),e[0]=n.x1,e[1]=n.y1,t[0]=n.x2,t[1]=n.y2}var l=[e,0],u=[n,0],d=[e,5],f=[n,5];s(l,d),c(l,d),s(u,f),c(u,f),c(l,u);var p=new Eh(I({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]}},r));t.add(p),p.anid=`breakLine_`+(i?i.brkId:`\0`)+`_\0_`+(o?o.brkId:`\0`)}}function mee(e,t,n){if(Tn(n,function(e){return!e}))return;var r=new J;if(!hj(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=ti();oi(i,i,-t);var a=z(n,function(e){return e.transform?ii(ti(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new J(t[sg[e]]*a[0][0],t[sg[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=z(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new J;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),d=(c[0].x+c[1].x+(u.x>=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new J,h=new J;J.scale(m,r,-s),J.scale(h,r,1-s),lj(n[0],m),lj(n[1],h)}function hee(e,t){var n={breaks:[]};return R(t.breaks,function(r){if(r){var i=Tn(e.get(`breaks`,!0),function(e){return K_().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function gee(){RP({adjustBreakLabelPair:mee,buildAxisBreakLine:pee,rectCoordBuildBreakAxis:fee,updateModelAxisBreak:hee})}function _ee(e){JP(e),G9(),gee()}function vee(){BL(yee)}function yee(e,t){R(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=bee(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function bee(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof nO?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=MO(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Y(e.x,e.y,a,o)}}PE([ON]),PE([iN]),PE([FP,BI,lL,TR,GR,BV,FH,oW,DG,zG,KG,rK,Gq,wJ,UJ,vY,wY,zY,KY,bX,AX,YX,yQ]),PE(h$),PE(n1),PE(PV),PE(b1),PE(Wq),PE(D1),PE(I0),PE(e2),PE(D4),PE(a3),PE(m$),PE(F3),PE(R3),PE(t6),PE(w6),PE(P6),PE(G6),PE(_8),PE(J8),PE(M8),PE(q8),PE(L5),PE(j5),PE(I5),PE(U5),PE(X5),PE(p7),PE(g7),PE(O9),PE(Ej),PE(_ee),PE(vee),PE(ER);var q9=n(),J9={c:`http://schemas.openxmlformats.org/drawingml/2006/chart`,a:`http://schemas.openxmlformats.org/drawingml/2006/main`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,pic:`http://schemas.openxmlformats.org/drawingml/2006/picture`,rel:`http://schemas.openxmlformats.org/package/2006/relationships`,ct:`http://schemas.openxmlformats.org/package/2006/content-types`},Y9=9525,X9=[`#4472c4`,`#ed7d31`,`#a5a5a5`,`#ffc000`,`#5b9bd5`,`#70ad47`,`#264478`,`#9e480e`];function xee(e,t){return e?Array.from(e.children).filter(e=>e.localName===t):[]}function Z9(e,t){return e?Array.from(e.children).find(e=>e.localName===t)??null:null}function See(e,t){if(!e)return null;let n=e.getElementsByTagNameNS(J9.c,t);return n.length?n[0]:null}function Q9(e){if(!e)return[];let t=Z9(e,`numCache`)||Z9(e,`strCache`)||e,n=Array.from(t.getElementsByTagNameNS(J9.c,`pt`)),r=[];for(let e of n){let t=parseInt(e.getAttribute(`idx`)||`0`,10),n=e.getElementsByTagNameNS(J9.c,`v`)[0];r[t]=n&&n.textContent||``}for(let e=0;e<r.length;e++)r[e]===void 0&&(r[e]=``);return r}function Cee(e){let t=Z9(e,`tx`),n=``;if(t){let e=Z9(t,`strRef`);if(e)n=Q9(e).find(e=>e)||``;else{let e=t.getElementsByTagNameNS(J9.c,`v`)[0];n=e&&e.textContent||``}}let r=Z9(Z9(e,`cat`),`strRef`)||Z9(Z9(e,`cat`),`numRef`),i=Z9(Z9(e,`val`),`numRef`),a=Q9(r),o=Q9(i).map(e=>{let t=parseFloat(e);return isNaN(t)?0:t});return{name:n,cats:a,vals:o}}function wee(e){let t=See(e,`title`);return t?Array.from(t.getElementsByTagNameNS(J9.a,`t`)).map(e=>e.textContent||``).join(``):``}function Tee(e){let t=Z9(e,`chart`),n=Z9(t,`plotArea`);if(!n)return null;let r=Array.from(n.children).find(e=>/Chart$/.test(e.localName));if(!r)return null;let i=r.localName,a=xee(r,`ser`);if(!a.length)return null;let o=a.map(Cee),s=o[0]?.cats??[],c=wee(t),l=c?{title:{text:c,left:`center`,textStyle:{fontSize:14}}}:{},u=o.length>1||/pie|doughnut/i.test(i)?{legend:{bottom:0,type:`scroll`}}:{};if(/pie|doughnut/i.test(i)){let e=o[0],t=/doughnut/i.test(i)?[`40%`,`70%`]:`70%`;return{color:X9,...l,tooltip:{trigger:`item`},legend:{bottom:0,type:`scroll`},series:[{type:`pie`,radius:t,center:[`50%`,`48%`],data:e.cats.map((t,n)=>({name:t||`#${n+1}`,value:e.vals[n]??0})),label:{fontSize:11}}]}}if(/scatter/i.test(i))return{color:X9,...l,...u,tooltip:{trigger:`item`},xAxis:{type:`value`},yAxis:{type:`value`},series:o.map(e=>({name:e.name,type:`scatter`,data:e.vals.map((t,n)=>[parseFloat(e.cats[n])||n,t])}))};let d=/barChart/i.test(i)&&Z9(r,`barDir`)?.getAttribute(`val`)===`bar`,f=/areaChart/i.test(i),p=/lineChart/i.test(i),m={type:`category`,data:s},h={type:`value`};return{color:X9,...l,...u,grid:{left:48,right:24,top:c?48:24,bottom:o.length>1?48:32,containLabel:!0},tooltip:{trigger:`axis`},xAxis:d?h:m,yAxis:d?m:h,series:o.map(e=>({name:e.name,type:p||f?`line`:`bar`,areaStyle:f?{}:void 0,smooth:!1,data:e.vals}))}}async function Eee(e,t,n){let r=Math.max(240,Math.min(1600,Math.round(t))),i=Math.max(160,Math.min(1200,Math.round(n))),a=document.createElement(`div`);a.style.cssText=`position:absolute;left:-99999px;top:0;width:${r}px;height:${i}px;`,document.body.appendChild(a);let o=mE(a,void 0,{renderer:`canvas`,width:r,height:i});o.setOption({animation:!1,...e});let s=o.getDataURL({type:`png`,pixelRatio:2,backgroundColor:`#ffffff`});return o.dispose(),a.remove(),s}function Dee(e){let t=e.split(`,`)[1],n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function Oee(e,t){let n=(e+t).split(`/`),r=[];for(let e of n)e===`..`?r.pop():e!==`.`&&e!==``&&r.push(e);return r.join(`/`)}function kee(e,t,n,r){let i=e.createElementNS(J9.pic,`pic:pic`),a=e.createElementNS(J9.pic,`pic:nvPicPr`),o=e.createElementNS(J9.pic,`pic:cNvPr`);o.setAttribute(`id`,`0`),o.setAttribute(`name`,`chart`);let s=e.createElementNS(J9.pic,`pic:cNvPicPr`);a.append(o,s);let c=e.createElementNS(J9.pic,`pic:blipFill`),l=e.createElementNS(J9.a,`a:blip`);l.setAttributeNS(J9.r,`r:embed`,t);let u=e.createElementNS(J9.a,`a:stretch`);u.appendChild(e.createElementNS(J9.a,`a:fillRect`)),c.append(l,u);let d=e.createElementNS(J9.pic,`pic:spPr`),f=e.createElementNS(J9.a,`a:xfrm`),p=e.createElementNS(J9.a,`a:off`);p.setAttribute(`x`,`0`),p.setAttribute(`y`,`0`);let m=e.createElementNS(J9.a,`a:ext`);m.setAttribute(`cx`,n),m.setAttribute(`cy`,r),f.append(p,m);let h=e.createElementNS(J9.a,`a:prstGeom`);return h.setAttribute(`prst`,`rect`),h.appendChild(e.createElementNS(J9.a,`a:avLst`)),d.append(f,h),i.append(a,c,d),i}function Aee(e){let t=e;for(;t&&t.localName!==`inline`&&t.localName!==`anchor`;)t=t.parentElement;if(t){let e=Z9(t,`extent`);if(e)return{cx:e.getAttribute(`cx`)||`5486400`,cy:e.getAttribute(`cy`)||`3200400`}}return{cx:`5486400`,cy:`3200400`}}async function jee(e){let t;try{t=await l.default.loadAsync(e)}catch{return e}let n=Object.keys(t.files).filter(e=>/^word\/(document|header\d*|footer\d*)\.xml$/.test(e)),r=0,i=!1,a=new DOMParser,o=new XMLSerializer;for(let e of n){let n=await t.file(e).async(`string`);if(!n.includes(`drawingml/2006/chart`))continue;let s=a.parseFromString(n,`application/xml`),c=Array.from(s.getElementsByTagNameNS(J9.c,`chart`)).filter(e=>e.localName===`chart`&&e.getAttributeNS(J9.r,`id`));if(!c.length)continue;let l=e.substring(0,e.lastIndexOf(`/`)+1),u=`${l}_rels/${e.substring(l.length)}.rels`,d=t.file(u);if(!d)continue;let f=a.parseFromString(await d.async(`string`),`application/xml`),p=f.documentElement,m=e=>{let t=Array.from(p.children).find(t=>t.getAttribute(`Id`)===e);return t?t.getAttribute(`Target`):null},h=new Set(Array.from(p.children).map(e=>e.getAttribute(`Id`)||``)),g=()=>{let e=1,t=`rIdChart${e}`;for(;h.has(t);)t=`rIdChart${++e}`;return h.add(t),t};for(let e of c){let n=m(e.getAttributeNS(J9.r,`id`));if(!n)continue;let o=Oee(l,n),c=t.file(o);if(!c)continue;let u=null;try{u=Tee(a.parseFromString(await c.async(`string`),`application/xml`).documentElement)}catch{u=null}if(!u)continue;let{cx:d,cy:h}=Aee(e),_=parseInt(d,10)/Y9,v=parseInt(h,10)/Y9,y;try{y=Dee(await Eee(u,_,v))}catch{continue}r++;let b=`media/chartimg${r}.png`;t.file(`word/${b}`,y);let x=g(),S=f.createElementNS(J9.rel,`Relationship`);S.setAttribute(`Id`,x),S.setAttribute(`Type`,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`),S.setAttribute(`Target`,b),p.appendChild(S);let C=e.parentElement;if(C){for(C.setAttribute(`uri`,J9.pic);C.firstChild;)C.removeChild(C.firstChild);C.appendChild(kee(s,x,d,h)),i=!0}}t.file(e,o.serializeToString(s)),t.file(u,o.serializeToString(f))}if(!i)return e;let s=t.file(`[Content_Types].xml`);if(s){let e=a.parseFromString(await s.async(`string`),`application/xml`);if(!Array.from(e.documentElement.children).some(e=>e.localName===`Default`&&e.getAttribute(`Extension`)?.toLowerCase()===`png`)){let n=e.createElementNS(J9.ct,`Default`);n.setAttribute(`Extension`,`png`),n.setAttribute(`ContentType`,`image/png`),e.documentElement.appendChild(n),t.file(`[Content_Types].xml`,o.serializeToString(e))}}return t.generateAsync({type:`blob`})}function Mee(e){let t=Array.from(e.querySelectorAll(`section`));if(t.length===0)return{sections:[],labels:[]};let n=t.length,r=[];return t.forEach((e,t)=>{e.style.boxShadow=`0 1px 4px 0 rgba(15,23,42,0.08), 0 0 0 1px rgba(15,23,42,0.04)`;let i=document.createElement(`div`);i.setAttribute(`aria-hidden`,`true`),i.style.display=`flex`,i.style.justifyContent=`center`,i.style.alignItems=`center`,i.style.padding=`10px 0 26px`,i.style.fontSize=`12px`,i.style.color=`#94a3b8`,i.style.userSelect=`none`,i.style.letterSpacing=`0.04em`,i.textContent=`Page ${t+1} of ${n}`,e.insertAdjacentElement(`afterend`,i),r.push(i)}),{sections:t,labels:r}}function $9(e,t,n,r){e.forEach((e,t)=>{e.style.display=n===`navigation`&&t!==r?`none`:``}),t.forEach(e=>{e.style.display=n===`navigation`?`none`:``})}function Nee({data:e,mode:t=`scroll`,className:n,onError:r}){let s=(0,c.useRef)(null),l=(0,c.useRef)([]),u=(0,c.useRef)([]),d=(0,c.useRef)(0),f=(0,c.useRef)(t),[p,m]=(0,c.useState)(!0),[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(0),[y,b]=(0,c.useState)(0);(0,c.useEffect)(()=>{f.current=t},[t]);let x=t===`navigation`,S=_>0,C=_<y-1,w=(0,c.useCallback)(e=>{let t=l.current;!t.length||e<0||e>=t.length||($9(t,u.current,`navigation`,e),d.current=e,v(e),s.current?.scrollIntoView({block:`start`,behavior:`smooth`}))},[]),T=(0,c.useCallback)(e=>{let t=l.current;if(!t.length)return;let n=Math.min(d.current,t.length-1);$9(t,u.current,e,n),e===`navigation`&&(d.current=n,v(n))},[]);return(0,c.useEffect)(()=>{T(t)},[t,T]),(0,c.useEffect)(()=>{if(t!==`navigation`)return;let e=e=>{e.target instanceof HTMLSelectElement||(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),w(d.current+1)):(e.key===`ArrowLeft`||e.key===`ArrowUp`)&&(e.preventDefault(),w(d.current-1)))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[t,w]),(0,c.useEffect)(()=>{let t=!1;return m(!0),g(null),(async()=>{try{let n=await jee(e.slice(0));if(t||!s.current)return;if(s.current.innerHTML=``,l.current=[],u.current=[],await Ht(n,s.current,void 0,{className:`docx`,inWrapper:!0,ignoreWidth:!1,ignoreHeight:!1,breakPages:!0,experimental:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!0}),!t&&s.current){let{sections:e,labels:t}=Mee(s.current);l.current=e,u.current=t,b(e.length);let n=f.current,r=Math.min(d.current,e.length-1);$9(e,t,n,r),n===`navigation`&&(d.current=r,v(r))}}catch(e){let n=e instanceof Error?e:Error(`Failed to render document`);t||(g(n.message),r?.(n))}finally{t||m(!1)}})(),()=>{t=!0}},[e,r]),(0,q9.jsxs)(`div`,{className:`ov-docx${n?` ${n}`:``}`,children:[p&&(0,q9.jsxs)(`div`,{className:`ov-docx__loading`,children:[(0,q9.jsx)(i,{className:`ov-docx__loading-icon`}),(0,q9.jsx)(`span`,{className:`ov-docx__loading-text`,children:`Rendering document…`})]}),h&&(0,q9.jsx)(`div`,{className:`ov-docx__error`,children:h}),(0,q9.jsx)(`div`,{className:`ov-docx__body`,style:{visibility:p?`hidden`:`visible`},children:(0,q9.jsx)(`div`,{ref:s,className:`ov-docx__render`})}),x&&!p&&y>0&&(0,q9.jsxs)(`div`,{className:`ov-docx__nav`,children:[(0,q9.jsx)(`button`,{onClick:()=>w(d.current-1),disabled:!S,"aria-label":`Previous page`,className:`ov-docx__nav-btn`,children:(0,q9.jsx)(a,{className:`ov-docx__nav-btn-icon`,strokeWidth:2})}),(0,q9.jsxs)(`div`,{className:`ov-docx__nav-counter`,children:[(0,q9.jsx)(`span`,{className:`ov-docx__nav-current`,children:_+1}),(0,q9.jsxs)(`span`,{className:`ov-docx__nav-total`,children:[` of `,y]})]}),(0,q9.jsx)(`button`,{onClick:()=>w(d.current+1),disabled:!C,"aria-label":`Next page`,className:`ov-docx__nav-btn`,children:(0,q9.jsx)(o,{className:`ov-docx__nav-btn-icon`,strokeWidth:2})})]})]})}export{Nee as DocxViewer};