bi-sdk-react 0.0.77 → 0.0.78
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.
|
@@ -366,7 +366,7 @@ Projects::
|
|
|
366
366
|
`;let t=0,n=e=>{r+=`
|
|
367
367
|
Project '${e.projectName}' (${euZ[e.projectKind]}) ${t}
|
|
368
368
|
`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){if("event"===e.type&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${U_(e)}`);return}this.writeMessage(e)}writeMessage(e){let t=epl(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(ep_(t,e))}doOutput(e,t,n,r,i,a){let o={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&epT(i)};if(r){let t;if(ib(e))o.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){let{metadata:n,...r}=e;o.body=r,t=n}else o.body=e;else o.body=e;t&&(o.metadata=t)}else t6.assert(void 0===e);a&&(o.message=a),this.send(o)}semanticCheck(e,t){var n,r;let i=aW();null==(n=t7)||n.push(t7.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});let a=epn(t,e)?euS:t.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,t,a,"semanticDiag",i),null==(r=t7)||r.pop()}syntacticCheck(e,t){var n,r;let i=aW();null==(n=t7)||n.push(t7.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag",i),null==(r=t7)||r.pop()}suggestionCheck(e,t){var n,r;let i=aW();null==(n=t7)||n.push(t7.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag",i),null==(r=t7)||r.pop()}regionSemanticCheck(e,t,n){var r,i,a;let o,s=aW();if(null==(r=t7)||r.push(t7.Phase.Session,"regionSemanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),!this.shouldDoRegionCheck(e)||!(o=t.getLanguageService().getRegionSemanticDiagnostics(e,n))){null==(i=t7)||i.pop();return}this.sendDiagnosticsEvent(e,t,o.diagnostics,"regionSemanticDiag",s,o.spans),null==(a=t7)||a.pop()}shouldDoRegionCheck(e){var t;let n=null==(t=this.projectService.getScriptInfoForNormalizedPath(e))?void 0:t.textStorage.getLineInfo().getLineCount();return!!(n&&n>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,a){try{let o=t6.checkDefined(t.getScriptInfo(e)),s=aW()-i,l={file:e,diagnostics:n.map(n=>epr(e,t,n)),spans:null==a?void 0:a.map(e=>epC(e,o))};this.event(l,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(0===t.length)return;t6.assert(!this.suppressDiagnosticEvents);let i=this.changeSeq,a=Math.min(n,200),o=0,s=()=>{if(o++,t.length>o)return e.delay("checkOne",a,c)},l=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i){if(this.getPreferences(t).disableSuggestions)return s();e.immediate("suggestionCheck",()=>{this.suggestionCheck(t,n),s()})}},c=()=>{let n;if(this.changeSeq!==i)return;let a=t[o];if(ik(a)?a=this.toPendingErrorCheck(a):"ranges"in a&&(n=a.ranges,a=this.toPendingErrorCheck(a.file)),!a)return s();let{fileName:c,project:_}=a;if((edX(_),_.containsFile(c,r))&&(this.syntacticCheck(c,_),this.changeSeq===i)){if(0!==_.projectService.serverMode)return s();if(n)return e.immediate("regionSemanticCheck",()=>{let t=this.projectService.getScriptInfoForNormalizedPath(c);t&&this.regionSemanticCheck(c,_,n.map(e=>this.getRange({file:c,...e},t))),this.changeSeq===i&&e.immediate("semanticCheck",()=>l(c,_))});e.immediate("semanticCheck",()=>l(c,_))}};t.length>o&&this.changeSeq===i&&e.delay("checkOne",n,c)}cleanProjects(e,t){if(t)for(let n of(this.logger.info(`cleaning ${e}`),t))n.getLanguageService(!1).cleanupSemanticCache(),n.cleanupProgram()}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",ir(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){let{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){let t=this.getProject(e.projectFileName),n=lo(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){let r=ra(rw(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),t=>!!t.file&&t.file.fileName===e);return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):rl(r,e=>epo(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:Bf(e.messageText,this.host.newLine),start:e.start,length:e.length,category:oQ(e),code:e.code,source:e.source,startLocation:e.file&&epa(l5(e.file,e.start)),endLocation:e.file&&epa(l5(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:rl(e.relatedInformation,epi)}))}getCompilerOptionsDiagnostics(e){let t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(ra(t.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map(e=>({message:Bf(e.messageText,this.host.newLine),start:e.start,length:e.length,category:oQ(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:rl(e.relatedInformation,epi)}))}getDiagnosticsWorker(e,t,n,r){let{project:i,file:a}=this.getFileAndProject(e);if(t&&epn(i,a))return euS;let o=i.getScriptInfoForNormalizedPath(a),s=n(i,a);return r?this.convertToDiagnosticsWithLinePosition(s,o):s.map(e=>epr(a,i,e))}getDefinition(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,a)||euS,i);return n?this.mapDefinitionInfo(o,i):o.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map(e=>{let n=epx(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=t6.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,a);if(!s||!s.definitions)return{definitions:euS,textSpan:void 0};let l=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:c}=s;return n?{definitions:this.mapDefinitionInfo(l,i),textSpan:epC(c,o)}:{definitions:l.map(e.mapToOriginalLocation),textSpan:c}}findSourceDefinition(e){var t;let{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),a=r.getLanguageService().getDefinitionAtPosition(n,i),o=this.mapDefinitionInfoLocations(a||euS,r).slice();if(0===this.projectService.serverMode&&(!rT(o,e=>lo(e.fileName)!==n&&!e.isAmbient)||rT(o,e=>!!e.failedAliasResolution))){let e=ix(e=>e.textSpan.start,WK(this.host.useCaseSensitiveFileNames));null==o||o.forEach(t=>e.add(t));let a=r.getNoDtsResolutionProject(n),l=a.getLanguageService(),c=null==(t=l.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter(e=>lo(e.fileName)!==n);if(rT(c))for(let t of c){if(t.unverified){let a=function(e,t,r){var a;let o=r.getSourceFile(e.fileName);if(!o)return;let l=VM(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(l),_=c&&ph(c,277);if(_)return s((null==(a=_.propertyName)?void 0:a.text)||_.name.text,o,r)}(t,r.getLanguageService().getProgram(),l.getProgram());if(rT(a)){for(let t of a)e.add(t);continue}}e.add(t)}else{let t,c,_=o.filter(e=>lo(e.fileName)!==n&&e.isAmbient);for(let o of rT(_)?_:(pa(c=VM((t=r.getLanguageService()).getProgram().getSourceFile(n),i))||wV(c))&&bf(c.parent)&&by(c,e=>{var r;if(e===c)return;let i=null==(r=t.getDefinitionAtPosition(n,e.getStart(),!0,!1))?void 0:r.filter(e=>lo(e.fileName)!==n&&e.isAmbient).map(e=>({fileName:e.fileName,name:yf(c)}));if(rT(i))return i})||euS){let t=function(e,t,n){var i,a,o;let s=k8(e);if(s&&e.lastIndexOf(Ok)===s.topLevelNodeModulesIndex){let l=e.substring(0,s.packageRootIndex),c=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=OL(la(l,r.getCurrentDirectory()),OM(c,r,_));if(!u)return;let d=Oj(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=O3(O4(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&rT(d,e=>r.toPath(e)===f))return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:a.resolvedFileName;{let r=e.substring(s.packageRootIndex+1),i=`${p}/${ko(r)}`;return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(i,t).resolvedModule)?void 0:o.resolvedFileName}}}(o.fileName,n,a);if(!t)continue;let i=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,a.currentDirectory,a.directoryStructureHost,!1);if(!i)continue;a.containsScriptInfo(i)||(a.addRoot(i),a.updateGraph());let c=l.getProgram(),_=t6.checkDefined(c.getSourceFile(t));for(let t of s(o.name,_,c))e.add(t)}}o=ir(e.values())}return o=o.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(o,r);function s(e,t,n){return rg(eo6.Core.getTopMostDeclarationNamesInFile(e,t),e=>{let t=n.getTypeChecker().getSymbolAtLocation(e),r=gH(e);if(t&&r)return esP.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)})}}getEmitOutput(e){let{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>epo(e,!0))}:r}mapJSDocTagInfo(e,t,n){return e?e.map(e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map(e=>e.text).join("")}}):[]}mapDisplayParts(e,t){return e?e.map(e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)}):[]}mapSignatureHelpItems(e,t,n){return e.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)})),tags:this.mapJSDocTagInfo(e.tags,t,n)}))}mapDefinitionInfo(e,t){return e.map(e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}}))}static mapToOriginalLocation(e){return e.originalFileName?(t6.assert(void 0!==e.originalTextSpan,"originalTextSpan should be present if originalFileName is"),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){let r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),a=r.toLineColumnOffset(e,cR(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:a.line+1,offset:a.character+1}}}toFileSpanWithContext(e,t,n,r){let i=this.toFileSpan(e,t,r),a=n&&this.toFileSpan(e,n,r);return a?{...i,contextStart:a.start,contextEnd:a.end}:i}getTypeDefinition(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||euS,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map(e=>{let n=epx(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,a)||euS,i);return n?o.map(({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i)):o.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){let{configFile:t}=this.getConfigFileAndProject(e);return t?euS:this.getDiagnosticsWorker(e,!1,(e,t)=>e.getLanguageService().getSyntacticDiagnostics(t),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){let{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){let{configFile:t}=this.getConfigFileAndProject(e);return t?euS:this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSuggestionDiagnostics(t),!!e.includeLinePosition)}getJsxClosingTag(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),a=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==a&&void 0!==i){var o,s;let e;return o=i,s=a,e=o.ranges.map(e=>({start:s.positionToLineOffset(e.start),end:s.positionToLineOffset(e.start+e.length)})),o.wordPattern?{ranges:e,wordPattern:o.wordPattern}:{ranges:e}}}getDocumentHighlights(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),a=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return a?t?a.map(({fileName:e,highlightSpans:t})=>{let n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map(({textSpan:e,kind:t,contextSpan:r})=>({...epw(e,r,n),kind:t}))}}):a:euS}provideInlayHints(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map(e=>{let{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map(({text:e,span:t,file:n})=>{if(!t)return{text:e};{t6.assertIsDefined(n,"Target file should be defined together with its span.");let r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}})}})}mapCode(e){var t;let n=this.getHostFormatOptions(),r=this.getHostPreferences(),{file:i,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=this.projectService.getScriptInfoForNormalizedPath(i),s=null==(t=e.mapping.focusLocations)?void 0:t.map(e=>e.map(e=>{let t=o.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:o.lineOffsetToPosition(e.end.line,e.end.offset)-t}})),l=a.mapCode(i,e.mapping.contents,s,n,r);return this.mapTextChangesToCodeEdits(l)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){let{project:a}=this.getFileAndProjectWorker(e,t);return edX(a),{configFileName:a.getProjectName(),languageServiceDisabled:!a.languageServiceEnabled,fileNames:n?a.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;let n,r,i=this.projectService.getScriptInfo(e);if(!i)return;let a=this.projectService.findDefaultConfiguredProjectWorker(i,3);if(a)return a.seenProjects.forEach((e,t)=>{t!==a.defaultProject&&(3!==e?(n??(n=[])).push(lo(t.getConfigFilePath())):(r??(r=[])).push(lo(t.getConfigFilePath())))}),null==(t=a.seenConfigs)||t.forEach(e=>(n??(n=[])).push(e)),{notMatchedByConfig:n,notInProject:r,defaultProject:a.defaultProject&&lo(a.defaultProject.getConfigFilePath())}}getRenameInfo(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){let t=this.getProject(e.projectFileName);t&&(r=[t])}else{let a=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!a)return n?euS:(this.projectService.logErrorForScriptInfoNotFound(e.file),nV.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(a);r=a.containingProjects,i=this.projectService.getSymlinkedProjects(a)}return(r=ra(r,e=>e.languageServiceEnabled&&!e.isOrphan()),n||r&&r.length||i)?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),nV.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){let t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return nV.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){let n=lo(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),a=this.getDefaultProject(e),o=this.getPreferences(n),s=this.mapRenameInfo(a.getLanguageService().getRenameInfo(n,r,o),t6.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];let l=function(e,t,n,r,i,a,o){let s=epf(e,t,n,epd(t,n,!0),eph,(e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,a),(e,t)=>t(epy(e)));if(ib(s))return s;let l=[],c=epu(o);return s.forEach((e,t)=>{for(let n of e)c.has(n)||epv(epy(n),t)||(l.push(n),c.add(n))}),l}(i,a,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,o,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(l)}:l}mapRenameInfo(e,t){if(!e.canRename)return e;{let{canRename:n,fileToRename:r,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:l}=e;return iE({canRename:n,fileToRename:r,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:epC(l,t)})}}toSpanGroups(e){let t=new Map;for(let{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:a,originalTextSpan:o,originalFileName:s,...l}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});let a=t6.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...epw(r,i,a),...l})}return ir(t.values())}getReferences(e,t){let n=lo(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),a=function(e,t,n,r,i){var a,o;let s=epf(e,t,n,epd(t,n,!1),eph,(e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos)),(e,t)=>{for(let n of(t(epy(e.definition)),e.references))t(epy(n))});if(ib(s))return s;let l=s.get(t);if((null==(o=null==(a=null==l?void 0:l[0])?void 0:a.references[0])?void 0:o.isDefinition)===void 0)s.forEach(e=>{for(let t of e)for(let e of t.references)delete e.isDefinition});else{let e=epu(r);for(let t of l)for(let n of t.references)if(n.isDefinition){e.add(n);break}let t=new Set;for(;;){let n=!1;if(s.forEach((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)}),!n)break}s.forEach((e,n)=>{if(!t.has(n))for(let t of e)for(let e of t.references)e.isDefinition=!1})}let c=[],_=epu(r);return s.forEach((e,t)=>{for(let n of e){let e=epv(epy(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:c0(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:function(e,t){return WZ(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}(n.definition,t)},a=n7(c,e=>W$(e.definition,i,r));for(let e of(a||(a={definition:i,references:[]},c.push(a)),n.references))_.has(e)||epv(epy(e),t)||(_.add(e),a.references.push(e))}}),c.filter(e=>0!==e.references.length)}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return a;let o=this.getPreferences(n),s=this.getDefaultProject(e),l=s.getScriptInfoForNormalizedPath(n),c=s.getLanguageService().getQuickInfoAtPosition(n,i),_=c?Y3(c.displayParts):"",u=c&&c.textSpan,d=u?l.positionToLineOffset(u.start).offset:0,p=u?l.getSnapshot().getText(u.start,cR(u)):"";return{refs:rd(a,e=>e.references.map(e=>epF(this.projectService,e,o))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){let n,r=this.getProjects(e),i=lo(e.file),a=this.getPreferences(i),o={fileName:i,pos:0},s=epf(r,this.getDefaultProject(e),o,o,epm,e=>(this.logger.info(`Finding references to file ${i} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(i)));if(ib(s))n=s;else{n=[];let e=epu(this.host.useCaseSensitiveFileNames);s.forEach(t=>{for(let r of t)e.has(r)||(n.push(r),e.add(r))})}return t?{refs:n.map(e=>epF(this.projectService,e,a)),symbolName:`"${e.file}"`}:n}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){let n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){let{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){let n=lo(e),r=this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n);return{file:n,project:r}}getOutliningSpans(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(!t)return i;{let e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map(t=>({textSpan:epC(t.textSpan,e),hintSpan:epC(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind}))}}getTodoComments(e){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?edD(e.options):this.getFormatOptions(t),a=n.getIndentationAtPosition(t,r,i);return{position:r,indentation:a}}getBreakpointStatement(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPreferences(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),a.maximumHoverLength,e.verbosityLevel);if(!o)return;let s=!!a.displayPartsForJSDoc;if(!t)return s?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)};{let e=Y3(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(cR(o.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(o.documentation,r):Y3(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,s),canIncreaseVerbosityLevel:o.canIncreaseVerbosityLevel}}}getFormattingEditsForRange(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),a=r.lineOffsetToPosition(e.endLine,e.endOffset),o=n.getFormattingEditsForRange(t,i,a,this.getFormatOptions(t));if(o)return o.map(e=>this.convertTextChangeToCodeEdit(e,r))}getFormattingEditsForRangeFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?edD(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?edD(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?edD(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),a=this.getFormatOptions(t),o=n.getFormattingEditsAfterKeystroke(t,i,e.key,a);if("\n"===e.key&&(!o||0===o.length||o.every(e=>cR(e.span)<i))){let{lineText:s,absolutePosition:l}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&0>s.search("\\S")){let e,r,c=n.getIndentationAtPosition(t,i,a),_=0;for(e=0,r=s.length;e<r;e++)if(" "===s.charAt(e))_++;else if(" "===s.charAt(e))_+=a.tabSize;else break;if(c!==_){let t=l+e;o.push({span:c1(l,t),newText:ecL.getIndentationString(c,a)})}}}if(o)return o.map(e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(cR(e.span)),newText:e.newText?e.newText:""}))}getCompletions(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getLanguageService().getCompletionsAtPosition(n,a,{...edI(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===o)return;if("completions-full"===t)return o;let s=e.prefix||"",l=rg(o.entries,e=>{if(o.isMemberCompletion||ao(e.name.toLowerCase(),s.toLowerCase())){let t=e.replacementSpan?epC(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}});return"completions"===t?(o.metadata&&(l.metadata=o.metadata),l):{...o,optionalReplacementSpan:o.optionalReplacementSpan&&epC(o.optionalReplacementSpan,i),entries:l}}getCompletionEntryDetails(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,l=rg(e.entryNames,e=>{let{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,a,t,o,i,this.getPreferences(n),s?iw(s,epP):void 0)});return t?s?l:l.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})):l.map(e=>({...e,codeActions:rl(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)}))}getCompileOnSaveAffectedFileList(e){var t,n;let r,i=this.getProjects(e,!0,!0),a=this.projectService.getScriptInfo(e.file);return a?(t=e=>this.projectService.getScriptInfoForPath(e),n=(e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;let n=e.getCompilationSettings();if(!(n.noEmit||EJ(t.fileName)&&!(Sr(n)||n.emitDecoratorMetadata)))return{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}},r=rp(ib(i)?i:i.projects,e=>n(e,a)),!ib(i)&&i.symLinkedProjects&&i.symLinkedProjects.forEach((e,i)=>{let a=t(i);r.push(...rd(e,e=>n(e,a)))}),rF(r,iB)):euS}emitFile(e){let{file:t,project:n}=this.getFileAndProject(e);if(n||nV.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};let r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:a}=n.emitFile(r,(e,t,n)=>this.host.writeFile(e,t,n));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(a):a.map(e=>epo(e,!0))}:!i}getSignatureHelpItems(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getLanguageService().getSignatureHelpItems(n,a,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(o&&t){let e=o.applicableSpan;return{...o,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(o.items,r,s)}}return s||!o?o:{...o,items:o.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))}}toPendingErrorCheck(e){let t=lo(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){!this.suppressDiagnosticEvents&&n.length>0&&this.updateErrorCheck(e,n,t)}change(e){let t=this.projectService.getScriptInfo(e.file);t6.assert(!!t),t.textStorage.switchToScriptVersionCache();let n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,rb({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){let t=lo(e.file),n=void 0===e.tmpfile?void 0:lo(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){let n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;let t=lo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return rl(e,e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>epC(e,t)),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent}))}getNavigationBarItems(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>epC(e,t)),nameSpan:e.nameSpan&&epC(e.nameSpan,t),childItems:rl(e.childItems,e=>this.toLocationNavigationTree(e,t))}}getNavigationTree(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){let n=this.getFullNavigateToItems(e);return t?rd(n,({project:e,navigateToItems:t})=>t.map(t=>{let n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(cR(t.textSpan))};return t.kindModifiers&&""!==t.kindModifiers&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):rd(n,({navigateToItems:e})=>e)}getFullNavigateToItems(e){let{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){t6.assertIsDefined(e.file);let{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}let a=this.getHostPreferences(),o=[],s=new Map;return e.file||i?epp(this.getProjects(e),void 0,e=>l(e)):(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>l(e))),o;function l(e){let t=ra(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),a.excludeLibrarySymbolsInNavTo),t=>(function(e){let t=e.name;if(!s.has(t))return s.set(t,[e]),!0;let n=s.get(t);for(let t of n){var r,i;if((r=t)===(i=e)||r&&i&&r.containerKind===i.containerKind&&r.containerName===i.containerName&&r.fileName===i.fileName&&r.isCaseSensitive===i.isCaseSensitive&&r.kind===i.kind&&r.kindModifiers===i.kindModifiers&&r.matchKind===i.matchKind&&r.name===i.name&&r.textSpan.start===i.textSpan.start&&r.textSpan.length===i.textSpan.length)return!1}return n.push(e),!0})(t)&&!epv(epy(t),e));t.length&&o.push({project:e,navigateToItems:t})}}getSupportedCodeFixes(e){if(!e)return Y6();if(e.file){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}let t=this.getProject(e.projectFileName);return t||nV.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){var n;let r,i;return this.isLocation(e)?r=void 0!==(n=e).position?n.position:t.lineOffsetToPosition(n.line,n.offset):i=this.getRange(e,t),t6.checkDefined(void 0===r?i:r)}getRange(e,t){let{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){let{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:epa({line:e.range.start.line,character:e.range.start.offset}),end:epa({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),a=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===a)return{edits:[]};if(t){let e,{renameFilename:t,renameLocation:n,edits:i}=a;return void 0!==t&&void 0!==n&&(e=epN(Wb(r.getScriptInfoForNormalizedPath(lo(t)).getSnapshot()),t,n,i)),{renameLocation:e,renameFilename:t,edits:this.mapTextChangesToCodeEdits(i),notApplicableReason:a.notApplicableReason}}return a}getMoveToRefactoringFileSuggestions(e){let{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t))))}getPasteEdits(e){let{file:t,project:n}=this.getFileAndProject(e);if(euG(t))return;let r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map(t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(lo(e.copiedFrom.file))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){t6.assert("file"===e.scope.type);let{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){let n=lo(e.oldFilePath),r=lo(e.newFilePath),i=this.getHostFormatOptions(),a=this.getHostPreferences(),o=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{let t=e.getLanguageService().getEditsForFileRename(n,r,i,a),l=[];for(let e of t)o.has(e.fileName)||(s.push(e),l.push(e.fileName));for(let e of l)o.add(e)}),t?s.map(e=>this.mapTextChangeToCodeEdit(e)):s}getCodeFixes(e,t){let n,{file:r,project:i}=this.getFileAndProject(e),a=i.getScriptInfoForNormalizedPath(r),{startPosition:o,endPosition:s}=this.getStartAndEndPosition(e,a);try{n=i.getLanguageService().getCodeFixesAtPosition(r,o,s,e.errorCodes,this.getFormatOptions(r),this.getPreferences(r))}catch(c){let t=c instanceof Error?c:Error(c),n=i.getLanguageService(),a=[...n.getSyntacticDiagnostics(r),...n.getSemanticDiagnostics(r),...n.getSuggestionDiagnostics(r)].filter(e=>cG(o,s-o,e.start,e.length)).map(e=>e.code),l=e.errorCodes.find(e=>!a.includes(e));throw void 0!==l&&(t.message+=`
|
|
369
|
-
Additional information: BADCLIENT: Bad error code, ${l} not found in range ${o}..${s} (found: ${a.join(", ")})`),t}return t?n.map(e=>this.mapCodeFixAction(e)):n}getCombinedCodeFix({scope:e,fixId:t},n){t6.assert("file"===e.type);let{file:r,project:i}=this.getFileAndProject(e.args),a=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(a.changes),commands:a.commands}:a}applyCodeActionCommand(e){for(let t of iS(e.command)){let{file:e,project:n}=this.getFileAndProject(t);n.getLanguageService().applyCodeActionCommand(t,this.getFormatOptions(e)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:a}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:a}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){var t;let n,r=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(e.fileName),t6.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!r}))),r?{fileName:e.fileName,textChanges:e.textChanges.map(e=>{var t,n;return t=e,{start:epD(n=r,t.span.start),end:epD(n,cR(t.span)),newText:t.newText}})}:(t=e,t6.assert(1===t.textChanges.length),n=rK(t.textChanges),t6.assert(0===n.span.start&&0===n.span.length),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]})}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getBraceMatchingAtPosition(n,a);return o?t?o.map(e=>epC(e,i)):o:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;let{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;let a=r.filter(e=>!e.includes("lib.d.ts"));if(0===a.length)return;let o=[],s=[],l=[],c=[],_=lo(n),u=this.projectService.ensureDefaultProjectForFile(_);for(let e of a)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?o.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):EJ(e)?c.push(e):l.push(e);let d=[...o,...s,...l,...c].map(e=>({fileName:e,project:u}));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){let{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=t6.checkDefined(this.projectService.getScriptInfo(r));return rl(n,e=>{let n=this.getPosition(e,a),o=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(o,a):o})}toggleLineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),a=this.getRange(e,i),o=r.toggleLineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}toggleMultilineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.toggleMultilineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}commentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.commentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}uncommentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.uncommentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}mapSelectionRange(e,t){let n={textSpan:epC(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){let t=lo(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),nV.ThrowNoProject())}toProtocolCallHierarchyItem(e){let t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:epC(e.span,t),selectionSpan:epC(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){let t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>epC(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>epC(e,t))}}prepareCallHierarchy(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){let i=this.getPosition(e,r),a=n.getLanguageService().prepareCallHierarchy(t,i);return a&&H2(a,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return lo(this.host.useCaseSensitiveFileNames?e:iO(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){t6.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){t6.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){let r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){let t=this.handlers.get(e.command);if(!t)return this.logger.msg(`Unrecognized JSON command:${U_(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1};{let n=this.executeWithRequestId(e.seq,()=>t(e),void 0);return this.projectService.enableRequestedPlugins(),n}}onMessage(e){var t,n,r,i,a,o,s,l;let c,_,u;this.gcTimer.scheduleCollect();let d=this.performanceData;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Uc(this.toStringMessage(e))}`));try{u=(_=this.parseMessage(e)).arguments&&_.arguments.file?_.arguments:void 0,null==(t=t7)||t.instant(t7.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=t7)||n.push(t7.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);let{response:a,responseRequired:o,performanceData:s}=this.executeCommand(_);if(null==(r=t7)||r.pop(),this.logger.hasLevel(2)){let e,t=(e=(l=this.hrtime(c))[0],(1e9*e+l[1])/1e6).toFixed(4);o?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${t}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${t}`)}null==(i=t7)||i.instant(t7.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!a}),a?this.doOutput(a,_.command,_.seq,!0,s):o&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(a=t7)||a.popAll(),t instanceof om){null==(o=t7)||o.instant(t7.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);return}this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=t7)||s.instant(t7.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=d}}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function epT(e){let t=e.diagnosticsDuration&&ir(e.diagnosticsDuration,([e,t])=>({...t,file:e}));return{...e,diagnosticsDuration:t}}function epC(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(cR(e))}}function epw(e,t,n){let r=epC(e,n),i=t&&epC(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function epD(e,t){var n;return ed5(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t)}function epN(e,t,n,r){let{line:i,character:a}=l4(l0(function(e,t,n){for(let{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){let{newText:n,span:{start:r,length:a}}=i[t];e=e.slice(0,r)+n+e.slice(r+a)}return e}(e,t,r)),n);return{line:i+1,offset:a+1}}function epF(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:a},{disableLineTextInReferences:o}){var s,l;let c,_=t6.checkDefined(e.getScriptInfo(t)),u=epw(n,r,_),d=o?void 0:(s=_,l=u,c=s.lineToTextSpan(l.start.line-1),s.getSnapshot().getText(c.start,cR(c)).replace(/\r|\n/g,""));return{file:t,...u,lineText:d,isWriteAccess:i,isDefinition:a}}function epP(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var epE=((t2=epE||{})[t2.PreStart=0]="PreStart",t2[t2.Start=1]="Start",t2[t2.Entire=2]="Entire",t2[t2.Mid=3]="Mid",t2[t2.End=4]="End",t2[t2.PostEnd=5]="PostEnd",t2),epA=class{constructor(){this.goSubtree=!0,this.lineIndex=new epL,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new epR,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){let n,r;t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;let i=epL.linesFromText(e).lines;i.length>1&&""===i[i.length-1]&&i.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(r=this.endBranch[e],n=e>0?this.endBranch[e-1]:this.branchNode);r&&n.remove(r);let a=this.startPath[this.startPath.length-1];if(i.length>0)if(a.text=i[0],i.length>1){let e=Array(i.length-1),t=a;for(let t=1;t<i.length;t++)e[t-1]=new epB(i[t]);let n=this.startPath.length-2;for(;n>=0;){let r=this.startPath[n];e=r.insertAt(t,e),n--,t=r}let r=e.length;for(;r>0;){let t=new epR;t.add(this.lineIndex.root),r=(e=t.insertAt(this.lineIndex.root,e)).length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(a);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){let a,o=this.stack[this.stack.length-1];function s(e){return e.isLeaf()?new epB(""):new epR}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):(2===this.state&&(this.initialText=n.text.substring(0,e)),this.trailingText=n.text.substring(e+t))}},epI=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return c4(c0(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},epO=class e{constructor(){this.changes=[],this.versions=Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion)&&!(t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new epI(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new epM(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){let t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1),i=void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r;return c0(r,i)}getTextChangesBetweenVersions(e,t){if(!(e<t))return c6;if(e>=this.minVersion){let n=[];for(let r=e+1;r<=t;r++)for(let e of this.versions[this.versionToIndex(r)].changesSincePreviousVersion)n.push(e.getTextChangeRange());return c8(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new e,r=new epM(0,n,new epL);n.versions[n.currentVersion]=r;let i=epL.linesFromText(t);return r.index.load(i.lines),n}};epO.changeNumberThreshold=8,epO.changeLengthThreshold=256,epO.maxVersions=8;var epj=epO,epM=class e{constructor(e,t,n,r=euS){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)if(this.version<=t.version)return c6;else return this.cache.getTextChangesBetweenVersions(t.version,this.version)}},epL=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){let{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(!(e<=this.getLineCount()))return{absolutePosition:this.root.charCount(),lineText:void 0};{let{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}}load(t){if(t.length>0){let n=[];for(let e=0;e<t.length;e++)n[e]=new epB(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new epR}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());let r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return(t6.assert(0===n),void 0!==r)?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){let i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}let i=new epA,a=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let e=this.getText(t,1);r=r?e+r:e,n=0,a=!0}else if(n>0){let e=t+n,{zeroBasedColumn:i,lineText:a}=this.positionToColumnAndLineText(e);0===i&&(n+=a.length,r=r?r+a:a)}if(this.root.walk(t,n,i),i.insertLines(r,a),this.checkEdits){let t=i.lineIndex.getText(0,i.lineIndex.getLength());t6.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new epR(e);let t=Array(Math.ceil(e.length/4)),n=0;for(let r=0;r<t.length;r++){let i=Math.min(n+4,e.length);t[r]=new epR(e.slice(n,i)),n=i}return this.buildTreeFromBottom(t)}static linesFromText(e){let t=l0(e);if(0===t.length)return{lines:[],lineMap:t};let n=Array(t.length),r=t.length-1;for(let i=0;i<r;i++)n[i]=e.substring(t[i],t[i+1]);let i=e.substring(t[r]);return i.length>0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},epR=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){for(let e of(this.totalChars=0,this.totalLines=0,this.children))this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),a=e;for(;a>=i;)this.skipChild(a,t,r,n,0),a-=i,r++,i=this.children[r].charCount();if(a+t<=i){if(this.execWalk(a,t,n,r,2))return}else{if(this.execWalk(a,i-a,n,r,1))return;let e=t-(i-a);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){let e=this.children.length;if(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(let n of this.children)if(n.charCount()>t)if(n.isLeaf())return{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text};else return n.charOffsetToLineInfo(e,t);else t-=n.charCount(),e+=n.lineCount();let n=this.lineCount();if(0===n)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let r=t6.checkDefined(this.lineNumberToInfo(n,0).leaf);return{oneBasedLine:n,zeroBasedColumn:r.charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(let n of this.children){let r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n,r=this.children.length,i=++t;if(t<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=i,n}remove(e){let t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let e=t;e<n-1;e++)this.children[e]=this.children[e+1];this.children.pop()}findChildIndex(e){let t=this.children.indexOf(e);return t6.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t),i=this.children.length,a=n.length;if(i<4&&r===i-1&&1===a)return this.add(n[0]),this.updateCounts(),[];{let t=this.splitAfter(r),i=0;for(r++;r<4&&i<a;)this.children[r]=n[i],r++,i++;let o=[],s=0;if(i<a){o=Array(s=Math.ceil((a-i)/4));let t=0;for(let t=0;t<s;t++)o[t]=new e;let r=o[0];for(;i<a;)r.add(n[i]),i++,4===r.children.length&&(r=o[++t]);for(let e=o.length-1;e>=0;e--)0===o[e].children.length&&o.pop()}t&&o.push(t),this.updateCounts();for(let e=0;e<s;e++)o[e].updateCounts();return o}}add(e){this.children.push(e),t6.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},epB=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},epz=class e{constructor(e,t,n,r,i,a){this.telemetryEnabled=e,this.logger=t,this.host=n,this.globalTypingsCacheLocation=r,this.event=i,this.maxActiveRequestCount=a,this.activeRequestCount=0,this.requestQueue=iv(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var t;return q8.validatePackageName(e)===q8.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(t=this.typesRegistryCache)?void 0:t.has(e)))}installPackage(e){this.packageInstallId++;let t={kind:"installPackage",...e,id:this.packageInstallId},n=new Promise((e,t)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){let r=euT(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${U_(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var t,n;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${U_(e)}`),e.kind){case Ue:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case q9:{let r=null==(t=this.packageInstalledPromise)?void 0:t.get(e.id);t6.assertIsDefined(r,"Should find the promise for package install"),null==(n=this.packageInstalledPromise)||n.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case Ur:{let t={message:e.message};this.event(t,"typesInstallerInitializationFailed");break}case Ut:{let t={eventId:e.eventId,packages:e.packagesToInstall};this.event(t,"beginInstallTypes");break}case Un:{if(this.telemetryEnabled){let t={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}};this.event(t,"telemetry")}let t={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess};this.event(t,"endInstallTypes");break}case q7:this.projectService.updateTypingsForProject(e);break;case q5:for(this.activeRequestCount>0?this.activeRequestCount--:t6.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case Ui:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${U_(t)}`),this.installer.send(t)},e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};epz.requestDelayMillis=100;var epJ=epz,epq={};nH(epq,{ActionInvalidate:()=>q7,ActionPackageInstalled:()=>q9,ActionSet:()=>q5,ActionWatchTypingLocations:()=>Ui,Arguments:()=>nS,AutoImportProviderProject:()=>ede,AuxiliaryProject:()=>eu7,CharRangeSection:()=>epE,CloseFileWatcherEvent:()=>edx,CommandNames:()=>eps,ConfigFileDiagEvent:()=>edf,ConfiguredProject:()=>edt,ConfiguredProjectLoadKind:()=>edq,CreateDirectoryWatcherEvent:()=>edv,CreateFileWatcherEvent:()=>edy,Errors:()=>nV,EventBeginInstallTypes:()=>Ut,EventEndInstallTypes:()=>Un,EventInitializationFailed:()=>Ur,EventTypesRegistry:()=>Ue,ExternalProject:()=>edn,GcTimer:()=>euj,InferredProject:()=>eu5,LargeFileReferencedEvent:()=>edp,LineIndex:()=>epL,LineLeaf:()=>epB,LineNode:()=>epR,LogLevel:()=>eub,Msg:()=>euk,OpenFileInfoTelemetryEvent:()=>edg,Project:()=>eu8,ProjectInfoTelemetryEvent:()=>edh,ProjectKind:()=>euZ,ProjectLanguageServiceStateEvent:()=>edm,ProjectLoadingFinishEvent:()=>edd,ProjectLoadingStartEvent:()=>edu,ProjectService:()=>ed8,ProjectsUpdatedInBackgroundEvent:()=>ed_,ScriptInfo:()=>euX,ScriptVersionCache:()=>epj,Session:()=>epk,TextStorage:()=>euK,ThrottledOperations:()=>euO,TypingsInstallerAdapter:()=>epJ,allFilesAreJsOrDts:()=>eu2,allRootFilesAreJsOrDts:()=>eu1,asNormalizedPath:()=>euD,convertCompilerOptions:()=>edN,convertFormatOptions:()=>edD,convertScriptKindName:()=>edA,convertTypeAcquisition:()=>edP,convertUserPreferences:()=>edI,convertWatchOptions:()=>edF,countEachFileTypes:()=>eu0,createInstallTypingsRequest:()=>euT,createModuleSpecifierCache:()=>ed9,createNormalizedPathMap:()=>euN,createPackageJsonCache:()=>epe,createSortedArray:()=>euI,emptyArray:()=>euS,findArgument:()=>Uo,formatDiagnosticToProtocol:()=>epo,formatMessage:()=>epl,getBaseConfigFileName:()=>euM,getDetailWatchInfo:()=>edK,getLocationInNewDocument:()=>epN,hasArgument:()=>Ua,hasNoTypeScriptSource:()=>eu3,indent:()=>Uc,isBackgroundProject:()=>edo,isConfigFile:()=>ed5,isConfiguredProject:()=>edi,isDynamicFileName:()=>euG,isExternalProject:()=>eda,isInferredProject:()=>edr,isInferredProjectName:()=>euF,isProjectDeferredClose:()=>eds,makeAutoImportProviderProjectName:()=>euE,makeAuxiliaryProjectName:()=>euA,makeInferredProjectName:()=>euP,maxFileSize:()=>edc,maxProgramSizeForNonTsFiles:()=>edl,normalizedPathToPath:()=>euw,nowString:()=>Us,nullCancellationToken:()=>ept,nullTypingsInstaller:()=>edL,protocol:()=>euL,scriptInfoIsContainedByBackgroundProject:()=>euY,scriptInfoIsContainedByDeferredClosedProject:()=>euQ,stringifyIndented:()=>U_,toEvent:()=>ep_,toNormalizedPath:()=>euC,tryConvertScriptKindName:()=>edE,typingsInstaller:()=>euf,updateProjectIfDirty:()=>edX}),"undefined"!=typeof console&&(t6.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return r},set exports(v){r=v,e.exports&&(e.exports=v)}})},387(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=387,e.exports=t},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=i},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=r},560(){},194(){},45(){},13(){},186(){},943(){},823(){}},_={};function u(e){var t=_[e];if(void 0!==t)return t.exports;var n=_[e]={exports:{}};return c[e].call(n.exports,n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";u.r(d),u.d(d,{PluginType:()=>e_.PluginType,PageCanvas:()=>tS,PageContext:()=>ey,PageDesigner:()=>nm,PageSchema:()=>e_.PageSchema,useDatasource:()=>md,plugins:()=>mN,useEvent:()=>mp,PropEditorProps:()=>eu.PropEditorProps,PageProvider:()=>ev,DropContainer:()=>tv});var e,t,n,r,i,a,o,s,l,c,_,p,f,m,h,g,y,x,b,S,k,T,C,w,D,N,F,P,E,A,I,O,j,M,L,R,B,z,J,q,U,V,W,H,$,K,G,X,Y,Q,Z,ee,et,en,er,ei,ea,eo,es,el,ec,e_={};u.r(e_),u.d(e_,{P:()=>nh});var eu={};u.r(eu);var ed=u(848),ep=u(155),ef=u.n(ep),em=u(694),eh=u.n(em);let eg=e=>{var t;let{datasetId:n,var:r,dependencies:i}=e,{schema:a,getGlobalEnv:o,fetch:s,env:l,updateGlobalVar:c}=(0,ep.useContext)(ey),_=null==a||null==(t=a.datasets)?void 0:t.find(e=>e.id===n);if(!_||!(null==s?void 0:s.dataset))return(0,ed.jsx)(ed.Fragment,{});let u=(0,ep.useMemo)(()=>i.reduce((e,t)=>[...e,l.global[t]],[]),[i,l.global]),d=async()=>{var e;for(let e=0;e<i.length;e++)if(!Object.keys(l.global).includes(i[e]))return;let t=i.reduce((e,t)=>{let n=o(t);return{...e,[t]:n}},{}),{code:a,data:u}=await (null==s||null==(e=s.dataset)?void 0:e.call(s,n,t,_.aiPrompt));"OK"===a&&c(r,u)};return(0,ep.useEffect)(()=>{d()},[n,s,...u]),(0,ed.jsx)(ed.Fragment,{})},ey=(0,ep.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},env:{global:{},local:{}},getGlobalEnv:()=>void 0,setGlobalEnv:()=>{},setItemData:()=>{},globalVars:{},updateGlobalVar:()=>{}}),ev=e=>{var t;let{pageId:n,designable:r,plugins:i,schema:a,selectedItem:o,setSchema:s,setSelectedItem:l,datasetSelector:c,datasetAdd:_,fetch:u,children:d,setItemData:p}=e,[f,m]=(0,ep.useState)(0),[h,g]=(0,ep.useState)({}),[y,x]=(0,ep.useState)([]),[b,S]=(0,ep.useState)({global:{},local:{}}),[k,T]=(0,ep.useState)({}),[C,w]=(0,ep.useState)({}),D=e=>({...b.global,...b.local[e||""]||{}});return(0,ep.useEffect)(()=>{let e={};(a.variables||[]).forEach(t=>{e[t.name]=t.value}),S(t=>({...t,global:e}))},[a.variables]),(0,ed.jsxs)(ey.Provider,{value:{pageId:n,designable:!!r,plugins:i||[],schema:a,selectedItem:o,atItems:y,setSchema:s||(()=>{}),setSelectedItem:l||(()=>{}),updateSelectedItem:e=>{null==l||l(Object.assign(o,e||{})),null==s||s({...a})},datasetSelector:c,datasetAdd:_,fetch:u,forceUpdate:()=>{null==s||s({...a})},onAddAtItem:e=>{null!=y&&y.includes(e)||x([...y,e])},onRemoveAtItem:e=>{x(y.filter(t=>t!==e))},clearAtItems:()=>{x([])},deviceWidth:f,setDeviceWidth:m||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;T(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let r=k[e];if("function"==typeof r){let i=r(t,D(e));if(i){let{target:e,data:t}=i;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;w(e=>({...e,[t]:n}))},handleMethod:(e,t,n,r)=>{let i=C[t][n];return"function"==typeof i?i({sourceId:e.id,arg:r}):null},getVars:D,setVar:(e,t,n)=>{let r={...b};(e.cascadeIds||[]).forEach(e=>{r.local[e]=r.local[e]||{},r.local[e][t]=n})},env:b,getGlobalEnv:e=>b.global[e],setGlobalEnv:(e,t)=>{S(n=>({...n,global:{...n.global,[e]:t}}))},setItemData:p,globalVars:h,updateGlobalVar:(e,t)=>{g(n=>({...n,[e]:t}))}},children:[d,null==(t=a.datasets)?void 0:t.map((e,t)=>(0,ed.jsx)(eg,{datasetId:e.id,var:e.key,dependencies:e.dependencies||[]},t))]})};function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eb(e,t){if(e){if("string"==typeof e)return ex(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ex(e,t):void 0}}function eS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||eb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ek=u(951),eT="data-pdnd-honey-pot";function eC(e){return e instanceof Element&&e.hasAttribute(eT)}function ew(e){var t=eS(document.elementsFromPoint(e.x,e.y),2),n=t[0],r=t[1];return n?eC(n)?null!=r?r:null:n:null}function eD(e){return(eD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eN(e,t,n){var r;return(r=function(e,t){if("object"!=eD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eD(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eD(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eF(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eE(e){var t,n,r,i,a={x:Math.min((i={x:Math.max((r={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(r.y,0)}).x,window.innerWidth-2),y:Math.min(i.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eA(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function eI(e){return function(e){if(Array.isArray(e))return ex(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eO(e){var t=null;return function(){if(!t){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t={result:e.apply(this,r)}}return t.result}}var ej=eO(function(){return navigator.userAgent.includes("Firefox")}),eM=eO(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eL={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if("undefined"!=typeof window&&eM()){var eR=eB();(0,ek.bindAll)(window,[{type:"dragstart",listener:function(){eR.enterCount=0,eR.isOverWindow=!0}},{type:"drop",listener:ez},{type:"dragend",listener:ez},{type:"dragenter",listener:function(e){eR.isOverWindow||0!==eR.enterCount||(e[eL.isEnteringWindow]=!0),eR.isOverWindow=!0,eR.enterCount++}},{type:"dragleave",listener:function(e){eR.enterCount--,eR.isOverWindow&&0===eR.enterCount&&(e[eL.isLeavingWindow]=!0,eR.isOverWindow=!1)}}],{capture:!0})}function eB(){return{enterCount:0,isOverWindow:!1}}function ez(){eR=eB()}function eJ(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eq=(l=function(e){return e()},c=[],_=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c=t,_||(_=requestAnimationFrame(function(){_=null,l.apply(void 0,c)}))}).cancel=function(){_&&(cancelAnimationFrame(_),_=null)},p),eU=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eV={isActive:!1};function eW(){return!eV.isActive}function eH(e){var t,n=e.event,r=null==(t=e.current[0])?void 0:t.dropEffect;null!=r&&n.dataTransfer&&(n.dataTransfer.dropEffect=r)}var e$=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=e.dispatchEvent;if(eW()){var a,o,s=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=eJ(t);if("external"===n.startedFrom)return{input:i,dropTargets:[]};var a=r({input:i,source:n.payload,target:t.target,current:[]});return{input:i,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:r});eV.isActive=!0;var l={current:s};eH({event:t,current:s.dropTargets});var c=function(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(e){r(e),i={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var r=e.nativeSetDragImage,o={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:r}}),eU.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var r=e.current;eU.flush(),eq.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:r}}})},drag:function(e){var r=e.current;eq(function(){eU.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:i,current:r}}})})},drop:function(e){var r=e.current,o=e.updatedSourcePayload;eU.flush(),eq.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:r,previous:i,initial:n}}})}}}({source:n.payload,dispatchEvent:i,initial:s}),_=(0,ek.bindAll)(window,[{type:"dragover",listener:function(e){d(e),c.drag({current:l.current})}},{type:"dragenter",listener:d},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return"dragleave"===n&&(eM()?!!eM()&&t.hasOwnProperty(eL.isLeavingWindow):null==r||(ej()?"nodeName"in r&&r.ownerDocument!==document:r instanceof HTMLIFrameElement))})({dragLeave:e})&&(u({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eJ(e)},l.current.dropTargets.length)?(e.preventDefault(),eH({event:e,current:l.current.dropTargets}),c.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eJ(e)},p()}}].concat(eI([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});c.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function u(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&c.dragUpdate({current:l.current})}function d(e){var t=eJ(e),i=r({target:eC(e.target)?ew({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});i.length&&(e.preventDefault(),eH({event:e,current:i})),u({dropTargets:i,input:t})}function p(){l.current.dropTargets.length&&u({dropTargets:[],input:l.current.input}),c.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eV.isActive=!1,_()}},eK=new Map;function eG(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function eY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eY(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eZ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e0(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e1(e){return e.slice(0).reverse()}function e2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var e4=eO(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e6="text/plain",e8=new WeakMap,e5=(m=null,{bindEvents:function(){return m=null,(0,ek.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,r=t.payload;if("onDragStart"===n){var i,a,o,s=r.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(i=document.createElement("div")).setAttribute(eT,"true"),a=eE({client:l}),Object.assign(i.style,eP(eP({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eA({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(i),o=(0,ek.bind)(window,{type:"pointermove",listener:function(e){a=eE({client:{x:e.clientX,y:e.clientY}}),Object.assign(i.style,eA({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,r,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,r=t.clientRect,n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height)return void i.remove();function l(){c(),i.remove()}var c=(0,ek.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var c,_=r.location.current.input;null==(c=e)||c({current:{x:_.clientX,y:_.clientY}}),e=null,m=null}}}}),e7=function(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,i=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(r){var i=r.eventName,a=r.payload;if("onGenerateDragPreview"===i){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e2(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e2(e,void 0):void 0}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var c=Array.from(t.active),_=0;_<c.length;_++){var u,d=c[_];t.active.has(d)&&(null==(u=d[i])||u.call(d,a))}"onDrop"===i&&(t.active.clear(),t=null)}},monitorForConsumers:function(r){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e3(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return e.add(i),n(i),eO(function(){e.delete(i),t&&t.active.delete(i)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,i="data-drop-target-for-".concat(t),a="[".concat(i,"]");function o(e){var t,n=e.eventName,i=e.payload,a=eZ(i.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=r.get(s.element),c=eQ(eQ({},i),{},{self:s});null==l||null==(o=l[n])||o.call(l,c)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,i=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eZ(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,c=t.value;a.add(c.element);var _=r.get(c.element),u=i.has(c.element),d=eQ(eQ({},n),{},{self:c});null==_||null==(s=_.onDropTargetChange)||s.call(_,d),u||null==_||null==(l=_.onDragLeave)||l.call(_,d)}}catch(e){o.e(e)}finally{o.f()}var p,f=eZ(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,h,g=p.value;if(!a.has(g.element)){var y=eQ(eQ({},n),{},{self:g}),x=r.get(g.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(h=x.onDragEnter)||h.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eO(eG(eX(e.element,{attribute:i,value:"true"}),(r.set(e.element,e),function(){return r.delete(e.element)})))},getIsOver:function(e){var t=e.source,i=e.target,o=e.input,s=e.current,l=function e(t){var i,o,s,l,c=t.source,_=t.target,u=t.input,d=t.result,p=void 0===d?[]:d;if(null==_)return p;if(!(_ instanceof Element))return _ instanceof Node?e({source:c,target:_.parentElement,input:u,result:p}):p;var f=_.closest(a);if(null==f)return p;var m=r.get(f);if(null==m)return p;var h={input:u,source:c,element:m.element};if(m.canDrop&&!m.canDrop(h))return e({source:c,target:m.element.parentElement,input:u,result:p});var g=null!=(i=null==(o=m.getData)?void 0:o.call(m,h))?i:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,h))?s:n,x={data:g,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:c,target:m.element.parentElement,input:u,result:[].concat(eI(p),[x])})}({source:t,target:i,input:o});if(l.length>=s.length)return l;for(var c=e1(s),_=e1(l),u=[],d=0;d<c.length;d++){var p,f=c[d],m=_[d];if(null!=m){u.push(m);continue}var h=u[d-1],g=c[d-1];if((null==h?void 0:h.element)!==(null==g?void 0:g.element))break;var y=r.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;u.push(eQ(eQ({},f),{},{isActiveDueToStickiness:!0}))}return e1(u)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==r||r(e),s.dispatchEvent(e),o.dispatchEvent(e),null==i||i(e)}function c(e){e$({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,r;return r=function(e){var t=e.typeKey,n=e.mount,r=eK.get(t);if(r)return r.usageCount++,r;var i={typeKey:t,unmount:n(),usageCount:1};return eK.set(t,i),i}(e={typeKey:t,mount:function(){return n({canStart:eW,start:c})}}),function(){r.usageCount--,r.usageCount>0||(r.unmount(),eK.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return eG(e5.bindEvents(),(0,ek.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,r,i,a,o,s,l=t.target;if(l instanceof HTMLElement){var c=e8.get(l);if(c){var _=eJ(t),u={element:c.element,dragHandle:null!=(n=c.dragHandle)?n:null,input:_};if(c.canDrag&&!c.canDrag(u))return void t.preventDefault();if(c.dragHandle){var d=ew({x:_.clientX,y:_.clientY});if(!c.dragHandle.contains(d))return void t.preventDefault()}var p=null!=(r=null==(i=c.getInitialDataForExternal)?void 0:i.call(c,u))?r:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var h=eS(m[f],2),g=h[0],y=h[1];t.dataTransfer.setData(g,null!=y?y:"")}!e4()||t.dataTransfer.types.includes(e6)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e6,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:c.element,dragHandle:null!=(a=c.dragHandle)?a:null,data:null!=(o=null==(s=c.getInitialData)?void 0:s.call(c,u))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,r=e.eventName,i=e.payload;null==(t=e8.get(i.source.element))||null==(n=t[r])||n.call(t,i)},onPostDispatch:e5.getOnPostDispatch()}),e9=e7.dropTarget;function te(e){return eO(eG(e7.registerUsage(),(e8.set(e.element,e),function(){e8.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e7.monitor;var tt=u(375);let tn=(0,tt.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_dbprhooq0b9.js"}),tr=e=>{let{type:t,className:n="",style:r={}}=e;return(0,ed.jsx)(tn,{type:t,className:n,style:r})};var ti=u(59),ta=u(514),to=u.n(ta),ts=u(247),tl=u.n(ts);let tc=eh().div`
|
|
369
|
+
Additional information: BADCLIENT: Bad error code, ${l} not found in range ${o}..${s} (found: ${a.join(", ")})`),t}return t?n.map(e=>this.mapCodeFixAction(e)):n}getCombinedCodeFix({scope:e,fixId:t},n){t6.assert("file"===e.type);let{file:r,project:i}=this.getFileAndProject(e.args),a=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(a.changes),commands:a.commands}:a}applyCodeActionCommand(e){for(let t of iS(e.command)){let{file:e,project:n}=this.getFileAndProject(t);n.getLanguageService().applyCodeActionCommand(t,this.getFormatOptions(e)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let n,r;return void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:a}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:a}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){var t;let n,r=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(e.fileName),t6.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!r}))),r?{fileName:e.fileName,textChanges:e.textChanges.map(e=>{var t,n;return t=e,{start:epD(n=r,t.span.start),end:epD(n,cR(t.span)),newText:t.newText}})}:(t=e,t6.assert(1===t.textChanges.length),n=rK(t.textChanges),t6.assert(0===n.span.start&&0===n.span.length),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:n.newText}]})}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:""}}getBraceMatching(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getBraceMatchingAtPosition(n,a);return o?t?o.map(e=>epC(e,i)):o:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;let{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;let a=r.filter(e=>!e.includes("lib.d.ts"));if(0===a.length)return;let o=[],s=[],l=[],c=[],_=lo(n),u=this.projectService.ensureDefaultProjectForFile(_);for(let e of a)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?o.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):EJ(e)?c.push(e):l.push(e);let d=[...o,...s,...l,...c].map(e=>({fileName:e,project:u}));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){let{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=t6.checkDefined(this.projectService.getScriptInfo(r));return rl(n,e=>{let n=this.getPosition(e,a),o=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(o,a):o})}toggleLineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),a=this.getRange(e,i),o=r.toggleLineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}toggleMultilineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.toggleMultilineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}commentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.commentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}uncommentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.uncommentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}mapSelectionRange(e,t){let n={textSpan:epC(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){let t=lo(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),nV.ThrowNoProject())}toProtocolCallHierarchyItem(e){let t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:epC(e.span,t),selectionSpan:epC(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){let t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>epC(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>epC(e,t))}}prepareCallHierarchy(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){let i=this.getPosition(e,r),a=n.getLanguageService().prepareCallHierarchy(t,i);return a&&H2(a,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return lo(this.host.useCaseSensitiveFileNames?e:iO(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){t6.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){t6.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){let r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){let t=this.handlers.get(e.command);if(!t)return this.logger.msg(`Unrecognized JSON command:${U_(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1};{let n=this.executeWithRequestId(e.seq,()=>t(e),void 0);return this.projectService.enableRequestedPlugins(),n}}onMessage(e){var t,n,r,i,a,o,s,l;let c,_,u;this.gcTimer.scheduleCollect();let d=this.performanceData;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${Uc(this.toStringMessage(e))}`));try{u=(_=this.parseMessage(e)).arguments&&_.arguments.file?_.arguments:void 0,null==(t=t7)||t.instant(t7.Phase.Session,"request",{seq:_.seq,command:_.command}),null==(n=t7)||n.push(t7.Phase.Session,"executeCommand",{seq:_.seq,command:_.command},!0);let{response:a,responseRequired:o,performanceData:s}=this.executeCommand(_);if(null==(r=t7)||r.pop(),this.logger.hasLevel(2)){let e,t=(e=(l=this.hrtime(c))[0],(1e9*e+l[1])/1e6).toFixed(4);o?this.logger.perftrc(`${_.seq}::${_.command}: elapsed time (in milliseconds) ${t}`):this.logger.perftrc(`${_.seq}::${_.command}: async elapsed time (in milliseconds) ${t}`)}null==(i=t7)||i.instant(t7.Phase.Session,"response",{seq:_.seq,command:_.command,success:!!a}),a?this.doOutput(a,_.command,_.seq,!0,s):o&&this.doOutput(void 0,_.command,_.seq,!1,s,"No content available.")}catch(t){if(null==(a=t7)||a.popAll(),t instanceof om){null==(o=t7)||o.instant(t7.Phase.Session,"commandCanceled",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command}),this.doOutput({canceled:!0},_.command,_.seq,!0,this.performanceData);return}this.logErrorWorker(t,this.toStringMessage(e),u),null==(s=t7)||s.instant(t7.Phase.Session,"commandError",{seq:null==_?void 0:_.seq,command:null==_?void 0:_.command,message:t.message}),this.doOutput(void 0,_?_.command:"unknown",_?_.seq:0,!1,this.performanceData,"Error processing request. "+t.message+"\n"+t.stack)}finally{this.performanceData=d}}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function epT(e){let t=e.diagnosticsDuration&&ir(e.diagnosticsDuration,([e,t])=>({...t,file:e}));return{...e,diagnosticsDuration:t}}function epC(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(cR(e))}}function epw(e,t,n){let r=epC(e,n),i=t&&epC(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function epD(e,t){var n;return ed5(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t)}function epN(e,t,n,r){let{line:i,character:a}=l4(l0(function(e,t,n){for(let{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){let{newText:n,span:{start:r,length:a}}=i[t];e=e.slice(0,r)+n+e.slice(r+a)}return e}(e,t,r)),n);return{line:i+1,offset:a+1}}function epF(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:a},{disableLineTextInReferences:o}){var s,l;let c,_=t6.checkDefined(e.getScriptInfo(t)),u=epw(n,r,_),d=o?void 0:(s=_,l=u,c=s.lineToTextSpan(l.start.line-1),s.getSnapshot().getText(c.start,cR(c)).replace(/\r|\n/g,""));return{file:t,...u,lineText:d,isWriteAccess:i,isDefinition:a}}function epP(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var epE=((t2=epE||{})[t2.PreStart=0]="PreStart",t2[t2.Start=1]="Start",t2[t2.Entire=2]="Entire",t2[t2.Mid=3]="Mid",t2[t2.End=4]="End",t2[t2.PostEnd=5]="PostEnd",t2),epA=class{constructor(){this.goSubtree=!0,this.lineIndex=new epL,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new epR,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){let n,r;t&&(this.trailingText=""),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;let i=epL.linesFromText(e).lines;i.length>1&&""===i[i.length-1]&&i.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(r=this.endBranch[e],n=e>0?this.endBranch[e-1]:this.branchNode);r&&n.remove(r);let a=this.startPath[this.startPath.length-1];if(i.length>0)if(a.text=i[0],i.length>1){let e=Array(i.length-1),t=a;for(let t=1;t<i.length;t++)e[t-1]=new epB(i[t]);let n=this.startPath.length-2;for(;n>=0;){let r=this.startPath[n];e=r.insertAt(t,e),n--,t=r}let r=e.length;for(;r>0;){let t=new epR;t.add(this.lineIndex.root),r=(e=t.insertAt(this.lineIndex.root,e)).length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(a);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){let a,o=this.stack[this.stack.length-1];function s(e){return e.isLeaf()?new epB(""):new epR}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):(2===this.state&&(this.initialText=n.text.substring(0,e)),this.trailingText=n.text.substring(e+t))}},epI=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return c4(c0(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},epO=class e{constructor(){this.changes=[],this.versions=Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion)&&!(t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new epI(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new epM(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){let t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1),i=void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r;return c0(r,i)}getTextChangesBetweenVersions(e,t){if(!(e<t))return c6;if(e>=this.minVersion){let n=[];for(let r=e+1;r<=t;r++)for(let e of this.versions[this.versionToIndex(r)].changesSincePreviousVersion)n.push(e.getTextChangeRange());return c8(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new e,r=new epM(0,n,new epL);n.versions[n.currentVersion]=r;let i=epL.linesFromText(t);return r.index.load(i.lines),n}};epO.changeNumberThreshold=8,epO.changeLengthThreshold=256,epO.maxVersions=8;var epj=epO,epM=class e{constructor(e,t,n,r=euS){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)if(this.version<=t.version)return c6;else return this.cache.getTextChangesBetweenVersions(t.version,this.version)}},epL=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){let{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(!(e<=this.getLineCount()))return{absolutePosition:this.root.charCount(),lineText:void 0};{let{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}}load(t){if(t.length>0){let n=[];for(let e=0;e<t.length;e++)n[e]=new epB(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new epR}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());let r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(0===this.root.charCount())return(t6.assert(0===n),void 0!==r)?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){let i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}let i=new epA,a=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let e=this.getText(t,1);r=r?e+r:e,n=0,a=!0}else if(n>0){let e=t+n,{zeroBasedColumn:i,lineText:a}=this.positionToColumnAndLineText(e);0===i&&(n+=a.length,r=r?r+a:a)}if(this.root.walk(t,n,i),i.insertLines(r,a),this.checkEdits){let t=i.lineIndex.getText(0,i.lineIndex.getLength());t6.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new epR(e);let t=Array(Math.ceil(e.length/4)),n=0;for(let r=0;r<t.length;r++){let i=Math.min(n+4,e.length);t[r]=new epR(e.slice(n,i)),n=i}return this.buildTreeFromBottom(t)}static linesFromText(e){let t=l0(e);if(0===t.length)return{lines:[],lineMap:t};let n=Array(t.length),r=t.length-1;for(let i=0;i<r;i++)n[i]=e.substring(t[i],t[i+1]);let i=e.substring(t[r]);return i.length>0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},epR=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){for(let e of(this.totalChars=0,this.totalLines=0,this.children))this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(0===this.children.length)return;let r=0,i=this.children[r].charCount(),a=e;for(;a>=i;)this.skipChild(a,t,r,n,0),a-=i,r++,i=this.children[r].charCount();if(a+t<=i){if(this.execWalk(a,t,n,r,2))return}else{if(this.execWalk(a,i-a,n,r,1))return;let e=t-(i-a);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){let e=this.children.length;if(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(let n of this.children)if(n.charCount()>t)if(n.isLeaf())return{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text};else return n.charOffsetToLineInfo(e,t);else t-=n.charCount(),e+=n.lineCount();let n=this.lineCount();if(0===n)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let r=t6.checkDefined(this.lineNumberToInfo(n,0).leaf);return{oneBasedLine:n,zeroBasedColumn:r.charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(let n of this.children){let r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n,r=this.children.length,i=++t;if(t<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=i,n}remove(e){let t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let e=t;e<n-1;e++)this.children[e]=this.children[e+1];this.children.pop()}findChildIndex(e){let t=this.children.indexOf(e);return t6.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t),i=this.children.length,a=n.length;if(i<4&&r===i-1&&1===a)return this.add(n[0]),this.updateCounts(),[];{let t=this.splitAfter(r),i=0;for(r++;r<4&&i<a;)this.children[r]=n[i],r++,i++;let o=[],s=0;if(i<a){o=Array(s=Math.ceil((a-i)/4));let t=0;for(let t=0;t<s;t++)o[t]=new e;let r=o[0];for(;i<a;)r.add(n[i]),i++,4===r.children.length&&(r=o[++t]);for(let e=o.length-1;e>=0;e--)0===o[e].children.length&&o.pop()}t&&o.push(t),this.updateCounts();for(let e=0;e<s;e++)o[e].updateCounts();return o}}add(e){this.children.push(e),t6.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},epB=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},epz=class e{constructor(e,t,n,r,i,a){this.telemetryEnabled=e,this.logger=t,this.host=n,this.globalTypingsCacheLocation=r,this.event=i,this.maxActiveRequestCount=a,this.activeRequestCount=0,this.requestQueue=iv(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var t;return q8.validatePackageName(e)===q8.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(t=this.typesRegistryCache)?void 0:t.has(e)))}installPackage(e){this.packageInstallId++;let t={kind:"installPackage",...e,id:this.packageInstallId},n=new Promise((e,t)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(e,t,n){let r=euT(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${U_(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var t,n;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${U_(e)}`),e.kind){case Ue:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case q9:{let r=null==(t=this.packageInstalledPromise)?void 0:t.get(e.id);t6.assertIsDefined(r,"Should find the promise for package install"),null==(n=this.packageInstalledPromise)||n.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case Ur:{let t={message:e.message};this.event(t,"typesInstallerInitializationFailed");break}case Ut:{let t={eventId:e.eventId,packages:e.packagesToInstall};this.event(t,"beginInstallTypes");break}case Un:{if(this.telemetryEnabled){let t={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}};this.event(t,"telemetry")}let t={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess};this.event(t,"endInstallTypes");break}case q7:this.projectService.updateTypingsForProject(e);break;case q5:for(this.activeRequestCount>0?this.activeRequestCount--:t6.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break;case Ui:this.projectService.watchTypingLocations(e)}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${U_(t)}`),this.installer.send(t)},e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};epz.requestDelayMillis=100;var epJ=epz,epq={};nH(epq,{ActionInvalidate:()=>q7,ActionPackageInstalled:()=>q9,ActionSet:()=>q5,ActionWatchTypingLocations:()=>Ui,Arguments:()=>nS,AutoImportProviderProject:()=>ede,AuxiliaryProject:()=>eu7,CharRangeSection:()=>epE,CloseFileWatcherEvent:()=>edx,CommandNames:()=>eps,ConfigFileDiagEvent:()=>edf,ConfiguredProject:()=>edt,ConfiguredProjectLoadKind:()=>edq,CreateDirectoryWatcherEvent:()=>edv,CreateFileWatcherEvent:()=>edy,Errors:()=>nV,EventBeginInstallTypes:()=>Ut,EventEndInstallTypes:()=>Un,EventInitializationFailed:()=>Ur,EventTypesRegistry:()=>Ue,ExternalProject:()=>edn,GcTimer:()=>euj,InferredProject:()=>eu5,LargeFileReferencedEvent:()=>edp,LineIndex:()=>epL,LineLeaf:()=>epB,LineNode:()=>epR,LogLevel:()=>eub,Msg:()=>euk,OpenFileInfoTelemetryEvent:()=>edg,Project:()=>eu8,ProjectInfoTelemetryEvent:()=>edh,ProjectKind:()=>euZ,ProjectLanguageServiceStateEvent:()=>edm,ProjectLoadingFinishEvent:()=>edd,ProjectLoadingStartEvent:()=>edu,ProjectService:()=>ed8,ProjectsUpdatedInBackgroundEvent:()=>ed_,ScriptInfo:()=>euX,ScriptVersionCache:()=>epj,Session:()=>epk,TextStorage:()=>euK,ThrottledOperations:()=>euO,TypingsInstallerAdapter:()=>epJ,allFilesAreJsOrDts:()=>eu2,allRootFilesAreJsOrDts:()=>eu1,asNormalizedPath:()=>euD,convertCompilerOptions:()=>edN,convertFormatOptions:()=>edD,convertScriptKindName:()=>edA,convertTypeAcquisition:()=>edP,convertUserPreferences:()=>edI,convertWatchOptions:()=>edF,countEachFileTypes:()=>eu0,createInstallTypingsRequest:()=>euT,createModuleSpecifierCache:()=>ed9,createNormalizedPathMap:()=>euN,createPackageJsonCache:()=>epe,createSortedArray:()=>euI,emptyArray:()=>euS,findArgument:()=>Uo,formatDiagnosticToProtocol:()=>epo,formatMessage:()=>epl,getBaseConfigFileName:()=>euM,getDetailWatchInfo:()=>edK,getLocationInNewDocument:()=>epN,hasArgument:()=>Ua,hasNoTypeScriptSource:()=>eu3,indent:()=>Uc,isBackgroundProject:()=>edo,isConfigFile:()=>ed5,isConfiguredProject:()=>edi,isDynamicFileName:()=>euG,isExternalProject:()=>eda,isInferredProject:()=>edr,isInferredProjectName:()=>euF,isProjectDeferredClose:()=>eds,makeAutoImportProviderProjectName:()=>euE,makeAuxiliaryProjectName:()=>euA,makeInferredProjectName:()=>euP,maxFileSize:()=>edc,maxProgramSizeForNonTsFiles:()=>edl,normalizedPathToPath:()=>euw,nowString:()=>Us,nullCancellationToken:()=>ept,nullTypingsInstaller:()=>edL,protocol:()=>euL,scriptInfoIsContainedByBackgroundProject:()=>euY,scriptInfoIsContainedByDeferredClosedProject:()=>euQ,stringifyIndented:()=>U_,toEvent:()=>ep_,toNormalizedPath:()=>euC,tryConvertScriptKindName:()=>edE,typingsInstaller:()=>euf,updateProjectIfDirty:()=>edX}),"undefined"!=typeof console&&(t6.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}})})({get exports(){return r},set exports(v){r=v,e.exports&&(e.exports=v)}})},387(e){function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=387,e.exports=t},375(t){"use strict";t.exports=e},247(e){"use strict";e.exports=l},59(e){"use strict";e.exports=o},185(e){"use strict";e.exports=i},190(e){"use strict";e.exports=t},155(e){"use strict";e.exports=n},514(e){"use strict";e.exports=s},694(e){"use strict";e.exports=a},315(e){"use strict";e.exports=r},560(){},194(){},45(){},13(){},186(){},943(){},823(){}},_={};function u(e){var t=_[e];if(void 0!==t)return t.exports;var n=_[e]={exports:{}};return c[e].call(n.exports,n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{"use strict";u.r(d),u.d(d,{PluginType:()=>e_.PluginType,PageCanvas:()=>tS,PageContext:()=>ey,PageDesigner:()=>nm,PageSchema:()=>e_.PageSchema,useDatasource:()=>md,plugins:()=>mN,useEvent:()=>mp,PropEditorProps:()=>eu.PropEditorProps,PageProvider:()=>ev,DropContainer:()=>tv});var e,t,n,r,i,a,o,s,l,c,_,p,f,m,h,g,y,x,b,S,k,T,C,w,D,N,F,P,E,A,I,O,j,M,L,R,B,z,J,q,U,V,W,H,$,K,G,X,Y,Q,Z,ee,et,en,er,ei,ea,eo,es,el,ec,e_={};u.r(e_),u.d(e_,{P:()=>nh});var eu={};u.r(eu);var ed=u(848),ep=u(155),ef=u.n(ep),em=u(694),eh=u.n(em);let eg=e=>{var t;let{datasetId:n,var:r,dependencies:i}=e,{schema:a,getGlobalEnv:o,fetch:s,env:l,updateGlobalVar:c}=(0,ep.useContext)(ey),_=null==a||null==(t=a.datasets)?void 0:t.find(e=>e.id===n);if(!_||!(null==s?void 0:s.dataset))return(0,ed.jsx)(ed.Fragment,{});let u=(0,ep.useMemo)(()=>i.reduce((e,t)=>[...e,l.global[t]],[]),[i,l.global]),d=async()=>{var e;for(let e=0;e<i.length;e++)if(!Object.keys(l.global).includes(i[e]))return;let t=i.reduce((e,t)=>{let n=o(t);return{...e,[t]:n}},{}),{code:a,data:u}=await (null==s||null==(e=s.dataset)?void 0:e.call(s,n,t,_.aiPrompt));"OK"===a&&c(r,u)};return(0,ep.useEffect)(()=>{d()},[n,s,...u]),(0,ed.jsx)(ed.Fragment,{})},ey=(0,ep.createContext)({pageId:"",designable:!1,plugins:[],schema:{info:{},datasources:[],scripts:[],variables:[],items:[]},selectedItem:null,atItems:null,setSchema:()=>{},setSelectedItem:()=>{},updateSelectedItem:()=>{},forceUpdate:()=>{},onAddAtItem:()=>{},onRemoveAtItem:()=>{},clearAtItems:()=>{},datasetSelector:void 0,datasetAdd:void 0,fetch:void 0,deviceWidth:0,setDeviceWidth:()=>{},initCallback:()=>{},handleCallback:()=>{},initMethod:()=>{},handleMethod:()=>{},getVars:()=>({}),setVar:()=>{},env:{global:{},local:{}},getGlobalEnv:()=>void 0,setGlobalEnv:()=>{},setItemData:()=>{},globalVars:{},updateGlobalVar:()=>{}}),ev=e=>{var t;let{pageId:n,designable:r,plugins:i,schema:a,selectedItem:o,setSchema:s,setSelectedItem:l,datasetSelector:c,datasetAdd:_,fetch:u,children:d,setItemData:p}=e,[f,m]=(0,ep.useState)(0),[h,g]=(0,ep.useState)({}),[y,x]=(0,ep.useState)([]),[b,S]=(0,ep.useState)({global:{},local:{}}),[k,T]=(0,ep.useState)({}),[C,w]=(0,ep.useState)({}),D=e=>({...b.global,...b.local[e||""]||{}});return(0,ep.useEffect)(()=>{let e={};(a.variables||[]).forEach(t=>{e[t.name]=t.value}),S(t=>({...t,global:e}))},[a.variables]),(0,ed.jsxs)(ey.Provider,{value:{pageId:n,designable:!!r,plugins:i||[],schema:a,selectedItem:o,atItems:y,setSchema:s||(()=>{}),setSelectedItem:l||(()=>{}),updateSelectedItem:e=>{null==l||l(Object.assign(o,e||{})),null==s||s({...a})},datasetSelector:c,datasetAdd:_,fetch:u,forceUpdate:()=>{null==s||s({...a})},onAddAtItem:e=>{null!=y&&y.includes(e)||x([...y,e])},onRemoveAtItem:e=>{x(y.filter(t=>t!==e))},clearAtItems:()=>{x([])},deviceWidth:f,setDeviceWidth:m||(()=>{}),initCallback:e=>{let{id:t,callback:n}=e;T(e=>({...e,[t]:n}))},handleCallback:(e,t,n)=>{(e.cascadeIds||[]).forEach(e=>{let r=k[e];if("function"==typeof r){let i=r(t,D(e));if(i){let{target:e,data:t}=i;null==n||n(e,t)}}})},initMethod:e=>{let{id:t,method:n}=e;w(e=>({...e,[t]:n}))},handleMethod:(e,t,n,r)=>{let i=C[t][n];return"function"==typeof i?i({sourceId:e.id,arg:r}):null},getVars:D,setVar:(e,t,n)=>{let r={...b};(e.cascadeIds||[]).forEach(e=>{r.local[e]=r.local[e]||{},r.local[e][t]=n})},env:b,getGlobalEnv:e=>b.global[e],setGlobalEnv:(e,t)=>{S(n=>({...n,global:{...n.global,[e]:t}}))},setItemData:p,globalVars:h,updateGlobalVar:(e,t)=>{g(n=>({...n,[e]:t}))}},children:[d,null==(t=a.datasets)?void 0:t.map((e,t)=>(0,ed.jsx)(eg,{datasetId:e.id,var:e.key,dependencies:e.dependencies||[]},t))]})};function ex(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eb(e,t){if(e){if("string"==typeof e)return ex(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ex(e,t):void 0}}function eS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||eb(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ek=u(951),eT="data-pdnd-honey-pot";function eC(e){return e instanceof Element&&e.hasAttribute(eT)}function ew(e){var t=eS(document.elementsFromPoint(e.x,e.y),2),n=t[0],r=t[1];return n?eC(n)?null!=r?r:null:n:null}function eD(e){return(eD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eN(e,t,n){var r;return(r=function(e,t){if("object"!=eD(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eD(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eD(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eF(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eE(e){var t,n,r,i,a={x:Math.min((i={x:Math.max((r={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(r.y,0)}).x,window.innerWidth-2),y:Math.min(i.y,window.innerHeight-2)};return DOMRect.fromRect({x:a.x,y:a.y,width:2,height:2})}function eA(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function eI(e){return function(e){if(Array.isArray(e))return ex(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eb(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eO(e){var t=null;return function(){if(!t){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t={result:e.apply(this,r)}}return t.result}}var ej=eO(function(){return navigator.userAgent.includes("Firefox")}),eM=eO(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),eL={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if("undefined"!=typeof window&&eM()){var eR=eB();(0,ek.bindAll)(window,[{type:"dragstart",listener:function(){eR.enterCount=0,eR.isOverWindow=!0}},{type:"drop",listener:ez},{type:"dragend",listener:ez},{type:"dragenter",listener:function(e){eR.isOverWindow||0!==eR.enterCount||(e[eL.isEnteringWindow]=!0),eR.isOverWindow=!0,eR.enterCount++}},{type:"dragleave",listener:function(e){eR.enterCount--,eR.isOverWindow&&0===eR.enterCount&&(e[eL.isLeavingWindow]=!0,eR.isOverWindow=!1)}}],{capture:!0})}function eB(){return{enterCount:0,isOverWindow:!1}}function ez(){eR=eB()}function eJ(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var eq=(l=function(e){return e()},c=[],_=null,(p=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];c=t,_||(_=requestAnimationFrame(function(){_=null,l.apply(void 0,c)}))}).cancel=function(){_&&(cancelAnimationFrame(_),_=null)},p),eU=(f=null,{schedule:function(e){f={frameId:requestAnimationFrame(function(){f=null,e()}),fn:e}},flush:function(){f&&(cancelAnimationFrame(f.frameId),f.fn(),f=null)}}),eV={isActive:!1};function eW(){return!eV.isActive}function eH(e){var t,n=e.event,r=null==(t=e.current[0])?void 0:t.dropEffect;null!=r&&n.dataTransfer&&(n.dataTransfer.dropEffect=r)}var e$=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=e.dispatchEvent;if(eW()){var a,o,s=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,i=eJ(t);if("external"===n.startedFrom)return{input:i,dropTargets:[]};var a=r({input:i,source:n.payload,target:t.target,current:[]});return{input:i,dropTargets:a}}({event:t,dragType:n,getDropTargetsOver:r});eV.isActive=!0;var l={current:s};eH({event:t,current:s.dropTargets});var c=function(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(e){r(e),i={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var r=e.nativeSetDragImage,o={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:o,nativeSetDragImage:r}}),eU.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:o}})})},dragUpdate:function(e){var r=e.current;eU.flush(),eq.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:r}}})},drag:function(e){var r=e.current;eq(function(){eU.flush(),a({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:i,current:r}}})})},drop:function(e){var r=e.current,o=e.updatedSourcePayload;eU.flush(),eq.cancel(),a({eventName:"onDrop",payload:{source:null!=o?o:t,location:{current:r,previous:i,initial:n}}})}}}({source:n.payload,dispatchEvent:i,initial:s}),_=(0,ek.bindAll)(window,[{type:"dragover",listener:function(e){d(e),c.drag({current:l.current})}},{type:"dragenter",listener:d},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return"dragleave"===n&&(eM()?!!eM()&&t.hasOwnProperty(eL.isLeavingWindow):null==r||(ej()?"nodeName"in r&&r.ownerDocument!==document:r instanceof HTMLIFrameElement))})({dragLeave:e})&&(u({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&p())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:eJ(e)},l.current.dropTargets.length)?(e.preventDefault(),eH({event:e,current:l.current.dropTargets}),c.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),f()):p()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:eJ(e)},p()}}].concat(eI([{type:"pointermove",listener:(o=0,function(){o<20?o++:a()})},{type:"pointerdown",listener:a=p}])),{capture:!0});c.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function u(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&c.dragUpdate({current:l.current})}function d(e){var t=eJ(e),i=r({target:eC(e.target)?ew({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});i.length&&(e.preventDefault(),eH({event:e,current:i})),u({dropTargets:i,input:t})}function p(){l.current.dropTargets.length&&u({dropTargets:[],input:l.current.input}),c.drop({current:l.current,updatedSourcePayload:null}),f()}function f(){eV.isActive=!1,_()}},eK=new Map;function eG(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}function eX(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function eY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eY(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eZ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e0(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e0(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function e0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e1(e){return e.slice(0).reverse()}function e2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var e4=eO(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),e6="text/plain",e8=new WeakMap,e5=(m=null,{bindEvents:function(){return m=null,(0,ek.bind)(window,{type:"pointermove",listener:function(e){m={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,r=t.payload;if("onDragStart"===n){var i,a,o,s=r.location.initial.input,l=null!=m?m:{x:s.clientX,y:s.clientY};(i=document.createElement("div")).setAttribute(eT,"true"),a=eE({client:l}),Object.assign(i.style,eP(eP({backgroundColor:"transparent",position:"fixed",padding:0,margin:0,boxSizing:"border-box"},eA({clientRect:a})),{},{pointerEvents:"auto",zIndex:0x7fffffff})),document.body.appendChild(i),o=(0,ek.bind)(window,{type:"pointermove",listener:function(e){a=eE({client:{x:e.clientX,y:e.clientY}}),Object.assign(i.style,eA({clientRect:a}))},options:{capture:!0}}),e=function(e){var t,n,r,s=e.current;if(o(),n=(t={client:s,clientRect:a}).client,r=t.clientRect,n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height)return void i.remove();function l(){c(),i.remove()}var c=(0,ek.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var c,_=r.location.current.input;null==(c=e)||c({current:{x:_.clientX,y:_.clientY}}),e=null,m=null}}}}),e7=function(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,i=e.onPostDispatch,a=e.defaultDropEffect,o=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(r){var i=r.eventName,a=r.payload;if("onGenerateDragPreview"===i){t={canMonitorArgs:{initial:a.location.initial,source:a.source},active:new Set};var o,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e2(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e2(e,void 0):void 0}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var c=Array.from(t.active),_=0;_<c.length;_++){var u,d=c[_];t.active.has(d)&&(null==(u=d[i])||u.call(d,a))}"onDrop"===i&&(t.active.clear(),t=null)}},monitorForConsumers:function(r){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e3(Object(n),!0).forEach(function(t){eN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return e.add(i),n(i),eO(function(){e.delete(i),t&&t.active.delete(i)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,i="data-drop-target-for-".concat(t),a="[".concat(i,"]");function o(e){var t,n=e.eventName,i=e.payload,a=eZ(i.location.current.dropTargets);try{for(a.s();!(t=a.n()).done;){var o,s=t.value,l=r.get(s.element),c=eQ(eQ({},i),{},{self:s});null==l||null==(o=l[n])||o.call(l,c)}}catch(e){a.e(e)}finally{a.f()}}var s={onGenerateDragPreview:o,onDrag:o,onDragStart:o,onDrop:o,onDropTargetChange:function(e){var t,n=e.payload,i=new Set(n.location.current.dropTargets.map(function(e){return e.element})),a=new Set,o=eZ(n.location.previous.dropTargets);try{for(o.s();!(t=o.n()).done;){var s,l,c=t.value;a.add(c.element);var _=r.get(c.element),u=i.has(c.element),d=eQ(eQ({},n),{},{self:c});null==_||null==(s=_.onDropTargetChange)||s.call(_,d),u||null==_||null==(l=_.onDragLeave)||l.call(_,d)}}catch(e){o.e(e)}finally{o.f()}var p,f=eZ(n.location.current.dropTargets);try{for(f.s();!(p=f.n()).done;){var m,h,g=p.value;if(!a.has(g.element)){var y=eQ(eQ({},n),{},{self:g}),x=r.get(g.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(h=x.onDragEnter)||h.call(x,y)}}}catch(e){f.e(e)}finally{f.f()}}};return{dropTargetForConsumers:function(e){return eO(eG(eX(e.element,{attribute:i,value:"true"}),(r.set(e.element,e),function(){return r.delete(e.element)})))},getIsOver:function(e){var t=e.source,i=e.target,o=e.input,s=e.current,l=function e(t){var i,o,s,l,c=t.source,_=t.target,u=t.input,d=t.result,p=void 0===d?[]:d;if(null==_)return p;if(!(_ instanceof Element))return _ instanceof Node?e({source:c,target:_.parentElement,input:u,result:p}):p;var f=_.closest(a);if(null==f)return p;var m=r.get(f);if(null==m)return p;var h={input:u,source:c,element:m.element};if(m.canDrop&&!m.canDrop(h))return e({source:c,target:m.element.parentElement,input:u,result:p});var g=null!=(i=null==(o=m.getData)?void 0:o.call(m,h))?i:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,h))?s:n,x={data:g,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:c,target:m.element.parentElement,input:u,result:[].concat(eI(p),[x])})}({source:t,target:i,input:o});if(l.length>=s.length)return l;for(var c=e1(s),_=e1(l),u=[],d=0;d<c.length;d++){var p,f=c[d],m=_[d];if(null!=m){u.push(m);continue}var h=u[d-1],g=c[d-1];if((null==h?void 0:h.element)!==(null==g?void 0:g.element))break;var y=r.get(f.element);if(!y)break;var x={input:o,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(p=y.getIsSticky)&&p.call(y,x)))break;u.push(eQ(eQ({},f),{},{isActiveDueToStickiness:!0}))}return e1(u)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:a});function l(e){null==r||r(e),s.dispatchEvent(e),o.dispatchEvent(e),null==i||i(e)}function c(e){e$({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,r;return r=function(e){var t=e.typeKey,n=e.mount,r=eK.get(t);if(r)return r.usageCount++,r;var i={typeKey:t,unmount:n(),usageCount:1};return eK.set(t,i),i}(e={typeKey:t,mount:function(){return n({canStart:eW,start:c})}}),function(){r.usageCount--,r.usageCount>0||(r.unmount(),eK.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:o.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return eG(e5.bindEvents(),(0,ek.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,r,i,a,o,s,l=t.target;if(l instanceof HTMLElement){var c=e8.get(l);if(c){var _=eJ(t),u={element:c.element,dragHandle:null!=(n=c.dragHandle)?n:null,input:_};if(c.canDrag&&!c.canDrag(u))return void t.preventDefault();if(c.dragHandle){var d=ew({x:_.clientX,y:_.clientY});if(!c.dragHandle.contains(d))return void t.preventDefault()}var p=null!=(r=null==(i=c.getInitialDataForExternal)?void 0:i.call(c,u))?r:null;if(p)for(var f=0,m=Object.entries(p);f<m.length;f++){var h=eS(m[f],2),g=h[0],y=h[1];t.dataTransfer.setData(g,null!=y?y:"")}!e4()||t.dataTransfer.types.includes(e6)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(e6,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:c.element,dragHandle:null!=(a=c.dragHandle)?a:null,data:null!=(o=null==(s=c.getInitialData)?void 0:s.call(c,u))?o:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,r=e.eventName,i=e.payload;null==(t=e8.get(i.source.element))||null==(n=t[r])||n.call(t,i)},onPostDispatch:e5.getOnPostDispatch()}),e9=e7.dropTarget;function te(e){return eO(eG(e7.registerUsage(),(e8.set(e.element,e),function(){e8.delete(e.element)}),eX(e.element,{attribute:"draggable",value:"true"})))}e7.monitor;var tt=u(375);let tn=(0,tt.createFromIconfontCN)({scriptUrl:"https://at.alicdn.com/t/c/font_5072483_uqvajkxw0rf.js"}),tr=e=>{let{type:t,className:n="",style:r={}}=e;return(0,ed.jsx)(tn,{type:t,className:n,style:r})};var ti=u(59),ta=u(514),to=u.n(ta),ts=u(247),tl=u.n(ts);let tc=eh().div`
|
|
370
370
|
display: flex;
|
|
371
371
|
flex-direction: row;
|
|
372
372
|
align-items: flex-end;
|
|
@@ -1499,7 +1499,31 @@ Additional information: BADCLIENT: Bad error code, ${l} not found in range ${o}.
|
|
|
1499
1499
|
color: var(--ant-color-text-description);
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
`,nf=e=>{let{open:t,onCancel:n,onOk:r}=e,[i,a]=(0,ep.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(ti.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==r?void 0:r(JSON.parse(i)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(ts.Editor,{height:"100%",defaultLanguage:"json",value:i,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},nm=ef().forwardRef((e,t)=>{var n,r;let i,{pageId:a,agentList:o=[],plugins:s=[],headerExtra:l,datasourceEnable:c=!0,scriptEnable:_=!0,datasetPanel:u,datasetSelector:d,datasetAdd:p,fetch:f,onSave:m,loading:h=!1}=e,g=(0,ep.useRef)(null),y=(0,ep.useRef)(null),[x,b]=(0,ep.useState)(1),[S,k]=(0,ep.useState)([]),[T,C]=(0,ep.useState)([]),[w,D]=(0,ep.useState)(!1),[N,F]=(0,ep.useState)("desktop"),[P,E]=(0,ep.useState)("component"),[A,I]=(0,ep.useState)((null==f?void 0:f.ai)?"ai":"props"),[O,j]=(0,ep.useState)(!0),[M,L]=(0,ep.useState)(!0),[R,B]=(0,ep.useState)(null),[z,J]=(0,ep.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[q,U]=(0,ep.useState)(!0),[V,W]=(0,ep.useState)(!1),[H,$]=(0,ep.useState)(!1),[K,G]=(0,ep.useState)(""),[X,Y]=(0,ep.useState)(!1),Q=(0,ep.useMemo)(()=>{let e=O?"250px":"",t=M?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[O,M]),Z=(0,ep.useMemo)(()=>({display:O?"flex":"none"}),[O]),ee=(0,ep.useMemo)(()=>({display:M?"flex":"none"}),[M]);r=[z],(i=(0,ep.useRef)()).current===JSON.stringify(r)&&i.current||(i.current=JSON.stringify(r),(()=>{w||(k(e=>e.length?[...e,JSON.parse(JSON.stringify(z))].slice(-50):[JSON.parse(JSON.stringify(z))]),C([]))})()),(0,ep.useImperativeHandle)(t,()=>({handleOpen(e){D(!0),et(e.items),J(e),k([JSON.parse(JSON.stringify(e))]),C([]),setTimeout(()=>D(!1),0)}}));let et=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||tf()),Array.isArray(e.children)?et(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&et(e.children[t],tf())})})},en=e=>{var t,n,r;if((null==(t=e.datasets)?void 0:t.length)&&(null==y||null==(n=y.current)?void 0:n.reload)&&y.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));et(t.items),J(t)}else if(null==(r=e.pageItems)?void 0:r.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(z)),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,i)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:r,insertSlot:a,pageItem:o}=t;switch(r){case"before":e.splice(i,0,o);break;case"after":e.splice(i+1,0,o);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,o);break;case"insert":var l,c,_;let u=s.find(e=>e.key===n.type);Array.isArray(null==u||null==(l=u.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],o]:"object"==typeof(null==u||null==(c=u.defaultOptions)?void 0:c.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(_=n.children)?void 0:_[a])||[],o]})}}),Array.isArray(n.children)?r(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&r(n.children[e])})})};r(n.items),J(n)}},er=(0,ep.useMemo)(()=>"cascade"!==A||(null==R?void 0:R.cascadeIds)?A:"props",[R,A]),ei=(0,ep.useMemo)(()=>(s||[]).find(e=>e.key===(null==R?void 0:R.type)),[s,null==R?void 0:R.type]),ea=(0,ep.useMemo)(()=>{var e;if(!(null==K||null==(e=K.trim())?void 0:e.length))return[];let t=[],n=e=>{Array.isArray(e)&&e.forEach(e=>{JSON.stringify(e).includes(K)&&t.push(e),Array.isArray(e.children)?n(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>n(e.children[t]))})};return n((null==z?void 0:z.items)||[]),t},[null==z?void 0:z.items,K]);return(0,ed.jsxs)(ev,{pageId:a,designable:q,plugins:s,schema:z,selectedItem:R,setSchema:J,setSelectedItem:B,datasetSelector:d,datasetAdd:p,fetch:f,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"保存",children:(0,ed.jsx)(ti.Button,{type:"link",className:"toolbar",onClick:()=>{null==m||m(z)},loading:h,children:(0,ed.jsx)(tt.SaveOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${S.length>1?"active":""}`,onClick:()=>{k(e=>{if(e.length<=1)return e;D(!0);let t=e[e.length-2];return C(e=>[...e,JSON.parse(JSON.stringify(z))]),J(t),B(null),setTimeout(()=>D(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(tt.UndoOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${T.length>0?"active":""}`,onClick:()=>{C(e=>e.length?(D(!0),k(e=>[...e,JSON.parse(JSON.stringify(z))]),J(e[e.length-1]),B(null),setTimeout(()=>D(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(tt.RedoOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${T.length>0?"active":""}`,onClick:()=>{W(!0)},children:(0,ed.jsx)(tt.ImportOutlined,{})})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(parseFloat(Math.max(x-.1,.5).toFixed(1))),children:(0,ed.jsx)(tt.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*x).toFixed(0),"%"]}),(0,ed.jsx)(ti.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(parseFloat(Math.min(x+.1,2).toFixed(1))),children:(0,ed.jsx)(tt.ZoomInOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(1),children:(0,ed.jsx)(tr,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${O?"active":""}`,onClick:()=>{j(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tr,{type:"icon-sider-l"})})}),(0,ed.jsx)(ti.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${M?"active":""}`,onClick:()=>{L(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tr,{type:"icon-sider-r"})})}),l]})]}),(0,ed.jsxs)(nu,{style:Q,children:[(0,ed.jsxs)("div",{className:"left",style:Z,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(ti.Radio.Group,{value:P,onChange:e=>E(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(ti.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"component",children:(0,ed.jsx)(tr,{type:"icon-puzzle"})})}),(0,ed.jsx)(ti.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"layer",children:(0,ed.jsx)(tr,{type:"icon-outline"})})}),!!u&&(0,ed.jsx)(ti.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tr,{type:"icon-dataset"})})}),c&&(0,ed.jsx)(ti.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tr,{type:"icon-datasource"})})}),_&&(0,ed.jsx)(ti.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"script",children:(0,ed.jsx)(tr,{type:"icon-js"})})}),(0,ed.jsx)(ti.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"env",children:(0,ed.jsx)(tr,{type:"icon-variable"})})}),(0,ed.jsx)(ti.Tooltip,{title:"全局数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"global-dataset",children:(0,ed.jsx)(tr,{type:"icon-datasource-g"})})}),(0,ed.jsx)(ti.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"code",children:(0,ed.jsx)(tr,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===P&&(0,ed.jsx)(t1,{}),"layer"===P&&(0,ed.jsx)(t8,{}),c&&"datasource"===P&&(0,ed.jsx)(t3,{}),_&&"script"===P&&(0,ed.jsx)(nn,{}),"env"===P&&(0,ed.jsx)(ni,{}),"code"===P&&(0,ed.jsx)(tH,{}),!!u&&"dataset"===P&&(0,ed.jsx)(no,{ref:y,renderNode:u}),"global-dataset"===P&&(0,ed.jsx)(n_,{})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tA,{title:"页面",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsxs)(nd,{align:"center",gap:8,onClick:()=>Y(!0),children:[(0,ed.jsx)(tt.SearchOutlined,{}),(0,ed.jsx)(ti.Typography.Text,{style:{fontSize:12,color:"var(--ant-color-text-label)"},children:"Quick search..."})]}),(0,ed.jsx)(ti.Button,{size:"small",type:q?"default":"primary",icon:q?(0,ed.jsx)(tt.EyeInvisibleOutlined,{}):(0,ed.jsx)(tt.EyeOutlined,{}),onClick:()=>U(!q)}),(0,ed.jsxs)(ti.Radio.Group,{value:N,onChange:e=>F(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(ti.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(tt.DesktopOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(tt.MobileOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(tt.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{id:"page-canvas-wrapper",className:["body beautified_scrollbar always",N].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${x})`,transformOrigin:"top center"},children:(0,ed.jsx)(tb,{ref:g,device:N})})})]}),(0,ed.jsxs)("div",{className:"right",style:ee,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tM,{agentList:o,onEffect:en,style:{display:"ai"===er&&(null==f?void 0:f.ai)?void 0:"none"}}),"props"===er&&(0,ed.jsx)(t9,{datasourceEnable:c}),"cascade"===er&&(null==R?void 0:R.cascadeIds)&&(0,ed.jsx)(tU,{}),"events"===er&&(null==ei?void 0:ei.events)&&(0,ed.jsx)(nl,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(ti.Radio.Group,{value:er,onChange:e=>I(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==f?void 0:f.ai)&&(0,ed.jsx)(ti.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"ai",children:(0,ed.jsx)(tr,{type:"icon-assistant"})})}),(0,ed.jsx)(ti.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"props",children:(0,ed.jsx)(tr,{type:"icon-info"})})}),(null==R?void 0:R.cascadeIds)&&(0,ed.jsx)(ti.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tr,{type:"icon-cascade"})})}),(null==ei?void 0:ei.events)&&(0,ed.jsx)(ti.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"events",children:(0,ed.jsx)(tr,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(nf,{open:V,onOk:e=>{W(!1),J(e)},onCancel:()=>W(!1)}),(0,ed.jsx)(ti.Drawer,{open:H,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>$(!1),children:(0,ed.jsx)(tM,{agentList:o,headExtra:(0,ed.jsx)(ti.Button,{type:"link",icon:(0,ed.jsx)(tt.CloseOutlined,{}),onClick:()=>$(!1)}),onEffect:en})}),(0,ed.jsx)(ti.Modal,{open:X,title:(0,ed.jsx)(ti.Input,{placeholder:"搜索页面元素 ...",variant:"borderless",prefix:(0,ed.jsx)(tt.SearchOutlined,{style:{color:"var(--ant-color-text-label)"}}),value:K,onChange:e=>G(e.target.value)}),closeIcon:(0,ed.jsx)(ti.Typography.Link,{unselectable:"on",style:{color:"var(--ant-color-text-quaternary)"},children:"ESC"}),footer:null,onCancel:()=>Y(!1),styles:{container:{padding:0},header:{padding:"16px 12px",borderBottom:"solid 1px var(--ant-color-border)"},body:{padding:"0 12px 12px 12px",overflow:"auto",maxHeight:500}},children:(0,ed.jsx)(np,{children:0===ea.length?(0,ed.jsx)(ti.Empty,{image:ti.Empty.PRESENTED_IMAGE_SIMPLE,description:(null==K||null==(n=K.trim())?void 0:n.length)?"未找到页面元素":"请输入关键字进行搜索..."}):ea.map(e=>(0,ed.jsxs)("li",{onClick:()=>{var t;B(e),null==(t=document.getElementById(`page-item-${e.id}`))||t.scrollIntoView({behavior:"smooth"}),Y(!1)},children:[(0,ed.jsxs)(ti.Typography.Title,{level:5,style:{margin:0},children:[(0,ed.jsx)(ti.Tag,{variant:"filled",color:"#108ee9",style:{marginRight:8},children:"页面元素"}),e.name,(0,ed.jsx)("small",{children:e.id})]}),(0,ed.jsx)(ti.Typography.Paragraph,{children:e.description||"无描述内容"})]},e.id))})})]})});var nh=((h={}).STRING="STRING",h.NUMBER="NUMBER",h.BOOLEAN="BOOLEAN",h.OBJECT="OBJECT",h.ARRAY="ARRAY",h),ng=u(190),ny=function(e,t){return(ny=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])})(e,t)};function nv(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ny(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nx=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nb=new function(){this.browser=new nx,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nb.wxa=!0,nb.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?nb.worker=!0:!nb.hasGlobalWindow||"Deno"in window?(nb.node=!0,nb.svgSupported=!0):(e=navigator.userAgent,n=(t=nb).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),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="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document,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 nS="12px sans-serif",nk=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nT={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!g){var n=nT.createCanvas();g=n&&n.getContext("2d")}if(g)return y!==t&&(y=g.font=t||nS),g.measureText(e);e=e||"",t=t||nS;var r=/((?:\d+)?\.?\d*)px/.exec(t),i=r&&+r[1]||12,a=0;if(t.indexOf("mono")>=0)a=i*e.length;else for(var o=0;o<e.length;o++){var s=nk[e[o]];a+=null==s?i:s*i}return{width:a}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},nC=n$(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nw=n$(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nD=Object.prototype.toString,nN=Array.prototype,nF=nN.forEach,nP=nN.filter,nE=nN.slice,nA=nN.map,nI=(function(){}).constructor,nO=nI?nI.prototype:null,nj="__proto__",nM=2311;function nL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function nR(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nD.call(e);if("[object Array]"===n){if(!e[rr]){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=nR(e[r])}}else if(nw[n]){if(!e[rr]){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(!nC[n]&&!e[rr]&&!n6(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nj&&(t[o]=nR(e[o]));return t}function nB(e,t,n){if(!n2(t)||!n2(e))return n?nR(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==nj){var i=e[r],a=t[r];!(n2(a)&&n2(i))||nQ(a)||nQ(i)||n6(a)||n6(i)||n3(a)||n3(i)||a[rr]||i[rr]?!n&&r in e||(e[r]=nR(t[r])):nB(i,a,n)}return e}function nz(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nj&&(e[n]=t[n]);return e}function nJ(e,t,n){for(var r=nG(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nq(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 nU(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];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nJ(e,t,n)}function nV(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nW(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nF)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 nH(e,t,n){if(!e)return[];if(!t)return n9(e);if(e.map&&e.map===nA)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 n$(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 nK(e,t,n){if(!e)return[];if(!t)return n9(e);if(e.filter&&e.filter===nP)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 nG(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}nT.createCanvas;var nX=nO&&nZ(nO.bind)?nO.call.bind(nO.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(nE.call(arguments)))}};function nY(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nE.call(arguments)))}}function nQ(e){return Array.isArray?Array.isArray(e):"[object Array]"===nD.call(e)}function nZ(e){return"function"==typeof e}function n0(e){return"string"==typeof e}function n1(e){return"number"==typeof e}function n2(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function n3(e){return!!nC[nD.call(e)]}function n4(e){return!!nw[nD.call(e)]}function n6(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function n8(e){return null!=e.colorStops}function n5(e,t){return null!=e?e:t}function n7(e,t,n){return null!=e?e:null!=t?t:n}function n9(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nE.apply(e,t)}function re(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function rt(e,t){if(!e)throw Error(t)}function rn(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rr="__ec_primitive__",ri=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 nG(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ra="function"==typeof Map,ro=function(){function e(t){var n=nQ(t);this.data=ra?new Map:new ri;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&nW(t,i)}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 ra?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function rs(e){return new ro(e)}function rl(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&nz(n,t),n}function rc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function r_(e,t){return e.hasOwnProperty(t)}function ru(){}var rd=180/Math.PI,rp=function(e,t){return(rp=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])})(e,t)};function rf(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function rm(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function rh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function rg(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ry(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var rv=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function rx(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 rb(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 rS(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rk(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rT=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},rC=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 rT(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 rT(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 rT(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new rT(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rT(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rT(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),rw=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&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},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,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]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var c=r[l];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),rD=Math.log(2);function rN(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/rD);return e[n][l]}for(var c=r|1<<n,_=n+1;r&1<<_;)_++;for(var u=0,d=0,p=0;d<s;d++){var f=1<<d;!(f&i)&&(u+=(p%2?-1:1)*e[n][d]*rN(e,t-1,_,c,i|f,a),p++)}return a[o]=u,u}function rF(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=rN(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*rN(n,7,+(0===o),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 rP="___zrEVENTSAVED";function rE(e){return"CANVAS"===e.nodeName.toUpperCase()}var rA=/([&<>"'])/g,rI={"&":"&","<":"<",">":">",'"':""","'":"'"};function rO(e){return null==e?"":(e+"").replace(rA,function(e,t){return rI[t]})}var rj=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rM=[],rL=nb.browser.firefox&&39>+nb.browser.version.split(".")[0];function rR(e,t,n,r){return n=n||{},r?rB(e,t,n):rL&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):rB(e,t,n),n}function rB(e,t,n){if(nb.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(rE(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(function(e,t,n,r,i){if(t.getBoundingClientRect&&nb.domSupported&&!rE(t)){var a=t[rP]||(t[rP]={}),o=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var _=e[c].getBoundingClientRect(),u=2*c,d=_.left,p=_.top;o.push(d,p),l=l&&a&&d===a[u]&&p===a[u+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?rF(s,o):rF(o,s))}(function(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,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,r),!0}return!1}(rM,e,r,i)){n.zrX=rM[0],n.zrY=rM[1];return}}n.zrX=n.zrY=0}function rz(e){return e||window.event}function rJ(e,t,n){if(null!=(t=rz(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&rR(e,i,t,n)}else{rR(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&rj.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var rq=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rU=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],l=rR(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in rW)if(rW.hasOwnProperty(t)){var n=rW[t](this._track,e);if(n)return n}},e}();function rV(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var rW={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=rV(r)/rV(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function rH(){return[1,0,0,1,0,0]}function r$(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],l=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]=l,e}function rK(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 rG(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var rX=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}(),rY=Math.min,rQ=Math.max,rZ=new rX,r0=new rX,r1=new rX,r2=new rX,r3=new rX,r4=new rX,r6=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=rY(e.x,this.x),n=rY(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rQ(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=rQ(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){var t,n,r,i=e.width/this.width,a=e.height/this.height,o=rH();return rK(o,o,[-this.x,-this.y]),n=(t=[i,a])[0],r=t[1],o[0]=o[0]*n,o[1]=o[1]*r,o[2]=o[2]*n,o[3]=o[3]*r,o[4]=o[4]*n,o[5]=o[5]*r,rK(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this.x,i=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,c=t.y,_=t.y+t.height,u=!(i<s||l<r||o<c||_<a);if(n){var d=1/0,p=0,f=Math.abs(i-s),m=Math.abs(l-r),h=Math.abs(o-c),g=Math.abs(_-a),y=Math.min(f,m),x=Math.min(h,g);i<s||l<r?y>p&&(p=y,f<m?rX.set(r4,-f,0):rX.set(r4,m,0)):y<d&&(d=y,f<m?rX.set(r3,f,0):rX.set(r3,-m,0)),o<c||_<a?x>p&&(p=x,h<g?rX.set(r4,0,-h):rX.set(r4,0,g)):y<d&&(d=y,h<g?rX.set(r3,0,h):rX.set(r3,0,-g))}return n&&rX.copy(n,u?r3:r4),u},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}rZ.x=r1.x=n.x,rZ.y=r2.y=n.y,r0.x=r2.x=n.x+n.width,r0.y=r1.y=n.y+n.height,rZ.transform(r),r2.transform(r),r0.transform(r),r1.transform(r),t.x=rY(rZ.x,r0.x,r1.x,r2.x),t.y=rY(rZ.y,r0.y,r1.y,r2.y);var l=rQ(rZ.x,r0.x,r1.x,r2.x),c=rQ(rZ.y,r0.y,r1.y,r2.y);t.width=l-t.x,t.height=c-t.y},e}(),r8="silent";function r5(){rq(this.event)}var r7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return rf(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rw),r9=function(e,t){this.x=e,this.y=t},ie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],it=new r6(0,0,0,0),ir=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new r9(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new r7,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new rC(o),o}return rf(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nW(ie,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=ia(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new r9(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.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;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new r9(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var i,a="on"+t,o={type:t,event:n,target:(i=e).target,topTarget:i.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:r5};r&&(r[a]&&(o.cancelBubble=!!r[a].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new r9(e,t);if(ii(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new r6(e-s,t-s,o,o),c=r.length-1;c>=0;c--){var _=r[c];_===n||_.ignore||_.ignoreCoarsePointer||_.parent&&_.parent.ignoreCoarsePointer||(it.copy(_.getBoundingRect()),_.transform&&it.applyTransform(_.transform),it.intersect(l)&&a.push(_))}if(a.length){for(var u=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=u)if(ii(a,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new rU);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new r9;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(rw);function ii(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=function(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),r=r.__hostTarget||r.parent}return!i||r8}return!1}(o,n,r))&&(t.topTarget||(t.topTarget=o),s!==r8)){t.target=o;break}}}function ia(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}function io(e,t,n,r){var i=t+1;if(i===n)return 1;if(0>r(e[i++],e[t])){for(;i<n&&0>r(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function is(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=o}}function il(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var _=o+(l-o>>>1);a(e,t[n+_])>0?o=_+1:l=_}return l}function ic(e,t,n,r,i,a){var o=0,s=0,l=1;if(0>a(e,t[n+i])){for(s=i+1;l<s&&0>a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var _=o+(l-o>>>1);0>a(e,t[n+_])?l=_:o=_+1}return l}function i_(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<32){a=io(e,n,r,t),is(e,n,r,n+a,t);return}var o=function(e,t){var n,r,i=7,a=0,o=[];function s(s){var l=n[s],c=r[s],_=n[s+1],u=r[s+1];r[s]=c+u,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var d=ic(e[_],e,l,c,0,t);l+=d,0==(c-=d)||0!==(u=il(e[l+c-1],e,_,u,u-1,t))&&(c<=u?function(n,r,a,s){var l,c,_,u=0;for(u=0;u<r;u++)o[u]=e[n+u];var d=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(u=0;u<r;u++)e[f+u]=o[d+u];return}if(1===r){for(u=0;u<s;u++)e[f+u]=e[p+u];e[f+s]=o[d];return}for(var m=i;;){l=0,c=0,_=!1;do if(0>t(e[p],o[d])){if(e[f++]=e[p++],c++,l=0,0==--s){_=!0;break}}else if(e[f++]=o[d++],l++,c=0,1==--r){_=!0;break}while((l|c)<m);if(_)break;do{if(0!==(l=ic(e[p],o,d,r,0,t))){for(u=0;u<l;u++)e[f+u]=o[d+u];if(f+=l,d+=l,(r-=l)<=1){_=!0;break}}if(e[f++]=e[p++],0==--s){_=!0;break}if(0!==(c=il(o[d],e,p,s,0,t))){for(u=0;u<c;u++)e[f+u]=e[p+u];if(f+=c,p+=c,0==(s-=c)){_=!0;break}}if(e[f++]=o[d++],1==--r){_=!0;break}m--}while(l>=7||c>=7);if(_)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(u=0;u<s;u++)e[f+u]=e[p+u];e[f+s]=o[d]}else if(0===r)throw Error();else for(u=0;u<r;u++)e[f+u]=o[d+u]}(l,c,_,u):function(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var c=n+r-1,_=s-1,u=a+s-1,d=0,p=0;if(e[u--]=e[c--],0==--r){for(l=0,d=u-(s-1);l<s;l++)e[d+l]=o[l];return}if(1===s){for(u-=r,c-=r,p=u+1,d=c+1,l=r-1;l>=0;l--)e[p+l]=e[d+l];e[u]=o[_];return}for(var f=i;;){var m=0,h=0,g=!1;do if(0>t(o[_],e[c])){if(e[u--]=e[c--],m++,h=0,0==--r){g=!0;break}}else if(e[u--]=o[_--],h++,m=0,1==--s){g=!0;break}while((m|h)<f);if(g)break;do{if(0!=(m=r-ic(o[_],e,n,r,r-1,t))){for(u-=m,c-=m,r-=m,p=u+1,d=c+1,l=m-1;l>=0;l--)e[p+l]=e[d+l];if(0===r){g=!0;break}}if(e[u--]=o[_--],1==--s){g=!0;break}if(0!=(h=s-il(e[c],o,0,s,s-1,t))){for(u-=h,_-=h,s-=h,p=u+1,d=_+1,l=0;l<h;l++)e[p+l]=o[d+l];if(s<=1){g=!0;break}}if(e[u--]=e[c--],0==--r){g=!0;break}f--}while(m>=7||h>=7);if(g)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(u-=r,c-=r,p=u+1,d=c+1,l=r-1;l>=0;l--)e[p+l]=e[d+l];e[u]=o[_]}else if(0===s)throw Error();else for(l=0,d=u-(s-1);l<s;l++)e[d+l]=o[l]}(l,c,_,u))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=io(e,n,r,t))<s){var l=i;l>s&&(l=s),is(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}nW(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ir.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=ia(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||ry(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var iu=!1;function id(){iu||(iu=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ip(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var im=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ip}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=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,i_(n,ip)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(id(),e.z=0),isNaN(e.z2)&&(id(),e.z2=0),isNaN(e.zlevel)&&(id(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var _=e.getTextGuideLine();_&&this._updateAndAddDisplayable(_,t,n);var u=e.getTextContent();u&&this._updateAndAddDisplayable(u,t,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=nq(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}();F=nb.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var ih={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-ih.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?.5*ih.bounceIn(2*e):.5*ih.bounceOut(2*e-1)+.5}},ig=Math.pow,iy=Math.sqrt,iv=iy(3),ix=1/3,ib=rm(),iS=rm(),ik=rm();function iT(e){return e>-1e-8&&e<1e-8}function iC(e){return e>1e-8||e<-1e-8}function iw(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 iD(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function iN(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-i,_=s*s-3*o*l,u=s*l-9*o*c,d=l*l-3*s*c,p=0;if(iT(_)&&iT(u))if(iT(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=u*u-4*_*d;if(iT(m)){var h=u/_,f=-s/o+h,g=-h/2;f>=0&&f<=1&&(a[p++]=f),g>=0&&g<=1&&(a[p++]=g)}else if(m>0){var y=iy(m),x=_*s+1.5*o*(-u+y),b=_*s+1.5*o*(-u-y),f=(-s-((x=x<0?-ig(-x,ix):ig(x,ix))+(b=b<0?-ig(-b,ix):ig(b,ix))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var S=Math.acos((2*_*s-3*o*u)/(2*iy(_*_*_)))/3,k=iy(_),T=Math.cos(S),f=(-s-2*k*T)/(3*o),g=(-s+k*(T+iv*Math.sin(S)))/(3*o),C=(-s+k*(T-iv*Math.sin(S)))/(3*o);f>=0&&f<=1&&(a[p++]=f),g>=0&&g<=1&&(a[p++]=g),C>=0&&C<=1&&(a[p++]=C)}}return p}function iF(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,l=0;if(iT(o)){if(iC(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var _=a*a-4*o*s;if(iT(_))i[0]=-a/(2*o);else if(_>0){var u=iy(_),c=(-a+u)/(2*o),d=(-a-u)/(2*o);c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function iP(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-o)*i+o,_=(l-s)*i+s,u=(_-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=u,a[4]=u,a[5]=_,a[6]=l,a[7]=r}function iE(e,t,n,r,i,a,o,s,l,c,_){var u,d,p,f,m,h=.005,g=1/0;ib[0]=l,ib[1]=c;for(var y=0;y<1;y+=.05)iS[0]=iw(e,n,i,o,y),iS[1]=iw(t,r,a,s,y),(f=rv(ib,iS))<g&&(u=y,g=f);g=1/0;for(var x=0;x<32&&!(h<1e-4);x++)d=u-h,p=u+h,iS[0]=iw(e,n,i,o,d),iS[1]=iw(t,r,a,s,d),f=rv(iS,ib),d>=0&&f<g?(u=d,g=f):(ik[0]=iw(e,n,i,o,p),ik[1]=iw(t,r,a,s,p),m=rv(ik,ib),p<=1&&m<g?(u=p,g=m):h*=.5);return _&&(_[0]=iw(e,n,i,o,u),_[1]=iw(t,r,a,s,u)),iy(g)}function iA(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function iI(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function iO(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function ij(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 iM(e,t,n,r,i,a,o,s,l){var c,_=.005,u=1/0;ib[0]=o,ib[1]=s;for(var d=0;d<1;d+=.05){iS[0]=iA(e,n,i,d),iS[1]=iA(t,r,a,d);var p=rv(ib,iS);p<u&&(c=d,u=p)}u=1/0;for(var f=0;f<32&&!(_<1e-4);f++){var m=c-_,h=c+_;iS[0]=iA(e,n,i,m),iS[1]=iA(t,r,a,m);var p=rv(iS,ib);if(m>=0&&p<u)c=m,u=p;else{ik[0]=iA(e,n,i,h),ik[1]=iA(t,r,a,h);var g=rv(ik,ib);h<=1&&g<u?(c=h,u=g):_*=.5}}return l&&(l[0]=iA(e,n,i,c),l[1]=iA(t,r,a,c)),iy(u)}var iL=/cubic-bezier\(([0-9,\.e ]+)\)/;function iR(e){var t=e&&iL.exec(e);if(t){var n=t[1].split(","),r=+rn(n[0]),i=+rn(n[1]),a=+rn(n[2]),o=+rn(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:iN(0,r,a,1,e,s)&&iw(0,i,o,1,s[0])}}}var iB=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||ru,this.ondestroy=e.ondestroy||ru,this.onrestart=e.onrestart||ru,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!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),1===i)if(!this.loop)return!0;else this._startTime=e-r%n,this._pausedTime=0,this.onrestart();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=nZ(e)?e:ih[e]||iR(e)},e}(),iz=function(e){this.value=e},iJ=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new iz(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}(),iq=function(){function e(e){this._list=new iJ,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(null==r[e]){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 iz(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(null!=t)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}(),iU={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 iV(e){return(e=Math.round(e))<0?0:e>255?255:e}function iW(e){return e<0?0:e>1?1:e}function iH(e){return e.length&&"%"===e.charAt(e.length-1)?iV(parseFloat(e)/100*255):iV(parseInt(e,10))}function i$(e){return e.length&&"%"===e.charAt(e.length-1)?iW(parseFloat(e)/100):iW(parseFloat(e))}function iK(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function iG(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function iX(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var iY=new iq(20),iQ=null;function iZ(e,t){iQ&&iX(iQ,t),iQ=iY.put(e,iQ||t.slice())}function i0(e,t){if(e){t=t||[];var n=iY.get(e);if(n)return iX(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in iU)return iX(t,iU[r]),iZ(e,t),t;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var a=parseInt(r.slice(1,4),16);return a>=0&&a<=4095?(iG(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(r.slice(4),16)/15:1),iZ(e,t),t):void iG(t,0,0,0,1)}if(7===i||9===i){var a=parseInt(r.slice(1,7),16);return a>=0&&a<=0xffffff?(iG(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(r.slice(7),16)/255:1),iZ(e,t),t):void iG(t,0,0,0,1)}return}var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),c=r.substr(o+1,s-(o+1)).split(","),_=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?iG(t,+c[0],+c[1],+c[2],1):iG(t,0,0,0,1);_=i$(c.pop());case"rgb":if(c.length>=3)return iG(t,iH(c[0]),iH(c[1]),iH(c[2]),3===c.length?_:i$(c[3])),iZ(e,t),t;return void iG(t,0,0,0,1);case"hsla":if(4!==c.length)return void iG(t,0,0,0,1);return c[3]=i$(c[3]),i1(c,t),iZ(e,t),t;case"hsl":if(3!==c.length)return void iG(t,0,0,0,1);return i1(c,t),iZ(e,t),t;default:return}}iG(t,0,0,0,1)}}function i1(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=i$(e[1]),i=i$(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return iG(t=t||[],iV(255*iK(o,a,n+1/3)),iV(255*iK(o,a,n)),iV(255*iK(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function i2(e,t){var n=i0(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 i3(n,4===n.length?"rgba":"rgb")}}function i3(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function i4(e,t){var n=i0(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var i6=new iq(100);function i8(e){if(n0(e)){var t=i6.get(e);return t||(t=i2(e,-.1),i6.put(e,t)),t}if(n8(e)){var n=nz({},e);return n.colorStops=nH(e.colorStops,function(e){return{offset:e.offset,color:i2(e.color,-.1)}}),n}return e}nb.hasGlobalWindow&&nZ(window.btoa);var i5=Array.prototype.slice;function i7(e,t,n,r){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(n[o]-i)*r+i);return e}function i9(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ae(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 at(e){if(nV(e)){var t=e.length;if(nV(e[0])){for(var n=[],r=0;r<t;r++)n.push(i5.call(e[r]));return n}return i5.call(e)}return e}function an(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ar(e){return 4===e||5===e}function ai(e){return 1===e||2===e}var aa=[0,0,0,0],ao=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=6,s=t;if(nV(t)){var l=nV(t&&t[0])?2:1;o=l,(1!==l||n1(t[0]))&&(2!==l||n1(t[0][0]))||(a=!0)}else if(n1(t)&&t==t)o=0;else if(n0(t))if(isNaN(+t)){var c=i0(t);c&&(s=c,o=3)}else o=0;else if(n8(t)){var _=nz({},s);(_.colorStops=nH(t.colorStops,function(e){return{offset:e.offset,color:i0(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=_}0===i?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var u={time:e,value:s,rawValue:t,percent:0};return n&&(u.easing=n,u.easingFunc=nZ(n)?n:ih[n]||iR(n)),r.push(u),u},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=ai(r),l=ar(r),c=0;c<i;c++){var _=n[c],u=_.value,d=a.value;_.percent=_.time/e,!o&&(s&&c!==i-1?function(e,t,n){if(e.push&&t.push){var r=e.length,i=t.length;if(r!==i)if(r>i)e.length=i;else for(var a=r;a<i;a++)e.push(1===n?t[a]:i5.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(u,d,r):l&&function(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()})}(u.colorStops,d.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,c=0;c<i;c++)0===r?n[c].additiveValue=n[c].value-p:3===r?n[c].additiveValue=i9([],n[c].value,p,-1):ai(r)&&(n[c].additiveValue=1===r?i9([],n[c].value,p,-1):ae([],n[c].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,_=this.propName,u=3===s,d=this._lastFr,p=Math.min;if(1===c)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(d+1,c-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,c-2)}else{for(n=d;n<c&&!(l[n].percent>t);n++);n=p(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,m=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(m=i.easingFunc(m));var h=a?this._additiveValue:u?aa:e[_];if((ai(s)||u)&&!h&&(h=this._additiveValue=[]),this.discrete)e[_]=m<1?r.rawValue:i.rawValue;else if(ai(s))1===s?i7(h,r[o],i[o],m):function(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,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*r+s)}}(h,r[o],i[o],m);else if(ar(s)){var g,y,x,b,S,k=r[o],T=i[o],C=4===s;(e[_]={type:C?"linear":"radial",x:(g=k.x,(T.x-g)*m+g),y:(y=k.y,(T.y-y)*m+y),colorStops:nH(k.colorStops,function(e,t){var n,r=T.colorStops[t];return{offset:(n=e.offset,(r.offset-n)*m+n),color:an(i7([],e.color,r.color,m))}}),global:T.global},C)?(e[_].x2=(x=k.x2,(T.x2-x)*m+x),e[_].y2=(b=k.y2,(T.y2-b)*m+b)):e[_].r=(S=k.r,(T.r-S)*m+S)}else if(u)i7(h,r[o],i[o],m),a||(e[_]=an(h));else{var w,D=(w=r[o],(i[o]-w)*m+w);a?this._additiveValue=D:e[_]=D}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(i0(e[n],aa),i9(aa,aa,r,1),e[n]=an(aa)):1===t?i9(e[n],e[n],r,1):2===t&&ae(e[n],e[n],r,1)},e}(),as=function(){function e(e,t,n,r){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r)?nL("Can' use additive animation on looped animation."):(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,nG(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 ao(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var _=c.keyframes,u=_[_.length-1];l=u&&u.value,3===c.valType&&l&&(l=an(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,at(l),r),this._trackKeys.push(o)}s.addKeyframe(e,at(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),l=o.keyframes,c=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var _=l[c-1];_&&(t._target[o.propName]=_.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var u=new iB({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=u,this.animation&&this.animation.addClip(u),e&&u.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=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(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 nH(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):1===this._started&&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=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]=at(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||nG(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 al(){return new Date().getTime()}var ac=function(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,n.stage=(t=t||{}).stage||{},n}return rf(t,e),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=al()-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}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,F(function t(){e._running&&(F(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=al(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=al(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=al()-this._pauseStart,this._paused=!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 null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new as(e,t.loop);return this.addAnimator(n),n},t}(rw),a_=nb.domSupported,au=(b={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=nH(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return b.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:S}),ad=["mousemove","mouseup"],ap=["pointermove","pointerup"],af=!1;function am(e){var t=e.pointerType;return"pen"===t||"touch"===t}function ah(e){e&&(e.zrByTouch=!0)}function ag(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ay=function(e,t){this.stopPropagation=ru,this.stopImmediatePropagation=ru,this.preventDefault=ru,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},av={mousedown:function(e){e=rJ(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=rJ(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=rJ(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){ag(this,(e=rJ(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){af=!0,e=rJ(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){af||(e=rJ(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){ah(e=rJ(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),av.mousemove.call(this,e),av.mousedown.call(this,e)},touchmove:function(e){ah(e=rJ(this.dom,e)),this.handler.processGesture(e,"change"),av.mousemove.call(this,e)},touchend:function(e){ah(e=rJ(this.dom,e)),this.handler.processGesture(e,"end"),av.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&av.click.call(this,e)},pointerdown:function(e){av.mousedown.call(this,e)},pointermove:function(e){am(e)||av.mousemove.call(this,e)},pointerup:function(e){av.mouseup.call(this,e)},pointerout:function(e){am(e)||av.mouseout.call(this,e)}};nW(["click","dblclick","contextmenu"],function(e){av[e]=function(t){t=rJ(this.dom,t),this.trigger(e,t)}});var ax={pointermove:function(e){am(e)||ax.mousemove.call(this,e)},pointerup:function(e){ax.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 ab(e,t,n,r){var i;e.mounted[t]=n,e.listenerOpts[t]=r,i=e.domTarget,i.addEventListener(t,n,r)}function aS(e){var t,n,r,i=e.mounted;for(var a in i)i.hasOwnProperty(a)&&(t=e.domTarget,n=i[a],r=e.listenerOpts[a],t.removeEventListener(a,n,r));e.mounted={}}var ak=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aT=function(e){function t(t,n){var r,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new ak(t,av),a_&&(a._globalHandlerScope=new ak(document,ax)),i=(r=a._localHandlerScope).domHandlers,nb.pointerEventsSupported?nW(au.pointer,function(e){ab(r,e,function(t){i[e].call(a,t)})}):(nb.touchEventsSupported&&nW(au.touch,function(e){ab(r,e,function(t){i[e].call(a,t),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),nW(au.mouse,function(e){ab(r,e,function(t){t=rz(t),r.touching||i[e].call(a,t)})})),a}return rf(t,e),t.prototype.dispose=function(){aS(this._localHandlerScope),a_&&aS(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,a_&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nb.pointerEventsSupported?nW(ap,n):nb.touchEventsSupported||nW(ad,n);function n(n){ab(t,n,function(r){if(!ag(e,(r=rz(r)).target)){var i;i=r,r=rJ(e.dom,new ay(e,i),!0),t.domHandlers[n].call(e,r)}},{capture:!0})}}(this,t):aS(t)}},t}(rw),aC=1;nb.hasGlobalWindow&&(aC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aw=aC,aD="#333",aN="#ccc",aF=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aP(e){return e>5e-5||e<-5e-5}var aE=[],aA=[],aI=rH(),aO=Math.abs,aj=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aP(this.rotation)||aP(this.x)||aP(this.y)||aP(this.scaleX-1)||aP(this.scaleY-1)||aP(this.skewX)||aP(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(aF(r),this.invTransform=null);return}r=r||rH(),n?this.getLocalTransform(r):aF(r),t&&(n?r$(r,t,r):((e=r)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aE);var n=aE[0]<0?-1:1,r=aE[1]<0?-1:1,i=((aE[0]-n)*t+n)/aE[0]||0,a=((aE[1]-r)*t+r)/aE[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||rH(),rG(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.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}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||rH(),r$(aA,e.invTransform,t),t=aA);var n=this.originX,r=this.originY;(n||r)&&(aI[4]=n,aI[5]=r,r$(aA,t,aI),aA[4]-=n,aA[5]-=r,t=aA),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=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[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&rb(n,n,r),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&rb(n,n,r),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&aO(e[0]-1)>1e-10&&aO(e[3]-1)>1e-10?Math.sqrt(aO(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,r=0;r<aM.length;r++){var i=aM[r];t[i]=n[i]}},t.getLocalTransform=function(e,t){t=t||[];var n,r,i,a,o,s,l,c,_,u,d,p=e.originX||0,f=e.originY||0,m=e.scaleX,h=e.scaleY,g=e.anchorX,y=e.anchorY,x=e.rotation||0,b=e.x,S=e.y,k=e.skewX?Math.tan(e.skewX):0,T=e.skewY?Math.tan(-e.skewY):0;if(p||f||g||y){var C=p+g,w=f+y;t[4]=-C*m-k*w*h,t[5]=-w*h-T*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=h,t[1]=T*m,t[2]=k*h,x&&(n=t,void 0===i&&(i=[0,0]),a=(r=t)[0],o=r[2],s=r[4],l=r[1],c=r[3],_=r[5],u=Math.sin(x),d=Math.cos(x),n[0]=a*d+l*u,n[1]=-a*u+l*d,n[2]=o*d+c*u,n[3]=-o*u+d*c,n[4]=d*(s-i[0])+u*(_-i[1])+i[0],n[5]=d*(_-i[1])-u*(s-i[0])+i[1]),t[4]+=p+b,t[5]+=f+S,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aM=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aL={};function aR(e,t){var n=aL[t=t||nS];n||(n=aL[t]=new iq(500));var r=n.get(e);return null==r&&(r=nT.measureText(e,t).width,n.put(e,r)),r}function aB(e,t,n,r){var i=aR(e,t),a=aq(t);return new r6(az(0,i,n),aJ(0,a,r),i,a)}function az(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aJ(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function aq(e){return aR("国",e)}function aU(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aV(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,c=n.y,_="left",u="top";if(r instanceof Array)l+=aU(r[0],n.width),c+=aU(r[1],n.height),_=null,u=null;else switch(r){case"left":l-=i,c+=s,_="right",u="middle";break;case"right":l+=i+o,c+=s,u="middle";break;case"top":l+=o/2,c-=i,_="center",u="bottom";break;case"bottom":l+=o/2,c+=a+i,_="center";break;case"inside":l+=o/2,c+=s,_="center",u="middle";break;case"insideLeft":l+=i,c+=s,u="middle";break;case"insideRight":l+=o-i,c+=s,_="right",u="middle";break;case"insideTop":l+=o/2,c+=i,_="center";break;case"insideBottom":l+=o/2,c+=a-i,_="center",u="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,_="right";break;case"insideBottomLeft":l+=i,c+=a-i,u="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,_="right",u="bottom"}return(e=e||{}).x=l,e.y=c,e.align=_,e.verticalAlign=u,e}var aW="__zr_normal__",aH=aM.concat(["ignore"]),a$=n$(aM,function(e,t){return e[t]=!0,e},{ignore:!1}),aK={},aG=new r6(0,0,0,0),aX=function(){function e(e){this.id=nM++,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}var r=this.transform;r||(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||(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 l=!1;if(i.copyTransform(t),null!=n.position){n.layoutRect?aG.copy(n.layoutRect):aG.copy(this.getBoundingRect()),r||aG.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aK,n,aG):aV(aK,n,aG),i.x=aK.x,i.y=aK.y,a=aK.align,o=aK.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var _=void 0,u=void 0;"center"===c?(_=.5*aG.width,u=.5*aG.height):(_=aU(c[0],aG.width),u=aU(c[1],aG.height)),l=!0,i.originX=-i.x+_+(r?0:aG.x),i.originY=-i.y+u+(r?0:aG.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,h=void 0,g=void 0;p&&this.canBeInsideText()?(m=n.insideFill,h=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==h||"auto"===h)&&(h=this.getInsideTextStroke(m),g=!0)):(m=n.outsideFill,h=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==h||"auto"===h)&&(h=this.getOutsideStroke(m),g=!0)),((m=m||"#000")!==f.fill||h!==f.stroke||g!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=h,f.autoStroke=g,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),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()?aN:aD},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&i0(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+255*!i*(1-r);return n[3]=1,i3(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},nz(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("string"==typeof e)this.attrKV(e,t);else if(n2(e))for(var n=nG(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===aW)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aH)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||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(aW,!1,e)},e.prototype.useState=function(e,t,n,r){var i,a=e===aW;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nq(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void nL("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var l=!!(i&&i.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,i,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,_=this._textGuide;return c&&c.useState(e,t,n,l),_&&_.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),i}}},e.prototype.useStates=function(e,t,n){if(e.length){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){for(var s=0;s<a;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&r.push(c)}var _=r[a-1],u=!!(_&&_.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,u),m&&m.useStates(e,t,u),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=nq(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=nq(r,e),a=nq(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];nz(n,i),i.textConfig&&nz(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=nz({},r?this.textConfig:n.textConfig),nz(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<aH.length;c++){var _=aH[c],u=i&&a$[_];t&&null!=t[_]?u?(l=!0,s[_]=t[_]):this[_]=t[_]:o&&null!=n[_]&&(u?(l=!0,s[_]=n[_]):this[_]=n[_])}if(!i)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(t||n)[p]:t||n)}l&&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 aj,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),nz(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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 as(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=nq(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?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){aY(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){aY(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=aY(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;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),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}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function aY(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){for(var c=nG(i),_=a.duration,u=a.delay,d=a.additive,p=a.setToFinal,f=!n2(o),m=t.animators,h=[],g=0;g<c.length;g++){var y=c[g],x=i[y];if(null!=x&&null!=r[y]&&(f||o[y]))if(!n2(x)||nV(x)||n8(x))h.push(y);else{if(n){l||(r[y]=x,t.updateDuringAnimation(n));continue}e(t,y,r[y],x,a,o&&o[y],s,l)}else l||(r[y]=x,t.updateDuringAnimation(n),h.push(y))}var b=h.length;if(!d&&b)for(var S=0;S<m.length;S++){var k=m[S];if(k.targetName===n&&k.stopTracks(h)){var T=nq(m,k);m.splice(T,1)}}if(a.force||(b=(h=nK(h,function(e){var t,n;return!((t=i[e])===(n=r[e])||nV(t)&&nV(n)&&function(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}(t,n))})).length),b>0||a.force&&!s.length){var C=void 0,w=void 0,D=void 0;if(l){w={},p&&(C={});for(var S=0;S<b;S++){var y=h[S];w[y]=r[y],p?C[y]=i[y]:r[y]=i[y]}}else if(p){D={};for(var S=0;S<b;S++){var y=h[S];D[y]=at(r[y]),function(e,t,n){if(nV(t[n]))if(nV(e[n])||(e[n]=[]),n4(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),aQ(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(nV(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?aQ(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else aQ(a,i,o);a.length=i.length}else e[n]=t[n]}(r,i,y)}}var k=new as(r,!1,!1,d?nK(m,function(e){return e.targetName===n}):null);k.targetName=n,a.scope&&(k.scope=a.scope),p&&C&&k.whenWithKeys(0,C,h),D&&k.whenWithKeys(0,D,h),k.whenWithKeys(null==_?500:_,l?w:i,h).delay(u||0),t.addAnimator(k,n),s.push(k)}}(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,c=n.aborted,_=function(){s=!0,--o<=0&&(s?l&&l():c&&c())},u=function(){--o<=0&&(s?l&&l():c&&c())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var d=0;d<a.length;d++){var p=a[d];_&&p.done(_),u&&p.aborted(u),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function aQ(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}nU(aX,rw),nU(aX,aj);var aZ=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return rf(t,e),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=nq(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=nq(n,e);return r<0||(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 r6(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(),l=o.getLocalTransform(r);l?(r6.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(aX);aZ.prototype.type="group";var a0={},a1={},a2=function(){function e(e,t,n){var r,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new im,o=n.renderer||"canvas";a0[o]||(o=nG(a0)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new a0[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var c=nb.node||nb.worker||l?null:new aT(s.getViewportRoot(),s.root),_=n.useCoarsePointer;(null==_||"auto"===_?nb.touchEventsSupported:!!_)&&(r=n5(n.pointerSize,44)),this.handler=new ir(a,s,c,s.root,r),this.animation=new ac({stage:{update:l?null:function(){return i._flush(!0)}}}),l||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=function(e){if(!e)return!1;if("string"==typeof e)return .4>i4(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=i4(t[i].color,1);return(n/=r)<.4}return!1}(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=al();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=al();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=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 aZ&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a1[e]}},e}();function a3(e,t){var n=new a2(nM++,e,t);return a1[n.id]=n,n}function a4(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n0(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function a6(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function a8(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,r,i,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return r=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,i=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:i-1-a)-r)}var a5=/^(?:(\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 a7(e){if(e instanceof Date)return e;if(n0(e)){var t=a5.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(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))}return null==e?new Date(NaN):new Date(Math.round(e))}function a9(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function oe(e,t){var n=a9(e),r=Math.pow(10,n),i=e/r;return e=(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,n>=-20?+e.toFixed(n<0?-n:0):e}function ot(e){var t=parseFloat(e);return t==e&&(0!==t||!n0(e)||0>=e.indexOf("x"))?t:NaN}function on(){return Math.round(9*Math.random())}function or(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var oi="series\0";function oa(e){return e instanceof Array?e:null==e?[]:[e]}function oo(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 os=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ol(e){return!n2(e)||nQ(e)||e instanceof Date?e:e.value}function oc(e,t,n){var r=ou(t[e],null),i=ou(n[e],null);return null!=r&&null!=i&&r===i}function o_(e){return ou(e,"")}function ou(e,t){return null==e?t:n0(e)?e:n1(e)||"[object String]"===nD.call(e)?e+"":t}function od(e){var t=e.name;return!!(t&&t.indexOf(oi))}function op(e){return e&&null!=e.id&&0===o_(e.id).indexOf("\0_ec_\0")}function of(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?nQ(t.dataIndex)?nH(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?nQ(t.name)?nH(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function om(){var e="__ec_inner_"+oh++;return function(t){return t[e]||(t[e]={})}}var oh=on();function og(e,t,n){var r=oy(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=ox(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}function oy(e,t){if(n0(e)){var n,r={};r[e+"Index"]=0,n=r}else n=e;var i=rs(),a={},o=!1;return nW(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nq(t.includeMainTypes,s)||(o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ov={useDefault:!0,enableAll:!1,enableNone:!1};function ox(e,t,n,r){r=r||ov;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(rt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===i&&(rt(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o})),s}var ob="___EC__COMPONENT__CONTAINER___",oS="___EC__EXTENDED_CLASS___";function ok(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function oT(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;if(nZ(t=r)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return nv(t,e),t}(r);else{var i=n=function(){(e.$constructor||r).apply(this,arguments)},a=i.prototype;function o(){}for(var s in o.prototype=this.prototype,i.prototype=new o,a)a.hasOwnProperty(s)&&(i.prototype[s]=a[s]);i.prototype.constructor=i,i.superClass=this}return nz(n.prototype,e),n[oS]=!0,n.extend=this.extend,n.superCall=oD,n.superApply=oN,n.superClass=r,n}}function oC(e,t){e.extend=t.extend}var ow=Math.round(10*Math.random());function oD(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function oN(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oF(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var r,i,a=ok(n);a.sub?a.sub!==ob&&(((i=t[(r=a).main])&&i[ob]||((i=t[r.main]={})[ob]=!0),i)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ob]&&(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=ok(e),r=[],i=t[n.main];return i&&i[ob]?nW(i,function(e,t){t!==ob&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ok(e).main]},e.getAllClassMainTypes=function(){var e=[];return nW(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ok(e).main];return n&&n[ob]}}function oP(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&nq(r,s)>=0||i&&0>nq(i,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oE=oP([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oA=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oE(this,e,t)},e}(),oI=om(),oO=function(e,t,n,r){if(r){var i=oI(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=oI(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},oj="__zr_style_"+Math.round(10*Math.random()),oM={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oM[oj]=!0;var oR=["z","z2","invisible"],oB=["invisible"],oz=function(e){var t;function n(t){return e.call(this,t)||this}return rf(n,e),n.prototype._init=function(t){for(var n=nG(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,r){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,oJ.copy(i.getBoundingRect()),i.transform&&oJ.applyTransform(i.transform),oq.width=a,oq.height=o,!oJ.intersect(oq))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var c=this.parent;c;){if(c.ignore)return!1;c=c.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.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||(this._paintRect=new r6(0,0,0,0)),t?r6.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+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+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new r6(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:nz(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return rl(oM,e)},n.prototype.useStyle=function(e){e[oj]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oj]},n.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,oR)},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var _=nG(c),u=0;u<_.length;u++){var d=_[u];d in s&&(s[d]=s[d],this.style[d]=c[d])}for(var p=nG(s),u=0;u<p.length;u++){var d=p[u];this.style[d]=this.style[d]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oB:oR,u=0;u<f.length;u++){var d=f[u];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(e,t){return nz(e,t),e},n.prototype.getAnimationStyleProps=function(){return oL},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(aX),oJ=new r6(0,0,0,0),oq=new r6(0,0,0,0),oU=Math.min,oV=Math.max,oW=Math.sin,oH=Math.cos,o$=2*Math.PI,oK=rm(),oG=rm(),oX=rm();function oY(e,t,n,r,i,a){i[0]=oU(e,n),i[1]=oU(t,r),a[0]=oV(e,n),a[1]=oV(t,r)}var oQ=[],oZ=[],o0={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o1=[],o2=[],o3=[],o4=[],o6=[],o8=[],o5=Math.min,o7=Math.max,o9=Math.cos,se=Math.sin,st=Math.abs,sn=Math.PI,sr=2*sn,si="undefined"!=typeof Float32Array,sa=[];function so(e){return Math.round(e/sn*1e8)/1e8%2*sn}var ss=function(){var e;function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=st(n/aw/e)||0,this._uy=st(n/aw/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(o0.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=st(e-this._xi),r=st(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(o0.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},t.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(o0.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},t.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(o0.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),sa[0]=r,sa[1]=i,(o=so(sa[0]))<0&&(o+=sr),s=o-sa[0],l=sa[1]+s,!a&&l-o>=sr?l=o+sr:a&&o-l>=sr?l=o-sr:!a&&o>l?l=o+(sr-so(o-l)):a&&o<l&&(l=o-(sr-so(l-o))),sa[0]=o,sa[1]=l,r=sa[0];var o,s,l,c=(i=sa[1])-r;return this.addData(o0.A,e,t,n,n,r,c,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=o9(i)*n+e,this._yi=se(i)*n+t,this},t.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},t.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(o0.R,e,t,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(o0.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&si&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();si&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},t.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var _=0;_<arguments.length;_++)c[this._len++]=arguments[_]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.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}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,si&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o3[0]=o3[1]=o6[0]=o6[1]=Number.MAX_VALUE,o4[0]=o4[1]=o8[0]=o8[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],i=n,a=r),o){case o0.M:n=i=t[e++],r=a=t[e++],o6[0]=i,o6[1]=a,o8[0]=i,o8[1]=a;break;case o0.L:oY(n,r,t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.C:!function(e,t,n,r,i,a,o,s,l,c){var _=iF(e,n,i,o,oQ);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var u=0;u<_;u++){var d=iw(e,n,i,o,oQ[u]);l[0]=oU(d,l[0]),c[0]=oV(d,c[0])}_=iF(t,r,a,s,oZ);for(var u=0;u<_;u++){var p=iw(t,r,a,s,oZ[u]);l[1]=oU(p,l[1]),c[1]=oV(p,c[1])}l[0]=oU(e,l[0]),c[0]=oV(e,c[0]),l[0]=oU(o,l[0]),c[0]=oV(o,c[0]),l[1]=oU(t,l[1]),c[1]=oV(t,c[1]),l[1]=oU(s,l[1]),c[1]=oV(s,c[1])}(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.Q:!function(e,t,n,r,i,a,o,s){var l=oV(oU(iO(e,n,i),1),0),c=oV(oU(iO(t,r,a),1),0),_=iA(e,n,i,l),u=iA(t,r,a,c);o[0]=oU(e,i,_),o[1]=oU(t,a,u),s[0]=oV(e,i,_),s[1]=oV(t,a,u)}(n,r,t[e++],t[e++],t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.A:var l=t[e++],c=t[e++],_=t[e++],u=t[e++],d=t[e++],p=t[e++]+d;e+=1;var f=!t[e++];s&&(i=o9(d)*_+l,a=se(d)*u+c),function(e,t,n,r,i,a,o,s,l){var c=Math.abs(i-a);if(c%o$<1e-4&&c>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(oK[0]=oH(i)*n+e,oK[1]=oW(i)*r+t,oG[0]=oH(a)*n+e,oG[1]=oW(a)*r+t,rS(s,oK,oG),rk(l,oK,oG),(i%=o$)<0&&(i+=o$),(a%=o$)<0&&(a+=o$),i>a&&!o?a+=o$:i<a&&o&&(i+=o$),o){var _=a;a=i,i=_}for(var u=0;u<a;u+=Math.PI/2)u>i&&(oX[0]=oH(u)*n+e,oX[1]=oW(u)*r+t,rS(s,oX,s),rk(l,oX,l))}(l,c,_,u,d,p,f,o6,o8),n=o9(p)*_+l,r=se(p)*u+c;break;case o0.R:oY(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],o6,o8);break;case o0.Z:n=i,r=a}rS(o3,o3,o6),rk(o4,o4,o8)}return 0===e&&(o3[0]=o3[1]=o4[0]=o4[1]=0),new r6(o3[0],o3[1],o4[0]-o3[0],o4[1]-o3[1])},t.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||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,_=0,u=0;u<t;){var d=e[u++],p=1===u;p&&(i=e[u],a=e[u+1],o=i,s=a);var f=-1;switch(d){case o0.M:i=o=e[u++],a=s=e[u++];break;case o0.L:var m=e[u++],h=e[u++],g=m-i,y=h-a;(st(g)>n||st(y)>r||u===t-1)&&(f=Math.sqrt(g*g+y*y),i=m,a=h);break;case o0.C:var x=e[u++],b=e[u++],m=e[u++],h=e[u++],S=e[u++],k=e[u++];f=function(e,t,n,r,i,a,o,s,l){for(var c=e,_=t,u=0,d=1;d<=10;d++){var p=.1*d,f=iw(e,n,i,o,p),m=iw(t,r,a,s,p),h=f-c,g=m-_;u+=Math.sqrt(h*h+g*g),c=f,_=m}return u}(i,a,x,b,m,h,S,k,0),i=S,a=k;break;case o0.Q:var x=e[u++],b=e[u++],m=e[u++],h=e[u++];f=function(e,t,n,r,i,a,o){for(var s=e,l=t,c=0,_=1;_<=10;_++){var u=.1*_,d=iA(e,n,i,u),p=iA(t,r,a,u),f=d-s,m=p-l;c+=Math.sqrt(f*f+m*m),s=d,l=p}return c}(i,a,x,b,m,h,0),i=m,a=h;break;case o0.A:var T=e[u++],C=e[u++],w=e[u++],D=e[u++],N=e[u++],F=e[u++],P=F+N;u+=1,p&&(o=o9(N)*w+T,s=se(N)*D+C),f=o7(w,D)*o5(sr,Math.abs(F)),i=o9(P)*w+T,a=se(P)*D+C;break;case o0.R:o=i=e[u++],s=a=e[u++],f=2*e[u++]+2*e[u++];break;case o0.Z:var g=o-i,y=s-a;f=Math.sqrt(g*g+y*y),i=o,a=s}f>=0&&(l[_++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,c,_,u,d=this.data,p=this._ux,f=this._uy,m=this._len,h=t<1,g=0,y=0,x=0;if(!h||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))s:for(var b=0;b<m;){var S=d[b++],k=1===b;switch(k&&(i=d[b],a=d[b+1],n=i,r=a),S!==o0.L&&x>0&&(e.lineTo(_,u),x=0),S){case o0.M:n=i=d[b++],r=a=d[b++],e.moveTo(i,a);break;case o0.L:o=d[b++],s=d[b++];var T=st(o-i),C=st(s-a);if(T>p||C>f){if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;e.lineTo(i*(1-D)+o*D,a*(1-D)+s*D);break s}g+=w}e.lineTo(o,s),i=o,a=s,x=0}else{var N=T*T+C*C;N>x&&(_=o,u=s,x=N)}break;case o0.C:var F=d[b++],P=d[b++],E=d[b++],A=d[b++],I=d[b++],O=d[b++];if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;iP(i,F,E,I,D,o1),iP(a,P,A,O,D,o2),e.bezierCurveTo(o1[1],o2[1],o1[2],o2[2],o1[3],o2[3]);break s}g+=w}e.bezierCurveTo(F,P,E,A,I,O),i=I,a=O;break;case o0.Q:var F=d[b++],P=d[b++],E=d[b++],A=d[b++];if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;ij(i,F,E,D,o1),ij(a,P,A,D,o2),e.quadraticCurveTo(o1[1],o2[1],o1[2],o2[2]);break s}g+=w}e.quadraticCurveTo(F,P,E,A),i=E,a=A;break;case o0.A:var j=d[b++],M=d[b++],L=d[b++],R=d[b++],B=d[b++],z=d[b++],J=d[b++],q=!d[b++],U=L>R?L:R,V=st(L-R)>.001,W=B+z,H=!1;if(h){var w=l[y++];g+w>c&&(W=B+z*(c-g)/w,H=!0),g+=w}if(V&&e.ellipse?e.ellipse(j,M,L,R,J,B,W,q):e.arc(j,M,U,B,W,q),H)break s;k&&(n=o9(B)*L+j,r=se(B)*R+M),i=o9(W)*L+j,a=se(W)*R+M;break;case o0.R:n=i=d[b],r=a=d[b+1],o=d[b++],s=d[b++];var $=d[b++],K=d[b++];if(h){var w=l[y++];if(g+w>c){var G=c-g;e.moveTo(o,s),e.lineTo(o+o5(G,$),s),(G-=$)>0&&e.lineTo(o+$,s+o5(G,K)),(G-=K)>0&&e.lineTo(o+o7($-G,0),s+K),(G-=$)>0&&e.lineTo(o,s+o7(K-G,0));break s}g+=w}e.rect(o,s,$,K);break;case o0.Z:if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;e.lineTo(i*(1-D)+n*D,a*(1-D)+r*D);break s}g+=w}e.closePath(),i=n,a=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=o0,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function sl(e,t,n,r,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>r+i||o<t-i&&o<r-i||a>e+i&&a>n+i||a<e-i&&a<n-i)return!1;if(e===n)return Math.abs(a-e)<=i/2;s=(t-r)/(e-n);var c=s*a-o+(l=(e*r-n*t)/(e-n));return c*c/(s*s+1)<=i/2*i/2}var sc=2*Math.PI;function s_(e){return(e%=sc)<0&&(e+=sc),e}var su=2*Math.PI;function sd(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;(1===o||0===o)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var sp=ss.CMD,sf=2*Math.PI,sm=[-1,-1,-1],sh=[-1,-1];function sg(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),c=0,_=0,u=0,d=0,p=0,f=0;f<l;){var m,h,g,y,x,b,S,k,T,C,w,D,N,F,P=s[f++],E=1===f;switch(P===sp.M&&f>1&&!n&&(c+=sd(_,u,d,p,r,i)),E&&(_=s[f],u=s[f+1],d=_,p=u),P){case sp.M:d=s[f++],p=s[f++],_=d,u=p;break;case sp.L:if(n){if(sl(_,u,s[f],s[f+1],t,r,i))return!0}else c+=sd(_,u,s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.C:if(n){if(m=_,h=u,g=s[f++],y=s[f++],x=s[f++],b=s[f++],S=s[f],k=s[f+1],0!==t&&(!(i>h+t)||!(i>y+t)||!(i>b+t)||!(i>k+t))&&(!(i<h-t)||!(i<y-t)||!(i<b-t)||!(i<k-t))&&(!(r>m+t)||!(r>g+t)||!(r>x+t)||!(r>S+t))&&(!(r<m-t)||!(r<g-t)||!(r<x-t)||!(r<S-t))&&iE(m,h,g,y,x,b,S,k,r,i,null)<=t/2)return!0}else c+=function(e,t,n,r,i,a,o,s,l,c){if(c>t&&c>r&&c>a&&c>s||c<t&&c<r&&c<a&&c<s)return 0;var _=iN(t,r,a,s,c,sm);if(0===_)return 0;for(var u=0,d=-1,p=void 0,f=void 0,m=0;m<_;m++){var h=sm[m],g=0===h||1===h?.5:1;iw(e,n,i,o,h)<l||(d<0&&(d=iF(t,r,a,s,sh),sh[1]<sh[0]&&d>1&&function(){var e=sh[0];sh[0]=sh[1],sh[1]=e}(),p=iw(t,r,a,s,sh[0]),d>1&&(f=iw(t,r,a,s,sh[1]))),2===d?h<sh[0]?u+=p<t?g:-g:h<sh[1]?u+=f<p?g:-g:u+=s<f?g:-g:h<sh[0]?u+=p<t?g:-g:u+=s<p?g:-g)}return u}(_,u,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.Q:if(n){if(T=_,C=u,w=s[f++],D=s[f++],N=s[f],F=s[f+1],0!==t&&(!(i>C+t)||!(i>D+t)||!(i>F+t))&&(!(i<C-t)||!(i<D-t)||!(i<F-t))&&(!(r>T+t)||!(r>w+t)||!(r>N+t))&&(!(r<T-t)||!(r<w-t)||!(r<N-t))&&iM(T,C,w,D,N,F,r,i,null)<=t/2)return!0}else c+=function(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(iT(a)){if(iC(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var _=o*o-4*a*s;if(iT(_)){var c=-o/(2*a);c>=0&&c<=1&&(i[l++]=c)}else if(_>0){var u=iy(_),c=(-o+u)/(2*a),d=(-o-u)/(2*a);c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(t,r,a,s,sm);if(0===l)return 0;var c=iO(t,r,a);if(c>=0&&c<=1){for(var _=0,u=iA(t,r,a,c),d=0;d<l;d++){var p=0===sm[d]||1===sm[d]?.5:1,f=iA(e,n,i,sm[d]);f<o||(sm[d]<c?_+=u<t?p:-p:_+=a<u?p:-p)}return _}var p=0===sm[0]||1===sm[0]?.5:1,f=iA(e,n,i,sm[0]);return f<o?0:a<t?p:-p}(_,u,s[f++],s[f++],s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.A:var A=s[f++],I=s[f++],O=s[f++],j=s[f++],M=s[f++],L=s[f++];f+=1;var R=!!(1-s[f++]);a=Math.cos(M)*O+A,o=Math.sin(M)*j+I,E?(d=a,p=o):c+=sd(_,u,a,o,r,i);var B=(r-A)*j/O+A;if(n){if(function(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=e)*s+(l-=t)*l);if(c-o>n||c+o<n)return!1;if(Math.abs(r-i)%su<1e-4)return!0;if(a){var _=r;r=s_(i),i=s_(_)}else r=s_(r),i=s_(i);r>i&&(i+=su);var u=Math.atan2(l,s);return u<0&&(u+=su),u>=r&&u<=i||u+su>=r&&u+su<=i}(A,I,j,M,M+L,R,t,B,i))return!0}else c+=function(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sm[0]=-l,sm[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=sf-1e-4){r=0,i=sf;var _=a?1:-1;return o>=sm[0]+e&&o<=sm[1]+e?_:0}if(r>i){var u=r;r=i,i=u}r<0&&(r+=sf,i+=sf);for(var d=0,p=0;p<2;p++){var f=sm[p];if(f+e>o){var m=Math.atan2(s,f),_=a?1:-1;m<0&&(m=sf+m),(m>=r&&m<=i||m+sf>=r&&m+sf<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(_=-_),d+=_)}}return d}(A,I,j,M,M+L,R,B,i);_=Math.cos(M+L)*O+A,u=Math.sin(M+L)*j+I;break;case sp.R:d=_=s[f++],p=u=s[f++];var z=s[f++],J=s[f++];if(a=d+z,o=p+J,n){if(sl(d,p,a,p,t,r,i)||sl(a,p,a,o,t,r,i)||sl(a,o,d,o,t,r,i)||sl(d,o,d,p,t,r,i))return!0}else c+=sd(a,p,a,o,r,i),c+=sd(d,o,d,p,r,i);break;case sp.Z:if(n){if(sl(_,u,d,p,t,r,i))return!0}else c+=sd(_,u,d,p,r,i);_=d,u=p}}return n||1e-4>Math.abs(u-p)||(c+=sd(_,u,d,p,r,i)||0),0!==c}var sy=nJ({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oM),sv={style:nJ({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oL.style)},sx=aM.concat(["invisible","culling","z","z2","zlevel","parent"]),sb=function(e){var t;function n(t){return e.call(this,t)||this}return rf(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.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<sx.length;++s)i[sx[s]]=this[sx[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=nG(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];"style"===a?this.style?nz(this.style,o):this.useStyle(o):"shape"===a?nz(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n0(e)){var t=i4(e,0);return t>.5?aD:t>.2?"#eee":aN}else if(e)return aN}return aD},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n0(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>i4(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new ss(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.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||4&this.__dirty)&&(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||(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 l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}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},n.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)),sg(a,o/s,!0,e,t)))return!0}if(this.hasFill())return sg(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:nz(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return rl(sy,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=nz({},this.shape))},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=nz({},r.shape),nz(s,n.shape)):(s=nz({},i?this.shape:r.shape),nz(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=nz({},this.shape);for(var c={},_=nG(s),u=0;u<_.length;u++){var d=_[u];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return sv},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return rf(n,t),n.prototype.getDefaultStyle=function(){return nR(e.style)},n.prototype.getDefaultShape=function(){return nR(e.shape)},n}(n);for(var r in e)"function"==typeof e[r]&&(t.prototype[r]=e[r]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oz),sS=1,sk={},sT=om(),sC=om(),sw=["emphasis","blur","select"],sD=["normal","emphasis","blur","select"],sN="highlight",sF="downplay",sP="select",sE="unselect",sA="toggleSelect";function sI(e){return null!=e&&"none"!==e}function sO(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sj(e){sO(e,"emphasis",2)}function sM(e){2===e.hoverState&&sO(e,"normal",0)}function sL(e){sO(e,"blur",1)}function sR(e){1===e.hoverState&&sO(e,"normal",0)}function sB(e){e.selected=!0}function sz(e){e.selected=!1}function sJ(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function sq(e,t){var n,r,i,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&nq(n,"select")>=0,a=!1;if(e instanceof sb){var o=sT(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(sI(s)||sI(l)){var c=(r=r||{}).style||{};"inherit"===c.fill?(a=!0,r=nz({},r),(c=nz({},c)).fill=s):!sI(c.fill)&&sI(s)?(a=!0,r=nz({},r),(c=nz({},c)).fill=i8(s)):!sI(c.stroke)&&sI(l)&&(a||(r=nz({},r),c=nz({},c)),c.stroke=i8(l)),r.style=c}}if(r&&null==r.z2){a||(r=nz({},r));var _=e.z2EmphasisLift;r.z2=e.z2+(null!=_?_:10)}return r}(this,0,t,s);else if("blur"===e)return n=s,r=nq(this.currentStates,e)>=0,i=this.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&0>c.__fromStateTransition.indexOf(n)&&"style"===c.targetName&&c.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=nz({},n),o=nz({opacity:r?i:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=nz({},l);var c=this.z2SelectLift;l.z2=this.z2+(null!=c?c:9)}return l}}return s}function sU(e){e.stateProxy=sq;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sq),n&&(n.stateProxy=sq)}function sV(e,t){sK(e,t)||e.__highByOuter||sJ(e,sj)}function sW(e,t){sK(e,t)||e.__highByOuter||sJ(e,sM)}function sH(e,t){e.__highByOuter|=1<<(t||0),sJ(e,sj)}function s$(e,t){(e.__highByOuter&=~(1<<(t||0)))||sJ(e,sM)}function sK(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sG(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=sC(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);o||r.push(s),a.isBlured&&(s.group.traverse(function(e){sR(e)}),o&&n.push(i)),a.isBlured=!1}),nW(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function sX(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&sJ(r,sR)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var _=c&&s?c===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!_||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||sL(e)}),nV(t))a(e.getData(),t);else if(n2(t))for(var u=nG(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);l.push(e),sC(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function sY(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){sC(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){sL(e)})}}}function sQ(e,t,n,r){var i,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===oI(l[c]).focus){i=!0;break}return{focusSelf:i,dispatchers:l}}function sZ(e){nW(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?sJ(t,sB):sJ(t,sz)})})}function s0(e,t,n){var r,i,a,o,s,l;i=false,(r=e).highDownSilentOnTouch&&(r.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!i||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!i),sJ(e,sU),a=e,o=t,s=n,l=oI(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s1(e){return!!(e&&e.__highDownDispatcher)}function s2(e){var t=e.type;return t===sP||t===sE||t===sA}function s3(e){var t=e.type;return t===sN||t===sF}function s4(e,t,n,r,i,a,o){var s,l=!1;nZ(i)?(o=a,a=i,i=null):n2(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var _=function(e,t,n,r,i){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var c=void 0,_=void 0,u=void 0;return r?(c=n5(r.duration,200),_=n5(r.easing,"cubicOut"),u=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),_=t.getShallow(l?"animationEasingUpdate":"animationEasing"),u=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(_=a.easing),null!=a.delay&&(u=a.delay)),nZ(u)&&(u=u(n,i)),nZ(c)&&(c=c(n)),{duration:c||0,delay:u,easing:_}}(e,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(_&&_.duration>0){var u={duration:_.duration,delay:_.delay||0,easing:_.easing,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(n,u):t.animateTo(n,u)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function s6(e,t,n,r,i,a){s4("update",e,t,n,r,i,a)}function s8(e,t,n,r,i,a){s4("enter",e,t,n,r,i,a)}function s5(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}om();var s7={},s9=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],le=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lt=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ln(e,t,n,r,i,a,o,s){n=!i&&n||s7;var l=r&&r.inheritColor,c=t.getShallow("color"),_=t.getShallow("textBorderColor"),u=n5(t.getShallow("opacity"),n.opacity);("inherit"===c||"auto"===c)&&(c=l||null),("inherit"===_||"auto"===_)&&(_=l||null),a||(c=c||n.color,_=_||n.textBorderColor),null!=c&&(e.fill=c),null!=_&&(e.stroke=_);var d=n5(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var p=n5(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=n5(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=u||s||(u=r&&r.defaultOpacity),null!=u&&(e.opacity=u),i||a||null!=e.fill||!r.inheritColor||(e.fill=r.inheritColor);for(var m=0;m<s9.length;m++){var h=s9[m],g=n5(t.getShallow(h),n[h]);null!=g&&(e[h]=g)}for(var m=0;m<le.length;m++){var h=le[m],g=t.getShallow(h);null!=g&&(e[h]=g)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!r.disableBox){for(var m=0;m<lt.length;m++){var h=lt[m],g=t.getShallow(h);null!=g&&(e[h]=g)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var lr=om(),li=new iq(50);function la(e,t,n,r,i){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=li.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?ls(t=a.image)||a.pending.push(o):((t=nT.loadImage(e,lo,lo)).__zrImageSrc=e,li.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function lo(){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 ls(e){return e&&e.width&&e.height}var ll=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lc(e,t,n,r){var i=nz({},r=r||{});i.font=t,n=n5(n,"..."),i.maxIterations=n5(r.maxIterations,2);var a=i.minChar=n5(r.minChar,0);i.cnCharWidth=aR("国",t);var o=i.ascCharWidth=aR("a",t);i.placeholder=n5(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var c=aR(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function l_(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var o=aR(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aR(t=t.substr(0,l),i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lu=function(){},ld=function(e){this.tokens=[],e&&(this.tokens=e)},lp=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lf(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},c=e.lines,_=l.font||n.font,u=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aU(l.width,r.width)+p;c.length>0&&f+r.accumWidth>r.width&&(a=t.split("\n"),u=!0),r.accumWidth=f}else{var m=lh(t,_,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var h=0;h<a.length;h++){var g=a[h],y=new lu;if(y.styleName=i,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[h]:aR(g,_),h||u)c.push(new ld([y]));else{var x=(c[c.length-1]||(c[0]=new ld)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=y:(g||!b||s)&&x.push(y)}}}var lm=n$(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lh(e,t,n,r,i){for(var a=[],o=[],s="",l="",c=0,_=0,u=0;u<e.length;u++){var d=e.charAt(u);if("\n"===d){l&&(s+=l,_+=c),a.push(s),o.push(_),s="",l="",c=0,_=0;continue}var p=aR(d,t),f=!r&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!lm[e]}(d);if(a.length?_+p>n:i+_+p>n){_?(s||l)&&(f?(s||(s=l,l="",_=c=0),a.push(s),o.push(_-c),l+=d,c+=p,s="",_=c):(l&&(s+=l,l="",c=0),a.push(s),o.push(_),s=d,_=p)):f?(a.push(l),o.push(c),l=d,c=p):(a.push(d),o.push(p));continue}_+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d)}return a.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(a.push(s),o.push(_)),1===a.length&&(_+=i),{accumWidth:_,lines:a,linesWidths:o}}var lg=nJ({strokeFirst:!0,font:nS,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sy),ly=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return rl(lg,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return aB(i[0],t,n,r);for(var a=new r6(0,0,0,0),o=0;o<i.length;o++){var s=aB(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oz);ly.prototype.type="tspan";var lv=nJ({x:0,y:0},oM),lx={style:nJ({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oL.style)},lb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.createStyle=function(e){return rl(lv,e)},t.prototype._getSize=function(e){var t,n=this.style,r=n[e];if(null!=r)return r;var i=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lx},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new r6(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oz);lb.prototype.type="image";var lS=Math.round;function lk(e,t,n){if(!t)return e;var r=lS(2*e);return(r+lS(t))%2==0?r/2:(r+(n?1:-1))/2}var lT=function(){this.x=0,this.y=0,this.width=0,this.height=0},lC={},lw=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new lT},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o,s,l,c,_,u,d,p,f,m,h,g=function(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=lk(r,s,!0),e.y=lk(i,s,!0),e.width=Math.max(lk(r+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lk(i+o,s,!1)-e.y,+(0!==o))),e}}(lC,t,this.style);p=g.x,f=g.y,m=g.width,h=g.height,g.r=t.r,t=g}else p=t.x,f=t.y,m=t.width,h=t.height;t.r?(l=(n=t).x,c=n.y,_=n.width,u=n.height,d=n.r,_<0&&(l+=_,_=-_),u<0&&(c+=u,u=-u),"number"==typeof d?r=i=a=o=d:d instanceof Array?1===d.length?r=i=a=o=d[0]:2===d.length?(r=a=d[0],i=o=d[1]):3===d.length?(r=d[0],i=o=d[1],a=d[2]):(r=d[0],i=d[1],a=d[2],o=d[3]):r=i=a=o=0,r+i>_&&(s=r+i,r*=_/s,i*=_/s),a+o>_&&(s=a+o,a*=_/s,o*=_/s),i+a>u&&(s=i+a,i*=u/s,a*=u/s),r+o>u&&(s=r+o,r*=u/s,o*=u/s),e.moveTo(l+r,c),e.lineTo(l+_-i,c),0!==i&&e.arc(l+_-i,c+i,i,-Math.PI/2,0),e.lineTo(l+_,c+u-a),0!==a&&e.arc(l+_-a,c+u-a,a,0,Math.PI/2),e.lineTo(l+o,c+u),0!==o&&e.arc(l+o,c+u-o,o,Math.PI/2,Math.PI),e.lineTo(l,c+r),0!==r&&e.arc(l+r,c+r,r,Math.PI,1.5*Math.PI)):e.rect(p,f,m,h)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(sb);lw.prototype.type="rect";var lD={fill:"#000"},lN={style:nJ({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},oL.style)},lF=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lD,n.attr(t),n}return rf(t,e),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(){var e;this._childCursor=0,lO(e=this.style),nW(e.rich,lO),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 r6(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=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lD},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return nz(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=nG(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},nz(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return lN},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||nS,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o=aq(a),s=n5(t.lineHeight,o),l=!!t.backgroundColor,c="truncate"===t.lineOverflow,_=!1,u=t.width,d=(n=null!=u&&("break"===r||"breakAll"===r)?e?lh(e,t.font,u,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*s,p=n5(t.height,d);if(d>p&&c){var f=Math.floor(p/s);_=_||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===r&&null!=u)for(var m=lc(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),h={},g=0;g<n.length;g++)l_(h,n[g],m),n[g]=h.textLine,_=_||h.isTruncated;for(var y=p,x=0,g=0;g<n.length;g++)x=Math.max(aR(n[g],a),x);null==u&&(u=x);var b=x;return i&&(y+=i[0]+i[2],b+=i[1]+i[3],u+=i[1]+i[3]),l&&(b=u),{lines:n,height:p,outerWidth:b,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:d,width:u,isTruncated:_}}(lR(e),e),i=lB(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,l=r.contentWidth,c=r.lines,_=r.lineHeight,u=this._defaultStyle;this.isTruncated=!!r.isTruncated;var d=e.x||0,p=e.y||0,f=e.align||u.align||"left",m=e.verticalAlign||u.verticalAlign||"top",h=d,g=aJ(p,r.contentHeight,m);if(i||n){var y=az(d,s,f),x=aJ(p,o,m);i&&this._renderBackground(e,e,y,x,s,o)}g+=_/2,n&&(h=lL(d,f,n),"top"===m?g+=n[0]:"bottom"===m&&(g-=n[2]));for(var b=0,S=!1,k=lM("fill"in e?e.fill:(S=!0,u.fill)),T=lj("stroke"in e?e.stroke:a||u.autoStroke&&!S?null:(b=2,u.stroke)),C=e.textShadowBlur>0,w=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),D=r.calculatedLineHeight,N=0;N<c.length;N++){var F=this._getOrCreateChild(ly),P=F.createStyle();F.useStyle(P),P.text=c[N],P.x=h,P.y=g,f&&(P.textAlign=f),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,C&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=T,P.fill=k,T&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,lI(P,e),g+=_,w&&F.setBoundingRect(new r6(az(P.x,l,P.textAlign),aJ(P.y,D,P.textBaseline),l,D))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,r=new lp;if(null!=e&&(e+=""),!e)return r;for(var i=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=i?{width:i,accumWidth:0,breakAll:"breakAll"===o}:null,l=ll.lastIndex=0;null!=(n=ll.exec(e));){var c=n.index;c>l&&lf(r,e.substring(l,c),t,s),lf(r,n[2],t,s,n[1]),l=ll.lastIndex}l<e.length&&lf(r,e.substring(l,e.length),t,s);var _=[],u=0,d=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,h={};function g(e,t,n){e.width=t,e.lineHeight=n,u+=n,d=Math.max(d,t)}i:for(var y=0;y<r.lines.length;y++){for(var x=r.lines[y],b=0,S=0,k=0;k<x.tokens.length;k++){var T=x.tokens[k],C=T.styleName&&t.rich[T.styleName]||{},w=T.textPadding=C.padding,D=w?w[1]+w[3]:0,N=T.font=C.font||t.font;T.contentHeight=aq(N);var F=n5(C.height,T.contentHeight);if(T.innerHeight=F,w&&(F+=w[0]+w[2]),T.height=F,T.lineHeight=n7(C.lineHeight,t.lineHeight,F),T.align=C&&C.align||t.align,T.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&u+T.lineHeight>a){var P=r.lines.length;k>0?(x.tokens=x.tokens.slice(0,k),g(x,S,b),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length<P;break i}var E=C.width,A=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))T.percentWidth=E,_.push(T),T.contentWidth=aR(T.text,N);else{if(A){var I=C.backgroundColor,O=I&&I.image;O&&ls(O=function(e){if("string"!=typeof e)return e;var t=li.get(e);return t&&t.image}(O))&&(T.width=Math.max(T.width,O.width*F/O.height))}var j=f&&null!=i?i-S:null;null!=j&&j<T.width?!A||j<D?(T.text="",T.width=T.contentWidth=0):(!function(e,t,n,r,i,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=lc(n,r,i,a);for(var s=!1,l={},c=0,_=o.length;c<_;c++)l_(l,o[c],a),o[c]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(h,T.text,j-D,N,t.ellipsis,{minChar:t.truncateMinChar}),T.text=h.text,r.isTruncated=r.isTruncated||h.isTruncated,T.width=T.contentWidth=aR(T.text,N)):T.contentWidth=aR(T.text,N)}T.width+=D,S+=T.width,C&&(b=Math.max(b,T.lineHeight))}g(x,S,b)}r.outerWidth=r.width=n5(i,d),r.outerHeight=r.height=n5(a,u),r.contentHeight=u,r.contentWidth=d,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var y=0;y<_.length;y++){var T=_[y],M=T.percentWidth;T.width=parseInt(M,10)/100*r.width}return r}(lR(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,c=e.align||l.align,_=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var u=az(o,r,c),d=aJ(s,i,_),p=u,f=d;a&&(p+=a[3],f+=a[0]);var m=p+n;lB(e)&&this._renderBackground(e,e,u,d,r,i);for(var h=!!e.backgroundColor,g=0;g<t.lines.length;g++){for(var y=t.lines[g],x=y.tokens,b=x.length,S=y.lineHeight,k=y.width,T=0,C=p,w=m,D=b-1,N=void 0;T<b&&(!(N=x[T]).align||"left"===N.align);)this._placeToken(N,e,S,f,C,"left",h),k-=N.width,C+=N.width,T++;for(;D>=0&&"right"===(N=x[D]).align;)this._placeToken(N,e,S,f,w,"right",h),k-=N.width,w-=N.width,D--;for(C+=(n-(C-p)-(m-w)-k)/2;T<=D;)N=x[T],this._placeToken(N,e,S,f,C+N.width/2,"center",h),C+=N.width,T++;f+=S}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=r+n/2;"top"===l?c=r+e.height/2:"bottom"===l&&(c=r+n-e.height/2),!e.isLineHolder&&lB(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,c-e.height/2,e.width,e.height);var _=!!s.backgroundColor,u=e.textPadding;u&&(i=lL(i,a,u),c-=e.height/2-u[0]-e.innerHeight/2);var d=this._getOrCreateChild(ly),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,m=!1,h=0,g=lM("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lj("stroke"in s?s.stroke:"stroke"in t?t.stroke:_||o||f.autoStroke&&!m?null:(h=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=c,x&&(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||nS,p.opacity=n7(s.opacity,t.opacity,1),lI(p,s),y&&(p.lineWidth=n7(s.lineWidth,t.lineWidth,h),p.lineDash=n5(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),g&&(p.fill=g);var b=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new r6(az(p.x,b,p.textAlign),aJ(p.y,S,p.textBaseline),b,S))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l=e.backgroundColor,c=e.borderWidth,_=e.borderColor,u=l&&l.image,d=l&&!u,p=e.borderRadius,f=this;if(d||e.lineHeight||c&&_){(o=this._getOrCreateChild(lw)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=r,m.width=i,m.height=a,m.r=p,o.dirtyShape()}if(d){var h=o.style;h.fill=l||null,h.fillOpacity=n5(e.fillOpacity,1)}else if(u){(s=this._getOrCreateChild(lb)).onload=function(){f.dirtyStyle()};var g=s.style;g.image=l.image,g.x=n,g.y=r,g.width=i,g.height=a}if(c&&_){var h=o.style;h.lineWidth=c,h.stroke=_,h.strokeOpacity=n5(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=n7(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,r="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(r=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),r&&rn(r)||e.textFont||e.font},t}(oz),lP={left:!0,right:1,center:1},lE={top:1,bottom:1,middle:1},lA=["fontStyle","fontWeight","fontSize","fontFamily"];function lI(e,t){for(var n=0;n<lA.length;n++){var r=lA[n],i=t[r];null!=i&&(e[r]=i)}}function lO(e){if(e){e.font=lF.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lP[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lE[n]?n:"top",e.padding&&(e.padding=re(e.padding))}}function lj(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lM(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lL(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lR(e){var t=e.text;return null!=t&&(t+=""),t}function lB(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lz=["textStyle","color"],lJ=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lq=new lF,lU=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lz):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),rn([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(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lJ.length;n++)t[lJ[n]]=this.getShallow(lJ[n]);return lq.useStyle(t),lq.update(),lq.getBoundingRect()},e}(),lV=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lW=oP(lV),lH=function(){function e(){}return e.prototype.getLineStyle=function(e){return lW(this,e)},e}(),l$=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lK=oP(l$),lG=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lK(this,e,t)},e}(),lX=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){nB(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nR(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nb.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else 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]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();oT(lX),k=["__\0is_clz",ow++].join("_"),lX.prototype[k]=!0,lX.isInstance=function(e){return!!(e&&e[k])},nU(lX,lH),nU(lX,lG),nU(lX,oA),nU(lX,lU);var lY=Math.round(10*Math.random());function lQ(e){return[e||"",lY++].join("_")}var lZ={},l0={},l1=nb.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l2(e,t){l0[e=e.toUpperCase()]=new lX(t),lZ[e]=t}l2("EN",{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:". "}}}}),l2("ZH",{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:""}}}});var l3={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},l4="{yyyy}-{MM}-{dd}",l6={year:"{yyyy}",month:"{yyyy}-{MM}",day:l4,hour:l4+" "+l3.hour,minute:l4+" "+l3.minute,second:l4+" "+l3.second,millisecond:l3.none},l8=["year","month","day","hour","minute","second","millisecond"],l5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function l7(e,t){return e+="","0000".substr(0,t-e.length)+e}function l9(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 ce(e,t,n,r){var i=a7(e),a=i[cr(n)](),o=i[ci(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[ca(n)](),c=i["get"+(n?"UTC":"")+"Day"](),_=i[co(n)](),u=(_-1)%12+1,d=i[cs(n)](),p=i[cl(n)](),f=i[cc(n)](),m=_>=12?"pm":"am",h=m.toUpperCase(),g=(r instanceof lX?r:l0[r||l1]||l0.EN).getModel("time"),y=g.get("month"),x=g.get("monthAbbr"),b=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,h+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,l7(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,l7(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,l7(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,l7(_,2)).replace(/{H}/g,_+"").replace(/{hh}/g,l7(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,l7(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,l7(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,l7(f,3)).replace(/{S}/g,f+"")}function ct(e,t){var n=a7(e),r=n[ci(t)]()+1,i=n[ca(t)](),a=n[co(t)](),o=n[cs(t)](),s=n[cl(t)](),l=0===n[cc(t)](),c=l&&0===s,_=c&&0===o,u=_&&0===a,d=u&&1===i;if(d&&1===r)return"year";if(d)return"month";if(u)return"day";if(_)return"hour";if(c)return"minute";else if(l)return"second";else return"millisecond"}function cn(e,t,n){var r=n1(e)?a7(e):e;switch(t=t||ct(e,n)){case"year":return r[cr(n)]();case"half-year":return+(r[ci(n)]()>=6);case"quarter":return Math.floor((r[ci(n)]()+1)/4);case"month":return r[ci(n)]();case"day":return r[ca(n)]();case"half-day":return r[co(n)]()/24;case"hour":return r[co(n)]();case"minute":return r[cs(n)]();case"second":return r[cl(n)]();case"millisecond":return r[cc(n)]()}}function cr(e){return e?"getUTCFullYear":"getFullYear"}function ci(e){return e?"getUTCMonth":"getMonth"}function ca(e){return e?"getUTCDate":"getDate"}function co(e){return e?"getUTCHours":"getHours"}function cs(e){return e?"getUTCMinutes":"getMinutes"}function cl(e){return e?"getUTCSeconds":"getSeconds"}function cc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function c_(e){return e?"setUTCMonth":"setMonth"}function cu(e){return e?"setUTCDate":"setDate"}function cd(e){return e?"setUTCHours":"setHours"}function cp(e){return e?"setUTCMinutes":"setMinutes"}function cf(e){return e?"setUTCSeconds":"setSeconds"}function cm(e){return e?"setUTCMilliseconds":"setMilliseconds"}var ch=["a","b","c","d","e","f","g"],cg=function(e,t){return"{"+e+(null==t?"":t)+"}"},cy=["left","right","top","bottom","width","height"],cv=[["width","left","right"],["height","top","bottom"]];function cx(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,c){var _,u,d=l.getBoundingRect(),p=t.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=d.width+(f?-f.x+d.x:0);(_=a+m)>r||l.newline?(a=0,_=m,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var h=d.height+(f?-f.y+d.y:0);(u=o+h)>i||l.newline?(a+=s+n,o=0,u=h,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=_+n:o=u+n)})}function cb(e){var t=e.layoutMode||e.constructor.layoutMode;return n2(t)?t:t?{type:t}:null}function cS(e,t,n){var r=n&&n.ignoreSize;nQ(r)||(r=[r,r]);var i=o(cv[0],0),a=o(cv[1],1);function o(n,i){var a={},o=0,c={},_=0;if(nW(n,function(t){c[t]=e[t]}),nW(n,function(e){s(t,e)&&(a[e]=c[e]=t[e]),l(a,e)&&o++,l(c,e)&&_++}),r[i])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(2===_||!o)return c;if(o>=2)return a;for(var u=0;u<n.length;u++){var d=n[u];if(!s(a,d)&&s(e,d)){a[d]=e[d];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){nW(e,function(e){t[e]=n[e]})}c(cv[0],e,i),c(cv[1],e,a)}nY(cx,"vertical"),nY(cx,"horizontal");function ck(e,t){return t&&e&&nW(cy,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var cT=om(),cC=function(e){var t;function n(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=lQ("ec_cpt_model"),i}return nv(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=cb(this),r=n?ck({},e):{};nB(e,t.getTheme().get(this.mainType)),nB(e,this.getDefaultOption()),n&&cS(e,r,n)},n.prototype.mergeOption=function(e,t){nB(this.option,e,!0);var n=cb(this);n&&cS(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[oS]))return e.defaultOption;var t=cT(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=nB(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return ox(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(lX);oC(cC,lX),oF(cC),T={},cC.registerSubTypeDefaulter=function(e,t){T[ok(e).main]=t},cC.determineSubType=function(e,t){var n=t.type;if(!n){var r=ok(e).main;cC.hasSubTypes(e)&&T[r]&&(n=T[r](t))}return n};var cw=function(e){var t=[];return nW(cC.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=nH(t,function(e){return ok(e).main}),"dataset"!==e&&0>=nq(t,"dataset")&&t.unshift("dataset"),t};function cD(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}cC.topologicalTravel=function(e,t,n,r){if(e.length){var i,a,o,s=(a={},o=[],nW(i=t,function(e){var t,n,r,s=cD(a,e),l=(t=s.originalDeps=cw(e),n=i,r=[],nW(t,function(e){nq(n,e)>=0&&r.push(e)}),r);s.entryCount=l.length,0===s.entryCount&&o.push(e),nW(l,function(t){0>nq(s.predecessor,t)&&s.predecessor.push(t);var n=cD(a,t);0>nq(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,c=s.noEntryList,_={};for(nW(e,function(e){_[e]=!0});c.length;){var u=c.pop(),d=l[u],p=!!_[u];p&&(n.call(r,u,d.originalDeps.slice()),delete _[u]),nW(d.successor,p?m:f)}nW(_,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&c.push(e)}function m(e){_[e]=!0,f(e)}};var cN="";"undefined"!=typeof navigator&&(cN=navigator.platform||"");var cF="rgba(0, 0, 0, 0.2)";let cP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cF,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cF,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cF,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cF,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cF,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cF,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cN.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var cE=rs(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),cA="original",cI="arrayRows",cO="objectRows",cj="keyedColumns",cM="typedArray",cL="unknown",cR="column",cB=om();function cz(e,t){return function(e,t,n,r,i,a){var o,s,l;if(n4(e))return 3;if(r){var c=r[a];n2(c)?(s=c.name,l=c.type):n0(c)&&(s=c)}if(null!=l)return"ordinal"===l?1:3;if(t===cI)if("row"===n){for(var _=e[a],u=0;u<(_||[]).length&&u<5;u++)if(null!=(o=m(_[i+u])))return o}else for(var u=0;u<e.length&&u<5;u++){var d=e[i+u];if(d&&null!=(o=m(d[a])))return o}else if(t===cO){if(!s)return 3;for(var u=0;u<e.length&&u<5;u++){var p=e[u];if(p&&null!=(o=m(p[s])))return o}}else if(t===cj){if(!s)return 3;var _=e[s];if(!_||n4(_))return 3;for(var u=0;u<_.length&&u<5;u++)if(null!=(o=m(_[u])))return o}else if(t===cA)for(var u=0;u<e.length&&u<5;u++){var p=e[u],f=ol(p);if(!nQ(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n0(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var cJ=rs(),cq=om();om();var cU=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var _=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((_=_||n)&&_.length){var u=_[l];return i&&(c[i]=u),s.paletteIdx=(l+1)%_.length,u}}(this,cq,oa(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=cq)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),cV="\0_ec_inner",cW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nv(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new lX(r),this._locale=new lX(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=cK(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,cK(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):A(this,i),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&nW(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=rs(),s=t&&t.replaceMergeMainTypeMap;cB(this).datasetMap=rs(),nW(e,function(e,t){null!=e&&(cC.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nR(e):nB(n[t],e,!0))}),s&&s.each(function(e,t){cC.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),cC.topologicalTravel(a,cC.getAllClassMainTypes(),function(t){var a,o,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T,C,w,D=function(e,t,n){var r=cJ.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,oa(e[t])),N=r.get(t),F=N?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",E=(y=N,x=D,b="normalMerge"===F,S="replaceMerge"===F,k="replaceAll"===F,y=y||[],x=(x||[]).slice(),T=rs(),nW(x,function(e,t){if(!n2(e)){x[t]=null;return}}),C=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||op(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(y,T,F),(b||S)&&(a=C,o=y,l=T,nW(c=x,function(e,t){if(e&&null!=e.id){var n=o_(e.id),r=l.get(n);if(null!=r){var i=a[r];rt(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=e,i.existing=o[r],c[t]=null}}})),b&&(_=C,nW(u=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<_.length;n++){var r=_[n].existing;if(!_[n].newOption&&r&&(null==r.id||null==e.id)&&!op(e)&&!op(r)&&oc("name",r,e)){_[n].newOption=e,u[t]=null;return}}})),b||S?(d=C,p=x,f=S,nW(p,function(e){if(e){for(var t,n=0;(t=d[n])&&(t.newOption||op(t.existing)||t.existing&&null!=e.id&&!oc("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):d.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):k&&(m=C,nW(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),h=C,g=rs(),nW(h,function(e){var t=e.existing;t&&g.set(t.id,e)}),nW(h,function(e){var t=e.newOption;rt(!t||null==t.id||!g.get(t.id)||g.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&g.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nW(h,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(n2(r)){if(i.name=null!=r.name?o_(r.name):n?n.name:oi+t,n)i.id=o_(n.id);else if(null!=r.id)i.id=o_(r.id);else{var a=0;do i.id="\0"+i.name+"\0"+a++;while(g.get(i.id))}g.set(i.id,e)}}),C);nW(E,function(e){var n,r,i,a,o=e.newOption;n2(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,r=o,i=e.existing,a=cC,r.type?r.type:i?i.subType:a.determineSubType(n,r)))}),n[t]=null,r.set(t,null),i.set(t,0);var A=[],I=[],O=0;nW(E,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=cC.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(w)return;w=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=nz({componentIndex:n},e.keyInfo);nz(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(A.push(r.option),I.push(r),O++):(A.push(void 0),I.push(void 0))},this),n[t]=A,r.set(t,I),i.set(t,O),"series"===t&&P(this)},this),this._seriesIndices||P(this)},t.prototype.getOption=function(){var e=nR(this.option);return nW(e,function(t,n){if(cC.hasClass(n)){for(var r=oa(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!op(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[cV],e},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(null==t){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=r?(t=[],nW(oa(r),function(e){o[e]&&t.push(o[e])})):t=null!=i?cH("id",i,o):null!=a?cH("name",a,o):nK(o,function(e){return!!e}),c$(t,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",r=s+"Id",i=s+"Name",t&&(null!=t[n]||null!=t[r]||null!=t[i])?{mainType:s,index:t[n],id:t[r],name:t[i]}:null);return a=c$(l?this.queryComponents(l):nK(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?nK(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(nZ(e))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var a=n[i];a&&e.call(t,r,a,a.componentIndex)}});else for(var i=n0(e)?r.get(e):n2(e)?this.findComponents(e):null,a=0;i&&a<i.length;a++){var o=i[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ou(e,null);return nK(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return nK(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return nK(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){E(this),nW(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){nW(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){E(this),nW(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 nW(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return E(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){E(this);var n=[];nW(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=rs(n)},t.prototype.restoreData=function(e){P(this);var t=this._componentsMap,n=[];t.each(function(e,t){cC.hasClass(t)&&n.push(t)}),cC.topologicalTravel(n,cC.getAllClassMainTypes(),function(n){nW(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e))&&t.restoreData()})})},t.internalField=void(P=function(e){var t=e._seriesIndices=[];nW(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=rs(t)},E=function(e){},A=function(e,t){e.option={},e.option[cV]=1,e._componentsMap=rs({series:[]}),e._componentsCount=rs();var n,r,i,a=t.aria;n2(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,nW(r,function(e,t){("colorLayer"!==t||!i)&&(cC.hasClass(t)||("object"==typeof e?n[t]=n[t]?nB(n[t],e,!1):nR(e):null==n[t]&&(n[t]=e)))}),nB(t,cP,!1),e._mergeOption(t,null)}),t}(lX);function cH(e,t,n){if(nQ(t)){var r=rs();return nW(t,function(e){null!=e&&null!=ou(e,null)&&r.set(e,!0)}),nK(n,function(t){return t&&r.get(t[e])})}var i=ou(t,null);return nK(n,function(t){return t&&null!=i&&t[e]===i})}function c$(e,t){return t.hasOwnProperty("subType")?nK(e,function(e){return e&&e.subType===t.subType}):e}function cK(e){var t=rs();return e&&nW(oa(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nU(cW,cU);var cG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let cX=function(e){nW(cG,function(t){this[t]=nX(e[t],e)},this)};var cY={},cQ=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nW(cY,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nW(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){cY[e]=t},e.get=function(e){return cY[e]},e}(),cZ=/^(min|max)?(.+)$/,c0=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nW(oa(e.series),function(e){e&&e.data&&n4(e.data)&&(e.data[rr]=!0)}),nW(oa(e.dataset),function(e){e&&e.source&&n4(e.source)&&(e.source[rr]=!0)})),e=nR(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,c=e.media,_=!!e.media,u=!!(l||s||o&&o.timeline);function d(e){nW(t,function(t){t(e,n)})}return o?(i=o).timeline||(i.timeline=s):((u||_)&&(e.options=e.media=null),i=e),_&&nQ(c)&&nW(c,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))}),d(i),nW(l,function(e){return d(e)}),nW(a,function(e){return d(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(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=[],nR(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=nR(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var c=0,_=a.length;c<_;c++)(function(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return nW(e,function(e,t){var n=t.match(cZ);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=r[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(i=!1)}}),i})(a[c].query,r,i)&&s.push(c);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=nH(s,function(e){return nR(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),c1=n2,c2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function c3(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=c2.length;n<r;n++){var i=c2[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?nB(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?nB(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function c4(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,nJ(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 c6(e){c4(e,"itemStyle"),c4(e,"lineStyle"),c4(e,"areaStyle"),c4(e,"label"),c4(e,"labelLine"),c4(e,"upperLabel"),c4(e,"edgeLabel")}function c8(e,t){var n=c1(e)&&e[t],r=c1(n)&&n.textStyle;if(r)for(var i=0,a=os.length;i<a;i++){var o=os[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function c5(e){e&&(c6(e),c8(e,"label"),e.emphasis&&c8(e.emphasis,"label"))}function c7(e){return nQ(e)?e:e?[e]:[]}function c9(e){return(nQ(e)?e[0]:e)||{}}function _e(e){e&&nW(_t,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_r=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _i(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<_r.length;n++){var r=_r[n][1],i=_r[n][0];null!=t[r]&&(t[i]=t[r])}}function _a(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function _o(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function _s(e,t){var n;nW(c7(e.series),function(e){c1(e)&&function(e){if(c1(e)){c3(e),c6(e),c8(e,"label"),c8(e,"upperLabel"),c8(e,"edgeLabel"),e.emphasis&&(c8(e.emphasis,"label"),c8(e.emphasis,"upperLabel"),c8(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(c3(t),c5(t));var n=e.markLine;n&&(c3(n),c5(n));var r=e.markArea;r&&c5(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!n4(a))for(var o=0;o<a.length;o++)c5(a[o]);nW(e.categories,function(e){c6(e)})}if(i&&!n4(i))for(var o=0;o<i.length;o++)c5(i[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)c5(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)nQ(l[o])?(c5(l[o][0]),c5(l[o][1])):c5(l[o]);"gauge"===e.type?(c8(e,"axisLabel"),c8(e,"title"),c8(e,"detail")):"treemap"===e.type?(c4(e.breadcrumb,"itemStyle"),nW(e.levels,function(e){c6(e)})):"tree"===e.type&&c6(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nW(n,function(t){nW(c7(e[t]),function(e){e&&(c8(e,"axisLabel"),c8(e.axisPointer,"label"))})}),nW(c7(e.parallel),function(e){var t=e&&e.parallelAxisDefault;c8(t,"axisLabel"),c8(t&&t.axisPointer,"label")}),nW(c7(e.calendar),function(e){c4(e,"itemStyle"),c8(e,"dayLabel"),c8(e,"monthLabel"),c8(e,"yearLabel")}),nW(c7(e.radar),function(e){c8(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nW(c7(e.geo),function(e){c1(e)&&(c5(e),nW(c7(e.regions),function(e){c5(e)}))}),nW(c7(e.timeline),function(e){c5(e),c4(e,"label"),c4(e,"itemStyle"),c4(e,"controlStyle",!0);var t=e.data;nQ(t)&&nW(t,function(e){n2(e)&&(c4(e,"label"),c4(e,"itemStyle"))})}),nW(c7(e.toolbox),function(e){c4(e,"iconStyle"),nW(e.feature,function(e){c4(e,"iconStyle")})}),c8(c9(e.axisPointer),"label"),c8(c9(e.tooltip).axisPointer,"label"),e.series=oa(e.series),nW(e.series,function(e){if(n2(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),_a(e.label);var n=e.data;if(n&&!n4(n))for(var r=0;r<n.length;r++)_a(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=i&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){_i(e),_i(e.backgroundStyle),_i(e.emphasis);var n=e.data;if(n&&!n4(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(_i(n[r]),_i(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),_o(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,_o)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nJ(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),_e(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nW(_n,function(t){var n=e[t];n&&(nQ(n)||(n=[n]),nW(n,function(e){_e(e)}))})}function _l(e){nW(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,c,_){var u,d,p=o.get(t.stackedDimension,_);if(isNaN(p))return i;s?d=o.getRawIndex(_):u=o.get(t.stackedByDimension,_);for(var f=NaN,m=n-1;m>=0;m--){var h=e[m];if(s||(d=h.data.rawIndexOf(h.stackedByDimension,u)),d>=0){var g=h.data.getByRawIndex(h.stackResultDimension,d);if("all"===l||"positive"===l&&g>0||"negative"===l&&g<0||"samesign"===l&&p>=0&&g>0||"samesign"===l&&p<=0&&g<0){p=function(e,t){var n=Math.max(a8(e),a8(t)),r=e+t;return n>20?r:a6(r,n)}(p,g),f=g;break}}}return r[0]=p,r[1]=f,r})})}var _c=function(e){this.data=e.data||(e.sourceFormat===cj?{}:[]),this.sourceFormat=e.sourceFormat||cL,this.seriesLayoutBy=e.seriesLayoutBy||cR,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];null==r.type&&1===cz(this,n)&&(r.type="ordinal")}};function __(e){return e instanceof _c}function _u(e,t,n){n=n||_p(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){if(!e)return{dimensionsDefine:_f(i),startIndex:o,dimensionsDetectedCount:a};if(t===cI){var a,o;"auto"===r||null==r?_m(function(e){null!=e&&"-"!==e&&(n0(e)?null==o&&(o=1):o=0)},n,e,10):o=n1(r)?r:+!!r,i||1!==o||(i=[],_m(function(e,t){i[t]=null!=e?e+"":""},n,e,1/0)),a=i?i.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===cO)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return nG(t)}(e));else if(t===cj)i||(i=[],nW(e,function(e,t){i.push(t)}));else if(t===cA){var s=ol(e[0]);a=nQ(s)&&s.length||1}return{startIndex:o,dimensionsDefine:_f(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new _c({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:nR(t)})}function _d(e){return new _c({data:e,sourceFormat:n4(e)?cM:cA})}function _p(e){var t=cL;if(n4(e))t=cM;else if(nQ(e)){0===e.length&&(t=cI);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(nQ(i)||n4(i)){t=cI;break}else if(n2(i)){t=cO;break}}}}else if(n2(e)){for(var a in e)if(r_(e,a)&&nV(e[a])){t=cj;break}}return t}function _f(e){if(e){var t=rs();return nH(e,function(e,n){var r={name:(e=n2(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function _m(e,t,n,r){if("row"===t)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 _h(e){var t=e.sourceFormat;return t===cO||t===cj}var _g=function(){var e;function t(e,t){var n=__(e)?e:_d(e);this._source=n;var r=this._data=n.data;n.sourceFormat===cM&&(this._offset=0,this._dimSize=t,this._data=r),L(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){L=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,c=a.dimensionsDefine;nz(e,M[_T(o,s)]),o===cM?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=nX(function(e,t){return _v[_T(e,t)]}(o,s),null,i,l,c),e.count=nX(function(e,t){return _b[_T(e,t)]}(o,s),null,i,l,c))};var e,t=function(e,t){e-=this._offset,t=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],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],_=t-e,u=n[o],d=0;d<_;d++){var p=i[d*a+o];u[e+d]=p,p<l&&(l=p),p>c&&(c=p)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[cI+"_"+cR]={pure:!0,appendData:i},e[cI+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[cO]={pure:!0,appendData:i},e[cj]={pure:!0,appendData:function(e){var t=this._data;nW(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[cA]={appendData:i},e[cM]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},M=e}(),t}(),_y=function(e,t,n,r){return e[r]},_v=((I={})[cI+"_"+cR]=function(e,t,n,r){return e[r+t]},I[cI+"_row"]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[r]:null}return a},I[cO]=_y,I[cj]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},I[cA]=_y,I),_x=function(e,t,n){return e.length},_b=((O={})[cI+"_"+cR]=function(e,t,n){return Math.max(0,e.length-t)},O[cI+"_row"]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},O[cO]=_x,O[cj]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},O[cA]=_x,O),_S=function(e,t,n){return e[t]},_k=((j={})[cI]=_S,j[cO]=function(e,t,n){return e[n]},j[cj]=_S,j[cA]=function(e,t,n){var r=ol(e);return r instanceof Array?r[t]:r},j[cM]=_S,j);function _T(e,t){return e===cI?e+"_"+t:e}function _C(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return _k[a](r,o,s)}var l=r;return a===cA&&(l=ol(r)),l}}}var _w=/\{@(.+?)\}/g,_D=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"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,_=this.mainType,u="series"===_,d=n.userOutput&&n.userOutput.get();return{componentType:_,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=r&&nQ(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),nZ(i))?(s.status=t,s.dimensionIndex=r,i(s)):n0(i)?(function(e,t,n){nQ(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=ch[a];e=e.replace(cg(o),cg(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(cg(ch[l],s),c)}return e})(i,s).replace(_w,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=_C(o,e,i);if(a&&nQ(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return _C(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function _N(e){return new _F(e)}var _F=function(){function e(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,n,r,i,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(r=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),c=this._modDataCount||0,_=((n=e&&e.modBy)>=1||(n=1),n),u=e&&e.modDataCount||0;(l!==_||c!==u)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(o)),this._modBy=_,this._modDataCount=u;var d=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!o&&(i||p<f)){var m=this._progress;if(nQ(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],p,f,_,u);else this._doProgress(m,p,f,_,u)}this._dueIndex=f;var g=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;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){_P.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:_P.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),nQ(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,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,this._disposed=!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}(),_P=function(){var e,t,n,r,i,a={reset:function(l,c,_,u){t=l,e=c,n=_,i=Math.ceil((r=u)/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 _E(e){throw Error(e)}function _A(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n1(e)||null==e||"-"===e||(e=+a7(e)),null==e||""===e?NaN:Number(e))}rs({number:function(e){return parseFloat(e)},time:function(e){return+a7(e)},trim:function(e){return n0(e)?rn(e):e}});var _I={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}};(function(e,t){n1(t)||_E(""),this._opFn=_I[e],this._rvalFloat=ot(t)}).prototype.evaluate=function(e){return n1(e)?this._opFn(e,this._rvalFloat):this._opFn(ot(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n1(e)?e:ot(e),r=n1(t)?t:ot(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=n0(e),s=n0(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ot(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=ot(e)===this._rvalFloat)}return this._isEQ?t:!t};var _O=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 _A(e,t)},e}();function _j(e){return _z(e.sourceFormat)||_E(""),e.data}function _M(e){var t=e.sourceFormat,n=e.data;if(_z(t)||_E(""),t===cI){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===cO){for(var r=[],i=0,a=n.length;i<a;i++)r.push(nz({},n[i]));return r}}function _L(e,t,n){if(null!=n){if(n1(n)||!isNaN(n)&&!r_(t,n))return e[n];else if(r_(t,n))return t[n]}}function _R(e){return nR(e)}var _B=rs();function _z(e){return e===cI||e===cO}var _J="undefined",_q=typeof Uint32Array===_J?Array:Uint32Array,_U=typeof Uint16Array===_J?Array:Uint16Array,_V=typeof Int32Array===_J?Array:Int32Array,_W=typeof Float64Array===_J?Array:Float64Array,_H={float:_W,int:_V,ordinal:Array,number:Array,time:_W};function _$(e){return e>65535?_q:_U}function _K(){return[1/0,-1/0]}function _G(e,t,n,r,i){var a=_H[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),c=0;c<s;c++)l[c]=o[c];e[t]=l}}else e[t]=new a(r)}var _X=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rs()}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=R[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],_h(r),this._dimensions=nH(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(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new _H[t||"float"](this._rawCount),this._rawExtent[i]=_K(),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;0===a&&(i[e]=_K());for(var s=i[e],l=a;l<o;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,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),l=0;l<i;l++){var c=r[l];_G(n,l,c.type,s,!0)}for(var _=[],u=o;u<s;u++)for(var d=u-o,p=0;p<i;p++){var c=r[p],f=R.arrayRows.call(this,e[d]||_,c.property,d,p);n[p][u]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}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,l=nH(a,function(e){return e.property}),c=0;c<o;c++){var _=a[c];s[c]||(s[c]=_K()),_G(i,c,_.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var u=[],d=e;d<t;d++){u=r.getItem(d,u);for(var p=0;p<o;p++){var f=i[p],m=this._dimValueGetter(u,l[p],d,p);f[d]=m;var h=s[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}}!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(null==t){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)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/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(null!=n&&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))return a;i=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,c=this.count();l<c;l++){var _=t-r[this.getRawIndex(l)],u=Math.abs(_);u<=n&&((u<a||u===a&&_>=0&&o<0)&&(a=u,o=_,s=0),_===o&&(i[s++]=l))}return i.length=s,i},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=_$(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(_$(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],c=n._chunks,_=0;_<r;_++){var u=void 0,d=n.getRawIndex(_);if(0===o)u=t(_);else if(1===o)u=t(c[l][d],_);else{for(var p=0;p<o;p++)a[p]=c[e[p]][d];a[p]=_,u=t.apply(null,a)}u&&(i[s++]=d)}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=nG(e),i=r.length;if(!i)return this;var a=t.count(),o=new(_$(t._rawCount))(a),s=0,l=r[0],c=e[l][0],_=e[l][1],u=t._chunks,d=!1;if(!t._indices){var p=0;if(1===i){for(var f=u[r[0]],m=0;m<n;m++){var h=f[m];(h>=c&&h<=_||isNaN(h))&&(o[s++]=p),p++}d=!0}else if(2===i){for(var f=u[r[0]],g=u[r[1]],y=e[r[1]][0],x=e[r[1]][1],m=0;m<n;m++){var h=f[m],b=g[m];(h>=c&&h<=_||isNaN(h))&&(b>=y&&b<=x||isNaN(b))&&(o[s++]=p),p++}d=!0}}if(!d)if(1===i)for(var m=0;m<a;m++){var S=t.getRawIndex(m),h=u[r[0]][S];(h>=c&&h<=_||isNaN(h))&&(o[s++]=S)}else for(var m=0;m<a;m++){for(var k=!0,S=t.getRawIndex(m),T=0;T<i;T++){var C=r[T],h=u[C][S];(h<e[C][0]||h>e[C][1])&&(k=!1)}k&&(o[s++]=t.getRawIndex(m))}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=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=_K();for(var _=0;_<o;_++){for(var u=e.getRawIndex(_),d=0;d<a;d++)s[d]=r[t[d]][u];s[a]=_;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var f=t[c],m=p[c],h=l[f],g=r[f];g&&(g[u]=m),m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,c=Math.floor(1/t),_=this.getRawIndex(0),u=new(_$(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));u[l++]=_;for(var d=1;d<s-1;d+=c){for(var p=Math.min(d+c,s-1),f=Math.min(d+2*c,s),m=(f+p)/2,h=0,g=p;g<f;g++){var y=this.getRawIndex(g),x=o[y];isNaN(x)||(h+=x)}h/=f-p;var b=d,S=Math.min(d+c,s),k=d-1,T=o[_];n=-1,i=b;for(var C=-1,w=0,g=b;g<S;g++){var y=this.getRawIndex(g),x=o[y];if(isNaN(x)){w++,C<0&&(C=y);continue}(r=Math.abs((k-m)*(x-T)-(k-g)*(h-T)))>n&&(n=r,i=y)}w>0&&w<S-b&&(u[l++]=Math.min(C,i),i=Math.max(C,i)),u[l++]=i,_=i}return u[l++]=this.getRawIndex(s-1),a._count=l,a._indices=u,a.getRawIndex=this._getRawIdx,a},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(_$(this._rawCount))(2*Math.ceil(o/i)),l=0,c=0;c<o;c+=i){var _=c,u=a[this.getRawIndex(_)],d=c,p=a[this.getRawIndex(d)],f=i;c+i>o&&(f=o-c);for(var m=0;m<f;m++){var h=a[this.getRawIndex(c+m)];h<u&&(u=h,_=c+m),h>p&&(p=h,d=c+m)}var g=this.getRawIndex(_),y=this.getRawIndex(d);_<d?(s[l++]=g,s[l++]=y):(s[l++]=y,s[l++]=g)}return n._count=l,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),l=a[e],c=this.count(),_=i._rawExtent[e]=_K(),u=new(_$(this._rawCount))(Math.ceil(c/s)),d=0,p=0;p<c;p+=s){s>c-p&&(o.length=s=c-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,c-1));l[g]=h,h<_[0]&&(_[0]=h),h>_[1]&&(_[1]=h),u[d++]=g}return i._count=d,i._indices=u,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,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],r=_K();if(!n)return r;var i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=r)[0],o=t[1],s=0;s<i;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},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&&n$(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(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=nR(this._extent),e._rawExtent=nR(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 _A(e[r],this._dimensions[r])}R={arrayRows:e,objectRows:function(e,t,n,r){return _A(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return _A(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),_Y=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,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(_Z(n)){var a=void 0,o=void 0,s=void 0;if(i){var l=r[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=n4(a=n.get("data",!0))?cM:cA,t=[];var c=this._getSourceMetaRawOption()||{},_=s&&s.metaRawOption||{},u=n5(c.seriesLayoutBy,_.seriesLayoutBy)||null,d=n5(c.sourceHeader,_.sourceHeader),p=n5(c.dimensions,_.dimensions);e=u!==_.seriesLayoutBy||!!d!=!!_.sourceHeader||p?[_u(a,{seriesLayoutBy:u,sourceHeader:d,dimensions:p},o)]:[]}else if(i){var f=this._applyTransform(r);e=f.sourceList,t=f.upstreamSignList}else e=[_u(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&_0("");var o=[],s=[];return(nW(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||_0(""),o.push(t),s.push(e._getVersionSign())}),i)?n=function(e,t,n){var r=oa(e),i=r.length;i||_E("");for(var a=0;a<i;a++)t=function(e,t,n,r){t.length||_E(""),n2(e)||_E("");var i=e.type,a=_B.get(i);a||_E("");var o=nH(t,function(e){return function(e,t){var n=new _O,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==cR&&_E("");var o=[],s={},l=e.dimensionsDefine;if(l)nW(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),null!=n&&(r_(s,n)&&_E(""),s[n]=r)});else for(var c=0;c<e.dimensionsDetectedCount||0;c++)o.push({index:c});var _=_v[_T(i,cR)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(r,a,o,e)},n.getRawData=nX(_j,null,e)),n.cloneRawData=nX(_M,null,e),n.count=nX(_b[_T(i,cR)],null,r,a,o);var u=_k[i];n.retrieveValue=function(e,t){return d(_(r,a,o,e),t)};var d=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return u(e,t,n.name)}};return n.getDimensionInfo=nX(_L,null,o,s),n.cloneAllDimensionInfo=nX(_R,null,o),n}(e,a)});return nH(oa(a.transform({upstream:o[0],upstreamList:o,config:nR(e.config)})),function(e,n){n2(e)||_E(""),e.data||_E(""),_z(_p(e.data))||_E("");var r,i=t[0];if(i&&0===n&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:cR,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:cR,sourceHeader:0,dimensions:e.dimensions};return _u(e.data,r,null)})}(r[a],t,0,0),a!==i-1&&(t.length=Math.max(t.length,1));return t}(i,o,{datasetIndex:r.componentIndex}):null!=a&&(n=[new _c({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nR(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},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=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=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];_Z(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new _X).initData(new _g(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(_Z(e)){var t=function(e){if(!e.get("data",!0))return ox(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ov).models[0]}(e);return t?[t.getSourceManager()]:[]}return nH(e.get("transform",!0)||e.get("fromTransformResult",!0)?ox(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ov).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;return _Z(r)?(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function _Q(e){e.option.transform&&(e.option.transform[rr]=!0)}function _Z(e){return"series"===e.mainType}function _0(e){throw Error(e)}function _1(){this.richTextStyles={},this._nextStyleNameId=on()}_1.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},_1.prototype.makeTooltipMarker=function(e,t,n){var r,i,a,o,s,l,c="richText"===n?this._generateStyleName():null,_=(o=(a=n0(r={color:t,type:e,renderMode:n,markerId:c})?{color:r,extraCssText:i}:r||{}).color,s=a.type,i=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+rO(o)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+rO(o)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n0(_)?_:(this.richTextStyles[c]=_.style,_.content)},_1.prototype.wrapRichTextStyle=function(e,t){var n={};nQ(t)?nW(t,function(e){return nz(n,e)}):nz(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"};var _2=om();function _3(e,t){return e.getName(t)||e.getId(t)}var _4=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return nv(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=_N({count:_8,reset:_5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(_2(this).sourceManager=new _Y(this)).prepareSource();var r=this.getInitialData(e,n);_9(r,this),this.dataTask.context.data=r,_2(this).dataBeforeProcessed=r,_6(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=cb(this),r=n?ck({},e):{},i=this.subType;cC.hasClass(i)&&(i+="Series"),nB(e,t.getTheme().get(this.subType)),nB(e,this.getDefaultOption()),oo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&cS(e,r,n)},n.prototype.mergeOption=function(e,t){e=nB(this.option,e,!0),this.fillDataTextStyle(e.data);var n=cb(this);n&&cS(this.option,e,n);var r=_2(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);_9(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,_2(this).dataBeforeProcessed=i,_6(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(e){if(e&&!n4(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&oo(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=ut(this);if(!t)return _2(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=ut(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}_2(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return rs(e)},n.prototype.getSourceManager=function(){return _2(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return _2(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,a,o,s,l,c=e.series,_=e.dataIndex,u=e.multipleSeries,d=c.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,m=c.getRawValue(_),h=nQ(m),g=(n=n||"transparent",n0(t=c.getData().getItemVisual(_,"style")[c.visualDrawType])?t:n2(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||h&&!f){var y=function(e,t,n,r,i){var a=t.getData(),o=n$(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],c=[];function _(e,t){var n,r=a.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?c.push(((n={markerType:"subItem",markerColor:i,name:r.displayName,value:e,valueType:r.type}).type="nameValue",n)):(s.push(e),l.push(r.type)))}return r.length?nW(r,function(e){_(_C(a,n,e),e)}):nW(e,_),{inlineValues:s,inlineValueTypes:l,blocks:c}}(m,c,_,p,g);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=d.getDimensionInfo(p[0]);l=a=_C(d,_,p[0]),o=x.type}else l=a=h?m[0]:m;var b=od(c),S=b&&c.name||"",k=d.getName(_),T=u?S:k;return(i={header:S,noHeader:u||!b,sortParam:l,blocks:[((r={markerType:"item",markerColor:g,name:T,noName:!rn(T),value:a,valueType:o,dataIndex:_}).type="nameValue",r)].concat(s||[])}).type="section",i}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nb.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=cU.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=_3(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.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)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=nG(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[_3(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if("series"===a)i.selectedMap="all";else if("multiple"===a){n2(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var c=t[l],_=_3(e,c);s[_]=!0,this._selectedDataIndicesMap[_]=e.getRawIndex(c)}}else if("single"===a||!0===a){var u=t[o-1],_=_3(e,u);(n={})[_]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[_]=e.getRawIndex(u),r)}}},n.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)}},n.registerClass=function(e){return cC.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(cC);function _6(e){var t,n,r,i=e.name;od(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),r=[],nW(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function _8(e){return e.model.getRawData().count()}function _5(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_7}function _7(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _9(e,t){nW(function(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}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,nY(ue,t))})}function ue(e,t){var n=ut(e);return n&&n.setOutputEnd((t||this).count()),t}function ut(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}}nU(_4,_D),nU(_4,cU),oC(_4,cC);var un=function(){function e(){this.group=new aZ,this.uid=lQ("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}();oT(un),oF(un);var ur=ss.CMD,ui=[[],[],[]],ua=Math.sqrt,uo=Math.atan2,us=Math.sqrt,ul=Math.sin,uc=Math.cos,u_=Math.PI;function uu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ud(e,t){return(e[0]*t[0]+e[1]*t[1])/(uu(e)*uu(t))}function up(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ud(e,t))}function uf(e,t,n,r,i,a,o,s,l,c,_){var u=u_/180*l,d=uc(u)*(e-n)/2+ul(u)*(t-r)/2,p=-1*ul(u)*(e-n)/2+uc(u)*(t-r)/2,f=d*d/(o*o)+p*p/(s*s);f>1&&(o*=us(f),s*=us(f));var m=(i===a?-1:1)*us((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,h=m*o*p/s,g=-(m*s)*d/o,y=(e+n)/2+uc(u)*h-ul(u)*g,x=(t+r)/2+ul(u)*h+uc(u)*g,b=up([1,0],[(d-h)/o,(p-g)/s]),S=[(d-h)/o,(p-g)/s],k=[(-1*d-h)/o,(-1*p-g)/s],T=up(S,k);if(-1>=ud(S,k)&&(T=u_),ud(S,k)>=1&&(T=0),T<0){var C=Math.round(T/u_*1e6)/1e6;T=2*u_+C%2*u_}_.addData(c,y,x,o,s,b,T,u,a)}var um=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,uh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.applyTransform=function(e){},t}(sb),uy=function(){this.cx=0,this.cy=0,this.r=0},uv=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(sb);uv.prototype.type="circle";var ux=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ub=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new ux},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=t.rx,a=t.ry,o=.5522848*i,s=.5522848*a;e.moveTo(n-i,r),e.bezierCurveTo(n-i,r-s,n-o,r-a,n,r-a),e.bezierCurveTo(n+o,r-a,n+i,r-s,n+i,r),e.bezierCurveTo(n+i,r+s,n+o,r+a,n,r+a),e.bezierCurveTo(n-o,r+a,n-i,r+s,n-i,r),e.closePath()},t}(sb);ub.prototype.type="ellipse";var uS=Math.PI,uk=2*uS,uT=Math.sin,uC=Math.cos,uw=Math.acos,uD=Math.atan2,uN=Math.abs,uF=Math.sqrt,uP=Math.max,uE=Math.min;function uA(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/uF(s*s+l*l),_=c*l,u=-c*s,d=e+_,p=t+u,f=n+_,m=r+u,h=(d+f)/2,g=(p+m)/2,y=f-d,x=m-p,b=y*y+x*x,S=i-a,k=d*m-f*p,T=(x<0?-1:1)*uF(uP(0,S*S*b-k*k)),C=(k*x-y*T)/b,w=(-k*y-x*T)/b,D=(k*x+y*T)/b,N=(-k*y+x*T)/b,F=C-h,P=w-g,E=D-h,A=N-g;return F*F+P*P>E*E+A*A&&(C=D,w=N),{cx:C,cy:w,x0:-_,y0:-u,x1:C*(i/S-1),y1:w*(i/S-1)}}var uI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},uO=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uI},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=uP(t.r,0),i=uP(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var _=t.cx,u=t.cy,d=!!t.clockwise,p=uN(c-l),f=p>uk&&p%uk;if(f>1e-4&&(p=f),r>1e-4)if(p>uk-1e-4)e.moveTo(_+r*uC(l),u+r*uT(l)),e.arc(_,u,r,l,c,!d),i>1e-4&&(e.moveTo(_+i*uC(c),u+i*uT(c)),e.arc(_,u,i,c,l,d));else{var m=void 0,h=void 0,g=void 0,y=void 0,x=void 0,b=void 0,S=void 0,k=void 0,T=void 0,C=void 0,w=void 0,D=void 0,N=void 0,F=void 0,P=void 0,E=void 0,A=r*uC(l),I=r*uT(l),O=i*uC(c),j=i*uT(c),M=p>1e-4;if(M){var L=t.cornerRadius;L&&(m=(n=function(e){var t;if(nQ(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],h=n[1],g=n[2],y=n[3]);var R=uN(r-i)/2;if(x=uE(R,g),b=uE(R,y),S=uE(R,m),k=uE(R,h),w=T=uP(x,b),D=C=uP(S,k),(T>1e-4||C>1e-4)&&(N=r*uC(c),F=r*uT(c),P=i*uC(l),E=i*uT(l),p<uS)){var B=function(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,_=o-i,u=s-a,d=u*l-_*c;if(!(d*d<1e-4))return d=(_*(t-a)-u*(e-i))/d,[e+d*l,t+d*c]}(A,I,P,E,N,F,O,j);if(B){var z=A-B[0],J=I-B[1],q=N-B[0],U=F-B[1],V=1/uT(uw((z*q+J*U)/(uF(z*z+J*J)*uF(q*q+U*U)))/2),W=uF(B[0]*B[0]+B[1]*B[1]);w=uE(T,(r-W)/(V+1)),D=uE(C,(i-W)/(V-1))}}}if(M)if(w>1e-4){var H=uE(g,w),$=uE(y,w),K=uA(P,E,A,I,r,H,d),G=uA(N,F,O,j,r,$,d);e.moveTo(_+K.cx+K.x0,u+K.cy+K.y0),w<T&&H===$?e.arc(_+K.cx,u+K.cy,w,uD(K.y0,K.x0),uD(G.y0,G.x0),!d):(H>0&&e.arc(_+K.cx,u+K.cy,H,uD(K.y0,K.x0),uD(K.y1,K.x1),!d),e.arc(_,u,r,uD(K.cy+K.y1,K.cx+K.x1),uD(G.cy+G.y1,G.cx+G.x1),!d),$>0&&e.arc(_+G.cx,u+G.cy,$,uD(G.y1,G.x1),uD(G.y0,G.x0),!d))}else e.moveTo(_+A,u+I),e.arc(_,u,r,l,c,!d);else e.moveTo(_+A,u+I);if(i>1e-4&&M)if(D>1e-4){var H=uE(m,D),$=uE(h,D),K=uA(O,j,N,F,i,-$,d),G=uA(A,I,P,E,i,-H,d);e.lineTo(_+K.cx+K.x0,u+K.cy+K.y0),D<C&&H===$?e.arc(_+K.cx,u+K.cy,D,uD(K.y0,K.x0),uD(G.y0,G.x0),!d):($>0&&e.arc(_+K.cx,u+K.cy,$,uD(K.y0,K.x0),uD(K.y1,K.x1),!d),e.arc(_,u,i,uD(K.cy+K.y1,K.cx+K.x1),uD(G.cy+G.y1,G.cx+G.x1),d),H>0&&e.arc(_+G.cx,u+G.cy,H,uD(G.y1,G.x1),uD(G.y0,G.x0),!d))}else e.lineTo(_+O,u+j),e.arc(_,u,i,c,l,d);else e.lineTo(_+O,u+j)}else e.moveTo(_,u);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(sb);uO.prototype.type="sector";var uj=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},uM=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;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}(sb);function uL(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,l=[],c=[],_=[],u=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)rS(o,o,e[d]),rk(s,s,e[d]);rS(o,o,r[0]),rk(s,s,r[1])}for(var d=0,p=e.length;d<p;d++){var f,m,h,g=e[d];if(n)i=e[d?d-1:p-1],a=e[(d+1)%p];else if(0===d||d===p-1){l.push([(f=e[d])[0],f[1]]);continue}else i=e[d-1],a=e[d+1];m=a,h=i,c[0]=m[0]-h[0],c[1]=m[1]-h[1],rg(c,c,t);var y=ry(g,i),x=ry(g,a),b=y+x;0!==b&&(y/=b,x/=b),rg(_,c,-y),rg(u,c,x);var S=rh([],g,_),k=rh([],g,u);r&&(rk(S,S,o),rS(S,S,s),rk(k,k,o),rS(k,k,s)),l.push(S),l.push(k)}return n&&l.push(l.shift()),l}(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 l=a[2*s],c=a[2*s+1],_=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],_[0],_[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,u=i.length;s<u;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}uM.prototype.type="ring";var uR=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},uB=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uR},t.prototype.buildPath=function(e,t){uL(e,t,!0)},t}(sb);uB.prototype.type="polygon";var uz=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},uJ=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uz},t.prototype.buildPath=function(e,t){uL(e,t,!1)},t}(sb);uJ.prototype.type="polyline";var uq={},uU=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},uV=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uU},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o=function(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&&(lS(2*r)===lS(2*i)&&(e.x1=e.x2=lk(r,s,!0)),lS(2*a)===lS(2*o)&&(e.y1=e.y2=lk(a,s,!0))),e}}(uq,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;0!==s&&(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}(sb);uV.prototype.type="line";var uW=[],uH=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u$(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?iD:iw)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?iD:iw)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?iI:iA)(e.x1,e.cpx1,e.x2,t),(n?iI:iA)(e.y1,e.cpy1,e.y2,t)]}var uK=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uH},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,l=t.cpx2,c=t.cpy2,_=t.percent;0!==_&&(e.moveTo(n,r),null==l||null==c?(_<1&&(ij(n,o,i,_,uW),o=uW[1],i=uW[2],ij(r,s,a,_,uW),s=uW[1],a=uW[2]),e.quadraticCurveTo(o,s,i,a)):(_<1&&(iP(n,o,l,i,_,uW),o=uW[1],l=uW[2],i=uW[3],iP(r,s,c,a,_,uW),s=uW[1],c=uW[2],a=uW[3]),e.bezierCurveTo(o,s,l,c,i,a)))},t.prototype.pointAt=function(e){return u$(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=u$(this.shape,e,!0),r=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},t}(sb);uK.prototype.type="bezier-curve";var uG=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},uX=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uG},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,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*i+n,c*i+r),e.arc(n,r,i,a,o,!s)},t}(sb);uX.prototype.type="arc";var uY={};function uQ(e,t,n,r){var i,a,o=new ug((i=function(e){var t,n=new ss;if(!e)return n;var r=0,i=0,a=0,o=0,s=ss.CMD,l=e.match(um);if(!l)return n;for(var c=0;c<l.length;c++){for(var _=l[c],u=_.charAt(0),d=void 0,p=_.match(uh)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var h=0;h<f;){var g=void 0,y=void 0,x=void 0,b=void 0,S=void 0,k=void 0,T=void 0,C=r,w=i,D=void 0,N=void 0;switch(u){case"l":r+=p[h++],i+=p[h++],d=s.L,n.addData(d,r,i);break;case"L":r=p[h++],i=p[h++],d=s.L,n.addData(d,r,i);break;case"m":r+=p[h++],i+=p[h++],d=s.M,n.addData(d,r,i),a=r,o=i,u="l";break;case"M":r=p[h++],i=p[h++],d=s.M,n.addData(d,r,i),a=r,o=i,u="L";break;case"h":r+=p[h++],d=s.L,n.addData(d,r,i);break;case"H":r=p[h++],d=s.L,n.addData(d,r,i);break;case"v":i+=p[h++],d=s.L,n.addData(d,r,i);break;case"V":i=p[h++],d=s.L,n.addData(d,r,i);break;case"C":d=s.C,n.addData(d,p[h++],p[h++],p[h++],p[h++],p[h++],p[h++]),r=p[h-2],i=p[h-1];break;case"c":d=s.C,n.addData(d,p[h++]+r,p[h++]+i,p[h++]+r,p[h++]+i,p[h++]+r,p[h++]+i),r+=p[h-2],i+=p[h-1];break;case"S":g=r,y=i,D=n.len(),N=n.data,t===s.C&&(g+=r-N[D-4],y+=i-N[D-3]),d=s.C,C=p[h++],w=p[h++],r=p[h++],i=p[h++],n.addData(d,g,y,C,w,r,i);break;case"s":g=r,y=i,D=n.len(),N=n.data,t===s.C&&(g+=r-N[D-4],y+=i-N[D-3]),d=s.C,C=r+p[h++],w=i+p[h++],r+=p[h++],i+=p[h++],n.addData(d,g,y,C,w,r,i);break;case"Q":C=p[h++],w=p[h++],r=p[h++],i=p[h++],d=s.Q,n.addData(d,C,w,r,i);break;case"q":C=p[h++]+r,w=p[h++]+i,r+=p[h++],i+=p[h++],d=s.Q,n.addData(d,C,w,r,i);break;case"T":g=r,y=i,D=n.len(),N=n.data,t===s.Q&&(g+=r-N[D-4],y+=i-N[D-3]),r=p[h++],i=p[h++],d=s.Q,n.addData(d,g,y,r,i);break;case"t":g=r,y=i,D=n.len(),N=n.data,t===s.Q&&(g+=r-N[D-4],y+=i-N[D-3]),r+=p[h++],i+=p[h++],d=s.Q,n.addData(d,g,y,r,i);break;case"A":x=p[h++],b=p[h++],S=p[h++],k=p[h++],T=p[h++],C=r,w=i,r=p[h++],uf(C,w,r,i=p[h++],k,T,x,b,S,d=s.A,n);break;case"a":x=p[h++],b=p[h++],S=p[h++],k=p[h++],T=p[h++],C=r,w=i,r+=p[h++],uf(C,w,r,i+=p[h++],k,T,x,b,S,d=s.A,n)}}("z"===u||"Z"===u)&&(d=s.Z,n.addData(d),r=a,i=o),t=d}return n.toStatic(),n}(e),(a=nz({},t)).buildPath=function(e){if(null!=e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;i.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,r,i,a,o,s,l=e.data,c=e.len(),_=ur.M,u=ur.C,d=ur.L,p=ur.R,f=ur.A,m=ur.Q;for(i=0,a=0;i<c;){switch(n=l[i++],a=i,r=0,n){case _:case d:r=1;break;case u:r=3;break;case m:r=2;break;case f:var h=t[4],g=t[5],y=ua(t[0]*t[0]+t[1]*t[1]),x=ua(t[2]*t[2]+t[3]*t[3]),b=uo(-t[1]/x,t[0]/y);l[i]*=y,l[i++]+=h,l[i]*=x,l[i++]+=g,l[i++]*=y,l[i++]*=x,l[i++]+=b,l[i++]+=b,i+=2,a=i;break;case p:s[0]=l[i++],s[1]=l[i++],rb(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],rb(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var S=ui[o];S[0]=l[i++],S[1]=l[i++],rb(S,S,t),l[a++]=S[0],l[a++]=S[1]}}e.increaseVersion()}}(i,e),this.dirtyShape()},a));return n&&("center"===r&&(n=uZ(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function uZ(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}function u0(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}uY.circle=uv,uY.ellipse=ub,uY.sector=uO,uY.ring=uM,uY.polygon=uB,uY.polyline=uJ,uY.rect=lw,uY.line=uV,uY.bezierCurve=uK,uY.arc=uX;var u1=om(),u2=(C=om(),function(e){var t=C(e),n=e.pipelineContext,r=!!t.large,i=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||i!==o)&&"reset"}),u3=function(){function e(){this.group=new aZ,this.uid=lQ("viewChart"),this.renderTask=_N({plan:u8,reset:u5}),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&&u6(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&u6(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.updateLayout=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){var t=this.group;if(t)if(nQ(t))for(var n=0;n<t.length;n++)u0(t[n],e);else u0(t,e)},e.markUpdateMethod=function(e,t){u1(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function u4(e,t,n){e&&s1(e)&&("emphasis"===t?sH:s$)(e,n)}function u6(e,t,n){var r,i,a=of(e,t),o=t&&null!=t.highlightKey?(null==(i=sk[r=t.highlightKey])&&sS<=32&&(i=sk[r]=sS++),i):null;null!=a?nW(oa(a),function(t){u4(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){u4(e,n,o)})}function u8(e){return u2(e.model)}function u5(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&u1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),u7[l]}oT(u3,["dispose"]),oF(u3);var u7={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)}}},u9=om(),de={itemStyle:oP(l$,!0),lineStyle:oP(lV,!0)},dt={lineStyle:"stroke",itemStyle:"fill"};function dn(e,t){var n=e.visualStyleMapper||de[t];return n||(console.warn("Unknown style type '"+t+"'."),de.itemStyle)}function dr(e,t){var n=e.visualDrawType||dt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var di=new lX,da=Math.PI,ds=function(){function e(e,t,n,r){this._stageTaskMap=rs(),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,o=null!=a?Math.ceil(a/i):null;return{step:i,modBy:o,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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=rs();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;nW(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});rt(!(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=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nW(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),c=l.seriesTaskMap,_=l.overallTask;if(_){var u,d=_.agentStubMap;d.each(function(e){o(r,e)&&(e.dirty(),u=!0)}),u&&_.dirty(),a.updatePayload(_,n);var p=a.getPerformArgs(_,r.block);d.each(function(e){e.perform(p)}),_.perform(p)&&(i=!0)}else c&&c.each(function(s,l){o(r,s)&&s.dirty();var c=a.getPerformArgs(s,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(c)&&(i=!0)})}}),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){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=rs(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,a&&a.get(s)||_N({plan:dd,reset:dp,count:dh}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||_N({reset:dl});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=rs(),l=e.seriesType,c=e.getTargetSeries,_=!0,u=!1;function d(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(u=!0,_N({reset:dc,onDirty:du})));n.context={model:e,overallProgress:_},n.agent=a,n.__block=_,i._pipe(e,n)}rt(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):c?c(n,r).each(d):(_=!1,nW(n.getSeries(),d)),u&&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 nZ(e)&&(e={overallReset:e,seriesType:function(e){B=null;try{e(dg,dy)}catch(e){}return B}(e)}),e.uid=lQ("stageHandler"),t&&(e.visualType=t),e},e}();function dl(e){e.overallReset(e.ecModel,e.api,e.payload)}function dc(e){return e.overallProgress&&d_}function d_(){this.agent.dirty(),this.getDownstream().dirty()}function du(){this.agent&&this.agent.dirty()}function dd(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oa(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?nH(t,function(e,t){return dm(t)}):df}var df=dm(0);function dm(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 dh(e){return e.data.count()}var dg={},dy={};function dv(e,t){for(var n in t.prototype)e[n]=ru}dv(dg,cW),dv(dy,cX),dg.eachSeriesByType=dg.eachRawSeriesByType=function(e){B=e},dg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(B=e.subType)};var dx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],db="#B9B8CE",dS="#100C2A",dk=function(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},dT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dC={darkMode:!0,color:dT,backgroundColor:dS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db},pageTextStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:dS},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:dk(),logAxis:dk(),valueAxis:dk(),categoryAxis:dk(),line:{symbol:"circle"},graph:{color:dT},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dC.categoryAxis.splitLine.show=!1;var dw=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(n0(e)){var i=ok(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nW(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var c=a[l],_=i.lastIndexOf(c);if(_>0&&_===i.length-c.length){var u=i.slice(0,_);"data"!==u&&(t.mainType=u,t[c.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,l=t.dataQuery;return c(s,a,"mainType")&&c(s,a,"subType")&&c(s,a,"index","componentIndex")&&c(s,a,"name")&&c(s,a,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),dD=["symbol","symbolSize","symbolRotate","symbolOffset"],dN=dD.concat(["symbolKeepAspect"]);function dF(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 l=e.getData(),c=of(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:nQ(c)?l.getName(c[0]):l.getName(c),selected:n0(r)?r:nz({},r)})}})}function dP(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var dE=Math.round(9*Math.random()),dA="function"==typeof Object.defineProperty,dI=function(){function e(){this._id="__ec_inner_"+dE++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return dA?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)},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}(),dO=sb.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()}}),dj=sb.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()}}),dM=sb.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),l=r-a+o+s,c=Math.asin(s/o),_=Math.cos(c)*o,u=Math.sin(c),d=Math.cos(c),p=.6*o,f=.7*o;e.moveTo(n-_,l+s),e.arc(n,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+_-u*p,l+s+d*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-_+u*p,l+s+d*p,n-_,l+s),e.closePath()}}),dL=sb.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()}}),dR={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}},dB={};nW({line:uV,rect:lw,roundRect:lw,square:lw,circle:uv,diamond:dj,pin:dM,arrow:dL,triangle:dO},function(e,t){dB[t]=new e});var dz=sb.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=aV(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=dB[r];i||(i=dB[r="rect"]),dR[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function dJ(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function dq(e,t,n,r,i,a,o){var s,l,c,_,u,d=0===e.indexOf("empty");return(d&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new r6(t,n,r,i),c=o?"center":"cover",u=_=new lb({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===c){var t={width:e.width,height:e.height};_.setStyle(uZ(l,t))}}})):u=0===e.indexOf("path://")?uQ(e.slice(7),{},new r6(t,n,r,i),o?"center":"cover"):new dz({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),u.__isEmptyBrush=d,u.setColor=dJ,a&&u.setColor(a),u}function dU(e){return isFinite(e)}function dV(e,t,n){for(var r,i,a,o,s,l,c,_,u,d,p="radial"===t.type?(a=Math.min(r=n.width,i=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=dU(o)?o:.5,s=dU(s)?s:.5,l=l>=0&&dU(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(c=null==t.x?0:t.x,_=null==t.x2?1:t.x2,u=null==t.y?0:t.y,d=null==t.y2?0:t.y2,t.global||(c=c*n.width+n.x,_=_*n.width+n.x,u=u*n.height+n.y,d=d*n.height+n.y),c=dU(c)?c:0,_=dU(_)?_:1,u=dU(u)?u:0,d=dU(d)?d:0,e.createLinearGradient(c,u,_,d)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function dW(e){return parseInt(e,10)}function dH(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||dW(s[r])||dW(e.style[r]))-(dW(s[a])||0)-(dW(s[o])||0)|0}function d$(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n1(t)?[t]:nQ(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(i=nH(i,function(e){return e/o}),a/=o)}return[i,a]}var dK=new ss(!0);function dG(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function dX(e){return"string"==typeof e&&"none"!==e}function dY(e){var t=e.fill;return null!=t&&"none"!==t}function dQ(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function dZ(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function d0(e,t,n){var r=la(t.image,t.__image,n);if(ls(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rd),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var d1=["shadowBlur","shadowOffsetX","shadowOffsetY"],d2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function d3(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){d8(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oM.opacity:o}(r||t.blend!==n.blend)&&(a||(d8(e,i),a=!0),e.globalCompositeOperation=t.blend||oM.blend);for(var s=0;s<d1.length;s++){var l=d1[s];(r||t[l]!==n[l])&&(a||(d8(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(d8(e,i),a=!0),e.shadowColor=t.shadowColor||oM.shadowColor),a}function d4(e,t,n,r,i){var a=d5(t,i.inHover),o=r?null:n&&d5(n,i.inHover)||{};if(a===o)return!1;var s=d3(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(d8(e,i),s=!0),dX(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(d8(e,i),s=!0),dX(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(d8(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(d8(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<d2.length;c++){var _=d2[c],u=_[0];(r||a[u]!==o[u])&&(s||(d8(e,i),s=!0),e[u]=a[u]||_[1])}return s}function d6(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 d8(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function d5(e,t){return t&&e.__hoverStyle||e.style}function d7(e,t){d9(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function d9(e,t,n,r){var i,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,c=!1;if(!s||function(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}(o,s)){if(s&&s.length&&(d8(e,n),e.restore(),c=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){d8(e,n),e.save();for(var _=!1,u=0;u<o.length;u++){var d=o[u];_=_||d.isZeroArea(),d6(e,d),e.beginPath(),d.buildPath(e,d.shape),e.clip()}n.allClipped=_,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(c=l=!0);var f=t instanceof sb&&t.autoBatch&&(g=dY(h=t.style),y=dG(h),!(h.lineDash||!(g^y)||g&&"string"!=typeof h.fill||y&&"string"!=typeof h.stroke||h.strokePercent<1||h.strokeOpacity<1||h.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||d8(e,n):(d8(e,n),d6(e,t));var m=d5(t,n.inHover);if(t instanceof sb)1!==n.lastDrawType&&(c=!0,n.lastDrawType=1),d4(e,t,p,c,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a,o,s=dG(n),l=dY(n),c=n.strokePercent,_=c<1,u=!t.path;(!t.silent||_)&&u&&t.createPathProxy();var d=t.path||dK,p=t.__dirty;if(!r){var f=n.fill,m=n.stroke,h=l&&!!f.colorStops,g=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,b=void 0,S=void 0,k=void 0,T=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(b=p?dV(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(S=p?dV(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(k=p||!t.__canvasFillPattern?d0(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=k),x&&(T=p||!t.__canvasStrokePattern?d0(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=k),h?e.fillStyle=b:y&&(k?e.fillStyle=k:l=!1),g?e.strokeStyle=S:x&&(T?e.strokeStyle=T:s=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(i=d$(t))[0],o=i[1]);var D=!0;(u||4&p)&&(d.setDPR(e.dpr),_?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,_?c:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!r&&(n.strokeFirst?(s&&dZ(e,n),l&&dQ(e,n)):(l&&dQ(e,n),s&&dZ(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof ly){3!==n.lastDrawType&&(c=!0,n.lastDrawType=3),d4(e,t,p,c,n);var h,g,y,x,b,S=m.text;if(null!=S&&(S+=""),S){e.font=m.font||nS,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var k=void 0,T=void 0;e.setLineDash&&m.lineDash&&(k=(b=d$(t))[0],T=b[1]),k&&(e.setLineDash(k),e.lineDashOffset=T),m.strokeFirst?(dG(m)&&e.strokeText(S,m.x,m.y),dY(m)&&e.fillText(S,m.x,m.y)):(dY(m)&&e.fillText(S,m.x,m.y),dG(m)&&e.strokeText(S,m.x,m.y)),k&&e.setLineDash([])}}else t instanceof lb?(2!==n.lastDrawType&&(c=!0,n.lastDrawType=2),i=c,d3(e,d5(t,n.inHover),p&&d5(p,n.inHover),i,n),function(e,t,n){var r=t.__image=la(n.image,t.__image,t,t.onload);if(r&&ls(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,_=n.sy||0;e.drawImage(r,c,_,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var c=n.sx,_=n.sy,u=o-c,d=s-_;e.drawImage(r,c,_,u,d,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(c=!0,n.lastDrawType=4),function(e,t,n){var r,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),i=a.length;r<i;r++){var l=a[r];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),d9(e,l,s,r===i-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,_=o.length;c<_;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),d9(e,l,s,c===_-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&r&&d8(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var pe=new dI,pt=new iq(100),pn=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pr(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&pe.delete(e);var a=pe.get(e);if(a)return a;var o=nJ(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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,c=0;c<pn.length;++c){var _=o[pn[c]];if(null!=_&&!nQ(_)&&!n0(_)&&!n1(_)&&"boolean"!=typeof _){l=!1;break}s.push(_)}if(l){t=s.join(",")+(i?"-svg":"");var u=pt.get(t);u&&(i?e.svgElement=u:e.image=u)}var d=function e(t){if(!t||0===t.length)return[[0,0]];if(n1(t)){var n=Math.ceil(t);return[[n,n]]}for(var r=!0,i=0;i<t.length;++i)if(!n1(t[i])){r=!1;break}if(r)return e([t]);for(var a=[],i=0;i<t.length;++i)if(n1(t[i])){var n=Math.ceil(t[i]);a.push([n,n])}else{var n=nH(t[i],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n1(e)){var t=Math.ceil(e);return[t,t]}var n=nH(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n0(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!n0(t[r])){n=!1;break}if(n)return e([t]);for(var i=[],r=0;r<t.length;++r)n0(t[r])?i.push([t[r]]):i.push(t[r]);return i}(o.symbol),m=nH(d,function(e){return pi(e)}),h=pi(p),g=!i&&nT.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=or(e,m[t]);for(var r=1,t=0,n=f.length;t<n;++t)r=or(r,f[t].length);e*=r;var i=h*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();g&&(g.width=x.width*n,g.height=x.height*n,a=g.getContext("2d")),function(){a&&(a.clearRect(0,0,g.width,g.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-h,l=0,c=0,_=0;s<x.height;){if(l%2==0){for(var u=c/2%f.length,m=0,b=0,S=0;m<2*x.width;){for(var k=0,t=0;t<d[_].length;++t)k+=d[_][t];if(k<=0)break;if(b%2==0){var T=(1-o.symbolSize)*.5,C=m+d[_][b]*T,w=s+p[l]*T,D=d[_][b]*o.symbolSize,N=p[l]*o.symbolSize,F=S/2%f[u].length;!function(e,t,s,l,c){var _=i?1:n,u=dq(c,e*_,t*_,s*_,l*_,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&y.children.push(d)}else d7(a,u)}(C,w,D,N,f[u][F])}m+=d[_][b],++S,++b===d[_].length&&(b=0)}++_===d.length&&(_=0)}s+=p[l],++c,++l===p.length&&(l=0)}}(),l&&pt.put(t,g||y),e.image=g,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,pe.set(e,s),e.dirty=!1,s}function pi(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var pa=new rw,po={},ps="__flagInMainProcess",pl="__pendingUpdate",pc="__needsUpdateStatus",p_=/^[a-zA-Z0-9_]+$/;function pu(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:pp(this,e,t)}}function pd(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return pp(this,e,t)}}function pp(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),rw.prototype[t].apply(e,n)}var pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nv(t,e),t}(rw),pm=pf.prototype;pm.on=pd("on"),pm.off=pd("off");var ph=function(e){function t(t,n,r){var i=e.call(this,new dw)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},n0(n)&&(n=pk[n]),i._dom=t,r.ssr;var a=i._zr=a3(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:n5(r.useDirtyRect,!1),useCoarsePointer:n5(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=function(e,t,n){var r,i,a,o,s,l=0,c=0,_=null;function u(){c=new Date().getTime(),_=null,e.apply(a,o||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,i=r-(f?l:c)-p,clearTimeout(_),f?_=setTimeout(u,p):i>=0?u():_=setTimeout(u,-i),l=r};return d.clear=function(){_&&(clearTimeout(_),_=null)},d.debounceNextCall=function(e){s=e},d}(nX(a.flush,a),17),(n=nR(n))&&_s(n,!0),i._theme=n,i._locale=function(e){if(!n0(e))return nB(nR(e),nR(lZ.EN),!1);var t=lZ[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nR(t):nB(nR(t),nR(lZ.EN),!1)}(r.locale||l1),i._coordSysMgr=new cQ;var o=i._api=ee(i);function s(e,t){return e.__prio-t.__prio}return i_(pS,s),i_(px,s),i._scheduler=new ds(i,o,px,pS),i._messageCenter=new pf,i._initEvents(),i.resize=nX(i.resize,i),a.animation.on("frame",i._onframe,i),G(a,i),X(a,i),i[rr]=!0,i}return nv(t,e),t.prototype._onframe=function(){if(!this._disposed){en(this);var e=this._scheduler;if(this[pl]){var t=this[pl].silent;this[ps]=!0;try{z(this),U.update.call(this,null,this[pl].updateParams)}catch(e){throw this[ps]=!1,this[pl]=null,e}this._zr.flush(),this[ps]=!1,this[pl]=null,$.call(this,t),K.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),W(this,r),e.performVisualTasks(r),Z(this,this._model,i,"remain",{}),n-=new Date-a}while(n>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[ps]){if(this._disposed)return void this.id;if(n2(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[ps]=!0,!this._model||t){var r,i,a,o=new c0(this._api),s=this._theme,l=this._model=new cW;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},pb);var c={seriesTransition:a,optionChanged:!0};if(n)this[pl]={silent:r,updateParams:c},this[ps]=!1,this.getZr().wakeUp();else{try{z(this),U.update.call(this,null,c)}catch(e){throw this[pl]=null,this[ps]=!1,e}this._ssr||this._zr.flush(),this[pl]=null,this[ps]=!1,$.call(this,r),K.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nb.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nb.svgSupported){var e=this._zr;return nW(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;nW(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nW(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(!pw[n])return this.getDataURL(e);var o=a,s=a,l=-a,c=-a,_=[],u=e&&e.pixelRatio||this.getDevicePixelRatio();nW(pC,function(a,u){if(a.group===n){var d=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nR(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),c=i(p.bottom,c),_.push({dom:d,left:p.left,top:p.top})}}),o*=u,s*=u,l*=u,c*=u;var d=l-o,p=c-s,f=nT.createCanvas(),m=a3(f,{renderer:t?"svg":"canvas"});if(m.resize({width:d,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lw({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),nW(_,function(e){var t=new lb({style:{x:e.left*u-o,y:e.top*u-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var h="";return nW(_,function(e){var t=e.left-o,n=e.top-s;h+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=h,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return V(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return V(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nW(og(this._model,e),function(e,r){r.indexOf("Models")>=0&&nW(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=og(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(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)}}(r,i,t):function(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)}}(r,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,t,n,r=this;nW(pg,function(e){var t=function(t){var n,i=r.getModel(),a=t.target;if("globalout"===e?n={}:a&&dP(a,function(e){var t=oI(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=nz({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&i.getComponent(o,s),c=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:c},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),nW(pv,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),nW(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(dF("map","selectchanged",t,r,e),dF("pie","selectchanged",t,r,e)):"select"===e.fromAction?(dF("map","selected",t,r,e),dF("pie","selected",t,r,e)):"unselect"===e.fromAction&&(dF("map","unselected",t,r,e),dF("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pD,""):e[pD]="");var e,t=this._api,n=this._model;nW(this._componentsViews,function(e){e.dispose(n,t)}),nW(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pC[this.id]},t.prototype.resize=function(e){if(!this[ps]){if(this._disposed)return void this.id;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[pl]&&(null==r&&(r=this[pl].silent),n=!0,this[pl]=null),this[ps]=!0;try{n&&z(this),U.update.call(this,{type:"resize",animation:nz({duration:0},e&&e.animation)})}catch(e){throw this[ps]=!1,e}this[ps]=!1,$.call(this,r),K.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(n2(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pT[e]){var n=pT[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=nz({},e);return t.type=pv[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((n2(t)||(t={silent:!!t}),py[e.type])&&this._model){if(this[ps])return void this._pendingActions.push(e);var n=t.silent;H.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&nb.browser.weChat&&this._throttledZrFlush(),$.call(this,n),K.call(this,n)}},t.prototype.updateLabelLayout=function(){pa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,r,i){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(e(s[l],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);if(a&&(a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),o){var c=t.textGuideLineConfig;o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}(e,n,r,-1/0),!0})}}function r(e,t){t.eachRendered(function(e){if(!s5(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(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&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!s5(e)){if(e instanceof sb&&((n=sT(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(r=e.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),e.__dirty){var n,r,a=e.prevStates;a&&e.useStates(a)}if(i){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}z=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),J(e,!0),J(e,!1),t.plan()},J=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,l=0;l<i.length;l++)i[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,_=!l&&a[c];if(!_){var u=ok(e.type);(_=new(t?un.getClass(u.main,u.sub):u3.getClass(u.sub))).init(n,s),a[c]=_,i.push(_),o.add(_.group)}e.__viewId=_.__id=c,_.__alive=!0,_.__model=e,_.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||r.prepareView(_,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&c(t)}):n.eachSeries(c);for(var l=0;l<i.length;){var _=i[l];_.__alive?l++:(t||_.renderTask.dispose(),o.remove(_.group),_.dispose(n,s),i.splice(l,1),a[_.__id]===_&&delete a[_.__id],_.__id=_.group.__ecComponentInfo=null)}},q=function(e,t,n,r,i){var a,o=e._model;if(o.setUpdatePayload(n),!r)return void nW([].concat(e._componentsViews).concat(e._chartsViews),_);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var c=n.excludeSeriesId;function _(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}null!=c&&(a=rs(),nW(oa(c),function(e){var t=ou(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s3(n))if(t instanceof _4)n.type!==sN||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=of(i,t);a=(nQ(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var c=oI(o);sX(r,c.focus,c.blurScope,n)}else{var _=e.get(["emphasis","focus"]),u=e.get(["emphasis","blurScope"]);null!=_&&sX(r,_,u,n)}}}(t,n,e._api);else{var r=sQ(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===sN&&i&&!n.notBlur&&sY(t.mainType,t.componentIndex,e._api),o&&nW(o,function(e){n.type===sN?sH(e):s$(e)})}else if(s2(n)&&t instanceof _4){if(e._api,s2(n)){var s=n.dataType,l=of(t.getData(s),n);nQ(l)||(l=[l]),t[n.type===sA?"toggleSelect":n.type===sP?"select":"unselect"](l,s)}sZ(t),et(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||_(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)},U={prepareAndUpdate:function(e){z(this),U.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),W(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),Y(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",c=r.get("darkMode");a.setBackgroundColor(l),null!=c&&"auto"!==c&&a.setDarkMode(c),pa.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=rs();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),Z(this,r,i,t,{},o),pa.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),u3.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Y(this,n,this._api,t,{}),pa.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),u3.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),pa.trigger("afterupdate",r,this._api))},updateLayout:function(e){U.update.call(this,e)}},V=function(e,t,n,r){if(e._disposed)return void e.id;for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=og(a,n),l=0;l<o.length;l++){var c=o[l];if(c[t]&&null!=(i=c[t](a,s,r)))return i}},W=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},H=function(e,t){var n,r=this,i=this.getModel(),a=e.type,o=e.escapeConnect,s=py[a],l=s.actionInfo,c=(l.update||"update").split(":"),_=c.pop(),u=null!=c[0]&&ok(c[0]);this[ps]=!0;var d=[e],p=!1;e.batch&&(p=!0,d=nH(e.batch,function(t){return(t=nJ(nz({},t),e)).batch=null,t}));var f=[],m=s2(e),h=s3(e);if(h&&sG(this._api),nW(d,function(t){if((n=(n=s.action(t,r._model,r._api))||nz({},t)).type=l.event||n.type,f.push(n),h){var i=oy(e),a=i.queryOptionMap;q(r,_,t,i.mainTypeSpecified?a.keys()[0]:"series"),et(r)}else m?(q(r,_,t,"series"),et(r)):u&&q(r,_,t,u.main,u.sub)}),"none"!==_&&!h&&!m&&!u)try{this[pl]?(z(this),U.update.call(this,e),this[pl]=null):U[_].call(this,e)}catch(e){throw this[ps]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[ps]=!1,!t){var g=this._messageCenter;if(g.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],i.eachSeries(function(e){nW(e.getAllData(),function(t){t.data;var n=t.type,r=e.getSelectedDataIndices();if(r.length>0){var i={dataIndex:r,seriesIndex:e.seriesIndex};null!=n&&(i.dataType=n),y.push(i)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};g.trigger(x.type,x)}}},$=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();H.call(this,n,e)}},K=function(e){e||this.trigger("updated")},G=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[pl]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},X=function(e,t){e.on("mouseover",function(e){var n,r,i,a,o,s=dP(e.target,s1);s&&(n=t._api,a=(i=sQ((r=oI(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,o=i.focusSelf,a?(o&&sY(r.componentMainType,r.componentIndex,n),nW(a,function(t){return sV(t,e)})):(sX(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&sY(r.componentMainType,r.componentIndex,n),sV(s,e)),et(t))}).on("mouseout",function(e){var n,r,i,a=dP(e.target,s1);a&&(sG(n=t._api),(i=sQ((r=oI(a)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?nW(i,function(t){return sW(t,e)}):sW(a,e),et(t))}).on("click",function(e){var n=dP(e.target,function(e){return null!=oI(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=oI(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Y=function(e,t,n,r,i){!function(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=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);i_(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nW(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)})}}(t),Q(e,t,n,r,i),nW(e._chartsViews,function(e){e.__alive=!1}),Z(e,t,n,r,i),nW(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Q=function(e,t,a,o,s,l){nW(l||e._componentsViews,function(e){var s=e.__model;r(s,e),e.render(s,t,a,o),n(s,e),i(s,e)})},Z=function(e,t,a,o,s,l){var c,_,u,d,p=e._scheduler;s=nz(s||{},{updatedSeries:t.getSeries()}),pa.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,i,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var c=s.renderTask;p.updatePayload(c,o),r(t,s),l&&l.get(t.uid)&&c.dirty(),c.perform(p.getPerformArgs(c))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,i=s,a=n.get("blendMode")||null,i.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),sZ(t)}),p.unfinished=f||p.unfinished,pa.trigger("series:layoutlabels",t,a,s),pa.trigger("series:transition",t,a,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),c=e,_=t,u=c._zr.storage,d=0,u.traverse(function(e){!e.isGroup&&d++}),!(d>_.get("hoverLayerThreshold"))||nb.node||nb.worker||_.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=c._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),pa.trigger("series:afterupdate",t,a,s)},et=function(e){e[pc]=!0,e.getZr().wakeUp()},en=function(e){e[pc]&&(e.getZr().storage.traverse(function(e){s5(e)||t(e)}),e[pc]=!1)},ee=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return nv(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sH(t,n),et(e)},n.prototype.leaveEmphasis=function(t,n){s$(t,n),et(e)},n.prototype.enterBlur=function(t){sJ(t,sL),et(e)},n.prototype.leaveBlur=function(t){sJ(t,sR),et(e)},n.prototype.enterSelect=function(t){sJ(t,sB),et(e)},n.prototype.leaveSelect=function(t){sJ(t,sz),et(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}(cX))(e)}}(),t}(rw).prototype;ph.on=pu("on"),ph.off=pu("off"),ph.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var pg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],py={},pv={},px=[],pb=[],pS=[],pk={},pT={},pC={},pw={},pD="_echarts_instance_";function pN(e){0>nq(pb,e)&&pb.push(e)}function pF(e,t){pj(px,e,t,2e3)}function pP(e,t){pa.on(e,t)}function pE(e,t,n){nZ(t)&&(n=t,t="");var r=n2(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),pv[t=e.event]||(rt(p_.test(r)&&p_.test(t)),py[r]||(py[r]={action:n,actionInfo:e}),pv[t]=r)}function pA(e,t){pj(pS,e,t,1e3,"layout")}function pI(e,t){pj(pS,e,t,3e3,"visual")}var pO=[];function pj(e,t,n,r,i){if((nZ(t)||n2(t))&&(n=t,t=r),!(nq(pO,n)>=0)){pO.push(n);var a=ds.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pM(e){return null==e?0:e.length||1}function pL(e){return e}pI(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=dn(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=dr(e,r),l=a[s],c=nZ(l)?l:null,_="auto"===a.fill||"auto"===a.stroke;if(!a[s]||c||_){var u=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=u,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||nZ(a.fill)?u:a.fill,a.stroke="auto"===a.stroke||nZ(a.stroke)?u:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=nz({},a);i[s]=c(r),t.setItemVisual(n,"style",i)}}}}),pI(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=dn(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){di.option=n[r];var o=i(di);nz(e.ensureUniqueItemVisual(t,"style"),o),di.option.decal&&(e.setItemVisual(t,"decal",di.option.decal),di.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pI(4500,{performRawSeries:!0,overallReset:function(e){var t=rs();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),u9(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=u9(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=dr(t,o);i.each(function(e){r[i.getRawIndex(e)]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),c=n.getName(e)||e+"",_=n.count();l[s]=t.getColorFromPalette(c,a,_)}})}})}}),pI(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<dD.length;o++){var s=dD[o],l=e.get(s);nZ(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(nz({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=nG(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<c.length;o++){var s=c[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}}),pI(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<dN.length;r++){var i=dN[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null}}}),pI(7e3,function(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");n&&(r.ensureUniqueItemVisual(e,"style").decal=pr(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=pr(i,t))}})}),pN(_s),pF(900,function(e){var t=rs();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.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(_l)}),pT.default=function(e,t){nJ(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new aZ,i=new lw({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var a=new lF({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lw({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&((n=new uX({shape:{startAngle:-da/2,endAngle:-da/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*da/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*da/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),c=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r},pE({type:sN,event:sN,update:sN},ru),pE({type:sF,event:sF,update:sF},ru),pE({type:sP,event:sP,update:sP},ru),pE({type:sE,event:sE,update:sE},ru),pE({type:sA,event:sA,update:sA},ru),pk.light={color:dx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],dx]},pk.dark=dC;var pR=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||pL,this._newKeyGetter=r||pL,this.context=i,this._diffModeMultiple="multiple"===a}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],l=pM(s);if(l>1){var c=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(c,a)}else 1===l?(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],l=n[s],c=r[s],_=pM(l),u=pM(c);if(_>1&&1===u)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===_&&u>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===_&&1===u)this._update&&this._update(c,l),r[s]=null;else if(_>1&&u>1)this._updateManyToMany&&this._updateManyToMany(c,l),r[s]=null;else if(_>1)for(var d=0;d<_;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}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=pM(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&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],l=pM(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pB=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._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pz(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pJ=function(e){this.otherDims={},null!=e&&nz(this,e)};var pq=om(),pU={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pV=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||(this._dimNameMap=pH(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return n5(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=_h(this.source),n=!(e>30),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,c=void 0,_=this.dimensions[o];if(_&&_.storeDimIndex===a)s=t?_.name:null,l=_.type,c=_.ordinalMeta,o++;else{var u=this.getSourceDimension(a);u&&(s=t?u.name:null,l=u.type)}i.push({property:s,type:l,ordinalMeta:c}),!t||null==s||_&&_.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=pU[l]||"f",c&&(r+=c.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.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 pW(e){for(var t=rs(),n=0;n<(e||[]).length;n++){var r=e[n],i=n2(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function pH(e){var t=pq(e);return t.dimNameMap||(t.dimNameMap=pW(e.dimensionsDefine))}var p$=n2,pK="undefined"==typeof Int32Array?Array:Int32Array,pG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pX=["_approximateExtent"],pY=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;e instanceof pV?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},c=0;c<n.length;c++){var _=n[c],u=n0(_)?new pJ({name:_}):_ instanceof pJ?_:new pJ(_),d=u.name;u.type=u.type||"float",u.coordDim||(u.coordDim=d,u.coordDimIndex=0);var p=u.otherDims=u.otherDims||{};a.push(d),i[d]=u,null!=l[d]&&(s=!0),u.createInvertedIndices&&(o[d]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),r&&(u.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=rs();nW(a,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n1(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))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(null==t)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,i,a,o,s,l,c,_,u,d,p,f,m,h=this;if(e instanceof _X&&(m=e),!m){var g=this.dimensions,y=__(e)||nV(e)?new _g(e,g.length):e;m=new _X;var x=nH(g,function(e){return{type:h._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(r=this,i=this._schema,o=(a={}).encode={},s=rs(),l=[],c=[],_={},nW(r.dimensions,function(e){var t=r.getDimensionInfo(e),n=t.coordDim;if(n){var i,a=t.coordDimIndex;pz(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(i=t.type)&&"time"!==i&&(l[0]=e),pz(_,n)[a]=r.getDimensionIndex(t.name)),t.defaultTooltip&&c.push(e)}cE.each(function(e,n){var r=pz(o,n),i=t.otherDims[n];null!=i&&!1!==i&&(r[i]=t.name)})}),u=[],d={},s.each(function(e,t){var n=o[t];d[t]=n[0],u=u.concat(n)}),a.dataDimsOnCoord=u,a.dataDimIndicesOnCoord=nH(u,function(e){return r.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=d,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?c=f.slice():c.length||(c=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=c,a.userOutput=new pB(_,i),a),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&&ec(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 null==this._idDimIdx&&e.getSource().sourceFormat!==cM&&!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===cA&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&n2(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var c=l.name;null==r[o]&&null!=c&&(r[o]=ou(c,null));var _=l.id;null==i[o]&&null!=_&&(i[o]=ou(_,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)ec(this,o);er(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){p$(e)?nz(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=ea(this,this._nameDimIdx,t)),null==n&&(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 ei(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))},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 nQ(e)?r.getValues(nH(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 null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){nZ(e)&&(n=t,t=e,e=[]);var r=n||this,i=nH(eo(e),this._getStoreDimIndex,this);this._store.each(i,r?nX(t,r):t)},e.prototype.filterSelf=function(e,t,n){nZ(e)&&(n=t,t=e,e=[]);var r=n||this,i=nH(eo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?nX(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=nG(e),i=[];return nW(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){nZ(e)&&(n=t,t=e,e=[]),n=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=nH(eo(e),this._getStoreDimIndex,this),o=el(this);return o._store=this._store.map(a,i?nX(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=nH(eo(e),this._getStoreDimIndex,this);this._store.modify(a,i?nX(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=el(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=el(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=el(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 lX(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pR(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ei(e,t)},function(e){return ei(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||{},p$(e)?nz(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(nQ(i=this.getVisual(t))?i=i.slice():p$(i)&&(i=nz({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,p$(t)?nz(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){p$(e)?nz(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?nz(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oO(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){nW(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nH(this.dimensions,this._getDimInfo,this),this.hostModel)),es(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];nZ(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(n9(arguments)))})},e.internalField=void(er=function(e){var t=e._invertedIndicesMap;nW(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new pK(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ea=function(e,t,n){return ou(e._getCategory(t,n),null)},ei=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=ea(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},eo=function(e){return nQ(e)||(e=null!=e?[e]:[]),e},el=function(t){var n=new e(t._schema?t._schema:nH(t.dimensions,t._getDimInfo,t),t.hostModel);return es(n,t),n},es=function(e,t){nW(pG.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nW(pX,function(n){e[n]=nR(t[n])}),e._calculationInfo=nz({},t._calculationInfo)},ec=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=ea(e,i,t)),null==s&&null!=a&&(r[t]=s=ea(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,c=l[o]=(l[o]||0)+1;s=o,c>1&&(s+="__ec__"+c),r[t]=s}}),e}();function pQ(e,t){return function(e,t){__(e)||(e=_d(e));var n,r,i,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],c=rs(),_=[],u=(n=e,r=s,i=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,a||0),nW(r,function(e){var t;n2(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),d=t.canOmitUnusedDimensions&&u>30,p=l===e.dimensionsDefine,f=p?pH(e):pW(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,u));for(var h=rs(m),g=new _V(u),y=0;y<g.length;y++)g[y]=-1;function x(e){var t=g[e];if(t<0){var n=l[e],r=n2(n)?n:{name:n},i=new pJ,a=r.name;null!=a&&null!=f.get(a)&&(i.name=i.displayName=a),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var o=_.length;return g[e]=o,i.storeDimIndex=e,_.push(i),i}return _[t]}if(!d)for(var y=0;y<u;y++)x(y);h.each(function(e,t){var n=oa(e).slice();if(1===n.length&&!n0(n[0])&&n[0]<0)return void h.set(t,!1);var r=h.set(t,[]);nW(n,function(e,n){var i=n0(e)?f.get(e):e;null!=i&&i<u&&(r[n]=i,S(x(i),t,n))})});var b=0;function S(e,t,n){null!=cE.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,c.set(t,!0))}nW(s,function(e){if(n0(e))i=e,r={};else{var t,n,r,i=(r=e).name,a=r.ordinalMeta;r.ordinalMeta=null,(r=nz({},r)).ordinalMeta=a,t=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var o=h.get(i);if(!1!==o){if(!(o=oa(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;b<u&&null!=x(b).coordDim;)b++;b<u&&o.push(b++)}nW(o,function(e,a){var o=x(e);if(p&&null!=r.type&&(o.type=r.type),S(nJ(o,r),i,a),null==o.name&&t){var s=t[a];n2(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nJ(o.otherDims,n)})}});var k=t.generateCoord,T=t.generateCoordCount,C=null!=T;T=k?T||1:0;var w=k||"value";function D(e){null==e.name&&(e.name=e.coordDim)}if(d)nW(_,function(e){D(e)}),_.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var N=0;N<u;N++){var F=x(N);null==F.coordDim&&(F.coordDim=function(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}(w,c,C),F.coordDimIndex=0,(!k||T<=0)&&(F.isExtraCoord=!0),T--),D(F),null==F.type&&(1===cz(e,N)||F.isExtraCoord&&(null!=F.otherDims.itemName||null!=F.otherDims.seriesName))&&(F.type="ordinal")}return function(e){for(var t=rs(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}(_),new pV({source:e,dimensions:_,fullDimensionCount:u,dimensionOmitted:d})}(e,t).dimensions}var pZ=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();oF(pZ);var p0=0,p1=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++p0}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&nH(r,p2);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n0(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=rs(this.categories))},e}();function p2(e){return n2(e)&&null!=e.value?e.value:e+""}function p3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function p4(e,t){return e>=t[0]&&e<=t[1]}function p6(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function p8(e,t){return e*(t[1]-t[0])+t[0]}var p5=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new p1({})),nQ(r)&&(r=new p1({categories:nH(r,function(e){return n2(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return nv(t,e),t.prototype.parse=function(e){return null==e?NaN:n0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return p4(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p6(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(p8(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null==e){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=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=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 null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(pZ);pZ.registerClass(p5);var p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return nv(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p4(e,this._extent)},t.prototype.normalize=function(e){return p6(e,this._extent)},t.prototype.scale=function(e){return p8(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a8(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:a6(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=a6(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:a6(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],c=(a.value-o.value)/e;s<e-1;){var _=a6(o.value+(s+1)*c);_>r[0]&&_<r[1]&&l.push(_),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=a8(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=a6(e.value,n,!0);if(isNaN(ot(r)))return n0(r)?r:"-";var i=(r+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a,o,s,l,c,_,u=(s=e,c=(l={}).interval=oe((r[1]-r[0])/s,!0),null!=t&&c<t&&(c=l.interval=t),null!=n&&c>n&&(c=l.interval=n),_=l.intervalPrecision=a8(c)+2,a=l.niceTickExtent=[a6(Math.ceil(r[0]/c)*c,_),a6(Math.floor(r[1]/c)*c,_)],o=r,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p3(a,0,o),p3(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=u.intervalPrecision,this._interval=u.interval,this._niceExtent=u.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=a6(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=a6(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(pZ);pZ.registerClass(p7);var p9=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},fe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return nv(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return ce(e.value,l6[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(l9(this._minLevelUnit))]||l6.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if(n0(n))a=n;else if(nZ(n))a=n(e.value,t,{level:e.level});else{var o=nz({},l3);if(e.level>0)for(var s=0;s<l8.length;++s)o[l8[s]]="{primary|"+o[l8[s]]+"}";var l=n?!1===n.inherit?n:nJ(n,o):o,c=ct(e.value,i);if(l[c])a=l[c];else if(l.inherit){for(var _=l5.indexOf(c),s=_-1;s>=0;--s)if(l[c]){a=l[c];break}a=a||o.none}if(nQ(a)){var u=null==e.level?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return ce(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){for(var i=0,a=[],o=[],s=0,l=0,c=0;c<l5.length&&i++<1e4;++c){var _,u=l9(l5[c]);if((_=l5[c])===l9(_)&&(!function(e,i,a){var o=[],s=!i.length;if(!function(e,t,n,r){var i=a7(t),a=a7(n),o=function(e){return cn(i,e,r)===cn(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},_=function(){return c()&&o("hour")},u=function(){return _()&&o("minute")},d=function(){return u()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return _();case"minute":return u();case"second":return d();case"millisecond":return d()&&o("millisecond")}}(l9(e),r[0],r[1],n)){s&&(i=[{value:function(e,t,n){var r=new Date(e);switch(l9(t)){case"year":case"month":r[c_(n)](0);case"day":r[cu(n)](1);case"hour":r[cd(n)](0);case"minute":r[cp(n)](0);case"second":r[cf(n)](0),r[cm(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var c=i[l].value,_=i[l+1].value;if(c!==_){var u,d,p,f=void 0,m=void 0,h=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=cr(n),h=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(u=t/2592e6)>6?6:u>3?3:u>2?2:1,m=ci(n),h=c_(n);break;case"week":case"half-week":case"day":f=(d=t/864e5)>16?16:d>7.5?7:d>3.5?4:d>1.5?2:1,m=ca(n),h=cu(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=co(n),h=cd(n);break;case"minute":f=fn(t,!0),m=cs(n),h=cp(n);break;case"second":f=fn(t,!1),m=cl(n),h=cf(n);break;case"millisecond":f=oe(t,!0),m=cc(n),h=cm(n)}!function(e,t,n,i,a,o,s){for(var l=new Date(t),c=t,_=l[i]();c<n&&c<=r[1];)s.push({value:c}),_+=e,l[a](_),c=l.getTime();s.push({value:c,notAdd:!0})}(f,c,_,m,h,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(l5[c],a[a.length-1]||[],o),u!==(l5[c+1]?l9(l5[c+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var d=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(d.push(o[p]),f>=r[0]&&f<=r[1]&&s++)}var m=(r[1]-r[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(d),s>m||e===l5[c]))break}o=[]}}for(var h=nK(nH(a,function(e){return nK(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),g=[],y=h.length-1,c=0;c<h.length;++c)for(var x=h[c],b=0;b<x.length;++b)g.push({value:x[b].value,level:y-c});g.sort(function(e,t){return e.value-t.value});for(var S=[],c=0;c<g.length;++c)(0===c||g[c].value!==g[c-1].value)&&S.push(g[c]);return S}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=ft.length,o=Math.min(p9(ft,this._approxInterval,0,a),a-1);this._interval=ft[o][1],this._minLevelUnit=ft[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n1(e)?e:+a7(e)},t.prototype.contain=function(e){return p4(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p6(this.parse(e),this._extent)},t.prototype.scale=function(e){return p8(e,this._extent)},t.type="time",t}(p7),ft=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function fn(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}pZ.registerClass(fe);var fr=pZ.prototype,fi=p7.prototype,fa=Math.floor,fo=Math.ceil,fs=Math.pow,fl=Math.log,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p7,t._interval=0,t}return nv(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return nH(fi.getTicks.call(this,e),function(e){var t=e.value,i=a6(fs(this.base,t));return i=t===n[0]&&this._fixMin?a6(i,a8(r[0])):i,{value:i=t===n[1]&&this._fixMax?a6(i,a8(r[1])):i}},this)},t.prototype.setExtent=function(e,t){var n=fl(this.base);e=fl(Math.max(0,e))/n,t=fl(Math.max(0,t))/n,fi.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,r=fr.getExtent.call(this);r[0]=fs(n,r[0]),r[1]=fs(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=(e=r[0],a6(e,a8(i[0])))),this._fixMax&&(r[1]=(t=r[1],a6(t,a8(i[1])))),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fl(e[0])/fl(t),e[1]=fl(e[1])/fl(t),fr.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var r=Math.pow(10,a9(n));for(e/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[a6(fo(t[0]/r)*r),a6(fa(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){fi.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p4(e=fl(e)/fl(this.base),this._extent)},t.prototype.normalize=function(e){return p6(e=fl(e)/fl(this.base),this._extent)},t.prototype.scale=function(e){return e=p8(e,this._extent),fs(this.base,e)},t.type="log",t}(pZ),f_=fc.prototype;function fu(e,t,n){this._prepareParams(e,t,n)}f_.getMinorTicks=fi.getMinorTicks,f_.getLabel=fi.getLabel,pZ.registerClass(fc),fu.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;nZ(a)?this._modelMinNum=ff(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=ff(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(nZ(o)?this._modelMaxNum=ff(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=ff(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=nQ(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aU(l[0],1),aU(l[1],1)]}},fu.prototype.calculate=function(){var e,t,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,c="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,_=null!=l,u=null!=c;null==l&&(l=n?a?0:NaN:r-o[0]*s),null==c&&(c=n?a?a-1:NaN:i+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=c&&isFinite(c)||(c=NaN);var d=(e=l)!=e||(t=c)!=t||n&&!a;this._needCrossZero&&(l>0&&c>0&&!_&&(l=0),l<0&&c<0&&!u&&(c=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,_=!0),null!=f&&(c=f,u=!0),{min:l,max:c,minFixed:_,maxFixed:u,isBlank:d}},fu.prototype.modifyDataMinMax=function(e,t){this[fp[e]]=t},fu.prototype.setDeterminedMinMax=function(e,t){this[fd[e]]=t},fu.prototype.freeze=function(){this.frozen=!0};var fd={min:"_determinedMin",max:"_determinedMax"},fp={min:"_dataMin",max:"_dataMax"};function ff(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function fm(){}function fh(e,t){var n;return function(e,t,n,r,i){n=n||s7;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||s7).rich;if(n){t=t||{};for(var r=nG(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l){for(var c in a={},l)if(l.hasOwnProperty(c)){var _=t.getModel(["rich",c]);ln(a[c]={},_,s,n,r,i,!1,!0)}}a&&(e.rich=a);var u=t.get("overflow");u&&(e.overflow=u);var d=t.get("minMargin");null!=d&&(e.margin=d),ln(e,t,s,n,r,i,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}fm.prototype.getNeedCrossZero=function(){return!this.option.scale},fm.prototype.getCoordSysModel=function(){};var fg=[];function fy(){var e=null!==oz&&oz.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}rf(fy,oz),fy.prototype.traverse=function(e,t){e.call(t,this)},fy.prototype.useStyle=function(){this.style={}},fy.prototype.getCursor=function(){return this._cursor},fy.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fy.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fy.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fy.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fy.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fy.prototype.getDisplayables=function(){return this._displayables},fy.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fy.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])},fy.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}},fy.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new r6(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(fg)),e.union(r)}this._rect=e}return this._rect},fy.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};var fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return rf(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=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),sb.prototype.getBoundingRect.call(this)},t}(sb),fx=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function fb(e){var t=_4.extend(e);return _4.registerClass(t),t}function fS(e){var t=u3.extend(e);return u3.registerClass(t),t}rf(function(e,t,n,r,i,a){var o=w.call(this,i)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==r?0:r,o.type="linear",o.global=a||!1,o},w=fx),rf(function(e,t,n,r,i){var a=D.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=i||!1,a},D=fx);var fk=[],fT={registerPreprocessor:pN,registerProcessor:pF,registerPostInit:function(e){pP("afterinit",e)},registerPostUpdate:function(e){pP("afterupdate",e)},registerUpdateLifecycle:pP,registerAction:pE,registerCoordinateSystem:function(e,t){cQ.register(e,t)},registerLayout:pA,registerVisual:pI,registerTransform:function(e){var t=(e=nR(e)).type;t||_E("");var n=t.split(":");2!==n.length&&_E("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,_B.set(t,e)},registerLoading:function(e,t){pT[e]=t},registerMap:function(e,t,n){var r=po.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){po[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:cC,ComponentView:un,SeriesModel:_4,ChartView:u3,registerComponentModel:function(e){cC.registerClass(e)},registerComponentView:function(e){un.registerClass(e)},registerSeriesModel:function(e){_4.registerClass(e)},registerChartView:function(e){u3.registerClass(e)},registerSubTypeDefaulter:function(e,t){cC.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a0[e]=t}};function fC(e){nQ(e)?nW(e,function(e){fC(e)}):nq(fk,e)>=0||(fk.push(e),nZ(e)&&(e={install:e}),e.install(fT))}var fw=2*Math.PI,fD=ss.CMD,fN=["top","right","bottom","left"];function fF(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,_=Math.sqrt(l*l+c*c),u=((i-e)*(l/=_)+(a-t)*(c/=_))/_;s&&(u=Math.min(Math.max(u,0),1)),u*=_;var d=o[0]=e+u*l,p=o[1]=t+u*c;return Math.sqrt((d-i)*(d-i)+(p-a)*(p-a))}function fP(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,c=o[0]=Math.min(Math.max(i,e),s),_=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((c-i)*(c-i)+(_-a)*(_-a))}var fE=[],fA=new rX,fI=new rX,fO=new rX,fj=new rX,fM=new rX;function fL(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||fN,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,_=e.getComputedTransform(),u=_&&rG([],_),d=t.get("length2")||0;c&&fO.copy(c);for(var p=0;p<o.length;p++){!function(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-0),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+0),i.set(0,1);break;case"left":r.set(n.x-0,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+0,n.y+o/2),i.set(1,0)}}(o[p],0,s,fA,fj),rX.scaleAndAdd(fI,fA,fj,d),fI.transform(u);var f=e.getBoundingRect(),m=c?c.distance(fI):e instanceof sb?function(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,c=1/0,_=t.data,u=e.x,d=e.y,p=0;p<_.length;){var f=_[p++];1===p&&(a=_[p],o=_[p+1],s=a,l=o);var m=c;switch(f){case fD.M:s=_[p++],l=_[p++],a=s,o=l;break;case fD.L:m=fF(a,o,_[p],_[p+1],u,d,fE,!0),a=_[p++],o=_[p++];break;case fD.C:m=iE(a,o,_[p++],_[p++],_[p++],_[p++],_[p],_[p+1],u,d,fE),a=_[p++],o=_[p++];break;case fD.Q:m=iM(a,o,_[p++],_[p++],_[p],_[p+1],u,d,fE),a=_[p++],o=_[p++];break;case fD.A:var h=_[p++],g=_[p++],y=_[p++],x=_[p++],b=_[p++],S=_[p++];p+=1;var k=!!(1-_[p++]);r=Math.cos(b)*y+h,i=Math.sin(b)*x+g,p<=1&&(s=r,l=i);var T=(u-h)*x/y+h;m=function(e,t,n,r,i,a,o,s,l){var c=Math.sqrt((o-=e)*o+(s-=t)*s),_=(o/=c)*n+e,u=(s/=c)*n+t;if(Math.abs(r-i)%fw<1e-4)return l[0]=_,l[1]=u,c-n;if(a){var d=r;r=s_(i),i=s_(d)}else r=s_(r),i=s_(i);r>i&&(i+=fw);var p=Math.atan2(s,o);if(p<0&&(p+=fw),p>=r&&p<=i||p+fw>=r&&p+fw<=i)return l[0]=_,l[1]=u,c-n;var f=n*Math.cos(r)+e,m=n*Math.sin(r)+t,h=n*Math.cos(i)+e,g=n*Math.sin(i)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(h-o)*(h-o)+(g-s)*(g-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=h,l[1]=g,Math.sqrt(x))}(h,g,x,b,b+S,k,T,d,fE),a=Math.cos(b+S)*y+h,o=Math.sin(b+S)*x+g;break;case fD.R:m=fP(s=a=_[p++],l=o=_[p++],_[p++],_[p++],u,d,fE);break;case fD.Z:m=fF(a,o,s,l,u,d,fE,!0),a=s,o=l}m<c&&(c=m,n.set(fE[0],fE[1]))}return c}(fI,e.path,fO):function(e,t,n){var r=fP(t.x,t.y,t.width,t.height,e.x,e.y,fE);return n.set(fE[0],fE[1]),r}(fI,f,fO);m<l&&(l=m,fI.transform(_),fO.transform(_),fO.toArray(a[0]),fI.toArray(a[1]),fA.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fA.fromArray(e[0]),fI.fromArray(e[1]),fO.fromArray(e[2]),rX.sub(fj,fA,fI),rX.sub(fM,fO,fI);var n=fj.len(),r=fM.len();if(!(n<.001)&&!(r<.001)&&(fj.scale(1/n),fM.scale(1/r),Math.cos(t)<fj.dot(fM))){var i=fF(fI.x,fI.y,fO.x,fO.y,fA.x,fA.y,fR,!1);fB.fromArray(fR),fB.scaleAndAdd(fM,i/Math.tan(Math.PI-t));var a=fO.x!==fI.x?(fB.x-fI.x)/(fO.x-fI.x):(fB.y-fI.y)/(fO.y-fI.y);if(isNaN(a))return;a<0?rX.copy(fB,fI):a>1&&rX.copy(fB,fO),fB.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fR=[],fB=new rX;function fz(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function fJ(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=ry(r[0],r[1]),a=ry(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=rx([],r[1],r[0],o/i),l=rx([],r[1],r[2],o/a),c=rx([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var _=1;_<r.length;_++)e.lineTo(r[_][0],r[_][1])}var fq=[0,0],fU=[0,0],fV=new rX,fW=new rX,fH=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rX;for(var n=0;n<2;n++)this._axes[n]=new rX;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 l=0;l<4;l++)n[l].transform(t);rX.sub(r[0],n[1],n[0]),rX.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return(fV.set(1/0,1/0),fW.set(0,0),!this._intersectCheckOneSide(this,e,fV,fW,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,fV,fW,r,-1)&&(n=!1,r))?n:(r||rX.copy(t,n?fV:fW),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,fq),this._getProjMinMaxOnAxis(s,t._corners,fU),fq[1]<fU[0]||fq[0]>fU[1]){if(o=!1,i)return o;var c=Math.abs(fU[0]-fq[1]),_=Math.abs(fq[0]-fU[1]);Math.min(c,_)>r.len()&&(c<_?rX.scale(r,l,-c*a):rX.scale(r,l,_*a))}else if(n){var c=Math.abs(fU[0]-fq[1]),_=Math.abs(fq[0]-fU[1]);Math.min(c,_)<n.len()&&(c<_?rX.scale(n,l,c*a):rX.scale(n,l,-_*a))}}return o},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,l=1;l<t.length;l++){var c=t[l].dot(r)+i[e];o=Math.min(c,o),s=Math.max(c,s)}n[0]=o,n[1]=s},e}();function f$(e,t,n,r,i,a){var o,s,l,c=e.length;if(!(c<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var _=0,u=!1,d=[],p=0,f=0;f<c;f++){var m=e[f],h=m.rect;(o=h[t]-_)<0&&(h[t]-=o,m.label[t]-=o,u=!0);var g=Math.max(-o,0);d.push(g),p+=g,_=h[t]+h[n]}p>0&&a&&k(-p/c,0,c);var y=e[0],x=e[c-1];return b(),s<0&&T(-s,.8),l<0&&T(l,.8),b(),S(s,l,1),S(l,s,-1),b(),s<0&&C(-s),l<0&&C(l),u}function b(){s=y.rect[t]-r,l=i-x.rect[t]-x.rect[n]}function S(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){k(r*n,0,c);var i=r+e;i<0&&T(-i*n,1)}else T(-e*n,1)}}function k(n,r,i){0!==n&&(u=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function T(r,i){for(var a=[],o=0,s=1;s<c;s++){var l=e[s-1].rect,_=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(_),o+=_}if(o){var u=Math.min(Math.abs(r)/o,i);if(r>0)for(var s=0;s<c-1;s++){var d=a[s]*u;k(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=a[s-1]*u;k(-d,s,c)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(c-1)),r=0;r<c-1;r++)if(t>0?k(n,0,r+1):k(-n,c-r-1,c),(e-=n)<=0)return}}var fK=["align","verticalAlign","width","height","fontSize"],fG=new aj,fX=om(),fY=om();function fQ(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var fZ=["x","y","rotation"],f0=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,o=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),c=r.getBoundingRect().plain();r6.applyTransform(c,c,l),l?fG.setLocalTransform(l):(fG.x=fG.y=fG.rotation=fG.originX=fG.originY=0,fG.scaleX=fG.scaleY=1),fG.rotation=s_(fG.rotation);var _=r.__hostTarget;if(_){a=_.getBoundingRect().plain();var u=_.getComputedTransform();r6.applyTransform(a,a,u)}var d=a&&_.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:fG.x,y:fG.y,scaleX:fG.scaleX,scaleY:fG.scaleY,rotation:fG.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(nZ(r)||nG(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=oI(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],a=i.label,o=a.__hostTarget,s=i.defaultAttr,l=void 0;l=(l=nZ(i.layoutOption)?i.layoutOption(function(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:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(r&&r.shape.points)}}(i,o)):i.layoutOption)||{},i.computedLayoutOption=l;var c=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*c:s.attachedRot,offset:[l.dx||0,l.dy||0]});var _=!1;if(null!=l.x?(a.x=a4(l.x,t),a.setStyle("x",0),_=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=a4(l.y,n),a.setStyle("y",0),_=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var u=o.getTextGuideLine();u&&(u.setShape({points:l.labelLinePoints}),_=!1)}fX(a).needsUpdateLabelLine=_,a.rotation=null!=l.rotate?l.rotate*c:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var d=0;d<fK.length;d++){var p=fK[d];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=i.seriesModel;null!=i.dataIndex&&(f=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),a.on("drag",function(e,t){return function(){fL(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,c=o.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var _=s?new fH(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:o,obb:_,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),i=nK(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=nK(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});f$(i,"x","width",0,t,void 0),f$(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new r6(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,c=a.label,_=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var u=a.obb,d=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fH(f.localRect,f.transform)),u||(u=new fH(s,l)),u.intersect(f.obb)))){d=!0;break}}d?(r(c),_&&r(_)):(c.attr("ignore",a.defaultAttr.ignore),_&&_.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(nK(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nW(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=fX(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=oI(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var c=o.getModel("labelLine");!function(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,l=0;l<sD.length;l++){var c=sD[l],_=t[c],u="normal"===c;if(_){var d=_.get("show");if((u?s:n5(i.states[c]&&i.states[c].ignore,s))||!n5(d,o)){var p=u?r:r&&r.states[c];p&&(p.ignore=!0),r&&fz(r,!0,c,_);continue}!r&&(r=new uJ,e.setTextGuideLine(r),u||!s&&o||fz(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),fz(r,!1,c,_)}}if(r){nJ(r.style,n),r.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=fJ}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<sw.length;r++){var i=sw[r];n[i]=e.getModel([i,t])}return n}(o),s),fL(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!s5(e))){var i=fX(n),a=i.oldLayout,o=oI(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(o.dataType);if(a){n.attr(a);var _=e.prevStates;_&&(nq(_,"select")>=0&&n.attr(i.oldLayoutSelect),nq(_,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),s6(n,l,t,s)}else if(n.attr(l),!lr(n).valueAnimation){var u=n5(n.style.opacity,1);n.style.opacity=0,s8(n,{style:{opacity:u}},t,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};fQ(d,l,fZ),fQ(d,n.states.select,fZ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};fQ(p,l,fZ),fQ(p,n.states.emphasis,fZ)}var f=lr(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,h=n5(f.interpolatedValue,f.prevValue),g=f.value;n.percent=0,(null==f.prevValue?s8:s6)(n,{percent:1},t,s,null,function(e){var r=function(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(n1(r)){var o,s=(r-(o=n||0))*i+o;return a6(s,a?Math.max(a8(n||0),a8(r)):t)}if(n0(r))return i<1?n:r;for(var l=[],c=Math.max(n?n.length:0,r.length),_=0;_<c;++_){var u=e.getDimensionInfo(_);if(u&&"ordinal"===u.type)l[_]=(i<1&&n?n:r)[_];else{var d=n&&n[_]?n[_]:0,p=r[_],s=(p-d)*i+d;l[_]=a6(s,a?Math.max(a8(d),a8(p)):t)}}return l}(c,f.precision,h,g,e);f.interpolatedValue=1===e?null:r,function(e,t){for(var n=0;n<sw.length;n++){var r=sw[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)}(n,function(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=nZ(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},c=0;c<sw.length;c++){var _=sw[c],u=t[_];l[_]=n5(i?i.getFormattedLabel(a,_,null,o,u&&u.get("formatter")):null,r)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(r):r+""},f.statesModels,r))})}}if(r&&!r.ignore&&!r.invisible){var i=fY(r),a=i.oldLayout,y={points:r.shape.points};a?(r.attr({shape:a}),s6(r,{shape:y},t)):(r.setShape(y),r.style.strokePercent=0,s8(r,{style:{strokePercent:1}},t)),i.oldLayout=y}},e}(),f1=om();function f2(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=f1(t).labelManager;r||(r=f1(t).labelManager=new f0),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=f1(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function f3(e,t,n){var r=nT.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}fC(f2);var f4=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||aw,"string"==typeof t?i=f3(t,n,r):n2(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(rc(i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return rf(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f3("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new r6(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new r6(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,c=0;c<a.length;++c){var _=a[c];if(_.intersect(e)){var u=new r6(0,0,0,0);u.copy(_),u.union(e),a[c]=u,n=!0;break}if(s){l.copy(e),l.union(_);var d=e.width*e.height,p=_.width*_.height,f=l.width*l.height-d-p;f<r&&(r=f,i=c)}}if(s&&(a[i].union(e),n=!0),!n){var t=new r6(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var _=this.__startIndex;_<this.__endIndex;++_){var u=e[_];if(u){var d=u.shouldBePainted(n,r,!0,!0),p=u.__isRendered&&(1&u.__dirty||!d)?u.getPrevPaintRect():null;p&&c(p);var f=d&&(1&u.__dirty||!u.__isRendered)?u.getPaintRect():null;f&&c(f)}}for(var _=this.__prevStartIndex;_<this.__prevEndIndex;++_){var u=t[_],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var p=u.getPrevPaintRect();p&&c(p)}}do{i=!1;for(var _=0;_<a.length;){if(a[_].isZero()){a.splice(_,1);continue}for(var m=_+1;m<a.length;)a[_].intersect(a[m])?(i=!0,a[_].union(a[m]),a.splice(m,1)):m++;_++}}while(i);return this._paintRects=a,a},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,1!==n&&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=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,_=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,o/c));var u=this.domBack;function d(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;n8(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||dV(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,o=d0(i,t,{dirty:function(){_.setUnpainted(),_.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(u,e,n,r,a),i.restore())}!n||s?d(0,0,a,o):n.length&&nW(n,function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)})},t}(rw),f6=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=nz({},n||{}),this.dpr=n.devicePixelRatio||aw,this._singleCanvas=i,this.root=e,e.style&&(rc(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var c=new f4(e,this,this.dpr);c.__builtin__=!0,c.initContext(),o[314159]=c,c.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=dH(e,0,n),this._height=dH(e,1,n);var _,u,d,p=this._domRoot=(_=this._width,u=this._height,(d=document.createElement("div")).style.cssText=["position:relative","width:"+_+"px","height:"+u+"px","padding:0;margin:0;border-width:0"].join(";")+";",d);e.appendChild(p)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t,n=e.length,r=this._hoverlayer;if(r&&r.clear(),n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(r||(r=this._hoverlayer=this.getLayer(1e5)),t||(t=r.ctx).save(),d9(t,o,i,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){d7(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;F(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var c=!0,_=!1,u=this,d=0;d<i.length;d++)!function(o){var s,l=i[o],d=l.ctx,p=a&&l.createRepaintRects(e,t,u._width,u._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,h=m&&Date.now(),g=l.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,g,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(_=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=u.dpr,S=0;S<p.length;++S){var k=p[S];d.save(),d.beginPath(),d.rect(k.x*b,k.y*b,k.width*b,k.height*b),d.clip(),x(k),d.restore()}else d.save(),x(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)}(d);return nb.wxa&&nW(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:c,needsRefreshHover:_}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(d9(o,e,i,a),e.setPrevPaintRect(s))}else d9(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new f4("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nB(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nB(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){if(i>0&&e>r[0]){for(s=0;s<i-1&&(!(r[s]<e)||!(r[s+1]>e));s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,r,i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(r=0;r<e.length;r++){var a=e[r],l=a.zlevel,c=void 0;n!==l&&(n=l,s=0),a.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):c=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),c.__builtin__||nL("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.incremental?c.__drawIndex=-1:c.__drawIndex=r,t(r),o=c),1&a.__dirty&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}t(r),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,nW(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nB(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];(i===e||i===e+.01)&&nB(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(nq(n,e),1))},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;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=dH(i,0,r),t=dH(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new f4("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;this.eachLayer(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},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++)d9(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),f8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nv(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new _Y(this),_Q(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),_Q(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:cR},t}(cC),f5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nv(t,e),t.type="dataset",t}(un);fC([function(e){e.registerPainter("canvas",f6)},function(e){e.registerComponentModel(f8),e.registerComponentView(f5)}]),fC(f2),fb({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pY(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let f7=(N={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-2*t.radius;e.moveTo(i,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,c,_,u=o%4,d=(s=o*t.waveLength/4,l=u,c=t.waveLength,_=t.amplitude,0===l?[[s+.5*c/Math.PI/2,_/2],[s+.5*c/Math.PI,_],[s+c/4,_]]:1===l?[[s+.5*c/Math.PI/2*(Math.PI-2),_],[s+.5*c/Math.PI/2*(Math.PI-1),_/2],[s+c/4,0]]:2===l?[[s+.5*c/Math.PI/2,-_/2],[s+.5*c/Math.PI,-_],[s+c/4,-_]]:[[s+.5*c/Math.PI/2*(Math.PI-2),-_],[s+.5*c/Math.PI/2*(Math.PI-1),-_/2],[s+c/4,0]]);e.bezierCurveTo(d[0][0]+i,-d[0][1]+t.waterLevel,d[1][0]+i,-d[1][1]+t.waterLevel,d[2][0]+i,-d[2][1]+t.waterLevel),o===n-1&&(a=d[2][0])}t.inverse?(e.lineTo(a+i,t.cy-t.radiusY),e.lineTo(i,t.cy-t.radiusY)):(e.lineTo(a+i,t.cy+t.radiusY),e.lineTo(i,t.cy+t.radiusY)),e.lineTo(i,t.waterLevel),e.closePath()}},sb.extend(N));function f9(e){return e&&0===e.indexOf("path://")}fS({type:"liquidFill",render:function(e,t,n){var r,i,a,o,s,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T=this,C=this.group;C.removeAll();var w=e.getData(),D=w.getItemModel(0),N=D.get("center"),F=D.get("radius"),P=n.getWidth(),E=n.getHeight(),A=Math.min(P,E),I=0,O=0,j=e.get("outline.show");j&&(I=e.get("outline.borderDistance"),O=a4(e.get("outline.itemStyle.borderWidth"),A));var M=a4(N[0],P),L=a4(N[1],E),R=!1,B=e.get("shape");"container"===B?(R=!0,S=[(b=[P/2,E/2])[0]-O/2,b[1]-O/2],k=[a4(I,P),a4(I,E)],F=[Math.max(S[0]-k[0],0),Math.max(S[1]-k[1],0)]):F=Math.max((S=(b=a4(F,A)/2)-O/2)-(k=a4(I,A)),0),j&&(H().style.lineWidth=O,C.add(H()));var z=R?0:M-F,J=R?0:L-F,q=null;C.add(((r=W(F)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.fill=null,r.z2=5,(i=W(F)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.stroke=null,(a=new aZ).add(r),a.add(i),a));var U=this._data,V=[];function W(e,t){if(B)if(f9(B)){var n=uQ(B.slice(7),{}),r=n.getBoundingRect(),i=r.width,a=r.height;i>a?(a=2*e/i*a,i=2*e):(i=2*e/a*i,a=2*e);var o=t?0:M-i/2,s=t?0:L-a/2;return n=uQ(B.slice(7),{},new r6(o,s,i,a)),t&&(n.x=-i/2,n.y=-a/2),n}else if(R){var l=t?-e[0]:M-e[0],c=t?-e[1]:L-e[1];return dq("rect",l,c,2*e[0],2*e[1])}else{var l=t?-e:M-e,c=t?-e:L-e;return"pin"===B?c+=e:"arrow"===B&&(c-=e),dq(B,l,c,2*e,2*e)}return new uv({shape:{cx:t?0:M,cy:t?0:L,r:e}})}function H(){var t=W(b);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function $(t,n,r){var i=R?F[0]:F,a=R?E/2:F,o=w.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),c=a4(o.get("amplitude"),2*a),_=a4(o.get("waveLength"),2*i),u=a-w.get("value",t)*a*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var d=s.getItemStyle();if(!d.fill){var p=e.get("color"),f=t%p.length;d.fill=p[f]}var m=new f7({shape:{waveLength:_,radius:i,radiusY:a,cx:2*i,cy:0,waterLevel:u,amplitude:c,phase:l,inverse:n},style:d,x:M,y:L});m.shape._waterLevel=u;var h=o.getModel("emphasis.itemStyle").getItemStyle();h.lineWidth=0,m.ensureState("emphasis").style=h,s0(m);var g=W(F,!0);return g.setStyle({fill:"white"}),m.setClipPath(g),m}function K(e,t,n){var r,i=w.getItemModel(e),a=i.get("period"),o=i.get("direction"),s=w.get("value",e),l=i.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var c=0;c="auto"===a?0===(r=w.count())?5e3:5e3*(.2+(r-e)/r*.8):"function"==typeof a?a(s,e):a;var _=0;"right"===o||null==o?_=Math.PI:"left"===o?_=-Math.PI:"none"===o?_=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&i.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(c/2,{phase:_+l}).when(c,{phase:2*_+l}).during(function(){q&&q.dirty(!0)}).start()}w.diff(U).add(function(t){var n=$(t,!1),r=n.shape.waterLevel;n.shape.waterLevel=R?E/2:F,s8(n,{shape:{waterLevel:r}},e),n.z2=2,K(t,n,null),C.add(n),w.setItemGraphicEl(t,n),V.push(n)}).update(function(t,n){for(var r=U.getItemGraphicEl(n),i=$(t,!1,r),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];i.shape.hasOwnProperty(l)&&(a[l]=i.shape[l])}for(var c={},_=["fill","opacity","shadowBlur","shadowColor"],s=0;s<_.length;++s){var l=_[s];i.style.hasOwnProperty(l)&&(c[l]=i.style[l])}R&&(a.radiusY=E/2),s6(r,{shape:a,x:i.x,y:i.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?s6(r,{style:c},e):r.useStyle(c);var u=r.getClipPath(),d=i.getClipPath();r.setClipPath(i.getClipPath()),r.shape.inverse=i.inverse,u&&d&&T._shape===B&&!f9(B)&&s6(d,{shape:u.shape},e,{isFrom:!0}),K(t,r,r),C.add(r),w.setItemGraphicEl(t,r),V.push(r)}).remove(function(e){var t=U.getItemGraphicEl(e);C.remove(t)}).execute(),D.get("label.show")&&C.add((o=V,_=D.getModel("label"),u={z2:10,shape:{x:z,y:J,width:(R?F[0]:F)*2,height:(R?F[1]:F)*2},style:{fill:"transparent"},textConfig:{position:_.get("position")||"inside"},silent:!0},Object.assign((d={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*w.get("value",0),c=w.getName(0)||e.name,isNaN(l)||(c=l.toFixed(0)+"%"),null==s?c:s),textAlign:_.get("align"),textVerticalAlign:_.get("baseline")}}).style,fh(_)),p=new lw(u),(f=new lw(u)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lF(d),h=new lF(d),p.setTextContent(m),f.setTextContent(h),g=_.get("insideColor"),h.style.fill=g,(y=new aZ).add(p),y.add(f),x=W(F,!0),(q=new fv({shape:{paths:o},x:M,y:L})).setClipPath(x),f.setClipPath(q),y)),this._shape=B,this._data=w},dispose:function(){}}),fb({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pY(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fS({type:"wordCloud",render:function(e,t,n){var r=this.group;r.removeAll();var i=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=i.getItemModel(o),c=new lF({style:fh(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});c.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:i.getItemVisual(o,"style").fill,fontSize:n}),r.add(c),i.setItemGraphicEl(o,c),c.ensureState("emphasis").style=fh(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),c.ensureState("blur").style=fh(l.getModel(["blur","textStyle"]),{state:"blur"}),s0(c,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),c.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},c.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var r=parseInt(n.data.substr(t.length),36);e[r]&&(e[r](),e[r]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var r=e.length;return e.push(n),window.postMessage(t+r.toString(36),"*"),r}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var me=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),mt=function(){if(me){for(var e,t,n=document.createElement("canvas").getContext("2d"),r=20;r;){if(n.font=r.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return r+1;e=n.measureText("W").width,t=n.measureText("m").width,r--}return 0}}(),mn=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},mr=function(e){for(var t,n,r=e.length;r;)t=Math.floor(Math.random()*r),n=e[--r],e[r]=e[t],e[t]=n;return e},mi={},ma=function(e,t){if(me){var n,r,i,a,o,s,l,c,_,u=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var d={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in d&&(d[p]=t[p]);if("function"!=typeof d.weightFactor){var f=d.weightFactor;d.weightFactor=function(e){return e*f}}if("function"!=typeof d.shape)switch(d.shape){case"circle":default:d.shape="circle";break;case"cardioid":d.shape=function(e){return 1-Math.sin(e)};break;case"diamond":d.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":d.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":d.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":d.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":d.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":d.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}d.gridSize=Math.max(Math.floor(d.gridSize),4);var m=d.gridSize,h=m-d.maskGapWidth,g=Math.abs(d.maxRotation-d.minRotation),y=Math.min(d.maxRotation,d.minRotation),x=d.rotationStep;switch(d.color){case"random-dark":l=function(){return L(10,50)};break;case"random-light":l=function(){return L(50,90)};break;default:"function"==typeof d.color&&(l=d.color)}"function"==typeof d.fontWeight&&(c=d.fontWeight);var b=null;"function"==typeof d.classes&&(b=d.classes);var S=!1,k=[],T=function(e){var t,n,r=e.currentTarget,i=r.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-i.left,o=n-i.top,s=Math.floor(a*(r.width/i.width||1)/m),l=Math.floor(o*(r.height/i.height||1)/m);return k[s]?k[s][l]:null},C=function(e){var t=T(e);if(_!==t){if(_=t,!t)return void d.hover(void 0,void 0,e);d.hover(t.item,t.dimension,e)}},w=function(e){var t=T(e);t&&(d.click(t.item,t.dimension,e),e.preventDefault())},D=[],N=function(e){if(D[e])return D[e];var t=8*e,n=t,r=[];for(0===e&&r.push([a[0],a[1],0]);n--;){var i=1;"circle"!==d.shape&&(i=d.shape(n/t*2*Math.PI)),r.push([a[0]+e*i*Math.cos(-n/t*2*Math.PI),a[1]+e*i*Math.sin(-n/t*2*Math.PI)*d.ellipticity,n/t*2*Math.PI])}return D[e]=r,r},F=function(){return d.abortThreshold>0&&new Date().getTime()-s>d.abortThreshold},P=function(e,t,n,r){var i,a,o,s,l=d.weightFactor(t);if(l<=d.minSize)return!1;var _=1;l<mt&&(_=function(){for(var e=2;e*l<mt;)e+=2;return e}()),i=c?c(e,t,l,r):d.fontWeight;var u=document.createElement("canvas"),p=u.getContext("2d",{willReadFrequently:!0});p.font=i+" "+(l*_).toString(10)+"px "+d.fontFamily;var f=p.measureText(e).width/_,h=Math.max(l*_,p.measureText("m").width,p.measureText("W").width)/_,g=f+2*h,y=3*h,x=Math.ceil(g/m),b=Math.ceil(y/m),S=-f/2,k=-(.4*h),T=Math.ceil(((g=x*m)*Math.abs(Math.sin(n))+(y=b*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((g*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),w=C*m,D=T*m;u.setAttribute("width",w),u.setAttribute("height",D),p.scale(1/_,1/_),p.translate(w*_/2,D*_/2),p.rotate(-n),p.font=i+" "+(l*_).toString(10)+"px "+d.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,S*_,(k+.5*l)*_);var N=p.getImageData(0,0,w,D).data;if(F())return!1;for(var P=[],E=C,A=[T/2,C/2,T/2,C/2];E--;)for(a=T;a--;){s=m;l:for(;s--;)for(o=m;o--;)if(N[((a*m+s)*w+(E*m+o))*4+3]){P.push([E,a]),E<A[3]&&(A[3]=E),E>A[1]&&(A[1]=E),a<A[0]&&(A[0]=a),a>A[2]&&(A[2]=a);break l}}return{mu:_,occupied:P,bounds:A,gw:C,gh:T,fillTextOffsetX:S,fillTextOffsetY:k,fillTextWidth:f,fillTextHeight:h,fontSize:l}},E=function(e,t,a,o,s){for(var l=s.length;l--;){var c=e+s[l][0],_=t+s[l][1];if(c>=r||_>=i||c<0||_<0){if(!d.drawOutOfBound)return!1;continue}if(!n[c][_])return!1}return!0},A=function(t,n,r,i,a,o,s,_,u,p){var f,h,g,y=r.fontSize;f=l?l(i,a,y,o,s,p):d.color,h=c?c(i,a,y,p):d.fontWeight,g=b?b(i,a,y,p):d.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=r.mu;a.save(),a.scale(1/o,1/o),a.font=h+" "+(y*o).toString(10)+"px "+d.fontFamily,a.fillStyle=f,a.translate((t+r.gw/2)*m*o,(n+r.gh/2)*m*o),0!==_&&a.rotate(-_),a.textBaseline="middle",a.fillText(i,r.fillTextOffsetX*o,(r.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-_/Math.PI*180+"deg) ",1!==r.mu&&(l+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var c={position:"absolute",display:"block",font:h+" "+y*r.mu+"px "+d.fontFamily,left:(t+r.gw/2)*m+r.fillTextOffsetX+"px",top:(n+r.gh/2)*m+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(c.color=f),s.textContent=i,c)s.style[p]=c[p];if(u)for(var x in u)s.setAttribute(x,u[x]);g&&(s.className+=g),e.appendChild(s)}})},I=function(t,a,o,s,l){t>=r||a>=i||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,h,h),S&&(k[t][a]={item:l,dimension:s}))},O=function(t,n,a,o,s,l){var c,_,u=s.occupied,p=d.drawMask;if(p&&((c=e[0].getContext("2d")).save(),c.fillStyle=d.maskColor),S){var f=s.bounds;_={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var h=u.length;h--;){var g=t+u[h][0],y=n+u[h][1];g>=r||y>=i||g<0||y<0||I(g,y,p,_,l)}p&&c.restore()},j=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,c=0===d.rotateRatio||Math.random()>d.rotateRatio?0:0===g?y:y+Math.round(Math.random()*g/x)*x,_=mn(t),u=P(a,s,c,_);if(!u||F())return!1;if(!d.drawOutOfBound&&!d.shrinkToFit){var p=u.bounds;if(p[1]-p[3]+1>r||p[2]-p[0]+1>i)return!1}for(var f=o+1;f--;){var m=N(o-f);d.shuffle&&mr(m=[].concat(m));for(var h=0;h<m.length;h++){var b=function(e){var n=Math.floor(e[0]-u.gw/2),r=Math.floor(e[1]-u.gh/2),i=u.gw,d=u.gh;return!!E(n,r,i,d,u.occupied)&&(A(n,r,u,a,s,o-f,e[2],c,l,_),O(n,r,i,d,u,t),{gx:n,gy:r,rot:c,info:u})}(m[h]);if(b)return b}}return d.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},M=function(t,n,r){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:r||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:r||{}});e.dispatchEvent(n)},this)};!function(){var t,l,c=e[0];if(c.getContext)r=Math.ceil(c.width/m),i=Math.ceil(c.height/m);else{var p=c.getBoundingClientRect();r=Math.ceil(p.width/m),i=Math.ceil(p.height/m)}if(M("wordcloudstart",!0)){if(a=d.origin?[d.origin[0]/m,d.origin[1]/m]:[r/2,i/2],o=Math.floor(Math.sqrt(r*r+i*i)),n=[],!c.getContext||d.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=d.backgroundColor,t.clearRect(0,0,r*(m+1),i*(m+1)),t.fillRect(0,0,r*(m+1),i*(m+1))}else e.textContent="",e.style.backgroundColor=d.backgroundColor,e.style.position="relative"}),f=r;f--;)for(n[f]=[],h=i;h--;)n[f][h]=!0;else{var f,h,g,y,x,b=document.createElement("canvas").getContext("2d");b.fillStyle=d.backgroundColor,b.fillRect(0,0,1,1);var T=b.getImageData(0,0,1,1).data,D=c.getContext("2d").getImageData(0,0,r*m,i*m).data;for(f=r;f--;)for(n[f]=[],h=i;h--;){x=m;l:for(;x--;)for(y=m;y--;)for(g=4;g--;)if(D[((h*m+x)*r*m+(f*m+y))*4+g]!==T[g]){n[f][h]=!1;break l}!1!==n[f][h]&&(n[f][h]=!0)}D=b=T=void 0}if(d.hover||d.click){for(S=!0,f=r+1;f--;)k[f]=[];d.hover&&c.addEventListener("mousemove",C),d.click&&(c.addEventListener("click",w),c.addEventListener("touchstart",w),c.addEventListener("touchend",function(e){e.preventDefault()}),c.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),c.addEventListener("wordcloudstart",function e(){c.removeEventListener("wordcloudstart",e),c.removeEventListener("mousemove",C),c.removeEventListener("click",w),_=void 0})}g=0;var N=!0;d.layoutAnimation?0!==d.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){N=!1});var P=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},E=function e(){P("wordcloudstart",e),l(mi[u])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",E),mi[u]=(d.layoutAnimation?t:setTimeout)(function e(){if(N){if(g>=d.list.length){l(mi[u]),M("wordcloudstop",!1),P("wordcloudstart",E),delete mi[u];return}s=new Date().getTime();var n=j(d.list[g],0),r=!M("wordclouddrawn",!0,{item:d.list[g],drawn:n});if(F()||r){l(mi[u]),d.abort(),M("wordcloudabort",!1),M("wordcloudstop",!1),P("wordcloudstart",E);return}g++,mi[u]=t(e,d.wait)}},d.wait)}}()}function L(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(ma.isSupported=me,ma.minFontSize=mt,!ma.isSupported)throw Error("Sorry your browser not support wordCloud");pA(function(e,t){e.eachSeriesByType("wordCloud",function(n){var r,i,a,o,s=function(e,t,n){n=re(n||0);var r=t.width,i=t.height,a=a4(e.left,r),o=a4(e.top,i),s=a4(e.right,r),l=a4(e.bottom,i),c=a4(e.width,r),_=a4(e.height,i),u=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(c)&&(c=r-s-d-a),isNaN(_)&&(_=i-l-u-o),null!=p&&(isNaN(c)&&isNaN(_)&&(p>r/i?c=.8*r:_=.8*i),isNaN(c)&&(c=p*_),isNaN(_)&&(_=c/p)),isNaN(a)&&(a=r-s-c-d),isNaN(o)&&(o=i-l-_-u),e.left||e.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-d}switch(e.top||e.bottom){case"middle":case"center":o=i/2-_/2-n[0];break;case"bottom":o=i-_-u}a=a||0,o=o||0,isNaN(c)&&(c=r-d-a-(s||0)),isNaN(_)&&(_=i-u-o-(l||0));var f=new r6(a+n[3],o+n[0],c,_);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),c=n.get("maskImage"),_=c?c.width/c.height:1;l&&(r=s,i=_,a=r.width,a>(o=r.height)*i?(r.x+=(a-o*i)/2,r.width=o*i):(r.y+=(o-a/i)/2,r.height=a/i));var u=n.getData(),d=document.createElement("canvas");d.width=s.width,d.height=s.height;var p=d.getContext("2d");if(c)try{p.drawImage(c,0,0,d.width,d.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=t.createImageData(n),i=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];i+=l,++a}}for(var c=i/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>c?(r.data[o]=0,r.data[o+1]=0,r.data[o+2]=0,r.data[o+3]=0):(r.data[o]=255,r.data[o+1]=255,r.data[o+2]=255,r.data[o+3]=255)}t.putImageData(r,0,0)}(d)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),h=u.getDataExtent("value"),g=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}ma(d,{list:u.mapArray("value",function(e,t){var n,r,i,a,o,s,l,c,_,d=u.getItemModel(t);return[u.getName(t),d.get("textStyle.fontSize",!0)||(n=e,r=h,i=f,a=r[0],o=r[1],s=i[0],l=i[1],c=o-a,_=l-s,0===c?0===_?s:(s+l)/2:n===a?s:n===o?l:(n-a)/c*_+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*g,maxRotation:m[1]*g,clearCanvas:!c,rotateRatio:1,rotationStep:n.get("rotationStep")*g,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),d.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){d.removeEventListener("wordclouddrawn",x),d.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pN(function(e){var t=(e||{}).series;nQ(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(e){e&&nW(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nW(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};r(t.normal),r(t.emphasis)}})});var mo=u(843);let ms=e=>{let{width:t,height:n,gap:r=10,active:i,children:a}=e;return(0,ed.jsxs)("div",{style:{width:t,height:n,position:"relative",padding:r,borderRadius:6,border:"2px solid var(--ant-color-border-secondary)"},children:[(0,ed.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:6,border:"2px dotted var(--ant-color-border)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",fontSize:10,userSelect:"none"},children:a}),(0,ed.jsx)("div",{style:{position:"absolute",top:0,left:t/2-3,width:4,height:r,backgroundColor:"top"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",bottom:0,left:t/2-3,width:4,height:r,backgroundColor:"bottom"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",top:n/2-3,left:0,height:4,width:r,backgroundColor:"left"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",top:t/2-3,right:0,height:4,width:r,backgroundColor:"right"===i?"var(--ant-color-primary)":"#e8e8e8"}})]})},ml=eh()(tt.InfoCircleOutlined)`
|
|
1502
|
+
`,nf=e=>{let{open:t,onCancel:n,onOk:r}=e,[i,a]=(0,ep.useState)(JSON.stringify({info:{},datasources:[],scripts:[],variables:[],items:[]}));return(0,ed.jsx)(ti.Modal,{title:"导入页面",open:t,width:800,onCancel:n,onOk:()=>null==r?void 0:r(JSON.parse(i)),okText:"导入",cancelText:"取消",styles:{body:{height:"calc(100vh - 250px)",overflow:"auto"}},children:(0,ed.jsx)("div",{className:"body",style:{flex:"1 1 auto",display:"flex",height:"100%"},children:(0,ed.jsx)(ts.Editor,{height:"100%",defaultLanguage:"json",value:i,options:{minimap:{enabled:!1}},onChange:e=>a(e||"")})})})},nm=ef().forwardRef((e,t)=>{var n,r;let i,{pageId:a,agentList:o=[],plugins:s=[],headerExtra:l,datasourceEnable:c=!0,scriptEnable:_=!0,datasetPanel:u,datasetSelector:d,datasetAdd:p,fetch:f,onSave:m,loading:h=!1}=e,g=(0,ep.useRef)(null),y=(0,ep.useRef)(null),[x,b]=(0,ep.useState)(1),[S,k]=(0,ep.useState)([]),[T,C]=(0,ep.useState)([]),[w,D]=(0,ep.useState)(!1),[N,F]=(0,ep.useState)("desktop"),[P,E]=(0,ep.useState)("component"),[A,I]=(0,ep.useState)((null==f?void 0:f.ai)?"ai":"props"),[O,j]=(0,ep.useState)(!0),[M,L]=(0,ep.useState)(!0),[R,B]=(0,ep.useState)(null),[z,J]=(0,ep.useState)({info:{},datasources:[],scripts:[],variables:[],items:[]}),[q,U]=(0,ep.useState)(!0),[V,W]=(0,ep.useState)(!1),[H,$]=(0,ep.useState)(!1),[K,G]=(0,ep.useState)(""),[X,Y]=(0,ep.useState)(!1),Q=(0,ep.useMemo)(()=>{let e=O?"250px":"",t=M?"400px":"";return{gridTemplateColumns:`${e} 1fr ${t}`}},[O,M]),Z=(0,ep.useMemo)(()=>({display:O?"flex":"none"}),[O]),ee=(0,ep.useMemo)(()=>({display:M?"flex":"none"}),[M]);r=[z],(i=(0,ep.useRef)()).current===JSON.stringify(r)&&i.current||(i.current=JSON.stringify(r),(()=>{w||(k(e=>e.length?[...e,JSON.parse(JSON.stringify(z))].slice(-50):[JSON.parse(JSON.stringify(z))]),C([]))})()),(0,ep.useImperativeHandle)(t,()=>({handleOpen(e){D(!0),et(e.items),J(e),k([JSON.parse(JSON.stringify(e))]),C([]),setTimeout(()=>D(!1),0)}}));let et=(e,t)=>{e&&e.forEach(e=>{e.id||(e.id=t||tf()),Array.isArray(e.children)?et(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>{Array.isArray(e.children[t])&&et(e.children[t],tf())})})},en=e=>{var t,n,r;if((null==(t=e.datasets)?void 0:t.length)&&(null==y||null==(n=y.current)?void 0:n.reload)&&y.current.reload(),e.schema){let t=JSON.parse(JSON.stringify(e.schema));et(t.items),J(t)}else if(null==(r=e.pageItems)?void 0:r.length){let t=new Map;e.pageItems.forEach(e=>{t.has(e.targetId)||t.set(e.targetId,[]),t.get(e.targetId).push(e)});let n=JSON.parse(JSON.stringify(z)),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((n,i)=>{t.has(n.id)&&t.get(n.id).forEach(t=>{let{position:r,insertSlot:a,pageItem:o}=t;switch(r){case"before":e.splice(i,0,o);break;case"after":e.splice(i+1,0,o);break;case"replace":Object.keys(n).forEach(e=>{"id"!==e&&delete n[e]}),Object.assign(n,o);break;case"insert":var l,c,_;let u=s.find(e=>e.key===n.type);Array.isArray(null==u||null==(l=u.defaultOptions)?void 0:l.children)?n.children=[...n.children||[],o]:"object"==typeof(null==u||null==(c=u.defaultOptions)?void 0:c.children)&&a&&(n.children={...n.children||{},[a]:[...(null==(_=n.children)?void 0:_[a])||[],o]})}}),Array.isArray(n.children)?r(n.children):"object"==typeof n.children&&n.children&&Object.keys(n.children).forEach(e=>{Array.isArray(n.children[e])&&r(n.children[e])})})};r(n.items),J(n)}},er=(0,ep.useMemo)(()=>"cascade"!==A||(null==R?void 0:R.cascadeIds)?A:"props",[R,A]),ei=(0,ep.useMemo)(()=>(s||[]).find(e=>e.key===(null==R?void 0:R.type)),[s,null==R?void 0:R.type]),ea=(0,ep.useMemo)(()=>{var e;if(!(null==K||null==(e=K.trim())?void 0:e.length))return[];let t=[],n=e=>{Array.isArray(e)&&e.forEach(e=>{JSON.stringify(e).includes(K)&&t.push(e),Array.isArray(e.children)?n(e.children):"object"==typeof e.children&&e.children&&Object.keys(e.children).forEach(t=>n(e.children[t]))})};return n((null==z?void 0:z.items)||[]),t},[null==z?void 0:z.items,K]);return(0,ed.jsxs)(ev,{pageId:a,designable:q,plugins:s,schema:z,selectedItem:R,setSchema:J,setSelectedItem:B,datasetSelector:d,datasetAdd:p,fetch:f,children:[(0,ed.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,ed.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 24px",borderBottom:"solid 1px #e8e8e8"},children:[(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)("span",{style:{fontSize:16,fontWeight:500},children:"创建数据报表"}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"保存",children:(0,ed.jsx)(ti.Button,{type:"link",className:"toolbar",onClick:()=>{null==m||m(z)},loading:h,children:(0,ed.jsx)(tt.SaveOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"撤销",children:(0,ed.jsx)("a",{className:`toolbar ${S.length>1?"active":""}`,onClick:()=>{k(e=>{if(e.length<=1)return e;D(!0);let t=e[e.length-2];return C(e=>[...e,JSON.parse(JSON.stringify(z))]),J(t),B(null),setTimeout(()=>D(!1),0),e.slice(0,-1)})},children:(0,ed.jsx)(tt.UndoOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重做",children:(0,ed.jsx)("a",{className:`toolbar ${T.length>0?"active":""}`,onClick:()=>{C(e=>e.length?(D(!0),k(e=>[...e,JSON.parse(JSON.stringify(z))]),J(e[e.length-1]),B(null),setTimeout(()=>D(!1),0),e.slice(0,-1)):e)},children:(0,ed.jsx)(tt.RedoOutlined,{})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"导入JSON",children:(0,ed.jsx)("a",{className:`toolbar ${T.length>0?"active":""}`,onClick:()=>{W(!0)},children:(0,ed.jsx)(tt.ImportOutlined,{})})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsx)(ti.Tooltip,{title:"缩小",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(parseFloat(Math.max(x-.1,.5).toFixed(1))),children:(0,ed.jsx)(tt.ZoomOutOutlined,{})})}),(0,ed.jsxs)("div",{style:{fontSize:12,color:"#999",userSelect:"none"},children:[(100*x).toFixed(0),"%"]}),(0,ed.jsx)(ti.Tooltip,{title:"放大",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(parseFloat(Math.min(x+.1,2).toFixed(1))),children:(0,ed.jsx)(tt.ZoomInOutlined,{})})}),(0,ed.jsx)(ti.Tooltip,{title:"重置缩放",children:(0,ed.jsx)("a",{className:"toolbar",onClick:()=>b(1),children:(0,ed.jsx)(tr,{type:"icon-zoom-reset"})})}),(0,ed.jsx)(ti.Divider,{orientation:"vertical"}),(0,ed.jsx)(ti.Tooltip,{title:"切换左侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${O?"active":""}`,onClick:()=>{j(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tr,{type:"icon-sider-l"})})}),(0,ed.jsx)(ti.Tooltip,{title:"切换右侧栏",children:(0,ed.jsx)("a",{className:`toolbar ${M?"active":""}`,onClick:()=>{L(e=>!e),setTimeout(()=>{var e,t;return null==(t=g.current)||null==(e=t.handleResize)?void 0:e.call(t)},0)},children:(0,ed.jsx)(tr,{type:"icon-sider-r"})})}),l]})]}),(0,ed.jsxs)(nu,{style:Q,children:[(0,ed.jsxs)("div",{className:"left",style:Z,children:[(0,ed.jsx)("div",{style:{padding:"22px 1px 22px 0",borderRight:"solid 1px #e8e8e8"},children:(0,ed.jsxs)(ti.Radio.Group,{value:P,onChange:e=>E(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"left-pane-tabs",children:[(0,ed.jsx)(ti.Tooltip,{title:"组件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"component",children:(0,ed.jsx)(tr,{type:"icon-puzzle"})})}),(0,ed.jsx)(ti.Tooltip,{title:"图层",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"layer",children:(0,ed.jsx)(tr,{type:"icon-outline"})})}),!!u&&(0,ed.jsx)(ti.Tooltip,{title:"数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"dataset",children:(0,ed.jsx)(tr,{type:"icon-dataset"})})}),c&&(0,ed.jsx)(ti.Tooltip,{title:"数据源",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"datasource",title:"数据源",children:(0,ed.jsx)(tr,{type:"icon-datasource"})})}),_&&(0,ed.jsx)(ti.Tooltip,{title:"脚本",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"script",children:(0,ed.jsx)(tr,{type:"icon-js"})})}),(0,ed.jsx)(ti.Tooltip,{title:"环境变量",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"env",children:(0,ed.jsx)(tr,{type:"icon-variable"})})}),(0,ed.jsx)(ti.Tooltip,{title:"全局数据集",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"global-dataset",children:(0,ed.jsx)(tr,{type:"icon-datasource-g"})})}),(0,ed.jsx)(ti.Tooltip,{title:"源码",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"code",children:(0,ed.jsx)(tr,{type:"icon-json"})})})]})}),(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:["component"===P&&(0,ed.jsx)(t1,{}),"layer"===P&&(0,ed.jsx)(t8,{}),c&&"datasource"===P&&(0,ed.jsx)(t3,{}),_&&"script"===P&&(0,ed.jsx)(nn,{}),"env"===P&&(0,ed.jsx)(ni,{}),"code"===P&&(0,ed.jsx)(tH,{}),!!u&&"dataset"===P&&(0,ed.jsx)(no,{ref:y,renderNode:u}),"global-dataset"===P&&(0,ed.jsx)(n_,{})]})]}),(0,ed.jsxs)("div",{className:"center",style:{flex:"1 1 auto"},children:[(0,ed.jsx)(tA,{title:"页面",extra:(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsxs)(nd,{align:"center",gap:8,onClick:()=>Y(!0),children:[(0,ed.jsx)(tt.SearchOutlined,{}),(0,ed.jsx)(ti.Typography.Text,{style:{fontSize:12,color:"var(--ant-color-text-label)"},children:"Quick search..."})]}),(0,ed.jsx)(ti.Button,{size:"small",type:q?"default":"primary",icon:q?(0,ed.jsx)(tt.EyeInvisibleOutlined,{}):(0,ed.jsx)(tt.EyeOutlined,{}),onClick:()=>U(!q)}),(0,ed.jsxs)(ti.Radio.Group,{value:N,onChange:e=>F(e.target.value),size:"small",buttonStyle:"outline",children:[(0,ed.jsx)(ti.Radio.Button,{value:"desktop",title:"桌面",children:(0,ed.jsx)(tt.DesktopOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"mobile",title:"移动设备",children:(0,ed.jsx)(tt.MobileOutlined,{})}),(0,ed.jsx)(ti.Radio.Button,{value:"tablet",title:"平板设备",children:(0,ed.jsx)(tt.TabletOutlined,{})})]})]})}),(0,ed.jsx)("div",{id:"page-canvas-wrapper",className:["body beautified_scrollbar always",N].join(" "),children:(0,ed.jsx)("div",{style:{transform:`scale(${x})`,transformOrigin:"top center"},children:(0,ed.jsx)(tb,{ref:g,device:N})})})]}),(0,ed.jsxs)("div",{className:"right",style:ee,children:[(0,ed.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",width:"calc(100% - 47px)"},children:[(0,ed.jsx)(tM,{agentList:o,onEffect:en,style:{display:"ai"===er&&(null==f?void 0:f.ai)?void 0:"none"}}),"props"===er&&(0,ed.jsx)(t9,{datasourceEnable:c}),"cascade"===er&&(null==R?void 0:R.cascadeIds)&&(0,ed.jsx)(tU,{}),"events"===er&&(null==ei?void 0:ei.events)&&(0,ed.jsx)(nl,{})]}),(0,ed.jsx)("div",{style:{padding:"22px 0",borderLeft:"solid 1px #e8e8e8",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center"},children:(0,ed.jsxs)(ti.Radio.Group,{value:er,onChange:e=>I(e.target.value),buttonStyle:"outline",style:{fontWeight:"normal",display:"inline-flex",flexDirection:"column",gap:14},className:"right-pane-tabs",children:[(null==f?void 0:f.ai)&&(0,ed.jsx)(ti.Tooltip,{title:"智能助理",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"ai",children:(0,ed.jsx)(tr,{type:"icon-assistant"})})}),(0,ed.jsx)(ti.Tooltip,{title:"属性",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"props",children:(0,ed.jsx)(tr,{type:"icon-info"})})}),(null==R?void 0:R.cascadeIds)&&(0,ed.jsx)(ti.Tooltip,{title:"联动",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"cascade",children:(0,ed.jsx)(tr,{type:"icon-cascade"})})}),(null==ei?void 0:ei.events)&&(0,ed.jsx)(ti.Tooltip,{title:"事件",placement:"right",children:(0,ed.jsx)(ti.Radio.Button,{value:"events",children:(0,ed.jsx)(tr,{type:"icon-thunderbolt"})})})]})})]})]})]}),(0,ed.jsx)(nf,{open:V,onOk:e=>{W(!1),J(e)},onCancel:()=>W(!1)}),(0,ed.jsx)(ti.Drawer,{open:H,size:400,mask:!1,title:null,closable:!1,styles:{body:{padding:0}},onClose:()=>$(!1),children:(0,ed.jsx)(tM,{agentList:o,headExtra:(0,ed.jsx)(ti.Button,{type:"link",icon:(0,ed.jsx)(tt.CloseOutlined,{}),onClick:()=>$(!1)}),onEffect:en})}),(0,ed.jsx)(ti.Modal,{open:X,title:(0,ed.jsx)(ti.Input,{placeholder:"搜索页面元素 ...",variant:"borderless",prefix:(0,ed.jsx)(tt.SearchOutlined,{style:{color:"var(--ant-color-text-label)"}}),value:K,onChange:e=>G(e.target.value)}),closeIcon:(0,ed.jsx)(ti.Typography.Link,{unselectable:"on",style:{color:"var(--ant-color-text-quaternary)"},children:"ESC"}),footer:null,onCancel:()=>Y(!1),styles:{container:{padding:0},header:{padding:"16px 12px",borderBottom:"solid 1px var(--ant-color-border)"},body:{padding:"0 12px 12px 12px",overflow:"auto",maxHeight:500}},children:(0,ed.jsx)(np,{children:0===ea.length?(0,ed.jsx)(ti.Empty,{image:ti.Empty.PRESENTED_IMAGE_SIMPLE,description:(null==K||null==(n=K.trim())?void 0:n.length)?"未找到页面元素":"请输入关键字进行搜索..."}):ea.map(e=>(0,ed.jsxs)("li",{onClick:()=>{var t;B(e),null==(t=document.getElementById(`page-item-${e.id}`))||t.scrollIntoView({behavior:"smooth"}),Y(!1)},children:[(0,ed.jsxs)(ti.Typography.Title,{level:5,style:{margin:0},children:[(0,ed.jsx)(ti.Tag,{variant:"filled",color:"#108ee9",style:{marginRight:8},children:"页面元素"}),e.name,(0,ed.jsx)("small",{children:e.id})]}),(0,ed.jsx)(ti.Typography.Paragraph,{children:e.description||"无描述内容"})]},e.id))})})]})});var nh=((h={}).STRING="STRING",h.NUMBER="NUMBER",h.BOOLEAN="BOOLEAN",h.OBJECT="OBJECT",h.ARRAY="ARRAY",h),ng=u(190),ny=function(e,t){return(ny=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])})(e,t)};function nv(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}ny(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var nx=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},nb=new function(){this.browser=new nx,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(nb.wxa=!0,nb.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?nb.worker=!0:!nb.hasGlobalWindow||"Deno"in window?(nb.node=!0,nb.svgSupported=!0):(e=navigator.userAgent,n=(t=nb).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),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="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document,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 nS="12px sans-serif",nk=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),nT={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!g){var n=nT.createCanvas();g=n&&n.getContext("2d")}if(g)return y!==t&&(y=g.font=t||nS),g.measureText(e);e=e||"",t=t||nS;var r=/((?:\d+)?\.?\d*)px/.exec(t),i=r&&+r[1]||12,a=0;if(t.indexOf("mono")>=0)a=i*e.length;else for(var o=0;o<e.length;o++){var s=nk[e[o]];a+=null==s?i:s*i}return{width:a}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},nC=n$(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),nw=n$(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),nD=Object.prototype.toString,nN=Array.prototype,nF=nN.forEach,nP=nN.filter,nE=nN.slice,nA=nN.map,nI=(function(){}).constructor,nO=nI?nI.prototype:null,nj="__proto__",nM=2311;function nL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function nR(e){if(null==e||"object"!=typeof e)return e;var t=e,n=nD.call(e);if("[object Array]"===n){if(!e[rr]){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=nR(e[r])}}else if(nw[n]){if(!e[rr]){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(!nC[n]&&!e[rr]&&!n6(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==nj&&(t[o]=nR(e[o]));return t}function nB(e,t,n){if(!n2(t)||!n2(e))return n?nR(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==nj){var i=e[r],a=t[r];!(n2(a)&&n2(i))||nQ(a)||nQ(i)||n6(a)||n6(i)||n3(a)||n3(i)||a[rr]||i[rr]?!n&&r in e||(e[r]=nR(t[r])):nB(i,a,n)}return e}function nz(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==nj&&(e[n]=t[n]);return e}function nJ(e,t,n){for(var r=nG(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function nq(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 nU(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];"constructor"!==a&&(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}else nJ(e,t,n)}function nV(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function nW(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nF)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 nH(e,t,n){if(!e)return[];if(!t)return n9(e);if(e.map&&e.map===nA)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 n$(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 nK(e,t,n){if(!e)return[];if(!t)return n9(e);if(e.filter&&e.filter===nP)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 nG(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}nT.createCanvas;var nX=nO&&nZ(nO.bind)?nO.call.bind(nO.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(nE.call(arguments)))}};function nY(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(nE.call(arguments)))}}function nQ(e){return Array.isArray?Array.isArray(e):"[object Array]"===nD.call(e)}function nZ(e){return"function"==typeof e}function n0(e){return"string"==typeof e}function n1(e){return"number"==typeof e}function n2(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function n3(e){return!!nC[nD.call(e)]}function n4(e){return!!nw[nD.call(e)]}function n6(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function n8(e){return null!=e.colorStops}function n5(e,t){return null!=e?e:t}function n7(e,t,n){return null!=e?e:null!=t?t:n}function n9(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return nE.apply(e,t)}function re(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function rt(e,t){if(!e)throw Error(t)}function rn(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rr="__ec_primitive__",ri=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 nG(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ra="function"==typeof Map,ro=function(){function e(t){var n=nQ(t);this.data=ra?new Map:new ri;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&nW(t,i)}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 ra?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function rs(e){return new ro(e)}function rl(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&nz(n,t),n}function rc(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function r_(e,t){return e.hasOwnProperty(t)}function ru(){}var rd=180/Math.PI,rp=function(e,t){return(rp=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])})(e,t)};function rf(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function rm(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function rh(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function rg(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ry(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var rv=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function rx(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 rb(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 rS(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rk(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rT=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},rC=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 rT(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 rT(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 rT(s,e),"dragleave",e.event),o&&o!==s&&this.handler.dispatchToElement(new rT(o,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rT(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new rT(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),rw=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&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},l=i[e].length-1,c=i[e][l];return c&&c.callAtLast?i[e].splice(l,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]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(a){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,l=0;l<s;l++){var c=r[l];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(a){case 0:c.h.call(o);break;case 1:c.h.call(o,t[0]);break;case 2:c.h.call(o,t[0],t[1]);break;default:c.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),rD=Math.log(2);function rN(e,t,n,r,i,a){var o=r+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/rD);return e[n][l]}for(var c=r|1<<n,_=n+1;r&1<<_;)_++;for(var u=0,d=0,p=0;d<s;d++){var f=1<<d;!(f&i)&&(u+=(p%2?-1:1)*e[n][d]*rN(e,t-1,_,c,i|f,a),p++)}return a[o]=u,u}function rF(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=rN(n,8,0,0,0,r);if(0!==i){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*rN(n,7,+(0===o),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 rP="___zrEVENTSAVED";function rE(e){return"CANVAS"===e.nodeName.toUpperCase()}var rA=/([&<>"'])/g,rI={"&":"&","<":"<",">":">",'"':""","'":"'"};function rO(e){return null==e?"":(e+"").replace(rA,function(e,t){return rI[t]})}var rj=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rM=[],rL=nb.browser.firefox&&39>+nb.browser.version.split(".")[0];function rR(e,t,n,r){return n=n||{},r?rB(e,t,n):rL&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):rB(e,t,n),n}function rB(e,t,n){if(nb.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(rE(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(function(e,t,n,r,i){if(t.getBoundingClientRect&&nb.domSupported&&!rE(t)){var a=t[rP]||(t[rP]={}),o=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,c=0;c<4;c++){var _=e[c].getBoundingClientRect(),u=2*c,d=_.left,p=_.top;o.push(d,p),l=l&&a&&d===a[u]&&p===a[u+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=n?rF(s,o):rF(o,s))}(function(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,l=a%2,c=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),a,void 0);if(o)return o(e,n,r),!0}return!1}(rM,e,r,i)){n.zrX=rM[0],n.zrY=rM[1];return}}n.zrX=n.zrY=0}function rz(e){return e||window.event}function rJ(e,t,n){if(null!=(t=rz(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&rR(e,i,t,n)}else{rR(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return null==t.which&&void 0!==o&&rj.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}var rq=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},rU=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],l=rR(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in rW)if(rW.hasOwnProperty(t)){var n=rW[t](this._track,e);if(n)return n}},e}();function rV(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var rW={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=rV(r)/rV(i);isFinite(a)||(a=1),t.pinchScale=a;var o=[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function rH(){return[1,0,0,1,0,0]}function r$(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],l=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]=l,e}function rK(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 rG(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}var rX=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}(),rY=Math.min,rQ=Math.max,rZ=new rX,r0=new rX,r1=new rX,r2=new rX,r3=new rX,r4=new rX,r6=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=rY(e.x,this.x),n=rY(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=rQ(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=rQ(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){var t,n,r,i=e.width/this.width,a=e.height/this.height,o=rH();return rK(o,o,[-this.x,-this.y]),n=(t=[i,a])[0],r=t[1],o[0]=o[0]*n,o[1]=o[1]*r,o[2]=o[2]*n,o[3]=o[3]*r,o[4]=o[4]*n,o[5]=o[5]*r,rK(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this.x,i=this.x+this.width,a=this.y,o=this.y+this.height,s=t.x,l=t.x+t.width,c=t.y,_=t.y+t.height,u=!(i<s||l<r||o<c||_<a);if(n){var d=1/0,p=0,f=Math.abs(i-s),m=Math.abs(l-r),h=Math.abs(o-c),g=Math.abs(_-a),y=Math.min(f,m),x=Math.min(h,g);i<s||l<r?y>p&&(p=y,f<m?rX.set(r4,-f,0):rX.set(r4,m,0)):y<d&&(d=y,f<m?rX.set(r3,f,0):rX.set(r3,-m,0)),o<c||_<a?x>p&&(p=x,h<g?rX.set(r4,0,-h):rX.set(r4,0,g)):y<d&&(d=y,h<g?rX.set(r3,0,h):rX.set(r3,0,-g))}return n&&rX.copy(n,u?r3:r4),u},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}rZ.x=r1.x=n.x,rZ.y=r2.y=n.y,r0.x=r2.x=n.x+n.width,r0.y=r1.y=n.y+n.height,rZ.transform(r),r2.transform(r),r0.transform(r),r1.transform(r),t.x=rY(rZ.x,r0.x,r1.x,r2.x),t.y=rY(rZ.y,r0.y,r1.y,r2.y);var l=rQ(rZ.x,r0.x,r1.x,r2.x),c=rQ(rZ.y,r0.y,r1.y,r2.y);t.width=l-t.x,t.height=c-t.y},e}(),r8="silent";function r5(){rq(this.event)}var r7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return rf(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(rw),r9=function(e,t){this.x=e,this.y=t},ie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],it=new r6(0,0,0,0),ir=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new r9(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new r7,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new rC(o),o}return rf(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nW(ie,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=ia(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new r9(t,n):this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.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;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new r9(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var i,a="on"+t,o={type:t,event:n,target:(i=e).target,topTarget:i.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:r5};r&&(r[a]&&(o.cancelBubble=!!r[a].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););!o.cancelBubble&&(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new r9(e,t);if(ii(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,l=new r6(e-s,t-s,o,o),c=r.length-1;c>=0;c--){var _=r[c];_===n||_.ignore||_.ignoreCoarsePointer||_.parent&&_.parent.ignoreCoarsePointer||(it.copy(_.getBoundingRect()),_.transform&&it.applyTransform(_.transform),it.intersect(l)&&a.push(_))}if(a.length){for(var u=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<d;f+=u)if(ii(a,i,e+p*Math.cos(f),t+p*Math.sin(f),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new rU);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new r9;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(rw);function ii(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=function(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),r=r.__hostTarget||r.parent}return!i||r8}return!1}(o,n,r))&&(t.topTarget||(t.topTarget=o),s!==r8)){t.target=o;break}}}function ia(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}function io(e,t,n,r){var i=t+1;if(i===n)return 1;if(0>r(e[i++],e[t])){for(;i<n&&0>r(e[i],e[i-1]);)i++;var a=e,o=t,s=i;for(s--;o<s;){var l=a[o];a[o++]=a[s],a[s--]=l}}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function is(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,l=r;s<l;)0>i(o,e[a=s+l>>>1])?l=a:s=a+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=o}}function il(e,t,n,r,i,a){var o=0,s=0,l=1;if(a(e,t[n+i])>0){for(s=r-i;l<s&&a(e,t[n+i+l])>0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&0>=a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}for(o++;o<l;){var _=o+(l-o>>>1);a(e,t[n+_])>0?o=_+1:l=_}return l}function ic(e,t,n,r,i,a){var o=0,s=0,l=1;if(0>a(e,t[n+i])){for(s=i+1;l<s&&0>a(e,t[n+i-l]);)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=o;o=i-l,l=i-c}else{for(s=r-i;l<s&&a(e,t[n+i+l])>=0;)o=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var _=o+(l-o>>>1);0>a(e,t[n+_])?l=_:o=_+1}return l}function i_(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<32){a=io(e,n,r,t),is(e,n,r,n+a,t);return}var o=function(e,t){var n,r,i=7,a=0,o=[];function s(s){var l=n[s],c=r[s],_=n[s+1],u=r[s+1];r[s]=c+u,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var d=ic(e[_],e,l,c,0,t);l+=d,0==(c-=d)||0!==(u=il(e[l+c-1],e,_,u,u-1,t))&&(c<=u?function(n,r,a,s){var l,c,_,u=0;for(u=0;u<r;u++)o[u]=e[n+u];var d=0,p=a,f=n;if(e[f++]=e[p++],0==--s){for(u=0;u<r;u++)e[f+u]=o[d+u];return}if(1===r){for(u=0;u<s;u++)e[f+u]=e[p+u];e[f+s]=o[d];return}for(var m=i;;){l=0,c=0,_=!1;do if(0>t(e[p],o[d])){if(e[f++]=e[p++],c++,l=0,0==--s){_=!0;break}}else if(e[f++]=o[d++],l++,c=0,1==--r){_=!0;break}while((l|c)<m);if(_)break;do{if(0!==(l=ic(e[p],o,d,r,0,t))){for(u=0;u<l;u++)e[f+u]=o[d+u];if(f+=l,d+=l,(r-=l)<=1){_=!0;break}}if(e[f++]=e[p++],0==--s){_=!0;break}if(0!==(c=il(o[d],e,p,s,0,t))){for(u=0;u<c;u++)e[f+u]=e[p+u];if(f+=c,p+=c,0==(s-=c)){_=!0;break}}if(e[f++]=o[d++],1==--r){_=!0;break}m--}while(l>=7||c>=7);if(_)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),1===r){for(u=0;u<s;u++)e[f+u]=e[p+u];e[f+s]=o[d]}else if(0===r)throw Error();else for(u=0;u<r;u++)e[f+u]=o[d+u]}(l,c,_,u):function(n,r,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var c=n+r-1,_=s-1,u=a+s-1,d=0,p=0;if(e[u--]=e[c--],0==--r){for(l=0,d=u-(s-1);l<s;l++)e[d+l]=o[l];return}if(1===s){for(u-=r,c-=r,p=u+1,d=c+1,l=r-1;l>=0;l--)e[p+l]=e[d+l];e[u]=o[_];return}for(var f=i;;){var m=0,h=0,g=!1;do if(0>t(o[_],e[c])){if(e[u--]=e[c--],m++,h=0,0==--r){g=!0;break}}else if(e[u--]=o[_--],h++,m=0,1==--s){g=!0;break}while((m|h)<f);if(g)break;do{if(0!=(m=r-ic(o[_],e,n,r,r-1,t))){for(u-=m,c-=m,r-=m,p=u+1,d=c+1,l=m-1;l>=0;l--)e[p+l]=e[d+l];if(0===r){g=!0;break}}if(e[u--]=o[_--],1==--s){g=!0;break}if(0!=(h=s-il(e[c],o,0,s,s-1,t))){for(u-=h,_-=h,s-=h,p=u+1,d=_+1,l=0;l<h;l++)e[p+l]=o[d+l];if(s<=1){g=!0;break}}if(e[u--]=e[c--],0==--r){g=!0;break}f--}while(m>=7||h>=7);if(g)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(u-=r,c-=r,p=u+1,d=c+1,l=r-1;l>=0;l--)e[p+l]=e[d+l];e[u]=o[_]}else if(0===s)throw Error();else for(l=0,d=u-(s-1);l<s;l++)e[d+l]=o[l]}(l,c,_,u))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=io(e,n,r,t))<s){var l=i;l>s&&(l=s),is(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(0!==i);o.forceMergeRuns()}}nW(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ir.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=ia(this,i,a);if("mouseup"===e&&o||(r=(n=this.findHover(i,a)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||ry(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var iu=!1;function id(){iu||(iu=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ip(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var im=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ip}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=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,i_(n,ip)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else t&&t.length?e.__clipPaths=t:e.__clipPaths&&e.__clipPaths.length>0&&(e.__clipPaths=[]),isNaN(e.z)&&(id(),e.z=0),isNaN(e.z2)&&(id(),e.z2=0),isNaN(e.zlevel)&&(id(),e.zlevel=0),this._displayList[this._displayListLen++]=e;var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var _=e.getTextGuideLine();_&&this._updateAndAddDisplayable(_,t,n);var u=e.getTextContent();u&&this._updateAndAddDisplayable(u,t,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=nq(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}();F=nb.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var ih={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 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1)?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):n*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-ih.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?.5*ih.bounceIn(2*e):.5*ih.bounceOut(2*e-1)+.5}},ig=Math.pow,iy=Math.sqrt,iv=iy(3),ix=1/3,ib=rm(),iS=rm(),ik=rm();function iT(e){return e>-1e-8&&e<1e-8}function iC(e){return e>1e-8||e<-1e-8}function iw(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 iD(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function iN(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-i,_=s*s-3*o*l,u=s*l-9*o*c,d=l*l-3*s*c,p=0;if(iT(_)&&iT(u))if(iT(s))a[0]=0;else{var f=-l/s;f>=0&&f<=1&&(a[p++]=f)}else{var m=u*u-4*_*d;if(iT(m)){var h=u/_,f=-s/o+h,g=-h/2;f>=0&&f<=1&&(a[p++]=f),g>=0&&g<=1&&(a[p++]=g)}else if(m>0){var y=iy(m),x=_*s+1.5*o*(-u+y),b=_*s+1.5*o*(-u-y),f=(-s-((x=x<0?-ig(-x,ix):ig(x,ix))+(b=b<0?-ig(-b,ix):ig(b,ix))))/(3*o);f>=0&&f<=1&&(a[p++]=f)}else{var S=Math.acos((2*_*s-3*o*u)/(2*iy(_*_*_)))/3,k=iy(_),T=Math.cos(S),f=(-s-2*k*T)/(3*o),g=(-s+k*(T+iv*Math.sin(S)))/(3*o),C=(-s+k*(T-iv*Math.sin(S)))/(3*o);f>=0&&f<=1&&(a[p++]=f),g>=0&&g<=1&&(a[p++]=g),C>=0&&C<=1&&(a[p++]=C)}}return p}function iF(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,l=0;if(iT(o)){if(iC(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var _=a*a-4*o*s;if(iT(_))i[0]=-a/(2*o);else if(_>0){var u=iy(_),c=(-a+u)/(2*o),d=(-a-u)/(2*o);c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function iP(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-o)*i+o,_=(l-s)*i+s,u=(_-c)*i+c;a[0]=e,a[1]=o,a[2]=c,a[3]=u,a[4]=u,a[5]=_,a[6]=l,a[7]=r}function iE(e,t,n,r,i,a,o,s,l,c,_){var u,d,p,f,m,h=.005,g=1/0;ib[0]=l,ib[1]=c;for(var y=0;y<1;y+=.05)iS[0]=iw(e,n,i,o,y),iS[1]=iw(t,r,a,s,y),(f=rv(ib,iS))<g&&(u=y,g=f);g=1/0;for(var x=0;x<32&&!(h<1e-4);x++)d=u-h,p=u+h,iS[0]=iw(e,n,i,o,d),iS[1]=iw(t,r,a,s,d),f=rv(iS,ib),d>=0&&f<g?(u=d,g=f):(ik[0]=iw(e,n,i,o,p),ik[1]=iw(t,r,a,s,p),m=rv(ik,ib),p<=1&&m<g?(u=p,g=m):h*=.5);return _&&(_[0]=iw(e,n,i,o,u),_[1]=iw(t,r,a,s,u)),iy(g)}function iA(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function iI(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function iO(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function ij(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 iM(e,t,n,r,i,a,o,s,l){var c,_=.005,u=1/0;ib[0]=o,ib[1]=s;for(var d=0;d<1;d+=.05){iS[0]=iA(e,n,i,d),iS[1]=iA(t,r,a,d);var p=rv(ib,iS);p<u&&(c=d,u=p)}u=1/0;for(var f=0;f<32&&!(_<1e-4);f++){var m=c-_,h=c+_;iS[0]=iA(e,n,i,m),iS[1]=iA(t,r,a,m);var p=rv(iS,ib);if(m>=0&&p<u)c=m,u=p;else{ik[0]=iA(e,n,i,h),ik[1]=iA(t,r,a,h);var g=rv(ik,ib);h<=1&&g<u?(c=h,u=g):_*=.5}}return l&&(l[0]=iA(e,n,i,c),l[1]=iA(t,r,a,c)),iy(u)}var iL=/cubic-bezier\(([0-9,\.e ]+)\)/;function iR(e){var t=e&&iL.exec(e);if(t){var n=t[1].split(","),r=+rn(n[0]),i=+rn(n[1]),a=+rn(n[2]),o=+rn(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:iN(0,r,a,1,e,s)&&iw(0,i,o,1,s[0])}}}var iB=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||ru,this.ondestroy=e.ondestroy||ru,this.onrestart=e.onrestart||ru,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!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),1===i)if(!this.loop)return!0;else this._startTime=e-r%n,this._pausedTime=0,this.onrestart();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=nZ(e)?e:ih[e]||iR(e)},e}(),iz=function(e){this.value=e},iJ=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new iz(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}(),iq=function(){function e(e){this._list=new iJ,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(null==r[e]){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 iz(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(null!=t)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}(),iU={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 iV(e){return(e=Math.round(e))<0?0:e>255?255:e}function iW(e){return e<0?0:e>1?1:e}function iH(e){return e.length&&"%"===e.charAt(e.length-1)?iV(parseFloat(e)/100*255):iV(parseInt(e,10))}function i$(e){return e.length&&"%"===e.charAt(e.length-1)?iW(parseFloat(e)/100):iW(parseFloat(e))}function iK(e,t,n){return(n<0?n+=1:n>1&&(n-=1),6*n<1)?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function iG(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function iX(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var iY=new iq(20),iQ=null;function iZ(e,t){iQ&&iX(iQ,t),iQ=iY.put(e,iQ||t.slice())}function i0(e,t){if(e){t=t||[];var n=iY.get(e);if(n)return iX(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in iU)return iX(t,iU[r]),iZ(e,t),t;var i=r.length;if("#"===r.charAt(0)){if(4===i||5===i){var a=parseInt(r.slice(1,4),16);return a>=0&&a<=4095?(iG(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===i?parseInt(r.slice(4),16)/15:1),iZ(e,t),t):void iG(t,0,0,0,1)}if(7===i||9===i){var a=parseInt(r.slice(1,7),16);return a>=0&&a<=0xffffff?(iG(t,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===i?parseInt(r.slice(7),16)/255:1),iZ(e,t),t):void iG(t,0,0,0,1)}return}var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),c=r.substr(o+1,s-(o+1)).split(","),_=1;switch(l){case"rgba":if(4!==c.length)return 3===c.length?iG(t,+c[0],+c[1],+c[2],1):iG(t,0,0,0,1);_=i$(c.pop());case"rgb":if(c.length>=3)return iG(t,iH(c[0]),iH(c[1]),iH(c[2]),3===c.length?_:i$(c[3])),iZ(e,t),t;return void iG(t,0,0,0,1);case"hsla":if(4!==c.length)return void iG(t,0,0,0,1);return c[3]=i$(c[3]),i1(c,t),iZ(e,t),t;case"hsl":if(3!==c.length)return void iG(t,0,0,0,1);return i1(c,t),iZ(e,t),t;default:return}}iG(t,0,0,0,1)}}function i1(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=i$(e[1]),i=i$(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return iG(t=t||[],iV(255*iK(o,a,n+1/3)),iV(255*iK(o,a,n)),iV(255*iK(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function i2(e,t){var n=i0(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 i3(n,4===n.length?"rgba":"rgb")}}function i3(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(n+=","+e[3]),t+"("+n+")"}}function i4(e,t){var n=i0(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var i6=new iq(100);function i8(e){if(n0(e)){var t=i6.get(e);return t||(t=i2(e,-.1),i6.put(e,t)),t}if(n8(e)){var n=nz({},e);return n.colorStops=nH(e.colorStops,function(e){return{offset:e.offset,color:i2(e.color,-.1)}}),n}return e}nb.hasGlobalWindow&&nZ(window.btoa);var i5=Array.prototype.slice;function i7(e,t,n,r){for(var i,a=t.length,o=0;o<a;o++)e[o]=(i=t[o],(n[o]-i)*r+i);return e}function i9(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ae(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 at(e){if(nV(e)){var t=e.length;if(nV(e[0])){for(var n=[],r=0;r<t;r++)n.push(i5.call(e[r]));return n}return i5.call(e)}return e}function an(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]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function ar(e){return 4===e||5===e}function ai(e){return 1===e||2===e}var aa=[0,0,0,0],ao=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=6,s=t;if(nV(t)){var l=nV(t&&t[0])?2:1;o=l,(1!==l||n1(t[0]))&&(2!==l||n1(t[0][0]))||(a=!0)}else if(n1(t)&&t==t)o=0;else if(n0(t))if(isNaN(+t)){var c=i0(t);c&&(s=c,o=3)}else o=0;else if(n8(t)){var _=nz({},s);(_.colorStops=nH(t.colorStops,function(e){return{offset:e.offset,color:i0(e.color)}}),"linear"===t.type)?o=4:"radial"===t.type&&(o=5),s=_}0===i?this.valType=o:(o!==this.valType||6===o)&&(a=!0),this.discrete=this.discrete||a;var u={time:e,value:s,rawValue:t,percent:0};return n&&(u.easing=n,u.easingFunc=nZ(n)?n:ih[n]||iR(n)),r.push(u),u},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=ai(r),l=ar(r),c=0;c<i;c++){var _=n[c],u=_.value,d=a.value;_.percent=_.time/e,!o&&(s&&c!==i-1?function(e,t,n){if(e.push&&t.push){var r=e.length,i=t.length;if(r!==i)if(r>i)e.length=i;else for(var a=r;a<i;a++)e.push(1===n?t[a]:i5.call(t[a]));for(var o=e[0]&&e[0].length,a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}}(u,d,r):l&&function(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()})}(u.colorStops,d.colorStops))}if(!o&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,c=0;c<i;c++)0===r?n[c].additiveValue=n[c].value-p:3===r?n[c].additiveValue=i9([],n[c].value,p,-1):ai(r)&&(n[c].additiveValue=1===r?i9([],n[c].value,p,-1):ae([],n[c].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,o=a?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,_=this.propName,u=3===s,d=this._lastFr,p=Math.min;if(1===c)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(d+1,c-1);n>=0&&!(l[n].percent<=t);n--);n=p(n,c-2)}else{for(n=d;n<c&&!(l[n].percent>t);n++);n=p(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var f=i.percent-r.percent,m=0===f?1:p((t-r.percent)/f,1);i.easingFunc&&(m=i.easingFunc(m));var h=a?this._additiveValue:u?aa:e[_];if((ai(s)||u)&&!h&&(h=this._additiveValue=[]),this.discrete)e[_]=m<1?r.rawValue:i.rawValue;else if(ai(s))1===s?i7(h,r[o],i[o],m):function(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,l=0;l<a;l++)e[o][l]=(s=t[o][l],(n[o][l]-s)*r+s)}}(h,r[o],i[o],m);else if(ar(s)){var g,y,x,b,S,k=r[o],T=i[o],C=4===s;(e[_]={type:C?"linear":"radial",x:(g=k.x,(T.x-g)*m+g),y:(y=k.y,(T.y-y)*m+y),colorStops:nH(k.colorStops,function(e,t){var n,r=T.colorStops[t];return{offset:(n=e.offset,(r.offset-n)*m+n),color:an(i7([],e.color,r.color,m))}}),global:T.global},C)?(e[_].x2=(x=k.x2,(T.x2-x)*m+x),e[_].y2=(b=k.y2,(T.y2-b)*m+b)):e[_].r=(S=k.r,(T.r-S)*m+S)}else if(u)i7(h,r[o],i[o],m),a||(e[_]=an(h));else{var w,D=(w=r[o],(i[o]-w)*m+w);a?this._additiveValue=D:e[_]=D}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(i0(e[n],aa),i9(aa,aa,r,1),e[n]=an(aa)):1===t?i9(e[n],e[n],r,1):2===t&&ae(e[n],e[n],r,1)},e}(),as=function(){function e(e,t,n,r){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r)?nL("Can' use additive animation on looped animation."):(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,nG(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 ao(o);var l=void 0,c=this._getAdditiveTrack(o);if(c){var _=c.keyframes,u=_[_.length-1];l=u&&u.value,3===c.valType&&l&&(l=an(l))}else l=this._target[o];if(null==l)continue;e>0&&s.addKeyframe(0,at(l),r),this._trackKeys.push(o)}s.addKeyframe(e,at(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),l=o.keyframes,c=l.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var _=l[c-1];_&&(t._target[o.propName]=_.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var u=new iB({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=u,this.animation&&this.animation.addClip(u),e&&u.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=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(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 nH(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):1===this._started&&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=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]=at(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||nG(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 al(){return new Date().getTime()}var ac=function(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,n.stage=(t=t||{}).stage||{},n}return rf(t,e),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=al()-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}this._time=t,!e&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,F(function t(){e._running&&(F(t),e._paused||e.update())})},t.prototype.start=function(){this._running||(this._time=al(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=al(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=al()-this._pauseStart,this._paused=!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 null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new as(e,t.loop);return this.addAnimator(n),n},t}(rw),a_=nb.domSupported,au=(b={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=nH(x=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(e){var t=e.replace("mouse","pointer");return b.hasOwnProperty(t)?t:e}),{mouse:x,touch:["touchstart","touchend","touchmove"],pointer:S}),ad=["mousemove","mouseup"],ap=["pointermove","pointerup"],af=!1;function am(e){var t=e.pointerType;return"pen"===t||"touch"===t}function ah(e){e&&(e.zrByTouch=!0)}function ag(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ay=function(e,t){this.stopPropagation=ru,this.stopImmediatePropagation=ru,this.preventDefault=ru,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},av={mousedown:function(e){e=rJ(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=rJ(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=rJ(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){ag(this,(e=rJ(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){af=!0,e=rJ(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){af||(e=rJ(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){ah(e=rJ(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),av.mousemove.call(this,e),av.mousedown.call(this,e)},touchmove:function(e){ah(e=rJ(this.dom,e)),this.handler.processGesture(e,"change"),av.mousemove.call(this,e)},touchend:function(e){ah(e=rJ(this.dom,e)),this.handler.processGesture(e,"end"),av.mouseup.call(this,e),new Date-this.__lastTouchMoment<300&&av.click.call(this,e)},pointerdown:function(e){av.mousedown.call(this,e)},pointermove:function(e){am(e)||av.mousemove.call(this,e)},pointerup:function(e){av.mouseup.call(this,e)},pointerout:function(e){am(e)||av.mouseout.call(this,e)}};nW(["click","dblclick","contextmenu"],function(e){av[e]=function(t){t=rJ(this.dom,t),this.trigger(e,t)}});var ax={pointermove:function(e){am(e)||ax.mousemove.call(this,e)},pointerup:function(e){ax.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 ab(e,t,n,r){var i;e.mounted[t]=n,e.listenerOpts[t]=r,i=e.domTarget,i.addEventListener(t,n,r)}function aS(e){var t,n,r,i=e.mounted;for(var a in i)i.hasOwnProperty(a)&&(t=e.domTarget,n=i[a],r=e.listenerOpts[a],t.removeEventListener(a,n,r));e.mounted={}}var ak=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},aT=function(e){function t(t,n){var r,i,a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=n,a._localHandlerScope=new ak(t,av),a_&&(a._globalHandlerScope=new ak(document,ax)),i=(r=a._localHandlerScope).domHandlers,nb.pointerEventsSupported?nW(au.pointer,function(e){ab(r,e,function(t){i[e].call(a,t)})}):(nb.touchEventsSupported&&nW(au.touch,function(e){ab(r,e,function(t){i[e].call(a,t),r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)})}),nW(au.mouse,function(e){ab(r,e,function(t){t=rz(t),r.touching||i[e].call(a,t)})})),a}return rf(t,e),t.prototype.dispose=function(){aS(this._localHandlerScope),a_&&aS(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,a_&&this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){nb.pointerEventsSupported?nW(ap,n):nb.touchEventsSupported||nW(ad,n);function n(n){ab(t,n,function(r){if(!ag(e,(r=rz(r)).target)){var i;i=r,r=rJ(e.dom,new ay(e,i),!0),t.domHandlers[n].call(e,r)}},{capture:!0})}}(this,t):aS(t)}},t}(rw),aC=1;nb.hasGlobalWindow&&(aC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var aw=aC,aD="#333",aN="#ccc",aF=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e};function aP(e){return e>5e-5||e<-5e-5}var aE=[],aA=[],aI=rH(),aO=Math.abs,aj=function(){var e;function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return aP(this.rotation)||aP(this.x)||aP(this.y)||aP(this.scaleX-1)||aP(this.scaleY-1)||aP(this.skewX)||aP(this.skewY)},t.prototype.updateTransform=function(){var e,t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(aF(r),this.invTransform=null);return}r=r||rH(),n?this.getLocalTransform(r):aF(r),t&&(n?r$(r,t,r):((e=r)[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5])),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(aE);var n=aE[0]<0?-1:1,r=aE[1]<0?-1:1,i=((aE[0]-n)*t+n)/aE[0]||0,a=((aE[1]-r)*t+r)/aE[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||rH(),rG(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},t.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}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||rH(),r$(aA,e.invTransform,t),t=aA);var n=this.originX,r=this.originY;(n||r)&&(aI[4]=n,aI[5]=r,r$(aA,t,aI),aA[4]-=n,aA[5]-=r,t=aA),this.setLocalTransform(t)}},t.prototype.getGlobalScale=function(e){var t=this.transform;return(e=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[0]=1,e[1]=1),e},t.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&rb(n,n,r),n},t.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&rb(n,n,r),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&aO(e[0]-1)>1e-10&&aO(e[3]-1)>1e-10?Math.sqrt(aO(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){for(var t=this,n=e,r=0;r<aM.length;r++){var i=aM[r];t[i]=n[i]}},t.getLocalTransform=function(e,t){t=t||[];var n,r,i,a,o,s,l,c,_,u,d,p=e.originX||0,f=e.originY||0,m=e.scaleX,h=e.scaleY,g=e.anchorX,y=e.anchorY,x=e.rotation||0,b=e.x,S=e.y,k=e.skewX?Math.tan(e.skewX):0,T=e.skewY?Math.tan(-e.skewY):0;if(p||f||g||y){var C=p+g,w=f+y;t[4]=-C*m-k*w*h,t[5]=-w*h-T*C*m}else t[4]=t[5]=0;return t[0]=m,t[3]=h,t[1]=T*m,t[2]=k*h,x&&(n=t,void 0===i&&(i=[0,0]),a=(r=t)[0],o=r[2],s=r[4],l=r[1],c=r[3],_=r[5],u=Math.sin(x),d=Math.cos(x),n[0]=a*d+l*u,n[1]=-a*u+l*d,n[2]=o*d+c*u,n[3]=-o*u+d*c,n[4]=d*(s-i[0])+u*(_-i[1])+i[0],n[5]=d*(_-i[1])-u*(s-i[0])+i[1]),t[4]+=p+b,t[5]+=f+S,t},t.initDefaultProps=void((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0),t}(),aM=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],aL={};function aR(e,t){var n=aL[t=t||nS];n||(n=aL[t]=new iq(500));var r=n.get(e);return null==r&&(r=nT.measureText(e,t).width,n.put(e,r)),r}function aB(e,t,n,r){var i=aR(e,t),a=aq(t);return new r6(az(0,i,n),aJ(0,a,r),i,a)}function az(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function aJ(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function aq(e){return aR("国",e)}function aU(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function aV(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,c=n.y,_="left",u="top";if(r instanceof Array)l+=aU(r[0],n.width),c+=aU(r[1],n.height),_=null,u=null;else switch(r){case"left":l-=i,c+=s,_="right",u="middle";break;case"right":l+=i+o,c+=s,u="middle";break;case"top":l+=o/2,c-=i,_="center",u="bottom";break;case"bottom":l+=o/2,c+=a+i,_="center";break;case"inside":l+=o/2,c+=s,_="center",u="middle";break;case"insideLeft":l+=i,c+=s,u="middle";break;case"insideRight":l+=o-i,c+=s,_="right",u="middle";break;case"insideTop":l+=o/2,c+=i,_="center";break;case"insideBottom":l+=o/2,c+=a-i,_="center",u="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=o-i,c+=i,_="right";break;case"insideBottomLeft":l+=i,c+=a-i,u="bottom";break;case"insideBottomRight":l+=o-i,c+=a-i,_="right",u="bottom"}return(e=e||{}).x=l,e.y=c,e.align=_,e.verticalAlign=u,e}var aW="__zr_normal__",aH=aM.concat(["ignore"]),a$=n$(aM,function(e,t){return e[t]=!0,e},{ignore:!1}),aK={},aG=new r6(0,0,0,0),aX=function(){function e(e){this.id=nM++,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}var r=this.transform;r||(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||(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 l=!1;if(i.copyTransform(t),null!=n.position){n.layoutRect?aG.copy(n.layoutRect):aG.copy(this.getBoundingRect()),r||aG.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(aK,n,aG):aV(aK,n,aG),i.x=aK.x,i.y=aK.y,a=aK.align,o=aK.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var _=void 0,u=void 0;"center"===c?(_=.5*aG.width,u=.5*aG.height):(_=aU(c[0],aG.width),u=aU(c[1],aG.height)),l=!0,i.originX=-i.x+_+(r?0:aG.x),i.originY=-i.y+u+(r?0:aG.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,f=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,h=void 0,g=void 0;p&&this.canBeInsideText()?(m=n.insideFill,h=n.insideStroke,(null==m||"auto"===m)&&(m=this.getInsideTextFill()),(null==h||"auto"===h)&&(h=this.getInsideTextStroke(m),g=!0)):(m=n.outsideFill,h=n.outsideStroke,(null==m||"auto"===m)&&(m=this.getOutsideFill()),(null==h||"auto"===h)&&(h=this.getOutsideStroke(m),g=!0)),((m=m||"#000")!==f.fill||h!==f.stroke||g!==f.autoStroke||a!==f.align||o!==f.verticalAlign)&&(s=!0,f.fill=m,f.stroke=h,f.autoStroke=g,f.align=a,f.verticalAlign=o,t.setDefaultTextStyle(f)),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()?aN:aD},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&i0(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+255*!i*(1-r);return n[3]=1,i3(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},nz(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("string"==typeof e)this.attrKV(e,t);else if(n2(e))for(var n=nG(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===aW)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,aH)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||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(aW,!1,e)},e.prototype.useState=function(e,t,n,r){var i,a=e===aW;if(this.hasState()||!a){var o=this.currentStates,s=this.stateTransition;if(!(nq(o,e)>=0)||!t&&1!==o.length){if(this.stateProxy&&!a&&(i=this.stateProxy(e)),i||(i=this.states&&this.states[e]),!i&&!a)return void nL("State "+e+" not exists.");a||this.saveCurrentToNormalState(i);var l=!!(i&&i.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,i,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,_=this._textGuide;return c&&c.useState(e,t,n,l),_&&_.useState(e,t,n,l),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),i}}},e.prototype.useStates=function(e,t,n){if(e.length){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){for(var s=0;s<a;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&r.push(c)}var _=r[a-1],u=!!(_&&_.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,u),m&&m.useStates(e,t,u),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=nq(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=nq(r,e),a=nq(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];nz(n,i),i.textConfig&&nz(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=nz({},r?this.textConfig:n.textConfig),nz(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<aH.length;c++){var _=aH[c],u=i&&a$[_];t&&null!=t[_]?u?(l=!0,s[_]=t[_]):this[_]=t[_]:o&&null!=n[_]&&(u?(l=!0,s[_]=n[_]):this[_]=n[_])}if(!i)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(t||n)[p]:t||n)}l&&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 aj,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),nz(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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 as(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=nq(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?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){aY(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){aY(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=aY(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;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),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}})}}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function aY(e,t,n,r,i){var a=[];!function e(t,n,r,i,a,o,s,l){for(var c=nG(i),_=a.duration,u=a.delay,d=a.additive,p=a.setToFinal,f=!n2(o),m=t.animators,h=[],g=0;g<c.length;g++){var y=c[g],x=i[y];if(null!=x&&null!=r[y]&&(f||o[y]))if(!n2(x)||nV(x)||n8(x))h.push(y);else{if(n){l||(r[y]=x,t.updateDuringAnimation(n));continue}e(t,y,r[y],x,a,o&&o[y],s,l)}else l||(r[y]=x,t.updateDuringAnimation(n),h.push(y))}var b=h.length;if(!d&&b)for(var S=0;S<m.length;S++){var k=m[S];if(k.targetName===n&&k.stopTracks(h)){var T=nq(m,k);m.splice(T,1)}}if(a.force||(b=(h=nK(h,function(e){var t,n;return!((t=i[e])===(n=r[e])||nV(t)&&nV(n)&&function(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}(t,n))})).length),b>0||a.force&&!s.length){var C=void 0,w=void 0,D=void 0;if(l){w={},p&&(C={});for(var S=0;S<b;S++){var y=h[S];w[y]=r[y],p?C[y]=i[y]:r[y]=i[y]}}else if(p){D={};for(var S=0;S<b;S++){var y=h[S];D[y]=at(r[y]),function(e,t,n){if(nV(t[n]))if(nV(e[n])||(e[n]=[]),n4(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),aQ(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(nV(i[0]))for(var s=i[0].length,l=0;l<o;l++)a[l]?aQ(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else aQ(a,i,o);a.length=i.length}else e[n]=t[n]}(r,i,y)}}var k=new as(r,!1,!1,d?nK(m,function(e){return e.targetName===n}):null);k.targetName=n,a.scope&&(k.scope=a.scope),p&&C&&k.whenWithKeys(0,C,h),D&&k.whenWithKeys(0,D,h),k.whenWithKeys(null==_?500:_,l?w:i,h).delay(u||0),t.addAnimator(k,n),s.push(k)}}(e,"",e,t,n=n||{},r,a,i);var o=a.length,s=!1,l=n.done,c=n.aborted,_=function(){s=!0,--o<=0&&(s?l&&l():c&&c())},u=function(){--o<=0&&(s?l&&l():c&&c())};!o&&l&&l(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var d=0;d<a.length;d++){var p=a[d];_&&p.done(_),u&&p.aborted(u),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function aQ(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}nU(aX,rw),nU(aX,aj);var aZ=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return rf(t,e),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=nq(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=nq(n,e);return r<0||(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 r6(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(),l=o.getLocalTransform(r);l?(r6.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(aX);aZ.prototype.type="group";var a0={},a1={},a2=function(){function e(e,t,n){var r,i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new im,o=n.renderer||"canvas";a0[o]||(o=nG(a0)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new a0[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var c=nb.node||nb.worker||l?null:new aT(s.getViewportRoot(),s.root),_=n.useCoarsePointer;(null==_||"auto"===_?nb.touchEventsSupported:!!_)&&(r=n5(n.pointerSize,44)),this.handler=new ir(a,s,c,s.root,r),this.animation=new ac({stage:{update:l?null:function(){return i._flush(!0)}}}),l||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=function(e){if(!e)return!1;if("string"==typeof e)return .4>i4(e,1);if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=i4(t[i].color,1);return(n/=r)<.4}return!1}(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=al();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=al();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=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 aZ&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){if(!this._disposed){var e;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,e=this.id,delete a1[e]}},e}();function a3(e,t){var n=new a2(nM++,e,t);return a1[n.id]=n,n}function a4(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return n0(e)?e.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function a6(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function a8(e){if(isNaN(e*=1))return 0;if(e>1e-14){for(var t,n,r,i,a,o=1,s=0;s<15;s++,o*=10)if(Math.round(e*o)/o===e)return s}return r=(n=(t=e.toString().toLowerCase()).indexOf("e"))>0?+t.slice(n+1):0,i=n>0?n:t.length,Math.max(0,((a=t.indexOf("."))<0?0:i-1-a)-r)}var a5=/^(?:(\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 a7(e){if(e instanceof Date)return e;if(n0(e)){var t=a5.exec(e);if(!t)return new Date(NaN);if(!t[8])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);var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(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))}return null==e?new Date(NaN):new Date(Math.round(e))}function a9(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function oe(e,t){var n=a9(e),r=Math.pow(10,n),i=e/r;return e=(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,n>=-20?+e.toFixed(n<0?-n:0):e}function ot(e){var t=parseFloat(e);return t==e&&(0!==t||!n0(e)||0>=e.indexOf("x"))?t:NaN}function on(){return Math.round(9*Math.random())}function or(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}var oi="series\0";function oa(e){return e instanceof Array?e:null==e?[]:[e]}function oo(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 os=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function ol(e){return!n2(e)||nQ(e)||e instanceof Date?e:e.value}function oc(e,t,n){var r=ou(t[e],null),i=ou(n[e],null);return null!=r&&null!=i&&r===i}function o_(e){return ou(e,"")}function ou(e,t){return null==e?t:n0(e)?e:n1(e)||"[object String]"===nD.call(e)?e+"":t}function od(e){var t=e.name;return!!(t&&t.indexOf(oi))}function op(e){return e&&null!=e.id&&0===o_(e.id).indexOf("\0_ec_\0")}function of(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?nQ(t.dataIndex)?nH(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?nQ(t.name)?nH(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function om(){var e="__ec_inner_"+oh++;return function(t){return t[e]||(t[e]={})}}var oh=on();function og(e,t,n){var r=oy(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=ox(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});o[r+"Models"]=i.models,o[r+"Model"]=i.models[0]}),o}function oy(e,t){if(n0(e)){var n,r={};r[e+"Index"]=0,n=r}else n=e;var i=rs(),a={},o=!1;return nW(n,function(e,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&0>nq(t.includeMainTypes,s)||(o=o||!!s,(i.get(s)||i.set(s,{}))[l]=e)}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ov={useDefault:!0,enableAll:!1,enableNone:!1};function ox(e,t,n,r){r=r||ov;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(rt(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[]):("all"===i&&(rt(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o})),s}var ob="___EC__COMPONENT__CONTAINER___",oS="___EC__EXTENDED_CLASS___";function ok(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function oT(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;if(nZ(t=r)&&/^class\s/.test(Function.prototype.toString.call(t)))n=function(e){function t(){return e.apply(this,arguments)||this}return nv(t,e),t}(r);else{var i=n=function(){(e.$constructor||r).apply(this,arguments)},a=i.prototype;function o(){}for(var s in o.prototype=this.prototype,i.prototype=new o,a)a.hasOwnProperty(s)&&(i.prototype[s]=a[s]);i.prototype.constructor=i,i.superClass=this}return nz(n.prototype,e),n[oS]=!0,n.extend=this.extend,n.superCall=oD,n.superApply=oN,n.superClass=r,n}}function oC(e,t){e.extend=t.extend}var ow=Math.round(10*Math.random());function oD(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function oN(e,t,n){return this.superClass.prototype[t].apply(e,n)}function oF(e){var t={};e.registerClass=function(e){var n=e.type||e.prototype.type;if(n){rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=n;var r,i,a=ok(n);a.sub?a.sub!==ob&&(((i=t[(r=a).main])&&i[ob]||((i=t[r.main]={})[ob]=!0),i)[a.sub]=e):t[a.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ob]&&(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=ok(e),r=[],i=t[n.main];return i&&i[ob]?nW(i,function(e,t){t!==ob&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ok(e).main]},e.getAllClassMainTypes=function(){var e=[];return nW(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ok(e).main];return n&&n[ob]}}function oP(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&nq(r,s)>=0||i&&0>nq(i,s))){var l=n.getShallow(s,t);null!=l&&(a[e[o][0]]=l)}}return a}}var oE=oP([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oA=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return oE(this,e,t)},e}(),oI=om(),oO=function(e,t,n,r){if(r){var i=oI(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart","group"===r.type&&r.traverse(function(r){var i=oI(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType="chart"})}},oj="__zr_style_"+Math.round(10*Math.random()),oM={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oM[oj]=!0;var oR=["z","z2","invisible"],oB=["invisible"],oz=function(e){var t;function n(t){return e.call(this,t)||this}return rf(n,e),n.prototype._init=function(t){for(var n=nG(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,r){var i,a,o,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,a=e,o=t,oJ.copy(i.getBoundingRect()),i.transform&&oJ.applyTransform(i.transform),oq.width=a,oq.height=o,!oJ.intersect(oq))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(r&&this.parent)for(var c=this.parent;c;){if(c.ignore)return!1;c=c.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.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||(this._paintRect=new r6(0,0,0,0)),t?r6.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+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+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new r6(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate("style",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:nz(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(2&this.__dirty)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return rl(oM,e)},n.prototype.useStyle=function(e){e[oj]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[oj]},n.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,oR)},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var _=nG(c),u=0;u<_.length;u++){var d=_[u];d in s&&(s[d]=s[d],this.style[d]=c[d])}for(var p=nG(s),u=0;u<p.length;u++){var d=p[u];this.style[d]=this.style[d]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else this.useStyle(s);for(var f=this.__inHover?oB:oR,u=0;u<f.length;u++){var d=f[u];n&&null!=n[d]?this[d]=n[d]:l&&null!=r[d]&&(this[d]=r[d])}},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},n.prototype._mergeStyle=function(e,t){return nz(e,t),e},n.prototype.getAnimationStyleProps=function(){return oL},n.initDefaultProps=void((t=n.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3),n}(aX),oJ=new r6(0,0,0,0),oq=new r6(0,0,0,0),oU=Math.min,oV=Math.max,oW=Math.sin,oH=Math.cos,o$=2*Math.PI,oK=rm(),oG=rm(),oX=rm();function oY(e,t,n,r,i,a){i[0]=oU(e,n),i[1]=oU(t,r),a[0]=oV(e,n),a[1]=oV(t,r)}var oQ=[],oZ=[],o0={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o1=[],o2=[],o3=[],o4=[],o6=[],o8=[],o5=Math.min,o7=Math.max,o9=Math.cos,se=Math.sin,st=Math.abs,sn=Math.PI,sr=2*sn,si="undefined"!=typeof Float32Array,sa=[];function so(e){return Math.round(e/sn*1e8)/1e8%2*sn}var ss=function(){var e;function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=st(n/aw/e)||0,this._uy=st(n/aw/t)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(o0.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},t.prototype.lineTo=function(e,t){var n=st(e-this._xi),r=st(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(o0.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},t.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(o0.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},t.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(o0.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),sa[0]=r,sa[1]=i,(o=so(sa[0]))<0&&(o+=sr),s=o-sa[0],l=sa[1]+s,!a&&l-o>=sr?l=o+sr:a&&o-l>=sr?l=o-sr:!a&&o>l?l=o+(sr-so(o-l)):a&&o<l&&(l=o-(sr-so(l-o))),sa[0]=o,sa[1]=l,r=sa[0];var o,s,l,c=(i=sa[1])-r;return this.addData(o0.A,e,t,n,n,r,c,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=o9(i)*n+e,this._yi=se(i)*n+t,this},t.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},t.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(o0.R,e,t,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(o0.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&si&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();si&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},t.prototype.addData=function(e,t,n,r,i,a,o,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var _=0;_<arguments.length;_++)c[this._len++]=arguments[_]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.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}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,si&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){o3[0]=o3[1]=o6[0]=o6[1]=Number.MAX_VALUE,o4[0]=o4[1]=o8[0]=o8[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,a=0;for(e=0;e<this._len;){var o=t[e++],s=1===e;switch(s&&(n=t[e],r=t[e+1],i=n,a=r),o){case o0.M:n=i=t[e++],r=a=t[e++],o6[0]=i,o6[1]=a,o8[0]=i,o8[1]=a;break;case o0.L:oY(n,r,t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.C:!function(e,t,n,r,i,a,o,s,l,c){var _=iF(e,n,i,o,oQ);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var u=0;u<_;u++){var d=iw(e,n,i,o,oQ[u]);l[0]=oU(d,l[0]),c[0]=oV(d,c[0])}_=iF(t,r,a,s,oZ);for(var u=0;u<_;u++){var p=iw(t,r,a,s,oZ[u]);l[1]=oU(p,l[1]),c[1]=oV(p,c[1])}l[0]=oU(e,l[0]),c[0]=oV(e,c[0]),l[0]=oU(o,l[0]),c[0]=oV(o,c[0]),l[1]=oU(t,l[1]),c[1]=oV(t,c[1]),l[1]=oU(s,l[1]),c[1]=oV(s,c[1])}(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.Q:!function(e,t,n,r,i,a,o,s){var l=oV(oU(iO(e,n,i),1),0),c=oV(oU(iO(t,r,a),1),0),_=iA(e,n,i,l),u=iA(t,r,a,c);o[0]=oU(e,i,_),o[1]=oU(t,a,u),s[0]=oV(e,i,_),s[1]=oV(t,a,u)}(n,r,t[e++],t[e++],t[e],t[e+1],o6,o8),n=t[e++],r=t[e++];break;case o0.A:var l=t[e++],c=t[e++],_=t[e++],u=t[e++],d=t[e++],p=t[e++]+d;e+=1;var f=!t[e++];s&&(i=o9(d)*_+l,a=se(d)*u+c),function(e,t,n,r,i,a,o,s,l){var c=Math.abs(i-a);if(c%o$<1e-4&&c>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(oK[0]=oH(i)*n+e,oK[1]=oW(i)*r+t,oG[0]=oH(a)*n+e,oG[1]=oW(a)*r+t,rS(s,oK,oG),rk(l,oK,oG),(i%=o$)<0&&(i+=o$),(a%=o$)<0&&(a+=o$),i>a&&!o?a+=o$:i<a&&o&&(i+=o$),o){var _=a;a=i,i=_}for(var u=0;u<a;u+=Math.PI/2)u>i&&(oX[0]=oH(u)*n+e,oX[1]=oW(u)*r+t,rS(s,oX,s),rk(l,oX,l))}(l,c,_,u,d,p,f,o6,o8),n=o9(p)*_+l,r=se(p)*u+c;break;case o0.R:oY(i=n=t[e++],a=r=t[e++],i+t[e++],a+t[e++],o6,o8);break;case o0.Z:n=i,r=a}rS(o3,o3,o6),rk(o4,o4,o8)}return 0===e&&(o3[0]=o3[1]=o4[0]=o4[1]=0),new r6(o3[0],o3[1],o4[0]-o3[0],o4[1]-o3[1])},t.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||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,_=0,u=0;u<t;){var d=e[u++],p=1===u;p&&(i=e[u],a=e[u+1],o=i,s=a);var f=-1;switch(d){case o0.M:i=o=e[u++],a=s=e[u++];break;case o0.L:var m=e[u++],h=e[u++],g=m-i,y=h-a;(st(g)>n||st(y)>r||u===t-1)&&(f=Math.sqrt(g*g+y*y),i=m,a=h);break;case o0.C:var x=e[u++],b=e[u++],m=e[u++],h=e[u++],S=e[u++],k=e[u++];f=function(e,t,n,r,i,a,o,s,l){for(var c=e,_=t,u=0,d=1;d<=10;d++){var p=.1*d,f=iw(e,n,i,o,p),m=iw(t,r,a,s,p),h=f-c,g=m-_;u+=Math.sqrt(h*h+g*g),c=f,_=m}return u}(i,a,x,b,m,h,S,k,0),i=S,a=k;break;case o0.Q:var x=e[u++],b=e[u++],m=e[u++],h=e[u++];f=function(e,t,n,r,i,a,o){for(var s=e,l=t,c=0,_=1;_<=10;_++){var u=.1*_,d=iA(e,n,i,u),p=iA(t,r,a,u),f=d-s,m=p-l;c+=Math.sqrt(f*f+m*m),s=d,l=p}return c}(i,a,x,b,m,h,0),i=m,a=h;break;case o0.A:var T=e[u++],C=e[u++],w=e[u++],D=e[u++],N=e[u++],F=e[u++],P=F+N;u+=1,p&&(o=o9(N)*w+T,s=se(N)*D+C),f=o7(w,D)*o5(sr,Math.abs(F)),i=o9(P)*w+T,a=se(P)*D+C;break;case o0.R:o=i=e[u++],s=a=e[u++],f=2*e[u++]+2*e[u++];break;case o0.Z:var g=o-i,y=s-a;f=Math.sqrt(g*g+y*y),i=o,a=s}f>=0&&(l[_++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,l,c,_,u,d=this.data,p=this._ux,f=this._uy,m=this._len,h=t<1,g=0,y=0,x=0;if(!h||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=t*this._pathLen))s:for(var b=0;b<m;){var S=d[b++],k=1===b;switch(k&&(i=d[b],a=d[b+1],n=i,r=a),S!==o0.L&&x>0&&(e.lineTo(_,u),x=0),S){case o0.M:n=i=d[b++],r=a=d[b++],e.moveTo(i,a);break;case o0.L:o=d[b++],s=d[b++];var T=st(o-i),C=st(s-a);if(T>p||C>f){if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;e.lineTo(i*(1-D)+o*D,a*(1-D)+s*D);break s}g+=w}e.lineTo(o,s),i=o,a=s,x=0}else{var N=T*T+C*C;N>x&&(_=o,u=s,x=N)}break;case o0.C:var F=d[b++],P=d[b++],E=d[b++],A=d[b++],I=d[b++],O=d[b++];if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;iP(i,F,E,I,D,o1),iP(a,P,A,O,D,o2),e.bezierCurveTo(o1[1],o2[1],o1[2],o2[2],o1[3],o2[3]);break s}g+=w}e.bezierCurveTo(F,P,E,A,I,O),i=I,a=O;break;case o0.Q:var F=d[b++],P=d[b++],E=d[b++],A=d[b++];if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;ij(i,F,E,D,o1),ij(a,P,A,D,o2),e.quadraticCurveTo(o1[1],o2[1],o1[2],o2[2]);break s}g+=w}e.quadraticCurveTo(F,P,E,A),i=E,a=A;break;case o0.A:var j=d[b++],M=d[b++],L=d[b++],R=d[b++],B=d[b++],z=d[b++],J=d[b++],q=!d[b++],U=L>R?L:R,V=st(L-R)>.001,W=B+z,H=!1;if(h){var w=l[y++];g+w>c&&(W=B+z*(c-g)/w,H=!0),g+=w}if(V&&e.ellipse?e.ellipse(j,M,L,R,J,B,W,q):e.arc(j,M,U,B,W,q),H)break s;k&&(n=o9(B)*L+j,r=se(B)*R+M),i=o9(W)*L+j,a=se(W)*R+M;break;case o0.R:n=i=d[b],r=a=d[b+1],o=d[b++],s=d[b++];var $=d[b++],K=d[b++];if(h){var w=l[y++];if(g+w>c){var G=c-g;e.moveTo(o,s),e.lineTo(o+o5(G,$),s),(G-=$)>0&&e.lineTo(o+$,s+o5(G,K)),(G-=K)>0&&e.lineTo(o+o7($-G,0),s+K),(G-=$)>0&&e.lineTo(o,s+o7(K-G,0));break s}g+=w}e.rect(o,s,$,K);break;case o0.Z:if(h){var w=l[y++];if(g+w>c){var D=(c-g)/w;e.lineTo(i*(1-D)+n*D,a*(1-D)+r*D);break s}g+=w}e.closePath(),i=n,a=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=o0,t.initDefaultProps=void((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0),t}();function sl(e,t,n,r,i,a,o){if(0===i)return!1;var s=0,l=e;if(o>t+i&&o>r+i||o<t-i&&o<r-i||a>e+i&&a>n+i||a<e-i&&a<n-i)return!1;if(e===n)return Math.abs(a-e)<=i/2;s=(t-r)/(e-n);var c=s*a-o+(l=(e*r-n*t)/(e-n));return c*c/(s*s+1)<=i/2*i/2}var sc=2*Math.PI;function s_(e){return(e%=sc)<0&&(e+=sc),e}var su=2*Math.PI;function sd(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;(1===o||0===o)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===i?1/0:l>i?s:0}var sp=ss.CMD,sf=2*Math.PI,sm=[-1,-1,-1],sh=[-1,-1];function sg(e,t,n,r,i){for(var a,o,s=e.data,l=e.len(),c=0,_=0,u=0,d=0,p=0,f=0;f<l;){var m,h,g,y,x,b,S,k,T,C,w,D,N,F,P=s[f++],E=1===f;switch(P===sp.M&&f>1&&!n&&(c+=sd(_,u,d,p,r,i)),E&&(_=s[f],u=s[f+1],d=_,p=u),P){case sp.M:d=s[f++],p=s[f++],_=d,u=p;break;case sp.L:if(n){if(sl(_,u,s[f],s[f+1],t,r,i))return!0}else c+=sd(_,u,s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.C:if(n){if(m=_,h=u,g=s[f++],y=s[f++],x=s[f++],b=s[f++],S=s[f],k=s[f+1],0!==t&&(!(i>h+t)||!(i>y+t)||!(i>b+t)||!(i>k+t))&&(!(i<h-t)||!(i<y-t)||!(i<b-t)||!(i<k-t))&&(!(r>m+t)||!(r>g+t)||!(r>x+t)||!(r>S+t))&&(!(r<m-t)||!(r<g-t)||!(r<x-t)||!(r<S-t))&&iE(m,h,g,y,x,b,S,k,r,i,null)<=t/2)return!0}else c+=function(e,t,n,r,i,a,o,s,l,c){if(c>t&&c>r&&c>a&&c>s||c<t&&c<r&&c<a&&c<s)return 0;var _=iN(t,r,a,s,c,sm);if(0===_)return 0;for(var u=0,d=-1,p=void 0,f=void 0,m=0;m<_;m++){var h=sm[m],g=0===h||1===h?.5:1;iw(e,n,i,o,h)<l||(d<0&&(d=iF(t,r,a,s,sh),sh[1]<sh[0]&&d>1&&function(){var e=sh[0];sh[0]=sh[1],sh[1]=e}(),p=iw(t,r,a,s,sh[0]),d>1&&(f=iw(t,r,a,s,sh[1]))),2===d?h<sh[0]?u+=p<t?g:-g:h<sh[1]?u+=f<p?g:-g:u+=s<f?g:-g:h<sh[0]?u+=p<t?g:-g:u+=s<p?g:-g)}return u}(_,u,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.Q:if(n){if(T=_,C=u,w=s[f++],D=s[f++],N=s[f],F=s[f+1],0!==t&&(!(i>C+t)||!(i>D+t)||!(i>F+t))&&(!(i<C-t)||!(i<D-t)||!(i<F-t))&&(!(r>T+t)||!(r>w+t)||!(r>N+t))&&(!(r<T-t)||!(r<w-t)||!(r<N-t))&&iM(T,C,w,D,N,F,r,i,null)<=t/2)return!0}else c+=function(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(iT(a)){if(iC(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var _=o*o-4*a*s;if(iT(_)){var c=-o/(2*a);c>=0&&c<=1&&(i[l++]=c)}else if(_>0){var u=iy(_),c=(-o+u)/(2*a),d=(-o-u)/(2*a);c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(t,r,a,s,sm);if(0===l)return 0;var c=iO(t,r,a);if(c>=0&&c<=1){for(var _=0,u=iA(t,r,a,c),d=0;d<l;d++){var p=0===sm[d]||1===sm[d]?.5:1,f=iA(e,n,i,sm[d]);f<o||(sm[d]<c?_+=u<t?p:-p:_+=a<u?p:-p)}return _}var p=0===sm[0]||1===sm[0]?.5:1,f=iA(e,n,i,sm[0]);return f<o?0:a<t?p:-p}(_,u,s[f++],s[f++],s[f],s[f+1],r,i)||0;_=s[f++],u=s[f++];break;case sp.A:var A=s[f++],I=s[f++],O=s[f++],j=s[f++],M=s[f++],L=s[f++];f+=1;var R=!!(1-s[f++]);a=Math.cos(M)*O+A,o=Math.sin(M)*j+I,E?(d=a,p=o):c+=sd(_,u,a,o,r,i);var B=(r-A)*j/O+A;if(n){if(function(e,t,n,r,i,a,o,s,l){if(0===o)return!1;var c=Math.sqrt((s-=e)*s+(l-=t)*l);if(c-o>n||c+o<n)return!1;if(Math.abs(r-i)%su<1e-4)return!0;if(a){var _=r;r=s_(i),i=s_(_)}else r=s_(r),i=s_(i);r>i&&(i+=su);var u=Math.atan2(l,s);return u<0&&(u+=su),u>=r&&u<=i||u+su>=r&&u+su<=i}(A,I,j,M,M+L,R,t,B,i))return!0}else c+=function(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);sm[0]=-l,sm[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=sf-1e-4){r=0,i=sf;var _=a?1:-1;return o>=sm[0]+e&&o<=sm[1]+e?_:0}if(r>i){var u=r;r=i,i=u}r<0&&(r+=sf,i+=sf);for(var d=0,p=0;p<2;p++){var f=sm[p];if(f+e>o){var m=Math.atan2(s,f),_=a?1:-1;m<0&&(m=sf+m),(m>=r&&m<=i||m+sf>=r&&m+sf<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(_=-_),d+=_)}}return d}(A,I,j,M,M+L,R,B,i);_=Math.cos(M+L)*O+A,u=Math.sin(M+L)*j+I;break;case sp.R:d=_=s[f++],p=u=s[f++];var z=s[f++],J=s[f++];if(a=d+z,o=p+J,n){if(sl(d,p,a,p,t,r,i)||sl(a,p,a,o,t,r,i)||sl(a,o,d,o,t,r,i)||sl(d,o,d,p,t,r,i))return!0}else c+=sd(a,p,a,o,r,i),c+=sd(d,o,d,p,r,i);break;case sp.Z:if(n){if(sl(_,u,d,p,t,r,i))return!0}else c+=sd(_,u,d,p,r,i);_=d,u=p}}return n||1e-4>Math.abs(u-p)||(c+=sd(_,u,d,p,r,i)||0),0!==c}var sy=nJ({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oM),sv={style:nJ({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oL.style)},sx=aM.concat(["invisible","culling","z","z2","zlevel","parent"]),sb=function(e){var t;function n(t){return e.call(this,t)||this}return rf(n,e),n.prototype.update=function(){var t=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.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<sx.length;++s)i[sx[s]]=this[sx[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=nG(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];"style"===a?this.style?nz(this.style,o):this.useStyle(o):"shape"===a?nz(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(n0(e)){var t=i4(e,0);return t>.5?aD:t>.2?"#eee":aN}else if(e)return aN}return aD},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(n0(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==.4>i4(e,0))return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new ss(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},n.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||4&this.__dirty)&&(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||(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 l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}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},n.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)),sg(a,o/s,!0,e,t)))return!0}if(this.hasFill())return sg(a,0,!1,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate("shape",e)},n.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:nz(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(4&this.__dirty)},n.prototype.createStyle=function(e){return rl(sy,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=nz({},this.shape))},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=nz({},r.shape),nz(s,n.shape)):(s=nz({},i?this.shape:r.shape),nz(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=nz({},this.shape);for(var c={},_=nG(s),u=0;u<_.length;u++){var d=_[u];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},o)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},n.prototype.getAnimationStyleProps=function(){return sv},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var t=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return rf(n,t),n.prototype.getDefaultStyle=function(){return nR(e.style)},n.prototype.getDefaultShape=function(){return nR(e.shape)},n}(n);for(var r in e)"function"==typeof e[r]&&(t.prototype[r]=e[r]);return t},n.initDefaultProps=void((t=n.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7),n}(oz),sS=1,sk={},sT=om(),sC=om(),sw=["emphasis","blur","select"],sD=["normal","emphasis","blur","select"],sN="highlight",sF="downplay",sP="select",sE="unselect",sA="toggleSelect";function sI(e){return null!=e&&"none"!==e}function sO(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sj(e){sO(e,"emphasis",2)}function sM(e){2===e.hoverState&&sO(e,"normal",0)}function sL(e){sO(e,"blur",1)}function sR(e){1===e.hoverState&&sO(e,"normal",0)}function sB(e){e.selected=!0}function sz(e){e.selected=!1}function sJ(e,t,n){t(e,n),e.isGroup&&e.traverse(function(e){t(e,n)})}function sq(e,t){var n,r,i,a,o,s=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&nq(n,"select")>=0,a=!1;if(e instanceof sb){var o=sT(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(sI(s)||sI(l)){var c=(r=r||{}).style||{};"inherit"===c.fill?(a=!0,r=nz({},r),(c=nz({},c)).fill=s):!sI(c.fill)&&sI(s)?(a=!0,r=nz({},r),(c=nz({},c)).fill=i8(s)):!sI(c.stroke)&&sI(l)&&(a||(r=nz({},r),c=nz({},c)),c.stroke=i8(l)),r.style=c}}if(r&&null==r.z2){a||(r=nz({},r));var _=e.z2EmphasisLift;r.z2=e.z2+(null!=_?_:10)}return r}(this,0,t,s);else if("blur"===e)return n=s,r=nq(this.currentStates,e)>=0,i=this.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&0>c.__fromStateTransition.indexOf(n)&&"style"===c.targetName&&c.saveTo(a,t)}return a}(this,["opacity"],e,{opacity:1}),null==(o=(n=n||{}).style||{}).opacity&&(n=nz({},n),o=nz({opacity:r?i:.1*a.opacity},o),n.style=o),n;else if("select"===e){var l=s;if(l&&null==l.z2){l=nz({},l);var c=this.z2SelectLift;l.z2=this.z2+(null!=c?c:9)}return l}}return s}function sU(e){e.stateProxy=sq;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sq),n&&(n.stateProxy=sq)}function sV(e,t){sK(e,t)||e.__highByOuter||sJ(e,sj)}function sW(e,t){sK(e,t)||e.__highByOuter||sJ(e,sM)}function sH(e,t){e.__highByOuter|=1<<(t||0),sJ(e,sj)}function s$(e,t){(e.__highByOuter&=~(1<<(t||0)))||sJ(e,sM)}function sK(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function sG(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=sC(i),o="series"===t,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);o||r.push(s),a.isBlured&&(s.group.traverse(function(e){sR(e)}),o&&n.push(i)),a.isBlured=!1}),nW(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function sX(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&sJ(r,sR)}}if((n=n||"coordinateSystem",null!=e)&&t&&"none"!==t){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(e){var i=o===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var _=c&&s?c===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!_||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&"self"===t||sL(e)}),nV(t))a(e.getData(),t);else if(n2(t))for(var u=nG(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);l.push(e),sC(e).isBlured=!0}}),i.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}})}}function sY(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){sC(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){sL(e)})}}}function sQ(e,t,n,r){var i,a={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return a;var o=r.getModel().getComponent(e,t);if(!o)return a;var s=r.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===oI(l[c]).focus){i=!0;break}return{focusSelf:i,dispatchers:l}}function sZ(e){nW(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?sJ(t,sB):sJ(t,sz)})})}function s0(e,t,n){var r,i,a,o,s,l;i=false,(r=e).highDownSilentOnTouch&&(r.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!i||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!i),sJ(e,sU),a=e,o=t,s=n,l=oI(a),null!=o?(l.focus=o,l.blurScope=s):l.focus&&(l.focus=null)}function s1(e){return!!(e&&e.__highDownDispatcher)}function s2(e){var t=e.type;return t===sP||t===sE||t===sA}function s3(e){var t=e.type;return t===sN||t===sF}function s4(e,t,n,r,i,a,o){var s,l=!1;nZ(i)?(o=a,a=i,i=null):n2(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var _=function(e,t,n,r,i){if(t&&t.ecModel){var a,o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(!s)return null;var c=void 0,_=void 0,u=void 0;return r?(c=n5(r.duration,200),_=n5(r.easing,"cubicOut"),u=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),_=t.getShallow(l?"animationEasingUpdate":"animationEasing"),u=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(_=a.easing),null!=a.delay&&(u=a.delay)),nZ(u)&&(u=u(n,i)),nZ(c)&&(c=c(n)),{duration:c||0,delay:u,easing:_}}(e,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(_&&_.duration>0){var u={duration:_.duration,delay:_.delay||0,easing:_.easing,done:a,force:!!a||!!o,setToFinal:!c,scope:e,during:o};l?t.animateFrom(n,u):t.animateTo(n,u)}else t.stopAnimation(),l||t.attr(n),o&&o(1),a&&a()}function s6(e,t,n,r,i,a){s4("update",e,t,n,r,i,a)}function s8(e,t,n,r,i,a){s4("enter",e,t,n,r,i,a)}function s5(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}om();var s7={},s9=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],le=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],lt=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ln(e,t,n,r,i,a,o,s){n=!i&&n||s7;var l=r&&r.inheritColor,c=t.getShallow("color"),_=t.getShallow("textBorderColor"),u=n5(t.getShallow("opacity"),n.opacity);("inherit"===c||"auto"===c)&&(c=l||null),("inherit"===_||"auto"===_)&&(_=l||null),a||(c=c||n.color,_=_||n.textBorderColor),null!=c&&(e.fill=c),null!=_&&(e.stroke=_);var d=n5(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var p=n5(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var f=n5(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(e.lineDashOffset=f),i||null!=u||s||(u=r&&r.defaultOpacity),null!=u&&(e.opacity=u),i||a||null!=e.fill||!r.inheritColor||(e.fill=r.inheritColor);for(var m=0;m<s9.length;m++){var h=s9[m],g=n5(t.getShallow(h),n[h]);null!=g&&(e[h]=g)}for(var m=0;m<le.length;m++){var h=le[m],g=t.getShallow(h);null!=g&&(e[h]=g)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!o||!r.disableBox){for(var m=0;m<lt.length;m++){var h=lt[m],g=t.getShallow(h);null!=g&&(e[h]=g)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),("auto"===e.backgroundColor||"inherit"===e.backgroundColor)&&l&&(e.backgroundColor=l),("auto"===e.borderColor||"inherit"===e.borderColor)&&l&&(e.borderColor=l)}}var lr=om(),li=new iq(50);function la(e,t,n,r,i){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!n)return t;var a=li.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?ls(t=a.image)||a.pending.push(o):((t=nT.loadImage(e,lo,lo)).__zrImageSrc=e,li.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}function lo(){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 ls(e){return e&&e.width&&e.height}var ll=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lc(e,t,n,r){var i=nz({},r=r||{});i.font=t,n=n5(n,"..."),i.maxIterations=n5(r.maxIterations,2);var a=i.minChar=n5(r.minChar,0);i.cnCharWidth=aR("国",t);var o=i.ascCharWidth=aR("a",t);i.placeholder=n5(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var c=aR(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function l_(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var o=aR(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?function(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;o=aR(t=t.substr(0,l),i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}var lu=function(){},ld=function(e){this.tokens=[],e&&(this.tokens=e)},lp=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lf(e,t,n,r,i){var a,o,s=""===t,l=i&&n.rich[i]||{},c=e.lines,_=l.font||n.font,u=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=aU(l.width,r.width)+p;c.length>0&&f+r.accumWidth>r.width&&(a=t.split("\n"),u=!0),r.accumWidth=f}else{var m=lh(t,_,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+p,o=m.linesWidths,a=m.lines}}else a=t.split("\n");for(var h=0;h<a.length;h++){var g=a[h],y=new lu;if(y.styleName=i,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=o?o[h]:aR(g,_),h||u)c.push(new ld([y]));else{var x=(c[c.length-1]||(c[0]=new ld)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=y:(g||!b||s)&&x.push(y)}}}var lm=n$(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function lh(e,t,n,r,i){for(var a=[],o=[],s="",l="",c=0,_=0,u=0;u<e.length;u++){var d=e.charAt(u);if("\n"===d){l&&(s+=l,_+=c),a.push(s),o.push(_),s="",l="",c=0,_=0;continue}var p=aR(d,t),f=!r&&!function(e){var t;return(!((t=e.charCodeAt(0))>=32)||!(t<=591))&&(!(t>=880)||!(t<=4351))&&(!(t>=4608)||!(t<=5119))&&(!(t>=7680)||!(t<=8303))||!!lm[e]}(d);if(a.length?_+p>n:i+_+p>n){_?(s||l)&&(f?(s||(s=l,l="",_=c=0),a.push(s),o.push(_-c),l+=d,c+=p,s="",_=c):(l&&(s+=l,l="",c=0),a.push(s),o.push(_),s=d,_=p)):f?(a.push(l),o.push(c),l=d,c=p):(a.push(d),o.push(p));continue}_+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d)}return a.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(a.push(s),o.push(_)),1===a.length&&(_+=i),{accumWidth:_,lines:a,linesWidths:o}}var lg=nJ({strokeFirst:!0,font:nS,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},sy),ly=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return rl(lg,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=function(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return aB(i[0],t,n,r);for(var a=new r6(0,0,0,0),o=0;o<i.length;o++){var s=aB(i[o],t,n,r);0===o?a.copy(s):a.union(s)}return a}(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(oz);ly.prototype.type="tspan";var lv=nJ({x:0,y:0},oM),lx={style:nJ({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oL.style)},lb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.createStyle=function(e){return rl(lv,e)},t.prototype._getSize=function(e){var t,n=this.style,r=n[e];if(null!=r)return r;var i=(t=n.image)&&"string"!=typeof t&&t.width&&t.height?n.image:this.__image;if(!i)return 0;var a="width"===e?"height":"width",o=n[a];return null==o?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lx},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new r6(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(oz);lb.prototype.type="image";var lS=Math.round;function lk(e,t,n){if(!t)return e;var r=lS(2*e);return(r+lS(t))%2==0?r/2:(r+(n?1:-1))/2}var lT=function(){this.x=0,this.y=0,this.width=0,this.height=0},lC={},lw=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new lT},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o,s,l,c,_,u,d,p,f,m,h,g=function(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=lk(r,s,!0),e.y=lk(i,s,!0),e.width=Math.max(lk(r+a,s,!1)-e.x,+(0!==a)),e.height=Math.max(lk(i+o,s,!1)-e.y,+(0!==o))),e}}(lC,t,this.style);p=g.x,f=g.y,m=g.width,h=g.height,g.r=t.r,t=g}else p=t.x,f=t.y,m=t.width,h=t.height;t.r?(l=(n=t).x,c=n.y,_=n.width,u=n.height,d=n.r,_<0&&(l+=_,_=-_),u<0&&(c+=u,u=-u),"number"==typeof d?r=i=a=o=d:d instanceof Array?1===d.length?r=i=a=o=d[0]:2===d.length?(r=a=d[0],i=o=d[1]):3===d.length?(r=d[0],i=o=d[1],a=d[2]):(r=d[0],i=d[1],a=d[2],o=d[3]):r=i=a=o=0,r+i>_&&(s=r+i,r*=_/s,i*=_/s),a+o>_&&(s=a+o,a*=_/s,o*=_/s),i+a>u&&(s=i+a,i*=u/s,a*=u/s),r+o>u&&(s=r+o,r*=u/s,o*=u/s),e.moveTo(l+r,c),e.lineTo(l+_-i,c),0!==i&&e.arc(l+_-i,c+i,i,-Math.PI/2,0),e.lineTo(l+_,c+u-a),0!==a&&e.arc(l+_-a,c+u-a,a,0,Math.PI/2),e.lineTo(l+o,c+u),0!==o&&e.arc(l+o,c+u-o,o,Math.PI/2,Math.PI),e.lineTo(l,c+r),0!==r&&e.arc(l+r,c+r,r,Math.PI,1.5*Math.PI)):e.rect(p,f,m,h)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(sb);lw.prototype.type="rect";var lD={fill:"#000"},lN={style:nJ({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},oL.style)},lF=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=lD,n.attr(t),n}return rf(t,e),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(){var e;this._childCursor=0,lO(e=this.style),nW(e.rich,lO),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 r6(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=r||e.clone()).union(e)):(r=r||o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||lD},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return nz(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=nG(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},nz(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return lN},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||nS,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,a=t.font,o=aq(a),s=n5(t.lineHeight,o),l=!!t.backgroundColor,c="truncate"===t.lineOverflow,_=!1,u=t.width,d=(n=null!=u&&("break"===r||"breakAll"===r)?e?lh(e,t.font,u,"breakAll"===r,0).lines:[]:e?e.split("\n"):[]).length*s,p=n5(t.height,d);if(d>p&&c){var f=Math.floor(p/s);_=_||n.length>f,n=n.slice(0,f)}if(e&&"truncate"===r&&null!=u)for(var m=lc(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),h={},g=0;g<n.length;g++)l_(h,n[g],m),n[g]=h.textLine,_=_||h.isTruncated;for(var y=p,x=0,g=0;g<n.length;g++)x=Math.max(aR(n[g],a),x);null==u&&(u=x);var b=x;return i&&(y+=i[0]+i[2],b+=i[1]+i[3],u+=i[1]+i[3]),l&&(b=u),{lines:n,height:p,outerWidth:b,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:d,width:u,isTruncated:_}}(lR(e),e),i=lB(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,l=r.contentWidth,c=r.lines,_=r.lineHeight,u=this._defaultStyle;this.isTruncated=!!r.isTruncated;var d=e.x||0,p=e.y||0,f=e.align||u.align||"left",m=e.verticalAlign||u.verticalAlign||"top",h=d,g=aJ(p,r.contentHeight,m);if(i||n){var y=az(d,s,f),x=aJ(p,o,m);i&&this._renderBackground(e,e,y,x,s,o)}g+=_/2,n&&(h=lL(d,f,n),"top"===m?g+=n[0]:"bottom"===m&&(g-=n[2]));for(var b=0,S=!1,k=lM("fill"in e?e.fill:(S=!0,u.fill)),T=lj("stroke"in e?e.stroke:a||u.autoStroke&&!S?null:(b=2,u.stroke)),C=e.textShadowBlur>0,w=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),D=r.calculatedLineHeight,N=0;N<c.length;N++){var F=this._getOrCreateChild(ly),P=F.createStyle();F.useStyle(P),P.text=c[N],P.x=h,P.y=g,f&&(P.textAlign=f),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,C&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=T,P.fill=k,T&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=t,lI(P,e),g+=_,w&&F.setBoundingRect(new r6(az(P.x,l,P.textAlign),aJ(P.y,D,P.textBaseline),l,D))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n,r=new lp;if(null!=e&&(e+=""),!e)return r;for(var i=t.width,a=t.height,o=t.overflow,s=("break"===o||"breakAll"===o)&&null!=i?{width:i,accumWidth:0,breakAll:"breakAll"===o}:null,l=ll.lastIndex=0;null!=(n=ll.exec(e));){var c=n.index;c>l&&lf(r,e.substring(l,c),t,s),lf(r,n[2],t,s,n[1]),l=ll.lastIndex}l<e.length&&lf(r,e.substring(l,e.length),t,s);var _=[],u=0,d=0,p=t.padding,f="truncate"===o,m="truncate"===t.lineOverflow,h={};function g(e,t,n){e.width=t,e.lineHeight=n,u+=n,d=Math.max(d,t)}i:for(var y=0;y<r.lines.length;y++){for(var x=r.lines[y],b=0,S=0,k=0;k<x.tokens.length;k++){var T=x.tokens[k],C=T.styleName&&t.rich[T.styleName]||{},w=T.textPadding=C.padding,D=w?w[1]+w[3]:0,N=T.font=C.font||t.font;T.contentHeight=aq(N);var F=n5(C.height,T.contentHeight);if(T.innerHeight=F,w&&(F+=w[0]+w[2]),T.height=F,T.lineHeight=n7(C.lineHeight,t.lineHeight,F),T.align=C&&C.align||t.align,T.verticalAlign=C&&C.verticalAlign||"middle",m&&null!=a&&u+T.lineHeight>a){var P=r.lines.length;k>0?(x.tokens=x.tokens.slice(0,k),g(x,S,b),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y),r.isTruncated=r.isTruncated||r.lines.length<P;break i}var E=C.width,A=null==E||"auto"===E;if("string"==typeof E&&"%"===E.charAt(E.length-1))T.percentWidth=E,_.push(T),T.contentWidth=aR(T.text,N);else{if(A){var I=C.backgroundColor,O=I&&I.image;O&&ls(O=function(e){if("string"!=typeof e)return e;var t=li.get(e);return t&&t.image}(O))&&(T.width=Math.max(T.width,O.width*F/O.height))}var j=f&&null!=i?i-S:null;null!=j&&j<T.width?!A||j<D?(T.text="",T.width=T.contentWidth=0):(!function(e,t,n,r,i,a){if(!n){e.text="",e.isTruncated=!1;return}var o=(t+"").split("\n");a=lc(n,r,i,a);for(var s=!1,l={},c=0,_=o.length;c<_;c++)l_(l,o[c],a),o[c]=l.textLine,s=s||l.isTruncated;e.text=o.join("\n"),e.isTruncated=s}(h,T.text,j-D,N,t.ellipsis,{minChar:t.truncateMinChar}),T.text=h.text,r.isTruncated=r.isTruncated||h.isTruncated,T.width=T.contentWidth=aR(T.text,N)):T.contentWidth=aR(T.text,N)}T.width+=D,S+=T.width,C&&(b=Math.max(b,T.lineHeight))}g(x,S,b)}r.outerWidth=r.width=n5(i,d),r.outerHeight=r.height=n5(a,u),r.contentHeight=u,r.contentWidth=d,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var y=0;y<_.length;y++){var T=_[y],M=T.percentWidth;T.width=parseInt(M,10)/100*r.width}return r}(lR(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,l=this._defaultStyle,c=e.align||l.align,_=e.verticalAlign||l.verticalAlign;this.isTruncated=!!t.isTruncated;var u=az(o,r,c),d=aJ(s,i,_),p=u,f=d;a&&(p+=a[3],f+=a[0]);var m=p+n;lB(e)&&this._renderBackground(e,e,u,d,r,i);for(var h=!!e.backgroundColor,g=0;g<t.lines.length;g++){for(var y=t.lines[g],x=y.tokens,b=x.length,S=y.lineHeight,k=y.width,T=0,C=p,w=m,D=b-1,N=void 0;T<b&&(!(N=x[T]).align||"left"===N.align);)this._placeToken(N,e,S,f,C,"left",h),k-=N.width,C+=N.width,T++;for(;D>=0&&"right"===(N=x[D]).align;)this._placeToken(N,e,S,f,w,"right",h),k-=N.width,w-=N.width,D--;for(C+=(n-(C-p)-(m-w)-k)/2;T<=D;)N=x[T],this._placeToken(N,e,S,f,C+N.width/2,"center",h),C+=N.width,T++;f+=S}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=r+n/2;"top"===l?c=r+e.height/2:"bottom"===l&&(c=r+n-e.height/2),!e.isLineHolder&&lB(s)&&this._renderBackground(s,t,"right"===a?i-e.width:"center"===a?i-e.width/2:i,c-e.height/2,e.width,e.height);var _=!!s.backgroundColor,u=e.textPadding;u&&(i=lL(i,a,u),c-=e.height/2-u[0]-e.innerHeight/2);var d=this._getOrCreateChild(ly),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,m=!1,h=0,g=lM("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,f.fill)),y=lj("stroke"in s?s.stroke:"stroke"in t?t.stroke:_||o||f.autoStroke&&!m?null:(h=2,f.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=c,x&&(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||nS,p.opacity=n7(s.opacity,t.opacity,1),lI(p,s),y&&(p.lineWidth=n7(s.lineWidth,t.lineWidth,h),p.lineDash=n5(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),g&&(p.fill=g);var b=e.contentWidth,S=e.contentHeight;d.setBoundingRect(new r6(az(p.x,b,p.textAlign),aJ(p.y,S,p.textBaseline),b,S))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,l=e.backgroundColor,c=e.borderWidth,_=e.borderColor,u=l&&l.image,d=l&&!u,p=e.borderRadius,f=this;if(d||e.lineHeight||c&&_){(o=this._getOrCreateChild(lw)).useStyle(o.createStyle()),o.style.fill=null;var m=o.shape;m.x=n,m.y=r,m.width=i,m.height=a,m.r=p,o.dirtyShape()}if(d){var h=o.style;h.fill=l||null,h.fillOpacity=n5(e.fillOpacity,1)}else if(u){(s=this._getOrCreateChild(lb)).onload=function(){f.dirtyStyle()};var g=s.style;g.image=l.image,g.x=n,g.y=r,g.width=i,g.height=a}if(c&&_){var h=o.style;h.lineWidth=c,h.stroke=_,h.strokeOpacity=n5(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2)}var y=(o||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=n7(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n,r="";return(null!=(t=e).fontSize||t.fontFamily||t.fontWeight)&&(r=[e.fontStyle,e.fontWeight,"string"==typeof(n=e.fontSize)&&(-1!==n.indexOf("px")||-1!==n.indexOf("rem")||-1!==n.indexOf("em"))?n:isNaN(+n)?"12px":n+"px",e.fontFamily||"sans-serif"].join(" ")),r&&rn(r)||e.textFont||e.font},t}(oz),lP={left:!0,right:1,center:1},lE={top:1,bottom:1,middle:1},lA=["fontStyle","fontWeight","fontSize","fontFamily"];function lI(e,t){for(var n=0;n<lA.length;n++){var r=lA[n],i=t[r];null!=i&&(e[r]=i)}}function lO(e){if(e){e.font=lF.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||lP[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||lE[n]?n:"top",e.padding&&(e.padding=re(e.padding))}}function lj(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function lM(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function lL(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function lR(e){var t=e.text;return null!=t&&(t+=""),t}function lB(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var lz=["textStyle","color"],lJ=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lq=new lF,lU=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(lz):null)},e.prototype.getFont=function(){var e,t,n;return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),rn([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(" "))},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<lJ.length;n++)t[lJ[n]]=this.getShallow(lJ[n]);return lq.useStyle(t),lq.update(),lq.getBoundingRect()},e}(),lV=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lW=oP(lV),lH=function(){function e(){}return e.prototype.getLineStyle=function(e){return lW(this,e)},e}(),l$=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lK=oP(l$),lG=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return lK(this,e,t)},e}(),lX=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){nB(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(nR(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!nb.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else 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]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();oT(lX),k=["__\0is_clz",ow++].join("_"),lX.prototype[k]=!0,lX.isInstance=function(e){return!!(e&&e[k])},nU(lX,lH),nU(lX,lG),nU(lX,oA),nU(lX,lU);var lY=Math.round(10*Math.random());function lQ(e){return[e||"",lY++].join("_")}var lZ={},l0={},l1=nb.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function l2(e,t){l0[e=e.toUpperCase()]=new lX(t),lZ[e]=t}l2("EN",{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:". "}}}}),l2("ZH",{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:""}}}});var l3={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},l4="{yyyy}-{MM}-{dd}",l6={year:"{yyyy}",month:"{yyyy}-{MM}",day:l4,hour:l4+" "+l3.hour,minute:l4+" "+l3.minute,second:l4+" "+l3.second,millisecond:l3.none},l8=["year","month","day","hour","minute","second","millisecond"],l5=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function l7(e,t){return e+="","0000".substr(0,t-e.length)+e}function l9(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 ce(e,t,n,r){var i=a7(e),a=i[cr(n)](),o=i[ci(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[ca(n)](),c=i["get"+(n?"UTC":"")+"Day"](),_=i[co(n)](),u=(_-1)%12+1,d=i[cs(n)](),p=i[cl(n)](),f=i[cc(n)](),m=_>=12?"pm":"am",h=m.toUpperCase(),g=(r instanceof lX?r:l0[r||l1]||l0.EN).getModel("time"),y=g.get("month"),x=g.get("monthAbbr"),b=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,h+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,l7(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,l7(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,l7(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,l7(_,2)).replace(/{H}/g,_+"").replace(/{hh}/g,l7(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,l7(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,l7(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,l7(f,3)).replace(/{S}/g,f+"")}function ct(e,t){var n=a7(e),r=n[ci(t)]()+1,i=n[ca(t)](),a=n[co(t)](),o=n[cs(t)](),s=n[cl(t)](),l=0===n[cc(t)](),c=l&&0===s,_=c&&0===o,u=_&&0===a,d=u&&1===i;if(d&&1===r)return"year";if(d)return"month";if(u)return"day";if(_)return"hour";if(c)return"minute";else if(l)return"second";else return"millisecond"}function cn(e,t,n){var r=n1(e)?a7(e):e;switch(t=t||ct(e,n)){case"year":return r[cr(n)]();case"half-year":return+(r[ci(n)]()>=6);case"quarter":return Math.floor((r[ci(n)]()+1)/4);case"month":return r[ci(n)]();case"day":return r[ca(n)]();case"half-day":return r[co(n)]()/24;case"hour":return r[co(n)]();case"minute":return r[cs(n)]();case"second":return r[cl(n)]();case"millisecond":return r[cc(n)]()}}function cr(e){return e?"getUTCFullYear":"getFullYear"}function ci(e){return e?"getUTCMonth":"getMonth"}function ca(e){return e?"getUTCDate":"getDate"}function co(e){return e?"getUTCHours":"getHours"}function cs(e){return e?"getUTCMinutes":"getMinutes"}function cl(e){return e?"getUTCSeconds":"getSeconds"}function cc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function c_(e){return e?"setUTCMonth":"setMonth"}function cu(e){return e?"setUTCDate":"setDate"}function cd(e){return e?"setUTCHours":"setHours"}function cp(e){return e?"setUTCMinutes":"setMinutes"}function cf(e){return e?"setUTCSeconds":"setSeconds"}function cm(e){return e?"setUTCMilliseconds":"setMilliseconds"}var ch=["a","b","c","d","e","f","g"],cg=function(e,t){return"{"+e+(null==t?"":t)+"}"},cy=["left","right","top","bottom","width","height"],cv=[["width","left","right"],["height","top","bottom"]];function cx(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild(function(l,c){var _,u,d=l.getBoundingRect(),p=t.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=d.width+(f?-f.x+d.x:0);(_=a+m)>r||l.newline?(a=0,_=m,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var h=d.height+(f?-f.y+d.y:0);(u=o+h)>i||l.newline?(a+=s+n,o=0,u=h,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=_+n:o=u+n)})}function cb(e){var t=e.layoutMode||e.constructor.layoutMode;return n2(t)?t:t?{type:t}:null}function cS(e,t,n){var r=n&&n.ignoreSize;nQ(r)||(r=[r,r]);var i=o(cv[0],0),a=o(cv[1],1);function o(n,i){var a={},o=0,c={},_=0;if(nW(n,function(t){c[t]=e[t]}),nW(n,function(e){s(t,e)&&(a[e]=c[e]=t[e]),l(a,e)&&o++,l(c,e)&&_++}),r[i])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(2===_||!o)return c;if(o>=2)return a;for(var u=0;u<n.length;u++){var d=n[u];if(!s(a,d)&&s(e,d)){a[d]=e[d];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){nW(e,function(e){t[e]=n[e]})}c(cv[0],e,i),c(cv[1],e,a)}nY(cx,"vertical"),nY(cx,"horizontal");function ck(e,t){return t&&e&&nW(cy,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var cT=om(),cC=function(e){var t;function n(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=lQ("ec_cpt_model"),i}return nv(n,e),n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=cb(this),r=n?ck({},e):{};nB(e,t.getTheme().get(this.mainType)),nB(e,this.getDefaultOption()),n&&cS(e,r,n)},n.prototype.mergeOption=function(e,t){nB(this.option,e,!0);var n=cb(this);n&&cS(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!(e&&e[oS]))return e.defaultOption;var t=cT(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=nB(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){return ox(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)},t)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=void((t=n.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0),n}(lX);oC(cC,lX),oF(cC),T={},cC.registerSubTypeDefaulter=function(e,t){T[ok(e).main]=t},cC.determineSubType=function(e,t){var n=t.type;if(!n){var r=ok(e).main;cC.hasSubTypes(e)&&T[r]&&(n=T[r](t))}return n};var cw=function(e){var t=[];return nW(cC.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=nH(t,function(e){return ok(e).main}),"dataset"!==e&&0>=nq(t,"dataset")&&t.unshift("dataset"),t};function cD(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}cC.topologicalTravel=function(e,t,n,r){if(e.length){var i,a,o,s=(a={},o=[],nW(i=t,function(e){var t,n,r,s=cD(a,e),l=(t=s.originalDeps=cw(e),n=i,r=[],nW(t,function(e){nq(n,e)>=0&&r.push(e)}),r);s.entryCount=l.length,0===s.entryCount&&o.push(e),nW(l,function(t){0>nq(s.predecessor,t)&&s.predecessor.push(t);var n=cD(a,t);0>nq(n.successor,t)&&n.successor.push(e)})}),{graph:a,noEntryList:o}),l=s.graph,c=s.noEntryList,_={};for(nW(e,function(e){_[e]=!0});c.length;){var u=c.pop(),d=l[u],p=!!_[u];p&&(n.call(r,u,d.originalDeps.slice()),delete _[u]),nW(d.successor,p?m:f)}nW(_,function(){throw Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&c.push(e)}function m(e){_[e]=!0,f(e)}};var cN="";"undefined"!=typeof navigator&&(cN=navigator.platform||"");var cF="rgba(0, 0, 0, 0.2)";let cP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:cF,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:cF,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:cF,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:cF,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:cF,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:cF,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cN.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var cE=rs(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),cA="original",cI="arrayRows",cO="objectRows",cj="keyedColumns",cM="typedArray",cL="unknown",cR="column",cB=om();function cz(e,t){return function(e,t,n,r,i,a){var o,s,l;if(n4(e))return 3;if(r){var c=r[a];n2(c)?(s=c.name,l=c.type):n0(c)&&(s=c)}if(null!=l)return"ordinal"===l?1:3;if(t===cI)if("row"===n){for(var _=e[a],u=0;u<(_||[]).length&&u<5;u++)if(null!=(o=m(_[i+u])))return o}else for(var u=0;u<e.length&&u<5;u++){var d=e[i+u];if(d&&null!=(o=m(d[a])))return o}else if(t===cO){if(!s)return 3;for(var u=0;u<e.length&&u<5;u++){var p=e[u];if(p&&null!=(o=m(p[s])))return o}}else if(t===cj){if(!s)return 3;var _=e[s];if(!_||n4(_))return 3;for(var u=0;u<_.length&&u<5;u++)if(null!=(o=m(_[u])))return o}else if(t===cA)for(var u=0;u<e.length&&u<5;u++){var p=e[u],f=ol(p);if(!nQ(f))return 3;if(null!=(o=m(f[a])))return o}function m(e){var t=n0(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var cJ=rs(),cq=om();om();var cU=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){return function(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var _=null!=o&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if((_=_||n)&&_.length){var u=_[l];return i&&(c[i]=u),s.paletteIdx=(l+1)%_.length,u}}(this,cq,oa(this.get("color",!0)),this.get("colorLayer",!0),e,t,n)},e.prototype.clearColorPalette=function(){var e,t;e=this,(t=cq)(e).paletteIdx=0,t(e).paletteNameMap={}},e}(),cV="\0_ec_inner",cW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nv(t,e),t.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new lX(r),this._locale=new lX(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=cK(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,cK(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):A(this,i),n=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var o=r.getMediaOption(this);o.length&&nW(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=rs(),s=t&&t.replaceMergeMainTypeMap;cB(this).datasetMap=rs(),nW(e,function(e,t){null!=e&&(cC.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=null==n[t]?nR(e):nB(n[t],e,!0))}),s&&s.each(function(e,t){cC.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),cC.topologicalTravel(a,cC.getAllClassMainTypes(),function(t){var a,o,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T,C,w,D=function(e,t,n){var r=cJ.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,oa(e[t])),N=r.get(t),F=N?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",E=(y=N,x=D,b="normalMerge"===F,S="replaceMerge"===F,k="replaceAll"===F,y=y||[],x=(x||[]).slice(),T=rs(),nW(x,function(e,t){if(!n2(e)){x[t]=null;return}}),C=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&null!=a.id&&t.set(a.id,i),r.push({existing:"replaceMerge"===n||op(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(y,T,F),(b||S)&&(a=C,o=y,l=T,nW(c=x,function(e,t){if(e&&null!=e.id){var n=o_(e.id),r=l.get(n);if(null!=r){var i=a[r];rt(!i.newOption,'Duplicated option on id "'+n+'".'),i.newOption=e,i.existing=o[r],c[t]=null}}})),b&&(_=C,nW(u=x,function(e,t){if(e&&null!=e.name)for(var n=0;n<_.length;n++){var r=_[n].existing;if(!_[n].newOption&&r&&(null==r.id||null==e.id)&&!op(e)&&!op(r)&&oc("name",r,e)){_[n].newOption=e,u[t]=null;return}}})),b||S?(d=C,p=x,f=S,nW(p,function(e){if(e){for(var t,n=0;(t=d[n])&&(t.newOption||op(t.existing)||t.existing&&null!=e.id&&!oc("id",e,t.existing));)n++;t?(t.newOption=e,t.brandNew=f):d.push({newOption:e,brandNew:f,existing:null,keyInfo:null}),n++}})):k&&(m=C,nW(x,function(e){m.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})),h=C,g=rs(),nW(h,function(e){var t=e.existing;t&&g.set(t.id,e)}),nW(h,function(e){var t=e.newOption;rt(!t||null==t.id||!g.get(t.id)||g.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&g.set(t.id,e),e.keyInfo||(e.keyInfo={})}),nW(h,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(n2(r)){if(i.name=null!=r.name?o_(r.name):n?n.name:oi+t,n)i.id=o_(n.id);else if(null!=r.id)i.id=o_(r.id);else{var a=0;do i.id="\0"+i.name+"\0"+a++;while(g.get(i.id))}g.set(i.id,e)}}),C);nW(E,function(e){var n,r,i,a,o=e.newOption;n2(o)&&(e.keyInfo.mainType=t,e.keyInfo.subType=(n=t,r=o,i=e.existing,a=cC,r.type?r.type:i?i.subType:a.determineSubType(n,r)))}),n[t]=null,r.set(t,null),i.set(t,0);var A=[],I=[],O=0;nW(E,function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,o=cC.getClass(t,e.keyInfo.subType,!a);if(!o)return;if("tooltip"===t){if(w)return;w=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=nz({componentIndex:n},e.keyInfo);nz(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(A.push(r.option),I.push(r),O++):(A.push(void 0),I.push(void 0))},this),n[t]=A,r.set(t,I),i.set(t,O),"series"===t&&P(this)},this),this._seriesIndices||P(this)},t.prototype.getOption=function(){var e=nR(this.option);return nW(e,function(t,n){if(cC.hasClass(n)){for(var r=oa(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!op(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[cV],e},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(null==t){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t,n=e.mainType;if(!n)return[];var r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(n);return o&&o.length?(null!=r?(t=[],nW(oa(r),function(e){o[e]&&t.push(o[e])})):t=null!=i?cH("id",i,o):null!=a?cH("name",a,o):nK(o,function(e){return!!e}),c$(t,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,l=(t=o,n=s+"Index",r=s+"Id",i=s+"Name",t&&(null!=t[n]||null!=t[r]||null!=t[i])?{mainType:s,index:t[n],id:t[r],name:t[i]}:null);return a=c$(l?this.queryComponents(l):nK(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?nK(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(nZ(e))r.each(function(n,r){for(var i=0;n&&i<n.length;i++){var a=n[i];a&&e.call(t,r,a,a.componentIndex)}});else for(var i=n0(e)?r.get(e):n2(e)?this.findComponents(e):null,a=0;i&&a<i.length;a++){var o=i[a];o&&t.call(n,o,o.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ou(e,null);return nK(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return nK(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return nK(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){E(this),nW(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){nW(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){E(this),nW(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 nW(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return E(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){E(this);var n=[];nW(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=rs(n)},t.prototype.restoreData=function(e){P(this);var t=this._componentsMap,n=[];t.each(function(e,t){cC.hasClass(t)&&n.push(t)}),cC.topologicalTravel(n,cC.getAllClassMainTypes(),function(n){nW(t.get(n),function(t){t&&("series"!==n||!function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e))&&t.restoreData()})})},t.internalField=void(P=function(e){var t=e._seriesIndices=[];nW(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=rs(t)},E=function(e){},A=function(e,t){e.option={},e.option[cV]=1,e._componentsMap=rs({series:[]}),e._componentsCount=rs();var n,r,i,a=t.aria;n2(a)&&null==a.enabled&&(a.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,nW(r,function(e,t){("colorLayer"!==t||!i)&&(cC.hasClass(t)||("object"==typeof e?n[t]=n[t]?nB(n[t],e,!1):nR(e):null==n[t]&&(n[t]=e)))}),nB(t,cP,!1),e._mergeOption(t,null)}),t}(lX);function cH(e,t,n){if(nQ(t)){var r=rs();return nW(t,function(e){null!=e&&null!=ou(e,null)&&r.set(e,!0)}),nK(n,function(t){return t&&r.get(t[e])})}var i=ou(t,null);return nK(n,function(t){return t&&null!=i&&t[e]===i})}function c$(e,t){return t.hasOwnProperty("subType")?nK(e,function(e){return e&&e.subType===t.subType}):e}function cK(e){var t=rs();return e&&nW(oa(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nU(cW,cU);var cG=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let cX=function(e){nW(cG,function(t){this[t]=nX(e[t],e)},this)};var cY={},cQ=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];nW(cY,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){nW(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){cY[e]=t},e.get=function(e){return cY[e]},e}(),cZ=/^(min|max)?(.+)$/,c0=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(nW(oa(e.series),function(e){e&&e.data&&n4(e.data)&&(e.data[rr]=!0)}),nW(oa(e.dataset),function(e){e&&e.source&&n4(e.source)&&(e.source[rr]=!0)})),e=nR(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,l=e.options,c=e.media,_=!!e.media,u=!!(l||s||o&&o.timeline);function d(e){nW(t,function(t){t(e,n)})}return o?(i=o).timeline||(i.timeline=s):((u||_)&&(e.options=e.media=null),i=e),_&&nQ(c)&&nW(c,function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))}),d(i),nW(l,function(e){return d(e)}),nW(a,function(e){return d(e.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}(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=[],nR(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=nR(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var c=0,_=a.length;c<_;c++)(function(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return nW(e,function(e,t){var n=t.match(cZ);if(n&&n[1]&&n[2]){var a,o,s,l=n[1];a=r[n[2].toLowerCase()],o=e,("min"===(s=l)?a>=o:"max"===s?a<=o:a===o)||(i=!1)}}),i})(a[c].query,r,i)&&s.push(c);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=nH(s,function(e){return nR(-1===e?o.option:a[e].option)})),this._currentMediaIndices=s,l},e}(),c1=n2,c2=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function c3(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=c2.length;n<r;n++){var i=c2[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?nB(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?nB(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function c4(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,nJ(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 c6(e){c4(e,"itemStyle"),c4(e,"lineStyle"),c4(e,"areaStyle"),c4(e,"label"),c4(e,"labelLine"),c4(e,"upperLabel"),c4(e,"edgeLabel")}function c8(e,t){var n=c1(e)&&e[t],r=c1(n)&&n.textStyle;if(r)for(var i=0,a=os.length;i<a;i++){var o=os[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function c5(e){e&&(c6(e),c8(e,"label"),e.emphasis&&c8(e.emphasis,"label"))}function c7(e){return nQ(e)?e:e?[e]:[]}function c9(e){return(nQ(e)?e[0]:e)||{}}function _e(e){e&&nW(_t,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var _t=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],_r=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _i(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<_r.length;n++){var r=_r[n][1],i=_r[n][0];null!=t[r]&&(t[i]=t[r])}}function _a(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function _o(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function _s(e,t){var n;nW(c7(e.series),function(e){c1(e)&&function(e){if(c1(e)){c3(e),c6(e),c8(e,"label"),c8(e,"upperLabel"),c8(e,"edgeLabel"),e.emphasis&&(c8(e.emphasis,"label"),c8(e.emphasis,"upperLabel"),c8(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(c3(t),c5(t));var n=e.markLine;n&&(c3(n),c5(n));var r=e.markArea;r&&c5(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!n4(a))for(var o=0;o<a.length;o++)c5(a[o]);nW(e.categories,function(e){c6(e)})}if(i&&!n4(i))for(var o=0;o<i.length;o++)c5(i[o]);if((t=e.markPoint)&&t.data)for(var s=t.data,o=0;o<s.length;o++)c5(s[o]);if((n=e.markLine)&&n.data)for(var l=n.data,o=0;o<l.length;o++)nQ(l[o])?(c5(l[o][0]),c5(l[o][1])):c5(l[o]);"gauge"===e.type?(c8(e,"axisLabel"),c8(e,"title"),c8(e,"detail")):"treemap"===e.type?(c4(e.breadcrumb,"itemStyle"),nW(e.levels,function(e){c6(e)})):"tree"===e.type&&c6(e.leaves)}}(e)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),nW(n,function(t){nW(c7(e[t]),function(e){e&&(c8(e,"axisLabel"),c8(e.axisPointer,"label"))})}),nW(c7(e.parallel),function(e){var t=e&&e.parallelAxisDefault;c8(t,"axisLabel"),c8(t&&t.axisPointer,"label")}),nW(c7(e.calendar),function(e){c4(e,"itemStyle"),c8(e,"dayLabel"),c8(e,"monthLabel"),c8(e,"yearLabel")}),nW(c7(e.radar),function(e){c8(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),nW(c7(e.geo),function(e){c1(e)&&(c5(e),nW(c7(e.regions),function(e){c5(e)}))}),nW(c7(e.timeline),function(e){c5(e),c4(e,"label"),c4(e,"itemStyle"),c4(e,"controlStyle",!0);var t=e.data;nQ(t)&&nW(t,function(e){n2(e)&&(c4(e,"label"),c4(e,"itemStyle"))})}),nW(c7(e.toolbox),function(e){c4(e,"iconStyle"),nW(e.feature,function(e){c4(e,"iconStyle")})}),c8(c9(e.axisPointer),"label"),c8(c9(e.tooltip).axisPointer,"label"),e.series=oa(e.series),nW(e.series,function(e){if(n2(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),_a(e.label);var n=e.data;if(n&&!n4(n))for(var r=0;r<n.length;r++)_a(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},e.emphasis.scaleSize=null)}else if("gauge"===t){var i=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=i&&function(e,t,n,r){for(var i,a=t.split(","),o=e,s=0;s<a.length-1;s++)null==o[i=a[s]]&&(o[i]={}),o=o[i];null==o[a[s]]&&(o[a[s]]=n)}(e,"itemStyle.color",i)}else if("bar"===t){_i(e),_i(e.backgroundStyle),_i(e.emphasis);var n=e.data;if(n&&!n4(n))for(var r=0;r<n.length;r++)"object"==typeof n[r]&&(_i(n[r]),_i(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),_o(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,_o)}else"graph"===t||"sankey"===t?e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency")):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nJ(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),_e(e)}}),e.dataRange&&(e.visualMap=e.dataRange),nW(_n,function(t){var n=e[t];n&&(nQ(n)||(n=[n]),nW(n,function(e){_e(e)}))})}function _l(e){nW(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(a,c,_){var u,d,p=o.get(t.stackedDimension,_);if(isNaN(p))return i;s?d=o.getRawIndex(_):u=o.get(t.stackedByDimension,_);for(var f=NaN,m=n-1;m>=0;m--){var h=e[m];if(s||(d=h.data.rawIndexOf(h.stackedByDimension,u)),d>=0){var g=h.data.getByRawIndex(h.stackResultDimension,d);if("all"===l||"positive"===l&&g>0||"negative"===l&&g<0||"samesign"===l&&p>=0&&g>0||"samesign"===l&&p<=0&&g<0){p=function(e,t){var n=Math.max(a8(e),a8(t)),r=e+t;return n>20?r:a6(r,n)}(p,g),f=g;break}}}return r[0]=p,r[1]=f,r})})}var _c=function(e){this.data=e.data||(e.sourceFormat===cj?{}:[]),this.sourceFormat=e.sourceFormat||cL,this.seriesLayoutBy=e.seriesLayoutBy||cR,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];null==r.type&&1===cz(this,n)&&(r.type="ordinal")}};function __(e){return e instanceof _c}function _u(e,t,n){n=n||_p(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){if(!e)return{dimensionsDefine:_f(i),startIndex:o,dimensionsDetectedCount:a};if(t===cI){var a,o;"auto"===r||null==r?_m(function(e){null!=e&&"-"!==e&&(n0(e)?null==o&&(o=1):o=0)},n,e,10):o=n1(r)?r:+!!r,i||1!==o||(i=[],_m(function(e,t){i[t]=null!=e?e+"":""},n,e,1/0)),a=i?i.length:"row"===n?e.length:e[0]?e[0].length:null}else if(t===cO)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return nG(t)}(e));else if(t===cj)i||(i=[],nW(e,function(e,t){i.push(t)}));else if(t===cA){var s=ol(e[0]);a=nQ(s)&&s.length||1}return{startIndex:o,dimensionsDefine:_f(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new _c({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:nR(t)})}function _d(e){return new _c({data:e,sourceFormat:n4(e)?cM:cA})}function _p(e){var t=cL;if(n4(e))t=cM;else if(nQ(e)){0===e.length&&(t=cI);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(nQ(i)||n4(i)){t=cI;break}else if(n2(i)){t=cO;break}}}}else if(n2(e)){for(var a in e)if(r_(e,a)&&nV(e[a])){t=cj;break}}return t}function _f(e){if(e){var t=rs();return nH(e,function(e,n){var r={name:(e=n2(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r})}}function _m(e,t,n,r){if("row"===t)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 _h(e){var t=e.sourceFormat;return t===cO||t===cj}var _g=function(){var e;function t(e,t){var n=__(e)?e:_d(e);this._source=n;var r=this._data=n.data;n.sourceFormat===cM&&(this._offset=0,this._dimSize=t,this._data=r),L(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,t){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=void((e=t.prototype).pure=!1,e.persistent=!0),t.internalField=function(){L=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,c=a.dimensionsDefine;nz(e,M[_T(o,s)]),o===cM?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=nX(function(e,t){return _v[_T(e,t)]}(o,s),null,i,l,c),e.count=nX(function(e,t){return _b[_T(e,t)]}(o,s),null,i,l,c))};var e,t=function(e,t){e-=this._offset,t=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],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],_=t-e,u=n[o],d=0;d<_;d++){var p=i[d*a+o];u[e+d]=p,p<l&&(l=p),p>c&&(c=p)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[cI+"_"+cR]={pure:!0,appendData:i},e[cI+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[cO]={pure:!0,appendData:i},e[cj]={pure:!0,appendData:function(e){var t=this._data;nW(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[cA]={appendData:i},e[cM]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},M=e}(),t}(),_y=function(e,t,n,r){return e[r]},_v=((I={})[cI+"_"+cR]=function(e,t,n,r){return e[r+t]},I[cI+"_row"]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=0;o<e.length;o++){var s=e[o];a[o]=s?s[r]:null}return a},I[cO]=_y,I[cj]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},I[cA]=_y,I),_x=function(e,t,n){return e.length},_b=((O={})[cI+"_"+cR]=function(e,t,n){return Math.max(0,e.length-t)},O[cI+"_row"]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},O[cO]=_x,O[cj]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},O[cA]=_x,O),_S=function(e,t,n){return e[t]},_k=((j={})[cI]=_S,j[cO]=function(e,t,n){return e[n]},j[cj]=_S,j[cA]=function(e,t,n){var r=ol(e);return r instanceof Array?r[t]:r},j[cM]=_S,j);function _T(e,t){return e===cI?e+"_"+t:e}function _C(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return _k[a](r,o,s)}var l=r;return a===cA&&(l=ol(r)),l}}}var _w=/\{@(.+?)\}/g,_D=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"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,_=this.mainType,u="series"===_,d=n.userOutput&&n.userOutput.get();return{componentType:_,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||"normal";var o=this.getData(n),s=this.getDataParams(e,n);return(a&&(s.value=a.interpolatedValue),null!=r&&nQ(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),nZ(i))?(s.status=t,s.dimensionIndex=r,i(s)):n0(i)?(function(e,t,n){nQ(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=ch[a];e=e.replace(cg(o),cg(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(cg(ch[l],s),c)}return e})(i,s).replace(_w,function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=_C(o,e,i);if(a&&nQ(a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}):void 0},e.prototype.getRawValue=function(e,t){return _C(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function _N(e){return new _F(e)}var _F=function(){function e(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,n,r,i,a=this._upstream,o=e&&e.skip;if(this._dirty&&a){var s=this.context;s.data=s.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(r=this._plan(this.context));var l=((t=this._modBy)>=1||(t=1),t),c=this._modDataCount||0,_=((n=e&&e.modBy)>=1||(n=1),n),u=e&&e.modDataCount||0;(l!==_||c!==u)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,i=this._doReset(o)),this._modBy=_,this._modDataCount=u;var d=e&&e.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!o&&(i||p<f)){var m=this._progress;if(nQ(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],p,f,_,u);else this._doProgress(m,p,f,_,u)}this._dueIndex=f;var g=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;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){_P.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:_P.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),nQ(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var t,n,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,this._disposed=!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}(),_P=function(){var e,t,n,r,i,a={reset:function(l,c,_,u){t=l,e=c,n=_,i=Math.ceil((r=u)/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 _E(e){throw Error(e)}function _A(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||n1(e)||null==e||"-"===e||(e=+a7(e)),null==e||""===e?NaN:Number(e))}rs({number:function(e){return parseFloat(e)},time:function(e){return+a7(e)},trim:function(e){return n0(e)?rn(e):e}});var _I={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}};(function(e,t){n1(t)||_E(""),this._opFn=_I[e],this._rvalFloat=ot(t)}).prototype.evaluate=function(e){return n1(e)?this._opFn(e,this._rvalFloat):this._opFn(ot(e),this._rvalFloat)},(function(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}).prototype.evaluate=function(e,t){var n=n1(e)?e:ot(e),r=n1(t)?t:ot(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=n0(e),s=n0(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},(function(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ot(t)}).prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&("number"===n||"number"===this._rvalTypeof)&&(t=ot(e)===this._rvalFloat)}return this._isEQ?t:!t};var _O=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 _A(e,t)},e}();function _j(e){return _z(e.sourceFormat)||_E(""),e.data}function _M(e){var t=e.sourceFormat,n=e.data;if(_z(t)||_E(""),t===cI){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===cO){for(var r=[],i=0,a=n.length;i<a;i++)r.push(nz({},n[i]));return r}}function _L(e,t,n){if(null!=n){if(n1(n)||!isNaN(n)&&!r_(t,n))return e[n];else if(r_(t,n))return t[n]}}function _R(e){return nR(e)}var _B=rs();function _z(e){return e===cI||e===cO}var _J="undefined",_q=typeof Uint32Array===_J?Array:Uint32Array,_U=typeof Uint16Array===_J?Array:Uint16Array,_V=typeof Int32Array===_J?Array:Int32Array,_W=typeof Float64Array===_J?Array:Float64Array,_H={float:_W,int:_V,ordinal:Array,number:Array,time:_W};function _$(e){return e>65535?_q:_U}function _K(){return[1/0,-1/0]}function _G(e,t,n,r,i){var a=_H[n||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new a(r),c=0;c<s;c++)l[c]=o[c];e[t]=l}}else e[t]=new a(r)}var _X=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=rs()}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=R[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],_h(r),this._dimensions=nH(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(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new _H[t||"float"](this._rawCount),this._rawExtent[i]=_K(),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;0===a&&(i[e]=_K());for(var s=i[e],l=a;l<o;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,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),l=0;l<i;l++){var c=r[l];_G(n,l,c.type,s,!0)}for(var _=[],u=o;u<s;u++)for(var d=u-o,p=0;p<i;p++){var c=r[p],f=R.arrayRows.call(this,e[d]||_,c.property,d,p);n[p][u]=f;var m=a[p];f<m[0]&&(m[0]=f),f>m[1]&&(m[1]=f)}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,l=nH(a,function(e){return e.property}),c=0;c<o;c++){var _=a[c];s[c]||(s[c]=_K()),_G(i,c,_.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var u=[],d=e;d<t;d++){u=r.getItem(d,u);for(var p=0;p<o;p++){var f=i[p],m=this._dimValueGetter(u,l[p],d,p);f[d]=m;var h=s[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}}!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(null==t){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)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/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(null!=n&&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))return a;i=a-1}}return -1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var a=1/0,o=-1,s=0,l=0,c=this.count();l<c;l++){var _=t-r[this.getRawIndex(l)],u=Math.abs(_);u<=n&&((u<a||u===a&&_>=0&&o<0)&&(a=u,o=_,s=0),_===o&&(i[s++]=l))}return i.length=s,i},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=_$(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(_$(n._rawCount))(r),a=[],o=e.length,s=0,l=e[0],c=n._chunks,_=0;_<r;_++){var u=void 0,d=n.getRawIndex(_);if(0===o)u=t(_);else if(1===o)u=t(c[l][d],_);else{for(var p=0;p<o;p++)a[p]=c[e[p]][d];a[p]=_,u=t.apply(null,a)}u&&(i[s++]=d)}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=nG(e),i=r.length;if(!i)return this;var a=t.count(),o=new(_$(t._rawCount))(a),s=0,l=r[0],c=e[l][0],_=e[l][1],u=t._chunks,d=!1;if(!t._indices){var p=0;if(1===i){for(var f=u[r[0]],m=0;m<n;m++){var h=f[m];(h>=c&&h<=_||isNaN(h))&&(o[s++]=p),p++}d=!0}else if(2===i){for(var f=u[r[0]],g=u[r[1]],y=e[r[1]][0],x=e[r[1]][1],m=0;m<n;m++){var h=f[m],b=g[m];(h>=c&&h<=_||isNaN(h))&&(b>=y&&b<=x||isNaN(b))&&(o[s++]=p),p++}d=!0}}if(!d)if(1===i)for(var m=0;m<a;m++){var S=t.getRawIndex(m),h=u[r[0]][S];(h>=c&&h<=_||isNaN(h))&&(o[s++]=S)}else for(var m=0;m<a;m++){for(var k=!0,S=t.getRawIndex(m),T=0;T<i;T++){var C=r[T],h=u[C][S];(h<e[C][0]||h>e[C][1])&&(k=!1)}k&&(o[s++]=t.getRawIndex(m))}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=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=_K();for(var _=0;_<o;_++){for(var u=e.getRawIndex(_),d=0;d<a;d++)s[d]=r[t[d]][u];s[a]=_;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var f=t[c],m=p[c],h=l[f],g=r[f];g&&(g[u]=m),m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),l=0,c=Math.floor(1/t),_=this.getRawIndex(0),u=new(_$(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));u[l++]=_;for(var d=1;d<s-1;d+=c){for(var p=Math.min(d+c,s-1),f=Math.min(d+2*c,s),m=(f+p)/2,h=0,g=p;g<f;g++){var y=this.getRawIndex(g),x=o[y];isNaN(x)||(h+=x)}h/=f-p;var b=d,S=Math.min(d+c,s),k=d-1,T=o[_];n=-1,i=b;for(var C=-1,w=0,g=b;g<S;g++){var y=this.getRawIndex(g),x=o[y];if(isNaN(x)){w++,C<0&&(C=y);continue}(r=Math.abs((k-m)*(x-T)-(k-g)*(h-T)))>n&&(n=r,i=y)}w>0&&w<S-b&&(u[l++]=Math.min(C,i),i=Math.max(C,i)),u[l++]=i,_=i}return u[l++]=this.getRawIndex(s-1),a._count=l,a._indices=u,a.getRawIndex=this._getRawIdx,a},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(_$(this._rawCount))(2*Math.ceil(o/i)),l=0,c=0;c<o;c+=i){var _=c,u=a[this.getRawIndex(_)],d=c,p=a[this.getRawIndex(d)],f=i;c+i>o&&(f=o-c);for(var m=0;m<f;m++){var h=a[this.getRawIndex(c+m)];h<u&&(u=h,_=c+m),h>p&&(p=h,d=c+m)}var g=this.getRawIndex(_),y=this.getRawIndex(d);_<d?(s[l++]=g,s[l++]=y):(s[l++]=y,s[l++]=g)}return n._count=l,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),l=a[e],c=this.count(),_=i._rawExtent[e]=_K(),u=new(_$(this._rawCount))(Math.ceil(c/s)),d=0,p=0;p<c;p+=s){s>c-p&&(o.length=s=c-p);for(var f=0;f<s;f++){var m=this.getRawIndex(p+f);o[f]=l[m]}var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,c-1));l[g]=h,h<_[0]&&(_[0]=h),h>_[1]&&(_[1]=h),u[d++]=g}return i._count=d,i._indices=u,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,l=[];s<n;s++)l[s]=r[e[s]][o];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t,n=this._chunks[e],r=_K();if(!n)return r;var i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var a=(t=r)[0],o=t[1],s=0;s<i;s++){var l=n[this.getRawIndex(s)];l<a&&(a=l),l>o&&(o=l)}return t=[a,o],this._extent[e]=t,t},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&&n$(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(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=nR(this._extent),e._rawExtent=nR(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 _A(e[r],this._dimensions[r])}R={arrayRows:e,objectRows:function(e,t,n,r){return _A(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return _A(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),_Y=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,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(_Z(n)){var a=void 0,o=void 0,s=void 0;if(i){var l=r[0];l.prepareSource(),a=(s=l.getSource()).data,o=s.sourceFormat,t=[l._getVersionSign()]}else o=n4(a=n.get("data",!0))?cM:cA,t=[];var c=this._getSourceMetaRawOption()||{},_=s&&s.metaRawOption||{},u=n5(c.seriesLayoutBy,_.seriesLayoutBy)||null,d=n5(c.sourceHeader,_.sourceHeader),p=n5(c.dimensions,_.dimensions);e=u!==_.seriesLayoutBy||!!d!=!!_.sourceHeader||p?[_u(a,{seriesLayoutBy:u,sourceHeader:d,dimensions:p},o)]:[]}else if(i){var f=this._applyTransform(r);e=f.sourceList,t=f.upstreamSignList}else e=[_u(n.get("source",!0),this._getSourceMetaRawOption(),null)],t=[];this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n,r=this._sourceHost,i=r.get("transform",!0),a=r.get("fromTransformResult",!0);null!=a&&1!==e.length&&_0("");var o=[],s=[];return(nW(e,function(e){e.prepareSource();var t=e.getSource(a||0);null==a||t||_0(""),o.push(t),s.push(e._getVersionSign())}),i)?n=function(e,t,n){var r=oa(e),i=r.length;i||_E("");for(var a=0;a<i;a++)t=function(e,t,n,r){t.length||_E(""),n2(e)||_E("");var i=e.type,a=_B.get(i);a||_E("");var o=nH(t,function(e){return function(e,t){var n=new _O,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==cR&&_E("");var o=[],s={},l=e.dimensionsDefine;if(l)nW(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),null!=n&&(r_(s,n)&&_E(""),s[n]=r)});else for(var c=0;c<e.dimensionsDetectedCount||0;c++)o.push({index:c});var _=_v[_T(i,cR)];t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(r,a,o,e)},n.getRawData=nX(_j,null,e)),n.cloneRawData=nX(_M,null,e),n.count=nX(_b[_T(i,cR)],null,r,a,o);var u=_k[i];n.retrieveValue=function(e,t){return d(_(r,a,o,e),t)};var d=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=o[t];if(n)return u(e,t,n.name)}};return n.getDimensionInfo=nX(_L,null,o,s),n.cloneAllDimensionInfo=nX(_R,null,o),n}(e,a)});return nH(oa(a.transform({upstream:o[0],upstreamList:o,config:nR(e.config)})),function(e,n){n2(e)||_E(""),e.data||_E(""),_z(_p(e.data))||_E("");var r,i=t[0];if(i&&0===n&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:cR,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:cR,sourceHeader:0,dimensions:e.dimensions};return _u(e.data,r,null)})}(r[a],t,0,0),a!==i-1&&(t.length=Math.max(t.length,1));return t}(i,o,{datasetIndex:r.componentIndex}):null!=a&&(n=[new _c({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:nR(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:n,upstreamSignList:s}},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=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=this._storeList,i=r[0];i||(i=r[0]={});var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];_Z(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new _X).initData(new _g(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(_Z(e)){var t=function(e){if(!e.get("data",!0))return ox(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ov).models[0]}(e);return t?[t.getSourceManager()]:[]}return nH(e.get("transform",!0)||e.get("fromTransformResult",!0)?ox(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ov).models:[],function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;return _Z(r)?(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)),{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function _Q(e){e.option.transform&&(e.option.transform[rr]=!0)}function _Z(e){return"series"===e.mainType}function _0(e){throw Error(e)}function _1(){this.richTextStyles={},this._nextStyleNameId=on()}_1.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},_1.prototype.makeTooltipMarker=function(e,t,n){var r,i,a,o,s,l,c="richText"===n?this._generateStyleName():null,_=(o=(a=n0(r={color:t,type:e,renderMode:n,markerId:c})?{color:r,extraCssText:i}:r||{}).color,s=a.type,i=a.extraCssText,l=a.renderMode||"html",o?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+rO(o)+";"+(i||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+rO(o)+";"+(i||"")+'"></span>':{renderMode:l,content:"{"+(a.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:"");return n0(_)?_:(this.richTextStyles[c]=_.style,_.content)},_1.prototype.wrapRichTextStyle=function(e,t){var n={};nQ(t)?nW(t,function(e){return nz(n,e)}):nz(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"};var _2=om();function _3(e,t){return e.getName(t)||e.getId(t)}var _4=function(e){var t;function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return nv(n,e),n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=_N({count:_8,reset:_5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(_2(this).sourceManager=new _Y(this)).prepareSource();var r=this.getInitialData(e,n);_9(r,this),this.dataTask.context.data=r,_2(this).dataBeforeProcessed=r,_6(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=cb(this),r=n?ck({},e):{},i=this.subType;cC.hasClass(i)&&(i+="Series"),nB(e,t.getTheme().get(this.subType)),nB(e,this.getDefaultOption()),oo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&cS(e,r,n)},n.prototype.mergeOption=function(e,t){e=nB(this.option,e,!0),this.fillDataTextStyle(e.data);var n=cb(this);n&&cS(this.option,e,n);var r=_2(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);_9(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,_2(this).dataBeforeProcessed=i,_6(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(e){if(e&&!n4(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&oo(e[n],"label",t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=ut(this);if(!t)return _2(this).data;var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=ut(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}_2(this).data=e},n.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return rs(e)},n.prototype.getSourceManager=function(){return _2(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return _2(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,a,o,s,l,c=e.series,_=e.dataIndex,u=e.multipleSeries,d=c.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,m=c.getRawValue(_),h=nQ(m),g=(n=n||"transparent",n0(t=c.getData().getItemVisual(_,"style")[c.visualDrawType])?t:n2(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n);if(f>1||h&&!f){var y=function(e,t,n,r,i){var a=t.getData(),o=n$(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),s=[],l=[],c=[];function _(e,t){var n,r=a.getDimensionInfo(t);r&&!1!==r.otherDims.tooltip&&(o?c.push(((n={markerType:"subItem",markerColor:i,name:r.displayName,value:e,valueType:r.type}).type="nameValue",n)):(s.push(e),l.push(r.type)))}return r.length?nW(r,function(e){_(_C(a,n,e),e)}):nW(e,_),{inlineValues:s,inlineValueTypes:l,blocks:c}}(m,c,_,p,g);a=y.inlineValues,o=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var x=d.getDimensionInfo(p[0]);l=a=_C(d,_,p[0]),o=x.type}else l=a=h?m[0]:m;var b=od(c),S=b&&c.name||"",k=d.getName(_),T=u?S:k;return(i={header:S,noHeader:u||!b,sortParam:l,blocks:[((r={markerType:"item",markerColor:g,name:T,noName:!rn(T),value:a,valueType:o,dataIndex:_}).type="nameValue",r)].concat(s||[])}).type="section",i}({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(nb.node&&!(e&&e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=cU.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=_3(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},n.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)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=nG(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[_3(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},n.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if("series"===a)i.selectedMap="all";else if("multiple"===a){n2(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var c=t[l],_=_3(e,c);s[_]=!0,this._selectedDataIndicesMap[_]=e.getRawIndex(c)}}else if("single"===a||!0===a){var u=t[o-1],_=_3(e,u);(n={})[_]=!0,i.selectedMap=n,this._selectedDataIndicesMap=((r={})[_]=e.getRawIndex(u),r)}}},n.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)}},n.registerClass=function(e){return cC.registerClass(e)},n.protoInitialize=void((t=n.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"),n}(cC);function _6(e){var t,n,r,i=e.name;od(e)||(e.name=(n=(t=e.getRawData()).mapDimensionsAll("seriesName"),r=[],nW(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")||i))}function _8(e){return e.model.getRawData().count()}function _5(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_7}function _7(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _9(e,t){nW(function(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}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,nY(ue,t))})}function ue(e,t){var n=ut(e);return n&&n.setOutputEnd((t||this).count()),t}function ut(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}}nU(_4,_D),nU(_4,cU),oC(_4,cC);var un=function(){function e(){this.group=new aZ,this.uid=lQ("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}();oT(un),oF(un);var ur=ss.CMD,ui=[[],[],[]],ua=Math.sqrt,uo=Math.atan2,us=Math.sqrt,ul=Math.sin,uc=Math.cos,u_=Math.PI;function uu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ud(e,t){return(e[0]*t[0]+e[1]*t[1])/(uu(e)*uu(t))}function up(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ud(e,t))}function uf(e,t,n,r,i,a,o,s,l,c,_){var u=u_/180*l,d=uc(u)*(e-n)/2+ul(u)*(t-r)/2,p=-1*ul(u)*(e-n)/2+uc(u)*(t-r)/2,f=d*d/(o*o)+p*p/(s*s);f>1&&(o*=us(f),s*=us(f));var m=(i===a?-1:1)*us((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,h=m*o*p/s,g=-(m*s)*d/o,y=(e+n)/2+uc(u)*h-ul(u)*g,x=(t+r)/2+ul(u)*h+uc(u)*g,b=up([1,0],[(d-h)/o,(p-g)/s]),S=[(d-h)/o,(p-g)/s],k=[(-1*d-h)/o,(-1*p-g)/s],T=up(S,k);if(-1>=ud(S,k)&&(T=u_),ud(S,k)>=1&&(T=0),T<0){var C=Math.round(T/u_*1e6)/1e6;T=2*u_+C%2*u_}_.addData(c,y,x,o,s,b,T,u,a)}var um=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,uh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.applyTransform=function(e){},t}(sb),uy=function(){this.cx=0,this.cy=0,this.r=0},uv=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uy},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(sb);uv.prototype.type="circle";var ux=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ub=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new ux},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=t.rx,a=t.ry,o=.5522848*i,s=.5522848*a;e.moveTo(n-i,r),e.bezierCurveTo(n-i,r-s,n-o,r-a,n,r-a),e.bezierCurveTo(n+o,r-a,n+i,r-s,n+i,r),e.bezierCurveTo(n+i,r+s,n+o,r+a,n,r+a),e.bezierCurveTo(n-o,r+a,n-i,r+s,n-i,r),e.closePath()},t}(sb);ub.prototype.type="ellipse";var uS=Math.PI,uk=2*uS,uT=Math.sin,uC=Math.cos,uw=Math.acos,uD=Math.atan2,uN=Math.abs,uF=Math.sqrt,uP=Math.max,uE=Math.min;function uA(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/uF(s*s+l*l),_=c*l,u=-c*s,d=e+_,p=t+u,f=n+_,m=r+u,h=(d+f)/2,g=(p+m)/2,y=f-d,x=m-p,b=y*y+x*x,S=i-a,k=d*m-f*p,T=(x<0?-1:1)*uF(uP(0,S*S*b-k*k)),C=(k*x-y*T)/b,w=(-k*y-x*T)/b,D=(k*x+y*T)/b,N=(-k*y+x*T)/b,F=C-h,P=w-g,E=D-h,A=N-g;return F*F+P*P>E*E+A*A&&(C=D,w=N),{cx:C,cy:w,x0:-_,y0:-u,x1:C*(i/S-1),y1:w*(i/S-1)}}var uI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},uO=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uI},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=uP(t.r,0),i=uP(t.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var _=t.cx,u=t.cy,d=!!t.clockwise,p=uN(c-l),f=p>uk&&p%uk;if(f>1e-4&&(p=f),r>1e-4)if(p>uk-1e-4)e.moveTo(_+r*uC(l),u+r*uT(l)),e.arc(_,u,r,l,c,!d),i>1e-4&&(e.moveTo(_+i*uC(c),u+i*uT(c)),e.arc(_,u,i,c,l,d));else{var m=void 0,h=void 0,g=void 0,y=void 0,x=void 0,b=void 0,S=void 0,k=void 0,T=void 0,C=void 0,w=void 0,D=void 0,N=void 0,F=void 0,P=void 0,E=void 0,A=r*uC(l),I=r*uT(l),O=i*uC(c),j=i*uT(c),M=p>1e-4;if(M){var L=t.cornerRadius;L&&(m=(n=function(e){var t;if(nQ(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],h=n[1],g=n[2],y=n[3]);var R=uN(r-i)/2;if(x=uE(R,g),b=uE(R,y),S=uE(R,m),k=uE(R,h),w=T=uP(x,b),D=C=uP(S,k),(T>1e-4||C>1e-4)&&(N=r*uC(c),F=r*uT(c),P=i*uC(l),E=i*uT(l),p<uS)){var B=function(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,_=o-i,u=s-a,d=u*l-_*c;if(!(d*d<1e-4))return d=(_*(t-a)-u*(e-i))/d,[e+d*l,t+d*c]}(A,I,P,E,N,F,O,j);if(B){var z=A-B[0],J=I-B[1],q=N-B[0],U=F-B[1],V=1/uT(uw((z*q+J*U)/(uF(z*z+J*J)*uF(q*q+U*U)))/2),W=uF(B[0]*B[0]+B[1]*B[1]);w=uE(T,(r-W)/(V+1)),D=uE(C,(i-W)/(V-1))}}}if(M)if(w>1e-4){var H=uE(g,w),$=uE(y,w),K=uA(P,E,A,I,r,H,d),G=uA(N,F,O,j,r,$,d);e.moveTo(_+K.cx+K.x0,u+K.cy+K.y0),w<T&&H===$?e.arc(_+K.cx,u+K.cy,w,uD(K.y0,K.x0),uD(G.y0,G.x0),!d):(H>0&&e.arc(_+K.cx,u+K.cy,H,uD(K.y0,K.x0),uD(K.y1,K.x1),!d),e.arc(_,u,r,uD(K.cy+K.y1,K.cx+K.x1),uD(G.cy+G.y1,G.cx+G.x1),!d),$>0&&e.arc(_+G.cx,u+G.cy,$,uD(G.y1,G.x1),uD(G.y0,G.x0),!d))}else e.moveTo(_+A,u+I),e.arc(_,u,r,l,c,!d);else e.moveTo(_+A,u+I);if(i>1e-4&&M)if(D>1e-4){var H=uE(m,D),$=uE(h,D),K=uA(O,j,N,F,i,-$,d),G=uA(A,I,P,E,i,-H,d);e.lineTo(_+K.cx+K.x0,u+K.cy+K.y0),D<C&&H===$?e.arc(_+K.cx,u+K.cy,D,uD(K.y0,K.x0),uD(G.y0,G.x0),!d):($>0&&e.arc(_+K.cx,u+K.cy,$,uD(K.y0,K.x0),uD(K.y1,K.x1),!d),e.arc(_,u,i,uD(K.cy+K.y1,K.cx+K.x1),uD(G.cy+G.y1,G.cx+G.x1),d),H>0&&e.arc(_+G.cx,u+G.cy,H,uD(G.y1,G.x1),uD(G.y0,G.x0),!d))}else e.lineTo(_+O,u+j),e.arc(_,u,i,c,l,d);else e.lineTo(_+O,u+j)}else e.moveTo(_,u);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(sb);uO.prototype.type="sector";var uj=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},uM=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;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}(sb);function uL(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,l=[],c=[],_=[],u=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)rS(o,o,e[d]),rk(s,s,e[d]);rS(o,o,r[0]),rk(s,s,r[1])}for(var d=0,p=e.length;d<p;d++){var f,m,h,g=e[d];if(n)i=e[d?d-1:p-1],a=e[(d+1)%p];else if(0===d||d===p-1){l.push([(f=e[d])[0],f[1]]);continue}else i=e[d-1],a=e[d+1];m=a,h=i,c[0]=m[0]-h[0],c[1]=m[1]-h[1],rg(c,c,t);var y=ry(g,i),x=ry(g,a),b=y+x;0!==b&&(y/=b,x/=b),rg(_,c,-y),rg(u,c,x);var S=rh([],g,_),k=rh([],g,u);r&&(rk(S,S,o),rS(S,S,s),rk(k,k,o),rS(k,k,s)),l.push(S),l.push(k)}return n&&l.push(l.shift()),l}(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 l=a[2*s],c=a[2*s+1],_=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],c[0],c[1],_[0],_[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,u=i.length;s<u;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}uM.prototype.type="ring";var uR=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},uB=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultShape=function(){return new uR},t.prototype.buildPath=function(e,t){uL(e,t,!0)},t}(sb);uB.prototype.type="polygon";var uz=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},uJ=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uz},t.prototype.buildPath=function(e,t){uL(e,t,!1)},t}(sb);uJ.prototype.type="polyline";var uq={},uU=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},uV=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uU},t.prototype.buildPath=function(e,t){if(this.subPixelOptimize){var n,r,i,a,o=function(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&&(lS(2*r)===lS(2*i)&&(e.x1=e.x2=lk(r,s,!0)),lS(2*a)===lS(2*o)&&(e.y1=e.y2=lk(a,s,!0))),e}}(uq,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;0!==s&&(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}(sb);uV.prototype.type="line";var uW=[],uH=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u$(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?iD:iw)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?iD:iw)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?iI:iA)(e.x1,e.cpx1,e.x2,t),(n?iI:iA)(e.y1,e.cpy1,e.y2,t)]}var uK=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uH},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,l=t.cpx2,c=t.cpy2,_=t.percent;0!==_&&(e.moveTo(n,r),null==l||null==c?(_<1&&(ij(n,o,i,_,uW),o=uW[1],i=uW[2],ij(r,s,a,_,uW),s=uW[1],a=uW[2]),e.quadraticCurveTo(o,s,i,a)):(_<1&&(iP(n,o,l,i,_,uW),o=uW[1],l=uW[2],i=uW[3],iP(r,s,c,a,_,uW),s=uW[1],c=uW[2],a=uW[3]),e.bezierCurveTo(o,s,l,c,i,a)))},t.prototype.pointAt=function(e){return u$(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t,n=u$(this.shape,e,!0),r=Math.sqrt((t=n)[0]*t[0]+t[1]*t[1]);return 0===r?(n[0]=0,n[1]=0):(n[0]=n[0]/r,n[1]=n[1]/r),n},t}(sb);uK.prototype.type="bezier-curve";var uG=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},uX=function(e){function t(t){return e.call(this,t)||this}return rf(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uG},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,l=Math.cos(a),c=Math.sin(a);e.moveTo(l*i+n,c*i+r),e.arc(n,r,i,a,o,!s)},t}(sb);uX.prototype.type="arc";var uY={};function uQ(e,t,n,r){var i,a,o=new ug((i=function(e){var t,n=new ss;if(!e)return n;var r=0,i=0,a=0,o=0,s=ss.CMD,l=e.match(um);if(!l)return n;for(var c=0;c<l.length;c++){for(var _=l[c],u=_.charAt(0),d=void 0,p=_.match(uh)||[],f=p.length,m=0;m<f;m++)p[m]=parseFloat(p[m]);for(var h=0;h<f;){var g=void 0,y=void 0,x=void 0,b=void 0,S=void 0,k=void 0,T=void 0,C=r,w=i,D=void 0,N=void 0;switch(u){case"l":r+=p[h++],i+=p[h++],d=s.L,n.addData(d,r,i);break;case"L":r=p[h++],i=p[h++],d=s.L,n.addData(d,r,i);break;case"m":r+=p[h++],i+=p[h++],d=s.M,n.addData(d,r,i),a=r,o=i,u="l";break;case"M":r=p[h++],i=p[h++],d=s.M,n.addData(d,r,i),a=r,o=i,u="L";break;case"h":r+=p[h++],d=s.L,n.addData(d,r,i);break;case"H":r=p[h++],d=s.L,n.addData(d,r,i);break;case"v":i+=p[h++],d=s.L,n.addData(d,r,i);break;case"V":i=p[h++],d=s.L,n.addData(d,r,i);break;case"C":d=s.C,n.addData(d,p[h++],p[h++],p[h++],p[h++],p[h++],p[h++]),r=p[h-2],i=p[h-1];break;case"c":d=s.C,n.addData(d,p[h++]+r,p[h++]+i,p[h++]+r,p[h++]+i,p[h++]+r,p[h++]+i),r+=p[h-2],i+=p[h-1];break;case"S":g=r,y=i,D=n.len(),N=n.data,t===s.C&&(g+=r-N[D-4],y+=i-N[D-3]),d=s.C,C=p[h++],w=p[h++],r=p[h++],i=p[h++],n.addData(d,g,y,C,w,r,i);break;case"s":g=r,y=i,D=n.len(),N=n.data,t===s.C&&(g+=r-N[D-4],y+=i-N[D-3]),d=s.C,C=r+p[h++],w=i+p[h++],r+=p[h++],i+=p[h++],n.addData(d,g,y,C,w,r,i);break;case"Q":C=p[h++],w=p[h++],r=p[h++],i=p[h++],d=s.Q,n.addData(d,C,w,r,i);break;case"q":C=p[h++]+r,w=p[h++]+i,r+=p[h++],i+=p[h++],d=s.Q,n.addData(d,C,w,r,i);break;case"T":g=r,y=i,D=n.len(),N=n.data,t===s.Q&&(g+=r-N[D-4],y+=i-N[D-3]),r=p[h++],i=p[h++],d=s.Q,n.addData(d,g,y,r,i);break;case"t":g=r,y=i,D=n.len(),N=n.data,t===s.Q&&(g+=r-N[D-4],y+=i-N[D-3]),r+=p[h++],i+=p[h++],d=s.Q,n.addData(d,g,y,r,i);break;case"A":x=p[h++],b=p[h++],S=p[h++],k=p[h++],T=p[h++],C=r,w=i,r=p[h++],uf(C,w,r,i=p[h++],k,T,x,b,S,d=s.A,n);break;case"a":x=p[h++],b=p[h++],S=p[h++],k=p[h++],T=p[h++],C=r,w=i,r+=p[h++],uf(C,w,r,i+=p[h++],k,T,x,b,S,d=s.A,n)}}("z"===u||"Z"===u)&&(d=s.Z,n.addData(d),r=a,i=o),t=d}return n.toStatic(),n}(e),(a=nz({},t)).buildPath=function(e){if(null!=e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;i.rebuildPath(t,1)}},a.applyTransform=function(e){!function(e,t){if(t){var n,r,i,a,o,s,l=e.data,c=e.len(),_=ur.M,u=ur.C,d=ur.L,p=ur.R,f=ur.A,m=ur.Q;for(i=0,a=0;i<c;){switch(n=l[i++],a=i,r=0,n){case _:case d:r=1;break;case u:r=3;break;case m:r=2;break;case f:var h=t[4],g=t[5],y=ua(t[0]*t[0]+t[1]*t[1]),x=ua(t[2]*t[2]+t[3]*t[3]),b=uo(-t[1]/x,t[0]/y);l[i]*=y,l[i++]+=h,l[i]*=x,l[i++]+=g,l[i++]*=y,l[i++]*=x,l[i++]+=b,l[i++]+=b,i+=2,a=i;break;case p:s[0]=l[i++],s[1]=l[i++],rb(s,s,t),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],rb(s,s,t),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var S=ui[o];S[0]=l[i++],S[1]=l[i++],rb(S,S,t),l[a++]=S[0],l[a++]=S[1]}}e.increaseVersion()}}(i,e),this.dirtyShape()},a));return n&&("center"===r&&(n=uZ(n,o.getBoundingRect())),function(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}(o,n)),o}function uZ(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}function u0(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}uY.circle=uv,uY.ellipse=ub,uY.sector=uO,uY.ring=uM,uY.polygon=uB,uY.polyline=uJ,uY.rect=lw,uY.line=uV,uY.bezierCurve=uK,uY.arc=uX;var u1=om(),u2=(C=om(),function(e){var t=C(e),n=e.pipelineContext,r=!!t.large,i=!!t.progressiveRender,a=t.large=!!(n&&n.large),o=t.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||i!==o)&&"reset"}),u3=function(){function e(){this.group=new aZ,this.uid=lQ("viewChart"),this.renderTask=_N({plan:u8,reset:u5}),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&&u6(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&u6(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.updateLayout=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){var t=this.group;if(t)if(nQ(t))for(var n=0;n<t.length;n++)u0(t[n],e);else u0(t,e)},e.markUpdateMethod=function(e,t){u1(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function u4(e,t,n){e&&s1(e)&&("emphasis"===t?sH:s$)(e,n)}function u6(e,t,n){var r,i,a=of(e,t),o=t&&null!=t.highlightKey?(null==(i=sk[r=t.highlightKey])&&sS<=32&&(i=sk[r]=sS++),i):null;null!=a?nW(oa(a),function(t){u4(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){u4(e,n,o)})}function u8(e){return u2(e.model)}function u5(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&u1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),u7[l]}oT(u3,["dispose"]),oF(u3);var u7={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)}}},u9=om(),de={itemStyle:oP(l$,!0),lineStyle:oP(lV,!0)},dt={lineStyle:"stroke",itemStyle:"fill"};function dn(e,t){var n=e.visualStyleMapper||de[t];return n||(console.warn("Unknown style type '"+t+"'."),de.itemStyle)}function dr(e,t){var n=e.visualDrawType||dt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var di=new lX,da=Math.PI,ds=function(){function e(e,t,n,r){this._stageTaskMap=rs(),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,o=null!=a?Math.ceil(a/i):null;return{step:i,modBy:o,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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:o,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=rs();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;nW(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});rt(!(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=r||{};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}nW(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),c=l.seriesTaskMap,_=l.overallTask;if(_){var u,d=_.agentStubMap;d.each(function(e){o(r,e)&&(e.dirty(),u=!0)}),u&&_.dirty(),a.updatePayload(_,n);var p=a.getPerformArgs(_,r.block);d.each(function(e){e.perform(p)}),_.perform(p)&&(i=!0)}else c&&c.each(function(s,l){o(r,s)&&s.dirty();var c=a.getPerformArgs(s,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(c)&&(i=!0)})}}),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){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=rs(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=o.set(s,a&&a.get(s)||_N({plan:dd,reset:dp,count:dh}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||_N({reset:dl});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=rs(),l=e.seriesType,c=e.getTargetSeries,_=!0,u=!1;function d(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(u=!0,_N({reset:dc,onDirty:du})));n.context={model:e,overallProgress:_},n.agent=a,n.__block=_,i._pipe(e,n)}rt(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):c?c(n,r).each(d):(_=!1,nW(n.getSeries(),d)),u&&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 nZ(e)&&(e={overallReset:e,seriesType:function(e){B=null;try{e(dg,dy)}catch(e){}return B}(e)}),e.uid=lQ("stageHandler"),t&&(e.visualType=t),e},e}();function dl(e){e.overallReset(e.ecModel,e.api,e.payload)}function dc(e){return e.overallProgress&&d_}function d_(){this.agent.dirty(),this.getDownstream().dirty()}function du(){this.agent&&this.agent.dirty()}function dd(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oa(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?nH(t,function(e,t){return dm(t)}):df}var df=dm(0);function dm(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 dh(e){return e.data.count()}var dg={},dy={};function dv(e,t){for(var n in t.prototype)e[n]=ru}dv(dg,cW),dv(dy,cX),dg.eachSeriesByType=dg.eachRawSeriesByType=function(e){B=e},dg.eachComponent=function(e){"series"===e.mainType&&e.subType&&(B=e.subType)};var dx=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],db="#B9B8CE",dS="#100C2A",dk=function(){return{axisLine:{lineStyle:{color:db}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},dT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dC={darkMode:!0,color:dT,backgroundColor:dS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:db},pageTextStyle:{color:db}},textStyle:{color:db},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:db}},dataZoom:{borderColor:"#71708A",textStyle:{color:db},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:db}},timeline:{lineStyle:{color:db},label:{color:db},controlStyle:{color:db,borderColor:db}},calendar:{itemStyle:{color:dS},dayLabel:{color:db},monthLabel:{color:db},yearLabel:{color:db}},timeAxis:dk(),logAxis:dk(),valueAxis:dk(),categoryAxis:dk(),line:{symbol:"circle"},graph:{color:dT},gauge:{title:{color:db},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:db},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dC.categoryAxis.splitLine.show=!1;var dw=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(n0(e)){var i=ok(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};nW(e,function(e,i){for(var s=!1,l=0;l<a.length;l++){var c=a[l],_=i.lastIndexOf(c);if(_>0&&_===i.length-c.length){var u=i.slice(0,_);"data"!==u&&(t.mainType=u,t[c.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,l=t.dataQuery;return c(s,a,"mainType")&&c(s,a,"subType")&&c(s,a,"index","componentIndex")&&c(s,a,"name")&&c(s,a,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),dD=["symbol","symbolSize","symbolRotate","symbolOffset"],dN=dD.concat(["symbolKeepAspect"]);function dF(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 l=e.getData(),c=of(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:nQ(c)?l.getName(c[0]):l.getName(c),selected:n0(r)?r:nz({},r)})}})}function dP(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var dE=Math.round(9*Math.random()),dA="function"==typeof Object.defineProperty,dI=function(){function e(){this._id="__ec_inner_"+dE++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return dA?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)},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}(),dO=sb.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()}}),dj=sb.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()}}),dM=sb.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),l=r-a+o+s,c=Math.asin(s/o),_=Math.cos(c)*o,u=Math.sin(c),d=Math.cos(c),p=.6*o,f=.7*o;e.moveTo(n-_,l+s),e.arc(n,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+_-u*p,l+s+d*p,n,r-f,n,r),e.bezierCurveTo(n,r-f,n-_+u*p,l+s+d*p,n-_,l+s),e.closePath()}}),dL=sb.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()}}),dR={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}},dB={};nW({line:uV,rect:lw,roundRect:lw,square:lw,circle:uv,diamond:dj,pin:dM,arrow:dL,triangle:dO},function(e,t){dB[t]=new e});var dz=sb.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=aV(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=dB[r];i||(i=dB[r="rect"]),dR[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function dJ(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function dq(e,t,n,r,i,a,o){var s,l,c,_,u,d=0===e.indexOf("empty");return(d&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),0===e.indexOf("image://"))?(s=e.slice(8),l=new r6(t,n,r,i),c=o?"center":"cover",u=_=new lb({style:{image:s,x:l.x,y:l.y,width:l.width,height:l.height},onload:function(e){if("center"===c){var t={width:e.width,height:e.height};_.setStyle(uZ(l,t))}}})):u=0===e.indexOf("path://")?uQ(e.slice(7),{},new r6(t,n,r,i),o?"center":"cover"):new dz({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),u.__isEmptyBrush=d,u.setColor=dJ,a&&u.setColor(a),u}function dU(e){return isFinite(e)}function dV(e,t,n){for(var r,i,a,o,s,l,c,_,u,d,p="radial"===t.type?(a=Math.min(r=n.width,i=n.height),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r,t.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=dU(o)?o:.5,s=dU(s)?s:.5,l=l>=0&&dU(l)?l:.5,e.createRadialGradient(o,s,0,o,s,l)):(c=null==t.x?0:t.x,_=null==t.x2?1:t.x2,u=null==t.y?0:t.y,d=null==t.y2?0:t.y2,t.global||(c=c*n.width+n.x,_=_*n.width+n.x,u=u*n.height+n.y,d=d*n.height+n.y),c=dU(c)?c:0,_=dU(_)?_:1,u=dU(u)?u:0,d=dU(d)?d:0,e.createLinearGradient(c,u,_,d)),f=t.colorStops,m=0;m<f.length;m++)p.addColorStop(f[m].offset,f[m].color);return p}function dW(e){return parseInt(e,10)}function dH(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||dW(s[r])||dW(e.style[r]))-(dW(s[a])||0)-(dW(s[o])||0)|0}function d$(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:n1(t)?[t]:nQ(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&1!==o&&(i=nH(i,function(e){return e/o}),a/=o)}return[i,a]}var dK=new ss(!0);function dG(e){var t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0}function dX(e){return"string"==typeof e&&"none"!==e}function dY(e){var t=e.fill;return null!=t&&"none"!==t}function dQ(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function dZ(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function d0(e,t,n){var r=la(t.image,t.__image,n);if(ls(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rd),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var d1=["shadowBlur","shadowOffsetX","shadowOffsetY"],d2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function d3(e,t,n,r,i){var a=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){d8(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?oM.opacity:o}(r||t.blend!==n.blend)&&(a||(d8(e,i),a=!0),e.globalCompositeOperation=t.blend||oM.blend);for(var s=0;s<d1.length;s++){var l=d1[s];(r||t[l]!==n[l])&&(a||(d8(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(d8(e,i),a=!0),e.shadowColor=t.shadowColor||oM.shadowColor),a}function d4(e,t,n,r,i){var a=d5(t,i.inHover),o=r?null:n&&d5(n,i.inHover)||{};if(a===o)return!1;var s=d3(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(d8(e,i),s=!0),dX(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(d8(e,i),s=!0),dX(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(d8(e,i),s=!0),e.globalAlpha=null==a.opacity?1:a.opacity),t.hasStroke()){var l=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(d8(e,i),s=!0),e.lineWidth=l)}for(var c=0;c<d2.length;c++){var _=d2[c],u=_[0];(r||a[u]!==o[u])&&(s||(d8(e,i),s=!0),e[u]=a[u]||_[1])}return s}function d6(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 d8(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function d5(e,t){return t&&e.__hoverStyle||e.style}function d7(e,t){d9(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function d9(e,t,n,r){var i,a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,s=n.prevElClipPaths,l=!1,c=!1;if(!s||function(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}(o,s)){if(s&&s.length&&(d8(e,n),e.restore(),c=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){d8(e,n),e.save();for(var _=!1,u=0;u<o.length;u++){var d=o[u];_=_||d.isZeroArea(),d6(e,d),e.beginPath(),d.buildPath(e,d.shape),e.clip()}n.allClipped=_,l=!0}n.prevElClipPaths=o}if(n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(c=l=!0);var f=t instanceof sb&&t.autoBatch&&(g=dY(h=t.style),y=dG(h),!(h.lineDash||!(g^y)||g&&"string"!=typeof h.fill||y&&"string"!=typeof h.stroke||h.strokePercent<1||h.strokeOpacity<1||h.fillOpacity<1));!l&&(x=p.transform,a&&x?a[0]===x[0]&&a[1]===x[1]&&a[2]===x[2]&&a[3]===x[3]&&a[4]===x[4]&&a[5]===x[5]:+(!a&&!x))?f||d8(e,n):(d8(e,n),d6(e,t));var m=d5(t,n.inHover);if(t instanceof sb)1!==n.lastDrawType&&(c=!0,n.lastDrawType=1),d4(e,t,p,c,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,a,o,s=dG(n),l=dY(n),c=n.strokePercent,_=c<1,u=!t.path;(!t.silent||_)&&u&&t.createPathProxy();var d=t.path||dK,p=t.__dirty;if(!r){var f=n.fill,m=n.stroke,h=l&&!!f.colorStops,g=s&&!!m.colorStops,y=l&&!!f.image,x=s&&!!m.image,b=void 0,S=void 0,k=void 0,T=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(b=p?dV(e,f,C):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(S=p?dV(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(k=p||!t.__canvasFillPattern?d0(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=k),x&&(T=p||!t.__canvasStrokePattern?d0(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=k),h?e.fillStyle=b:y&&(k?e.fillStyle=k:l=!1),g?e.strokeStyle=S:x&&(T?e.strokeStyle=T:s=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(a=(i=d$(t))[0],o=i[1]);var D=!0;(u||4&p)&&(d.setDPR(e.dpr),_?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,_?c:1),a&&(e.setLineDash(a),e.lineDashOffset=o),!r&&(n.strokeFirst?(s&&dZ(e,n),l&&dQ(e,n)):(l&&dQ(e,n),s&&dZ(e,n))),a&&e.setLineDash([])}(e,t,m,f),f&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"");else if(t instanceof ly){3!==n.lastDrawType&&(c=!0,n.lastDrawType=3),d4(e,t,p,c,n);var h,g,y,x,b,S=m.text;if(null!=S&&(S+=""),S){e.font=m.font||nS,e.textAlign=m.textAlign,e.textBaseline=m.textBaseline;var k=void 0,T=void 0;e.setLineDash&&m.lineDash&&(k=(b=d$(t))[0],T=b[1]),k&&(e.setLineDash(k),e.lineDashOffset=T),m.strokeFirst?(dG(m)&&e.strokeText(S,m.x,m.y),dY(m)&&e.fillText(S,m.x,m.y)):(dY(m)&&e.fillText(S,m.x,m.y),dG(m)&&e.strokeText(S,m.x,m.y)),k&&e.setLineDash([])}}else t instanceof lb?(2!==n.lastDrawType&&(c=!0,n.lastDrawType=2),i=c,d3(e,d5(t,n.inHover),p&&d5(p,n.inHover),i,n),function(e,t,n){var r=t.__image=la(n.image,t.__image,t,t.onload);if(r&&ls(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,_=n.sy||0;e.drawImage(r,c,_,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var c=n.sx,_=n.sy,u=o-c,d=s-_;e.drawImage(r,c,_,u,d,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,m)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(c=!0,n.lastDrawType=4),function(e,t,n){var r,i,a=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=t.getCursor(),i=a.length;r<i;r++){var l=a[r];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),d9(e,l,s,r===i-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,_=o.length;c<_;c++){var l=o[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),d9(e,l,s,c===_-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n));f&&r&&d8(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}var pe=new dI,pt=new iq(100),pn=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pr(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&pe.delete(e);var a=pe.get(e);if(a)return a;var o=nJ(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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,a,s=[n],l=!0,c=0;c<pn.length;++c){var _=o[pn[c]];if(null!=_&&!nQ(_)&&!n0(_)&&!n1(_)&&"boolean"!=typeof _){l=!1;break}s.push(_)}if(l){t=s.join(",")+(i?"-svg":"");var u=pt.get(t);u&&(i?e.svgElement=u:e.image=u)}var d=function e(t){if(!t||0===t.length)return[[0,0]];if(n1(t)){var n=Math.ceil(t);return[[n,n]]}for(var r=!0,i=0;i<t.length;++i)if(!n1(t[i])){r=!1;break}if(r)return e([t]);for(var a=[],i=0;i<t.length;++i)if(n1(t[i])){var n=Math.ceil(t[i]);a.push([n,n])}else{var n=nH(t[i],function(e){return Math.ceil(e)});n.length%2==1?a.push(n.concat(n)):a.push(n)}return a}(o.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(n1(e)){var t=Math.ceil(e);return[t,t]}var n=nH(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),f=function e(t){if(!t||0===t.length)return[["rect"]];if(n0(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!n0(t[r])){n=!1;break}if(n)return e([t]);for(var i=[],r=0;r<t.length;++r)n0(t[r])?i.push([t[r]]):i.push(t[r]);return i}(o.symbol),m=nH(d,function(e){return pi(e)}),h=pi(p),g=!i&&nT.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=or(e,m[t]);for(var r=1,t=0,n=f.length;t<n;++t)r=or(r,f[t].length);e*=r;var i=h*m.length*f.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}();g&&(g.width=x.width*n,g.height=x.height*n,a=g.getContext("2d")),function(){a&&(a.clearRect(0,0,g.width,g.height),o.backgroundColor&&(a.fillStyle=o.backgroundColor,a.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var s=-h,l=0,c=0,_=0;s<x.height;){if(l%2==0){for(var u=c/2%f.length,m=0,b=0,S=0;m<2*x.width;){for(var k=0,t=0;t<d[_].length;++t)k+=d[_][t];if(k<=0)break;if(b%2==0){var T=(1-o.symbolSize)*.5,C=m+d[_][b]*T,w=s+p[l]*T,D=d[_][b]*o.symbolSize,N=p[l]*o.symbolSize,F=S/2%f[u].length;!function(e,t,s,l,c){var _=i?1:n,u=dq(c,e*_,t*_,s*_,l*_,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&y.children.push(d)}else d7(a,u)}(C,w,D,N,f[u][F])}m+=d[_][b],++S,++b===d[_].length&&(b=0)}++_===d.length&&(_=0)}s+=p[l],++c,++l===p.length&&(l=0)}}(),l&&pt.put(t,g||y),e.image=g,e.svgElement=y,e.svgWidth=x.width,e.svgHeight=x.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,pe.set(e,s),e.dirty=!1,s}function pi(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var pa=new rw,po={},ps="__flagInMainProcess",pl="__pendingUpdate",pc="__needsUpdateStatus",p_=/^[a-zA-Z0-9_]+$/;function pu(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.isDisposed()?void this.id:pp(this,e,t)}}function pd(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return pp(this,e,t)}}function pp(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),rw.prototype[t].apply(e,n)}var pf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nv(t,e),t}(rw),pm=pf.prototype;pm.on=pd("on"),pm.off=pd("off");var ph=function(e){function t(t,n,r){var i=e.call(this,new dw)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},n0(n)&&(n=pk[n]),i._dom=t,r.ssr;var a=i._zr=a3(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:n5(r.useDirtyRect,!1),useCoarsePointer:n5(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=function(e,t,n){var r,i,a,o,s,l=0,c=0,_=null;function u(){c=new Date().getTime(),_=null,e.apply(a,o||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=new Date().getTime(),a=this,o=e;var p=s||t,f=s||n;s=null,i=r-(f?l:c)-p,clearTimeout(_),f?_=setTimeout(u,p):i>=0?u():_=setTimeout(u,-i),l=r};return d.clear=function(){_&&(clearTimeout(_),_=null)},d.debounceNextCall=function(e){s=e},d}(nX(a.flush,a),17),(n=nR(n))&&_s(n,!0),i._theme=n,i._locale=function(e){if(!n0(e))return nB(nR(e),nR(lZ.EN),!1);var t=lZ[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?nR(t):nB(nR(t),nR(lZ.EN),!1)}(r.locale||l1),i._coordSysMgr=new cQ;var o=i._api=ee(i);function s(e,t){return e.__prio-t.__prio}return i_(pS,s),i_(px,s),i._scheduler=new ds(i,o,px,pS),i._messageCenter=new pf,i._initEvents(),i.resize=nX(i.resize,i),a.animation.on("frame",i._onframe,i),G(a,i),X(a,i),i[rr]=!0,i}return nv(t,e),t.prototype._onframe=function(){if(!this._disposed){en(this);var e=this._scheduler;if(this[pl]){var t=this[pl].silent;this[ps]=!0;try{z(this),U.update.call(this,null,this[pl].updateParams)}catch(e){throw this[ps]=!1,this[pl]=null,e}this._zr.flush(),this[ps]=!1,this[pl]=null,$.call(this,t),K.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),W(this,r),e.performVisualTasks(r),Z(this,this._model,i,"remain",{}),n-=new Date-a}while(n>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[ps]){if(this._disposed)return void this.id;if(n2(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[ps]=!0,!this._model||t){var r,i,a,o=new c0(this._api),s=this._theme,l=this._model=new cW;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},pb);var c={seriesTransition:a,optionChanged:!0};if(n)this[pl]={silent:r,updateParams:c},this[ps]=!1,this.getZr().wakeUp();else{try{z(this),U.update.call(this,null,c)}catch(e){throw this[pl]=null,this[ps]=!1,e}this._ssr||this._zr.flush(),this[pl]=null,this[ps]=!1,$.call(this,r),K.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nb.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(nb.svgSupported){var e=this._zr;return nW(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed)return void this.id;var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;nW(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="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return nW(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed)return void this.id;var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(!pw[n])return this.getDataURL(e);var o=a,s=a,l=-a,c=-a,_=[],u=e&&e.pixelRatio||this.getDevicePixelRatio();nW(pC,function(a,u){if(a.group===n){var d=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(nR(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),c=i(p.bottom,c),_.push({dom:d,left:p.left,top:p.top})}}),o*=u,s*=u,l*=u,c*=u;var d=l-o,p=c-s,f=nT.createCanvas(),m=a3(f,{renderer:t?"svg":"canvas"});if(m.resize({width:d,height:p}),!t)return e.connectedBackgroundColor&&m.add(new lw({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),nW(_,function(e){var t=new lb({style:{x:e.left*u-o,y:e.top*u-s,image:e.dom}});m.add(t)}),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"));var h="";return nW(_,function(e){var t=e.left-o,n=e.top-s;h+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=h,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()},t.prototype.convertToPixel=function(e,t){return V(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return V(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;return this._disposed?void this.id:(nW(og(this._model,e),function(e,r){r.indexOf("Models")>=0&&nW(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}},this)},this),!!n)},t.prototype.getVisual=function(e,t){var n=og(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(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)}}(r,i,t):function(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)}}(r,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,t,n,r=this;nW(pg,function(e){var t=function(t){var n,i=r.getModel(),a=t.target;if("globalout"===e?n={}:a&&dP(a,function(e){var t=oI(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return n=nz({},t.eventData),!0},!0),n){var o=n.componentType,s=n.componentIndex;("markLine"===o||"markPoint"===o||"markArea"===o)&&(o="series",s=n.seriesIndex);var l=o&&null!=s&&i.getComponent(o,s),c=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:a,packedEvent:n,model:l,view:c},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)}),nW(pv,function(e,t){r._messageCenter.on(t,function(e){this.trigger(t,e)},r)}),nW(["selectchanged"],function(e){r._messageCenter.on(e,function(t){this.trigger(e,t)},r)}),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(dF("map","selectchanged",t,r,e),dF("pie","selectchanged",t,r,e)):"select"===e.fromAction?(dF("map","selected",t,r,e),dF("pie","selected",t,r,e)):"unselect"===e.fromAction&&(dF("map","unselected",t,r,e),dF("pie","unselected",t,r,e))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&(e=this.getDom(),e.setAttribute?e.setAttribute(pD,""):e[pD]="");var e,t=this._api,n=this._model;nW(this._componentsViews,function(e){e.dispose(n,t)}),nW(this._chartsViews,function(e){e.dispose(n,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete pC[this.id]},t.prototype.resize=function(e){if(!this[ps]){if(this._disposed)return void this.id;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[pl]&&(null==r&&(r=this[pl].silent),n=!0,this[pl]=null),this[ps]=!0;try{n&&z(this),U.update.call(this,{type:"resize",animation:nz({duration:0},e&&e.animation)})}catch(e){throw this[ps]=!1,e}this[ps]=!1,$.call(this,r),K.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)return void this.id;if(n2(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pT[e]){var n=pT[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=nz({},e);return t.type=pv[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)return void this.id;if((n2(t)||(t={silent:!!t}),py[e.type])&&this._model){if(this[ps])return void this._pendingActions.push(e);var n=t.silent;H.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&nb.browser.weChat&&this._throttledZrFlush(),$.call(this,n),K.call(this,n)}},t.prototype.updateLabelLayout=function(){pa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)return void this.id;var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered(function(e){return function e(t,n,r,i){var a=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(e(s[l],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);if(a&&(a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+2)),o){var c=t.textGuideLineConfig;o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}(e,n,r,-1/0),!0})}}function r(e,t){t.eachRendered(function(e){if(!s5(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(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&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),a=r.get("duration"),o=a>0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis&&!s5(e)){if(e instanceof sb&&((n=sT(e)).normalFill=e.style.fill,n.normalStroke=e.style.stroke,n.selectFill=(r=e.states.select||{}).style&&r.style.fill||null,n.selectStroke=r.style&&r.style.stroke||null),e.__dirty){var n,r,a=e.prevStates;a&&e.useStates(a)}if(i){e.stateTransition=o;var s=e.getTextContent(),l=e.getTextGuideLine();s&&(s.stateTransition=o),l&&(l.stateTransition=o)}e.__dirty&&t(e)}})}z=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),J(e,!0),J(e,!1),t.plan()},J=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,l=0;l<i.length;l++)i[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,_=!l&&a[c];if(!_){var u=ok(e.type);(_=new(t?un.getClass(u.main,u.sub):u3.getClass(u.sub))).init(n,s),a[c]=_,i.push(_),o.add(_.group)}e.__viewId=_.__id=c,_.__alive=!0,_.__model=e,_.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},t||r.prepareView(_,e,n,s)}t?n.eachComponent(function(e,t){"series"!==e&&c(t)}):n.eachSeries(c);for(var l=0;l<i.length;){var _=i[l];_.__alive?l++:(t||_.renderTask.dispose(),o.remove(_.group),_.dispose(n,s),i.splice(l,1),a[_.__id]===_&&delete a[_.__id],_.__id=_.group.__ecComponentInfo=null)}},q=function(e,t,n,r,i){var a,o=e._model;if(o.setUpdatePayload(n),!r)return void nW([].concat(e._componentsViews).concat(e._chartsViews),_);var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var c=n.excludeSeriesId;function _(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}null!=c&&(a=rs(),nW(oa(c),function(e){var t=ou(e,null);null!=t&&a.set(t,!0)})),o&&o.eachComponent(l,function(t){if(!(a&&null!=a.get(t.id))){if(s3(n))if(t instanceof _4)n.type!==sN||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=of(i,t);a=(nQ(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var c=oI(o);sX(r,c.focus,c.blurScope,n)}else{var _=e.get(["emphasis","focus"]),u=e.get(["emphasis","blurScope"]);null!=_&&sX(r,_,u,n)}}}(t,n,e._api);else{var r=sQ(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===sN&&i&&!n.notBlur&&sY(t.mainType,t.componentIndex,e._api),o&&nW(o,function(e){n.type===sN?sH(e):s$(e)})}else if(s2(n)&&t instanceof _4){if(e._api,s2(n)){var s=n.dataType,l=of(t.getData(s),n);nQ(l)||(l=[l]),t[n.type===sA?"toggleSelect":n.type===sP?"select":"unselect"](l,s)}sZ(t),et(e)}}},e),o&&o.eachComponent(l,function(t){a&&null!=a.get(t.id)||_(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)},U={prepareAndUpdate:function(e){z(this),U.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),W(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),Y(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",c=r.get("darkMode");a.setBackgroundColor(l),null!=c&&"auto"!==c&&a.setDarkMode(c),pa.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}});var o=rs();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),Z(this,r,i,t,{},o),pa.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),u3.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Y(this,n,this._api,t,{}),pa.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),u3.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),pa.trigger("afterupdate",r,this._api))},updateLayout:function(e){U.update.call(this,e)}},V=function(e,t,n,r){if(e._disposed)return void e.id;for(var i,a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s=og(a,n),l=0;l<o.length;l++){var c=o[l];if(c[t]&&null!=(i=c[t](a,s,r)))return i}},W=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},H=function(e,t){var n,r=this,i=this.getModel(),a=e.type,o=e.escapeConnect,s=py[a],l=s.actionInfo,c=(l.update||"update").split(":"),_=c.pop(),u=null!=c[0]&&ok(c[0]);this[ps]=!0;var d=[e],p=!1;e.batch&&(p=!0,d=nH(e.batch,function(t){return(t=nJ(nz({},t),e)).batch=null,t}));var f=[],m=s2(e),h=s3(e);if(h&&sG(this._api),nW(d,function(t){if((n=(n=s.action(t,r._model,r._api))||nz({},t)).type=l.event||n.type,f.push(n),h){var i=oy(e),a=i.queryOptionMap;q(r,_,t,i.mainTypeSpecified?a.keys()[0]:"series"),et(r)}else m?(q(r,_,t,"series"),et(r)):u&&q(r,_,t,u.main,u.sub)}),"none"!==_&&!h&&!m&&!u)try{this[pl]?(z(this),U.update.call(this,e),this[pl]=null):U[_].call(this,e)}catch(e){throw this[ps]=!1,e}if(n=p?{type:l.event||a,escapeConnect:o,batch:f}:f[0],this[ps]=!1,!t){var g=this._messageCenter;if(g.trigger(n.type,n),m){var y,x={type:"selectchanged",escapeConnect:o,selected:(y=[],i.eachSeries(function(e){nW(e.getAllData(),function(t){t.data;var n=t.type,r=e.getSelectedDataIndices();if(r.length>0){var i={dataIndex:r,seriesIndex:e.seriesIndex};null!=n&&(i.dataType=n),y.push(i)}})}),y),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};g.trigger(x.type,x)}}},$=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();H.call(this,n,e)}},K=function(e){e||this.trigger("updated")},G=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[pl]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},X=function(e,t){e.on("mouseover",function(e){var n,r,i,a,o,s=dP(e.target,s1);s&&(n=t._api,a=(i=sQ((r=oI(s)).componentMainType,r.componentIndex,r.componentHighDownName,n)).dispatchers,o=i.focusSelf,a?(o&&sY(r.componentMainType,r.componentIndex,n),nW(a,function(t){return sV(t,e)})):(sX(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&sY(r.componentMainType,r.componentIndex,n),sV(s,e)),et(t))}).on("mouseout",function(e){var n,r,i,a=dP(e.target,s1);a&&(sG(n=t._api),(i=sQ((r=oI(a)).componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers)?nW(i,function(t){return sW(t,e)}):sW(a,e),et(t))}).on("click",function(e){var n=dP(e.target,function(e){return null!=oI(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",i=oI(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Y=function(e,t,n,r,i){!function(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=r||!!s,("series"===e?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);i_(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),nW(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)})}}(t),Q(e,t,n,r,i),nW(e._chartsViews,function(e){e.__alive=!1}),Z(e,t,n,r,i),nW(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Q=function(e,t,a,o,s,l){nW(l||e._componentsViews,function(e){var s=e.__model;r(s,e),e.render(s,t,a,o),n(s,e),i(s,e)})},Z=function(e,t,a,o,s,l){var c,_,u,d,p=e._scheduler;s=nz(s||{},{updatedSeries:t.getSeries()}),pa.trigger("series:beforeupdate",t,a,s);var f=!1;t.eachSeries(function(t){var n,i,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var c=s.renderTask;p.updatePayload(c,o),r(t,s),l&&l.get(t.uid)&&c.dirty(),c.perform(p.getPerformArgs(c))&&(f=!0),s.group.silent=!!t.get("silent"),n=t,i=s,a=n.get("blendMode")||null,i.eachRendered(function(e){e.isGroup||(e.style.blend=a)}),sZ(t)}),p.unfinished=f||p.unfinished,pa.trigger("series:layoutlabels",t,a,s),pa.trigger("series:transition",t,a,s),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),c=e,_=t,u=c._zr.storage,d=0,u.traverse(function(e){!e.isGroup&&d++}),!(d>_.get("hoverLayerThreshold"))||nb.node||nb.worker||_.eachSeries(function(e){if(!e.preventUsingHoverLayer){var t=c._chartsMap[e.__viewId];t.__alive&&t.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}}),pa.trigger("series:afterupdate",t,a,s)},et=function(e){e[pc]=!0,e.getZr().wakeUp()},en=function(e){e[pc]&&(e.getZr().storage.traverse(function(e){s5(e)||t(e)}),e[pc]=!1)},ee=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return nv(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){sH(t,n),et(e)},n.prototype.leaveEmphasis=function(t,n){s$(t,n),et(e)},n.prototype.enterBlur=function(t){sJ(t,sL),et(e)},n.prototype.leaveBlur=function(t){sJ(t,sR),et(e)},n.prototype.enterSelect=function(t){sJ(t,sB),et(e)},n.prototype.leaveSelect=function(t){sJ(t,sz),et(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}(cX))(e)}}(),t}(rw).prototype;ph.on=pu("on"),ph.off=pu("off"),ph.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var pg=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],py={},pv={},px=[],pb=[],pS=[],pk={},pT={},pC={},pw={},pD="_echarts_instance_";function pN(e){0>nq(pb,e)&&pb.push(e)}function pF(e,t){pj(px,e,t,2e3)}function pP(e,t){pa.on(e,t)}function pE(e,t,n){nZ(t)&&(n=t,t="");var r=n2(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),pv[t=e.event]||(rt(p_.test(r)&&p_.test(t)),py[r]||(py[r]={action:n,actionInfo:e}),pv[t]=r)}function pA(e,t){pj(pS,e,t,1e3,"layout")}function pI(e,t){pj(pS,e,t,3e3,"visual")}var pO=[];function pj(e,t,n,r,i){if((nZ(t)||n2(t))&&(n=t,t=r),!(nq(pO,n)>=0)){pO.push(n);var a=ds.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function pM(e){return null==e?0:e.length||1}function pL(e){return e}pI(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=dn(e,r)(i),o=i.getShallow("decal");o&&(n.setVisual("decal",o),o.dirty=!0);var s=dr(e,r),l=a[s],c=nZ(l)?l:null,_="auto"===a.fill||"auto"===a.stroke;if(!a[s]||c||_){var u=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=u,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||nZ(a.fill)?u:a.fill,a.stroke="auto"===a.stroke||nZ(a.stroke)?u:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=nz({},a);i[s]=c(r),t.setItemVisual(n,"style",i)}}}}),pI(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=dn(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){di.option=n[r];var o=i(di);nz(e.ensureUniqueItemVisual(t,"style"),o),di.option.decal&&(e.setItemVisual(t,"decal",di.option.decal),di.option.decal.dirty=!0),a in o&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}}),pI(4500,{performRawSeries:!0,overallReset:function(e){var t=rs();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),u9(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=u9(t).scope,o=t.visualStyleAccessPath||"itemStyle",s=dr(t,o);i.each(function(e){r[i.getRawIndex(e)]=e}),n.each(function(e){var o=r[e];if(i.getItemVisual(o,"colorFromPalette")){var l=i.ensureUniqueItemVisual(o,"style"),c=n.getName(e)||e+"",_=n.count();l[s]=t.getColorFromPalette(c,a,_)}})}})}}),pI(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<dD.length;o++){var s=dD[o],l=e.get(s);nZ(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(nz({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=nG(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<c.length;o++){var s=c[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}}),pI(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<dN.length;r++){var i=dN[r],a=n.getShallow(i,!0);null!=a&&e.setItemVisual(t,i,a)}}:null}}}),pI(7e3,function(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");n&&(r.ensureUniqueItemVisual(e,"style").decal=pr(n,t))});var i=r.getVisual("decal");i&&(r.getVisual("style").decal=pr(i,t))}})}),pN(_s),pF(900,function(e){var t=rs();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.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(_l)}),pT.default=function(e,t){nJ(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,r=new aZ,i=new lw({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var a=new lF({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new lw({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return r.add(o),t.showSpinner&&((n=new uX({shape:{startAngle:-da/2,endAngle:-da/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*da/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*da/2}).delay(300).start("circularInOut"),r.add(n)),r.resize=function(){var r=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&r?10:0)-r)/2-(t.showSpinner&&r?0:5+r/2)+(t.showSpinner?0:r/2)+(r?0:s),c=e.getHeight()/2;t.showSpinner&&n.setShape({cx:l,cy:c}),o.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r},pE({type:sN,event:sN,update:sN},ru),pE({type:sF,event:sF,update:sF},ru),pE({type:sP,event:sP,update:sP},ru),pE({type:sE,event:sE,update:sE},ru),pE({type:sA,event:sA,update:sA},ru),pk.light={color:dx,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],dx]},pk.dark=dC;var pR=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||pL,this._newKeyGetter=r||pL,this.context=i,this._diffModeMultiple="multiple"===a}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],l=pM(s);if(l>1){var c=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(c,a)}else 1===l?(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],l=n[s],c=r[s],_=pM(l),u=pM(c);if(_>1&&1===u)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===_&&u>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===_&&1===u)this._update&&this._update(c,l),r[s]=null;else if(_>1&&u>1)this._updateManyToMany&&this._updateManyToMany(c,l),r[s]=null;else if(_>1)for(var d=0;d<_;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}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=pM(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&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],l=pM(s);0===l?(t[o]=a,i&&n.push(o)):1===l?t[o]=[s,a]:s.push(a)}}},e}(),pB=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._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pz(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}let pJ=function(e){this.otherDims={},null!=e&&nz(this,e)};var pq=om(),pU={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},pV=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||(this._dimNameMap=pH(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return n5(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=_h(this.source),n=!(e>30),r="",i=[],a=0,o=0;a<e;a++){var s=void 0,l=void 0,c=void 0,_=this.dimensions[o];if(_&&_.storeDimIndex===a)s=t?_.name:null,l=_.type,c=_.ordinalMeta,o++;else{var u=this.getSourceDimension(a);u&&(s=t?u.name:null,l=u.type)}i.push({property:s,type:l,ordinalMeta:c}),!t||null==s||_&&_.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=pU[l]||"f",c&&(r+=c.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.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 pW(e){for(var t=rs(),n=0;n<(e||[]).length;n++){var r=e[n],i=n2(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function pH(e){var t=pq(e);return t.dimNameMap||(t.dimNameMap=pW(e.dimensionsDefine))}var p$=n2,pK="undefined"==typeof Int32Array?Array:Int32Array,pG=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],pX=["_approximateExtent"],pY=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;e instanceof pV?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},c=0;c<n.length;c++){var _=n[c],u=n0(_)?new pJ({name:_}):_ instanceof pJ?_:new pJ(_),d=u.name;u.type=u.type||"float",u.coordDim||(u.coordDim=d,u.coordDimIndex=0);var p=u.otherDims=u.otherDims||{};a.push(d),i[d]=u,null!=l[d]&&(s=!0),u.createInvertedIndices&&(o[d]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),r&&(u.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=rs();nW(a,function(e){f.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return -1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(n1(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(e)))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(null==t)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,i,a,o,s,l,c,_,u,d,p,f,m,h=this;if(e instanceof _X&&(m=e),!m){var g=this.dimensions,y=__(e)||nV(e)?new _g(e,g.length):e;m=new _X;var x=nH(g,function(e){return{type:h._dimInfos[e].type,property:e}});m.initData(y,x,n)}this._store=m,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,m.count()),this._dimSummary=(r=this,i=this._schema,o=(a={}).encode={},s=rs(),l=[],c=[],_={},nW(r.dimensions,function(e){var t=r.getDimensionInfo(e),n=t.coordDim;if(n){var i,a=t.coordDimIndex;pz(o,n)[a]=e,t.isExtraCoord||(s.set(n,1),"ordinal"!==(i=t.type)&&"time"!==i&&(l[0]=e),pz(_,n)[a]=r.getDimensionIndex(t.name)),t.defaultTooltip&&c.push(e)}cE.each(function(e,n){var r=pz(o,n),i=t.otherDims[n];null!=i&&!1!==i&&(r[i]=t.name)})}),u=[],d={},s.each(function(e,t){var n=o[t];d[t]=n[0],u=u.concat(n)}),a.dataDimsOnCoord=u,a.dataDimIndicesOnCoord=nH(u,function(e){return r.getDimensionInfo(e).storeDimIndex}),a.encodeFirstDimNotExtra=d,(p=o.label)&&p.length&&(l=p.slice()),(f=o.tooltip)&&f.length?c=f.slice():c.length||(c=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=c,a.userOutput=new pB(_,i),a),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&&ec(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 null==this._idDimIdx&&e.getSource().sourceFormat!==cM&&!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===cA&&!n.pure)for(var a=[],o=e;o<t;o++){var s,l=n.getItem(o,a);if(!(!this.hasItemOption&&n2(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var c=l.name;null==r[o]&&null!=c&&(r[o]=ou(c,null));var _=l.id;null==i[o]&&null!=_&&(i[o]=ou(_,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)ec(this,o);er(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){p$(e)?nz(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=ea(this,this._nameDimIdx,t)),null==n&&(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 ei(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))},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 nQ(e)?r.getValues(nH(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 null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){nZ(e)&&(n=t,t=e,e=[]);var r=n||this,i=nH(eo(e),this._getStoreDimIndex,this);this._store.each(i,r?nX(t,r):t)},e.prototype.filterSelf=function(e,t,n){nZ(e)&&(n=t,t=e,e=[]);var r=n||this,i=nH(eo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?nX(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=nG(e),i=[];return nW(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){nZ(e)&&(n=t,t=e,e=[]),n=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=nH(eo(e),this._getStoreDimIndex,this),o=el(this);return o._store=this._store.map(a,i?nX(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=nH(eo(e),this._getStoreDimIndex,this);this._store.modify(a,i?nX(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=el(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=el(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=el(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 lX(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pR(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ei(e,t)},function(e){return ei(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||{},p$(e)?nz(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(nQ(i=this.getVisual(t))?i=i.slice():p$(i)&&(i=nz({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,p$(t)?nz(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){p$(e)?nz(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?nz(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){oO(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){nW(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:nH(this.dimensions,this._getDimInfo,this),this.hostModel)),es(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];nZ(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(n9(arguments)))})},e.internalField=void(er=function(e){var t=e._invertedIndicesMap;nW(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new pK(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ea=function(e,t,n){return ou(e._getCategory(t,n),null)},ei=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=ea(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},eo=function(e){return nQ(e)||(e=null!=e?[e]:[]),e},el=function(t){var n=new e(t._schema?t._schema:nH(t.dimensions,t._getDimInfo,t),t.hostModel);return es(n,t),n},es=function(e,t){nW(pG.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,nW(pX,function(n){e[n]=nR(t[n])}),e._calculationInfo=nz({},t._calculationInfo)},ec=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(null==o&&null!=i&&(n[t]=o=ea(e,i,t)),null==s&&null!=a&&(r[t]=s=ea(e,a,t)),null==s&&null!=o){var l=e._nameRepeatCount,c=l[o]=(l[o]||0)+1;s=o,c>1&&(s+="__ec__"+c),r[t]=s}}),e}();function pQ(e,t){return function(e,t){__(e)||(e=_d(e));var n,r,i,a,o,s=(t=t||{}).coordDimensions||[],l=t.dimensionsDefine||e.dimensionsDefine||[],c=rs(),_=[],u=(n=e,r=s,i=l,a=t.dimensionsCount,o=Math.max(n.dimensionsDetectedCount||1,r.length,i.length,a||0),nW(r,function(e){var t;n2(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o),d=t.canOmitUnusedDimensions&&u>30,p=l===e.dimensionsDefine,f=p?pH(e):pW(l),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(e,u));for(var h=rs(m),g=new _V(u),y=0;y<g.length;y++)g[y]=-1;function x(e){var t=g[e];if(t<0){var n=l[e],r=n2(n)?n:{name:n},i=new pJ,a=r.name;null!=a&&null!=f.get(a)&&(i.name=i.displayName=a),null!=r.type&&(i.type=r.type),null!=r.displayName&&(i.displayName=r.displayName);var o=_.length;return g[e]=o,i.storeDimIndex=e,_.push(i),i}return _[t]}if(!d)for(var y=0;y<u;y++)x(y);h.each(function(e,t){var n=oa(e).slice();if(1===n.length&&!n0(n[0])&&n[0]<0)return void h.set(t,!1);var r=h.set(t,[]);nW(n,function(e,n){var i=n0(e)?f.get(e):e;null!=i&&i<u&&(r[n]=i,S(x(i),t,n))})});var b=0;function S(e,t,n){null!=cE.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,c.set(t,!0))}nW(s,function(e){if(n0(e))i=e,r={};else{var t,n,r,i=(r=e).name,a=r.ordinalMeta;r.ordinalMeta=null,(r=nz({},r)).ordinalMeta=a,t=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var o=h.get(i);if(!1!==o){if(!(o=oa(o)).length)for(var s=0;s<(t&&t.length||1);s++){for(;b<u&&null!=x(b).coordDim;)b++;b<u&&o.push(b++)}nW(o,function(e,a){var o=x(e);if(p&&null!=r.type&&(o.type=r.type),S(nJ(o,r),i,a),null==o.name&&t){var s=t[a];n2(s)||(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}n&&nJ(o.otherDims,n)})}});var k=t.generateCoord,T=t.generateCoordCount,C=null!=T;T=k?T||1:0;var w=k||"value";function D(e){null==e.name&&(e.name=e.coordDim)}if(d)nW(_,function(e){D(e)}),_.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var N=0;N<u;N++){var F=x(N);null==F.coordDim&&(F.coordDim=function(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}(w,c,C),F.coordDimIndex=0,(!k||T<=0)&&(F.isExtraCoord=!0),T--),D(F),null==F.type&&(1===cz(e,N)||F.isExtraCoord&&(null!=F.otherDims.itemName||null!=F.otherDims.seriesName))&&(F.type="ordinal")}return function(e){for(var t=rs(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}(_),new pV({source:e,dimensions:_,fullDimensionCount:u,dimensionOmitted:d})}(e,t).dimensions}var pZ=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();oF(pZ);var p0=0,p1=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++p0}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&nH(r,p2);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!n0(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=rs(this.categories))},e}();function p2(e){return n2(e)&&null!=e.value?e.value:e+""}function p3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function p4(e,t){return e>=t[0]&&e<=t[1]}function p6(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function p8(e,t){return e*(t[1]-t[0])+t[0]}var p5=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new p1({})),nQ(r)&&(r=new p1({categories:nH(r,function(e){return n2(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return nv(t,e),t.prototype.parse=function(e){return null==e?NaN:n0(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return p4(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return p6(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(p8(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null==e){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=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<a;++i){for(;null!=r[l];)l++;n.push(l),r[l]=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 null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(pZ);pZ.registerClass(p5);var p7=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return nv(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p4(e,this._extent)},t.prototype.normalize=function(e){return p6(e,this._extent)},t.prototype.scale=function(e){return p8(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a8(e)+2},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]<r[0]&&(e?a.push({value:a6(r[0]-t,i)}):a.push({value:n[0]}));for(var o=r[0];o<=r[1]&&(a.push({value:o}),(o=a6(o+t,i))!==a[a.length-1].value);)if(a.length>1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:a6(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,l=[],c=(a.value-o.value)/e;s<e-1;){var _=a6(o.value+(s+1)*c);_>r[0]&&_<r[1]&&l.push(_),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=a8(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=a6(e.value,n,!0);if(isNaN(ot(r)))return n0(r)?r:"-";var i=(r+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a,o,s,l,c,_,u=(s=e,c=(l={}).interval=oe((r[1]-r[0])/s,!0),null!=t&&c<t&&(c=l.interval=t),null!=n&&c>n&&(c=l.interval=n),_=l.intervalPrecision=a8(c)+2,a=l.niceTickExtent=[a6(Math.ceil(r[0]/c)*c,_),a6(Math.floor(r[1]/c)*c,_)],o=r,isFinite(a[0])||(a[0]=o[0]),isFinite(a[1])||(a[1]=o[1]),p3(a,0,o),p3(a,1,o),a[0]>a[1]&&(a[0]=a[1]),l);this._intervalPrecision=u.intervalPrecision,this._interval=u.interval,this._niceExtent=u.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=a6(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=a6(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(pZ);pZ.registerClass(p7);var p9=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},fe=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return nv(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return ce(e.value,l6[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(l9(this._minLevelUnit))]||l6.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var a=null;if(n0(n))a=n;else if(nZ(n))a=n(e.value,t,{level:e.level});else{var o=nz({},l3);if(e.level>0)for(var s=0;s<l8.length;++s)o[l8[s]]="{primary|"+o[l8[s]]+"}";var l=n?!1===n.inherit?n:nJ(n,o):o,c=ct(e.value,i);if(l[c])a=l[c];else if(l.inherit){for(var _=l5.indexOf(c),s=_-1;s>=0;--s)if(l[c]){a=l[c];break}a=a||o.none}if(nQ(a)){var u=null==e.level?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return ce(new Date(e.value),a,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){for(var i=0,a=[],o=[],s=0,l=0,c=0;c<l5.length&&i++<1e4;++c){var _,u=l9(l5[c]);if((_=l5[c])===l9(_)&&(!function(e,i,a){var o=[],s=!i.length;if(!function(e,t,n,r){var i=a7(t),a=a7(n),o=function(e){return cn(i,e,r)===cn(a,e,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},c=function(){return l()&&o("day")},_=function(){return c()&&o("hour")},u=function(){return _()&&o("minute")},d=function(){return u()&&o("second")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return _();case"minute":return u();case"second":return d();case"millisecond":return d()&&o("millisecond")}}(l9(e),r[0],r[1],n)){s&&(i=[{value:function(e,t,n){var r=new Date(e);switch(l9(t)){case"year":case"month":r[c_(n)](0);case"day":r[cu(n)](1);case"hour":r[cd(n)](0);case"minute":r[cp(n)](0);case"second":r[cf(n)](0),r[cm(n)](0)}return r.getTime()}(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var c=i[l].value,_=i[l+1].value;if(c!==_){var u,d,p,f=void 0,m=void 0,h=void 0;switch(e){case"year":f=Math.max(1,Math.round(t/864e5/365)),m=cr(n),h=n?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":f=(u=t/2592e6)>6?6:u>3?3:u>2?2:1,m=ci(n),h=c_(n);break;case"week":case"half-week":case"day":f=(d=t/864e5)>16?16:d>7.5?7:d>3.5?4:d>1.5?2:1,m=ca(n),h=cu(n);break;case"half-day":case"quarter-day":case"hour":f=(p=t/36e5)>12?12:p>6?6:p>3.5?4:p>2?2:1,m=co(n),h=cd(n);break;case"minute":f=fn(t,!0),m=cs(n),h=cp(n);break;case"second":f=fn(t,!1),m=cl(n),h=cf(n);break;case"millisecond":f=oe(t,!0),m=cc(n),h=cm(n)}!function(e,t,n,i,a,o,s){for(var l=new Date(t),c=t,_=l[i]();c<n&&c<=r[1];)s.push({value:c}),_+=e,l[a](_),c=l.getTime();s.push({value:c,notAdd:!0})}(f,c,_,m,h,0,o),"year"===e&&a.length>1&&0===l&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}(l5[c],a[a.length-1]||[],o),u!==(l5[c+1]?l9(l5[c+1]):null))){if(o.length){l=s,o.sort(function(e,t){return e.value-t.value});for(var d=[],p=0;p<o.length;++p){var f=o[p].value;(0===p||o[p-1].value!==f)&&(d.push(o[p]),f>=r[0]&&f<=r[1]&&s++)}var m=(r[1]-r[0])/t;if(s>1.5*m&&l>m/1.5||(a.push(d),s>m||e===l5[c]))break}o=[]}}for(var h=nK(nH(a,function(e){return nK(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),g=[],y=h.length-1,c=0;c<h.length;++c)for(var x=h[c],b=0;b<x.length;++b)g.push({value:x[b].value,level:y-c});g.sort(function(e,t){return e.value-t.value});for(var S=[],c=0;c<g.length;++c)(0===c||g[c].value!==g[c-1].value)&&S.push(g[c]);return S}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-864e5}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=ft.length,o=Math.min(p9(ft,this._approxInterval,0,a),a-1);this._interval=ft[o][1],this._minLevelUnit=ft[Math.max(o-1,0)][0]},t.prototype.parse=function(e){return n1(e)?e:+a7(e)},t.prototype.contain=function(e){return p4(this.parse(e),this._extent)},t.prototype.normalize=function(e){return p6(this.parse(e),this._extent)},t.prototype.scale=function(e){return p8(e,this._extent)},t.type="time",t}(p7),ft=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function fn(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}pZ.registerClass(fe);var fr=pZ.prototype,fi=p7.prototype,fa=Math.floor,fo=Math.ceil,fs=Math.pow,fl=Math.log,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p7,t._interval=0,t}return nv(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return nH(fi.getTicks.call(this,e),function(e){var t=e.value,i=a6(fs(this.base,t));return i=t===n[0]&&this._fixMin?a6(i,a8(r[0])):i,{value:i=t===n[1]&&this._fixMax?a6(i,a8(r[1])):i}},this)},t.prototype.setExtent=function(e,t){var n=fl(this.base);e=fl(Math.max(0,e))/n,t=fl(Math.max(0,t))/n,fi.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e,t,n=this.base,r=fr.getExtent.call(this);r[0]=fs(n,r[0]),r[1]=fs(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=(e=r[0],a6(e,a8(i[0])))),this._fixMax&&(r[1]=(t=r[1],a6(t,a8(i[1])))),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=fl(e[0])/fl(t),e[1]=fl(e[1])/fl(t),fr.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(n!==1/0&&!(n<=0)){var r=Math.pow(10,a9(n));for(e/n*r<=.5&&(r*=10);!isNaN(r)&&1>Math.abs(r)&&Math.abs(r)>0;)r*=10;var i=[a6(fo(t[0]/r)*r),a6(fa(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){fi.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return p4(e=fl(e)/fl(this.base),this._extent)},t.prototype.normalize=function(e){return p6(e=fl(e)/fl(this.base),this._extent)},t.prototype.scale=function(e){return e=p8(e,this._extent),fs(this.base,e)},t.type="log",t}(pZ),f_=fc.prototype;function fu(e,t,n){this._prepareParams(e,t,n)}f_.getMinorTicks=fi.getMinorTicks,f_.getLabel=fi.getLabel,pZ.registerClass(fc),fu.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var a=this._modelMinRaw=i;nZ(a)?this._modelMinNum=ff(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=ff(e,a));var o=this._modelMaxRaw=t.get("max",!0);if(nZ(o)?this._modelMaxNum=ff(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=ff(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=nQ(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aU(l[0],1),aU(l[1],1)]}},fu.prototype.calculate=function(){var e,t,n=this._isOrdinal,r=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=n?null:i-r||Math.abs(r),l="dataMin"===this._modelMinRaw?r:this._modelMinNum,c="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,_=null!=l,u=null!=c;null==l&&(l=n?a?0:NaN:r-o[0]*s),null==c&&(c=n?a?a-1:NaN:i+o[1]*s),null!=l&&isFinite(l)||(l=NaN),null!=c&&isFinite(c)||(c=NaN);var d=(e=l)!=e||(t=c)!=t||n&&!a;this._needCrossZero&&(l>0&&c>0&&!_&&(l=0),l<0&&c<0&&!u&&(c=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(l=p,_=!0),null!=f&&(c=f,u=!0),{min:l,max:c,minFixed:_,maxFixed:u,isBlank:d}},fu.prototype.modifyDataMinMax=function(e,t){this[fp[e]]=t},fu.prototype.setDeterminedMinMax=function(e,t){this[fd[e]]=t},fu.prototype.freeze=function(){this.frozen=!0};var fd={min:"_determinedMin",max:"_determinedMax"},fp={min:"_dataMin",max:"_dataMax"};function ff(e,t){return null==t?null:t!=t?NaN:e.parse(t)}function fm(){}function fh(e,t){var n;return function(e,t,n,r,i){n=n||s7;var a,o=t.ecModel,s=o&&o.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||s7).rich;if(n){t=t||{};for(var r=nG(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l){for(var c in a={},l)if(l.hasOwnProperty(c)){var _=t.getModel(["rich",c]);ln(a[c]={},_,s,n,r,i,!1,!0)}}a&&(e.rich=a);var u=t.get("overflow");u&&(e.overflow=u);var d=t.get("minMargin");null!=d&&(e.margin=d),ln(e,t,s,n,r,i,!0,!1)}(n={},e,null,"normal"!==(t=t||{}).state,void 0),n}fm.prototype.getNeedCrossZero=function(){return!this.option.scale},fm.prototype.getCoordSysModel=function(){};var fg=[];function fy(){var e=null!==oz&&oz.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}rf(fy,oz),fy.prototype.traverse=function(e,t){e.call(t,this)},fy.prototype.useStyle=function(){this.style={}},fy.prototype.getCursor=function(){return this._cursor},fy.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},fy.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},fy.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},fy.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},fy.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},fy.prototype.getDisplayables=function(){return this._displayables},fy.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},fy.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])},fy.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}},fy.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new r6(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(fg)),e.union(r)}this._rect=e}return this._rect},fy.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};var fv=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return rf(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=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),sb.prototype.getBoundingRect.call(this)},t}(sb),fx=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();function fb(e){var t=_4.extend(e);return _4.registerClass(t),t}function fS(e){var t=u3.extend(e);return u3.registerClass(t),t}rf(function(e,t,n,r,i,a){var o=w.call(this,i)||this;return o.x=null==e?0:e,o.y=null==t?0:t,o.x2=null==n?1:n,o.y2=null==r?0:r,o.type="linear",o.global=a||!1,o},w=fx),rf(function(e,t,n,r,i){var a=D.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==t?.5:t,a.r=null==n?.5:n,a.type="radial",a.global=i||!1,a},D=fx);var fk=[],fT={registerPreprocessor:pN,registerProcessor:pF,registerPostInit:function(e){pP("afterinit",e)},registerPostUpdate:function(e){pP("afterupdate",e)},registerUpdateLifecycle:pP,registerAction:pE,registerCoordinateSystem:function(e,t){cQ.register(e,t)},registerLayout:pA,registerVisual:pI,registerTransform:function(e){var t=(e=nR(e)).type;t||_E("");var n=t.split(":");2!==n.length&&_E("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,_B.set(t,e)},registerLoading:function(e,t){pT[e]=t},registerMap:function(e,t,n){var r=po.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){po[e]=t},PRIORITY:{PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ComponentModel:cC,ComponentView:un,SeriesModel:_4,ChartView:u3,registerComponentModel:function(e){cC.registerClass(e)},registerComponentView:function(e){un.registerClass(e)},registerSeriesModel:function(e){_4.registerClass(e)},registerChartView:function(e){u3.registerClass(e)},registerSubTypeDefaulter:function(e,t){cC.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){a0[e]=t}};function fC(e){nQ(e)?nW(e,function(e){fC(e)}):nq(fk,e)>=0||(fk.push(e),nZ(e)&&(e={install:e}),e.install(fT))}var fw=2*Math.PI,fD=ss.CMD,fN=["top","right","bottom","left"];function fF(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,_=Math.sqrt(l*l+c*c),u=((i-e)*(l/=_)+(a-t)*(c/=_))/_;s&&(u=Math.min(Math.max(u,0),1)),u*=_;var d=o[0]=e+u*l,p=o[1]=t+u*c;return Math.sqrt((d-i)*(d-i)+(p-a)*(p-a))}function fP(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,c=o[0]=Math.min(Math.max(i,e),s),_=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((c-i)*(c-i)+(_-a)*(_-a))}var fE=[],fA=new rX,fI=new rX,fO=new rX,fj=new rX,fM=new rX;function fL(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||fN,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,c=i.anchor,_=e.getComputedTransform(),u=_&&rG([],_),d=t.get("length2")||0;c&&fO.copy(c);for(var p=0;p<o.length;p++){!function(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case"top":r.set(n.x+a/2,n.y-0),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+0),i.set(0,1);break;case"left":r.set(n.x-0,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+0,n.y+o/2),i.set(1,0)}}(o[p],0,s,fA,fj),rX.scaleAndAdd(fI,fA,fj,d),fI.transform(u);var f=e.getBoundingRect(),m=c?c.distance(fI):e instanceof sb?function(e,t,n){for(var r,i,a=0,o=0,s=0,l=0,c=1/0,_=t.data,u=e.x,d=e.y,p=0;p<_.length;){var f=_[p++];1===p&&(a=_[p],o=_[p+1],s=a,l=o);var m=c;switch(f){case fD.M:s=_[p++],l=_[p++],a=s,o=l;break;case fD.L:m=fF(a,o,_[p],_[p+1],u,d,fE,!0),a=_[p++],o=_[p++];break;case fD.C:m=iE(a,o,_[p++],_[p++],_[p++],_[p++],_[p],_[p+1],u,d,fE),a=_[p++],o=_[p++];break;case fD.Q:m=iM(a,o,_[p++],_[p++],_[p],_[p+1],u,d,fE),a=_[p++],o=_[p++];break;case fD.A:var h=_[p++],g=_[p++],y=_[p++],x=_[p++],b=_[p++],S=_[p++];p+=1;var k=!!(1-_[p++]);r=Math.cos(b)*y+h,i=Math.sin(b)*x+g,p<=1&&(s=r,l=i);var T=(u-h)*x/y+h;m=function(e,t,n,r,i,a,o,s,l){var c=Math.sqrt((o-=e)*o+(s-=t)*s),_=(o/=c)*n+e,u=(s/=c)*n+t;if(Math.abs(r-i)%fw<1e-4)return l[0]=_,l[1]=u,c-n;if(a){var d=r;r=s_(i),i=s_(d)}else r=s_(r),i=s_(i);r>i&&(i+=fw);var p=Math.atan2(s,o);if(p<0&&(p+=fw),p>=r&&p<=i||p+fw>=r&&p+fw<=i)return l[0]=_,l[1]=u,c-n;var f=n*Math.cos(r)+e,m=n*Math.sin(r)+t,h=n*Math.cos(i)+e,g=n*Math.sin(i)+t,y=(f-o)*(f-o)+(m-s)*(m-s),x=(h-o)*(h-o)+(g-s)*(g-s);return y<x?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=h,l[1]=g,Math.sqrt(x))}(h,g,x,b,b+S,k,T,d,fE),a=Math.cos(b+S)*y+h,o=Math.sin(b+S)*x+g;break;case fD.R:m=fP(s=a=_[p++],l=o=_[p++],_[p++],_[p++],u,d,fE);break;case fD.Z:m=fF(a,o,s,l,u,d,fE,!0),a=s,o=l}m<c&&(c=m,n.set(fE[0],fE[1]))}return c}(fI,e.path,fO):function(e,t,n){var r=fP(t.x,t.y,t.width,t.height,e.x,e.y,fE);return n.set(fE[0],fE[1]),r}(fI,f,fO);m<l&&(l=m,fI.transform(_),fO.transform(_),fO.toArray(a[0]),fI.toArray(a[1]),fA.toArray(a[2]))}(function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,fA.fromArray(e[0]),fI.fromArray(e[1]),fO.fromArray(e[2]),rX.sub(fj,fA,fI),rX.sub(fM,fO,fI);var n=fj.len(),r=fM.len();if(!(n<.001)&&!(r<.001)&&(fj.scale(1/n),fM.scale(1/r),Math.cos(t)<fj.dot(fM))){var i=fF(fI.x,fI.y,fO.x,fO.y,fA.x,fA.y,fR,!1);fB.fromArray(fR),fB.scaleAndAdd(fM,i/Math.tan(Math.PI-t));var a=fO.x!==fI.x?(fB.x-fI.x)/(fO.x-fI.x):(fB.y-fI.y)/(fO.y-fI.y);if(isNaN(a))return;a<0?rX.copy(fB,fI):a>1&&rX.copy(fB,fO),fB.toArray(e[1])}}})(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var fR=[],fB=new rX;function fz(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function fJ(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=ry(r[0],r[1]),a=ry(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=rx([],r[1],r[0],o/i),l=rx([],r[1],r[2],o/a),c=rx([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var _=1;_<r.length;_++)e.lineTo(r[_][0],r[_][1])}var fq=[0,0],fU=[0,0],fV=new rX,fW=new rX,fH=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rX;for(var n=0;n<2;n++)this._axes[n]=new rX;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 l=0;l<4;l++)n[l].transform(t);rX.sub(r[0],n[1],n[0]),rX.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return(fV.set(1/0,1/0),fW.set(0,0),!this._intersectCheckOneSide(this,e,fV,fW,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,fV,fW,r,-1)&&(n=!1,r))?n:(r||rX.copy(t,n?fV:fW),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,fq),this._getProjMinMaxOnAxis(s,t._corners,fU),fq[1]<fU[0]||fq[0]>fU[1]){if(o=!1,i)return o;var c=Math.abs(fU[0]-fq[1]),_=Math.abs(fq[0]-fU[1]);Math.min(c,_)>r.len()&&(c<_?rX.scale(r,l,-c*a):rX.scale(r,l,_*a))}else if(n){var c=Math.abs(fU[0]-fq[1]),_=Math.abs(fq[0]-fU[1]);Math.min(c,_)<n.len()&&(c<_?rX.scale(n,l,c*a):rX.scale(n,l,-_*a))}}return o},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,l=1;l<t.length;l++){var c=t[l].dot(r)+i[e];o=Math.min(c,o),s=Math.max(c,s)}n[0]=o,n[1]=s},e}();function f$(e,t,n,r,i,a){var o,s,l,c=e.length;if(!(c<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var _=0,u=!1,d=[],p=0,f=0;f<c;f++){var m=e[f],h=m.rect;(o=h[t]-_)<0&&(h[t]-=o,m.label[t]-=o,u=!0);var g=Math.max(-o,0);d.push(g),p+=g,_=h[t]+h[n]}p>0&&a&&k(-p/c,0,c);var y=e[0],x=e[c-1];return b(),s<0&&T(-s,.8),l<0&&T(l,.8),b(),S(s,l,1),S(l,s,-1),b(),s<0&&C(-s),l<0&&C(l),u}function b(){s=y.rect[t]-r,l=i-x.rect[t]-x.rect[n]}function S(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){k(r*n,0,c);var i=r+e;i<0&&T(-i*n,1)}else T(-e*n,1)}}function k(n,r,i){0!==n&&(u=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function T(r,i){for(var a=[],o=0,s=1;s<c;s++){var l=e[s-1].rect,_=Math.max(e[s].rect[t]-l[t]-l[n],0);a.push(_),o+=_}if(o){var u=Math.min(Math.abs(r)/o,i);if(r>0)for(var s=0;s<c-1;s++){var d=a[s]*u;k(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=a[s-1]*u;k(-d,s,c)}}}function C(e){for(var t=e<0?-1:1,n=Math.ceil((e=Math.abs(e))/(c-1)),r=0;r<c-1;r++)if(t>0?k(n,0,r+1):k(-n,c-r-1,c),(e-=n)<=0)return}}var fK=["align","verticalAlign","width","height","fontSize"],fG=new aj,fX=om(),fY=om();function fQ(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var fZ=["x","y","rotation"],f0=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,o=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),c=r.getBoundingRect().plain();r6.applyTransform(c,c,l),l?fG.setLocalTransform(l):(fG.x=fG.y=fG.rotation=fG.originX=fG.originY=0,fG.scaleX=fG.scaleY=1),fG.rotation=s_(fG.rotation);var _=r.__hostTarget;if(_){a=_.getBoundingRect().plain();var u=_.getComputedTransform();r6.applyTransform(a,a,u)}var d=a&&_.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:a,priority:a?a.width*a.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:fG.x,y:fG.y,scaleX:fG.scaleX,scaleY:fG.scaleY,rotation:fG.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(nZ(r)||nG(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=oI(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){for(var t=e.getWidth(),n=e.getHeight(),r=0;r<this._labelList.length;r++){var i=this._labelList[r],a=i.label,o=a.__hostTarget,s=i.defaultAttr,l=void 0;l=(l=nZ(i.layoutOption)?i.layoutOption(function(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:function(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}(r&&r.shape.points)}}(i,o)):i.layoutOption)||{},i.computedLayoutOption=l;var c=Math.PI/180;o&&o.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*c:s.attachedRot,offset:[l.dx||0,l.dy||0]});var _=!1;if(null!=l.x?(a.x=a4(l.x,t),a.setStyle("x",0),_=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=l.y?(a.y=a4(l.y,n),a.setStyle("y",0),_=!0):(a.y=s.y,a.setStyle("y",s.style.y)),l.labelLinePoints){var u=o.getTextGuideLine();u&&(u.setShape({points:l.labelLinePoints}),_=!1)}fX(a).needsUpdateLabelLine=_,a.rotation=null!=l.rotate?l.rotate*c:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var d=0;d<fK.length;d++){var p=fK[d];a.setStyle(p,null!=l[p]?l[p]:s.style[p])}if(l.draggable){if(a.draggable=!0,a.cursor="move",o){var f=i.seriesModel;null!=i.dataIndex&&(f=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex)),a.on("drag",function(e,t){return function(){fL(e,t)}}(o,f.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,c=o.clone();c.applyTransform(a),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var _=s?new fH(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:o,obb:_,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}(this._labelList),i=nK(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),a=nK(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});f$(i,"x","width",0,t,void 0),f$(a,"y","height",0,n,void 0),function(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new r6(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,c=a.label,_=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var u=a.obb,d=!1,p=0;p<t.length;p++){var f=t[p];if(n.intersect(f.rect)&&(o&&f.axisAligned||(f.obb||(f.obb=new fH(f.localRect,f.transform)),u||(u=new fH(s,l)),u.intersect(f.obb)))){d=!0;break}}d?(r(c),_&&r(_)):(c.attr("ignore",a.defaultAttr.ignore),_&&_.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}(nK(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;nW(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=fX(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=oI(e),i=r.dataIndex;if(n&&null!=i){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");l&&(s.stroke=l[a.getVisual("drawType")]);var c=o.getModel("labelLine");!function(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,l=0;l<sD.length;l++){var c=sD[l],_=t[c],u="normal"===c;if(_){var d=_.get("show");if((u?s:n5(i.states[c]&&i.states[c].ignore,s))||!n5(d,o)){var p=u?r:r&&r.states[c];p&&(p.ignore=!0),r&&fz(r,!0,c,_);continue}!r&&(r=new uJ,e.setTextGuideLine(r),u||!s&&o||fz(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),fz(r,!1,c,_)}}if(r){nJ(r.style,n),r.style.fill=null;var f=a.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=f||!1,r.buildPath=fJ}}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<sw.length;r++){var i=sw[r];n[i]=e.getModel([i,t])}return n}(o),s),fL(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!s5(e))){var i=fX(n),a=i.oldLayout,o=oI(e),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(o.dataType);if(a){n.attr(a);var _=e.prevStates;_&&(nq(_,"select")>=0&&n.attr(i.oldLayoutSelect),nq(_,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),s6(n,l,t,s)}else if(n.attr(l),!lr(n).valueAnimation){var u=n5(n.style.opacity,1);n.style.opacity=0,s8(n,{style:{opacity:u}},t,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};fQ(d,l,fZ),fQ(d,n.states.select,fZ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};fQ(p,l,fZ),fQ(p,n.states.emphasis,fZ)}var f=lr(n);if(f.valueAnimation&&f.prevValue!==f.value){var m=f.defaultInterpolatedText,h=n5(f.interpolatedValue,f.prevValue),g=f.value;n.percent=0,(null==f.prevValue?s8:s6)(n,{percent:1},t,s,null,function(e){var r=function(e,t,n,r,i){var a=null==t||"auto"===t;if(null==r)return r;if(n1(r)){var o,s=(r-(o=n||0))*i+o;return a6(s,a?Math.max(a8(n||0),a8(r)):t)}if(n0(r))return i<1?n:r;for(var l=[],c=Math.max(n?n.length:0,r.length),_=0;_<c;++_){var u=e.getDimensionInfo(_);if(u&&"ordinal"===u.type)l[_]=(i<1&&n?n:r)[_];else{var d=n&&n[_]?n[_]:0,p=r[_],s=(p-d)*i+d;l[_]=a6(s,a?Math.max(a8(d),a8(p)):t)}}return l}(c,f.precision,h,g,e);f.interpolatedValue=1===e?null:r,function(e,t){for(var n=0;n<sw.length;n++){var r=sw[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)}(n,function(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=nZ(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:r},c=0;c<sw.length;c++){var _=sw[c],u=t[_];l[_]=n5(i?i.getFormattedLabel(a,_,null,o,u&&u.get("formatter")):null,r)}return l}({labelDataIndex:s,labelFetcher:t,defaultText:m?m(r):r+""},f.statesModels,r))})}}if(r&&!r.ignore&&!r.invisible){var i=fY(r),a=i.oldLayout,y={points:r.shape.points};a?(r.attr({shape:a}),s6(r,{shape:y},t)):(r.setShape(y),r.style.strokePercent=0,s8(r,{style:{strokePercent:1}},t)),i.oldLayout=y}},e}(),f1=om();function f2(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=f1(t).labelManager;r||(r=f1(t).labelManager=new f0),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=f1(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function f3(e,t,n){var r=nT.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}fC(f2);var f4=function(e){function t(t,n,r){var i,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||aw,"string"==typeof t?i=f3(t,n,r):n2(t)&&(t=(i=t).id),a.id=t,a.dom=i;var o=i.style;return o&&(rc(i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return rf(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=f3("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,a=[],o=this.maxRepaintRectCount,s=!1,l=new r6(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(0===a.length){var t=new r6(0,0,0,0);t.copy(e),a.push(t)}else{for(var n=!1,r=1/0,i=0,c=0;c<a.length;++c){var _=a[c];if(_.intersect(e)){var u=new r6(0,0,0,0);u.copy(_),u.union(e),a[c]=u,n=!0;break}if(s){l.copy(e),l.union(_);var d=e.width*e.height,p=_.width*_.height,f=l.width*l.height-d-p;f<r&&(r=f,i=c)}}if(s&&(a[i].union(e),n=!0),!n){var t=new r6(0,0,0,0);t.copy(e),a.push(t)}s||(s=a.length>=o)}}for(var _=this.__startIndex;_<this.__endIndex;++_){var u=e[_];if(u){var d=u.shouldBePainted(n,r,!0,!0),p=u.__isRendered&&(1&u.__dirty||!d)?u.getPrevPaintRect():null;p&&c(p);var f=d&&(1&u.__dirty||!u.__isRendered)?u.getPaintRect():null;f&&c(f)}}for(var _=this.__prevStartIndex;_<this.__prevEndIndex;++_){var u=t[_],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var p=u.getPrevPaintRect();p&&c(p)}}do{i=!1;for(var _=0;_<a.length;){if(a[_].isZero()){a.splice(_,1);continue}for(var m=_+1;m<a.length;)a[_].intersect(a[m])?(i=!0,a[_].union(a[m]),a.splice(m,1)):m++;_++}}while(i);return this._paintRects=a,a},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,1!==n&&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=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,_=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/c,o/c));var u=this.domBack;function d(e,n,r,a){if(i.clearRect(e,n,r,a),t&&"transparent"!==t){var o=void 0;n8(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||dV(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):null!=t.image&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,o=d0(i,t,{dirty:function(){_.setUnpainted(),_.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(u,e,n,r,a),i.restore())}!n||s?d(0,0,a,o):n.length&&nW(n,function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)})},t}(rw),f6=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=nz({},n||{}),this.dpr=n.devicePixelRatio||aw,this._singleCanvas=i,this.root=e,e.style&&(rc(e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var c=new f4(e,this,this.dpr);c.__builtin__=!0,c.initContext(),o[314159]=c,c.zlevel=314159,a.push(314159),this._domRoot=e}else{this._width=dH(e,0,n),this._height=dH(e,1,n);var _,u,d,p=this._domRoot=(_=this._width,u=this._height,(d=document.createElement("div")).style.cssText=["position:relative","width:"+_+"px","height:"+u+"px","padding:0;margin:0;border-width:0"].join(";")+";",d);e.appendChild(p)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===i?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t,n=e.length,r=this._hoverlayer;if(r&&r.clear(),n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<n;a++){var o=e[a];o.__inHover&&(r||(r=this._hoverlayer=this.getLayer(1e5)),t||(t=r.ctx).save(),d9(t,o,i,a===n-1))}t&&t.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){d7(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;F(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var c=!0,_=!1,u=this,d=0;d<i.length;d++)!function(o){var s,l=i[o],d=l.ctx,p=a&&l.createRepaintRects(e,t,u._width,u._height),f=n?l.__startIndex:l.__drawIndex,m=!n&&l.incremental&&Date.now,h=m&&Date.now(),g=l.zlevel===u._zlevelList[0]?u._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,g,p);else if(f===l.__startIndex){var y=e[f];y.incremental&&y.notClear&&!n||l.clear(!1,g,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var x=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=f;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(_=!0),r._doPaintEl(i,l,a,t,n,s===l.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=u.dpr,S=0;S<p.length;++S){var k=p[S];d.save(),d.beginPath(),d.rect(k.x*b,k.y*b,k.width*b,k.height*b),d.clip(),x(k),d.restore()}else d.save(),x(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)}(d);return nb.wxa&&nW(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:c,needsRefreshHover:_}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(d9(o,e,i,a),e.setPrevPaintRect(s))}else d9(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var n=this._layers[e];return n||((n=new f4("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?nB(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&nB(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){if(i>0&&e>r[0]){for(s=0;s<i-1&&(!(r[s]<e)||!(r[s+1]>e));s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var l=o.dom;l.nextSibling?a.insertBefore(t.dom,l.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n,r,i=1;i<e.length;i++){var a=e[i];if(a.zlevel!==e[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0;for(r=0;r<e.length;r++){var a=e[r],l=a.zlevel,c=void 0;n!==l&&(n=l,s=0),a.incremental?((c=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,s=1):c=this.getLayer(l+.01*(s>0),this._needsManuallyCompositing),c.__builtin__||nL("ZLevel "+l+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==r&&(c.__dirty=!0),c.__startIndex=r,c.incremental?c.__drawIndex=-1:c.__drawIndex=r,t(r),o=c),1&a.__dirty&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=r))}t(r),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,nW(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?nB(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];(i===e||i===e+.01)&&nB(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(nq(n,e),1))},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;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=dH(i,0,r),t=dH(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var a in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new f4("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;this.eachLayer(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},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++)d9(n,o[s],a,s===l-1);return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),f8=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nv(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new _Y(this),_Q(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),_Q(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:cR},t}(cC),f5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return nv(t,e),t.type="dataset",t}(un);fC([function(e){e.registerPainter("canvas",f6)},function(e){e.registerComponentModel(f8),e.registerComponentView(f5)}]),fC(f2),fb({type:"series.liquidFill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pY(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}});let f7=(N={type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(e,t){null==t.radiusY&&(t.radiusY=t.radius);for(var n=Math.max(2*Math.ceil(2*t.radius/t.waveLength*4),8);t.phase<-(2*Math.PI);)t.phase+=2*Math.PI;for(;t.phase>0;)t.phase-=2*Math.PI;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-2*t.radius;e.moveTo(i,t.waterLevel);for(var a=0,o=0;o<n;++o){var s,l,c,_,u=o%4,d=(s=o*t.waveLength/4,l=u,c=t.waveLength,_=t.amplitude,0===l?[[s+.5*c/Math.PI/2,_/2],[s+.5*c/Math.PI,_],[s+c/4,_]]:1===l?[[s+.5*c/Math.PI/2*(Math.PI-2),_],[s+.5*c/Math.PI/2*(Math.PI-1),_/2],[s+c/4,0]]:2===l?[[s+.5*c/Math.PI/2,-_/2],[s+.5*c/Math.PI,-_],[s+c/4,-_]]:[[s+.5*c/Math.PI/2*(Math.PI-2),-_],[s+.5*c/Math.PI/2*(Math.PI-1),-_/2],[s+c/4,0]]);e.bezierCurveTo(d[0][0]+i,-d[0][1]+t.waterLevel,d[1][0]+i,-d[1][1]+t.waterLevel,d[2][0]+i,-d[2][1]+t.waterLevel),o===n-1&&(a=d[2][0])}t.inverse?(e.lineTo(a+i,t.cy-t.radiusY),e.lineTo(i,t.cy-t.radiusY)):(e.lineTo(a+i,t.cy+t.radiusY),e.lineTo(i,t.cy+t.radiusY)),e.lineTo(i,t.waterLevel),e.closePath()}},sb.extend(N));function f9(e){return e&&0===e.indexOf("path://")}fS({type:"liquidFill",render:function(e,t,n){var r,i,a,o,s,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T=this,C=this.group;C.removeAll();var w=e.getData(),D=w.getItemModel(0),N=D.get("center"),F=D.get("radius"),P=n.getWidth(),E=n.getHeight(),A=Math.min(P,E),I=0,O=0,j=e.get("outline.show");j&&(I=e.get("outline.borderDistance"),O=a4(e.get("outline.itemStyle.borderWidth"),A));var M=a4(N[0],P),L=a4(N[1],E),R=!1,B=e.get("shape");"container"===B?(R=!0,S=[(b=[P/2,E/2])[0]-O/2,b[1]-O/2],k=[a4(I,P),a4(I,E)],F=[Math.max(S[0]-k[0],0),Math.max(S[1]-k[1],0)]):F=Math.max((S=(b=a4(F,A)/2)-O/2)-(k=a4(I,A)),0),j&&(H().style.lineWidth=O,C.add(H()));var z=R?0:M-F,J=R?0:L-F,q=null;C.add(((r=W(F)).setStyle(e.getModel("backgroundStyle").getItemStyle()),r.style.fill=null,r.z2=5,(i=W(F)).setStyle(e.getModel("backgroundStyle").getItemStyle()),i.style.stroke=null,(a=new aZ).add(r),a.add(i),a));var U=this._data,V=[];function W(e,t){if(B)if(f9(B)){var n=uQ(B.slice(7),{}),r=n.getBoundingRect(),i=r.width,a=r.height;i>a?(a=2*e/i*a,i=2*e):(i=2*e/a*i,a=2*e);var o=t?0:M-i/2,s=t?0:L-a/2;return n=uQ(B.slice(7),{},new r6(o,s,i,a)),t&&(n.x=-i/2,n.y=-a/2),n}else if(R){var l=t?-e[0]:M-e[0],c=t?-e[1]:L-e[1];return dq("rect",l,c,2*e[0],2*e[1])}else{var l=t?-e:M-e,c=t?-e:L-e;return"pin"===B?c+=e:"arrow"===B&&(c-=e),dq(B,l,c,2*e,2*e)}return new uv({shape:{cx:t?0:M,cy:t?0:L,r:e}})}function H(){var t=W(b);return t.style.fill=null,t.setStyle(e.getModel("outline.itemStyle").getItemStyle()),t}function $(t,n,r){var i=R?F[0]:F,a=R?E/2:F,o=w.getItemModel(t),s=o.getModel("itemStyle"),l=o.get("phase"),c=a4(o.get("amplitude"),2*a),_=a4(o.get("waveLength"),2*i),u=a-w.get("value",t)*a*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var d=s.getItemStyle();if(!d.fill){var p=e.get("color"),f=t%p.length;d.fill=p[f]}var m=new f7({shape:{waveLength:_,radius:i,radiusY:a,cx:2*i,cy:0,waterLevel:u,amplitude:c,phase:l,inverse:n},style:d,x:M,y:L});m.shape._waterLevel=u;var h=o.getModel("emphasis.itemStyle").getItemStyle();h.lineWidth=0,m.ensureState("emphasis").style=h,s0(m);var g=W(F,!0);return g.setStyle({fill:"white"}),m.setClipPath(g),m}function K(e,t,n){var r,i=w.getItemModel(e),a=i.get("period"),o=i.get("direction"),s=w.get("value",e),l=i.get("phase");l=n?n.shape.phase:"auto"===l?e*Math.PI/4:l;var c=0;c="auto"===a?0===(r=w.count())?5e3:5e3*(.2+(r-e)/r*.8):"function"==typeof a?a(s,e):a;var _=0;"right"===o||null==o?_=Math.PI:"left"===o?_=-Math.PI:"none"===o?_=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&i.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:l}).when(c/2,{phase:_+l}).when(c,{phase:2*_+l}).during(function(){q&&q.dirty(!0)}).start()}w.diff(U).add(function(t){var n=$(t,!1),r=n.shape.waterLevel;n.shape.waterLevel=R?E/2:F,s8(n,{shape:{waterLevel:r}},e),n.z2=2,K(t,n,null),C.add(n),w.setItemGraphicEl(t,n),V.push(n)}).update(function(t,n){for(var r=U.getItemGraphicEl(n),i=$(t,!1,r),a={},o=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],s=0;s<o.length;++s){var l=o[s];i.shape.hasOwnProperty(l)&&(a[l]=i.shape[l])}for(var c={},_=["fill","opacity","shadowBlur","shadowColor"],s=0;s<_.length;++s){var l=_[s];i.style.hasOwnProperty(l)&&(c[l]=i.style[l])}R&&(a.radiusY=E/2),s6(r,{shape:a,x:i.x,y:i.y},e),e.isUniversalTransitionEnabled&&e.isUniversalTransitionEnabled()?s6(r,{style:c},e):r.useStyle(c);var u=r.getClipPath(),d=i.getClipPath();r.setClipPath(i.getClipPath()),r.shape.inverse=i.inverse,u&&d&&T._shape===B&&!f9(B)&&s6(d,{shape:u.shape},e,{isFrom:!0}),K(t,r,r),C.add(r),w.setItemGraphicEl(t,r),V.push(r)}).remove(function(e){var t=U.getItemGraphicEl(e);C.remove(t)}).execute(),D.get("label.show")&&C.add((o=V,_=D.getModel("label"),u={z2:10,shape:{x:z,y:J,width:(R?F[0]:F)*2,height:(R?F[1]:F)*2},style:{fill:"transparent"},textConfig:{position:_.get("position")||"inside"},silent:!0},Object.assign((d={style:{text:(s=e.getFormattedLabel(0,"normal"),l=100*w.get("value",0),c=w.getName(0)||e.name,isNaN(l)||(c=l.toFixed(0)+"%"),null==s?c:s),textAlign:_.get("align"),textVerticalAlign:_.get("baseline")}}).style,fh(_)),p=new lw(u),(f=new lw(u)).disableLabelAnimation=!0,p.disableLabelAnimation=!0,m=new lF(d),h=new lF(d),p.setTextContent(m),f.setTextContent(h),g=_.get("insideColor"),h.style.fill=g,(y=new aZ).add(p),y.add(f),x=W(F,!0),(q=new fv({shape:{paths:o},x:M,y:L})).setClipPath(x),f.setClipPath(q),y)),this._shape=B,this._data=w},dispose:function(){}}),fb({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(e){return{fill:e.get("color")}},visualDrawType:"fill",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var n=new pY(pQ(e.data,{coordDimensions:["value"]}),this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),fS({type:"wordCloud",render:function(e,t,n){var r=this.group;r.removeAll();var i=e.getData(),a=e.get("gridSize");e.layoutInstance.ondraw=function(t,n,o,s){var l=i.getItemModel(o),c=new lF({style:fh(l.getModel("textStyle")),scaleX:1/s.info.mu,scaleY:1/s.info.mu,x:(s.gx+s.info.gw/2)*a,y:(s.gy+s.info.gh/2)*a,rotation:s.rot});c.setStyle({x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*n,text:t,verticalAlign:"middle",fill:i.getItemVisual(o,"style").fill,fontSize:n}),r.add(c),i.setItemGraphicEl(o,c),c.ensureState("emphasis").style=fh(l.getModel(["emphasis","textStyle"]),{state:"emphasis"}),c.ensureState("blur").style=fh(l.getModel(["blur","textStyle"]),{state:"blur"}),s0(c,l.get(["emphasis","focus"]),l.get(["emphasis","blurScope"])),c.stateTransition={duration:e.get("animation")?e.get(["stateAnimation","duration"]):0,easing:e.get(["stateAnimation","easing"])},c.__highDownDispatcher=!0},this._model=e},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(n){if("string"==typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var r=parseInt(n.data.substr(t.length),36);e[r]&&(e[r](),e[r]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},function(n){var r=e.length;return e.push(n),window.postMessage(t+r.toString(36),"*"),r}}()||function(e){window.setTimeout(e,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)});var me=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),mt=function(){if(me){for(var e,t,n=document.createElement("canvas").getContext("2d"),r=20;r;){if(n.font=r.toString(10)+"px sans-serif",n.measureText("W").width===e&&n.measureText("m").width===t)return r+1;e=n.measureText("W").width,t=n.measureText("m").width,r--}return 0}}(),mn=function(e){if(!Array.isArray(e))return[];var t=e.slice();return t.splice(0,2),t},mr=function(e){for(var t,n,r=e.length;r;)t=Math.floor(Math.random()*r),n=e[--r],e[r]=e[t],e[t]=n;return e},mi={},ma=function(e,t){if(me){var n,r,i,a,o,s,l,c,_,u=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"==typeof t){if(e[n]=document.getElementById(t),!e[n])throw Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw Error("You must pass valid HTML elements, or ID of the element.")});var d={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var p in t)p in d&&(d[p]=t[p]);if("function"!=typeof d.weightFactor){var f=d.weightFactor;d.weightFactor=function(e){return e*f}}if("function"!=typeof d.shape)switch(d.shape){case"circle":default:d.shape="circle";break;case"cardioid":d.shape=function(e){return 1-Math.sin(e)};break;case"diamond":d.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":d.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":d.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":d.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":d.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":d.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}d.gridSize=Math.max(Math.floor(d.gridSize),4);var m=d.gridSize,h=m-d.maskGapWidth,g=Math.abs(d.maxRotation-d.minRotation),y=Math.min(d.maxRotation,d.minRotation),x=d.rotationStep;switch(d.color){case"random-dark":l=function(){return L(10,50)};break;case"random-light":l=function(){return L(50,90)};break;default:"function"==typeof d.color&&(l=d.color)}"function"==typeof d.fontWeight&&(c=d.fontWeight);var b=null;"function"==typeof d.classes&&(b=d.classes);var S=!1,k=[],T=function(e){var t,n,r=e.currentTarget,i=r.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var a=t-i.left,o=n-i.top,s=Math.floor(a*(r.width/i.width||1)/m),l=Math.floor(o*(r.height/i.height||1)/m);return k[s]?k[s][l]:null},C=function(e){var t=T(e);if(_!==t){if(_=t,!t)return void d.hover(void 0,void 0,e);d.hover(t.item,t.dimension,e)}},w=function(e){var t=T(e);t&&(d.click(t.item,t.dimension,e),e.preventDefault())},D=[],N=function(e){if(D[e])return D[e];var t=8*e,n=t,r=[];for(0===e&&r.push([a[0],a[1],0]);n--;){var i=1;"circle"!==d.shape&&(i=d.shape(n/t*2*Math.PI)),r.push([a[0]+e*i*Math.cos(-n/t*2*Math.PI),a[1]+e*i*Math.sin(-n/t*2*Math.PI)*d.ellipticity,n/t*2*Math.PI])}return D[e]=r,r},F=function(){return d.abortThreshold>0&&new Date().getTime()-s>d.abortThreshold},P=function(e,t,n,r){var i,a,o,s,l=d.weightFactor(t);if(l<=d.minSize)return!1;var _=1;l<mt&&(_=function(){for(var e=2;e*l<mt;)e+=2;return e}()),i=c?c(e,t,l,r):d.fontWeight;var u=document.createElement("canvas"),p=u.getContext("2d",{willReadFrequently:!0});p.font=i+" "+(l*_).toString(10)+"px "+d.fontFamily;var f=p.measureText(e).width/_,h=Math.max(l*_,p.measureText("m").width,p.measureText("W").width)/_,g=f+2*h,y=3*h,x=Math.ceil(g/m),b=Math.ceil(y/m),S=-f/2,k=-(.4*h),T=Math.ceil(((g=x*m)*Math.abs(Math.sin(n))+(y=b*m)*Math.abs(Math.cos(n)))/m),C=Math.ceil((g*Math.abs(Math.cos(n))+y*Math.abs(Math.sin(n)))/m),w=C*m,D=T*m;u.setAttribute("width",w),u.setAttribute("height",D),p.scale(1/_,1/_),p.translate(w*_/2,D*_/2),p.rotate(-n),p.font=i+" "+(l*_).toString(10)+"px "+d.fontFamily,p.fillStyle="#000",p.textBaseline="middle",p.fillText(e,S*_,(k+.5*l)*_);var N=p.getImageData(0,0,w,D).data;if(F())return!1;for(var P=[],E=C,A=[T/2,C/2,T/2,C/2];E--;)for(a=T;a--;){s=m;l:for(;s--;)for(o=m;o--;)if(N[((a*m+s)*w+(E*m+o))*4+3]){P.push([E,a]),E<A[3]&&(A[3]=E),E>A[1]&&(A[1]=E),a<A[0]&&(A[0]=a),a>A[2]&&(A[2]=a);break l}}return{mu:_,occupied:P,bounds:A,gw:C,gh:T,fillTextOffsetX:S,fillTextOffsetY:k,fillTextWidth:f,fillTextHeight:h,fontSize:l}},E=function(e,t,a,o,s){for(var l=s.length;l--;){var c=e+s[l][0],_=t+s[l][1];if(c>=r||_>=i||c<0||_<0){if(!d.drawOutOfBound)return!1;continue}if(!n[c][_])return!1}return!0},A=function(t,n,r,i,a,o,s,_,u,p){var f,h,g,y=r.fontSize;f=l?l(i,a,y,o,s,p):d.color,h=c?c(i,a,y,p):d.fontWeight,g=b?b(i,a,y,p):d.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),o=r.mu;a.save(),a.scale(1/o,1/o),a.font=h+" "+(y*o).toString(10)+"px "+d.fontFamily,a.fillStyle=f,a.translate((t+r.gw/2)*m*o,(n+r.gh/2)*m*o),0!==_&&a.rotate(-_),a.textBaseline="middle",a.fillText(i,r.fillTextOffsetX*o,(r.fillTextOffsetY+.5*y)*o),a.restore()}else{var s=document.createElement("span"),l="";l="rotate("+-_/Math.PI*180+"deg) ",1!==r.mu&&(l+="translateX(-"+r.fillTextWidth/4+"px) scale("+1/r.mu+")");var c={position:"absolute",display:"block",font:h+" "+y*r.mu+"px "+d.fontFamily,left:(t+r.gw/2)*m+r.fillTextOffsetX+"px",top:(n+r.gh/2)*m+r.fillTextOffsetY+"px",width:r.fillTextWidth+"px",height:r.fillTextHeight+"px",lineHeight:y+"px",whiteSpace:"nowrap",transform:l,webkitTransform:l,msTransform:l,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var p in f&&(c.color=f),s.textContent=i,c)s.style[p]=c[p];if(u)for(var x in u)s.setAttribute(x,u[x]);g&&(s.className+=g),e.appendChild(s)}})},I=function(t,a,o,s,l){t>=r||a>=i||t<0||a<0||(n[t][a]=!1,o&&e[0].getContext("2d").fillRect(t*m,a*m,h,h),S&&(k[t][a]={item:l,dimension:s}))},O=function(t,n,a,o,s,l){var c,_,u=s.occupied,p=d.drawMask;if(p&&((c=e[0].getContext("2d")).save(),c.fillStyle=d.maskColor),S){var f=s.bounds;_={x:(t+f[3])*m,y:(n+f[0])*m,w:(f[1]-f[3]+1)*m,h:(f[2]-f[0]+1)*m}}for(var h=u.length;h--;){var g=t+u[h][0],y=n+u[h][1];g>=r||y>=i||g<0||y<0||I(g,y,p,_,l)}p&&c.restore()},j=function e(t,n){if(n>20)return null;Array.isArray(t)?(a=t[0],s=t[1]):(a=t.word,s=t.weight,l=t.attributes);var a,s,l,c=0===d.rotateRatio||Math.random()>d.rotateRatio?0:0===g?y:y+Math.round(Math.random()*g/x)*x,_=mn(t),u=P(a,s,c,_);if(!u||F())return!1;if(!d.drawOutOfBound&&!d.shrinkToFit){var p=u.bounds;if(p[1]-p[3]+1>r||p[2]-p[0]+1>i)return!1}for(var f=o+1;f--;){var m=N(o-f);d.shuffle&&mr(m=[].concat(m));for(var h=0;h<m.length;h++){var b=function(e){var n=Math.floor(e[0]-u.gw/2),r=Math.floor(e[1]-u.gh/2),i=u.gw,d=u.gh;return!!E(n,r,i,d,u.occupied)&&(A(n,r,u,a,s,o-f,e[2],c,l,_),O(n,r,i,d,u,t),{gx:n,gy:r,rot:c,info:u})}(m[h]);if(b)return b}}return d.shrinkToFit?(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t,n+1)):null},M=function(t,n,r){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:r||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:r||{}});e.dispatchEvent(n)},this)};!function(){var t,l,c=e[0];if(c.getContext)r=Math.ceil(c.width/m),i=Math.ceil(c.height/m);else{var p=c.getBoundingClientRect();r=Math.ceil(p.width/m),i=Math.ceil(p.height/m)}if(M("wordcloudstart",!0)){if(a=d.origin?[d.origin[0]/m,d.origin[1]/m]:[r/2,i/2],o=Math.floor(Math.sqrt(r*r+i*i)),n=[],!c.getContext||d.clearCanvas)for(e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=d.backgroundColor,t.clearRect(0,0,r*(m+1),i*(m+1)),t.fillRect(0,0,r*(m+1),i*(m+1))}else e.textContent="",e.style.backgroundColor=d.backgroundColor,e.style.position="relative"}),f=r;f--;)for(n[f]=[],h=i;h--;)n[f][h]=!0;else{var f,h,g,y,x,b=document.createElement("canvas").getContext("2d");b.fillStyle=d.backgroundColor,b.fillRect(0,0,1,1);var T=b.getImageData(0,0,1,1).data,D=c.getContext("2d").getImageData(0,0,r*m,i*m).data;for(f=r;f--;)for(n[f]=[],h=i;h--;){x=m;l:for(;x--;)for(y=m;y--;)for(g=4;g--;)if(D[((h*m+x)*r*m+(f*m+y))*4+g]!==T[g]){n[f][h]=!1;break l}!1!==n[f][h]&&(n[f][h]=!0)}D=b=T=void 0}if(d.hover||d.click){for(S=!0,f=r+1;f--;)k[f]=[];d.hover&&c.addEventListener("mousemove",C),d.click&&(c.addEventListener("click",w),c.addEventListener("touchstart",w),c.addEventListener("touchend",function(e){e.preventDefault()}),c.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),c.addEventListener("wordcloudstart",function e(){c.removeEventListener("wordcloudstart",e),c.removeEventListener("mousemove",C),c.removeEventListener("click",w),_=void 0})}g=0;var N=!0;d.layoutAnimation?0!==d.wait?(t=window.setTimeout,l=window.clearTimeout):(t=window.setImmediate,l=window.clearImmediate):(t=function(e){e()},l=function(){N=!1});var P=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},E=function e(){P("wordcloudstart",e),l(mi[u])};!function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)}("wordcloudstart",E),mi[u]=(d.layoutAnimation?t:setTimeout)(function e(){if(N){if(g>=d.list.length){l(mi[u]),M("wordcloudstop",!1),P("wordcloudstart",E),delete mi[u];return}s=new Date().getTime();var n=j(d.list[g],0),r=!M("wordclouddrawn",!0,{item:d.list[g],drawn:n});if(F()||r){l(mi[u]),d.abort(),M("wordcloudabort",!1),M("wordcloudstop",!1),P("wordcloudstart",E);return}g++,mi[u]=t(e,d.wait)}},d.wait)}}()}function L(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};if(ma.isSupported=me,ma.minFontSize=mt,!ma.isSupported)throw Error("Sorry your browser not support wordCloud");pA(function(e,t){e.eachSeriesByType("wordCloud",function(n){var r,i,a,o,s=function(e,t,n){n=re(n||0);var r=t.width,i=t.height,a=a4(e.left,r),o=a4(e.top,i),s=a4(e.right,r),l=a4(e.bottom,i),c=a4(e.width,r),_=a4(e.height,i),u=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(c)&&(c=r-s-d-a),isNaN(_)&&(_=i-l-u-o),null!=p&&(isNaN(c)&&isNaN(_)&&(p>r/i?c=.8*r:_=.8*i),isNaN(c)&&(c=p*_),isNaN(_)&&(_=c/p)),isNaN(a)&&(a=r-s-c-d),isNaN(o)&&(o=i-l-_-u),e.left||e.right){case"center":a=r/2-c/2-n[3];break;case"right":a=r-c-d}switch(e.top||e.bottom){case"middle":case"center":o=i/2-_/2-n[0];break;case"bottom":o=i-_-u}a=a||0,o=o||0,isNaN(c)&&(c=r-d-a-(s||0)),isNaN(_)&&(_=i-u-o-(l||0));var f=new r6(a+n[3],o+n[0],c,_);return f.margin=n,f}(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=n.get("keepAspect"),c=n.get("maskImage"),_=c?c.width/c.height:1;l&&(r=s,i=_,a=r.width,a>(o=r.height)*i?(r.x+=(a-o*i)/2,r.width=o*i):(r.y+=(o-a/i)/2,r.height=a/i));var u=n.getData(),d=document.createElement("canvas");d.width=s.width,d.height=s.height;var p=d.getContext("2d");if(c)try{p.drawImage(c,0,0,d.width,d.height),function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=t.createImageData(n),i=0,a=0,o=0;o<n.data.length;o+=4){var s=n.data[o+3];if(s>128){var l=n.data[o]+n.data[o+1]+n.data[o+2];i+=l,++a}}for(var c=i/a,o=0;o<n.data.length;o+=4){var l=n.data[o]+n.data[o+1]+n.data[o+2],s=n.data[o+3];s<128||l>c?(r.data[o]=0,r.data[o+1]=0,r.data[o+2]=0,r.data[o+3]=0):(r.data[o]=255,r.data[o+1]=255,r.data[o+2]=255,r.data[o+3]=255)}t.putImageData(r,0,0)}(d)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var f=n.get("sizeRange"),m=n.get("rotationRange"),h=u.getDataExtent("value"),g=Math.PI/180,y=n.get("gridSize");function x(e){var t=e.detail.item;e.detail.drawn&&n.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/y,e.detail.drawn.gy+=s.y/y,n.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}ma(d,{list:u.mapArray("value",function(e,t){var n,r,i,a,o,s,l,c,_,d=u.getItemModel(t);return[u.getName(t),d.get("textStyle.fontSize",!0)||(n=e,r=h,i=f,a=r[0],o=r[1],s=i[0],l=i[1],c=o-a,_=l-s,0===c?0===_?s:(s+l)/2:n===a?s:n===o?l:(n-a)/c*_+s),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:n.get("textStyle.fontFamily")||n.get("emphasis.textStyle.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:n.get("textStyle.fontWeight")||n.get("emphasis.textStyle.fontWeight")||e.get("textStyle.fontWeight"),gridSize:y,ellipticity:s.height/s.width,minRotation:m[0]*g,maxRotation:m[1]*g,clearCanvas:!c,rotateRatio:1,rotationStep:n.get("rotationStep")*g,drawOutOfBound:n.get("drawOutOfBound"),shrinkToFit:n.get("shrinkToFit"),layoutAnimation:n.get("layoutAnimation"),shuffle:!1,shape:n.get("shape")}),d.addEventListener("wordclouddrawn",x),n.layoutInstance&&n.layoutInstance.dispose(),n.layoutInstance={ondraw:null,dispose:function(){d.removeEventListener("wordclouddrawn",x),d.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),pN(function(e){var t=(e||{}).series;nQ(t)||(t=t?[t]:[]);var n=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r(e){e&&nW(n,function(t){e.hasOwnProperty(t)&&(e["text"+(t?t.charAt(0).toUpperCase()+t.substr(1):t)]=e[t])})}nW(t,function(e){if(e&&"wordCloud"===e.type){var t=e.textStyle||{};r(t.normal),r(t.emphasis)}})});var mo=u(843);eh()(ti.Radio.Group)`
|
|
1503
|
+
display: flex;
|
|
1504
|
+
flex-wrap: wrap;
|
|
1505
|
+
gap: 8px;
|
|
1506
|
+
|
|
1507
|
+
.ant-radio-button-wrapper {
|
|
1508
|
+
height: unset;
|
|
1509
|
+
width: 68px;
|
|
1510
|
+
height: 68px;
|
|
1511
|
+
border-radius: 4px;
|
|
1512
|
+
|
|
1513
|
+
.ant-radio-button-label > .ant-flex {
|
|
1514
|
+
flex-direction: column;
|
|
1515
|
+
align-items: center;
|
|
1516
|
+
justify-content: center;
|
|
1517
|
+
padding: 8px;
|
|
1518
|
+
gap: 4px;
|
|
1519
|
+
font-size: 12px;
|
|
1520
|
+
|
|
1521
|
+
.anticon {
|
|
1522
|
+
font-size: 28px;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
`;let ms=e=>{let{width:t,height:n,gap:r=10,active:i,children:a}=e;return(0,ed.jsxs)("div",{style:{width:t,height:n,position:"relative",padding:r,borderRadius:6,border:"2px solid var(--ant-color-border-secondary)"},children:[(0,ed.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:6,border:"2px dotted var(--ant-color-border)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",fontSize:10,userSelect:"none"},children:a}),(0,ed.jsx)("div",{style:{position:"absolute",top:0,left:t/2-3,width:4,height:r,backgroundColor:"top"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",bottom:0,left:t/2-3,width:4,height:r,backgroundColor:"bottom"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",top:n/2-3,left:0,height:4,width:r,backgroundColor:"left"===i?"var(--ant-color-primary)":"#e8e8e8"}}),(0,ed.jsx)("div",{style:{position:"absolute",top:t/2-3,right:0,height:4,width:r,backgroundColor:"right"===i?"var(--ant-color-primary)":"#e8e8e8"}})]})},ml=eh()(tt.InfoCircleOutlined)`
|
|
1503
1527
|
vertical-align: middle;
|
|
1504
1528
|
margin-left: 2px;
|
|
1505
1529
|
color: var(--ant-color-text-description);
|
|
@@ -1657,7 +1681,7 @@ Additional information: BADCLIENT: Bad error code, ${l} not found in range ${o}.
|
|
|
1657
1681
|
const module = undefined;
|
|
1658
1682
|
const exports = undefined;
|
|
1659
1683
|
${e}
|
|
1660
|
-
`)(ng,console,Math,Date,Array,Object,String,Number,Boolean,l,c.global,m)}catch(e){return null}}})(n);if(u&&e){try{u.setOption(e)}catch(e){console.error("ECharts 设置配置失败:",e)}setTimeout(()=>u.resize(),50)}},[u,n,m,l,c]),(0,ep.useEffect)(()=>{u&&(()=>{if(!u)return;let e=(r.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{});["click","dblclick","selectchanged"].forEach(t=>{var n;u.off(t),(null==(n=e[t])?void 0:n.length)&&u.on(t,e=>{h(t,e)})})})()},[u,r.events]),(0,ep.useEffect)(()=>{if(!_.current)return;let e=ng.init(_.current);d(e);let t=()=>e.resize();return window.addEventListener("resize",t),s({id:r.id,callback:g}),()=>{window.removeEventListener("resize",t),e.dispose()}},[]),(0,ed.jsx)("div",{id:t,style:{width:"100%",height:i,...a},className:o,children:(0,ed.jsx)("div",{ref:_,style:{width:"100%",height:i,...a}})})},formComponent:e=>{var t,n,r,i,a,o,s,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T,C,w,D,N,F,P,E,A,I,O,j,M,L,R,B,z,J,q,U,V,W,H,$,K,G,X,Y,Q,Z;let{model:
|
|
1684
|
+
`)(ng,console,Math,Date,Array,Object,String,Number,Boolean,l,c.global,m)}catch(e){return null}}})(n);if(u&&e){try{u.setOption(e)}catch(e){console.error("ECharts 设置配置失败:",e)}setTimeout(()=>u.resize(),50)}},[u,n,m,l,c]),(0,ep.useEffect)(()=>{u&&(()=>{if(!u)return;let e=(r.events||[]).reduce((e,t)=>(e[t.name]=t.script,e),{});["click","dblclick","selectchanged"].forEach(t=>{var n;u.off(t),(null==(n=e[t])?void 0:n.length)&&u.on(t,e=>{h(t,e)})})})()},[u,r.events]),(0,ep.useEffect)(()=>{if(!_.current)return;let e=ng.init(_.current);d(e);let t=()=>e.resize();return window.addEventListener("resize",t),s({id:r.id,callback:g}),()=>{window.removeEventListener("resize",t),e.dispose()}},[]),(0,ed.jsx)("div",{id:t,style:{width:"100%",height:i,...a},className:o,children:(0,ed.jsx)("div",{ref:_,style:{width:"100%",height:i,...a}})})},formComponent:e=>{var t,n,r,i,a,o,s,l,c,_,u,d,p,f,m,h,g,y,x,b,S,k,T,C,w,D,N,F,P,E,A,I,O,j,M,L,R,B,z,J,q,U,V,W,H,$,K,G,X,Y,Q,Z,ee;let{model:et,onChange:en}=e,{globalVars:er,env:ei}=(0,ep.useContext)(ey),ea=(0,ep.useRef)(null),eo=(0,ep.useRef)(null),[es,el]=(0,ep.useState)(!1),[ec,e_]=(0,ep.useState)(0),eu=e=>en&&en({...et,script:e||""}),ef=e=>{let t=et.script;if(!t)return void ti.message.warning("脚本内容为空");let n=e&&(e.nativeEvent||e.target)?{title:{text:"增强脚本"}}:e;try{let e=mo.createSourceFile("script.ts",t,mo.ScriptTarget.Latest,!0),r=e=>{if(null===e)return mo.factory.createNull();if(void 0===e)return mo.factory.createIdentifier("undefined");if("string"==typeof e)return mo.factory.createStringLiteral(e);if("number"==typeof e)return mo.factory.createNumericLiteral(e);if("boolean"==typeof e)return e?mo.factory.createTrue():mo.factory.createFalse();if(Array.isArray(e))return mo.factory.createArrayLiteralExpression(e.map(e=>r(e)),!1);if("object"==typeof e){let t=Object.entries(e).map(e=>{let[t,n]=e;return mo.factory.createPropertyAssignment(/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?mo.factory.createIdentifier(t):mo.factory.createStringLiteral(t),r(n))});return mo.factory.createObjectLiteralExpression(t,!0)}return mo.factory.createNull()},i=(e,t)=>{let n=[...e.properties];return Object.entries(t).forEach(e=>{let[t,a]=e,o=n.findIndex(e=>!!(mo.isPropertyAssignment(e)&&(mo.isIdentifier(e.name)||mo.isStringLiteral(e.name)))&&e.name.text===t);if(o>-1){let e=n[o];if("object"==typeof a&&null!==a&&!Array.isArray(a)&&mo.isObjectLiteralExpression(e.initializer)){let t=i(e.initializer,a);n[o]=mo.factory.updatePropertyAssignment(e,e.name,t)}else if("series"===t&&"object"==typeof a&&null!==a&&!Array.isArray(a)&&mo.isArrayLiteralExpression(e.initializer)){let t=[...e.initializer.elements];if(ec<t.length){let e=t[ec];mo.isObjectLiteralExpression(e)?t[ec]=i(e,a):t[ec]=r(a)}else t[ec]=r(a);n[o]=mo.factory.updatePropertyAssignment(e,e.name,mo.factory.createArrayLiteralExpression(t,!0))}else n[o]=mo.factory.createPropertyAssignment(e.name,r(a))}else n.push(mo.factory.createPropertyAssignment(/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?mo.factory.createIdentifier(t):mo.factory.createStringLiteral(t),r(a)))}),mo.factory.createObjectLiteralExpression(n,!0)},a=mo.transform(e,[e=>t=>mo.visitNode(t,function t(r){if(mo.isReturnStatement(r)&&r.expression&&mo.isObjectLiteralExpression(r.expression)){let e=n?i(r.expression,n):r.expression;return mo.factory.updateReturnStatement(r,e)}return mo.visitEachChild(r,t,e)})]),o=mo.createPrinter().printNode(mo.EmitHint.Unspecified,a.transformed[0],e);o=o.replace(/\\u([0-9a-fA-F]{4})/g,(e,t)=>String.fromCharCode(parseInt(t,16))),eu(o)}catch(e){console.error("AST Transformation Error:",e),ti.message.error("脚本转换失败,请检查代码语法(需返回对象字面量)")}},em=(0,ep.useMemo)(()=>{try{return JSON.parse(et.script)}catch(e){try{return Function("echarts","console","Math","Date","Array","Object","String","Number","Boolean","$g","$e","data",`
|
|
1661
1685
|
"use strict";
|
|
1662
1686
|
const window = undefined;
|
|
1663
1687
|
const document = undefined;
|
|
@@ -1666,8 +1690,8 @@ Additional information: BADCLIENT: Bad error code, ${l} not found in range ${o}.
|
|
|
1666
1690
|
const require = undefined;
|
|
1667
1691
|
const module = undefined;
|
|
1668
1692
|
const exports = undefined;
|
|
1669
|
-
${
|
|
1670
|
-
`)(ng,console,Math,Date,Array,Object,String,Number,Boolean,en,er.global,{})}catch(e){return null}}},[ee.script]),eu=e=>{var t,n,r,i,a,o;let[s,l]=(0,ep.useState)(),c=(0,ep.useMemo)(()=>{var t;let n=null==e_||null==(t=e_[e])?void 0:t.top;return"number"==typeof n?"px":["auto","top","bottom","middle"].includes(n)?n:"px"},[null==e_||null==(t=e_[e])?void 0:t.top]),_=(0,ep.useMemo)(()=>{var t;let n=null==e_||null==(t=e_[e])?void 0:t.left;return"number"==typeof n?"px":["auto","left","right","center"].includes(n)?n:"px"},[null==e_||null==(n=e_[e])?void 0:n.left]);return(0,ed.jsxs)(ti.Flex,{justify:"space-between",style:{width:"100%"},gap:12,children:[(0,ed.jsx)(ms,{width:106,height:106,gap:20,active:s,children:"POS"}),(0,ed.jsxs)(ti.Row,{gutter:[4,4],style:{width:180},children:[(0,ed.jsx)(ti.Col,{span:24,children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",block:!0,value:c,onChange:t=>{var n;["auto","top","bottom","middle"].includes(n=t.target.value)?ec({[e]:{top:n}}):"px"===n&&ec({[e]:{top:void 0}})},options:[{label:"Auto",value:"auto"},{label:"PX",value:"px"},{label:(0,ed.jsx)(tt.VerticalAlignTopOutlined,{}),value:"top"},{label:(0,ed.jsx)(tt.VerticalAlignMiddleOutlined,{}),value:"middle"},{label:(0,ed.jsx)(tt.VerticalAlignBottomOutlined,{}),value:"bottom"}]})}),(0,ed.jsx)(ti.Col,{span:24,children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",block:!0,value:_,onChange:t=>{var n;["auto","left","right","center"].includes(n=t.target.value)?ec({[e]:{left:n}}):"px"===n&&ec({[e]:{left:void 0}})},options:[{label:"Auto",value:"auto"},{label:"PX",value:"px"},{label:(0,ed.jsx)(tt.AlignLeftOutlined,{}),value:"left"},{label:(0,ed.jsx)(tt.AlignCenterOutlined,{}),value:"center"},{label:(0,ed.jsx)(tt.AlignRightOutlined,{}),value:"right"}]})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:"px"===c?null==e_||null==(r=e_[e])?void 0:r.top:void 0,min:0,size:"small",prefix:"上",suffix:"px",onChange:t=>ec({[e]:{top:t}}),onFocus:()=>l("top"),onBlur:()=>l(null),disabled:"px"!==c,style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:"px"===_?null==e_||null==(i=e_[e])?void 0:i.left:void 0,min:0,size:"small",prefix:"左",suffix:"px",onChange:t=>ec({[e]:{left:t}}),onFocus:()=>l("left"),onBlur:()=>l(null),disabled:"px"!==_,style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:null==e_||null==(a=e_[e])?void 0:a.bottom,min:0,size:"small",prefix:"下",suffix:"px",onChange:t=>ec({[e]:{bottom:t}}),onFocus:()=>l("bottom"),onBlur:()=>l(null),style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:null==e_||null==(o=e_[e])?void 0:o.right,min:0,size:"small",prefix:"右",suffix:"px",onChange:t=>ec({[e]:{right:t}}),onFocus:()=>l("right"),onBlur:()=>l(null),style:{width:"100%"}})})]})]})};return(0,ed.jsxs)(ti.Form,{children:[(0,ed.jsx)(ti.Collapse,{size:"small",defaultActiveKey:["base","custom"],items:[{key:"base",label:"基础配置",collapsible:"icon",children:(0,ed.jsx)(ti.Form.Item,{label:"高度",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.InputNumber,{value:ee.height,size:"small",min:10,max:1e3,suffix:"px",onChange:e=>et&&et({...ee,height:e})})})},{key:"title",label:"标题",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==e_||null==(t=e_.title)?void 0:t.show)||e_.title.show,onChange:e=>ec({title:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsxs)(ti.Space.Compact,{size:"small",style:{width:"100%"},children:[(0,ed.jsx)(ti.Input,{size:"small",value:(null==e_||null==(n=e_.title)?void 0:n.text)||"",prefix:(0,ed.jsx)("label",{style:{color:"var(--ant-color-text-description)",userSelect:"none",fontSize:10},children:"主"}),placeholder:"请输入标题",onChange:e=>ec({title:{text:e.target.value}})}),(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(i=e_.title)||null==(r=i.textStyle)?void 0:r.fontSize,min:10,max:100,prefix:(0,ed.jsx)(tt.FontSizeOutlined,{style:{color:"var(--ant-color-text-description)"}}),suffix:"px",onChange:e=>ec({title:{textStyle:{fontSize:e}}}),style:{width:200}}),(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==e_||null==(o=e_.title)||null==(a=o.textStyle)?void 0:a.color,onChange:e=>ec({title:{textStyle:{color:e.toHexString()}}})})]}),(0,ed.jsxs)(ti.Space.Compact,{size:"small",style:{width:"100%"},children:[(0,ed.jsx)(ti.Input,{size:"small",value:(null==e_||null==(s=e_.title)?void 0:s.subtext)||"",prefix:(0,ed.jsx)("label",{style:{color:"var(--ant-color-text-description)",userSelect:"none",fontSize:10},children:"副"}),placeholder:"请输入副标题",onChange:e=>ec({title:{subtext:e.target.value}})}),(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(c=e_.title)||null==(l=c.subtextStyle)?void 0:l.fontSize,min:10,max:100,prefix:(0,ed.jsx)(tt.FontSizeOutlined,{style:{color:"var(--ant-color-text-description)"}}),suffix:"px",onChange:e=>ec({title:{subtextStyle:{fontSize:e}}}),style:{width:200}}),(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==e_||null==(u=e_.title)||null==(_=u.subtextStyle)?void 0:_.color,onChange:e=>ec({title:{subtextStyle:{color:e.toHexString()}}})})]}),eu("title")]})},{key:"legend",label:"图例",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==e_||null==(d=e_.legend)?void 0:d.show)||e_.legend.show,onChange:e=>ec({legend:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsx)(ti.Form.Item,{label:"图例方向",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(p=e_.legend)?void 0:p.orient)||"horizontal",onChange:e=>ec({legend:{orient:e.target.value}}),options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"图例标记和文本的对齐",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(f=e_.legend)?void 0:f.align)||"auto",onChange:e=>ec({legend:{align:e.target.value}}),options:[{label:"自动",value:"auto"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"项间隔",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(m=e_.legend)?void 0:m.itemGap,min:0,suffix:"px",onChange:e=>ec({legend:{itemGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"图形宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(h=e_.legend)?void 0:h.itemWidth,min:0,suffix:"px",onChange:e=>ec({legend:{itemWidth:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"图形高度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(g=e_.legend)?void 0:g.itemHeight,min:0,suffix:"px",onChange:e=>ec({legend:{itemHeight:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"内容格式器",layout:"vertical",tooltip:"使用字符串模板,模板变量为图例名称 {name}",children:(0,ed.jsx)(ti.Input.TextArea,{value:null==e_||null==(y=e_.legend)?void 0:y.formatter,onChange:e=>ec({legend:{formatter:e.target.value}})})}),eu("legend")]})},{key:"grid",label:"直角坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:!!e_.grid.show,onChange:e=>ec({grid:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsx)(ti.Form.Item,{label:"外边界策略",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(x=e_.grid)?void 0:x.outerBoundsMode)||"auto",onChange:e=>ec({grid:{outerBoundsMode:e.target.value}}),options:[{label:"auto",value:"auto"},{label:"none",value:"none"},{label:"same",value:"same"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"背景色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:(null==e_||null==(b=e_.grid)?void 0:b.backgroundColor)||"auto",onChange:e=>ec({grid:{backgroundColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:(null==e_||null==(S=e_.grid)?void 0:S.borderColor)||"auto",onChange:e=>ec({grid:{borderColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(k=e_.grid)?void 0:k.borderWidth,min:0,suffix:"px",onChange:e=>ec({grid:{borderWidth:e}})})}),eu("grid")]})},{key:"xAxis",label:"X坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==e_||null==(T=e_.xAxis)?void 0:T.show)||e_.xAxis.show,onChange:e=>ec({xAxis:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名称",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Input,{size:"small",value:(null==e_||null==(C=e_.xAxis)?void 0:C.name)||"",onChange:e=>ec({xAxis:{name:e.target.value}})})}),(0,ed.jsx)(ti.Form.Item,{label:"位置",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(w=e_.xAxis)?void 0:w.position)||"auto",onChange:e=>ec({xAxis:{position:e.target.value}}),options:[{label:"top",value:"top"},{label:"bottom",value:"bottom"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",labelCol:{span:4},wrapperCol:{span:20},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(D=e_.xAxis)?void 0:D.type)||"category",onChange:e=>ec({xAxis:{type:e.target.value}}),options:[{label:"类目轴",value:"category"},{label:"数值轴",value:"value"},{label:"时间轴",value:"time"},{label:"对数轴",value:"log"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"偏移量",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(N=e_.xAxis)?void 0:N.offset)||0,min:0,suffix:"px",onChange:e=>ec({xAxis:{offset:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"名称与轴线之间的距离",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(F=e_.xAxis)?void 0:F.nameGap)||0,min:0,suffix:"px",onChange:e=>ec({xAxis:{nameGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名字角度值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(P=e_.xAxis)?void 0:P.nameRotate)||0,min:0,onChange:e=>ec({xAxis:{nameRotate:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最小值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(E=e_.xAxis)?void 0:E.min)||0,min:0,onChange:e=>ec({xAxis:{min:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最大值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(A=e_.xAxis)?void 0:A.max)||0,min:0,onChange:e=>ec({xAxis:{max:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"分割段数",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(I=e_.xAxis)?void 0:I.splitNumber)||5,min:0,onChange:e=>ec({xAxis:{splitNumber:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"起始值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(O=e_.xAxis)?void 0:O.startValue,min:0,onChange:e=>ec({xAxis:{startValue:e}})})})]})},{key:"yAxis",label:"Y坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==e_||null==(j=e_.yAxis)?void 0:j.show)||e_.yAxis.show,onChange:e=>ec({yAxis:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名称",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Input,{size:"small",value:(null==e_||null==(M=e_.yAxis)?void 0:M.name)||"",onChange:e=>ec({yAxis:{name:e.target.value}})})}),(0,ed.jsx)(ti.Form.Item,{label:"位置",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(L=e_.yAxis)?void 0:L.position)||"auto",onChange:e=>ec({yAxis:{position:e.target.value}}),options:[{label:"left",value:"left"},{label:"right",value:"right"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",labelCol:{span:4},wrapperCol:{span:20},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(R=e_.yAxis)?void 0:R.type)||"category",onChange:e=>ec({yAxis:{type:e.target.value}}),options:[{label:"类目轴",value:"category"},{label:"数值轴",value:"value"},{label:"时间轴",value:"time"},{label:"对数轴",value:"log"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"偏移量",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(B=e_.yAxis)?void 0:B.offset)||0,min:0,suffix:"px",onChange:e=>ec({yAxis:{offset:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"名称与轴线之间的距离",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(z=e_.yAxis)?void 0:z.nameGap)||0,min:0,suffix:"px",onChange:e=>ec({yAxis:{nameGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名字角度值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(J=e_.yAxis)?void 0:J.nameRotate)||0,min:0,onChange:e=>ec({yAxis:{nameRotate:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最小值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(q=e_.yAxis)?void 0:q.min)||0,min:0,onChange:e=>ec({yAxis:{min:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最大值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(U=e_.yAxis)?void 0:U.max)||0,min:0,onChange:e=>ec({yAxis:{max:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"分割段数",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(V=e_.yAxis)?void 0:V.splitNumber)||5,min:0,onChange:e=>ec({yAxis:{splitNumber:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"起始值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==e_||null==(W=e_.yAxis)?void 0:W.startValue,min:0,onChange:e=>ec({yAxis:{startValue:e}})})})]})},{key:"tooltip",label:"提示框",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==e_||null==(H=e_.tooltip)?void 0:H.show)||e_.tooltip.show,onChange:e=>ec({tooltip:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"触发类型",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==($=e_.tooltip)?void 0:$.trigger)||"item",onChange:e=>ec({tooltip:{trigger:e.target.value}}),options:[{label:"item",value:"item"},{label:"axis",value:"axis"},{label:"none",value:"none"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"触发条件",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==e_||null==(K=e_.tooltip)?void 0:K.triggerOn)||"item",onChange:e=>ec({tooltip:{triggerOn:e.target.value}}),options:[{label:"移动",value:"mousemove"},{label:"点击",value:"click"},{label:"移动或点击",value:"mousemove|click"},{label:"无",value:"none"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"背景颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==e_||null==(G=e_.tooltip)?void 0:G.backgroundColor,onChange:e=>ec({tooltip:{backgroundColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==e_||null==(X=e_.tooltip)?void 0:X.borderColor,onChange:e=>ec({tooltip:{borderColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(Y=e_.tooltip)?void 0:Y.borderWidth)||0,min:0,suffix:"px",onChange:e=>ec({tooltip:{borderWidth:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"浮层内边距",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==e_||null==(Q=e_.tooltip)?void 0:Q.padding)||5,min:0,suffix:"px",onChange:e=>ec({tooltip:{padding:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"内容格式器",layout:"vertical",tooltip:(0,ed.jsxs)("div",{children:[`模板变量有 {a}, {b},{c},{d},{e},分别表示系列名,数据名,数据值等。 在 trigger 为 'axis' 的时候,会有多个系列的数据,此时可以通过 {a0}, {a1}, {a2} 这种后面加索引的方式表示系列的索引。 不同图表类型下的 {a},{b},{c},{d} 含义不一样。 其中变量{a}, {b}, {c}, {d}在不同图表类型下代表数据含义为:`,(0,ed.jsxs)("ul",{children:[(0,ed.jsx)("li",{children:`折线(区域)图、柱状(条形)图、K线图 : {a}(系列名称),{b}(类目值),{c}(数值), {d}(无)`}),(0,ed.jsx)("li",{children:`散点图(气泡)图 : {a}(系列名称),{b}(数据名称),{c}(数值数组), {d}(无)`}),(0,ed.jsx)("li",{children:`地图 : {a}(系列名称),{b}(区域名称),{c}(合并数值), {d}(无)`}),(0,ed.jsx)("li",{children:`饼图、仪表盘、漏斗图: {a}(系列名称),{b}(数据项名称),{c}(数值), {d}(百分比)`})]})]}),children:(0,ed.jsx)(ti.Input.TextArea,{value:null==e_||null==(Z=e_.tooltip)?void 0:Z.formatter,onChange:e=>ec({tooltip:{formatter:e.target.value}})})})]})},{key:"custom",label:"自定义配置",collapsible:"icon",children:(0,ed.jsx)(ti.Form.Item,{layout:"vertical",label:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)(ti.Space,{children:["Echarts 渲染脚本"," ",(0,ed.jsx)(ti.Tooltip,{title:(0,ed.jsxs)(ed.Fragment,{children:["模板语法参考",(0,ed.jsxs)("ul",{style:{padding:0,listStyle:"none"},children:[(0,ed.jsxs)("li",{children:["变量调用:",`{{变量名}}`]}),(0,ed.jsxs)("li",{children:["环境变量:",`{{$e.变量名}}`]}),(0,ed.jsxs)("li",{children:["全局变量:",`{{$g.变量名}}`]}),(0,ed.jsxs)("li",{children:["函数参数:","{{data}}"]})]})]}),children:(0,ed.jsx)(tt.InfoCircleOutlined,{})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsxs)("a",{onClick:()=>es(!0),children:[(0,ed.jsx)(tt.FullscreenOutlined,{})," 全屏"]}),(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=ei.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tr,{type:"icon-formate"})," 格式化"]})]})]}),className:"ant-form-item-label-space",children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:["function getOptions(data) ","{"," "]}),(0,ed.jsx)(tl(),{onMount:e=>{ei.current={editor:e}},height:"400px",defaultLanguage:"javascript",value:ee.script,onChange:e=>el(e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:"}"})]})})}],style:{marginBottom:14}}),(0,ed.jsx)(ti.Drawer,{title:(0,ed.jsxs)(ti.Flex,{justify:"space-between",align:"center",children:["Echarts 渲染脚本",(0,ed.jsx)(ti.Space,{children:(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=ea.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tr,{type:"icon-formate"})," 格式化"]},"format")})]}),open:eo,width:"100%",onClose:()=>es(!1),styles:{body:{padding:0}},children:(0,ed.jsxs)("div",{style:{textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:["function getOptions(data) ","{"," "]}),(0,ed.jsx)(tl(),{onMount:e=>{ea.current={editor:e}},height:"calc(100vh - 100px)",defaultLanguage:"javascript",value:ee.script,onChange:e=>el(e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:"}"})]})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'[{"name":"Mon","value":150},{"name":"Tue","value":230},{"name":"Wed","value":224},{"name":"Thu","value":218},{"name":"Fri","value":135},{"name":"Sat","value":147},{"name":"Sun","value":260}]'},props:{script:`
|
|
1693
|
+
${et.script}
|
|
1694
|
+
`)(ng,console,Math,Date,Array,Object,String,Number,Boolean,er,ei.global,{})}catch(e){return null}}},[et.script]),eh=e=>{var t,n,r,i,a,o;let[s,l]=(0,ep.useState)(),c=(0,ep.useMemo)(()=>{var t;let n=null==em||null==(t=em[e])?void 0:t.top;return"number"==typeof n?"px":["auto","top","bottom","middle"].includes(n)?n:"px"},[null==em||null==(t=em[e])?void 0:t.top]),_=(0,ep.useMemo)(()=>{var t;let n=null==em||null==(t=em[e])?void 0:t.left;return"number"==typeof n?"px":["auto","left","right","center"].includes(n)?n:"px"},[null==em||null==(n=em[e])?void 0:n.left]);return(0,ed.jsxs)(ti.Flex,{justify:"space-between",style:{width:"100%"},gap:12,children:[(0,ed.jsx)(ms,{width:106,height:106,gap:20,active:s,children:"POS"}),(0,ed.jsxs)(ti.Row,{gutter:[4,4],style:{width:180},children:[(0,ed.jsx)(ti.Col,{span:24,children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",block:!0,value:c,onChange:t=>{var n;["auto","top","bottom","middle"].includes(n=t.target.value)?ef({[e]:{top:n}}):"px"===n&&ef({[e]:{top:void 0}})},options:[{label:"Auto",value:"auto"},{label:"PX",value:"px"},{label:(0,ed.jsx)(tt.VerticalAlignTopOutlined,{}),value:"top"},{label:(0,ed.jsx)(tt.VerticalAlignMiddleOutlined,{}),value:"middle"},{label:(0,ed.jsx)(tt.VerticalAlignBottomOutlined,{}),value:"bottom"}]})}),(0,ed.jsx)(ti.Col,{span:24,children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",block:!0,value:_,onChange:t=>{var n;["auto","left","right","center"].includes(n=t.target.value)?ef({[e]:{left:n}}):"px"===n&&ef({[e]:{left:void 0}})},options:[{label:"Auto",value:"auto"},{label:"PX",value:"px"},{label:(0,ed.jsx)(tt.AlignLeftOutlined,{}),value:"left"},{label:(0,ed.jsx)(tt.AlignCenterOutlined,{}),value:"center"},{label:(0,ed.jsx)(tt.AlignRightOutlined,{}),value:"right"}]})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:"px"===c?null==em||null==(r=em[e])?void 0:r.top:void 0,min:0,size:"small",prefix:"上",suffix:"px",onChange:t=>ef({[e]:{top:t}}),onFocus:()=>l("top"),onBlur:()=>l(null),disabled:"px"!==c,style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:"px"===_?null==em||null==(i=em[e])?void 0:i.left:void 0,min:0,size:"small",prefix:"左",suffix:"px",onChange:t=>ef({[e]:{left:t}}),onFocus:()=>l("left"),onBlur:()=>l(null),disabled:"px"!==_,style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:null==em||null==(a=em[e])?void 0:a.bottom,min:0,size:"small",prefix:"下",suffix:"px",onChange:t=>ef({[e]:{bottom:t}}),onFocus:()=>l("bottom"),onBlur:()=>l(null),style:{width:"100%"}})}),(0,ed.jsx)(ti.Col,{span:12,children:(0,ed.jsx)(ti.InputNumber,{value:null==em||null==(o=em[e])?void 0:o.right,min:0,size:"small",prefix:"右",suffix:"px",onChange:t=>ef({[e]:{right:t}}),onFocus:()=>l("right"),onBlur:()=>l(null),style:{width:"100%"}})})]})]})};return(0,ed.jsxs)(ti.Form,{children:[(0,ed.jsx)(ti.Collapse,{size:"small",defaultActiveKey:["base","custom"],items:[{key:"base",label:"基础配置",collapsible:"icon",children:(0,ed.jsx)(ti.Form.Item,{label:"高度",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.InputNumber,{value:et.height,size:"small",min:10,max:1e3,suffix:"px",onChange:e=>en&&en({...et,height:e})})})},{key:"title",label:"标题",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==em||null==(t=em.title)?void 0:t.show)||em.title.show,onChange:e=>ef({title:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsxs)(ti.Space.Compact,{size:"small",style:{width:"100%"},children:[(0,ed.jsx)(ti.Input,{size:"small",value:(null==em||null==(n=em.title)?void 0:n.text)||"",prefix:(0,ed.jsx)("label",{style:{color:"var(--ant-color-text-description)",userSelect:"none",fontSize:10},children:"主"}),placeholder:"请输入标题",onChange:e=>ef({title:{text:e.target.value}})}),(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(i=em.title)||null==(r=i.textStyle)?void 0:r.fontSize,min:10,max:100,prefix:(0,ed.jsx)(tt.FontSizeOutlined,{style:{color:"var(--ant-color-text-description)"}}),suffix:"px",onChange:e=>ef({title:{textStyle:{fontSize:e}}}),style:{width:200}}),(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==em||null==(o=em.title)||null==(a=o.textStyle)?void 0:a.color,onChange:e=>ef({title:{textStyle:{color:e.toHexString()}}})})]}),(0,ed.jsxs)(ti.Space.Compact,{size:"small",style:{width:"100%"},children:[(0,ed.jsx)(ti.Input,{size:"small",value:(null==em||null==(s=em.title)?void 0:s.subtext)||"",prefix:(0,ed.jsx)("label",{style:{color:"var(--ant-color-text-description)",userSelect:"none",fontSize:10},children:"副"}),placeholder:"请输入副标题",onChange:e=>ef({title:{subtext:e.target.value}})}),(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(c=em.title)||null==(l=c.subtextStyle)?void 0:l.fontSize,min:10,max:100,prefix:(0,ed.jsx)(tt.FontSizeOutlined,{style:{color:"var(--ant-color-text-description)"}}),suffix:"px",onChange:e=>ef({title:{subtextStyle:{fontSize:e}}}),style:{width:200}}),(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==em||null==(u=em.title)||null==(_=u.subtextStyle)?void 0:_.color,onChange:e=>ef({title:{subtextStyle:{color:e.toHexString()}}})})]}),eh("title")]})},{key:"legend",label:"图例",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==em||null==(d=em.legend)?void 0:d.show)||em.legend.show,onChange:e=>ef({legend:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsx)(ti.Form.Item,{label:"图例方向",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(p=em.legend)?void 0:p.orient)||"horizontal",onChange:e=>ef({legend:{orient:e.target.value}}),options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"图例标记和文本的对齐",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(f=em.legend)?void 0:f.align)||"auto",onChange:e=>ef({legend:{align:e.target.value}}),options:[{label:"自动",value:"auto"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"项间隔",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(m=em.legend)?void 0:m.itemGap,min:0,suffix:"px",onChange:e=>ef({legend:{itemGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"图形宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(h=em.legend)?void 0:h.itemWidth,min:0,suffix:"px",onChange:e=>ef({legend:{itemWidth:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"图形高度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(g=em.legend)?void 0:g.itemHeight,min:0,suffix:"px",onChange:e=>ef({legend:{itemHeight:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"内容格式器",layout:"vertical",tooltip:"使用字符串模板,模板变量为图例名称 {name}",children:(0,ed.jsx)(ti.Input.TextArea,{value:null==em||null==(y=em.legend)?void 0:y.formatter,onChange:e=>ef({legend:{formatter:e.target.value}})})}),eh("legend")]})},{key:"grid",label:"直角坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:!!(null==em||null==(x=em.grid)?void 0:x.show),onChange:e=>ef({grid:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,children:[(0,ed.jsx)(ti.Form.Item,{label:"外边界策略",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(b=em.grid)?void 0:b.outerBoundsMode)||"auto",onChange:e=>ef({grid:{outerBoundsMode:e.target.value}}),options:[{label:"auto",value:"auto"},{label:"none",value:"none"},{label:"same",value:"same"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"背景色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:(null==em||null==(S=em.grid)?void 0:S.backgroundColor)||"auto",onChange:e=>ef({grid:{backgroundColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:(null==em||null==(k=em.grid)?void 0:k.borderColor)||"auto",onChange:e=>ef({grid:{borderColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(T=em.grid)?void 0:T.borderWidth,min:0,suffix:"px",onChange:e=>ef({grid:{borderWidth:e}})})}),eh("grid")]})},{key:"xAxis",label:"X坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==em||null==(C=em.xAxis)?void 0:C.show)||em.xAxis.show,onChange:e=>ef({xAxis:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名称",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Input,{size:"small",value:(null==em||null==(w=em.xAxis)?void 0:w.name)||"",onChange:e=>ef({xAxis:{name:e.target.value}})})}),(0,ed.jsx)(ti.Form.Item,{label:"位置",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(D=em.xAxis)?void 0:D.position)||"auto",onChange:e=>ef({xAxis:{position:e.target.value}}),options:[{label:"top",value:"top"},{label:"bottom",value:"bottom"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",labelCol:{span:4},wrapperCol:{span:20},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(N=em.xAxis)?void 0:N.type)||"category",onChange:e=>ef({xAxis:{type:e.target.value}}),options:[{label:"类目轴",value:"category"},{label:"数值轴",value:"value"},{label:"时间轴",value:"time"},{label:"对数轴",value:"log"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"偏移量",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(F=em.xAxis)?void 0:F.offset)||0,min:0,suffix:"px",onChange:e=>ef({xAxis:{offset:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"名称与轴线之间的距离",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(P=em.xAxis)?void 0:P.nameGap)||0,min:0,suffix:"px",onChange:e=>ef({xAxis:{nameGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名字角度值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(E=em.xAxis)?void 0:E.nameRotate)||0,min:0,onChange:e=>ef({xAxis:{nameRotate:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最小值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(A=em.xAxis)?void 0:A.min)||0,min:0,onChange:e=>ef({xAxis:{min:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最大值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(I=em.xAxis)?void 0:I.max)||0,min:0,onChange:e=>ef({xAxis:{max:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"分割段数",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(O=em.xAxis)?void 0:O.splitNumber)||5,min:0,onChange:e=>ef({xAxis:{splitNumber:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"起始值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(j=em.xAxis)?void 0:j.startValue,min:0,onChange:e=>ef({xAxis:{startValue:e}})})})]})},{key:"yAxis",label:"Y坐标系",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==em||null==(M=em.yAxis)?void 0:M.show)||em.yAxis.show,onChange:e=>ef({yAxis:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名称",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.Input,{size:"small",value:(null==em||null==(L=em.yAxis)?void 0:L.name)||"",onChange:e=>ef({yAxis:{name:e.target.value}})})}),(0,ed.jsx)(ti.Form.Item,{label:"位置",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(R=em.yAxis)?void 0:R.position)||"auto",onChange:e=>ef({yAxis:{position:e.target.value}}),options:[{label:"left",value:"left"},{label:"right",value:"right"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"类型",labelCol:{span:4},wrapperCol:{span:20},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(B=em.yAxis)?void 0:B.type)||"category",onChange:e=>ef({yAxis:{type:e.target.value}}),options:[{label:"类目轴",value:"category"},{label:"数值轴",value:"value"},{label:"时间轴",value:"time"},{label:"对数轴",value:"log"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"偏移量",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(z=em.yAxis)?void 0:z.offset)||0,min:0,suffix:"px",onChange:e=>ef({yAxis:{offset:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"名称与轴线之间的距离",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(J=em.yAxis)?void 0:J.nameGap)||0,min:0,suffix:"px",onChange:e=>ef({yAxis:{nameGap:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"坐标轴名字角度值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(q=em.yAxis)?void 0:q.nameRotate)||0,min:0,onChange:e=>ef({yAxis:{nameRotate:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最小值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(U=em.yAxis)?void 0:U.min)||0,min:0,onChange:e=>ef({yAxis:{min:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"刻度最大值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(V=em.yAxis)?void 0:V.max)||0,min:0,onChange:e=>ef({yAxis:{max:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"分割段数",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(W=em.yAxis)?void 0:W.splitNumber)||5,min:0,onChange:e=>ef({yAxis:{splitNumber:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"起始值",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:null==em||null==(H=em.yAxis)?void 0:H.startValue,min:0,onChange:e=>ef({yAxis:{startValue:e}})})})]})},{key:"tooltip",label:"提示框",collapsible:"icon",extra:(0,ed.jsx)(ti.Switch,{size:"small",value:"boolean"!=typeof(null==em||null==($=em.tooltip)?void 0:$.show)||em.tooltip.show,onChange:e=>ef({tooltip:{show:e}})}),children:(0,ed.jsxs)(ti.Space,{vertical:!0,style:{width:"100%"},children:[(0,ed.jsx)(ti.Form.Item,{label:"触发类型",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(K=em.tooltip)?void 0:K.trigger)||"item",onChange:e=>ef({tooltip:{trigger:e.target.value}}),options:[{label:"item",value:"item"},{label:"axis",value:"axis"},{label:"none",value:"none"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"触发条件",labelCol:{span:6},wrapperCol:{span:18},children:(0,ed.jsx)(ti.Radio.Group,{size:"small",optionType:"button",buttonStyle:"solid",value:(null==em||null==(G=em.tooltip)?void 0:G.triggerOn)||"item",onChange:e=>ef({tooltip:{triggerOn:e.target.value}}),options:[{label:"移动",value:"mousemove"},{label:"点击",value:"click"},{label:"移动或点击",value:"mousemove|click"},{label:"无",value:"none"}]})}),(0,ed.jsx)(ti.Form.Item,{label:"背景颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==em||null==(X=em.tooltip)?void 0:X.backgroundColor,onChange:e=>ef({tooltip:{backgroundColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框颜色",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.ColorPicker,{size:"small",value:null==em||null==(Y=em.tooltip)?void 0:Y.borderColor,onChange:e=>ef({tooltip:{borderColor:e.toHexString()}})})}),(0,ed.jsx)(ti.Form.Item,{label:"边框宽度",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(Q=em.tooltip)?void 0:Q.borderWidth)||0,min:0,suffix:"px",onChange:e=>ef({tooltip:{borderWidth:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"浮层内边距",labelCol:{span:12},wrapperCol:{span:12},children:(0,ed.jsx)(ti.InputNumber,{size:"small",value:(null==em||null==(Z=em.tooltip)?void 0:Z.padding)||5,min:0,suffix:"px",onChange:e=>ef({tooltip:{padding:e}})})}),(0,ed.jsx)(ti.Form.Item,{label:"内容格式器",layout:"vertical",tooltip:(0,ed.jsxs)("div",{children:[`模板变量有 {a}, {b},{c},{d},{e},分别表示系列名,数据名,数据值等。 在 trigger 为 'axis' 的时候,会有多个系列的数据,此时可以通过 {a0}, {a1}, {a2} 这种后面加索引的方式表示系列的索引。 不同图表类型下的 {a},{b},{c},{d} 含义不一样。 其中变量{a}, {b}, {c}, {d}在不同图表类型下代表数据含义为:`,(0,ed.jsxs)("ul",{children:[(0,ed.jsx)("li",{children:`折线(区域)图、柱状(条形)图、K线图 : {a}(系列名称),{b}(类目值),{c}(数值), {d}(无)`}),(0,ed.jsx)("li",{children:`散点图(气泡)图 : {a}(系列名称),{b}(数据名称),{c}(数值数组), {d}(无)`}),(0,ed.jsx)("li",{children:`地图 : {a}(系列名称),{b}(区域名称),{c}(合并数值), {d}(无)`}),(0,ed.jsx)("li",{children:`饼图、仪表盘、漏斗图: {a}(系列名称),{b}(数据项名称),{c}(数值), {d}(百分比)`})]})]}),children:(0,ed.jsx)(ti.Input.TextArea,{value:null==em||null==(ee=em.tooltip)?void 0:ee.formatter,onChange:e=>ef({tooltip:{formatter:e.target.value}})})})]})},{key:"custom",label:"自定义配置",collapsible:"icon",children:(0,ed.jsx)(ti.Form.Item,{layout:"vertical",label:(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsxs)(ti.Space,{children:["Echarts 渲染脚本"," ",(0,ed.jsx)(ti.Tooltip,{title:(0,ed.jsxs)(ed.Fragment,{children:["模板语法参考",(0,ed.jsxs)("ul",{style:{padding:0,listStyle:"none"},children:[(0,ed.jsxs)("li",{children:["变量调用:",`{{变量名}}`]}),(0,ed.jsxs)("li",{children:["环境变量:",`{{$e.变量名}}`]}),(0,ed.jsxs)("li",{children:["全局变量:",`{{$g.变量名}}`]}),(0,ed.jsxs)("li",{children:["函数参数:","{{data}}"]})]})]}),children:(0,ed.jsx)(tt.InfoCircleOutlined,{})})]}),(0,ed.jsxs)(ti.Space,{children:[(0,ed.jsxs)("a",{onClick:()=>el(!0),children:[(0,ed.jsx)(tt.FullscreenOutlined,{})," 全屏"]}),(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=ea.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tr,{type:"icon-formate"})," 格式化"]})]})]}),className:"ant-form-item-label-space",children:(0,ed.jsxs)("div",{style:{border:"1px solid #d9d9d9",borderRadius:4,textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:["function getOptions(data) ","{"," "]}),(0,ed.jsx)(tl(),{onMount:e=>{ea.current={editor:e}},height:"400px",defaultLanguage:"javascript",value:et.script,onChange:e=>eu(e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:"}"})]})})}],style:{marginBottom:14}}),(0,ed.jsx)(ti.Drawer,{title:(0,ed.jsxs)(ti.Flex,{justify:"space-between",align:"center",children:["Echarts 渲染脚本",(0,ed.jsx)(ti.Space,{children:(0,ed.jsxs)("a",{onClick:()=>{var e,t;let n=null==(e=eo.current)?void 0:e.editor;null==n||null==(t=n.getAction("editor.action.formatDocument"))||t.run()},children:[(0,ed.jsx)(tr,{type:"icon-formate"})," 格式化"]},"format")})]}),open:es,width:"100%",onClose:()=>el(!1),styles:{body:{padding:0}},children:(0,ed.jsxs)("div",{style:{textAlign:"left"},children:[(0,ed.jsxs)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:["function getOptions(data) ","{"," "]}),(0,ed.jsx)(tl(),{onMount:e=>{eo.current={editor:e}},height:"calc(100vh - 100px)",defaultLanguage:"javascript",value:et.script,onChange:e=>eu(e||""),options:{minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2}}),(0,ed.jsx)("div",{style:{color:"#0000ff",fontSize:14,padding:"0 50px"},children:"}"})]})})]})},defaultOptions:{datasource:{source:"custom",datasourceId:null,scriptId:null,custom:'[{"name":"Mon","value":150},{"name":"Tue","value":230},{"name":"Wed","value":224},{"name":"Thu","value":218},{"name":"Fri","value":135},{"name":"Sat","value":147},{"name":"Sun","value":260}]'},props:{script:`
|
|
1671
1695
|
return {
|
|
1672
1696
|
xAxis: { type: 'category', data: data.map(i => i.name) },
|
|
1673
1697
|
yAxis: { type: 'value' },
|