4.6cqwy-vendor-189e896f18433568fdbd.js 1.9 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. try{let $t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},wt=new $t.Error().stack;wt&&($t._sentryDebugIds=$t._sentryDebugIds||{},$t._sentryDebugIds[wt]="e475320a-abe3-44bc-9b9a-dd0672134fc1",$t._sentryDebugIdIdentifier="sentry-dbid-e475320a-abe3-44bc-9b9a-dd0672134fc1")}catch($t){}{let $t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};$t.SENTRY_RELEASE={id:"20.13.2"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[788],{56656:()=>{"use strict";var $t={}},83650:($t,wt,w)=>{"use strict";w.d(wt,{FW:()=>rt,OL:()=>m,XD:()=>W,bF:()=>O,bj:()=>Y,cS:()=>it,fA:()=>A,fu:()=>j,hC:()=>U,ix:()=>M,l:()=>b,o1:()=>st,tt:()=>T});var Z=w(33348),I=w(17645);const O=w.j!=183?["space_viewer","space_member","space_manager"]:null,b=ht=>ht?[]:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",{className:"strong",text:" 400-659-9879 "},"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"],M=ht=>ht?[]:["\u987E\u95EE\u5DE5\u4F5C\u65F6\u95F4\uFF1A\u5468\u4E00\u81F3\u5468\u4E94 9:00-18:00"],W=ht=>{let{planName:yt,maxSharingCount:ct,locale:gt,isMockitt:bt}=ht;const Tt=I.T.LimitationNotice.limit_proto_share_max_num[gt].replace("{userOrOrgPlayName}",yt).replace("{maxSharingCount}",ct);return bt?Tt.slice(0,Tt.length-1)+".":Tt},st=ht=>{let{planName:yt,maxProjectVersionCount:ct,locale:gt,isMockitt:bt}=ht;const Tt=I.T.LimitationNotice.limit_proto_version_max_number[gt].replace(/{planName}/,yt).replace(/{maxProjectVersionCount}/,ct);return bt?Tt.slice(0,Tt.length-1)+".":Tt};let rt=function(ht){return ht.Workspace="workspace",ht.Proto="proto",ht.Dashboard="dashboard",ht.Flow="flow",ht.Mind="mind",ht.Bomx="bomx",ht}({}),m=function(ht){return ht[ht.Free=Z.L1.Free]="Free",ht[ht.Trial=Z.pZ.Trial]="Trial",ht[ht.Solo=Z.L1.Solo]="Solo",ht[ht.Lifetime=Z.L1.Lifetime]="Lifetime",ht[ht.PremiumLifetime=Z.L1.PremiumLifetime]="PremiumLifetime",ht.SoloOrLifetime="solo_or_lifetime",ht[ht.OrgExpire=Z.Sj.OrgExpired]="OrgExpire",ht[ht.OrgFree=Z.Sj.OrgFree]="OrgFree",ht.OrgTrial="org_trial",ht[ht.OrgLite=Z.Sj.OrgLite]="OrgLite",ht[ht.OrgFull=Z.Sj.OrgFull]="OrgFull",ht.OrgLiteOrFulltime="org_lite_or_full",ht.Private="private",ht}({}),U=function(ht){return ht.MaxVipTemplateCount="MaxVipTemplateCount",ht.MaxSharingCount="MaxSharingCount",ht.OrgMaxVersionCount="OrgMaxVersionCount",ht.OrgMaxTemplateCount="OrgMaxTemplateCount",ht.OrgMaxSpaceCount="OrgMaxSpaceCount",ht.ProjectHandoverNoPermission="ProjectHandoverNoPermission",ht.ProjectHandoverWhenDemotingNoPermission="ProjectHandoverWhenDemotingNoPermission",ht.OrgMaxPrototypePageCount="OrgMaxPrototypePageCount",ht.OrgMaxPrototypeWidgetCount="OrgMaxPrototypeWidgetCount",ht.OrgMaxProto2PageCount="OrgMaxProto2PageCount",ht.OrgMaxProto2CanvasCount="OrgMaxProto2CanvasCount",ht.OrgMaxProto2WidgetCount="OrgMaxProto2WidgetCount",ht.SoloMaxPrototypePageCount="SoloMaxPrototypePageCount",ht.SoloMaxPrototypeWidgetCount="SoloMaxPrototypeWidgetCount",ht.SoloMaxProto2PageCount="SoloMaxProto2PageCount",ht.SoloMaxProto2CanvasCount="SoloMaxProto2CanvasCount",ht.SoloMaxProto2WidgetCount="SoloMaxProto2WidgetCount",ht.OrgMaxPicSize="OrgMaxPicSize",ht.SoloMaxPicSize="SoloMaxPicSize",ht.OrgMaxProjectCount="OrgMaxProjectCount",ht.SoloMaxProjectCount="SoloMaxProjectCount",ht.SoloToOrgMemberFeature="SoloToOrgMemberFeature",ht.SoloToOrgDesignFeature="SoloToOrgDesignFeature",ht.SoloToOrgVersionFeature="SoloToOrgVersionFeature",ht.ProjectVersionFromCount="ProjectVersionFromCount",ht.ProjectVersionFromTime="ProjectVersionFromTime",ht.MaxFlowPageCount="MaxFlowPageCount",ht.MaxMindPageCount="MaxMindPageCount",ht.BomxSoloMaxProjectCount="BomxSoloMaxProjectCount",ht.BomxOrgMaxProjectCount="BomxOrgMaxProjectCount",ht.BomxOrgMaxProjectSize="BomxOrgMaxProjectSize",ht.BomxSoloMaxProjectSize="BomxSoloMaxProjectSize",ht.BomxOrgMaxPicSize="BomxOrgMaxPicSize",ht.BomxSoloMaxPicSize="BomxSoloMaxPicSize",ht.BomxSoloMaxFileSize="BomxSoloMaxFileSize",ht.BomxOrgMaxFileSize="BomxOrgMaxFileSize",ht.BomxSoloMaxVersionCount="BomxSoloMaxVersionCount",ht.BomxOrgMaxVersionCount="BomxOrgMaxVersionCount",ht.BomxSoloMaxWidgetCount="BomxSoloMaxWidgetCount",ht.BomxOrgMaxWidgetCount="BomxOrgMaxWidgetCount",ht}({}),A=function(ht){return ht.Teamwork="\u56E2\u961F\u534F\u4F5C",ht.MemberManage="\u6210\u5458\u7BA1\u7406",ht.InterestDuration="\u6743\u76CA\u65F6\u957F",ht.ProjectVersionsActiveCount="\u624B\u52A8\u521B\u5EFA\u7248\u672C\u6570\u91CF",ht.ProjectVersionsAutoCount="\u81EA\u52A8\u521B\u5EFA\u7248\u672C\u6570\u91CF",ht.ProjectVersionsCount="\u6587\u4EF6\u7248\u672C\u6570\u91CF",ht.OrgLibraryTemplatesCount="\u4F01\u4E1A\u6A21\u677F\u5E93",ht.ImgCapacity="\u56FE\u7247\u5BB9\u91CF",ht.ExportFile="\u6587\u4EF6\u5BFC\u51FA",ht.ProjectShareLinksCount="\u81EA\u5B9A\u4E49\u5206\u4EAB\u94FE\u63A5\u6570\u91CF",ht.ProjectsCount="\u6587\u4EF6\u6570",ht.CanvasOrPagesCount="\u5355\u4E2A\u539F\u578B\u9875\u9762/\u753B\u5E03\u6570",ht.WidgetCount="\u5143\u7D20\u6570\u91CF",ht.MktTemplatesCount="VIP\u4E13\u4EAB\u7D20\u6750",ht.OrgSpacesCount="\u56E2\u961F\u7A7A\u95F4\u6570",ht.OrgHandover="\u79BB\u804C\u6570\u636E\u79FB\u4EA4",ht.OrgDemotionHandover="\u6570\u636E\u79FB\u4EA4",ht.FlowPagesCount="\u5355\u4E2A\u6D41\u7A0B\u56FE\u9875\u9762\u6570",ht.MindPagesCount="\u5355\u4E2A\u601D\u7EF4\u5BFC\u56FE\u9875\u9762\u6570",ht.SoloAllInterest="\u4E2A\u4EBA\u7248\u5168\u90E8\u6743\u76CA",ht.UnifiedAuthentication="\u7EDF\u4E00\u8EAB\u4EFD\u8BA4\u8BC1",ht.LocalPrivateDev="\u672C\u5730\u79C1\u6709\u5316\u90E8\u7F72",ht.DesignSystem="\u8BBE\u8BA1\u7CFB\u7EDF",ht.BomxProjectCount="\u767D\u677F\u6587\u4EF6\u6570",ht.BomxWidgetCount="\u56FE\u5143\u6570\u91CF",ht.BomxFileSize="\u5355\u4E2A\u767D\u677F\u6587\u4EF6\u5BB9\u91CF",ht.BomxUploadFileSize="\u5BFC\u5165\u5355\u4E2A\u6587\u4EF6\u5BB9\u91CF",ht.BomxUploadImgSize="\u5BFC\u5165\u5355\u4E2A\u56FE\u7247\u5BB9\u91CF",ht}({});const j={[U.MaxVipTemplateCount]:A.MktTemplatesCount,[U.MaxSharingCount]:A.ProjectShareLinksCount,[U.OrgMaxVersionCount]:A.ProjectVersionsCount,[U.OrgMaxTemplateCount]:A.OrgLibraryTemplatesCount,[U.OrgMaxSpaceCount]:A.OrgSpacesCount,[U.ProjectHandoverNoPermission]:A.OrgHandover,[U.ProjectHandoverWhenDemotingNoPermission]:A.OrgDemotionHandover,[U.OrgMaxPrototypePageCount]:A.CanvasOrPagesCount,[U.OrgMaxPrototypeWidgetCount]:A.CanvasOrPagesCount,[U.OrgMaxProto2PageCount]:A.CanvasOrPagesCount,[U.OrgMaxProto2CanvasCount]:A.CanvasOrPagesCount,[U.OrgMaxProto2WidgetCount]:A.CanvasOrPagesCount,[U.SoloMaxPrototypePageCount]:A.CanvasOrPagesCount,[U.SoloMaxPrototypeWidgetCount]:A.CanvasOrPagesCount,[U.SoloMaxProto2PageCount]:A.CanvasOrPagesCount,[U.SoloMaxProto2CanvasCount]:A.CanvasOrPagesCount,[U.SoloMaxProto2WidgetCount]:A.CanvasOrPagesCount,[U.OrgMaxPicSize]:A.ImgCapacity,[U.SoloMaxPicSize]:A.ImgCapacity,[U.SoloMaxProjectCount]:A.ProjectsCount,[U.OrgMaxProjectCount]:A.ProjectsCount,[U.SoloToOrgMemberFeature]:A.MemberManage,[U.SoloToOrgDesignFeature]:A.DesignSystem,[U.ProjectVersionFromCount]:A.ProjectVersionsActiveCount,[U.ProjectVersionFromTime]:A.ProjectVersionsActiveCount,[U.SoloToOrgVersionFeature]:A.ProjectVersionsCount,[U.MaxFlowPageCount]:A.FlowPagesCount,[U.MaxMindPageCount]:A.MindPagesCount,[U.BomxSoloMaxProjectCount]:A.BomxProjectCount,[U.BomxOrgMaxProjectCount]:A.BomxProjectCount,[U.BomxOrgMaxPicSize]:A.BomxUploadImgSize,[U.BomxSoloMaxPicSize]:A.BomxUploadImgSize,[U.BomxOrgMaxFileSize]:A.BomxUploadFileSize,[U.BomxSoloMaxFileSize]:A.BomxUploadFileSize,[U.BomxOrgMaxProjectSize]:A.BomxFileSize,[U.BomxSoloMaxProjectSize]:A.BomxFileSize,[U.BomxOrgMaxVersionCount]:A.ProjectVersionsCount,[U.BomxSoloMaxVersionCount]:A.ProjectVersionsCount,[U.BomxOrgMaxWidgetCount]:A.BomxWidgetCount,[U.BomxSoloMaxWidgetCount]:A.BomxWidgetCount},it={[Z.L1.Free]:I.T.LimitationNotice.free_plan,[Z.pZ.Trial]:I.T.LimitationNotice.trial_plan,[Z.L1.Solo]:I.T.LimitationNotice.solo_plan,[Z.L1.Lifetime]:I.T.LimitationNotice.lifetime_plan,[Z.L1.PremiumLifetime]:I.T.LimitationNotice.premium_lifetime_plan,[m.SoloOrLifetime]:I.T.LimitationNotice.solo_or_lifetime_plan,[Z.Sj.OrgFree]:I.T.LimitationNotice.org_free_plan,[m.OrgTrial]:I.T.LimitationNotice.org_trial_plan,[Z.Sj.OrgLite]:I.T.LimitationNotice.org_lite_plan,[Z.Sj.OrgFull]:I.T.LimitationNotice.org_full_plan,[m.OrgLiteOrFulltime]:I.T.LimitationNotice.org_lite_or_full_plan,[m.Private]:I.T.LimitationNotice.private_plan,[Z.Sj.OrgExpired]:I.T.LimitationNotice.org_expire_plan},Y={[A.Teamwork]:I.T.LimitationNotice.teamwork,[A.MemberManage]:I.T.LimitationNotice.member_manage,[A.InterestDuration]:I.T.LimitationNotice.interest_duration,[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.project_versions_active_count,[A.ProjectVersionsAutoCount]:I.T.LimitationNotice.project_versions_auto_count,[A.ProjectVersionsCount]:I.T.LimitationNotice.project_versions_count,[A.OrgLibraryTemplatesCount]:I.T.LimitationNotice.org_library_templates_count,[A.ImgCapacity]:I.T.LimitationNotice.img_capacity,[A.ExportFile]:I.T.LimitationNotice.export_file,[A.ProjectShareLinksCount]:I.T.LimitationNotice.project_share_links_count,[A.ProjectsCount]:I.T.LimitationNotice.projects_count,[A.CanvasOrPagesCount]:I.T.LimitationNotice.canvas_or_pages_count,[A.MktTemplatesCount]:I.T.LimitationNotice.mkt_templates_count,[A.OrgSpacesCount]:I.T.LimitationNotice.org_spaces_count,[A.OrgHandover]:I.T.LimitationNotice.org_handover,[A.OrgDemotionHandover]:I.T.LimitationNotice.org_demotion_handover,[A.FlowPagesCount]:I.T.LimitationNotice.flow_pages_count,[A.MindPagesCount]:I.T.LimitationNotice.mind_pages_count,[A.SoloAllInterest]:I.T.LimitationNotice.solo_all_interest,[A.UnifiedAuthentication]:I.T.LimitationNotice.unified_authentication,[A.LocalPrivateDev]:I.T.LimitationNotice.local_private_dev,[A.DesignSystem]:I.T.LimitationNotice.design_system,[A.BomxProjectCount]:I.T.LimitationNotice.projects_count,[A.BomxFileSize]:I.T.LimitationNotice.bomx_project_file_size,[A.BomxUploadFileSize]:I.T.LimitationNotice.bomx_upload_file_size,[A.BomxUploadImgSize]:I.T.LimitationNotice.bomx_upload_img_size,[A.BomxWidgetCount]:I.T.LimitationNotice.bomx_widget_count},P=[A.InterestDuration,A.ProjectsCount,A.CanvasOrPagesCount,A.MktTemplatesCount,A.ImgCapacity,A.ExportFile,A.ProjectShareLinksCount,A.FlowPagesCount,A.MindPagesCount],R=[A.Teamwork,A.MemberManage,A.ProjectVersionsCount,A.OrgLibraryTemplatesCount,A.OrgLibraryTemplatesCount,A.DesignSystem],at=[A.InterestDuration,A.SoloAllInterest,A.ProjectsCount,A.CanvasOrPagesCount],$=[A.Teamwork,A.ProjectVersionsCount,A.MemberManage,A.OrgLibraryTemplatesCount,A.ImgCapacity,A.ProjectShareLinksCount,A.DesignSystem],K=[A.Teamwork,A.ProjectsCount,A.CanvasOrPagesCount,A.MktTemplatesCount,A.ProjectVersionsCount,A.ImgCapacity,A.ExportFile,A.OrgLibraryTemplatesCount,A.ProjectShareLinksCount,A.FlowPagesCount,A.MindPagesCount,A.OrgSpacesCount,A.OrgHandover,A.OrgDemotionHandover],H=[A.Teamwork,A.ProjectsCount,A.OrgSpacesCount,A.ProjectVersionsCount,A.OrgLibraryTemplatesCount,A.ProjectShareLinksCount,A.ImgCapacity,A.OrgHandover,A.OrgDemotionHandover,A.CanvasOrPagesCount],B=[A.UnifiedAuthentication,A.LocalPrivateDev,A.ProjectVersionsCount,A.ProjectShareLinksCount],X={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:P},V={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:R},L={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:at},ot={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:$},G={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:K},z={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.ProjectVersionsAutoCount],other:H},F={[U.ProjectVersionFromCount]:[A.ProjectVersionsActiveCount,A.UnifiedAuthentication,A.LocalPrivateDev],[U.ProjectVersionFromTime]:[A.ProjectVersionsActiveCount,A.UnifiedAuthentication,A.LocalPrivateDev],other:B},k={[m.Solo]:{[A.InterestDuration]:I.T.LimitationNotice.subject_to_actual_purchase,[A.ProjectsCount]:I.T.LimitationNotice.unit1_100,[A.CanvasOrPagesCount]:I.T.LimitationNotice.unit1_500,[A.MktTemplatesCount]:I.T.LimitationNotice.vip_mkt_10000_plus,[A.ImgCapacity]:I.T.LimitationNotice.unit2_5M,[A.ExportFile]:I.T.LimitationNotice.no_watermark_package,[A.ProjectShareLinksCount]:I.T.LimitationNotice.unit1_3,[A.FlowPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MindPagesCount]:I.T.LimitationNotice.no_limit_1,[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.no_support,[A.ProjectVersionsAutoCount]:I.T.LimitationNotice.days_30},[m.Lifetime]:{[A.InterestDuration]:I.T.LimitationNotice.lifetime,[A.ProjectsCount]:I.T.LimitationNotice.no_limit_1,[A.CanvasOrPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MktTemplatesCount]:I.T.LimitationNotice.vip_mkt_10000_plus,[A.ImgCapacity]:I.T.LimitationNotice.unit2_5M,[A.ExportFile]:I.T.LimitationNotice.no_watermark_package,[A.ProjectShareLinksCount]:I.T.LimitationNotice.unit1_3,[A.FlowPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MindPagesCount]:I.T.LimitationNotice.no_limit_1,[A.SoloAllInterest]:"\u2713",[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.no_support,[A.ProjectVersionsAutoCount]:I.T.LimitationNotice.days_180},[m.OrgLite]:{[A.Teamwork]:I.T.LimitationNotice.seats_1_to_10,[A.MemberManage]:"\u2713",[A.ProjectVersionsCount]:I.T.LimitationNotice.unit1_10,[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.unit1_10,[A.ProjectVersionsAutoCount]:I.T.LimitationNotice.days_30,[A.OrgLibraryTemplatesCount]:I.T.LimitationNotice.unit1_10,[A.ImgCapacity]:I.T.LimitationNotice.unit2_5M,[A.ExportFile]:I.T.LimitationNotice.no_watermark_package,[A.ProjectShareLinksCount]:I.T.LimitationNotice.unit1_10,[A.ProjectsCount]:I.T.LimitationNotice.unit1_100,[A.CanvasOrPagesCount]:I.T.LimitationNotice.unit1_3000,[A.MktTemplatesCount]:I.T.LimitationNotice.vip_mkt_10000_plus,[A.OrgSpacesCount]:I.T.LimitationNotice.unit1_3,[A.OrgHandover]:"-",[A.OrgDemotionHandover]:"-",[A.FlowPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MindPagesCount]:I.T.LimitationNotice.no_limit_1,[A.DesignSystem]:"\u2713"},[m.OrgFull]:{[A.Teamwork]:I.T.LimitationNotice.no_limit_2,[A.MemberManage]:"\u2713",[A.ProjectVersionsCount]:I.T.LimitationNotice.unit1_30,[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.unit1_30,[A.ProjectVersionsAutoCount]:I.T.LimitationNotice.days_180,[A.OrgLibraryTemplatesCount]:I.T.LimitationNotice.no_limit_1,[A.ImgCapacity]:I.T.LimitationNotice.unit2_10M,[A.ExportFile]:I.T.LimitationNotice.no_watermark_package,[A.ProjectShareLinksCount]:I.T.LimitationNotice.unit1_20,[A.ProjectsCount]:I.T.LimitationNotice.no_limit_1,[A.CanvasOrPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MktTemplatesCount]:I.T.LimitationNotice.vip_mkt_10000_plus,[A.OrgSpacesCount]:I.T.LimitationNotice.no_limit_1,[A.OrgHandover]:"\u2713",[A.OrgDemotionHandover]:"\u2713",[A.FlowPagesCount]:I.T.LimitationNotice.no_limit_1,[A.MindPagesCount]:I.T.LimitationNotice.no_limit_1,[A.DesignSystem]:"\u2713"},[m.Private]:{[A.UnifiedAuthentication]:"\u2713",[A.LocalPrivateDev]:"\u2713",[A.ProjectVersionsCount]:I.T.LimitationNotice.unit1_100,[A.ProjectVersionsActiveCount]:I.T.LimitationNotice.unit1_100,[A.ProjectShareLinksCount]:I.T.LimitationNotice.no_limit_1}},ut={[m.Free]:"general/version/user/free",[m.Trial]:"general/version/user/trial",[m.Solo]:"general/version/user/solo",[m.Lifetime]:"general/version/user/lifetime",[m.PremiumLifetime]:"general/version/user/lifetime",[m.OrgFree]:"general/version/org/free",[m.OrgLite]:"general/version/org/lite",[m.OrgFull]:"general/version/org/full",[m.OrgTrial]:"general/version/org/trial",[m.OrgExpire]:"general/version/org/expire"},E=[m.OrgLite,m.OrgFull],J=[m.Private],dt="default",pt=()=>({[U.ProjectVersionFromCount]:{[m.Free]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Trial]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Solo]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Lifetime]:()=>E,[m.PremiumLifetime]:()=>E,[m.OrgExpire]:()=>E,[m.OrgFree]:()=>E,[m.OrgLite]:()=>E,[m.OrgTrial]:()=>J,[m.OrgFull]:()=>J},[U.ProjectVersionFromTime]:{[m.Free]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Trial]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Solo]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Lifetime]:()=>E,[m.PremiumLifetime]:()=>E,[m.OrgExpire]:()=>E,[m.OrgFree]:()=>E,[m.OrgLite]:()=>E,[m.OrgTrial]:()=>J,[m.OrgFull]:()=>J},[dt]:{[m.Free]:ht=>ht?E:[m.Solo,m.Lifetime],[m.Trial]:ht=>ht?E:[m.Lifetime],[m.Solo]:ht=>ht?E:[m.Lifetime],[m.Lifetime]:()=>E,[m.PremiumLifetime]:()=>E,[m.OrgExpire]:()=>E,[m.OrgFree]:()=>E,[m.OrgLite]:()=>[m.OrgFull],[m.OrgTrial]:()=>J,[m.OrgFull]:()=>J}}),T=ht=>{let{currentPlan:yt,firstInterestType:ct,upgradeOrg:gt=!1,isMockitt:bt=!1,limitType:Tt}=ht;const Pt=vt=>vt.map(Lt=>({plan:Lt,planI18nObj:it[Lt],planIcon:ut[Lt]}));let It;const Dt=Tt===U.ProjectVersionFromCount||Tt===U.ProjectVersionFromTime;Dt?It=(vt,Lt)=>vt[Tt].map(Rt=>({type:Rt,typeI18nObj:Y[Rt],values:Lt.map(Bt=>k[Bt][Rt])})):It=(vt,Lt)=>[ct].concat(vt.other.filter(Rt=>Rt!==ct)).slice(0,3).map(Rt=>({type:Rt,typeI18nObj:Y[Rt],values:Lt.map(Bt=>k[Bt][Rt])}));const Q=pt()[Dt?Tt:dt][yt===Z.Sj.OrgExpired?m.OrgExpire:yt](gt);switch(yt){case m.Free:return gt?[Pt(Q),It(V,Q)]:[Pt(Q),It(X,Q)];case m.Trial:case m.Solo:return gt?[Pt(Q),It(ot,Q)]:[Pt(Q),It(L,Q)];case m.Lifetime:case m.PremiumLifetime:return[Pt(Q),It(ot,Q)];case m.OrgExpire:case m.OrgFree:return[Pt(Q),It(G,Q)];case m.OrgLite:return[Pt(Q),It(z,Q)];case m.OrgTrial:case m.OrgFull:return bt?[null,null]:[Pt(Q),It(F,Q)];default:return[null,null]}}},39870:($t,wt,w)=>{"use strict";w.d(wt,{$V:()=>j,Ix:()=>Y,Ok:()=>H,T2:()=>at,_y:()=>P,l0:()=>X,nF:()=>W,rD:()=>R,tv:()=>it,wJ:()=>A,xR:()=>$,xs:()=>K,ys:()=>B});var Z=w(83650);if(w.j!=183)var I=w(46795);var O=w(22046),b=w(33348),M=w(28149);const W=(V,L)=>{let ot;return function(){ot||(V(),ot=!0,setTimeout(()=>{ot=!1},L))}},st=2,rt=5,m=(V,L)=>Z.cS[L]?Z.cS[L][V]:"",U=function(V,L){L===void 0&&(L="zh-CN");let ot=""+M.TH.LimitationNotice.bomx_free_plan[L]+M.TH.LimitationNotice.rights[L];return V===b.Sj.OrgFull&&(ot=M.TH.LimitationNotice.bomx_org_full_plan[L]),V===b.Sj.OrgExpired&&(ot=M.TH.LimitationNotice.org_expire_plan[L]),V===b.Sj.OrgLite&&(ot=M.TH.LimitationNotice.bomx_org_lite_plan[L]),ot};function A(V,L){const ot=O.t.InitialOrg(L),{plan:G}=ot.planSdk.getOrgPlanWidthCurrentMember(),z=ot.planSdk.getOrgStatus(),F=G===b.Sj.OrgFull,k=m(V,G),ut=U(G,V);return{orgPlan:G,orgPlanType:z,orgPlanName:k,isOrgFull:F,planName:ut}}function j(V,L){const ot=O.t.InitialOrg(L),G=ot.planSdk.getOrgCurrentMemberBomxLimitationPlan(),z=ot.planSdk.getOrgStatus(),F=G===b.Sj.OrgFull,k=m(V,G);return{orgPlan:G,orgPlanType:z,orgPlanName:k,isOrgFull:F}}function it(V,L){const ot=O.t.InitialOrg(L),G=ot.planSdk.getOrgCurrentMemberProtoLimitationPlan(),z=ot.planSdk.getOrgStatus(),F=G===b.Sj.OrgFull,k=m(V,G),ut=U(G,V);return{orgPlan:G,orgPlanType:z,orgPlanName:k,isOrgFull:F,planName:ut}}function Y(V,L){const G=O.t.InitialUser(L).planSdk.bomxPlan,z=G.getUserPlan(),F=G.getUserStatus(),ut=(L==null?void 0:L.paid)&&[b.L1.Lifetime,b.L1.PremiumLifetime].includes(z),E=m(V,z),J=z===b.L1.Solo;return{userPlan:z,userPlanType:F,userPlanName:E,isSoloFull:J,isLifeTime:ut}}function P(V,L){const G=O.t.InitialUser(L).planSdk.prototypePlan,z=G.getUserPlan(),F=G.getUserStatus(),ut=(L==null?void 0:L.paid)&&[b.L1.Lifetime,b.L1.PremiumLifetime].includes(z),E=m(V,z),J=z===b.L1.Solo;return{userPlan:z,userPlanType:F,userPlanName:E,isSoloFull:J,isLifeTime:ut}}const R=function(V,L){L===void 0&&(L="zh-CN");let ot=""+M.TH.LimitationNotice.bomx_free_plan[L]+M.TH.LimitationNotice.rights[L];return V===b.L1.Lifetime&&(ot=M.TH.LimitationNotice.bomx_lifetime_plan[L]),V===b.L1.PremiumLifetime&&(ot=M.TH.LimitationNotice.premium_lifetime_plan[L]),V===b.L1.Solo&&(ot=M.TH.LimitationNotice.bomx_solo_plan[L]),ot};function at(V,L,ot,G){if(V){const{orgPlan:z,orgPlanName:F,orgPlanType:k,isOrgFull:ut}=it(L,ot);let J=z===b.Sj.OrgFree?""+M.TH.LimitationNotice.bomx_free_plan[L]+M.TH.LimitationNotice.rights[L]:M.TH.LimitationNotice.bomx_org_lite_plan[L];return ut&&(J=M.TH.LimitationNotice.bomx_org_full_plan[L]),{currentPlan:z,planName:F,planType:k,isOrgFull:ut,realPlanName:""+J}}else{const{userPlan:z,userPlanName:F,userPlanType:k,isSoloFull:ut,isLifeTime:E}=P(L,G),J=R(z,L);return{currentPlan:z,planName:F,planType:k,isSoloFull:ut,realPlanName:""+J}}}const $=(V,L,ot)=>{if([Z.FW.Flow,Z.FW.Mind].includes(V)){if(ot!=null&&ot.cid){const z=O.t.InitialOrg(ot).planSdk.getOrgCurrentMemberProtoLimitationPlan();return{maxPageCount:[b.Sj.OrgExpired,b.Sj.OrgFree].includes(z)?-1:3}}return L!=null&&L.cid?{maxPageCount:O.t.InitialUser(L).planSdk.prototypePlan.getUserPlan()!==b.L1.Free?-1:3}:{maxPageCount:-1}}if(ot&&ot.cid&&ot.otype!=="personal"){const G=O.t.InitialOrg(ot),z=G.planSdk.getOrgCurrentMemberProtoLimitationPlan(),F=G.planSdk.getOrgStatus()===b._E.Trial,k=G.limitationSdk.prototypeLimit.pLimitation,ut=G.limitationSdk.orgLimit.oLimitation,{paid:E,next_billing_on:J,value_in_cents:dt}=ot;return{storage:k.storage,isExportWatermark:k.is_export_watermark,maxPicBytes:k.max_pic_bytes,maxV7ScreenCount:k.max_screen_count,maxV8ScreenCount:k.max_p2page_count||3,maxProjectVersionCount:k.max_project_version_count,maxMktCount:k.max_mkt_count,plan:z,trial:F,paid:E,next_billing_on:J,value_in_cents:dt,maxSharingCount:k.max_project_share_count,maxCanvasCount:k.max_p2canvas_count||20,maxProjectCount:k.max_project_count,maxWidgetCount:k.max_widget_count,maxVersionCount:k.max_project_version_count,maxVersionRecycleDays:k.max_p2version_recycle_days,maxProjectTemplateCount:ut.max_project_template_count,maxSpaceCount:ut.max_space_count}}if(L&&L.cid){const{paid:G,next_billing_on:z}=L,F=O.t.InitialUser(L),k=F.planSdk.prototypePlan.getUserPlan(),ut=F.planSdk.prototypePlan.getUserStatus()===b.pZ.Trial,E=F.limitationSdk.prototypeLimit.pLimitation;return{storage:E.storage,current_plan:k,trial:ut,paid:G,next_billing_on:z,isExportWatermark:E.is_export_watermark,maxPicBytes:E.max_pic_bytes,maxV7ScreenCount:(E==null?void 0:E.screens)||20,maxV8ScreenCount:(E==null?void 0:E.max_p2page_count)||3,maxProjectVersionCount:0,maxMktCount:0,value_in_cents:0,maxSharingCount:E.max_project_share_count,maxProjectCount:E.max_project_count||3,maxCanvasCount:E.max_p2canvas_count||20,maxWidgetCount:E.max_widget_count,maxVersionCount:E.max_project_version_count}}return{storage:0,isExportWatermark:!1,maxPicBytes:0,maxV7ScreenCount:0,maxV8ScreenCount:0,maxProjectVersionCount:0,maxMktCount:0,plan:"",trial:!1,paid:!1,next_billing_on:"",value_in_cents:0,maxSharingCount:1,maxProjectCount:3,maxCanvasCount:20,maxWidgetCount:300,maxVersionCount:3}},K=(V,L,ot)=>{const{is_trial_enabled:G}=V;if(G)return!1;const{trial_end_on:z}=L;return z||!O.t.InitialOrg(L).planSdk.getIsDefaultFreeOrg()?!1:!ot.some(E=>{const J=O.t.InitialOrg(E),dt=J.planSdk.getIsDefaultFreeOrg(),pt=J.planSdk.getOrgPlan()===b.Sj.OrgExpired;return!(dt||pt)})};function H(V,L,ot){const{permissions:G}=V||{};let z="user_not_in_space",F="user_not_in_space";if(G&&G.length>=1)for(const pt of G){const{user_id:T,role:ht}=pt;T===Number(L)&&(z=ht),T===Number(ot)&&(F=ht)}const k=Z.bF.indexOf(z),ut=Z.bF.indexOf(F),E=Math.max(k,ut);return F==="user_not_in_space"?z:Z.bF[E]}const B=async(V,L)=>{const{spaces:ot}=await(0,I.DE)("/api/dashboard/v5/orgs/"+L+"/handover_check?from_user_id="+V);return{spaces:ot}},X=V=>{let{org:L,paymentTrackParams:ot,checkoutArea:G,upgradeOrg:z=!1}=V,F;return L&&L.cid&&L.otype!=="personal"?F={mode:"org",orgCid:L.cid,checkoutArea:G,...ot}:F={mode:z?"org":"solo",isSelectOrg:!!z,checkoutArea:G,...ot},F}},22046:($t,wt,w)=>{"use strict";w.d(wt,{t:()=>it});var Z=w(33348);class I{}var O=w(57321);class b extends I{constructor(P,R){super(),this.limitation={...P},this.pDefaultLimitation=O.u3[R]||O.u3.org_free}getMaxProjectCount(){return this.pDefaultLimitation.max_project_count}getCurrentProjectCountIsLimit(P){const R=this.getMaxProjectCount();return R===O.nj?!1:P>R}getCanCreateProject(P,R){R===void 0&&(R=1);const at=this.getMaxProjectCount();return at===O.nj?!0:at>=P+R}getCanUpdateFile(P){const R=this.getMaxProjectCount();return R===O.nj?!0:P<=R}getMaxProjectVersionCount(){var P,R;return(P=this.pDefaultLimitation.max_project_version_count)!=null?P:(R=this.limitation)==null?void 0:R.max_project_version_count}getIsExportable(P){return this.limitation.exportable.includes(P)}getMaxPicBytes(){var P,R;return(P=this.pDefaultLimitation.max_pic_bytes)!=null?P:(R=this.limitation)==null?void 0:R.max_pic_bytes}getMaxUploadFileBytes(){var P,R;return(P=this.pDefaultLimitation.bomx_max_upload_file_bytes)!=null?P:(R=this.limitation)==null?void 0:R.bomx_max_upload_file_bytes}getMaxFileBytes(){var P,R;return(P=this.pDefaultLimitation.bomx_max_file_bytes)!=null?P:(R=this.limitation)==null?void 0:R.bomx_max_file_bytes}getMaxWidgetCount(){var P,R;return(P=this.pDefaultLimitation.max_widget_count)!=null?P:(R=this.limitation)==null?void 0:R.max_widget_count}getCanCreateWidget(P,R){R===void 0&&(R=1);const at=this.getMaxWidgetCount();return at===-1?!0:P+R<=at}}class M{constructor(P,R){this.limitation={...P},this.oLimitation=O.l7[R]||O.l7[Z.Sj.OrgFree]}getMaxSpaceCount(){var P,R;return(P=this.oLimitation.max_space_count)!=null?P:(R=this.limitation)==null?void 0:R.max_space_count}getCanCreateSpace(P,R){R===void 0&&(R=1);const at=this.getMaxSpaceCount();return at===O.cp?!0:P+R<=at}getMaxProjectTemplateSpaceCount(){var P,R;return(P=this.oLimitation.max_project_template_count)!=null?P:(R=this.limitation)==null?void 0:R.max_project_template_count}getCanCreateProjectTemplate(P,R){R===void 0&&(R=1);const at=this.getMaxProjectTemplateSpaceCount();return P+R<=at}getMaxRecyclerDays(){var P,R;return(P=this.oLimitation.max_recycler_days)!=null?P:(R=this.limitation)==null?void 0:R.max_recycler_days}getMaxOrgLogDays(){var P,R;return(P=this.oLimitation.max_org_log_days)!=null?P:(R=this.limitation)==null?void 0:R.max_org_log_days}}var W=w(88140);class st extends I{constructor(P){let{limitation:R,planType:at,projectUnLimit:$}=P;super(),this.limitation=R;const K=O.l7[at]||O.l7[W.Sj.OrgFree];$&&at===W.L1.Solo?this.pLimitation={...K,max_project_count:O.nj}:this.pLimitation=K}getMaxProjectCount(){var P,R;return(P=this.pLimitation.max_project_count)!=null?P:(R=this.limitation)==null?void 0:R.max_project_count}getCurrentProjectCountIsLimit(P){const R=this.getMaxProjectCount();return R===O.nj?!1:P>R}getCanCreateProject(P,R){R===void 0&&(R=1);const at=this.getMaxProjectCount();return at===O.nj?!0:at>=P+R}getCanUpdateFile(P){const R=this.getMaxProjectCount();return R===O.nj?!0:P<=R}getMaxProjectVersionCount(){var P,R;return(P=this.pLimitation.max_project_version_count)!=null?P:(R=this.limitation)==null?void 0:R.max_project_version_count}getMaxPicBytes(){var P,R;return(P=this.pLimitation.max_pic_bytes)!=null?P:(R=this.limitation)==null?void 0:R.max_pic_bytes}getIsExportable(P){return this.limitation.exportable.includes(P)}getV8MaxPageCount(){var P,R;return(P=this.pLimitation.max_p2page_count)!=null?P:(R=this.limitation)==null?void 0:R.max_p2page_count}getV8MaxCanvasCount(){var P,R;return(P=this.pLimitation.max_p2canvas_count)!=null?P:(R=this.limitation)==null?void 0:R.max_p2canvas_count}getProjectMaxShareCount(){var P,R;return(P=this.pLimitation.max_project_share_count)!=null?P:(R=this.limitation)==null?void 0:R.max_project_share_count}getMaxWidgetCount(){var P,R;return(P=this.pLimitation.max_widget_count)!=null?P:(R=this.limitation)==null?void 0:R.max_widget_count}getCanCreateWidget(P,R){const at=this.getMaxWidgetCount();return at===O.Ne?!0:P+R<=at}getCurrentWidgetCountIsLimit(P,R){R===void 0&&(R=1);const at=this.getMaxWidgetCount();return at===O.Ne?!1:P>at}getIsExportWatermark(){return this.pLimitation.is_export_watermark}}class rt{constructor(P){let{limitation:R,protoPlan:at,bomxPlan:$,orgPlan:K,projectUnLimit:H}=P;this.prototypeLimit=new st({limitation:R,planType:at,projectUnLimit:H}),this.bomxLimit=new b(R,$),this.orgLimit=new M(R,K)}}if(w.j!=183)var m=w(49866);const U=function(Y,P){P===void 0&&(P=new Date);const at=+new Date(new Date(Y).setDate(new Date(Y).getDate()-1)),$=+P;return at<=$},A={CAN_GT_100_PROJECTS:8},j=Y=>{if(!Y)return!1;function P(R,at){return(R.flags&at)!==0}return P(Y,A.CAN_GT_100_PROJECTS)};class it{static InitialUser(P){const R=new Z.T4(P),at=j(P);return{type:"user",limitationSdk:new rt({limitation:P.limitation,protoPlan:R.prototypePlan.plan,bomxPlan:R.bomxPlan.plan,projectUnLimit:at}),planSdk:R}}static InitialOrg(P){const R=new Z.KX(P),at=R.getOrgCurrentMemberProtoLimitationPlan(),$=R.getOrgCurrentMemberBomxLimitationPlan(),{plan:K}=R.getOrgPlanWidthCurrentMember(),H=new rt({limitation:P.limitation,protoPlan:at||W.Sj.OrgFree,bomxPlan:$||W.Sj.OrgFree,orgPlan:K}),B=new m.w(P.permissions);return{type:"org",limitationSdk:H,permissionSdk:B,planSdk:R}}}},57321:($t,wt,w)=>{"use strict";w.d(wt,{Ne:()=>b,cp:()=>st,l7:()=>m,nj:()=>W,u3:()=>U});var Z=w(88140);const I=1e5,O=1e5,b=65535,M=3e3,W=1e5,st=1e5,rt=1e5,m={[Z.L1.Free]:{max_p2canvas_count:20,max_p2page_count:3,max_p2version_recycle_days:3,max_project_count:3,max_project_share_count:1,max_recycler_days:3,max_widget_count:300,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:2097152,max_project_template_count:0,max_project_version_count:0,max_screen_count:20,max_space_count:0,collaborators:0,commentable:!1,encryptable:!1,exportable:[],inspectable:!1,projects:3,screens:20,slices:!1,storage:100,is_export_watermark:!0},[Z.L1.Solo]:{max_p2canvas_count:500,max_p2page_count:500,max_p2version_recycle_days:30,max_project_count:100,max_project_share_count:3,max_recycler_days:30,max_widget_count:b,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:5242880,max_project_template_count:0,max_project_version_count:0,max_screen_count:500,max_space_count:0,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:500,slices:!0,storage:2e3,is_export_watermark:!1},[Z.L1.Lifetime]:{max_p2canvas_count:I,max_p2page_count:O,max_project_count:W,max_p2version_recycle_days:180,max_project_share_count:3,max_recycler_days:30,max_widget_count:b,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:5242880,max_project_template_count:0,max_project_version_count:0,max_screen_count:I,max_space_count:0,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e3,is_export_watermark:!1},[Z.L1.PremiumLifetime]:{max_p2canvas_count:I,max_p2page_count:O,max_project_count:W,max_p2version_recycle_days:180,max_project_share_count:3,max_recycler_days:30,max_widget_count:b,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:5242880,max_project_template_count:0,max_project_version_count:0,max_screen_count:I,max_space_count:0,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e3,is_export_watermark:!1},[Z.Sj.OrgFree]:{max_p2canvas_count:20,max_p2page_count:3,max_p2version_recycle_days:3,max_project_count:3,max_project_share_count:1,max_recycler_days:3,max_widget_count:300,max_mkt_count:5,max_org_log_days:0,max_pic_bytes:2097152,max_project_template_count:3,max_project_version_count:2,max_screen_count:20,max_space_count:3,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e4,is_export_watermark:!0,is_org_quit_transfer:!1,is_org_recent:!0},[Z.Sj.OrgLite]:{max_p2canvas_count:3e3,max_p2page_count:3e3,max_p2version_recycle_days:30,max_project_count:100,max_recycler_days:30,max_widget_count:b,max_mkt_count:1e5,max_org_log_days:0,max_pic_bytes:5242880,max_project_template_count:10,max_project_version_count:10,max_project_share_count:10,max_screen_count:3e3,max_space_count:3,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e3,is_export_watermark:!1,is_org_quit_transfer:!1,is_org_recent:!0},[Z.Sj.OrgFull]:{max_p2canvas_count:I,max_p2page_count:O,max_p2version_recycle_days:180,max_project_count:W,max_recycler_days:30,max_widget_count:b,max_mkt_count:1e5,max_org_log_days:180,max_pic_bytes:10485760,max_project_template_count:rt,max_project_version_count:30,max_project_share_count:20,max_screen_count:I,max_space_count:st,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e3,is_export_watermark:!1,is_org_quit_transfer:!0,is_org_recent:!0},[Z.Sj.OrgExpired]:{max_p2canvas_count:0,max_p2page_count:0,max_p2version_recycle_days:3,max_project_count:0,max_project_share_count:1,max_recycler_days:0,max_widget_count:0,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:2097152,max_project_template_count:0,max_project_version_count:0,max_screen_count:0,max_space_count:0,collaborators:0,commentable:!0,encryptable:!0,exportable:["png","pngs","htmlzip"],inspectable:!0,projects:6553500,screens:6553500,slices:!0,storage:2e4,is_export_watermark:!0,is_org_quit_transfer:!1,is_org_recent:!0}},U={[Z.L1.Free]:{...m[Z.L1.Free],max_pic_bytes:5*1024*1024,max_project_version_count:10,bomx_max_file_bytes:20*1024*1024,bomx_max_upload_file_bytes:5*1024*1024,max_widget_count:100},[Z.L1.Solo]:{...m[Z.L1.Solo],max_project_version_count:50,bomx_max_file_bytes:200*1024*1024,max_pic_bytes:30*1024*1024,bomx_max_upload_file_bytes:100*1024*1024,max_widget_count:-1},[Z.L1.Lifetime]:{...m[Z.L1.Lifetime],max_project_version_count:1e4,bomx_max_file_bytes:500*1024*1024,max_pic_bytes:30*1024*1024,bomx_max_upload_file_bytes:100*1024*1024,max_widget_count:-1},[Z.L1.PremiumLifetime]:{...m[Z.L1.PremiumLifetime],max_project_version_count:1e4,bomx_max_file_bytes:500*1024*1024,max_pic_bytes:30*1024*1024,bomx_max_upload_file_bytes:100*1024*1024,max_widget_count:-1},[Z.Sj.OrgFree]:{...m[Z.Sj.OrgFree],max_pic_bytes:5*1024*1024,max_project_version_count:10,bomx_max_file_bytes:20*1024*1024,bomx_max_upload_file_bytes:5*1024*1024,max_widget_count:100},[Z.Sj.OrgLite]:{...m[Z.Sj.OrgLite],max_project_version_count:50,bomx_max_file_bytes:200*1024*1024,max_pic_bytes:30*1024*1024,bomx_max_upload_file_bytes:100*1024*1024,max_widget_count:-1},[Z.Sj.OrgFull]:{...m[Z.Sj.OrgFull],max_project_version_count:1e4,bomx_max_file_bytes:500*1024*1024,max_pic_bytes:30*1024*1024,bomx_max_upload_file_bytes:100*1024*1024,max_widget_count:-1},[Z.Sj.OrgExpired]:{...m[Z.Sj.OrgExpired],max_project_version_count:1,bomx_max_file_bytes:10,max_pic_bytes:10,bomx_max_upload_file_bytes:100,max_widget_count:1}}},88140:($t,wt,w)=>{"use strict";w.d(wt,{L1:()=>Z,Sj:()=>b,_E:()=>O,pZ:()=>I});var Z=function(M){return M.Free="free",M.Solo="solo",M.Lifetime="standard_lifetime",M.PremiumLifetime="premium_lifetime",M}(Z||{}),I=function(M){return M.Free="free",M.Paid="paid",M.Trial="trial",M.Expired="expired",M}(I||{}),O=function(M){return M.Free="free",M.Paid="paid",M.Trial="trial",M.Expired="expired",M}(O||{}),b=function(M){return M.OrgFree="org_free",M.OrgLite="org_lite",M.OrgFull="org_full",M.OrgExpired="org_expired",M}(b||{})},33348:($t,wt,w)=>{"use strict";w.d(wt,{KX:()=>H,_E:()=>I._E,Sj:()=>I.Sj,T4:()=>Y,pZ:()=>I.pZ,L1:()=>I.L1});class Z{}var I=w(88140);const O=9,b=4,M=5,W=2,st=3,rt=0,m=B=>{const{pt_plan_stat:X,edition:V}=B||{};switch(X){case O:{const L=V==="standard_lifetime"?I.L1.Lifetime:I.L1.PremiumLifetime;return{status:I.pZ.Paid,plan:L}}case M:return{status:I.pZ.Paid,plan:I.L1.Solo};case st:return{status:I.pZ.Trial,plan:I.L1.Lifetime};case b:return{status:I.pZ.Expired,plan:I.L1.Free};case W:case rt:return{status:I.pZ.Free,plan:I.L1.Free};default:return{status:I.pZ.Free,plan:I.L1.Free}}},U=B=>{const{bx_plan_stat:X}=B||{};switch(X){case O:return{status:I.pZ.Paid,plan:I.L1.Lifetime};case M:return{status:I.pZ.Paid,plan:I.L1.Solo};case st:return{status:I.pZ.Trial,plan:I.L1.Lifetime};case b:return{status:I.pZ.Expired,plan:I.L1.Free};case rt:case W:return{status:I.pZ.Free,plan:I.L1.Free};default:return{status:I.pZ.Free,plan:I.L1.Free}}};class A extends Z{constructor(X){super();const{status:V,plan:L}=U(X);Object.assign(this,{status:V,plan:L})}getUserStatus(){return this.status}getUserPlan(){return this.plan}}if(w.j!=183)var j=w(27e3);class it extends Z{constructor(X){super();const{status:V,plan:L}=m(X);Object.assign(this,{status:V,plan:L})}getUserStatus(){return this.status}getUserPlan(){return this.plan}}class Y{constructor(X){this.prototypePlan=new it(X),this.bomxPlan=new A(X),this.mktPlan=new j.K(X)}}if(w.j!=183)var P=w(74059);if(w.j!=183)var R=w(16709);const at=B=>{const{org_plan_stat:X}=B||{};switch(X){case R.us:return{status:I._E.Trial,plan:I.Sj.OrgFull};case R.X9:return{status:I._E.Free,plan:I.Sj.OrgFree};case R.u$:return{status:I._E.Paid,plan:I.Sj.OrgFull};case R.pX:return{status:I._E.Paid,plan:I.Sj.OrgLite};case R.xO:case R.u5:case R.pR:return{status:I._E.Expired,plan:I.Sj.OrgExpired};default:return{status:I._E.Expired,plan:I.Sj.OrgExpired}}},$=B=>{const{org_pt_plan_stat:X}=B||{};switch(X){case R.uv:return{status:I._E.Trial,plan:I.Sj.OrgFull,seats:["ptSeat"]};case R.us:return{status:I._E.Trial,plan:I.Sj.OrgFull,seats:[]};case R.BW:return{status:I._E.Paid,plan:I.Sj.OrgFull,seats:["ptLifetime"]};case R.IN:return{status:I._E.Paid,plan:I.Sj.OrgFull,seats:["ptSeat"]};case R.u$:return{status:I._E.Paid,plan:I.Sj.OrgFull,seats:[]};case R.gp:return{status:I._E.Paid,plan:I.Sj.OrgLite,seats:["ptLifetime"]};case R.bj:return{status:I._E.Paid,plan:I.Sj.OrgLite,seats:["ptSeat"]};case R.pX:return{status:I._E.Paid,plan:I.Sj.OrgLite,seats:[]};case R.Z3:return{status:I._E.Free,plan:I.Sj.OrgFree,seats:[]};case R.u5:case R.pR:case R.xO:return{status:I._E.Expired,plan:I.Sj.OrgExpired,seats:[]};default:return{status:I._E.Expired,plan:I.Sj.OrgExpired,seats:[]}}},K=B=>{const{org_bx_plan_stat:X}=B||{};switch(X){case R.uv:return{status:I._E.Trial,plan:I.Sj.OrgFull,seats:["bxSeat"]};case R.us:return{status:I._E.Trial,plan:I.Sj.OrgFull,seats:[]};case R.IN:return{status:I._E.Paid,plan:I.Sj.OrgFull,seats:["bxSeat"]};case R.u$:return{status:I._E.Paid,plan:I.Sj.OrgFull,seats:[]};case R.bj:return{status:I._E.Paid,plan:I.Sj.OrgLite,seats:["bxSeat"]};case R.pX:return{status:I._E.Paid,plan:I.Sj.OrgLite,seats:[]};case R.Z3:return{status:I._E.Free,plan:I.Sj.OrgFree,seats:[]};case R.u5:case R.pR:case R.xO:return{status:I._E.Expired,plan:I.Sj.OrgExpired,seats:[]};default:return{status:I._E.Expired,plan:I.Sj.OrgExpired,seats:[]}}};class H{constructor(X){(0,P.A)(this,"getIsDefaultFreeOrg",()=>this.plan===I.Sj.OrgFree&&!this.isPaid),(0,P.A)(this,"getOrgPlanWidthCurrentMember",()=>{const{plan:ot,status:G,seats:z}=$(this.org);return{plan:ot,status:G,seats:z}}),(0,P.A)(this,"getOrgCurrentMemberProtoLimitationPlan",()=>{const{plan:ot,status:G}=$(this.org),{pt_total_seats:z,ptlt_total_seats:F}=this.org||{pt_total_seats:0,ptlt_total_seats:0};return[I.Sj.OrgLite,I.Sj.OrgFull].includes(ot)&&G!==I._E.Trial&&z+F===0?I.Sj.OrgFree:ot}),(0,P.A)(this,"getOrgCurrentMemberBomxLimitationPlan",()=>{const{plan:ot,status:G}=K(this.org),{bx_total_seats:z}=this.org||{bTotalSeats:0};return[I.Sj.OrgLite,I.Sj.OrgFull].includes(ot)&&G!==I._E.Trial&&z===0?I.Sj.OrgFree:ot}),(0,P.A)(this,"getPaymentOrgWidthLifeTimePlan",()=>{const{ptlt_total_seats:ot,plan:G}=this.org;return!ot||ot<1?I.Sj.OrgFree:G});const{plan:V,status:L}=at(X);Object.assign(this,{plan:V,status:L,org:X}),this.isPaid=X.paid}getOrgPlan(){return this.plan}getOrgStatus(){return this.status}}},22778:($t,wt,w)=>{"use strict";w.d(wt,{o:()=>I});const Z=M=>{const W=new Map(M);return W.fork=()=>Z(W),W.slowSize=()=>W.size,W.slowKeys=()=>W.keys(),W.slowValues=()=>W.values(),W},I=M=>M?M.fork():O(),O=function(M,W){M===void 0&&(M=new Map),W===void 0&&(W=new Map);const st=()=>(M.size!==0&&(W=new Map(W),M.forEach((rt,m)=>{rt===void 0?W.delete(m):W.set(m,rt)}),M=new Map),W);return{has:rt=>M.has(rt)?M.get(rt)!==void 0:W.has(rt),get:rt=>M.has(rt)?M.get(rt):W.get(rt),set:(rt,m)=>{M.has(rt)&&M.get(rt)===void 0&&M.delete(rt),M.set(rt,m)},delete:rt=>W.has(rt)?M.has(rt)&&M.get(rt)===void 0?!1:(M.set(rt,void 0),!0):M.delete(rt),fork:()=>(M.size>=b&&st(),O(new Map(M),W)),slowSize:()=>st().size,slowKeys:()=>st().keys(),slowValues:()=>st().values()}},b=4*1024},94815:($t,wt,w)=>{"use strict";w.d(wt,{D:()=>Z});const Z=()=>{let I=new WeakMap,O=new WeakMap;return{resetOCache:()=>{I=new WeakMap},resetOOCache:()=>{O=new WeakMap},getOCache:rt=>{let m=I.get(rt);return m===void 0&&I.set(rt,m={}),m},getOOCache:(rt,m)=>{let U=O.get(rt);U===void 0&&O.set(rt,U=new WeakMap);let A=U.get(m);return A===void 0&&U.set(m,A={}),A}}}},103:($t,wt,w)=>{"use strict";w.d(wt,{a:()=>Z});const Z="SDK:CHG"},48622:($t,wt,w)=>{"use strict";w.d(wt,{ep:()=>b,rj:()=>Z});const Z=(M,W)=>{const st=W[M.key];if(st===void 0)throw new Error("pCXY: no config: "+M.key);return{...M,hotAttr:O(M.hotAttr,st)}},I=(M,W)=>{const st=W[M.key];if(st===void 0)throw new Error("upCXY: no config: "+M.key);return{...M,hotAttr:b(M.hotAttr,st)}},O=(M,W)=>({...M,x:M.x+W.offsetX,y:M.y+W.offsetY}),b=(M,W)=>({...M,x:M.x-W.offsetX,y:M.y-W.offsetY})},63572:($t,wt,w)=>{"use strict";w.d(wt,{K:()=>Z,k:()=>I});const Z=O=>{let{injection:b}=O;return{i:b}},I=O=>{let{i:b}=O;return{injection:b}}},41457:($t,wt,w)=>{"use strict";w.d(wt,{$:()=>b,B:()=>M});var Z=w(45043),I=w(833),O=w(60307);const b=W=>{let{info:st}=W;const{author:rt,showAuthor:m,time:U,showTime:A}=st||{};return{infoP:[rt,(0,Z.rK)(m),(0,I.vH)(U),(0,Z.rK)(A)].join(O.q1)}},M=W=>{let{infoP:st}=W;const[rt="",m,U,A]=(st==null?void 0:st.split(O.q1))||[];return{info:{author:rt,showAuthor:m?(0,Z.Vf)(m):!1,time:U?(0,I.TT)(U):0,showTime:A?(0,Z.Vf)(A):!1}}}},39018:($t,wt,w)=>{"use strict";w.d(wt,{e:()=>b,o:()=>O});var Z=w(45043),I=w(60307);const O=M=>{let{flip:W}=M;return{fp:[(0,Z.y9)(W.flipH,W.flipV)].join(I.xi)}},b=M=>{let{fp:W}=M;if(!W)return{flip:{flipH:!1,flipV:!1}};const[st]=W.split(I.xi),[rt,m]=(0,Z.MA)(st);return{flip:{flipH:rt,flipV:m}}}},33104:($t,wt,w)=>{"use strict";w.d(wt,{q:()=>O,s:()=>I});var Z=w(833);const I=b=>{var M,W;let{iconData:st}=b;return{icVB:st.viewBox,icP:st.path,icNCS:[st.iconName,st.iconColor,(0,Z.c5)(st.iconSize)],icSA:[((M=st.svgAttr)==null?void 0:M.fill)||0,((W=st.svgAttr)==null?void 0:W.stroke)||0],iMCI:st.isMultiColorIcon}},O=b=>{let{icVB:M,icP:W,icNCS:st,icSA:rt,iMCI:m}=b;const[U,A,j]=st,[it,Y]=rt;return{iconData:{viewBox:M,path:W,iconName:U,iconColor:A,iconSize:(0,Z._3)(j),svgAttr:{fill:it===0?void 0:it,stroke:Y===0?void 0:Y},isMultiColorIcon:m||!1}}}},32455:($t,wt,w)=>{"use strict";w.d(wt,{A5:()=>b,IC:()=>O,RS:()=>I,X1:()=>Z});const Z=M=>{let{map:W}=M;return{mapS:W.mapImageSrc}},I=M=>{let{mapS:W}=M;return{map:{mapImageSrc:W}}},O=(M,W)=>{M.mapS&&W(M.mapS,"rResExtImage")},b=(M,W)=>M},34221:($t,wt,w)=>{"use strict";w.d(wt,{$b:()=>O,Fm:()=>I,WM:()=>M,ew:()=>b});var Z=w(45043);const I=W=>{let{audio:{audioSrc:st,isAutoplay:rt,isLoop:m,isKeepAlive:U,isHidden:A}}=W;return{audP:(0,Z.y9)(rt,m,U,A),audS:st}},O=W=>{let{audP:st,audS:rt}=W;const[m,U,A,j]=(0,Z.MA)(st);return{audio:{audioSrc:rt,isAutoplay:m,isLoop:U,isKeepAlive:A,isHidden:j}}},b=W=>{let{video:{videoSrc:st,isAutoplay:rt,isLoop:m,isMuted:U,isHideControls:A}}=W;return{vidP:(0,Z.y9)(rt,m,U,A),vidS:st}},M=W=>{let{vidP:st,vidS:rt}=W;const[m,U,A,j]=(0,Z.MA)(st);return{video:{videoSrc:rt,isAutoplay:m,isLoop:U,isMuted:A,isHideControls:j}}}},94188:($t,wt,w)=>{"use strict";w.d(wt,{G:()=>Z,n:()=>I});const Z=O=>{let{webpage:b}=O;return{wbp:b.url}},I=O=>{let{wbp:b}=O;return{webpage:{url:b}}}},29532:($t,wt,w)=>{"use strict";w.d(wt,{X:()=>Z,d:()=>I});const Z=O=>({"!LIV":O["!liVersion"],"!HAV":O["!haVersion"]}),I=O=>({"!liVersion":O["!LIV"]>=3?O["!LIV"]:1,"!haVersion":O["!HAV"]>=3?O["!HAV"]:1})},83984:($t,wt,w)=>{"use strict";w.d(wt,{BU:()=>O,NN:()=>M,rY:()=>Z});const Z={PNG_CANVAS:"pngCV",PNG_PAGE:"pngPG"},I=new Set(Object.values(Z)),O={ZOOM_050:"z050",ZOOM_100:"z100",ZOOM_200:"z200",LETTERBOX_128:"lb128",LETTERBOX_256:"lb256",LETTERBOX_512:"lb512",WIDTH_FIT_320:"wf320",WIDTH_FIT_640:"wf640"},b=new Set(Object.values(O)),M={z050:(U,A)=>W(.5,U,A),z100:(U,A)=>W(1,U,A),z200:(U,A)=>W(2,U,A),lb128:(U,A)=>st(128,U,A),lb256:(U,A)=>st(256,U,A),lb512:(U,A)=>st(512,U,A),wf320:(U,A)=>rt(320,U,A),wf640:(U,A)=>rt(640,U,A)},W=(U,A,j)=>({zoom:U,width:Math.max(Math.round(A*U),1),height:Math.max(Math.round(j*U),1)}),st=(U,A,j)=>{const it=U/Math.max(A,j,1);return W(it,A,j)},rt=(U,A,j)=>{const[it,Y]=A>=240||j>=330?[320/A,800]:A>=144||j>=218?[240/A,600]:[144/A,360],P=U/320,R=W(it*P,A,j);return R.height=Math.min(R.height,Y*P),R},m=(U,A,j,it)=>A.slice(-3)+"/"+A+"/"+U+"/"+it+"."+j.toString(36)+".png"},98620:($t,wt,w)=>{"use strict";w.d(wt,{o:()=>rt});var Z=w(83573),I=w(2302),O=w(58197),b=w(70877),M=w(71221),W=w.n(M);let st;(function(m){function U(A,j){return W()(A.from.x,A.from.y,A.to.x,A.to.y,j.x,j.y)}m.distance=U})(st||(st={}));let rt;(function(m){const U=m.identity={transform:Z.s.identity,rect:O.rw.empty};function A(G,z){return{transform:z.transform.clone().prepend(G),rect:z.rect}}m.prepend=A;function j(G,z){return{transform:G.transform.clone().append(z),rect:G.rect}}m.concat=j;function it(G,z){const F=G.transform.applyInverse(z);return O.rw.contains(G.rect,F)}m.contains=it;function Y(G,z){return P(z).every(k=>it(G,k))}m.containTransformAndRect=Y;function P(G){const{transform:z,rect:F}=G;return b.a.points(z.applyRect(F))}m.points=P;function R(G){const{transform:z,rect:F}=G;return z.applyRect(F)}m.toBoundingPoints=R;function at(G){return O.rw.enclosing(P(G))}m.axisAligned=at;function $(G,z,F){const k=rt.toBoundingPoints(z);let ut;switch(F){case"t":ut=[k.tl,k.tr];break;case"r":ut=[k.br,k.tr];break;case"l":ut=[k.tl,k.bl];break;case"b":ut=[k.bl,k.br];break}return K(G,ut)}m.project2oneSide=$;function K(G,z){const F=I.Z.subtract(G,z[1]),k=I.Z.subtract(z[0],z[1]),ut=k.x*k.x+k.y*k.y,E=new Z.h(k.x*k.x/ut,k.x*k.y/ut,k.x*k.y/ut,k.y*k.y/ut,0,0);return I.Z.add(E.applyWithoutXY(F),z[1])}m.projectOnePoint2Line=K;function H(G,z,F){const k=rt.toBoundingPoints(z);switch(F){case"r":return k.br;case"l":return k.tl;case"b":return k.bl;case"t":return k.tl}}m.project2Line=H;function B(G,z,F,k){const ut=b.a.sides(G.transform.applyRect(G.rect));let E=null,J=F;for(const[dt,pt]of Object.entries(ut)){const T=st.distance(pt,z);T<J&&(E=dt,J=T)}return k&&E!=="l"&&E!=="r"?null:E}m.nearSide=B;function X(G,z,F,k){if(k)return null;let ut=F,E=null;const J=G.transform.applyRect(G.rect);for(const[dt,pt]of Object.entries(J)){const T=I.Z.distance(z,pt);T<ut&&(E=dt,ut=T)}return E}m.nearCorner=X;function V(G,z,F,k,ut){const E=G.transform.applyInverse(z),J=O.rw.inCorner(F>=0?G.rect:O.rw.enlarge(G.rect,F),E);if(J!==null)if(ut){if(J!=="l"&&J!=="r")return null;const dt={};dt.l=G.transform.apply(I.Z.average({x:G.rect.x,y:G.rect.y},{x:G.rect.x,y:G.rect.y+G.rect.h})),dt.r=G.transform.apply(I.Z.average({x:G.rect.x+G.rect.w,y:G.rect.y},{x:G.rect.x+G.rect.w,y:G.rect.y+G.rect.h}));const pt=I.Z.distance(z,dt[J]);return pt>F&&pt<k?J:null}else{if(J==="l"||J==="r")return null;const dt=G.transform.applyRect(G.rect),pt=I.Z.distance(z,dt[J]);return pt>F&&pt<k?J:null}else return null}m.nearRotateControlCorner=V;function L(G,z,F,k){let ut=null;const E=[];for(const[J,dt]of G)I.Z.distance(z,dt)<=F&&(ut=J,E.push({key:J}));if(E.length>1){let J=1/0;E.forEach(dt=>{let{key:pt}=dt;const T=I.Z.distance(z,k[pt]);T<J&&(ut=pt,J=T)})}return ut}m.nearPoints=L;function ot(G,z,F){return I.Z.distance(G,z)<=F}m.nearPoint=ot})(rt||(rt={}))},28565:($t,wt,w)=>{"use strict";w.d(wt,{h:()=>ct});var Z=w(94947);const I=gt=>{let bt,Tt;return{hasMLG:()=>!!bt,getMLG:()=>bt,loadMLG:async()=>bt===void 0?(Tt===void 0&&((0,Z.FM)()?(Tt=Promise.resolve(window.map_json["mp_"+gt]),bt=window.map_json["mp_"+gt]):(Tt=fetch("/mb-static/2410/echarts-map/mp_"+gt+".json").then(jt=>jt.ok?jt.json():""),Tt.then(jt=>{bt=jt}))),Tt):bt}},O=I("100000"),b=I("110000"),M=I("120000"),W=I("130000"),st=I("140000"),rt=I("150000"),m=I("210000"),U=I("220000"),A=I("230000"),j=I("310000"),it=I("320000"),Y=I("330000"),P=I("340000"),R=I("350000"),at=I("360000"),$=I("370000"),K=I("410000"),H=I("420000"),B=I("430000"),X=I("440000"),V=I("450000"),L=I("460000"),ot=I("500000"),G=I("510000"),z=I("520000"),F=I("530000"),k=I("540000"),ut=I("610000"),E=I("620000"),J=I("630000"),dt=I("640000"),pt=I("650000"),T=I("710000"),ht=I("810000"),yt=I("820000"),ct={Map100000:O,Map110000:b,Map120000:M,Map130000:W,Map140000:st,Map150000:rt,Map210000:m,Map220000:U,Map230000:A,Map310000:j,Map320000:it,Map330000:Y,Map340000:P,Map350000:R,Map360000:at,Map370000:$,Map410000:K,Map420000:H,Map430000:B,Map440000:X,Map450000:V,Map460000:L,Map500000:ot,Map510000:G,Map520000:z,Map530000:F,Map540000:k,Map610000:ut,Map620000:E,Map630000:J,Map640000:dt,Map650000:pt,Map710000:T,Map810000:ht,Map820000:yt}},40652:($t,wt,w)=>{"use strict";w.d(wt,{Pe:()=>H,LX:()=>at,EL:()=>$,N5:()=>K});var Z=w(51044),I=w(72605),O=w(59742),b=w(19216),M=w(47143),W=w(78570),st=w(8508),rt=w(54606),m=w(20029),U=w(25399),A=w(7290),j=w(21676);const it=j.Ay.a.withConfig({displayName:"styles__StyledInteractionMarker",componentId:"sc-5cqe0u-0"})(["display:flex;position:absolute;right:0;top:0;transform-origin:top right;.svg-icon{width:10px;height:10px;color:#d3e9f8;transition:width 0.2s,height 0.2s;}&:hover{.svg-icon{width:15px;height:15px;}}"]);var Y=w(40829),P=w(97788),R=w(57464);const at=(0,Z.memo)(B=>{const{interactionKey:X,className:V="",markerStyle:L={},handleMarkerClicked:ot}=B,G=(0,I.d4)(M.X_),z=(0,I.d4)(st.vy),F=(0,I.d4)(W.Jv);if(!(z.includes(X)||F===U.N_.displaySetting.show_mark||F===U.N_.displaySetting.show_mark_and_line))return null;const E={transform:"scale("+100/G+")",...L};return(0,R.jsx)(it,{className:V,style:E,onClick:ot,onMouseDown:J=>J.stopPropagation(),children:(0,R.jsx)(A.C,{name:"icon/link/mark"})})},(B,X)=>B.interactionKey===X.interactionKey&&B.className===X.className&&["top","right","zIndex","pointerEvents"].every(V=>{var L,ot;return((L=B.markerStyle)==null?void 0:L[V])===((ot=X.markerStyle)==null?void 0:ot[V])})&&B.handleMarkerClicked===X.handleMarkerClicked);at.displayName="InteractionMarker";const $=(0,Z.memo)(B=>{const{sdk:X,widget:{key:V}}=B,{isEditingCombo:L}=(0,I.d4)(rt.r),ot=(0,I.d4)(m.jI),G=(0,I.wA)(),z=X.getHotItem(V),F=z&&z.hotAttr.type!=="rResBunch"&&z.hotAttr.type!=="rResExt"?(0,b.Xr)(X,V,L,ot).find(E=>E.isUiValid):null,k=(0,Z.useCallback)(E=>{F!=null&&F.data.triggerItemKey&&(E.stopPropagation(),G({type:"entry:select:items",payload:{cids:[F.data.triggerItemKey]}}),G({type:"right-side-panel:show:panel"}),G({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}}))},[F==null?void 0:F.data.triggerItemKey,G]);if(!F)return null;const ut={zIndex:z&&z.hotAttr.type!=="rResBunch"&&z.hotAttr.type!=="rResExt"?z.hotAttr.zIndex+1:0,...(0,O.OO)(V)&&{pointerEvents:"none"}};if(z.hotAttr.type==="wWrap"){const{x:E,y:J,w:dt,h:pt}=X.getLocalBound(V);Object.assign(ut,{top:J-z.hotAttr.y-pt/2,right:z.hotAttr.x-E-dt/2})}return(0,R.jsx)(at,{interactionKey:F.key,markerStyle:ut,handleMarkerClicked:k})});$.displayName="ItemInteractionMarker";const K=(0,Z.memo)(B=>{const{sdk:X,widget:V}=B,{key:L}=V,{isEditingCombo:ot}=(0,I.d4)(rt.r),G=(0,I.d4)(m.jI),z=X.getHotItem(L);if(!z)return null;const{tableData:{columns:F,rows:k},w:ut}=z.hotAttr;let E=k,J=F;const dt=(0,Y.SS)(z.hotAttr);dt&&(J=z.hotAttr.widthList.map(ht=>({width:ht})),E=z.hotAttr.heightList.map(ht=>({height:ht})));let pt=0;const T=dt?b.wI:b.je;return(0,R.jsx)(R.Fragment,{children:E.map((ht,yt)=>{var ct;pt+=yt===0?0:(ct=E[yt-1])==null?void 0:ct.height;let gt=0;return J.map((bt,Tt)=>{var Pt;gt+=(Pt=J[Tt])==null?void 0:Pt.width;const It=T(X,L,yt,Tt,ot,G).find(jt=>jt.isUiValid);if(!It)return null;const Dt={top:pt,right:ut-gt};return(0,R.jsx)(at,{interactionKey:It.key,markerStyle:Dt},It.key)})})})}),H=(0,Z.memo)(B=>{const{sdk:X,widget:{key:V}}=B,{isEditingCombo:L}=(0,I.d4)(rt.r),ot=(0,I.d4)(m.jI),G=X.getHotItem(V);if(!G)return null;const{carousel:{slides:z}}=G.hotAttr,F=z[0];if(!(F&&F.linkCids))return null;if(F&&F.linkCids){const k=(0,b.ER)(X,V,F.linkCids,L,ot);if(!k)return null;const{firstUiInteractiveIta:ut}=(0,P.HW)(k,F.linkCids);return ut?(0,R.jsx)(at,{interactionKey:ut.key,markerStyle:(0,O.OO)(V)?{pointerEvents:"none"}:null},ut.key):null}return null});H.displayName="CarouselInteractionMarker"},56812:($t,wt,w)=>{"use strict";w.d(wt,{F:()=>b});var Z=w(51044),I=w(67122),O=w(57464);const b=(0,Z.memo)(M=>{const{cid:W,path:st,viewBox:rt,className:m}=M,[U,A]=(0,Z.useState)(null);return(0,Z.useEffect)(()=>{W&&st&&A((0,I.RY)({key:W,iconData:{path:st}}))},[W,st]),(0,O.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:m,dangerouslySetInnerHTML:{__html:(U==null?void 0:U.innerHTML)||st||""},viewBox:rt})})},9199:($t,wt,w)=>{"use strict";w.d(wt,{GS:()=>it,qg:()=>Y,rX:()=>$});var Z=w(4098),I=w(38537),O=w(66131),b=w(19216),M=w(76347),W=w(72866),st=w(91560),rt=w(53955),m=w(59742),U=w(63555);const A=(K,H,B,X)=>{if(!K)return[0,0];let V=0,L=0;if(K===H){var ot;const z=(ot=sdkStore.getSourceHotItem(B))==null?void 0:ot.hotAttr;if(z){const{x:F,y:k,w:ut,h:E}=z;V=F-ut/2,L=k-E/2}}else{var G;const F=X.querySelector(".panel-scroll-box .pstate").getAttribute("data-cid");let k=(G=sdkStore.getHotItem(K))==null?void 0:G.hotAttr.refContentKey;if((0,m.OO)(F)){const J=(0,m.QL)(F);k=J[J.length-1]}const[ut,E]=k?sdkStore.getHotKeyAABB(k):[0,0];V=ut,L=E}return[V,L]},j=K=>{if(!K||sdkStore.isTrashed(K))return;const H=sdkStore.locUpCanvasKey(K),X=sdkStore.findUpHotItemList(K,H).reverse().find(z=>{let{hotAttr:{type:F}}=z;return F===U.x.WWrap});if(!X)return;const{fixedOnTop:V,fixedOnBottom:L}=(0,O.dI)(X.key),{isSticky:ot,stickyOffset:G}=at(X.key);return{warpKey:X.key,fixedOnTop:V,fixedOnBottom:L,isSticky:ot,stickyOffset:G}},it=K=>{let{sdkStore:H,key:B,isWithinHeader:X,isWithinFooter:V}=K;const L=(0,rt.ll)(),ot=(0,st.Mo)(L),G=(0,st.a9)(L);let z=B,F=(0,b.Ik)(H,B),k=(0,b.OV)(H,B);const ut=document.querySelector(".preview-modal-portal-root #simulator")||document.querySelector("#simulator");if(F&&k&&!H.isTrashed(F)&&ut){let J=0,dt=0;for(;;){var E;const pt=X?".screen-header":V?".screen-footer":".screen-content",T=ut.querySelector(pt+' .tree-node[data-cid="'+F+'"] .panel'),{fixedOnTop:ht,fixedOnBottom:yt}=(0,O.dI)(z),{isSticky:ct,stickyOffset:gt}=at(z),{warpKey:bt,fixedOnTop:Tt,fixedOnBottom:Pt,isSticky:It,stickyOffset:Dt}=j(z)||{},jt=ht||yt||ct||Tt||Pt||It,Mt=ht||yt||Tt||Pt,[Q,vt]=A(F,ot,G,T),Lt=Mt?Q:Q<0?0:Q,Rt=Mt||vt<0?0:vt;if(!T){ot&&F===ot&&(J=J+Lt,dt=dt+Rt,k=z);break}const Bt=H.locUpHotCanvasKey(z),Ht=Bt?H.getRelocateLocalBound(z,Bt):(E=H.getHotItem(F))==null?void 0:E.hotAttr,{x:zt,y:Kt,w:ce,h:oe}=Ht,he=Mt?0:T.scrollLeft;if(J=J+zt-ce/2-he+Lt,jt)if(ct)dt=dt+gt+Rt;else if(yt)dt=dt+P(z);else if(It){const _e=H.getRelocateLocalBound(bt,Bt);dt=dt+(Kt-oe/2)-(_e.y-_e.h/2)+Dt+Rt}else if(Pt){const _e=H.getRelocateLocalBound(bt,Bt);dt=dt+P(bt)+(Kt-oe/2)-(_e.y-_e.h/2)}else dt=dt+Kt-oe/2;else dt=dt+Kt-oe/2-T.scrollTop+Rt;if(F===k)break;z=F,F=(0,b.Ik)(H,z)}return{left:J,top:dt,key:k}}return{left:0,top:0,key:k}},Y=K=>{const H=window.getComputedStyle(K),B=new DOMMatrixReadOnly(H.transform);return{translateX:B.m41,translateY:B.m42}},P=K=>{const H=sdkStore.locUpCanvasKey(K);if(H){var B;const L=(0,Z.Pb)(sdkStore.getRelocateLocalBound(K,H)),ot=sdkStore.getHotItem(H),G=(ot==null||(B=ot.hotAttr)==null?void 0:B.h)-L[3];let z=0;const{h:F}=sdkStore.getCCSBound2308(K);if((0,m.OO)(K)){var X;const k=(0,b.Ik)(sdkStore,K);z=((X=sdkStore.getHotItem(k))==null||(X=X.hotAttr)==null?void 0:X.h)-F}else{var V;const k=sdkStore.locUpRBPageKey(K);z=((V=sdkStore.getHotItem(k))==null||(V=V.hotAttr)==null?void 0:V.deviceH)-F}return z-G}return 0},R=(K,H)=>{const B=sdkStore.locUpHotCanvasKey(K)||sdkStore.locUpRBPageKey(K);if(!B)return"no-sup";const{x:X,y:V,w:L,h:ot}=sdkStore.getRelocateLocalBound(K,B),G=X-L/2;let z=V-ot/2;return H&&(z=P(K)),{left:G,top:z}},at=K=>{var H,B;const X=document.querySelector('#simulator .tree-node[data-cid="'+K+'"]');return X?{isSticky:Number((H=X.attributes["data-is-sticky"])==null?void 0:H.value)===1,stickyOffset:Number((B=X.attributes["sticky-offset"])==null?void 0:B.value)}:{isSticky:!1,stickyOffset:0}},$=K=>{let{isPreviewNoCanvas:H,activePageKey:B,treeNode:X,scrollTop:V,scrollLeft:L,h:ot=0,sdkStore:G,getPanelInfo:z,fixedOnBottomDiffY:F=0}=K;const k={x:0,y:0},{widget:{key:ut}}=X,E=(0,W.Oj)(ut);let J=0,dt=0;if(H&&B){const pt=G.getHotItem(B),{x:T,y:ht}=(0,M.lY)(pt,G,!0);J=-T,dt=-ht}if(z){const pt=z(),T=(pt==null?void 0:pt.key)||ut,{fixedOnTop:ht,fixedOnBottom:yt}=(0,O.dI)(T),ct=G.locUpColdCanvasKey(T),{isFixedOnHeader:gt,isFixedOnFooter:bt}=(0,I.qn)(ut,ct),Tt=R(T,yt||bt);if(Tt==="no-sup")return{x:0,y:0};const Pt=Tt.left;let It=Tt.top;const{isSticky:Dt,stickyOffset:jt}=at(T);Dt&&(It=jt);const{warpKey:Mt,fixedOnTop:Q,fixedOnBottom:vt,isSticky:Lt,stickyOffset:Rt}=j(T)||{};if(Mt){const he=R(Mt,vt);if(he==="no-sup")return{x:0,y:0};if(Lt)It=It-he.top+Rt;else if(vt){const _e=G.getRelocateLocalBound(Mt,ct),Fe=G.getRelocateLocalBound(T,ct);It=he.top+(Fe.y-Fe.h/2)-(_e.y-_e.h/2)}}const Bt=ht||yt||gt||bt||Q||vt,Ht=!V||Bt||Dt||Lt?0:V,zt=!L||Bt?0:L,Kt=0,ce=0;k.x=pt.left+Pt+zt+J+Kt,k.y=pt.top+It+Ht+dt+ot+ce;const oe=document.querySelector("#pscreen"+ct);if(oe){const{translateX:he,translateY:_e}=Y(oe);k.x+=he||0,k.y+=_e||0}}else{const{transform:pt,rect:T}=E,{x:ht,y:yt}=pt.clone().apply({x:T.x,y:T.y});return{x:L?ht+J+L:ht+J,y:V?yt+dt+V:yt+dt+ot}}return k}},74964:($t,wt,w)=>{"use strict";w.d(wt,{M:()=>at,z:()=>$});var Z=w(74059),I=w(51044),O=w(86634),b=w.n(O),M=w(59742),W=w(68496),st=w(73518),rt=w.n(st),m=w(62931),U=w(29288),A=w(54635),j=w(62065),it=w(66131),Y=w(19216),P=w(70594),R=w(57464);const at={[A.Ci.hide]:"overFlowHide",[A.Ci.auto]:"overFlowAuto",[A.Ci.horizontal]:"overFlowX",[A.Ci.vertical]:"overFlowY"};class $ extends I.PureComponent{constructor(){super(...arguments),(0,Z.A)(this,"state",{cacheTag:0,stickyWidgetList:[]}),(0,Z.A)(this,"setScrollElement",B=>this.$scrollElement=B),(0,Z.A)(this,"handleScroll",B=>{const{dispatch:X,basketKey:V}=this.props,{scrollTop:L,scrollLeft:ot}=B.target;B.stopPropagation();const G=(0,M.OO)(V)?(0,M.QL)(V).pop():V;X({type:"runner:update:basket:scroll-top",payload:{basketKey:G,scrollTop:L}}),X({type:"runner:update:basket:scroll-left",payload:{basketKey:G,scrollLeft:ot}}),rt()(()=>{this.handleUpdateScroll(L)})()}),(0,Z.A)(this,"handleWheel",B=>{var X;const V=Number(B.currentTarget.dataset.scroll);if(!(!V||V===A.Ci.hide)&&!(!B.deltaX&&V===A.Ci.horizontal||!B.deltaY&&V===A.Ci.vertical)){if((X=this.$scrollElement)!=null&&X.querySelector(".isShowDropMenu")){B.preventDefault();return}B.stopPropagation()}}),(0,Z.A)(this,"handleRefresh",()=>this.setState({cacheTag:Math.random()})),(0,Z.A)(this,"handleRefreshStickyWidgetList",()=>{const B=document.querySelectorAll(".shadow-sticky"),X=Array.from(B);this.setState({stickyWidgetList:X})}),(0,Z.A)(this,"handleUpdateScroll",(B,X)=>{const{basketKey:V,activeBasketCanvasKey:L}=this.props;X!=null&&X.length&&this.setState({stickyWidgetList:X}),(0,it.ZA)({stickyWidgetList:X||this.state.stickyWidgetList,scrollTop:B,returnFunc:ot=>(0,it.z6)(ot,V),runnerCanvasKey:L})}),(0,Z.A)(this,"handleResetStickyWidgetList",()=>{const{basketKey:B,activeBasketCanvasKey:X}=this.props;(0,it.mC)({stickyWidgetList:this.state.stickyWidgetList,returnFunc:V=>(0,it.z6)(V,B),runnerCanvasKey:X})})}componentDidMount(){this.$scrollElement&&this.$scrollElement.addEventListener("wheel",this.handleWheel,{capture:!0}),this.timer=setTimeout(()=>{const B=document.querySelectorAll(".shadow-sticky"),X=Array.from(B);this.setState({stickyWidgetList:X})})}componentWillUnmount(){this.$scrollElement&&this.$scrollElement.removeEventListener("wheel",this.handleWheel,{capture:!0}),clearTimeout(this.timer)}render(){const{className:B,style:X,transition:V,isEditingCombo:L,basketKey:ot,activeBasketCanvasKey:G,isWithinHeader:z,isWithinFooter:F}=this.props;if(!G||sdkStore.isTrashed(ot)||sdkStore.isTrashed(G))return null;const k=sdkStore.getHotItem(ot),ut=sdkStore.getHotItem(G);if(!k||!ut)return null;const{hotAttr:{w:E,h:J,scroll:dt}}=k,{hotAttr:{x:pt,y:T,w:ht,h:yt}}=ut,ct=E>=ht&&J>=yt?"none":"auto",gt={width:(pt-ht/2>=0?Math.max(pt+ht/2,E):Math.max(ht,E-pt+ht/2))+"px",height:(T-yt/2>=0?Math.max(T+yt/2,J):Math.max(yt,J-T+yt/2))+"px",pointerEvents:ct};return(0,R.jsx)(P.c,{className:B,style:{...X,pointerEvents:ct},onScroll:this.handleScroll,children:(0,R.jsx)("div",{className:"panel-scroll-box",style:gt,ref:this.setScrollElement,"data-scroll":dt,children:(0,R.jsx)(K,{basket:k,activeBasketCanvas:ut,transition:V,isEditingCombo:L,isWithinHeader:z,isWithinFooter:F,onRefresh:this.handleRefresh,onResetStickyWidgetList:this.handleResetStickyWidgetList,onRefreshStickyWidgetList:this.handleRefreshStickyWidgetList,onUpdateScroll:this.handleUpdateScroll})})})}}class K extends I.PureComponent{constructor(){super(...arguments),(0,Z.A)(this,"resetBasketCanvasScrollPos",()=>{const{basket:B,activeBasketCanvas:X,onUpdateScroll:V}=this.props,{key:L,hotAttr:{scroll:ot}}=B,{hotAttr:{x:G,y:z,w:F,h:k}}=X,ut=document.querySelector('[data-cid="'+L+'"] .'+(ot?at[ot]:"overflowHide"));if(ut){const E=Math.max(0,-G+F/2),J=Math.max(0,-z+k/2);ut.scrollLeft=E,ut.scrollTop=J,setTimeout(()=>{const dt=document.querySelectorAll(".shadow-sticky"),pt=Array.from(dt);V(J,pt)})}}),(0,Z.A)(this,"setElementRef",B=>this.$elem=B),(0,Z.A)(this,"handleUpdateMouseEventHandler",()=>{const{transition:{delay:B,duration:X}}=this.props;setTimeout(()=>this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem),B+X+100)})}componentDidUpdate(B){if(this.resetBasketCanvasScrollPos(),B.activeBasketCanvas.key!==this.props.activeBasketCanvas.key){const{transition:{delay:X,duration:V}}=this.props;setTimeout(()=>this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem),X+V+100)}}componentDidMount(){this.resetBasketCanvasScrollPos(),this.$elem&&MB.runnerController.initMouseEventHandler(this.$elem)}render(){const{transition:B,isInvalidState:X,isEditingCombo:V,basket:L,activeBasketCanvas:ot,isWithinHeader:G,isWithinFooter:z,onRefresh:F,onResetStickyWidgetList:k,onRefreshStickyWidgetList:ut}=this.props,{key:E,hotAttr:{w:J,h:dt}}=L,{key:pt,hotAttr:{x:T,y:ht,fill:yt,w:ct,h:gt}}=ot,bt="state"+E+pt+"p",Tt=sdkStore.getInteractionsOf(pt).filter(jt=>!jt.subKey),Pt=(0,j.t$)((0,Y.I3)(sdkStore,(0,j.G$)(Tt),pt),!1),It=b()("pstate","state","active",Pt),Dt={top:Math.max(0,ht-gt/2),left:Math.max(0,T-ct/2),width:ct,height:gt,...J>=ct&&dt>=gt?{pointerEvents:"none"}:{pointerEvents:"auto"},...yt.fillIsVisible&&{backgroundColor:(0,W.t0)(yt.solidColor)}};return(0,R.jsx)("div",{ref:this.setElementRef,id:bt,"data-cid":pt,className:It,style:Dt,children:X?(0,R.jsx)(U.A,{}):(0,R.jsx)(m.Y,{canvasKey:pt,transition:B,isEditingCombo:V,onRefresh:F,onResetStickyWidgetList:k,onRefreshStickyWidgetList:ut,onUpdateMouseEventHandler:this.handleUpdateMouseEventHandler,children:jt=>jt.render({panelCid:E,isWithinHeader:G,isWithinFooter:z})})})}}},70594:($t,wt,w)=>{"use strict";w.d(wt,{D:()=>O,c:()=>b});var Z=w(21676),I=w(87954);const O=(0,Z.Ay)(I.W).withConfig({displayName:"styles__StyledPanelScroll",componentId:"sc-vj0jvt-0"})(["position:absolute;width:100%;height:100%;top:0;left:0;z-index:",";.handler{left:10%;width:80%;}.y-handler{top:10%;height:80%;}.x-track{.handler{.thumb{height:6px;background:#d2d2d8;}}}.y-track{.handler{.thumb{width:6px;background:#d2d2d8;}}}.track{z-index:",";}"],M=>M.z,M=>M.z+1),b=Z.Ay.div.withConfig({displayName:"styles__StyledBasketRunner",componentId:"sc-vj0jvt-1"})(["position:absolute;z-index:5;.state{position:absolute;width:100%;height:100%;z-index:5;background-size:100% auto;&.active{z-index:6;}}&.overFlowHide{overflow:hidden;}&.overFlowAuto{overflow:auto;overflow:overlay;}&.overFlowX{overflow-x:auto;overflow-x:overlay;overflow-y:hidden;}&.overFlowY{overflow-y:auto;overflow-y:overlay;overflow-x:hidden;}"])},69447:($t,wt,w)=>{"use strict";w.d(wt,{AG:()=>Z,Fy:()=>O,JD:()=>I});const Z=new Map([["110000","\u5317\u4EAC"],["120000","\u5929\u6D25"],["130000","\u6CB3\u5317"],["140000","\u5C71\u897F"],["150000","\u5185\u8499\u53E4"],["210000","\u8FBD\u5B81"],["220000","\u5409\u6797"],["230000","\u9ED1\u9F99\u6C5F"],["310000","\u4E0A\u6D77"],["320000","\u6C5F\u82CF"],["330000","\u6D59\u6C5F"],["340000","\u5B89\u5FBD"],["350000","\u798F\u5EFA"],["360000","\u6C5F\u897F"],["370000","\u5C71\u4E1C"],["410000","\u6CB3\u5357"],["420000","\u6E56\u5317"],["430000","\u6E56\u5357"],["440000","\u5E7F\u4E1C"],["450000","\u5E7F\u897F"],["460000","\u6D77\u5357"],["500000","\u91CD\u5E86"],["510000","\u56DB\u5DDD"],["520000","\u8D35\u5DDE"],["530000","\u4E91\u5357"],["540000","\u897F\u85CF"],["610000","\u9655\u897F"],["620000","\u7518\u8083"],["630000","\u9752\u6D77"],["640000","\u5B81\u590F"],["650000","\u65B0\u7586"],["710000","\u53F0\u6E7E"],["810000","\u9999\u6E2F"],["820000","\u6FB3\u95E8"]]),I=new Map([["100000",["\u5317\u4EAC","\u5929\u6D25","\u6CB3\u5317","\u5C71\u897F","\u5185\u8499\u53E4","\u8FBD\u5B81","\u5409\u6797","\u9ED1\u9F99\u6C5F","\u4E0A\u6D77","\u6C5F\u82CF","\u6D59\u6C5F","\u5B89\u5FBD","\u798F\u5EFA","\u6C5F\u897F","\u5C71\u4E1C","\u6CB3\u5357","\u6E56\u5317","\u6E56\u5357","\u5E7F\u4E1C","\u5E7F\u897F","\u6D77\u5357","\u91CD\u5E86","\u56DB\u5DDD","\u8D35\u5DDE","\u4E91\u5357","\u897F\u85CF","\u9655\u897F","\u7518\u8083","\u9752\u6D77","\u5B81\u590F","\u65B0\u7586","\u53F0\u6E7E","\u9999\u6E2F","\u6FB3\u95E8"]],["110000",["\u4E1C\u57CE\u533A","\u897F\u57CE\u533A","\u671D\u9633\u533A","\u4E30\u53F0\u533A","\u77F3\u666F\u5C71\u533A","\u6D77\u6DC0\u533A","\u95E8\u5934\u6C9F\u533A","\u623F\u5C71\u533A","\u901A\u5DDE\u533A","\u987A\u4E49\u533A","\u660C\u5E73\u533A","\u5927\u5174\u533A","\u6000\u67D4\u533A","\u5E73\u8C37\u533A","\u5BC6\u4E91\u533A","\u5EF6\u5E86\u533A"]],["120000",["\u548C\u5E73\u533A","\u6CB3\u4E1C\u533A","\u6CB3\u897F\u533A","\u5357\u5F00\u533A","\u6CB3\u5317\u533A","\u7EA2\u6865\u533A","\u4E1C\u4E3D\u533A","\u897F\u9752\u533A","\u6D25\u5357\u533A","\u5317\u8FB0\u533A","\u6B66\u6E05\u533A","\u5B9D\u577B\u533A","\u6EE8\u6D77\u65B0\u533A","\u5B81\u6CB3\u533A","\u9759\u6D77\u533A","\u84DF\u5DDE\u533A"]],["130000",["\u77F3\u5BB6\u5E84\u5E02","\u5510\u5C71\u5E02","\u79E6\u7687\u5C9B\u5E02","\u90AF\u90F8\u5E02","\u90A2\u53F0\u5E02","\u4FDD\u5B9A\u5E02","\u5F20\u5BB6\u53E3\u5E02","\u627F\u5FB7\u5E02","\u6CA7\u5DDE\u5E02","\u5ECA\u574A\u5E02","\u8861\u6C34\u5E02"]],["140000",["\u592A\u539F\u5E02","\u5927\u540C\u5E02","\u9633\u6CC9\u5E02","\u957F\u6CBB\u5E02","\u664B\u57CE\u5E02","\u6714\u5DDE\u5E02","\u664B\u4E2D\u5E02","\u8FD0\u57CE\u5E02","\u5FFB\u5DDE\u5E02","\u4E34\u6C7E\u5E02","\u5415\u6881\u5E02"]],["150000",["\u547C\u548C\u6D69\u7279\u5E02","\u5305\u5934\u5E02","\u4E4C\u6D77\u5E02","\u8D64\u5CF0\u5E02","\u901A\u8FBD\u5E02","\u9102\u5C14\u591A\u65AF\u5E02","\u547C\u4F26\u8D1D\u5C14\u5E02","\u5DF4\u5F66\u6DD6\u5C14\u5E02","\u4E4C\u5170\u5BDF\u5E03\u5E02","\u5174\u5B89\u76DF","\u9521\u6797\u90ED\u52D2\u76DF","\u963F\u62C9\u5584\u76DF"]],["210000",["\u6C88\u9633\u5E02","\u5927\u8FDE\u5E02","\u978D\u5C71\u5E02","\u629A\u987A\u5E02","\u672C\u6EAA\u5E02","\u4E39\u4E1C\u5E02","\u9526\u5DDE\u5E02","\u8425\u53E3\u5E02","\u961C\u65B0\u5E02","\u8FBD\u9633\u5E02","\u76D8\u9526\u5E02","\u94C1\u5CAD\u5E02","\u671D\u9633\u5E02","\u846B\u82A6\u5C9B\u5E02"]],["220000",["\u957F\u6625\u5E02","\u5409\u6797\u5E02","\u56DB\u5E73\u5E02","\u8FBD\u6E90\u5E02","\u901A\u5316\u5E02","\u767D\u5C71\u5E02","\u677E\u539F\u5E02","\u767D\u57CE\u5E02","\u5EF6\u8FB9\u671D\u9C9C\u65CF\u81EA\u6CBB\u5DDE"]],["230000",["\u54C8\u5C14\u6EE8\u5E02","\u9F50\u9F50\u54C8\u5C14\u5E02","\u9E21\u897F\u5E02","\u9E64\u5C97\u5E02","\u53CC\u9E2D\u5C71\u5E02","\u5927\u5E86\u5E02","\u4F0A\u6625\u5E02","\u4F73\u6728\u65AF\u5E02","\u4E03\u53F0\u6CB3\u5E02","\u7261\u4E39\u6C5F\u5E02","\u9ED1\u6CB3\u5E02","\u7EE5\u5316\u5E02","\u5927\u5174\u5B89\u5CAD\u5730\u533A"]],["310000",["\u9EC4\u6D66\u533A","\u5F90\u6C47\u533A","\u957F\u5B81\u533A","\u9759\u5B89\u533A","\u666E\u9640\u533A","\u8679\u53E3\u533A","\u6768\u6D66\u533A","\u95F5\u884C\u533A","\u5B9D\u5C71\u533A","\u5609\u5B9A\u533A","\u6D66\u4E1C\u65B0\u533A","\u91D1\u5C71\u533A","\u677E\u6C5F\u533A","\u9752\u6D66\u533A","\u5949\u8D24\u533A","\u5D07\u660E\u533A"]],["320000",["\u5357\u4EAC\u5E02","\u65E0\u9521\u5E02","\u5F90\u5DDE\u5E02","\u5E38\u5DDE\u5E02","\u82CF\u5DDE\u5E02","\u5357\u901A\u5E02","\u8FDE\u4E91\u6E2F\u5E02","\u6DEE\u5B89\u5E02","\u76D0\u57CE\u5E02","\u626C\u5DDE\u5E02","\u9547\u6C5F\u5E02","\u6CF0\u5DDE\u5E02","\u5BBF\u8FC1\u5E02"]],["330000",["\u676D\u5DDE\u5E02","\u5B81\u6CE2\u5E02","\u6E29\u5DDE\u5E02","\u5609\u5174\u5E02","\u6E56\u5DDE\u5E02","\u7ECD\u5174\u5E02","\u91D1\u534E\u5E02","\u8862\u5DDE\u5E02","\u821F\u5C71\u5E02","\u53F0\u5DDE\u5E02","\u4E3D\u6C34\u5E02"]],["340000",["\u5408\u80A5\u5E02","\u829C\u6E56\u5E02","\u868C\u57E0\u5E02","\u6DEE\u5357\u5E02","\u9A6C\u978D\u5C71\u5E02","\u6DEE\u5317\u5E02","\u94DC\u9675\u5E02","\u5B89\u5E86\u5E02","\u9EC4\u5C71\u5E02","\u6EC1\u5DDE\u5E02","\u961C\u9633\u5E02","\u5BBF\u5DDE\u5E02","\u516D\u5B89\u5E02","\u4EB3\u5DDE\u5E02","\u6C60\u5DDE\u5E02","\u5BA3\u57CE\u5E02"]],["350000",["\u798F\u5DDE\u5E02","\u53A6\u95E8\u5E02","\u8386\u7530\u5E02","\u4E09\u660E\u5E02","\u6CC9\u5DDE\u5E02","\u6F33\u5DDE\u5E02","\u5357\u5E73\u5E02","\u9F99\u5CA9\u5E02","\u5B81\u5FB7\u5E02"]],["360000",["\u5357\u660C\u5E02","\u666F\u5FB7\u9547\u5E02","\u840D\u4E61\u5E02","\u4E5D\u6C5F\u5E02","\u65B0\u4F59\u5E02","\u9E70\u6F6D\u5E02","\u8D63\u5DDE\u5E02","\u5409\u5B89\u5E02","\u5B9C\u6625\u5E02","\u629A\u5DDE\u5E02","\u4E0A\u9976\u5E02"]],["370000",["\u6D4E\u5357\u5E02","\u9752\u5C9B\u5E02","\u6DC4\u535A\u5E02","\u67A3\u5E84\u5E02","\u4E1C\u8425\u5E02","\u70DF\u53F0\u5E02","\u6F4D\u574A\u5E02","\u6D4E\u5B81\u5E02","\u6CF0\u5B89\u5E02","\u5A01\u6D77\u5E02","\u65E5\u7167\u5E02","\u4E34\u6C82\u5E02","\u5FB7\u5DDE\u5E02","\u804A\u57CE\u5E02","\u6EE8\u5DDE\u5E02","\u83CF\u6CFD\u5E02"]],["410000",["\u90D1\u5DDE\u5E02","\u5F00\u5C01\u5E02","\u6D1B\u9633\u5E02","\u5E73\u9876\u5C71\u5E02","\u5B89\u9633\u5E02","\u9E64\u58C1\u5E02","\u65B0\u4E61\u5E02","\u7126\u4F5C\u5E02","\u6FEE\u9633\u5E02","\u8BB8\u660C\u5E02","\u6F2F\u6CB3\u5E02","\u4E09\u95E8\u5CE1\u5E02","\u5357\u9633\u5E02","\u5546\u4E18\u5E02","\u4FE1\u9633\u5E02","\u5468\u53E3\u5E02","\u9A7B\u9A6C\u5E97\u5E02","\u6D4E\u6E90\u5E02"]],["420000",["\u6B66\u6C49\u5E02","\u9EC4\u77F3\u5E02","\u5341\u5830\u5E02","\u5B9C\u660C\u5E02","\u8944\u9633\u5E02","\u9102\u5DDE\u5E02","\u8346\u95E8\u5E02","\u5B5D\u611F\u5E02","\u8346\u5DDE\u5E02","\u9EC4\u5188\u5E02","\u54B8\u5B81\u5E02","\u968F\u5DDE\u5E02","\u6069\u65BD\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u4ED9\u6843\u5E02","\u6F5C\u6C5F\u5E02","\u5929\u95E8\u5E02","\u795E\u519C\u67B6\u6797\u533A"]],["430000",["\u957F\u6C99\u5E02","\u682A\u6D32\u5E02","\u6E58\u6F6D\u5E02","\u8861\u9633\u5E02","\u90B5\u9633\u5E02","\u5CB3\u9633\u5E02","\u5E38\u5FB7\u5E02","\u5F20\u5BB6\u754C\u5E02","\u76CA\u9633\u5E02","\u90F4\u5DDE\u5E02","\u6C38\u5DDE\u5E02","\u6000\u5316\u5E02","\u5A04\u5E95\u5E02","\u6E58\u897F\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE"]],["440000",["\u5E7F\u5DDE\u5E02","\u97F6\u5173\u5E02","\u6DF1\u5733\u5E02","\u73E0\u6D77\u5E02","\u6C55\u5934\u5E02","\u4F5B\u5C71\u5E02","\u6C5F\u95E8\u5E02","\u6E5B\u6C5F\u5E02","\u8302\u540D\u5E02","\u8087\u5E86\u5E02","\u60E0\u5DDE\u5E02","\u6885\u5DDE\u5E02","\u6C55\u5C3E\u5E02","\u6CB3\u6E90\u5E02","\u9633\u6C5F\u5E02","\u6E05\u8FDC\u5E02","\u4E1C\u839E\u5E02","\u4E2D\u5C71\u5E02","\u6F6E\u5DDE\u5E02","\u63ED\u9633\u5E02","\u4E91\u6D6E\u5E02"]],["450000",["\u5357\u5B81\u5E02","\u67F3\u5DDE\u5E02","\u6842\u6797\u5E02","\u68A7\u5DDE\u5E02","\u5317\u6D77\u5E02","\u9632\u57CE\u6E2F\u5E02","\u94A6\u5DDE\u5E02","\u8D35\u6E2F\u5E02","\u7389\u6797\u5E02","\u767E\u8272\u5E02","\u8D3A\u5DDE\u5E02","\u6CB3\u6C60\u5E02","\u6765\u5BBE\u5E02","\u5D07\u5DE6\u5E02"]],["460000",["\u6D77\u53E3\u5E02","\u4E09\u4E9A\u5E02","\u4E09\u6C99\u5E02","\u510B\u5DDE\u5E02","\u4E94\u6307\u5C71\u5E02","\u743C\u6D77\u5E02","\u6587\u660C\u5E02","\u4E07\u5B81\u5E02","\u4E1C\u65B9\u5E02","\u5B9A\u5B89\u53BF","\u5C6F\u660C\u53BF","\u6F84\u8FC8\u53BF","\u4E34\u9AD8\u53BF","\u767D\u6C99\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u660C\u6C5F\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u4E50\u4E1C\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u9675\u6C34\u9ECE\u65CF\u81EA\u6CBB\u53BF","\u4FDD\u4EAD\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u743C\u4E2D\u9ECE\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF"]],["500000",["\u4E07\u5DDE\u533A","\u6DAA\u9675\u533A","\u6E1D\u4E2D\u533A","\u5927\u6E21\u53E3\u533A","\u6C5F\u5317\u533A","\u6C99\u576A\u575D\u533A","\u4E5D\u9F99\u5761\u533A","\u5357\u5CB8\u533A","\u5317\u789A\u533A","\u7DA6\u6C5F\u533A","\u5927\u8DB3\u533A","\u6E1D\u5317\u533A","\u5DF4\u5357\u533A","\u9ED4\u6C5F\u533A","\u957F\u5BFF\u533A","\u6C5F\u6D25\u533A","\u5408\u5DDD\u533A","\u6C38\u5DDD\u533A","\u5357\u5DDD\u533A","\u74A7\u5C71\u533A","\u94DC\u6881\u533A","\u6F7C\u5357\u533A","\u8363\u660C\u533A","\u5F00\u5DDE\u533A","\u6881\u5E73\u533A","\u6B66\u9686\u533A","\u57CE\u53E3\u53BF","\u4E30\u90FD\u53BF","\u57AB\u6C5F\u53BF","\u5FE0\u53BF","\u4E91\u9633\u53BF","\u5949\u8282\u53BF","\u5DEB\u5C71\u53BF","\u5DEB\u6EAA\u53BF","\u77F3\u67F1\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF","\u79C0\u5C71\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u9149\u9633\u571F\u5BB6\u65CF\u82D7\u65CF\u81EA\u6CBB\u53BF","\u5F6D\u6C34\u82D7\u65CF\u571F\u5BB6\u65CF\u81EA\u6CBB\u53BF"]],["510000",["\u6210\u90FD\u5E02","\u81EA\u8D21\u5E02","\u6500\u679D\u82B1\u5E02","\u6CF8\u5DDE\u5E02","\u5FB7\u9633\u5E02","\u7EF5\u9633\u5E02","\u5E7F\u5143\u5E02","\u9042\u5B81\u5E02","\u5185\u6C5F\u5E02","\u4E50\u5C71\u5E02","\u5357\u5145\u5E02","\u7709\u5C71\u5E02","\u5B9C\u5BBE\u5E02","\u5E7F\u5B89\u5E02","\u8FBE\u5DDE\u5E02","\u96C5\u5B89\u5E02","\u5DF4\u4E2D\u5E02","\u8D44\u9633\u5E02","\u963F\u575D\u85CF\u65CF\u7F8C\u65CF\u81EA\u6CBB\u5DDE","\u7518\u5B5C\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u51C9\u5C71\u5F5D\u65CF\u81EA\u6CBB\u5DDE"]],["520000",["\u8D35\u9633\u5E02","\u516D\u76D8\u6C34\u5E02","\u9075\u4E49\u5E02","\u5B89\u987A\u5E02","\u6BD5\u8282\u5E02","\u94DC\u4EC1\u5E02","\u9ED4\u897F\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u9ED4\u4E1C\u5357\u82D7\u65CF\u4F97\u65CF\u81EA\u6CBB\u5DDE","\u9ED4\u5357\u5E03\u4F9D\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE"]],["530000",["\u6606\u660E\u5E02","\u66F2\u9756\u5E02","\u7389\u6EAA\u5E02","\u4FDD\u5C71\u5E02","\u662D\u901A\u5E02","\u4E3D\u6C5F\u5E02","\u666E\u6D31\u5E02","\u4E34\u6CA7\u5E02","\u695A\u96C4\u5F5D\u65CF\u81EA\u6CBB\u5DDE","\u7EA2\u6CB3\u54C8\u5C3C\u65CF\u5F5D\u65CF\u81EA\u6CBB\u5DDE","\u6587\u5C71\u58EE\u65CF\u82D7\u65CF\u81EA\u6CBB\u5DDE","\u897F\u53CC\u7248\u7EB3\u50A3\u65CF\u81EA\u6CBB\u5DDE","\u5927\u7406\u767D\u65CF\u81EA\u6CBB\u5DDE","\u5FB7\u5B8F\u50A3\u65CF\u666F\u9887\u65CF\u81EA\u6CBB\u5DDE","\u6012\u6C5F\u5088\u50F3\u65CF\u81EA\u6CBB\u5DDE","\u8FEA\u5E86\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["540000",["\u62C9\u8428\u5E02","\u65E5\u5580\u5219\u5E02","\u660C\u90FD\u5E02","\u6797\u829D\u5E02","\u5C71\u5357\u5E02","\u90A3\u66F2\u5E02","\u963F\u91CC\u5730\u533A"]],["610000",["\u897F\u5B89\u5E02","\u94DC\u5DDD\u5E02","\u5B9D\u9E21\u5E02","\u54B8\u9633\u5E02","\u6E2D\u5357\u5E02","\u5EF6\u5B89\u5E02","\u6C49\u4E2D\u5E02","\u6986\u6797\u5E02","\u5B89\u5EB7\u5E02","\u5546\u6D1B\u5E02"]],["620000",["\u5170\u5DDE\u5E02","\u5609\u5CEA\u5173\u5E02","\u91D1\u660C\u5E02","\u767D\u94F6\u5E02","\u5929\u6C34\u5E02","\u6B66\u5A01\u5E02","\u5F20\u6396\u5E02","\u5E73\u51C9\u5E02","\u9152\u6CC9\u5E02","\u5E86\u9633\u5E02","\u5B9A\u897F\u5E02","\u9647\u5357\u5E02","\u4E34\u590F\u56DE\u65CF\u81EA\u6CBB\u5DDE","\u7518\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["630000",["\u897F\u5B81\u5E02","\u6D77\u4E1C\u5E02","\u6D77\u5317\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u9EC4\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u6D77\u5357\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u679C\u6D1B\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u7389\u6811\u85CF\u65CF\u81EA\u6CBB\u5DDE","\u6D77\u897F\u8499\u53E4\u65CF\u85CF\u65CF\u81EA\u6CBB\u5DDE"]],["640000",["\u94F6\u5DDD\u5E02","\u77F3\u5634\u5C71\u5E02","\u5434\u5FE0\u5E02","\u56FA\u539F\u5E02","\u4E2D\u536B\u5E02"]],["650000",["\u4E4C\u9C81\u6728\u9F50\u5E02","\u514B\u62C9\u739B\u4F9D\u5E02","\u5410\u9C81\u756A\u5E02","\u54C8\u5BC6\u5E02","\u660C\u5409\u56DE\u65CF\u81EA\u6CBB\u5DDE","\u535A\u5C14\u5854\u62C9\u8499\u53E4\u81EA\u6CBB\u5DDE","\u5DF4\u97F3\u90ED\u695E\u8499\u53E4\u81EA\u6CBB\u5DDE","\u963F\u514B\u82CF\u5730\u533A","\u514B\u5B5C\u52D2\u82CF\u67EF\u5C14\u514B\u5B5C\u81EA\u6CBB\u5DDE","\u5580\u4EC0\u5730\u533A","\u548C\u7530\u5730\u533A","\u4F0A\u7281\u54C8\u8428\u514B\u81EA\u6CBB\u5DDE","\u5854\u57CE\u5730\u533A","\u963F\u52D2\u6CF0\u5730\u533A","\u77F3\u6CB3\u5B50\u5E02","\u963F\u62C9\u5C14\u5E02","\u56FE\u6728\u8212\u514B\u5E02","\u4E94\u5BB6\u6E20\u5E02","\u5317\u5C6F\u5E02","\u94C1\u95E8\u5173\u5E02","\u53CC\u6CB3\u5E02","\u53EF\u514B\u8FBE\u62C9\u5E02","\u6606\u7389\u5E02","\u80E1\u6768\u6CB3\u5E02"]],["710000",["\u8FDE\u6C5F\u53BF","\u5B9C\u5170\u53BF","\u5F70\u5316\u53BF","\u5357\u6295\u53BF","\u4E91\u6797\u53BF","\u57FA\u9686\u5E02","\u53F0\u5317\u5E02","\u65B0\u5317\u5E02","\u53F0\u4E2D\u5E02","\u53F0\u5357\u5E02","\u6843\u56ED\u5E02","\u82D7\u6817\u53BF","\u5609\u4E49\u5E02","\u5609\u4E49\u53BF","\u91D1\u95E8\u53BF","\u9AD8\u96C4\u5E02","\u53F0\u4E1C\u53BF","\u82B1\u83B2\u53BF","\u6F8E\u6E56\u53BF","\u65B0\u7AF9\u5E02","\u65B0\u7AF9\u53BF","\u5C4F\u4E1C\u53BF"]],["810000",["\u4E2D\u897F\u533A","\u6E7E\u4ED4\u533A","\u4E1C\u533A","\u5357\u533A","\u6CB9\u5C16\u65FA\u533A","\u6DF1\u6C34\u57D7\u533A","\u4E5D\u9F99\u57CE\u533A","\u9EC4\u5927\u4ED9\u533A","\u89C2\u5858\u533A","\u8343\u6E7E\u533A","\u5C6F\u95E8\u533A","\u5143\u6717\u533A","\u5317\u533A","\u5927\u57D4\u533A","\u897F\u8D21\u533A","\u6C99\u7530\u533A","\u8475\u9752\u533A","\u79BB\u5C9B\u533A"]],["820000",["\u82B1\u5730\u739B\u5802\u533A","\u82B1\u738B\u5802\u533A","\u671B\u5FB7\u5802\u533A","\u5927\u5802\u533A","\u98CE\u987A\u5802\u533A","\u5609\u6A21\u5802\u533A","\u8DEF\u51FC\u586B\u6D77\u533A","\u5723\u65B9\u6D4E\u5404\u5802\u533A"]]]),O=[4210607103,4292934911,3655729151,3657423359,4293315839,4291611903,3771858943,3102928383,3773935359,3522494463]},53485:($t,wt,w)=>{"use strict";w.d(wt,{B:()=>Z,R:()=>I});const Z=O=>{O.setAttribute("data-mark","echarts-div")},I=()=>{for(const O of document.querySelectorAll("[data-mark=echarts-div] svg"))O.style.transform="translateZ(0)";requestAnimationFrame(()=>{for(const O of document.querySelectorAll("[data-mark=echarts-div] svg"))O.style.transform=""})}},39541:($t,wt,w)=>{"use strict";w.d(wt,{N:()=>Z});const Z={bar_chart:"bar_chart",horizontal_bar_chart:"horizontal_bar_chart",line_chart:"line_chart",line_area_chart:"line_area_chart",pie_chart:"pie_chart",ring_chart:"ring_chart",progress_chart:"progress_chart",radar_chart:"radar_chart",mixed_bar_line_chart:"mixed_bar_line_chart",waterfall_chart:"waterfall_chart",scatter_chart:"scatter_chart",nightingale_chart:"nightingale_chart",funnel_chart:"funnel_chart",gauge_chart:"gauge_chart",liquid_fill_gauge_chart:"liquid_fill_gauge_chart",map_chart:"map_chart",bubble_chart:"bubble_chart",radial_polar_chart:"radial_polar_chart",sunburst_chart:"sunburst_chart",word_cloud_chart:"word_cloud_chart",sankey_chart:"sankey_chart",boxplot_chart:"boxplot_chart"}},62140:($t,wt,w)=>{"use strict";w.d(wt,{o:()=>b,q:()=>rt});var Z=w(86688),I=w(3664),O=w(30954);const b=m=>{const U=m[0].data.map((j,it)=>m.map(Y=>Y.data[it]));let A=0;for(let j=0;j<U.length;j++)if(!U[j].every(Y=>!Y)){A=j;break}return m.map(j=>{const it=j.data.slice(A);return{...j,data:it.map((Y,P)=>P===it.length-1?Number(Y):String(Y))}})},M=m=>b(m).filter(A=>{const j=A.data,it=j.length,Y=!j[0];if(isNaN(j[it-1])||j[it-1]<=0||Y)return!1;const R=j.slice(0,it-1);if(R.every($=>!$))return!1;let at=!1;for(let $=0;$<R.length-1;$++){const K=R.slice($+1,it-1);if(!R[$]&&K.some(H=>H)){at=!0;break}}return!at}),W=m=>{let{name:U,depth:A,data:j,maxDepth:it,theme:Y,color:P=void 0,index:R=0}=m;const at=U==="root"?j:U?j.filter(B=>B.data[A]===U):[],K=(B=>{const X=new Map,V=[];return B.forEach(L=>{X.has(L.data[A+1])||(X.set(L.data[A+1],!0),V.push(L))}),V})(at),H=U==="root"?void 0:P;return{name:U,children:A+1===it?[]:K.map((B,X)=>{const V=H||(0,I.qy)((0,Z.tp)({theme:Y,color:B==null?void 0:B.color,index:X}));return W({name:B.data[A+1],depth:A+1,data:at,maxDepth:it,theme:Y,color:V,index:X})}),value:at.reduce((B,X)=>B+Number(X.data[X.data.length-1]),0),itemStyle:{color:H,opacity:Math.max(.2*(5-A),.2)}}},st=(m,U)=>{const A=M(m);return A!=null&&A.length?W({name:"root",depth:-1,data:A,maxDepth:A[0].data.length-1,theme:U}).children:[]},rt=m=>{let{data:U,theme:A,borderRadius:j,labelText:it,labelNumber:Y,unit:P}=m;const R=st(U,A),at=it.isVisible?(0,Z.$y)(it.textStyle).textStyle:{},$=Y.isVisible?(0,Z.$y)(Y.textStyle).textStyle:{},{prefixStr:K,suffixStr:H}=(0,O.I)(P);return{type:"sunburst",data:R,radius:[0,"90%"],emphasis:{focus:"ancestor"},label:{show:!0,rotate:"radial",formatter:function(B){const X=it.isVisible?Y.isVisible?B.name+":":B.name:"",V=Y.isVisible?K+B.value+H:"";return"{name|"+X+"} {value|"+V+"}"},rich:{name:{...at},value:{...$}}},itemStyle:{borderRadius:j}}}},75915:($t,wt,w)=>{"use strict";w.d(wt,{L:()=>O,s:()=>I});var Z=w(86688);const I=()=>Math.round(Math.random())*90,O=b=>{let{data:M,theme:W,minFontSize:st,maxFontSize:rt}=b;const m=M.filter(U=>Number(U.data[0])>0);return[{type:"wordCloud",width:"100%",height:"100%",left:"center",top:"center",sizeRange:[st,rt],shape:"circle",drawOutOfBound:!1,layoutAnimation:!1,data:m.map((U,A)=>({name:U.name,value:U.data[0],textStyle:{color:(0,Z.tp)({theme:W,color:U.color,index:A})},rotation:U.rotation}))}]}},30954:($t,wt,w)=>{"use strict";w.d(wt,{I:()=>Z});const Z=I=>{const{prefix:O,suffix:b}=I;return{prefixStr:O.isEnable?O.prefixString:"",suffixStr:b.isEnable?b.suffixString:""}}},86688:($t,wt,w)=>{"use strict";w.d(wt,{$y:()=>W,tp:()=>st});var Z=w(68496),I=w(39557),O=w(54635);const b={newOverOld:!1,showContentBox:!1,fontSize:12,color:"rgba(65, 80, 88, 1)",haDisabled:!0,vaDisabled:!0,isDisabledFontDropdown:!0,isDisabledFontRadioLine:!0,isEditing:!1},M=rt=>{const{textColor:m,fontSize:U}=rt.textV0;return W({color:m,fontSize:U})},W=rt=>({textStyle:{...b,color:rt.color?(0,Z.t0)(rt.color):"",fontSize:rt.fontSize}}),st=rt=>{let{theme:m,color:U,index:A}=rt;const j=O.B5[m][A%O.B5.length];return U?"#"+(0,I.L5)((0,I.NI)(U)):j}},45437:($t,wt,w)=>{"use strict";w.d(wt,{En:()=>Y,Ay:()=>K});var Z=w(51044),I=w(68496),O=w(39033),b=w(41419),M=w(62795),W=w(41593),st=w(21676);const rt=st.Ay.svg.withConfig({displayName:"styles__StyledLineSvg",componentId:"sc-1h8r6tv-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;transition:inherit;overflow:visible;& > path{transition:inherit;}"]),m=st.Ay.div.withConfig({displayName:"styles__LineWrpperStyle",componentId:"sc-1h8r6tv-1"})(["display:flex;align-items:center;justify-content:center;.line-svg-patch{pointer-events:auto;}.rich-text{overflow:visible !important;white-space:pre-wrap;word-break:keep-all;position:absolute;top:0;z-index:1;}"]);var U=w(64954),A=w(57464);function j(H,B){if(H==="solid")return"";if(H==="dotted")return B+" "+B;if(H==="dashed"){if(B===1)return"3 2";if(B===2)return"6 4";if(B>2)return B*2+" "+B}}function it(H,B,X){const{x:V,y:L}=X.linePointFrom,{x:ot,y:G}=X.linePointTo,z=[H*V,B*L],F=[H*ot,B*G];return"M "+z[0]+" "+z[1]+" L "+F[0]+" "+F[1]}class Y extends Z.PureComponent{render(){const{widget:B}=this.props,{width:X,height:V,line:L,shadow:ot,border:{bdrWidth:G,bdrStyle:z,bdrColor:F}}=B,k=(0,I.t0)(F);let ut;ot.shadowIsVisible&&(ut="drop-shadow("+ot.offsetX+"px "+ot.offsetY+"px "+ot.blurRadius+"px "+(0,I.t0)(ot.shadowColor)+")");const E=it(X,V,L),J=j(z,Number.parseInt(G));return(0,A.jsxs)(m,{children:[(0,A.jsxs)(rt,{xmlns:"http://www.w3.org/2000/svg",style:{filter:ut||"none"},children:[(0,A.jsx)("path",{d:E,stroke:k,strokeWidth:G,strokeDasharray:J}),(0,A.jsx)("path",{d:E,stroke:"transparent",strokeWidth:"10",className:"line-svg-patch"})]}),(0,A.jsx)(U.HY,{widget:B,isAutoSize:!0})]})}}const P=(0,Z.memo)(H=>{let{widget:B,treeData:X,mode:V,isSupMkt:L=!1}=H;return(0,A.jsx)(W.cl,{treeData:X,widget:B,mode:V,isSupMkt:L,style:{border:"none",boxShadow:"none",borderWidth:"unset",borderStyle:"unset",pointerEvents:"none"},children:(0,A.jsx)(Y,{widget:B})})});class R extends O.n{renderWidgetContent(B){return(0,A.jsx)(P,{widget:this.widget,treeData:this,mode:"design",isSupMkt:B.isSupMkt})}}class at extends b.f{renderWidgetContent(B){return(0,A.jsx)(P,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:B.isSupMkt})}}class $ extends M.j{renderWidgetContent(B){return(0,A.jsx)(P,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:B.isSupMkt})}}const K=[R,at,$]},13974:($t,wt,w)=>{"use strict";w.d(wt,{PD:()=>O,ji:()=>I,vr:()=>b});var Z=w(63555);const I=M=>M.type===Z.x.WMTextInput&&O(M),O=M=>["datetime-local","date","time"].includes(M.textInput.inputTypes),b=M=>{let{textV0:W,textInput:st}=M;const rt=st.prefillTextV0==="";return{value:rt?W.text:st.prefillTextV0,needShowPlaceholder:rt}}},51944:($t,wt,w)=>{"use strict";w.d(wt,{Bf:()=>m,E3:()=>rt,H8:()=>Y,Sr:()=>it,XZ:()=>M,eh:()=>U,hZ:()=>st,lt:()=>W,qS:()=>j});var Z=w(21840),I=w(63555),O=w(57015),b=w.n(O);const M=P=>{let{optionData:R,optionDataDesignUnExpanded:at,widgetVersion:$}=P;return $===2?(at==null?void 0:at.findIndex(K=>K===R.data.cid))===-1:R.data.designExpanded},W=P=>{let{optionData:R,optionDataSelected:at,widgetVersion:$}=P;return $===2?(at==null?void 0:at.findIndex(K=>K===R.data.cid))!==-1:R.data.selected},st=P=>{let{node:R,optionDataSelected:at,onUpdate:$}=P,K;at.findIndex(H=>H===R.data.cid)===-1&&(K=[R.data.cid],$({optionDataSelected:K}))},rt=P=>{let{node:R,widget:at,optionDataDesignUnExpanded:$,onUpdate:K}=P;const H=M({optionData:R,optionDataDesignUnExpanded:$,widgetVersion:at["!version"]}),{optionData:B}=at,X=[];(0,Z.sV)(B,L=>{X.push(L.cid)});let V;if(H)V=[...$,R.data.cid];else if(V=[...$],at.type===I.x.WNavigationMenu){const{navigationMenu:{canExpandOneMenu:L}}=at,ot=B.findIndex(G=>G.data.cid===R.data.cid)!==-1;L&&ot&&!H&&B.forEach(G=>{G.data.cid!==R.data.cid&&G.children.length>0&&V.push(G.data.cid)}),V=V.filter(G=>G!==R.data.cid)}else V=$.filter(L=>L!==R.data.cid);K({optionDataDesignUnExpanded:b()(V.filter(L=>X.findIndex(ot=>ot===L)===-1))})},m=P=>{let{node:R,path:at,newOptionData:$,onUpdate:K}=P;(0,Z.sV)($,X=>{X.data.selected&&(X.data={...X.data,selected:!1})});const H={...R.data,selected:!0},B=at.split("-");if(B.length===1)$[at].data=H;else{const X=V=>{V.data=H};(0,Z.PM)({newOptionData:$,pathArr:B,onUpdate:X})}K({optionData:$})},U=P=>{let{node:R,path:at,newOptionData:$,canExpandOneMenu:K,onUpdate:H,widgetType:B="none"}=P;const X=at.split("-");K&&$.forEach((L,ot)=>{X.length===1&&Number(X[0])!==ot&&(L.data={...L.data,designExpanded:!1})});const V={...R.data,designExpanded:!R.data.designExpanded};if(B!=="wTree"&&(V.selected=!1),X.length===1)$[at].data=V;else{const L=ot=>{ot.data=V};(0,Z.PM)({newOptionData:$,pathArr:at.split("-"),onUpdate:L})}H({optionData:$})},A=P=>{let{node:R,path:at,designExpanded:$,newOptionData:K,onUpdate:H}=P;if(at.split("-").length===1)preOrderTraversal(K,X=>{X.data.designExpanded&&(X.data.designExpanded=!1)}),K[at].data={...R.data,designExpanded:$,selected:!1};else{const X=(V,L)=>{V.children.forEach((ot,G)=>{parseInt(L)===G?ot.data.designExpanded=$:ot.data.designExpanded=!1})};updateDataByParentOption({newOptionData:K,pathArr:at.split("-"),onUpdate:X})}H({optionData:K})},j=P=>{const{isMenuBackgroundVisible:R,menuBackground:at,menuBorder:$,menuShadow:K,menuTextSize:H,menuTextColor:B,menuHeight:X}=P;return{background:at,isBackgroundVisible:R,border:$,shadow:K,fs:H,tc:B,height:X}},it=P=>{const{isSubMenuBackground:R,subMenuBackground:at,subMenuTextSize:$,subMenuTextColor:K,subMenuHeight:H}=P;return{background:at,isBackgroundVisible:R,fs:$,tc:K,height:H}},Y=P=>{const{isActiveMenuItemBackgroundVisible:R,activeMenuItemBackground:at,activeMenuItemTextSize:$,activeMenuItemTextColor:K}=P;return{background:at,isBackgroundVisible:R,fs:$,tc:K}}},64143:($t,wt,w)=>{"use strict";w.d(wt,{J:()=>Z,b:()=>I});const Z=(O,b)=>{const M=[];O=O.slice();for(let W=0;W<O.length;W++){const st=W+1>O.length-1?(W+1)%O.length:W+1,rt=W+2>O.length-1?(W+2)%O.length:W+2,m=O[W],U=O[st],A=O[rt],j=Math.sqrt(Math.pow(m.x-U.x,2)+Math.pow(m.y-U.y,2)),it=(j-b)/j<.5?.5:(j-b)/j,Y=[(1-it)*m.x+it*U.x,(1-it)*m.y+it*U.y],P=Math.sqrt(Math.pow(U.x-A.x,2)+Math.pow(U.y-A.y,2)),R=b/P>.5?.5:b/P,at=[(1-R)*U.x+R*A.x,(1-R)*U.y+R*A.y];W===O.length-1&&M.unshift("M"+at.join(",")),M.push("L"+Y.join(",")),M.push("Q"+U.x+","+U.y+","+at.join(","))}return M.push("Z"),M.join(" ")},I=O=>{let{width:b,height:M,sides:W,borderWidth:st}=O;const rt=[];let m=0;const U=2*Math.PI/W,A=b-st,j=M-st,it=Math.min(A,j),Y=it/2,P=Y,R=Y;for(let at=0;at<W;at++){const $=(W%2?P+Y*Math.sin(m):P+Y*Math.cos(m))/it,K=(W%2?R-Y*Math.cos(m):R-Y*Math.sin(m))/it;rt.push({x:$*A,y:K*j}),m+=U}return rt}},64954:($t,wt,w)=>{"use strict";w.d(wt,{HY:()=>H,Ay:()=>G,xC:()=>$});var Z=w(86634),I=w.n(Z),O=w(63555),b=w(51044),M=w(68496),W=w(39709),st=w(39033),rt=w(41419),m=w(62795),U=w(17383),A=w(57465),j=w(86803),it=w(41593),Y=w(45411),P=w(21676);const R=P.Ay.div.withConfig({displayName:"style__StyledText",componentId:"sc-5ymsm2-0"})(["word-break:break-all;.link-highlight{background:#BAD7FB;}li{list-style:none;}&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}}.text{position:relative;word-break:break-word;white-space:",";a{pointer-events:auto;cursor:inherit;color:",";text-decoration:",";> span{text-decoration:",";}}}"],z=>z.isAutoSize?"pre":"break-spaces",z=>z.style.color,z=>z.liVersion===3?"":z.linkTextDecoration,z=>z.liVersion===3?"":z.linkTextDecoration);var at=w(57464);const $=z=>{let F="flex-start";return z==="center"&&(F="center"),z==="right"&&(F="flex-end"),F},K=z=>{const{w:F,h:k,richTextV1:{sizeType:ut,fontFamily:E,fontDirection:J,fontWeight:dt,fontSize:pt,textColor:T,letterSpacing:ht,lineHeight:yt,underline:ct,strikethrough:gt,italic:bt,bold:Tt,verticalAlign:Pt,horizontalAlign:It,paddingTuple:Dt,isClipText:jt},shadow:Mt}=z;let Q="";ct&&(Q="underline"),gt&&(Q+=(Q?" ":"")+"line-through"),Q===""&&(Q="none");const vt=z.type===O.x.WRichText?(0,U._y)(dt,Tt):Tt?700:400,Lt=Mt&&z.type==="wRichText"?{textShadow:Mt!=null&&Mt.shadowIsVisible?(Mt==null?void 0:Mt.offsetX)+"px "+(Mt==null?void 0:Mt.offsetY)+"px "+(Mt==null?void 0:Mt.blurRadius)+"px "+(0,M.t0)(Mt==null?void 0:Mt.shadowColor):"none"}:{};return{overflow:ut===0||ut===1&&!jt?"visible":"hidden",width:F,height:k,fontFamily:E,fontSize:pt+"px",fontWeight:vt,fontStyle:bt?"italic":"normal",justifyContent:Pt,alignItems:$(It),textAlign:It,boxShadow:"none",writingMode:J,color:T,letterSpacing:ht+"px",lineHeight:yt+"px",...(0,Y.N3)(Dt),textDecoration:Q,display:"flex",flexDirection:"column",...Lt}};class H extends b.PureComponent{constructor(F){super(F);const{widget:k}=F,E=(0,j.a5)(k.textV1.blocks)?void 0:(0,A.d0)(k);this.state={htmlStr:E}}componentDidUpdate(F){const{widget:{textV1:k,richTextV1:ut}}=F,{widget:{textV1:E,richTextV1:J}}=this.props;if(!(0,W.eI)(E,k)||ut.paraSpacing!==J.paraSpacing||ut.fontDirection!==J.fontDirection||F.widget["!liVersion"]!==this.props.widget["!liVersion"]){const pt=(0,j.a5)(this.props.widget.textV1.blocks)?void 0:(0,A.d0)(this.props.widget);this.setState({htmlStr:pt})}}render(){const{htmlStr:F}=this.state;if(F===void 0)return null;const{widget:k,styles:ut,isAutoSize:E}=this.props,J=I()("rich-text","h-"+this.props.widget.richTextV1.horizontalAlign,k.type),dt=k.richTextV1.sizeType===0||E,pt=K(k),T=pt.textDecoration,ht=T==="none"?"underline":T.includes("underline")?T:T+" underline",yt=k["!liVersion"],ct={...pt,...ut};return(0,at.jsx)(R,{className:J,style:ct,isAutoSize:dt,linkTextDecoration:ht,liVersion:yt,children:(0,at.jsx)("div",{id:"text-dom-"+k.cid,className:"text",dangerouslySetInnerHTML:{__html:F}})})}}const B={display:"flex",whiteSpace:"pre-wrap",wordBreak:"break-word",wordWrap:"break-word"},X=b.memo(z=>{let{widget:F,treeData:k,mode:ut,isSupMkt:E=!1}=z;return(0,at.jsx)(it.cl,{treeData:k,widget:F,mode:ut,isSupMkt:E,style:B,children:(0,at.jsx)(H,{widget:F})})});class V extends st.n{renderWidgetContent(F){return(0,at.jsx)(X,{widget:this.widget,treeData:this,mode:"design",isSupMkt:F.isSupMkt})}}class L extends rt.f{renderWidgetContent(F){return(0,at.jsx)(X,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:F.isSupMkt})}}class ot extends m.j{renderWidgetContent(F){return(0,at.jsx)(X,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:F.isSupMkt})}}const G=[V,L,ot]},95805:($t,wt,w)=>{"use strict";w.d(wt,{z:()=>Z});const Z=I=>{let{width:O,height:b,sides:M,radius:W,borderWidth:st}=I;const rt=Math.min(O,b),m=st>rt/10?rt/10:st,U=O-m,A=b-m,j=Math.min(U,A),it=j/2,Y=Math.PI/M,P=[];for(let R=0;R<M*2;R++){const at=R%2?j*W/2:j/2-m;P.push({x:(it+at*Math.sin(R*Y))/j*U,y:(it-at*Math.cos(R*Y))/j*A})}return P}},87387:($t,wt,w)=>{"use strict";w.d(wt,{l:()=>K});var Z=w(51044),I=w(81940),O=w(53955);const b=3,M=H=>{let{originXY:B,side:X}=H;const{lf:V,lr:L,lt:ot}=X,G=B[0]<(V+L)/2,z={height:6,width:G?B[0]-V-8+6:L-B[0]-8+6,left:G?5:B[0]-V-3,top:B[1]-ot-3,position:"absolute"},F="M 3 3 H "+(z.width-6),k={x:G?z.width-3:3,y:3},ut={x:G?3:z.width-3,y:3},E={right:G?"":z.width-5,left:G?z.width-5:"",top:z.top-4};return{svgContainer:z,path:F,circleStart:ut,circleEnd:k,pointStyle:E}},W=H=>{let{isLeftSticky:B,side:X}=H;const{lf:V,lr:L}=X,ot={height:6+b*2,width:49+b*2,left:B?-38:L-V-8-3,top:6,position:"absolute"},G=B?"M 46 "+(3+b)+" H "+(3+b):"M "+(3+b)+" "+(3+b)+" H 46",z={x:B?3+b:46+b,y:3+b},F={x:B?46+b:3+b,y:3+b},k={right:B?"":-ot.width+1+b*3,left:B?-ot.width+7+b*3:"",top:ot.top-4+b};return{svgContainer:ot,path:G,circleStart:F,circleEnd:z,pointStyle:k}},st=H=>{let{originXY:B,isLineTop:X,isLineBottom:V,side:L}=H;const{lf:ot,lb:G,lt:z}=L,F={width:6+b*2,height:X?z-B[1]+8+6+b*2:V&&B[1]-G+8+6+b*2,top:X?B[1]-z-3:V&&G-z-8-3,left:B[0]-ot-3,position:"absolute"},k="M "+(3+b)+" "+(3+b)+" V "+(F.height-6),ut={x:3+b,y:X?3+b:F.height-3-b},E={x:3+b,y:X?F.height-3-b:3+b},J={top:X?-F.height+7+3*b:"",left:F.left-4+b,bottom:X?"":-F.height+7+b};return{svgContainer:F,path:k,circleStart:E,circleEnd:ut,pointStyle:J}},rt=H=>{let{originXY:B,isLineLeft:X,isLineRight:V,side:L}=H;const{lf:ot,lr:G,lt:z}=L,F={height:6+b*2,width:X?ot-B[0]+8+6+b*2:V&&B[0]-G+8+6+b*2,left:X?B[0]-ot-3:V&&G-ot-8-3,top:B[1]-z-3,position:"absolute"},k="M "+(3+b)+" "+(3+b)+" H "+(F.width-6),ut={x:X?3+b:F.width-3-b,y:3+b},E={x:X?F.width-3-b:3+b,y:3+b},J={right:X?"":-F.width+7+b,left:X?-F.width+7+b*3:"",top:F.top-4+b};return{svgContainer:F,path:k,circleStart:E,circleEnd:ut,pointStyle:J}},m=H=>{let{originXY:B,isLineLeft:X,side:V}=H;const{lf:L,lr:ot,lt:G,lb:z}=V,F=B[1]<=G+8,k={height:F?G-B[1]+8+6+b*2:B[1]-z+8+6+b*2,width:X?L-B[0]+8+6+b*2:B[0]-ot+8+6+b*2,left:X?-L+B[0]-3:ot-L-8-3,top:F?-G+B[1]-3:z-G-11,position:"absolute"},ut={x:X?3+b:k.width-3-b,y:F?3+b:k.height-3-b},E={x:X?k.width-3-b:3+b,y:F?k.height-3-b:3+b},J={x:(k.width-6)*(X?.6:.4),y:F?k.height-3-b:3+b},dt={x:(k.width-6)*(X?.6:.4),y:F?3+b:k.height-3-b};let pt=4;k.height<=12&&(pt=k.height/4);let T;X?F?T="M "+E.x+" "+E.y+" H "+(J.x+pt)+" Q "+J.x+" "+J.y+" "+J.x+" "+(J.y-pt)+" V "+(dt.y+pt)+" Q "+dt.x+" "+dt.y+" "+(dt.x-pt)+" "+dt.y+" H "+ut.x:T="M "+E.x+" "+E.y+" H "+(J.x+pt)+" Q "+J.x+" "+J.y+" "+J.x+" "+(J.y+pt)+" V "+(dt.y-pt)+" Q "+dt.x+" "+dt.y+" "+(dt.x-pt)+" "+dt.y+" H "+ut.x:F?T="M "+E.x+" "+E.y+" H "+(J.x-pt)+" Q "+J.x+" "+J.y+" "+J.x+" "+(J.y-pt)+" V "+(dt.y+pt)+" Q "+dt.x+" "+dt.y+" "+(dt.x+pt)+" "+dt.y+" H "+ut.x:T="M "+E.x+" "+E.y+" H "+(J.x-pt)+" Q "+J.x+" "+J.y+" "+J.x+" "+(J.y+pt)+" V "+(dt.y-pt)+" Q "+dt.x+" "+dt.y+" "+(dt.x+pt)+" "+dt.y+" H "+ut.x;const ht={right:X?"":-k.width+7+b,top:F?-k.height+7+b*3:"",left:X?-k.width+7+b*3:"",bottom:F?"":-k.height+7+b};return{svgContainer:k,path:T,circleStart:E,circleEnd:ut,pointStyle:ht}},U=H=>{let{originXY:B,side:X}=H;const{lf:V,lr:L,lt:ot,lb:G}=X,z=B[0]-V<=12,F=B[1]<G,k={width:z?V-B[0]+8+6+b*2:B[0]-L+8+6+b*2,height:F?ot-B[1]+8+6+b*2:B[1]-G+8+6+b*2,left:z?-V+B[0]-3:L-V-8-3,top:F?-ot+B[1]-3:G-ot-11,position:"absolute"},ut={x:z?3+b:k.width-3-b,y:F?3+b:k.height-3-b},E={x:z?k.width-3-b:3+b,y:F?k.height-3-b:3+b},J={x:z?k.width-3-b:3+b,y:(k.height-6)*(F?.6:.4)},dt={x:z?3+b:k.width-3-b,y:(k.height-6)*(F?.6:.4)};let pt=4;k.width<=12&&(pt=k.width/4);let T;F?z?T="M "+E.x+" "+E.y+" V "+(J.y+pt)+" Q "+J.x+" "+J.y+" "+(J.x-pt)+" "+J.y+" H "+(dt.x+pt)+" Q "+dt.x+" "+dt.y+" "+dt.x+" "+(dt.y-pt)+" V "+ut.y:T="M "+E.x+" "+E.y+" V "+(J.y+pt)+" Q "+J.x+" "+J.y+" "+(J.x+pt)+" "+J.y+" H "+(dt.x-pt)+" Q "+dt.x+" "+dt.y+" "+dt.x+" "+(dt.y-pt)+" V "+ut.y:z?T="M "+E.x+" "+E.y+" V "+(J.y-pt)+" Q "+J.x+" "+J.y+" "+(J.x-pt)+" "+J.y+" H "+(dt.x+pt)+" Q "+dt.x+" "+dt.y+" "+dt.x+" "+(dt.y+pt)+" V "+ut.y:T="M "+E.x+" "+E.y+" V "+(J.y-pt)+" Q "+J.x+" "+J.y+" "+(J.x+pt)+" "+J.y+" H "+(dt.x-pt)+" Q "+dt.x+" "+dt.y+" "+dt.x+" "+(dt.y+pt)+" V "+ut.y;const ht={right:z?"":-k.width+7+b,top:F?-k.height+7+b*3:"",left:z?-k.width+7+b*3:"",bottom:F?"":-k.height+7+b};return{svgContainer:k,path:T,circleStart:E,circleEnd:ut,pointStyle:ht}};var A=w(3732),j=w(5358),it=w(8723),Y=w(21676);const P=Y.Ay.div.withConfig({displayName:"styles__StyledSticky",componentId:"sc-orxnhw-0"})(["box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);border-radius:4px;z-index:10;width:100%;height:100%;top:0;left:0;& > div{user-select:inherit;}.text,.text *{user-select:inherit;}p{margin-bottom:5px;word-break:break-word;word-wrap:break-word;}.point{position:absolute;opacity:0;width:14px;height:14px;cursor:pointer;}"]);var R=w(33386),at=w(51794),$=w(57464);class K extends Z.PureComponent{render(){var B;const{type:X,widget:V,fakeAABB:L,aabb:ot,onMouseDown:G,onCopy:z,fakeBindingInfo:F,fakePointToDir:k,onDoubleClick:ut,isPreview:E,sdk:J}=this.props,{lineColor:dt,textPlaceHolder:pt,circleColor:T}=(0,I.$)(V,F),[ht,yt,ct,gt]=L||ot||J.getHotAABB(V.key),bt={lf:ht,lt:yt,lr:ct,lb:gt},{sticky:Tt,pointToDir:Pt,"!stickyPointVersion":It}=V,Dt=V.refWCKey;let jt;const Mt=((B=(0,O.dP)())==null?void 0:B.ui.artboard)||{};if(Mt.isDragAnnotationBindingPoint&&Mt.draggingStickyKey===V.cid)jt=Tt.point&&Tt.point.length?Tt.point:null;else if(Dt==="")jt=Tt.point&&Tt.point.length?Tt.point:null;else if(J.getHotItem(Dt))try{var Q,vt;const Ae=J.getHotBound(Dt),[te,Ie]=(0,at.OH)({stickyPointVersion:It,getV1Offset:()=>[Ae.x,Ae.y],getV2Offset:()=>[Ae.x-Ae.w/2,Ae.y-Ae.h/2]});jt=[(Q=te+(Tt==null?void 0:Tt.point[0]))!=null?Q:0,(vt=Ie+(Tt==null?void 0:Tt.point[1]))!=null?vt:0]}catch(Ae){console.error("[fatal]: StickyComponent getHotBound error",Ae,Dt),(0,R.p)("[fatal]: StickyComponent getHotBound error",Ae),jt=null}else jt=null;let Lt=!1;jt&&jt[0]&&jt[0]>ht-20&&jt[0]<ct+20&&(jt[1]<yt||jt[1]>gt)&&(Lt=!0);let Rt=!1,Bt=!0;jt&&(Bt=ht>=jt[0]),(!Tt.point||!Tt.point.length||!jt)&&(F&&(F.stickyKey===V.cid||F.stickyKey==="fake")&&k?Bt=k==="l":Bt=Pt==="l",Lt=!1,Rt=!0);let Ht=!1;jt&&jt[0]>ht&&jt[0]<ct&&jt[1]>yt&&jt[1]<gt&&(Ht=!0);let zt,Kt={},ce=null,oe={x:0,y:0},he={x:0,y:0};const _e=jt&&(jt[0]<ht||jt[0]>ct)&&jt[1]>yt+8&&jt[1]<gt-8,Fe=jt&&(jt[1]<yt||jt[1]>gt)&&jt[0]>ht+8&&jt[0]<ct-8,Re=jt&&jt[1]<yt,le=jt&&jt[1]>gt,ee=jt&&jt[0]<ht,ge=jt&&jt[0]>ct;Rt?{svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=W({isLeftSticky:Bt,side:bt}):Ht?{svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=M({originXY:jt,side:bt}):Fe?{svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=st({originXY:jt,isLineTop:Re,isLineBottom:le,side:bt}):_e?{svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=rt({originXY:jt,isLineLeft:ee,isLineRight:ge,side:bt}):!Ht&&!Lt&&!Fe&&!_e?{svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=m({originXY:jt,isLineLeft:ee,side:bt}):!Ht&&Lt&&!Fe&&!_e&&({svgContainer:zt,path:ce,circleStart:oe,circleEnd:he,pointStyle:Kt}=U({originXY:jt,side:bt}));const de=!!E;return(0,$.jsxs)(P,{children:[(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("svg",{style:{...zt,pointerEvents:"none"},xmlns:"http://www.w3.org/2000/svg",children:[(0,$.jsx)("path",{d:ce,stroke:dt,strokeWidth:"2",strokeLinecap:"round",fill:"transparent"}),(0,$.jsx)("circle",{cx:oe.x,cy:oe.y,r:"5",fill:dt}),(0,$.jsx)("circle",{cx:he.x,cy:he.y,r:"5",fill:T,className:"stickyCircle",stroke:dt,strokeWidth:1.5})]}),(0,$.jsx)("div",{style:Kt,className:"point",onMouseDown:G,onDoubleClick:ut})]}),(0,$.jsx)(it.A,{widget:V,children:X==="snapshot"?(0,$.jsx)(j.A,{widget:V,placeHolderColor:pt,onCopy:z}):(0,$.jsx)(A.a,{widget:V,placeHolderColor:pt,isContentCanSelect:de,onCopy:z,isPreview:E})})]})}}},7595:($t,wt,w)=>{"use strict";w.d(wt,{_:()=>V,A:()=>ut});var Z=w(51044),I=w(72605),O=w(86634),b=w.n(O),M=w(39033),W=w(41419),st=w(62795),rt=w(41593),m=w(81940),U=w(5358),A=w(8723),j=w(68496),it=w(47143),Y=w(20029),P=w(30797),R=w(38047),at=w(53955),$=w(35709),K=w(21676);const H=K.Ay.div.withConfig({displayName:"styles__StyledSticky",componentId:"sc-1kq0v0h-0"})(["box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);border-radius:4px;z-index:10;width:100%;height:100%;top:0;left:0;& > div{user-select:inherit;}.text,.text *{user-select:inherit;}p{margin-bottom:5px;word-break:break-word;word-wrap:break-word;}.point{position:absolute;opacity:0;width:14px;height:14px;cursor:pointer;}"]),B=K.Ay.div.withConfig({displayName:"styles__StyledTearComponent",componentId:"sc-1kq0v0h-1"})(["width:20px;height:20px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;border-radius:4px;box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);&.default{color:#333;background:rgba(255,255,255,1);}&.lock{background:rgba(199,199,199,1);color:rgba(255,255,255,1);}&.select-has-binding{background:",";color:#fff;}&.select-no-binding{background:rgba(255,255,255,1);border:2px solid ",";}&.no-ref{background :rgba(255,255,255,1);}&.canHover{&:hover{transition:all 0.05s ease-in-out 0.05s;transform:scale(1.2);cursor:pointer;}}"],E=>E.theme.color_proto,E=>E.theme.color_proto);var X=w(57464);class V extends Z.PureComponent{render(){const{widget:J,canHover:dt,isActive:pt,scale:T,styleFromProps:ht,isDragAnnotationBindingPoint:yt,fakeBindingInfo:ct}=this.props,{cid:gt,fill:bt,isLock:Tt,w:Pt,h:It,order:Dt,refWCKey:jt}=J,Q="scale("+100/T+")",vt={...ht,transform:Q,width:Pt,height:It};let Lt="default";if(pt&&!yt){var Rt;Tt?Lt="lock":ct!=null&&(Rt=ct.stickyKey)!=null&&Rt.includes(gt)?ct.isBinded?Lt="select-has-binding":Lt="select-no-binding":jt?Lt="select-has-binding":Lt="select-no-binding"}else jt?(Lt="has-ref",vt.background=(0,j.t0)(bt.solidColor)):(Lt="no-ref",vt.border="2px solid "+(0,j.t0)(bt.solidColor));return(0,X.jsx)(B,{className:b()(Lt,"default",{canHover:dt,isSelect:pt}),style:vt,children:Dt})}}const L=(E,J)=>{const dt=(0,P.p$)(E),pt=(0,Y.IL)(E),T=(0,it.X_)(E),ht=(0,R.tC)(E),{cid:yt}=J.widget,ct=dt.includes(yt),gt=pt===yt;return{fakeBindingInfo:(0,$.LS)(E),isActive:ct||gt,scale:T,isDragAnnotationBindingPoint:ht}},ot=(0,I.Ng)(L)(V),G=(0,Z.memo)(E=>{let{widget:J,treeData:dt,mode:pt,isShowSticky:T,tearMode:ht,refWCKey:yt,STMode:ct}=E,gt={};if(pt==="design"){const Tt=T&&J.isVisible?J.opacity:0,Pt=!T||!J.isVisible?"none":"auto";gt={width:void 0,height:void 0,opacity:Tt,pointerEvents:Pt}}const bt=()=>{if(pt==="design")return(0,X.jsx)(ot,{canHover:!ct,widget:J});if(pt==="snapshot"){var Tt;const{fill:Pt,w:It,h:Dt,stickyH:jt}=J,{textPlaceHolder:Mt}=(0,m.$)(J),vt=100/(((Tt=(0,at.dP)())==null?void 0:Tt.common.scale)||100);if(ht||J.tearMode){const Lt={...J,...yt&&{refWCKey:yt}},Rt=(0,j.t0)(Pt.solidColor),Bt={width:It,height:Dt,background:Rt,transform:"scale("+vt+")",color:"#333333"};return(0,X.jsx)(V,{styleFromProps:Bt,newSelection:[],widget:Lt})}else return(0,X.jsx)(H,{children:(0,X.jsx)(A.A,{widget:{...J,w:280,h:jt},children:(0,X.jsx)(U.A,{widget:{...J,w:280,h:jt},placeHolderColor:Mt,onCopy:()=>{}})})})}};return(0,X.jsx)(rt.cl,{treeData:dt,widget:J,mode:pt,isNeedAssembly:!1,style:gt,children:bt()})});class z extends M.n{renderWidgetContent(J){return(0,X.jsx)(G,{widget:this.widget,treeData:this,isShowSticky:J.isShowSticky,STMode:J.STMode,mode:"design"})}}class F extends W.f{renderWidgetContent(){return null}}class k extends st.j{renderWidgetContent(J){return(0,X.jsx)(G,{widget:this.widget,treeData:this,tearMode:J.tearMode,refWCKey:J.refWCKey,mode:"snapshot"})}}const ut=[z,F,k]},72254:($t,wt,w)=>{"use strict";w.d(wt,{bS:()=>I,zS:()=>Z,zb:()=>O});const Z={viewBox:"0 0 16 16",path:'<path fill="#000" fill-rule="evenodd" d="M13.4 12.26a1 1 0 0 0 .05-.3V7.01H2.55v4.95c0 .55.45 1 1 1h8.9a1 1 0 0 0 .95-.7ZM2.55 6.02h10.9v-.5a.99.99 0 0 0-1-.99h-4.5c-.57 0-1.11-.25-1.49-.68l-.4-.46a.99.99 0 0 0-.75-.34H3.54a.99.99 0 0 0-.99.99v1.98Zm11.8 6.53a2 2 0 0 1-1.9 1.4h-8.9c-1.1 0-1.99-.9-1.99-1.99V4.04c0-1.1.89-1.98 1.98-1.98h1.77c.58 0 1.12.25 1.5.68l.4.46c.19.22.46.34.75.34h4.5c1.1 0 1.98.89 1.98 1.98v6.44c0 .2-.03.4-.1.6Z" clip-rule="evenodd"/>'},I={viewBox:"0 0 16 16",path:'<path fill="#415058" fill-rule="evenodd" d="M12 12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3v2.5c0 1.1.9 2 2 2h2V12Zm0-5.5a.2.2 0 0 0-.06-.15L9 3.41V5.5a1 1 0 0 0 1 1h2ZM3 4c0-1.1.9-2 2-2h3.17a2 2 0 0 1 1.42.59l3.06 3.06c.22.22.35.53.35.85V12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4Z" clip-rule="evenodd"/>'},O={viewBox:"0 0 16 16",path:'<path fill="#000" fillRule="evenodd" d="M12.97 7.1v4.52c0 .5-.4.9-.9.9H3.93a.9.9 0 0 1-.9-.9V7.1H12.97Zm.9-.9v-.46c0-1-.8-1.8-1.8-1.8h-4.1a.9.9 0 0 1-.7-.32l-.36-.42a1.8 1.8 0 0 0-1.36-.62H3.93c-1 0-1.8.8-1.8 1.8v7.24a1.8 1.8 0 0 0 1.8 1.8h8.14c1 0 1.8-.8 1.8-1.8V6.2Zm-.9 0H3.03V4.37c0-.5.4-.9.9-.9h1.62a.9.9 0 0 1 .68.31l.36.42c.35.4.85.63 1.37.63h4.1c.5 0 .91.4.91.9v.45Z" clipRule="evenodd"/>'}},71394:($t,wt,w)=>{"use strict";w.d(wt,{r:()=>Z});const Z=(I,O,b,M,W,st)=>{let rt;const m=b?!0:W;if(I.hostname==="youtu.be")rt="https://www.youtube.com/embed/"+I.pathname.replace("/","")+"?autoplay="+(b?1:0)+"&loop="+(M?1:0)+"&controls="+(st?0:1)+"&mute="+(m?1:0);else if(I.hostname==="www.youtube.com")rt="https://www.youtube.com/embed/"+I.searchParams.get("v")+"?autoplay="+(b?1:0)+"&loop="+(M?1:0)+"&controls="+(st?0:1)+"&mute="+(m?1:0);else if(I.hostname==="v.qq.com")rt="https://v.qq.com/txp/iframe/player.html?vid="+I.pathname.split("/").slice(-1).join().replace(".html","")+"&autoplay="+b+(m?"&volume=0":"");else if(I.hostname==="vimeo.com")rt="https://player.vimeo.com/video/"+I.href.split("/").slice(-1).join()+"?autoplay="+(b?1:0)+"&loop="+(M?1:0)+"&controls="+(st?0:1)+"&mute="+(m?1:0);else if(I.hostname==="www.bilibili.com")rt="https://player.bilibili.com/player.html?bvid="+I.pathname.split("/")[2]+"&autoplay="+(b?1:0)+"&t="+(b?.1:0)+"}";else if(I.hostname==="v.youku.com"){var U;rt="https://player.youku.com/embed/"+((U=I.pathname.split("/")[2])==null?void 0:U.replace("id_","").replace(".html",""))}return{iframeSrc:rt,iframeHtml:"<iframe id="+O+" src="+rt+' style="border: unset" type="text/html" width="100%" height="100%" allow="autoplay" allowfullscreen></iframe>'}}},38422:($t,wt,w)=>{"use strict";w.d(wt,{d:()=>Z});const Z={DEFAULT:0,RAINBOW:1,RETRO:2,YOUTH:3,CLASSICAL:4,DARK:5}},5585:($t,wt,w)=>{"use strict";w.d(wt,{M8:()=>st,eB:()=>W,iv:()=>m,or:()=>U,ss:()=>rt});var Z=w(91416),I=w(57882),O=w(38422),b=w(1694),M=w(73773);let W=function(A){return A.SAME_LEVEL="same_level",A.CHILD_LEVEL="child_level",A}({}),st=function(A){return A.UP="up",A.DOWN="down",A.LEFT="left",A.RIGHT="right",A}({});const rt=A=>{let{theme:j,node:it}=A,Y="#1685FC",P=0,R="";const at="solid";let $="#FFFFFF";const K=it.widget.isRoot?"medium":"regular";switch(j){case O.d.DEFAULT:Y=it!=null&&it.widget.isRoot?"#1685FC":"#DAEBFE",$=it!=null&&it.widget.isRoot?"#FFFFFF":"#1F292E";break;case O.d.RAINBOW:Y=it!=null&&it.widget.isRoot?"#EFEFEF":"transparent",$="#1F292E";break;case O.d.RETRO:Y=it!=null&&it.widget.isRoot?"#375F8A":it!=null&&it.isMindFirstDepth?"#53A1D9":"transparent",$=it!=null&&it.widget.isRoot||it!=null&&it.isMindFirstDepth?"#FFFFFF":"#1F292E";break;case O.d.YOUTH:Y=it!=null&&it.widget.isRoot?"#39CCBC":it!=null&&it.isMindFirstDepth?"#EDEDED":"#E0E0E0",$=it!=null&&it.widget.isRoot?"#FFFFFF":"#1F292E";break;case O.d.CLASSICAL:Y="#FFFFFF",P=1,R="#1F292E",$="#1F292E";break;case O.d.DARK:Y=it!=null&&it.widget.isRoot?"#252626":it!=null&&it.isMindFirstDepth?"#363738":"#454647",$="#FFFFFF";break}const H=it!=null&&it.widget.border.bdrIsVisible?(0,I.Um)(it==null?void 0:it.widget):{borderWidth:P,borderColor:R,borderStyle:at};return{backgroundColor:it!=null&&it.widget.fill.fillIsVisible?(0,Z.n7)(it.widget):Y,textColor:it!=null&&it.widget.richTextV1.textColor?it==null?void 0:it.widget.richTextV1.textColor:$,fontWeight:K,...H}},m=A=>({keys:{tab:()=>A({type:"entry:mind:add:node-mind",payload:{type:W.CHILD_LEVEL}}),ins:()=>A({type:"entry:mind:add:node-mind",payload:{type:W.CHILD_LEVEL}}),del:()=>A({type:"entry:mind:del:selected:node-mind"}),backspace:()=>A({type:"entry:mind:del:selected:node-mind"}),enter:()=>A({type:"entry:mind:add:node-mind",payload:{type:W.SAME_LEVEL}}),"command+c":()=>{A({type:"entry:mind:copy:selected:node-mind"})},"ctrl+c":()=>{A({type:"entry:mind:copy:selected:node-mind"})},"ctrl+x":()=>A({type:"entry:mind:cut:node"}),"command+x":()=>A({type:"entry:mind:cut:node"}),"command+alt+v":()=>{A({type:"entry:mind:paste:node:properties"})},"ctrl+d":()=>{},"command+d":()=>{},"ctrl+alt+v":()=>{A({type:"entry:mind:paste:node:properties"})},space:()=>{A({type:"entry:mind:enter:text:editing",payload:{isSelectAll:!1}})},up:()=>{A({type:"entry:mind:arrow:key",payload:{direction:st.UP}})},down:()=>{A({type:"entry:mind:arrow:key",payload:{direction:st.DOWN}})},left:()=>{A({type:"entry:mind:arrow:key",payload:{direction:st.LEFT}})},right:()=>{A({type:"entry:mind:arrow:key",payload:{direction:st.RIGHT}})}},priority:b.zu.Mode}),U=(A,j)=>{const it=A.ctrlKey||A.metaKey,Y=A.altKey,P=A.shiftKey;let R=!0;switch(A.keyCode){case M.Ju.Tab:case M.Ju.Insert:j&&j({type:"entry:mind:add:node-mind",payload:{type:W.CHILD_LEVEL}});break;case M.Ju.Delete:case M.Ju.Backspace:j&&j({type:"entry:mind:del:selected:node-mind"});break;case M.Ju.Enter:j&&j({type:"entry:mind:add:node-mind",payload:{type:W.SAME_LEVEL}});break;case M.Ju.C:it?j&&j({type:"entry:mind:copy:selected:node-mind"}):R=!1;break;case M.Ju.X:it?j&&j({type:"entry:mind:cut:node"}):R=!1;break;case M.Ju.V:it&&Y?j&&j({type:"entry:mind:paste:node:properties"}):R=!1;break;case M.Ju.Space:j&&j({type:"entry:mind:enter:text:editing",payload:{isSelectAll:!1}});break;case M.Ju.Left:j&&j({type:"entry:mind:arrow:key",payload:{direction:st.LEFT}});break;case M.Ju.Up:j&&j({type:"entry:mind:arrow:key",payload:{direction:st.UP}});break;case M.Ju.Right:j&&j({type:"entry:mind:arrow:key",payload:{direction:st.RIGHT}});break;case M.Ju.Down:j&&j({type:"entry:mind:arrow:key",payload:{direction:st.DOWN}});break;case M.Ju.B:it?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"boldType"}}):R=!1;break;case M.Ju.I:it?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"italic"}}):R=!1;break;case M.Ju.U:it?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"underline"}}):R=!1;break;case M.Ju.S:it&&P?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"lineThrough"}}):R=!1;break;case M.Ju.Period:it&&P?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"fontSize",action:"increase"}}):R=!1;break;case M.Ju.Comma:it&&P?j&&j({type:"entry:set:text:attr:by:key",payload:{attr:"fontSize",action:"decrease"}}):R=!1;break;case M.Ju.F:it?j&&j({type:"entry:findReplacePanel:toggle:show"}):R=!1;break;case M.Ju.Z:it?P?j&&j({type:"entry:undo-stack:redo"}):j&&j({type:"entry:undo-stack:undo"}):R=!1;break;default:R=!1;break}return R}},20141:($t,wt,w)=>{"use strict";if(w.d(wt,{AT:()=>Y,D7:()=>P,Id:()=>$,Xb:()=>K,ZC:()=>it,lW:()=>A,wj:()=>at}),w.j!=183)var Z=w(74138);if(w.j!=183)var I=w(85797);var O=w(83053),b=w(20592),M=w(14586),W=w(96851);const st=H=>{const B=H.map(ot=>ot.mindNodePosition.x),X=Math.min(...B),V=H.map(ot=>ot.mindNodePosition.x+ot.mindNodeSize.w);return Math.max(...V)-X},rt=H=>{const B=H.map(ot=>ot.mindNodePosition.y),X=Math.min(...B),V=H.map(ot=>ot.mindNodePosition.y+ot.mindNodeSize.h);return Math.max(...V)-X},m=(H,B)=>{const X=[],V=B(H);return V&&X.push(V),H.widget.expand&&H.children.forEach(L=>{X.push(...m(L,B))}),X},U=H=>{const B=[];return m(H,X=>{B.push(X)}),B},A=H=>{var B;const X=(B=H.children[0])==null?void 0:B.children.find(G=>G.widget.isRoot),V=U(X),L=st(V),ot=rt(V);return{w:L+M.Ls*2,h:ot+M.Z6*2}},j=H=>{let B=H;const X=[];if(!H)return X;for(;B&&(X.push(B),B.children.length&&B.widget.expand);)B=B.children[0];return X},it=(H,B)=>H.widget.order-B.widget.order,Y=H=>{if(!H)return{x:0,y:0};const{widget:{border:{bdrIsVisible:B,bdrWidth:X}}}=H.parent.parent,V=B?-X:0,ot=U(H).map(yt=>yt.mindNodePosition.x),G=Math.min(...ot),z=M.Ls-(G-V),F=H==null?void 0:H.children,k=F.filter(yt=>{var ct,gt;return yt.widget.placement==="left"&&(yt==null||(ct=yt.parent)==null?void 0:ct.mindNodeTreeSize.h)>(yt==null||(gt=yt.parent)==null?void 0:gt.mindNodeSize.h)}).sort(it)[0],ut=F.filter(yt=>{var ct,gt;return yt.widget.placement==="right"&&(yt==null||(ct=yt.parent)==null?void 0:ct.mindNodeTreeSize.h)>(yt==null||(gt=yt.parent)==null?void 0:gt.mindNodeSize.h)}).sort(it)[0],E=j(k),J=j(ut),dt=E.map(yt=>yt.mindNodePosition.y),pt=J.map(yt=>yt.mindNodePosition.y),T=!dt.length&&!pt.length?0:Math.min(...dt,...pt),ht=M.Z6-(T-V);return{x:z,y:ht}},P=(H,B)=>{const{x:X,y:V}=B,{x:L,y:ot,r:G,w:z,h:F}=sdkStore.getHotBound(H);return(0,I.of)((0,I.bj)(),(0,I.CR)(L,ot,z*.5,F*.5,(0,O.EQ)(G)),(0,I.Q6)(X,V,0))},R=H=>{const{w:B,h:X}=H.mindNodeSize,{h:V}=H.mindNodeTreeSize,{x:L,y:ot}=H.mindNodePosition,G=(0,b.F1)();return!H.children.length||!H.widget.expand||V<=X?(G[0]=L-(H.widget.placement==="left"?48:0),G[1]=ot,G[2]=G[0]+B+48,G[3]=G[1]+X):(G[0]=L-(H.widget.placement==="left"?48:0),G[1]=ot-(V-X)/2,G[2]=G[0]+B+48,G[3]=G[1]+V),G},at=(H,B,X)=>{const V=(0,Z.Si)(z=>z.children);let L,ot;const G=R(B);return(0,b.N0)(G,H)?{closestMindNode:B,relPos:(H.x<(G[0]+G[2])/2?"left":"right")+"-"+(H.y<(G[1]+G[3])/2?"top":"bottom")}:(V(B,z=>{const F=R(z);if((0,b.N0)(F,H))return L=z,ot=(H.x<(F[0]+F[2])/2?"left":"right")+"-"+(H.y<(F[1]+F[3])/2?"top":"bottom"),Z.Hs;if(X(z.key)||!z.widget.expand)return Z.NU}),{closestMindNode:L,relPos:ot})},$=(H,B)=>{const X=H.widget.placement||"right";if(H.widget.isRoot)if(B==="right-top"||B==="right-bottom"){const V=H.children.filter(L=>L.widget.placement==="right");return V.length===0?[H,"right",!0]:B==="right-top"?[V[0],"above",!1]:[V.slice(-1)[0],"below",!1]}else{const V=H.children.filter(L=>L.widget.placement==="left");return V.length===0?[H,"left",!0]:B==="left-top"?[V[0],"above",!1]:[V.slice(-1)[0],"below",!1]}else return X==="right"?B==="left-top"||B==="left-bottom"?[H,B==="left-top"?"above":"below",!1]:H.children.length===0||!H.widget.expand?[H,"right",!0]:B==="right-top"?[H.children[0],"above",!1]:[H.children.slice(-1)[0],"below",!1]:B==="right-top"||B==="right-bottom"?[H,B==="right_top"?"above":"below",!1]:H.children.length===0||!H.widget.expand?[H,"left",!0]:B==="left-top"?[H.children[0],"above",!1]:[H.children.slice(-1)[0],"below",!1]},K=(H,B,X)=>{let{scale:V,offset:L,viewportRect:ot}=B,{onDragStart:G,onDragging:z,onDragEnd:F}=X;const k=V/100;let ut=!1;const E=H.clientX,J=H.clientY;let dt=!1;const pt=ht=>{dt=dt||Math.abs(ht.clientX-E)>1||Math.abs(ht.clientY-J)>1,dt&&(!ut&&G(),ut=!0,z((0,W.mG)(ht,{scale:V,offset:L,viewportRect:ot})))},T=()=>{document.removeEventListener("mousemove",pt),document.removeEventListener("mouseup",T),dt&&F()};document.addEventListener("mousemove",pt),document.addEventListener("mouseup",T)}},39033:($t,wt,w)=>{"use strict";w.d(wt,{n:()=>O,t:()=>b});var Z=w(74059),I=w(98551);class O extends I.L{constructor(){super(...arguments),(0,Z.A)(this,"widgetMode","design")}}class b extends I.z{}},41419:($t,wt,w)=>{"use strict";w.d(wt,{H:()=>b,f:()=>O});var Z=w(74059),I=w(98551);class O extends I.L{constructor(){super(...arguments),(0,Z.A)(this,"widgetMode","preview")}get keyToAccessIntAct(){return this.key}}class b extends I.z{}},98551:($t,wt,w)=>{"use strict";w.d(wt,{L:()=>st,z:()=>rt});var Z=w(51044),I=w(66554),O=w(14586),b=w(53955),M=w(57464);const W=Z.memo(m=>{const{widgetNode:U,otherProps:A}=m;return(0,M.jsx)("div",{className:"widget-identify-key",children:U.renderWidgetContent(A)},U.key)},(m,U)=>!(m.widgetNode!==U.widgetNode||m.widgetNode.children!==U.widgetNode.children||U.widgetNode.type==="wSticky"||!(0,b.bN)(U.otherProps,m.otherProps)));class st extends I.B{render(U){return U===void 0&&(U={}),(0,M.jsx)(W,{otherProps:U,widgetNode:this},this.key)}}class rt extends O.DX{}},62795:($t,wt,w)=>{"use strict";w.d(wt,{X:()=>b,j:()=>O});var Z=w(74059),I=w(98551);class O extends I.L{constructor(){super(...arguments),(0,Z.A)(this,"widgetMode","snapshot")}}class b extends I.z{}},41593:($t,wt,w)=>{"use strict";w.d(wt,{af:()=>pt,cl:()=>ht,XI:()=>T,oj:()=>ut,I2:()=>ot});var Z=w(51044),I=w(40652),O=w(19216),b=w(62065),M=w(66131),W=w(4098),st=w(57882),rt=w(63555),m=w(45411),U=w(59742),A=w(45309),j=w(32010),it=w(15915),Y=w(9376);function P(yt,ct){if(!window.DeviceMotionEvent){ct("\u8BBE\u5907\u6216\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u6447\u4E00\u6447\u529F\u80FD");return}typeof DeviceMotionEvent.requestPermission=="function"&&DeviceMotionEvent.requestPermission().then(gt=>{gt==="granted"&&ct("\u7528\u6237\u5141\u8BB8\u6743\u9650")}).catch(gt=>{gt.name==="NotAllowedError"?ct("\u7528\u6237\u672A\u5141\u8BB8\u6743\u9650"):ct("\u8BF7\u6C42\u6743\u9650\u65F6\u53D1\u751F\u9519\u8BEF")})}const R=()=>{P(yt=>{const ct=yt.acceleration;let{x:gt,y:bt,z:Tt}=ct;(0,Y.un)()||(gt=-gt,bt=-bt,Tt=-Tt)},yt=>{console.log(yt)})},at=yt=>(0,Y.Fr)()&&(0,Y.un)()?yt.includes("shake"):!1;var $=w(57464);const K=yt=>yt.type==="rResCanvas"?"tree-node "+yt.type:"widget tree-node "+yt.type,H=yt=>""+K(yt),B=yt=>{let{treeData:ct,widget:gt}=yt,bt="";gt.animation&&gt.animation.aniName!=="none"&&(bt+=" animated "+gt.animation.aniName),gt.isVisible||(bt+=" invisible");const Tt=(0,O.Xr)(ct.widgetStore.sdkStore,gt.key,ct.runningIsEditingCombo,ct.editingBDanliKey);if(Tt.filter(It=>It.interactive).length>0){const It=gt.type==="rResCanvas"?ct.widgetStore.sdkStore.locUpHotBasketKey(ct.key):!0,Dt=(0,b.t$)(Tt,It);bt+=" "+Dt}let Pt="";return gt.fixPosTo==="sticky"&&((0,m.Wi)(gt.key)||(Pt=(0,U.OO)(gt.key)?"shadow-sticky":"sticky")),K(gt)+" "+bt+" "+Pt},X=yt=>{let{treeData:ct,widget:gt,mode:bt}=yt;if(bt==="design")return H(gt);if(bt==="preview")return B({treeData:ct,widget:gt});if(bt==="snapshot")return K(gt)},V=yt=>{let{treeData:ct,widget:gt,mode:bt}=yt;return{key:gt.key,"data-cid":gt.key,className:X({treeData:ct,widget:gt,mode:bt})}},L=yt=>{let{treeData:ct,widget:gt}=yt;const bt=(0,O.Xr)(ct.widgetStore.sdkStore,gt.key,ct.runningIsEditingCombo,ct.editingBDanliKey);let Tt=0,Pt=!1;if(gt.fixPosTo==="sticky"&&(Pt=!(0,m.Wi)(gt.key),Pt)){const{y:It,h:Dt}=ct.widgetStore.sdkStore.getCCSBound2308(gt.key);Tt=It-Dt/2}return{...V({treeData:ct,widget:gt,mode:"preview"}),"data-link_cid":bt.filter(It=>It.interactive).map(It=>It.key).join(","),...gt.fixPosTo==="sticky"&&Pt&&{"sticky-offset":gt.stickyOffset||0,"origin-top":Tt,"data-is-sticky":0}}},ot=yt=>{let{treeData:ct,widget:gt,mode:bt}=yt;if(bt==="design")return V({treeData:ct,widget:gt,mode:bt});if(bt==="preview")return L({treeData:ct,widget:gt});if(bt==="snapshot")return V({treeData:ct,widget:gt,mode:bt})},G=(yt,ct)=>{const{x:gt,y:bt,r:Tt,w:Pt,h:It}=ct||{};return{position:"absolute",zIndex:ct.zIndex||"inherit",opacity:ct.isVisible?ct.opacity:0,width:Pt,height:It,transform:"translate("+(gt-Pt*.5)+"px,"+(bt-It*.5)+"px) rotate("+Tt+"deg)",...!ct.isVisible&&{pointerEvents:"none"}}},z=yt=>{let{treeData:ct,widget:gt}=yt;const{x:bt,y:Tt,r:Pt,w:It,h:Dt}=ct.widgetStore.sdkStore.getCCSBound2308(gt.key);let jt,Mt,Q,vt=bt-It/2;const{fixedOnTop:Lt,fixedOnBottom:Rt}=(0,M.dI)(gt.key,ct.widgetStore.sdkStore);if(Lt){if(jt="fixed",Mt=Tt-Dt/2,(0,U.OO)(ct.key)){const zt=sdkStore.locUpCanvasKey(ct.key);if(zt){const Kt=sdkStore.getHotItem(zt);Kt&&(vt=vt+Kt.hotAttr.x-Kt.hotAttr.w/2)}}}else if(Rt){jt="fixed";const zt=sdkStore.locUpCanvasKey(ct.key);if(zt){var Bt;const Kt=(0,W.Pb)(ct.widgetStore.sdkStore.getRelocateLocalBound(gt.key,zt)),ce=sdkStore.getHotItem(zt);if(Q=(ce==null||(Bt=ce.hotAttr)==null?void 0:Bt.h)-Kt[3],(0,U.OO)(ct.key)){var Ht;vt=vt+(ce==null?void 0:ce.hotAttr.x)-(ce==null||(Ht=ce.hotAttr)==null?void 0:Ht.w)/2}}}else jt="absolute",Mt=Tt-Dt/2;return{position:jt,left:vt,top:Mt,bottom:Q,r:Pt,w:It,h:Dt}},F=(yt,ct)=>{const{position:gt,left:bt,top:Tt,bottom:Pt,r:It,w:Dt,h:jt}=z({treeData:yt,widget:ct}),Mt=(0,O.Xr)(yt.widgetStore.sdkStore,ct.key,yt.runningIsEditingCombo,yt.editingBDanliKey).filter(vt=>vt.interactive),Q=Mt.length>0&&Mt.findIndex(vt=>vt.interactionTrigger==="tap"||vt.interactionTrigger==="click")!==-1;return{position:gt,top:Tt,bottom:Pt,left:bt,width:Dt,height:jt,zIndex:ct.zIndex||"inherit",pointerEvents:"auto",opacity:ct.isVisible?ct.opacity:0,visibility:ct.isVisible?"visible":"hidden",transform:It?"rotate("+It+"deg)":"",...ct.animation&&ct.animation.aniName!=="none"?{animationDuration:ct.animation.aniDuration,animationIterationCount:ct.animation.aniCount,animationDelay:ct.animation.aniDelay}:{},cursor:Q?"pointer":""}},k=(yt,ct)=>{const{x:gt,y:bt,r:Tt,w:Pt,h:It}=yt.widgetStore.sdkStore.getCCSBound2308(ct.key);return{position:"absolute",zIndex:ct.zIndex||"inherit",opacity:ct.isVisible?ct.opacity:0,width:Pt,height:It,top:bt-It*.5,left:gt-Pt*.5,rotate:Tt+"deg",transformOrigin:"center center",...!ct.isVisible&&{pointerEvents:"none"}}},ut=yt=>{let{treeData:ct,widget:gt,mode:bt}=yt;if(bt==="design")return G(ct,gt);if(bt==="preview")return F(ct,gt);if(bt==="snapshot")return k(ct,gt)},E=yt=>{let{treeData:ct,widget:gt}=yt;return(0,$.jsx)(I.EL,{sdk:ct.widgetStore.sdkStore,widget:gt})},J=yt=>{let{treeData:ct,widget:gt}=yt;const bt=(0,O.Xr)(ct.widgetStore.sdkStore,gt.key,ct.runningIsEditingCombo,ct.editingBDanliKey);if(bt.filter(Dt=>Dt.interactive).length===0)return null;const Tt=(0,b.XY)(bt),Pt=at(Tt);let It;if(rt.Q.USE_CLIP_TEXT.includes(gt.type)&&gt.richTextV1&&!gt.richTextV1.isClipText){const{boundingBoxTop:Dt,boundingBoxLeft:jt,boundingBoxHeight:Mt,boundingBoxWidth:Q}=gt.richTextMetric;return It={position:"absolute",left:Math.min(0,jt),top:Math.min(0,Dt),width:Math.max(Math.max(0,jt)+Q,gt.w),height:Math.max(Math.max(0,Dt)+Mt,gt.h)},{previewAssembly:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("div",{"data-cid":ct.key,"data-link_cid":bt.filter(vt=>vt.interactive).map(vt=>vt.key).join(","),style:{...It,zIndex:-1}}),(0,$.jsx)("div",{style:It,className:"region gesture "+Tt})]}),hasShake:Pt}}else if(gt.type==="wWrap"){const{offsetTlX:Dt,offsetTlY:jt,w:Mt=0,h:Q=0}=(0,A.py)(gt.key,ct.widgetStore.sdkStore)||{};return It={position:"absolute",left:Dt,top:jt,width:Mt,height:Q},{previewAssembly:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("div",{"data-cid":ct.key,"data-link_cid":bt.filter(vt=>vt.interactive).map(vt=>vt.key).join(","),style:{...It,pointerEvents:"auto",zIndex:-1}}),(0,$.jsx)("div",{style:It,className:"region gesture "+Tt})]}),hasShake:Pt}}else{const{w:Dt,h:jt}=ct.widgetStore.sdkStore.getHotBound(gt.key);It={position:"absolute",left:0,top:0,width:Dt,height:jt}}return{previewAssembly:(0,$.jsx)("div",{style:It,className:"region gesture "+Tt}),hasShake:Pt}},dt=yt=>{let{treeData:ct,widget:gt,mode:bt}=yt;if(bt==="design")return E({treeData:ct,widget:gt});if(bt==="preview"){var Tt;const{previewAssembly:Pt,hasShake:It}=(Tt=J({treeData:ct,widget:gt}))!=null?Tt:{};return{previewAssembly:Pt,hasShake:It}}if(bt==="snapshot")return null},pt=yt=>{let{widget:ct,children:gt}=yt;const bt=(0,st.Um)(ct),Tt={overflow:ct.richTextV1&&!ct.richTextV1.isClipText?"visible":"hidden",position:"absolute",width:"100%",height:"100%",...ct.type===rt.x.WOval?{borderRadius:"100%"}:(0,st.Nb)(ct),...(0,st.Dk)(ct)};return bt.border!=="none"&&(ct.border.bdrWidth>=ct.width||ct.border.bdrWidth>=ct.height)?(0,$.jsx)("div",{style:Tt,children:(0,$.jsx)("div",{style:{...(0,st.Um)(ct),overflow:"hidden"},children:gt})}):(0,$.jsx)("div",{style:{...(0,st.Um)(ct),...Tt},children:gt})},T=yt=>{var ct,gt;let{treeData:bt,props:Tt,mode:Pt}=yt;return!bt.children||((bt==null||(ct=bt.hotAttr)==null?void 0:ct.isVisible)===!1||(bt==null||(gt=bt.widget)==null?void 0:gt.isVisible)===!1)&&Pt==="design"?null:(0,$.jsx)($.Fragment,{children:bt.children.map(It=>It.render(Tt))})},ht=yt=>{let{treeData:ct,widget:gt,mode:bt="design",children:Tt,style:Pt=void 0,isNeedAssembly:It=!0,isNeedChildren:Dt=!1,isResetStyle:jt=!1,isSupMkt:Mt=!1,...Q}=yt;if(bt==="design"&&gt.isVisible===!1)return null;const vt=jt?Pt:{...ut({treeData:ct,widget:gt,mode:bt}),...Pt},Lt=(0,j.tZ)({widget:gt,treeData:ct,isSupMkt:Mt,mode:bt}),Rt=(0,it._5)()&&!(bt==="design"&&gt.type==="wWrap")&&Lt?Number((vt==null?void 0:vt.width)||0)<80?"has-watermark wm_s":"has-watermark wm_m":"",Bt=ot({treeData:ct,widget:gt,mode:bt});let Ht=null,zt=!1;if(It)if(bt==="preview"){const Kt=dt({treeData:ct,widget:gt,mode:bt});zt=Kt==null?void 0:Kt.hasShake,Ht=Kt==null?void 0:Kt.previewAssembly}else Ht=dt({treeData:ct,widget:gt,mode:bt});return(0,$.jsxs)("div",{...Bt,style:vt,className:((Bt==null?void 0:Bt.className)||"")+" "+Rt,onTouchEnd:zt?R:void 0,onPointerUp:zt?R:void 0,children:[Tt,It&&Ht,Dt&&T({treeData:ct,props:{...Q,isSupMkt:Lt||Mt},mode:bt})]})}},48310:($t,wt,w)=>{"use strict";w.d(wt,{K:()=>Nv,v:()=>Bct});var Z={};w.r(Z),w.d(Z,{Arc:()=>zy,BezierCurve:()=>Np,BoundingRect:()=>wn,Circle:()=>Uo,CompoundPath:()=>Bp,Ellipse:()=>Fy,Group:()=>sn,Image:()=>li,IncrementalDisplayable:()=>hz,Line:()=>oi,LinearGradient:()=>Kd,OrientedBoundingRect:()=>Fp,Path:()=>In,Point:()=>Sn,Polygon:()=>Ki,Polyline:()=>Xi,RadialGradient:()=>KD,Rect:()=>jn,Ring:()=>Rp,Sector:()=>Gi,Text:()=>Wn,applyTransform:()=>Fa,clipPointsByRect:()=>QD,clipRectByRect:()=>mz,createIcon:()=>Yd,extendPath:()=>pz,extendShape:()=>XD,getShapeClass:()=>Uy,getTransform:()=>Ll,groupTransition:()=>Xd,initProps:()=>_r,isElementRemoved:()=>Zu,lineLineIntersect:()=>qD,linePolygonIntersect:()=>Zd,makeImage:()=>YD,makePath:()=>dc,mergePath:()=>xa,registerShape:()=>Wa,removeElement:()=>ws,removeElementWithFadeOut:()=>Id,resizePath:()=>$D,setTooltipConfig:()=>fc,subPixelOptimize:()=>Hp,subPixelOptimizeLine:()=>hc,subPixelOptimizeRect:()=>gz,transformDirection:()=>Up,traverseElements:()=>Ts,updateProps:()=>Hn});var I={};w.r(I),w.d(I,{parse:()=>aat});var O=w(63555),b=w(51044),M=w(39033),W=w(41419),st=w(62795),rt=w(41593),m=w(57464);const U=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,props:i}=n;const a=()=>r==="snapshot"?{position:"absolute",width:"100%",height:"100%",backgroundSize:"100% auto",backgroundColor:e.widget.bgcolor,backgroundImage:e.widget.bgimage?"url("+t.bgimage+")":""}:{...(0,rt.oj)({treeData:e,widget:t,mode:r})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isResetStyle:!0,style:{...a()},isNeedChildren:!0})});class A extends M.n{renderWidgetContent(){return null}}class j extends W.f{renderWidgetContent(){return null}}class it extends st.j{renderWidgetContent(t){return(0,m.jsx)(U,{treeData:this,widget:this.widget,props:t,mode:"snapshot"})}}const Y=[A,j,it];var P=w(68496),R=w(21676);const at=R.Ay.div.withConfig({displayName:"styles__StyledMTooltip",componentId:"sc-1cswk3w-0"})([".text{width:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}}.rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;}.arrow,.arrow2{position:absolute;background-image:none;&.top,&.bottom{border-left:10px solid transparent;border-right:10px solid transparent;}&.top{border-bottom-color:#aaa;border-bottom-style:solid;}&.bottom{bottom:0;border-top-color:#aaa;border-top-style:solid;}&.left,&.right{border-top:10px solid transparent;border-bottom:10px solid transparent;}&.left{border-right-color:#aaa;border-right-style:solid;}&.right{right:0;border-left-color:#aaa;border-left-style:solid;}}"]);var $=w(91416),K=w(57882),H=w(64954);class B extends b.PureComponent{render(){const{widget:t}=this.props,{tooltip:e,border:r,fill:i}=t,{arrowSize:a,offset:o,placement:s}=e,u={top:"borderBottomColor",bottom:"borderTopColor",left:"borderRightColor",right:"borderLeftColor"}[s],c=s==="top"||s==="bottom",d={borderWidth:a,left:c?o:"",top:c?"":o},h={...d,[s]:1,[u]:r.bdrIsVisible?(0,P.t0)(r.bdrColor):"transparent"},f={...d,[s]:0+r.bdrWidth+1,[u]:(0,P.t0)(i.solidColor)},p=X(t);return(0,m.jsxs)(at,{style:p,children:[(0,m.jsx)("div",{className:"arrow1 arrow "+s,style:h}),(0,m.jsx)("div",{className:"arrow2 arrow "+s,style:f}),(0,m.jsx)(H.HY,{widget:t})]})}}function X(n){const{w:t,h:e,tooltip:r}=n,{placement:i,arrowSize:a}=r;let o=e,s=t;i==="top"||i==="bottom"?o-=a:s-=a;const l=["top","right","bottom","left"].map(u=>u===i?a+"px":0);return{...(0,K.u6)(n),width:s,height:o,display:"flex",margin:l.join(" "),background:(0,$.n7)(n),opacity:n.opacity,...(0,K.Um)(n),overflow:"hidden"}}const V={overflow:"visible",boxShadow:"none"},L=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:V,children:(0,m.jsx)(B,{widget:t})})});class ot extends M.n{renderWidgetContent(t){return(0,m.jsx)(L,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class G extends W.f{renderWidgetContent(t){return(0,m.jsx)(L,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class z extends st.j{renderWidgetContent(t){return(0,m.jsx)(L,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const F=[ot,G,z];var k=w(74059),ut=w(86634),E=w.n(ut),J=w(72605);function dt(n){const{isThumbVisible:t,thumbColor:e,isCheckedThumbVisible:r,checkedThumbColor:i,isTrackVisible:a,trackColor:o,isCheckedTrackVisible:s,checkedTrackColor:l}=n,u=r?(0,P.t0)(i):"#00000000",c=s?(0,P.t0)(l):"#00000000",d=t?(0,P.t0)(e):"#00000000",h=a?(0,P.t0)(o):"#00000000";return{thumbCheckedBg:u,thumbUncheckedBg:d,trackCheckedBg:c,trackUncheckedBg:h}}var pt=w(91560);const T=R.Ay.label.withConfig({displayName:"style__StyledIOSSwitch",componentId:"sc-1gk2f8e-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;overflow:hidden;border-radius:",";pointer-events:"," !important;cursor:"," !important;input{position:absolute;width:0;height:0;left:0;top:0;opacity:0;cursor:inherit;}.CheckState-Switches{display:flex;align-items:center;width:100%;height:100%;color:transparent;justify-content:flex-start;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState-Switches{color:#fff;svg{opacity:1;}}input:not(:checked) + .CheckState-Switches{svg{opacity:0;}}&.iOS-Switches{z-index:5;.CheckState-Switches{text-align:center;color:#333;background-color:",";&::after{content:'';position:relative;display:block;margin:0;padding:",";width:",";height:",";border:",";box-sizing:border-box;background-color:",";border-radius:50%;box-shadow:",";transition:",";transform:",";}}input:checked + .CheckState-Switches{background-color:",";border-color:transparent;&::after{transform:",";background-color:",";box-shadow:",";border:",";}}}&.Switches-Disabled{cursor:pointer !important;&::after{content:'';position:absolute;display:block;width:100%;height:100%;opacity:",";top:0;z-index:1;background:#fff;}&.iOS-Switches .CheckState-Switches{&::before{content:'';position:absolute;display:block;margin:0;opacity:",";z-index:1;padding:",";width:",";height:",";box-sizing:border-box;background-color:#fff;border-radius:50%;transform:",";}}input:checked + .CheckState-Switches{&::before{transform:",";opacity:",";}}}"],n=>n.trackBorderRadius,n=>n.editable?"auto":"none",n=>n.editable?"pointer":"inherit",n=>n.trackUncheckedBg,n=>n.thumbIOSPadding,n=>n.thumbIOSWidth,n=>n.thumbIOSWidth,n=>n.thumbUncheckedBg!=="#00000000"?"0.5px solid rgba(0, 0, 0, 0.04)":"none",n=>n.thumbUncheckedBg,n=>n.thumbUncheckedBg!=="#00000000"?"0 3px 1px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.15)":"none",n=>n.editable?"transform 0.25s ease-in-out":"none",n=>n.thumbIOSUncheckedPosition,n=>n.trackCheckedBg,n=>n.thumbIOSCheckedPosition,n=>n.thumbCheckedBg,n=>n.thumbCheckedBg!=="#00000000"?"0 3px 1px rgba(0, 0, 0, 0.06), 0 3px 8px rgba(0, 0, 0, 0.15)":"none",n=>n.thumbCheckedBg!=="#00000000"?"0.5px solid rgba(0, 0, 0, 0.04)":"none",n=>n.isChecked?n.trackCheckedBg==="#00000000"?"0":"0.6":n.trackUncheckedBg==="#00000000"?"0":"0.6",n=>n.thumbUncheckedBg==="#00000000"||n.trackUncheckedBg!=="#00000000"?"0":"0.6",n=>n.thumbIOSPadding,n=>n.thumbIOSWidth,n=>n.thumbIOSWidth,n=>n.thumbIOSUncheckedPosition,n=>n.thumbIOSCheckedPosition,n=>n.thumbCheckedBg==="#00000000"||n.trackCheckedBg!=="#00000000"?"0":"0.6");class ht extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onClick",t=>{t.stopPropagation();const{widget:e,isChecked:r,handleSwitchCheckedChange:i}=this.props,{isDisabled:a}=e.switch;if(a)return t.preventDefault();typeof i=="function"&&i(!r)})}render(){const{widget:t,editable:e,isChecked:r}=this.props,{isDisabled:i}=t.switch,{thumbCheckedBg:a,thumbUncheckedBg:o,trackCheckedBg:s,trackUncheckedBg:l}=dt(t.switch),u=t.h*.8,c=u+"px",d="0 0 0 "+(u-2)+"px",h="translate("+(t.w-u-t.h*.1)+"px, 0)",f="translate("+t.h*.1+"px, 0)",p=t.h*.5+"px";return(0,m.jsxs)(T,{className:E()("iOS-Switches","canClickableHighWidget",i&&"Switches-Disabled"),editable:e,isChecked:r,thumbCheckedBg:a,thumbUncheckedBg:o,thumbIOSCheckedPosition:h,thumbIOSUncheckedPosition:f,thumbIOSPadding:d,trackCheckedBg:s,trackUncheckedBg:l,thumbIOSWidth:c,trackBorderRadius:p,children:[(0,m.jsx)("input",{onClick:this.onClick,type:"checkbox",checked:r},t.key+r),(0,m.jsx)("span",{className:"CheckState-Switches"})]})}}const yt=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isChecked:i,isEditing:a,isSupMkt:o=!1,dispatch:s}=n;const l=(0,b.useCallback)(u=>{if(r==="design"){MB.action("entry:switch:attr:set",{value:u,attr:"checked"});return}r==="preview"&&s({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:t.key,status:u,defaultStatus:t.switch.checked}})},[s,r,t.key,t.switch.checked]);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:o,children:(0,m.jsx)(ht,{widget:t,isChecked:r==="preview"?i:t.switch.checked,editable:r==="preview"?!0:a,handleSwitchCheckedChange:l})})});class ct extends M.n{renderWidgetContent(t){const e=t.editingEditableWidgetCid===this.widget.key;return(0,m.jsx)(yt,{widget:this.widget,treeData:this,isEditing:e,mode:"design",isSupMkt:t.isSupMkt})}}const gt=(n,t)=>{var e,r;const{widgetStatusMap:i}=(0,pt.mf)(n),{widget:{key:a,switch:{checked:o}}}=t;return{isChecked:(e=(r=i[a])==null?void 0:r.status)!=null?e:o}},bt=(0,J.Ng)(gt)(yt);class Tt extends W.f{renderWidgetContent(t){return(0,m.jsx)(bt,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Pt extends st.j{renderWidgetContent(t){return(0,m.jsx)(yt,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const It=[ct,Tt,Pt];var Dt=w(57465),jt=w(86803),Mt=w(45411),Q=w(53955);const vt=R.Ay.div.withConfig({displayName:"styles__StyledRichText",componentId:"sc-1x53i04-0"})(["white-space:pre-wrap;word-break:break-word;word-wrap:break-word;&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}}a{pointer-events:auto;cursor:inherit;color:",";}"],n=>n.style.color),Lt=R.Ay.div.withConfig({displayName:"styles__StyledTextView",componentId:"sc-1x53i04-1"})(['&:after{content:"";position:absolute;width:100%;height:100%;top:0;left:0;background-color:',";}"],n=>n.background),Rt=n=>{const{w:t,h:e,richTextV1:r}=n,{fontSize:i,textColor:a,lineHeight:o,paddingTuple:s,fontDirection:l,fontFamily:u,fontWeight:c,underline:d,strikethrough:h,italic:f,bold:p,verticalAlign:g,horizontalAlign:v,letterSpacing:y,isClipText:x}=r||{},{borderLeft:S,borderTop:_,borderRight:D,borderBottom:C}=(0,K.NV)(n),N=t-S-D,q=e-_-C,et=p?700:400;let lt="";return d&&(lt="underline"),h&&(lt+=(lt?" ":"")+"line-through"),lt===""&&(lt="none"),{width:N,height:q,fontFamily:u,fontWeight:et,fontSize:i+"px",fontStyle:f?"italic":"normal",letterSpacing:y+"px",justifyContent:g,alignItems:(0,H.xC)(v),textAlign:v,boxShadow:"none",color:a,lineHeight:o+"px",...(0,Mt.N3)(s),textDecoration:lt,display:"flex",flexDirection:"column",writingMode:l,overflow:x||x===void 0?"hidden":"visible"}},Bt=b.memo(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...(0,K.u6)(t),...zt(t),...t.type===O.x.WOval?{borderRadius:"100%"}:{}},children:(0,m.jsx)(rt.af,{widget:t,children:(0,m.jsx)(Ht,{widget:t})})})});class Ht extends b.Component{shouldComponentUpdate(t,e,r){if(this.props.widget!==t.widget){var i;return!((i=(0,Q.dP)())!=null&&i.flag.isDraggingItem)}return!1}render(){const{widget:t}=this.props;if((0,jt.SD)(t.textV1.blocks))return null;const r=(0,Dt.d0)(t),i=!r||r==="<p>&nbsp;</p>"||r==='<p style="opacity: 0;">&nbsp;</p>';return(0,m.jsx)(vt,{id:"text-dom-"+t.key,className:"rich-text h-"+t.richTextV1.horizontalAlign,style:Rt(t),dangerouslySetInnerHTML:i?void 0:{__html:r}})}}const zt=n=>({background:(0,$.n7)(n)});class Kt extends M.n{renderWidgetContent(t){return(0,m.jsx)(Bt,{widget:this.widget,mode:"design",treeData:this,isSupMkt:t.isSupMkt})}}class ce extends W.f{renderWidgetContent(t){return(0,m.jsx)(Bt,{widget:this.widget,mode:"preview",treeData:this,isSupMkt:t.isSupMkt})}}class oe extends st.j{renderWidgetContent(t){return(0,m.jsx)(Bt,{widget:this.widget,mode:"snapshot",treeData:this,isSupMkt:t.isSupMkt})}}const he=[Kt,ce,oe];var _e=w(54909);const Fe=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n,a={};return r!=="preview"&&t.type==="wLr"&&(a=ge),(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)("span",{style:a})})});class Re extends M.n{renderWidgetContent(t){return(0,m.jsx)(Fe,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class le extends W.f{renderWidgetContent(t){return(0,m.jsx)(Fe,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ee extends st.j{renderWidgetContent(t){return(0,m.jsx)(Fe,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const ge={background:_e.f.color_hotspot.value_light,border:"1px solid "+_e.f.color_comments.value_light,position:"absolute",height:"100%",width:"100%"},de=[Re,le,ee],fe=R.Ay.div.withConfig({displayName:"styles__StyledIOSStatusBar",componentId:"sc-1ytee4i-0"})(["position:relative;display:flex;justify-content:center;align-items:center;padding:0 0.5em;width:100%;height:100%;.StatusBarSignal{margin-right:0.25em;}.StatusBarWifi{margin-left:0.25em;margin-right:auto;}.StatusBarBattery{margin-left:auto;}.StatusBarTime{position:absolute;left:50%;transform:translateX(-50%);}"]);class Ae extends b.PureComponent{render(){const{widget:{textV0:{textColor:t},fill:e}}=this.props,r=e.fillIsVisible?(0,P.t0)(e.solidColor):"";return(0,m.jsxs)(fe,{className:"iOS-StatusBar",style:{color:(0,P.t0)(t),background:r,alignItems:"center"},children:[(0,m.jsx)("div",{className:"StatusBarSignal",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"12",children:(0,m.jsx)("path",{d:"M1.25 6.5h1a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V7.5a1 1 0 0 1 1-1zM5.75 5h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z",fillRule:"evenodd",fill:"currentColor"})})}),(0,m.jsx)("div",{className:"StatusBarWifi",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",children:(0,m.jsx)("path",{d:"M8.007 2.787a8.64 8.64 0 0 1 5.953 2.379c.12.118.314.116.433-.004l1.156-1.166a.322.322 0 0 0-.003-.456 10.897 10.897 0 0 0-15.08 0 .322.322 0 0 0-.003.456L1.62 5.162c.119.12.312.122.433.004a8.641 8.641 0 0 1 5.954-2.379zm0 3.796c1.217 0 2.391.452 3.294 1.27a.31.31 0 0 0 .433-.006l1.155-1.167a.322.322 0 0 0-.005-.459 7.16 7.16 0 0 0-9.752 0 .322.322 0 0 0-.005.46l1.155 1.166a.31.31 0 0 0 .433.006 4.907 4.907 0 0 1 3.292-1.27zm2.219 2.784a.314.314 0 0 0-.01-.457 3.422 3.422 0 0 0-4.42 0 .314.314 0 0 0-.009.457l1.998 2.016a.312.312 0 0 0 .443 0l1.998-2.016z",fillRule:"nonzero",fill:"currentColor"})})}),(0,m.jsx)("div",{className:"StatusBarTime",children:"12:00"}),(0,m.jsx)("div",{className:"StatusBarBattery",children:(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"12",children:[(0,m.jsx)("path",{d:"M2.667 1.333C1.747 1.333 1 2.08 1 3v6c0 .92.746 1.667 1.667 1.667h16.666C20.253 10.667 21 9.92 21 9V3c0-.92-.746-1.667-1.667-1.667H2.667zm0-1h16.666A2.667 2.667 0 0 1 22 3v6a2.667 2.667 0 0 1-2.667 2.667H2.667A2.667 2.667 0 0 1 0 9V3A2.667 2.667 0 0 1 2.667.333z",opacity:".35",fill:"currentColor"}),(0,m.jsx)("path",{d:"M23 4v4a2.17 2.17 0 0 0 0-4",opacity:".4",fill:"currentColor"}),(0,m.jsx)("rect",{fill:"currentColor",x:"2",y:"2.333",width:"18",height:"7.333",rx:"1.333"})]})})]})}}const te=b.memo(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(Ae,{widget:t})})});class Ie extends M.n{renderWidgetContent(t){return(0,m.jsx)(te,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class cn extends W.f{renderWidgetContent(t){return(0,m.jsx)(te,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ln extends st.j{renderWidgetContent(t){return(0,m.jsx)(te,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Qe=[Ie,cn,ln],dn=R.Ay.div.withConfig({displayName:"styles__StyledIPhoneXStatusBar",componentId:"sc-tl68by-0"})(["display:flex;justify-content:center;height:100%;padding:0 14px;.StatusBarTime{justify-content:center;margin-right:auto;margin-left:7px;width:54px;font-size:14px;font-weight:600;}.StatusBarSignal{margin-left:auto;}.StatusBarSignal,.StatusBarWifi{margin-right:0.4em;}"]);class fn extends b.PureComponent{render(){const{widget:{textV0:{textColor:t},fill:e}}=this.props,r=e.fillIsVisible?(0,P.t0)(e.solidColor):"";return(0,m.jsxs)(dn,{className:"iPhoneX-StatusBar",style:{color:(0,P.t0)(t),background:r,alignItems:"center"},children:[(0,m.jsx)("div",{className:"StatusBarTime",children:"12:00"}),(0,m.jsx)("div",{className:"StatusBarSignal",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"12",fill:"currentColor",children:(0,m.jsx)("path",{d:"M1.25 6.5h1a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V7.5a1 1 0 0 1 1-1zM5.75 5h1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.5-2h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z",fillRule:"evenodd",fill:"currentColor"})})}),(0,m.jsx)("div",{className:"StatusBarWifi",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",fill:"currentColor",children:(0,m.jsx)("path",{d:"M8.007 2.787a8.64 8.64 0 0 1 5.953 2.379c.12.118.314.116.433-.004l1.156-1.166a.322.322 0 0 0-.003-.456 10.897 10.897 0 0 0-15.08 0 .322.322 0 0 0-.003.456L1.62 5.162c.119.12.312.122.433.004a8.641 8.641 0 0 1 5.954-2.379zm0 3.796c1.217 0 2.391.452 3.294 1.27a.31.31 0 0 0 .433-.006l1.155-1.167a.322.322 0 0 0-.005-.459 7.16 7.16 0 0 0-9.752 0 .322.322 0 0 0-.005.46l1.155 1.166a.31.31 0 0 0 .433.006 4.907 4.907 0 0 1 3.292-1.27zm2.219 2.784a.314.314 0 0 0-.01-.457 3.422 3.422 0 0 0-4.42 0 .314.314 0 0 0-.009.457l1.998 2.016a.312.312 0 0 0 .443 0l1.998-2.016z",fill:"currentColor",fillRule:"nonzero"})})}),(0,m.jsx)("div",{className:"StatusBarBattery",children:(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"12",fill:"currentColor",children:[(0,m.jsx)("path",{d:"M2.667 1.333C1.747 1.333 1 2.08 1 3v6c0 .92.746 1.667 1.667 1.667h16.666C20.253 10.667 21 9.92 21 9V3c0-.92-.746-1.667-1.667-1.667H2.667zm0-1h16.666A2.667 2.667 0 0 1 22 3v6a2.667 2.667 0 0 1-2.667 2.667H2.667A2.667 2.667 0 0 1 0 9V3A2.667 2.667 0 0 1 2.667.333z",opacity:".35"}),(0,m.jsx)("path",{d:"M23 4v4a2.17 2.17 0 0 0 0-4",fill:"currentColor",opacity:".4"}),(0,m.jsx)("rect",{fill:"currentColor",x:"2",y:"2.333",width:"18",height:"7.333",rx:"1.333"})]})})]})}}const Tn=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(fn,{widget:t})})});class un extends M.n{renderWidgetContent(t){return(0,m.jsx)(Tn,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class gn extends W.f{renderWidgetContent(t){return(0,m.jsx)(Tn,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ne extends st.j{renderWidgetContent(t){return(0,m.jsx)(Tn,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const bn=[un,gn,ne],en=R.Ay.div.withConfig({displayName:"styles__StyledAndroidStatusBar",componentId:"sc-15699n8-0"})(["display:flex;justify-content:flex-end;padding:0 10px;height:100%;font-size:16px;.StatusBarBattery{font-size:18px;margin:0 6px;}.StatusBarTime{font-size:13px;}"]);class Bn extends b.PureComponent{render(){const{widget:{textV0:{textColor:t},fill:e}}=this.props,r=e.fillIsVisible?(0,P.t0)(e.solidColor):"";return(0,m.jsxs)(en,{className:"Android-StatusBar",style:{color:(0,P.t0)(t),background:r,alignItems:"center"},children:[(0,m.jsx)("div",{className:"StatusBarWifi",children:(0,m.jsx)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{d:"M0.0507812 3.54971C4.39709 0.111033 10.5736 0.111033 14.9199 3.54971L7.48533 12.9707L0.0507812 3.54971Z",fill:"currentColor"})})}),(0,m.jsx)("div",{className:"StatusBarSignal",children:(0,m.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,m.jsx)("path",{d:"M13 0V13H0L13 0Z",fill:"currentColor"})})}),(0,m.jsx)("div",{className:"StatusBarBattery",children:(0,m.jsxs)("svg",{width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{d:"M0 3C0 2.44772 0.447715 2 1 2H7C7.55228 2 8 2.44772 8 3V14C8 14.5523 7.55228 15 7 15H1C0.447715 15 0 14.5523 0 14V3Z",fill:"currentColor"}),(0,m.jsx)("path",{d:"M2.5 0H5.5V3H2.5V0Z",fill:"currentColor"})]})}),(0,m.jsx)("div",{className:"StatusBarTime",children:"12:00"})]})}}const Ln=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(Bn,{widget:t})})});class vn extends M.n{renderWidgetContent(t){return(0,m.jsx)(Ln,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Fn extends W.f{renderWidgetContent(t){return(0,m.jsx)(Ln,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class zn extends st.j{renderWidgetContent(t){return(0,m.jsx)(Ln,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const On=[vn,Fn,zn];var an=w(73773),mn=w(19418);const rr=R.Ay.input.withConfig({displayName:"styles__StyledInput",componentId:"sc-1tc6s27-0"})(["padding:0 8px;display:block;position:absolute;left:0;width:100%;height:100%;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;border:none;border-radius:inherit;outline:none;background:inherit;text-align:inherit;line-height:inherit;resize:none;&::-webkit-input-placeholder{color:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;word-break:break-all;}&[type=date],&[type=time],&[type=datetime-local]{-webkit-appearance:none;}"]);var Un=w(17383);const fr=(0,b.memo)(n=>{let{widget:t,needShowPlaceholder:e,value:r,onInput:i,inputStyle:a}=n;const o=(0,b.useRef)(null),{textInput:s,textV0:l}=t,u=(0,K.H9)(t),c=(0,K.xQ)(t),d=(0,K.Dm)(t),h=(0,P.t0)(e?l.textColor:s.prefillTextColorV0),f={padding:"0 8px",...d,...c,color:h,position:"relative",fontFamily:l.fontFamily,fontWeight:(0,Un._y)(l==null?void 0:l.fontWeight,l==null?void 0:l.bold),...a},p=e?{placeholder:r,value:""}:{value:r};let g=s.inputTypes;s.inputTypes==="password"&&e&&(g="text");const v=(0,b.useCallback)(x=>{x.key===an._.Enter&&x.preventDefault()},[]),y=(0,b.useCallback)(()=>{var x;(x=o.current)==null||x.blur()},[]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("form",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(rr,{ref:o,style:f,type:g,...p,autoComplete:"off",onKeyDown:v,onInput:i})}),(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(y,{capture:!0})})]})});var lr=w(13974);class yr extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onInput",t=>{const{widget:e,isEditing:r}=this.props;r&&MB.action("entry:widget:change",{flatChgList:[{key:e.key,hotAttr:{textInput:{...e.textInput,prefillTextV0:t.target.value}}}]})})}render(){const{widget:t,isEditing:e}=this.props,{textV0:r,textInput:i}=t,a=(0,K.Dm)(t),o=(0,K.xQ)(t),s=(0,K.H9)(t),{needShowPlaceholder:l,value:u}=(0,lr.vr)(t),c=(0,P.t0)(l?r.textColor:i.prefillTextColorV0),d=u,h={padding:"0 8px",...a,...o,position:"relative",color:c,pointerEvents:e?"auto":"none",fontFamily:r.fontFamily,fontWeight:(0,Un._y)(r==null?void 0:r.fontWeight,r==null?void 0:r.bold)};let f=i.inputTypes;return i.inputTypes==="password"&&l&&(f="text"),(0,m.jsx)("form",{style:{width:"100%",height:"100%"},children:(0,m.jsx)(rr,{style:h,type:f,value:d,autoComplete:"off",onInput:this.onInput})})}}var Xn=w(63686);const Pr=n=>{const{textV0:t,textInput:e}=n,[r,i]=(0,b.useState)(e.prefillTextV0===""),[a,o]=(0,b.useState)(r?t.text:e.prefillTextV0);return{needShowPlaceholder:r,setNeedShowPlaceholder:i,value:a,setValue:o}},Ar=(0,Xn.Mz)([pt.mf],n=>{let{runnerCacheTag:t}=n;return{runnerCacheTag:t}});function Yn(n){let{widget:t}=n;const{textV0:e}=t,{value:r,setValue:i,needShowPlaceholder:a,setNeedShowPlaceholder:o}=Pr(t),s=(0,b.useCallback)(u=>{u.target.value===""?(o(!0),i(e.text)):(o(!1),i(u.target.value))},[e,o,i]),{runnerCacheTag:l}=(0,J.d4)(Ar);return(0,b.useEffect)(()=>{const{needShowPlaceholder:u,value:c}=(0,lr.vr)(t);o(u),i(c)},[l,t,i,o]),(0,m.jsx)(fr,{widget:t,needShowPlaceholder:a,value:r,onInput:s})}const Tr=n=>{const t=(0,$.n7)(n);return{...(0,K.u6)(n),background:t,overflow:"hidden",...(0,K.im)(n),...(0,K.Um)(n)}},Ji=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const{needShowPlaceholder:o,value:s}=(0,b.useMemo)(()=>(0,lr.vr)(t),[t]);return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:Tr(t),children:[r==="design"&&(0,m.jsx)(yr,{widget:t,isEditing:i}),r==="preview"&&(0,m.jsx)(Yn,{widget:t}),r==="snapshot"&&(0,m.jsx)(fr,{widget:t,needShowPlaceholder:o,value:s})]})});class qt extends M.n{renderWidgetContent(t){const e=this.widget.key===this.editingEditableWidgetCid;return(0,m.jsx)(Ji,{widget:this.widget,treeData:this,mode:"design",isEditing:e,isSupMkt:t.isSupMkt})}}class Jt extends W.f{renderWidgetContent(t){return(0,m.jsx)(Ji,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class se extends st.j{renderWidgetContent(t){return(0,m.jsx)(Ji,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const xe=[qt,Jt,se],ke=R.Ay.div.withConfig({displayName:"styles__StyledMTextarea",componentId:"sc-1c41394-0"})(["width:100%;height:100%;position:absolute;overflow:hidden;textarea{left:0;width:100%;height:100%;display:block;position:absolute;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;border:none;border-radius:inherit;outline:none;background:inherit;text-align:inherit;line-height:inherit;resize:none;&::-webkit-input-placeholder{color:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;line-height:inherit;word-break:break-all;}}"]);class Ne extends b.PureComponent{render(){const{widget:t,onlyView:e}=this.props,{textV0:r,textInput:i}=t,{needShowPlaceholder:a,value:o}=(0,lr.vr)(t),s=(0,P.t0)(a?r.textColor:i.prefillTextColorV0),l=Math.round(r.padding);let u=Math.round(l-(r.lineHeight-r.fontSize)/2);u<0&&(u=0);const c=o,d={padding:u+"px "+l+"px",...(0,K.Zv)(r),color:s};let h={placeholder:c};return e&&(h={value:o}),(0,m.jsx)(ke,{children:(0,m.jsx)("textarea",{style:d,...h})})}}class $e extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"onInput",i=>{const{widget:a}=this.props,{textV0:o}=a;i.target.value===""?this.setState({needShowPlaceholder:!0,value:o.text}):this.setState({needShowPlaceholder:!1,value:i.target.value})}),(0,k.A)(this,"handleClickOutSide",i=>{this.textAreaRef.blur()});const{needShowPlaceholder:e,value:r}=(0,lr.vr)(t.widget);this.state={needShowPlaceholder:e,value:r}}componentDidUpdate(t){if(t.runnerCacheTag!==this.props.runnerCacheTag){const{needShowPlaceholder:e,value:r}=(0,lr.vr)(this.props.widget);this.setState({needShowPlaceholder:e,value:r})}}render(){const{widget:t}=this.props,{needShowPlaceholder:e,value:r}=this.state,{textV0:i,textInput:a}=t,o=Math.round(i.padding);let s=Math.round(o-(i.lineHeight-i.fontSize)/2);s<0&&(s=0);const l=(0,P.t0)(e?i.textColor:a.prefillTextColorV0),u=e?{placeholder:r}:{value:r},c={...(0,K.Zv)(i),padding:s+"px "+o+"px",color:l};return(0,m.jsxs)(ke,{children:[(0,m.jsx)("textarea",{ref:d=>{this.textAreaRef=d},style:c,...u,onInput:this.onInput}),(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(this.handleClickOutSide,{capture:!0})})]})}}const Le=(0,Xn.Mz)([pt.mf],n=>{let{runnerCacheTag:t}=n;return{runnerCacheTag:t}}),He=(0,J.Ng)(Le)($e),Ye=n=>{const t=(0,$.n7)(n);return{...(0,K.u6)(n),background:t,...(0,K.im)(n),...(0,K.Um)(n),padding:0}},Ke=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,onlyView:i,isSupMkt:a=!1}=n;return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:Ye(t),children:[(r==="design"||r==="snapshot")&&(0,m.jsx)(Ne,{widget:t,onlyView:i}),r==="preview"&&(0,m.jsx)(He,{widget:t})]})});class yn extends M.n{renderWidgetContent(t){const{onlyView:e}=t;return(0,m.jsx)(Ke,{widget:this.widget,treeData:this,mode:"design",onlyView:e,isSupMkt:t.isSupMkt})}}class Qn extends W.f{renderWidgetContent(t){return(0,m.jsx)(Ke,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class tr extends st.j{renderWidgetContent(t){return(0,m.jsx)(Ke,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Sr=[yn,Qn,tr],ur=R.Ay.input.withConfig({displayName:"styles__StyledMFileInput",componentId:"sc-1268c1t-0"})(["position:absolute;line-height:1ex;width:100%;outline:none;top:50%;transform:translateY(-50%);color:#5b6b73;"]),ar=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(ur,{type:"file"})})});class bi extends M.n{renderWidgetContent(t){return(0,m.jsx)(ar,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Ir extends W.f{renderWidgetContent(t){return(0,m.jsx)(ar,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Ur extends st.j{renderWidgetContent(t){return(0,m.jsx)(ar,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Gr=[bi,Ir,Ur],sa=n=>'\n width: 100%;\n height: 100%;\n // left: 0;\n display: block;\n // position: absolute;\n font-size: inherit;\n color: inherit;\n border: none;\n border-radius: inherit;\n outline: none;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background-color: inherit;\n background-image: url("data:image/svg+xml,%20%20%3Csvg%0A%20%20%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20%20%20class%3D%22svg-icon%20icon%20arrow-icon%22%0A%20%20%20%20viewBox%3D%220%200%208%208%22%0A%20%20%3E%0A%20%20%20%20%3Cpath%0A%20%20%20%20%20%20fill-rule%3D%22evenodd%22%0A%20%20%20%20%20%20clip-rule%3D%22evenodd%22%0A%20%20%20%20%20%20d%3D%22M7.18198%202.64658C7.37724%202.84184%207.37724%203.15842%207.18198%203.35369L4.35355%206.18211C4.15829%206.37738%203.84171%206.37738%203.64645%206.18211L0.81802%203.35369C0.622757%203.15842%200.622757%202.84184%200.81802%202.64658C1.01328%202.45132%201.32986%202.45132%201.52513%202.64658L4%205.12145L6.47487%202.64658C6.67014%202.45132%206.98672%202.45132%207.18198%202.64658Z%22%0A%20%20%20%20%20%20fill%3D%22%23888%22%0A%20%20%20%20%3E%3C%2Fpath%3E%0A%20%20%3C%2Fsvg%3E");\n background-repeat: no-repeat, repeat;\n background-position: right 4px top 50%, 0 0;\n background-size: '+n.backgroundSize+"px auto, 100%;\n line-height: initial;\n",Ya=R.Ay.select.withConfig({displayName:"styles__StyledMSelect",componentId:"sc-rz9uan-0"})(["",""],sa),Ni=R.Ay.div.withConfig({displayName:"styles__StyledOnlyViewMSelect",componentId:"sc-rz9uan-1"})([""," display:flex;align-items:center;"],sa),rs=n=>({background:(0,$.n7)(n),...(0,K.Um)(n),...(0,K.Nb)(n),fontSize:n.textV0.fontSize,color:(0,P.t0)(n.textV0.textColor),boxShadow:(0,K.Ps)(n.shadow),minHeight:"17px"}),Za=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,onlyView:i,isSupMkt:a=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:rs(t),children:(0,m.jsx)(ko,{widget:t,value:0,mode:r,onlyView:i})})});class ko extends b.PureComponent{render(){const{widget:t,value:e=0,mode:r,onlyView:i}=this.props,{textV0:a}=t,o=r==="preview"?{defaultValue:e}:{value:e},s=a.text.split(/\n/),{fontSize:l}=(0,K.Zv)(a),u={...(0,K.Zv)(a),justifyContent:"flex-start",...(0,Mt.JG)(a.paddingTuple)};return i?(0,m.jsx)(Ni,{backgroundSize:l,style:u,className:"text",children:s[0]}):(0,m.jsx)(Ya,{backgroundSize:l,style:u,className:"text",...o,children:a.text.split(/\n/).map((c,d)=>(0,m.jsx)("option",{value:d,children:c},c+d))})}}class tt extends M.n{renderWidgetContent(t){const{onlyView:e}=t;return(0,m.jsx)(Za,{widget:this.widget,treeData:this,mode:"design",onlyView:e,isSupMkt:t.isSupMkt})}}class St extends W.f{renderWidgetContent(t){return(0,m.jsx)(Za,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Et extends st.j{renderWidgetContent(t){return(0,m.jsx)(Za,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Ft=[tt,St,Et],ve=R.Ay.div.withConfig({displayName:"styles__StyledButton",componentId:"sc-1naap5b-0"})(["display:flex;height:100%;width:100%;.button-wrapper{width:100%;height:100%;display:flex;justify-content:inherit;align-items:inherit;.rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;}.icon{margin:0 4px;}.text{white-space:pre;line-height:normal;}}"]);class ae extends b.PureComponent{render(){const{widget:t}=this.props;return(0,m.jsx)(ve,{className:"button-wrapper",style:{...(0,K.lL)(t)},children:(0,m.jsx)(H.HY,{widget:t})})}}const be=n=>{var t;const e=n.fill?(0,$.n7)(n):"";return{...(0,K.u6)(n),justifyContent:(t=n.textV0)==null?void 0:t.horizontalAlign,background:e}},Ue=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...be(t)},children:(0,m.jsx)(rt.af,{widget:t,children:(0,m.jsx)(ae,{widget:t})})})});class Cn extends M.n{renderWidgetContent(t){return(0,m.jsx)(Ue,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Pn extends W.f{renderWidgetContent(t){return(0,m.jsx)(Ue,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Vn extends st.j{renderWidgetContent(t){return(0,m.jsx)(Ue,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Dr=[Cn,Pn,Vn];var Qi=w(45437),Bi=w(87387),pi=w(35709),Ci=w(20029),Vi=w(76445),Hs=w(36892),$a=w(51794);const fu=n=>({...(0,K.im)(n)}),Ja=(0,Xn.Mz)([pi.LS,pi.sL,Ci.jx],(n,t,e)=>{const r=e===Vi.qi.OnlyView;return{fakeBindingInfo:n,fakePointToDir:t,onlyView:r}}),pu=(0,b.memo)(n=>{let{widget:t,refWCWidgetToTrigger:e,supWidgetToTrigger:r,rbpageToTrigger:i,sdk:a}=n;const{fakeBindingInfo:o,fakePointToDir:s,onlyView:l}=(0,J.d4)(Ja),u=(0,J.wA)();(0,b.useEffect)(()=>{u({type:"entry:sticky:migrate",payload:{key:t.key,sdk:a}})},[]);const c=(0,b.useCallback)(h=>{const f=a.getHotItem(t.key).hotAttr,{refWCKey:p,sticky:g,pointToDir:v,"!stickyPointVersion":y}=f;h.stopPropagation();const x=MB.getScale(),S=h.clientX,_=h.clientY;let D=g.point&&g.point.length?g.point:null,C;if(p==="")D=g.point&&g.point.length?g.point:null;else{var N,q;C=a.getHotBound(p);const[kt,Ot]=(0,$a.OH)({stickyPointVersion:y,getV1Offset:()=>[C.x,C.y],getV2Offset:()=>[C.x-C.w/2,C.y-C.h/2]});D=[(N=kt+(g==null?void 0:g.point[0]))!=null?N:0,(q=Ot+(g==null?void 0:g.point[1]))!=null?q:0]}let et;if(!g.point||!g.point.length){const[kt,Ot,Nt]=a.getHotAABB(t.key);let Xt=kt-35,Vt=Ot+8;v==="r"?(Xt=Nt+35,Vt=Ot+8):(Xt=kt-35,Vt=Ot+8),D=[Xt,Vt],et=[Xt,Vt]}let lt=[...D],ft=!1;a.combineMergeMark("sticky-drag-point");const _t=kt=>{const Ot=kt.clientX-S,Nt=kt.clientY-_;if(ft=ft||Math.abs(Ot)>1||Math.abs(Nt)>1,!ft)return;u({type:"artboard:update:state",payload:{isDragAnnotationBindingPoint:!0,draggingStickyKey:t.key}});const Xt=Ot/x*100,Vt=Nt/x*100;if(p==="")D=g.point&&g.point.length?g.point:et;else{var Ut,Yt;const[ie,Gt]=(0,$a.OH)({stickyPointVersion:y,getV1Offset:()=>[C.x,C.y],getV2Offset:()=>[C.x-C.w/2,C.y-C.h/2]});D=[(Ut=ie+(g==null?void 0:g.point[0]))!=null?Ut:0,(Yt=Gt+(g==null?void 0:g.point[1]))!=null?Yt:0]}lt=[Math.round(D[0]+Xt),Math.round(D[1]+Vt)],u({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{sticky:{...g,point:lt}}}]}});const ue=(0,Hs.Cu)({x:lt[0],y:lt[1]},t.key,kt);u({type:"ST:update",payload:{fakeBindingInfo:ue}})},Ct=kt=>{document.removeEventListener("mousemove",_t),document.removeEventListener("mouseup",Ct),ft&&(u({type:"artboard:update:state",payload:{isDragAnnotationBindingPoint:!1,draggingStickyKey:""}}),u({type:"entry:sticky:bind",payload:{widget:{key:t.key,...t,"!stickyPointVersion":y,sticky:{...g,point:lt}},event:kt}}),u({type:"ST:clear:fake-related"}),a.combineMerge("sticky-drag-point"))};document.addEventListener("mousemove",_t),document.addEventListener("mouseup",Ct)},[t.key,u]),d=(0,b.useCallback)(()=>{u({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{refWCKey:"",sticky:{point:[]}}}]}})},[u,t.key]);return(0,m.jsx)(Bi.l,{type:"design",onlyView:l,widget:t,sdk:a,refWCWidgetToTrigger:e,supWidgetToTrigger:r,rbpageToTrigger:i,onMouseDown:l?null:c,onDoubleClick:l?null:d,fakeBindingInfo:o,fakePointToDir:s})}),tf=(0,b.memo)(n=>{let{widget:t,treeData:e,fakeBindingInfo:r,fakePointToDir:i,fakeAABB:a,isShowSticky:o,STMode:s,mode:l,refWCWidgetToTrigger:u,supWidgetToTrigger:c,rbpageToTrigger:d}=n;if(l==="preview")return null;let h={};if(l==="design"){const p=(o||s)&&t.isVisible?t.opacity:0;h={width:t.w,height:t.h,opacity:p}}const f=e.widgetStore.sdkStore;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:l,isNeedAssembly:!1,style:{...h,...fu(t)},children:l==="design"?(0,m.jsx)(pu,{widget:t,refWCWidgetToTrigger:u,supWidgetToTrigger:c,rbpageToTrigger:d,sdk:f}):(0,m.jsx)(Bi.l,{type:"snapshot",widget:t,sdk:f,aabb:f.getHotAABB(t.key),fakeBindingInfo:r,fakePointToDir:i,fakeAABB:a})})});class Bv extends M.n{renderWidgetContent(t){var e;return(0,m.jsx)(tf,{widget:this.widget,treeData:this,isShowSticky:t.isShowSticky,STMode:t.STMode,mode:"design",refWCWidgetToTrigger:this.widgetStore.getWidget(this.widget.refWCKey),supWidgetToTrigger:this.widget.refWCKey?this.widgetStore.getWidget((e=this.widgetStore.sdkStore.getHotItem(this.widget.refWCKey))==null?void 0:e.sup):null,rbpageToTrigger:this.widget.refWCKey?this.widgetStore.getWidget(this.widgetStore.sdkStore.locUpColdCanvasKey(this.widget.refWCKey)):null})}}class Vv extends W.f{renderWidgetContent(){return null}}class Wv extends st.j{renderWidgetContent(t){return(0,m.jsx)(tf,{widget:this.widget,treeData:this,fakeBindingInfo:t.fakeBindingInfo,fakePointToDir:t.fakePointToDir,fakeAABB:t.fakeAABB,mode:"snapshot"})}}const Fv=[Bv,Vv,Wv],ka=R.Ay.label.withConfig({displayName:"style__StyledAndroidSwitch",componentId:"sc-dbndc5-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;pointer-events:"," !important;cursor:"," !important;input{position:absolute;width:0;height:0;left:0;top:0;opacity:0;cursor:inherit;}.CheckState-Switches{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState-Switches{color:#fff;svg{opacity:1;}}input:not(:checked) + .CheckState-Switches{svg{opacity:0;}}&.Android-Switches{display:flex;align-items:center;.CheckState-Switches{position:relative;height:70%;justify-content:flex-start;background-color:",";border-radius:",";transition:background 0.25s ease-in-out;&::after{content:'';position:relative;display:block;width:",";padding-bottom:",";background-color:",";border-radius:50%;box-shadow:",";transition:",";transform:translate(0,0);}}input:checked + .CheckState-Switches{background-color:",";&::after{background-color:",";box-shadow:",";transform:",";}}}&.Switches-Disabled{cursor:pointer !important;.CheckState-Switches{&::before{content:'';position:absolute;display:block;width:",";padding-bottom:",";background:#fff;opacity:",";border-radius:50%;transition:transform 0.25s ease-in-out;transform:translate(0,0);z-index:1;}}input:checked + .CheckState-Switches{&::before{background:#fff;opacity:",";transform:",";}}}.disable-layer{width:100%;height:100%;top:0;position:absolute;background:#fff;opacity:",";border-radius:",";}"],n=>n.editable?"auto":"none",n=>n.editable?"pointer":"inherit",n=>n.trackUncheckedBg,n=>n.trackBorderRadius,n=>n.thumbAndroidWidth,n=>n.thumbAndroidWidth,n=>n.thumbUncheckedBg,n=>n.thumbUncheckedBg==="#00000000"||n.switchDisabled?"none":"0 0 1px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24)",n=>n.editable?"transform 0.25s ease-in-out":"none",n=>n.trackCheckedBg,n=>n.thumbCheckedBg,n=>n.thumbCheckedBg==="#00000000"||n.switchDisabled?"none":"0 0 1px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24)",n=>n.thumbAndroidCheckedPosition,n=>n.thumbAndroidWidth,n=>n.thumbAndroidWidth,n=>n.thumbUncheckedBg==="#00000000"?"0":"0.6",n=>n.thumbCheckedBg==="#00000000"?"0":"0.6",n=>n.thumbAndroidCheckedPosition,n=>n.isChecked?n.trackCheckedBg==="#00000000"?"0":"0.6":n.trackUncheckedBg==="#00000000"?"0":"0.6",n=>n.trackBorderRadius);class Gc extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onClick",t=>{t.stopPropagation();const{widget:e,isChecked:r,handleSwitchCheckedChange:i}=this.props,{isDisabled:a}=e.switch;if(a)return t.preventDefault();typeof i=="function"&&i(!r)})}render(){const{widget:t,editable:e,isChecked:r}=this.props,{isDisabled:i}=t.switch,{thumbCheckedBg:a,thumbUncheckedBg:o,trackCheckedBg:s,trackUncheckedBg:l}=dt(t.switch),u=t.h*.7*1.42,c=u+"px";let d="translate("+(t.w-u)+"px, 0)";const h=t.h*.5+"px";return u>=t.w&&(d="translate(0, 0)"),(0,m.jsxs)(ka,{className:E()("Android-Switches","canClickableHighWidget",i&&"Switches-Disabled"),editable:e,isChecked:r,switchDisabled:i,thumbCheckedBg:a,thumbUncheckedBg:o,trackCheckedBg:s,trackUncheckedBg:l,thumbAndroidWidth:c,thumbAndroidCheckedPosition:d,trackBorderRadius:h,children:[(0,m.jsx)("input",{onClick:this.onClick,type:"checkbox",checked:r},t.key+r),(0,m.jsx)("span",{className:"CheckState-Switches",children:i&&(0,m.jsx)("div",{className:"disable-layer"})})]})}}const is=(0,b.memo)(n=>{let{widget:t,isEditing:e,isChecked:r,treeData:i,mode:a,isSupMkt:o=!1,dispatch:s}=n;const l=(0,b.useCallback)(u=>{if(a==="design"){MB.action("entry:switch:attr:set",{value:u,attr:"checked"});return}a==="preview"&&s({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:t.key,status:u,defaultStatus:t.switch.checked}})},[s,a,t.key,t.switch.checked]);return(0,m.jsx)(rt.cl,{treeData:i,widget:t,mode:a,isSupMkt:o,children:(0,m.jsx)(Gc,{widget:t,isChecked:a==="preview"?r:t.switch.checked,editable:a==="preview"?!0:e,handleSwitchCheckedChange:l})})});class wr extends M.n{renderWidgetContent(t){const e=t.editingEditableWidgetCid===this.widget.key;return(0,m.jsx)(is,{widget:this.widget,isEditing:e,mode:"design",treeData:this,isSupMkt:t.isSupMkt})}}const Us=(n,t)=>{var e,r;const{widgetStatusMap:i}=(0,pt.mf)(n),{widget:{key:a,switch:{checked:o}}}=t;return{isChecked:(e=(r=i[a])==null?void 0:r.status)!=null?e:o}},gu=(0,J.Ng)(Us)(is);class Gs extends W.f{renderWidgetContent(t){return(0,m.jsx)(gu,{widget:this.widget,mode:"preview",treeData:this,isSupMkt:t.isSupMkt})}}class Qa extends st.j{renderWidgetContent(t){return(0,m.jsx)(is,{widget:this.widget,mode:"snapshot",treeData:this,isSupMkt:t.isSupMkt})}}const vu=[wr,Gs,Qa];var ni=w(17599),mu=w(83931);const Kc=R.Ay.svg.withConfig({displayName:"styles__StyledTriangleSvg",componentId:"sc-1t7z2n6-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;"]);class Xc extends b.PureComponent{render(){const{widget:t}=this.props,r="M "+{[O.x.WTriangleB]:[[t.width/2,0],[t.width,t.height],[0,t.height]],[O.x.WTriangleTL]:[[0,0],[t.width,0],[0,t.height]]}[t.type].map(c=>c.join(" ")).join(" L ")+" Z",i=(0,$.$8)(t.fill,{w:t.width,h:t.height}),a=(0,K.rM)(i),o=(0,K.Q)(i),s=Math.floor(Math.random()*1e5),{type:l,v:u}=i;return(0,m.jsxs)(Kc,{xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("defs",{children:l===ni.LA.LinearGradient?(0,m.jsx)("linearGradient",{id:s,x1:0,x2:1,y1:0,y2:0,gradientTransform:a,children:o.sort((c,d)=>c.point-d.point).map((c,d)=>(0,m.jsx)("stop",{stopColor:c.hex,stopOpacity:c.alpha,offset:c.point},d))}):l===ni.LA.RadialGradient?(0,m.jsx)("radialGradient",{id:s,cx:0,cy:0,r:1,gradientTransform:a,children:o.map((c,d)=>(0,m.jsx)("stop",{stopColor:c.hex,stopOpacity:c.alpha,offset:c.point},d))}):null}),(0,m.jsx)("path",{fill:u?l!==ni.LA.Solid?"url(#"+s+")":mu.Q.toRGBAStr(i.color):"rgba(255, 255, 255, 0)",d:r})]})}}const yu=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(Xc,{widget:t})})});class ef extends M.n{renderWidgetContent(t){return(0,m.jsx)(yu,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class nf extends W.f{renderWidgetContent(t){return(0,m.jsx)(yu,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class jv extends st.j{renderWidgetContent(t){return(0,m.jsx)(yu,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const rf=[ef,nf,jv],xu=R.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-12pxbj6-0"})(['&::after{content:"\\00a0";position:absolute;bottom:-1px;left:0;height:1px;width:100%;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:inherit;display:block;}i.fa-search{position:absolute;top:7px;left:20px;line-height:32px;}.text_edit{position:absolute;top:7px;left:10px;right:10px;height:32px;border-radius:8px;background-color:white;input{border:none;width:100%;height:100%;line-height:100%;background-color:transparent;text-align:inherit;padding:0 26px;outline:none;color:inherit;&::-webkit-input-placeholder{color:inherit;}&::-moz-placeholder{color:inherit;}}}']),af=n=>{const{textV0:{textColor:t},fill:e,border:r}=n;return{background:e.fillIsVisible?(0,P.t0)(e.solidColor):"",color:(0,P.t0)(t),borderColor:(0,K.X3)(r).borderColor,width:"100%",height:"100%",fontSize:"14px"}};class Su extends b.PureComponent{render(){const{widget:t}=this.props;return(0,m.jsxs)(xu,{children:[(0,m.jsx)("div",{className:"text_edit",children:(0,m.jsx)("input",{type:"text",placeholder:t.textV0.text})}),(0,m.jsx)("i",{className:"fa fa-search"})]})}}const Ks=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:af(t),children:(0,m.jsx)(Su,{widget:t})})});class zv extends M.n{renderWidgetContent(t){return(0,m.jsx)(Ks,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Xs extends W.f{renderWidgetContent(t){return(0,m.jsx)(Ks,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Hv extends st.j{renderWidgetContent(t){return(0,m.jsx)(Ks,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Yc=[zv,Xs,Hv];var wu=w(21011),as=w(13808);const _u=R.Ay.div.withConfig({displayName:"styles__StyledArrow",componentId:"sc-xv1v2u-0"})([".arrow-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;.arrow-svg-path,.arrow-svg-ellipse{pointer-events:auto;}}.rich-text{overflow:visible !important;white-space:pre-wrap;word-break:keep-all;position:absolute;top:0;}"]);class of extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getStrokeDashArray",(t,e)=>{if(t==="solid")return"";if(t==="dotted")return e+" "+e;if(t==="dashed"){if(e===1)return"3 2";if(e===2)return"6 4";if(e>2)return e*2+" "+e}}),(0,k.A)(this,"getStrokePath",(t,e,r,i,a)=>{const{widget:o}=this.props,{angle:s}=(0,wu.hz)(o),{x:l,y:u}=r.arrowPointFrom;s>90&&s<180&&l===1&&u===0&&([a,i]=[i,a]);const c=s*Math.PI/180,[d,h]=[Math.cos(c),Math.sin(c)];let f=null,p=[0,0],g=[0,0];return s===0?(f="M "+i+" "+.5+" L "+(t-a)+" "+.5,p=[i/2,0],g=[t-a/2,0]):s<90?(f="M "+i*d+" "+i*h+" L "+(t-a*d)+" "+(e-a*h),p=[i*d/2,i*h/2],g=[t-a*d/2,e-a*h/2]):s===90?(f="M "+.5+" "+i+" L "+.5+" "+(e-a),p=[0,i/2],g=[0,a/2]):s<180?(f="M "+(t+a*d)+" "+a*h+" L "+-i*d+" "+(e-i*h),p=[t+a*d/2,a*h/2],g=[-i*d/2,e-i*h/2]):s===180?(f="M "+(t-i)+" "+.5+" L "+a+" "+.5,p=[t-i/2,0],g=[a/2,0]):s<270?(f="M "+(t+i*d)+" "+(e+i*h)+" L "+-a*d+" "+(0-a*h),p=[t+i*d/2,e+i*h/2],g=[-a*d/2,0-a*h/2]):s===270?(f="M "+.5+" "+(e-i)+" L "+.5+" "+a,p=[0,e-i/2],g=[0,a/2]):(f="M "+i*d+" "+(e+i*h)+" L "+(t-a*d)+" "+(0-a*h)+" ",p=[i*d/2,e+i*h/2],g=[t-a*d/2,0-a*h/2]),{d:f,leftCxCy:p,rightCxCy:g}}),(0,k.A)(this,"getMarketAndMarkerOptions",(t,e,r,i,a)=>{const o=(0,as.Xh)(e),s=t?"ArrowTriangleArrowToLeft_"+e+"_"+r:"ArrowTriangleArrowToRight_"+e+"_"+r,{w:l,h:u}=(0,as.Lv)(e,i),c="0 0 "+l+" "+u,d="url(#"+s+")",h=(0,m.jsx)("marker",{id:s,dangerouslySetInnerHTML:{__html:o.getPath(l,u,i,a)},viewBox:c,refX:o.getRefX&&o.getRefX(l)||0,refY:u/2,markerUnits:"userSpaceOnUse",markerWidth:l,markerHeight:u,orient:t?"auto-start-reverse":"auto"});return{markerInfo:d,marker:h,reduceLength:o.lineWidth(l)}})}render(){const{widget:t}=this.props,{w:e,h:r,arrow:i,shadow:a,arrow:{arrowStroke:{bdrWidth:o,bdrStyle:s,bdrColor:l}}}=t,u=(0,P.t0)(l),c=Number.parseInt(o);let d;a.shadowIsVisible&&(d="drop-shadow("+a.offsetX+"px "+a.offsetY+"px "+a.blurRadius+"px "+(0,P.t0)(a.shadowColor)+")");const{arrowPointFromType:h,arrowPointToType:f}=i;let p=null,g=null,v=null,y=null,x=0,S=0;h&&c&&({markerInfo:p,marker:v,reduceLength:x}=this.getMarketAndMarkerOptions(!0,h,""+t.cid+t.screenstate_cid,c,u)),f&&c&&({markerInfo:g,marker:y,reduceLength:S}=this.getMarketAndMarkerOptions(!1,f,""+t.cid+t.screenstate_cid,c,u));const{d:_,leftCxCy:D,rightCxCy:C}=this.getStrokePath(e,r,i,x,S),N=this.getStrokeDashArray(s,c);return(0,m.jsxs)(_u,{children:[(0,m.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"arrow-svg",style:{filter:d||"none"},children:[(0,m.jsxs)("defs",{children:[v,y]}),(0,m.jsx)("path",{d:_,stroke:u,strokeWidth:o,strokeDasharray:N,markerStart:p,markerEnd:g}),(0,m.jsx)("ellipse",{fill:"transparent",rx:x/2,ry:x/2,cx:D[0],cy:D[1],className:"arrow-svg-ellipse"}),(0,m.jsx)("ellipse",{fill:"transparent",rx:S/2,ry:S/2,cx:C[0],cy:C[1],className:"arrow-svg-ellipse"}),(0,m.jsx)("path",{d:_,stroke:"transparent",strokeWidth:"10",className:"arrow-svg-path"})]}),(0,m.jsx)(H.HY,{widget:t,isAutoSize:!0})]})}}const sf={border:"none",boxShadow:"none",pointerEvents:"none"},bu=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:sf,children:(0,m.jsx)(of,{widget:t})})});class Zc extends M.n{renderWidgetContent(t){return(0,m.jsx)(bu,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Mi extends W.f{renderWidgetContent(t){return(0,m.jsx)(bu,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class lf extends st.j{renderWidgetContent(t){return(0,m.jsx)(bu,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const $c=[Zc,Mi,lf];class Uv extends b.PureComponent{render(){const{widget:t}=this.props;let e=t.w-10;return e<1&&(e=1),(0,m.jsx)("span",{style:{borderLeftWidth:e}})}}const Cu=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(Uv,{widget:t})})});class Mu extends M.n{renderWidgetContent(t){return(0,m.jsx)(Cu,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class uf extends W.f{renderWidgetContent(t){return(0,m.jsx)(Cu,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class cf extends st.j{renderWidgetContent(t){return(0,m.jsx)(Cu,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Tu=[Mu,uf,cf];var gi=w(98310);class df extends b.PureComponent{render(){const{widget:t}=this.props,e=(0,gi.Kf)(t.kbImageSrc);return(0,m.jsx)("img",{style:{height:"100%",width:"100%"},src:e,className:"keyboard-img",alt:"keyboard",draggable:!1})}}const Du=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(df,{widget:t})})});class hf extends M.n{renderWidgetContent(t){return(0,m.jsx)(Du,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Jc extends W.f{renderWidgetContent(t){return(0,m.jsx)(Du,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ff extends st.j{renderWidgetContent(t){return(0,m.jsx)(Du,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const nt=[hf,Jc,ff],xt=R.Ay.label.withConfig({displayName:"styles__StyledIOSCheck",componentId:"sc-z6gn1e-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;background-color:#fff;border:1px solid #c7c7cd;border-radius:50%;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;width:55%;height:36%;}input:checked + .CheckState{color:#fff;background-color:#0076ff;border-color:transparent;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]);class At extends b.PureComponent{render(){const{widget:t,isPreview:e}=this.props,{isChecked:r,key:i}=t;let a;return e?a={defaultChecked:r}:a={checked:r},(0,m.jsxs)(xt,{className:E()("iOS-Check",{"is-preview":e}),children:[(0,m.jsx)("input",{type:"checkbox",...a},i+r),(0,m.jsx)("span",{className:"CheckState",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"8",viewBox:"0 0 13 8",children:(0,m.jsx)("path",{d:"M1 4.5L4.5 8l8-8"})})})]})}}const Wt=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(At,{widget:t,isPreview:r==="preview"})})});class pe extends M.n{renderWidgetContent(t){return(0,m.jsx)(Wt,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class re extends W.f{renderWidgetContent(t){return(0,m.jsx)(Wt,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Me extends st.j{renderWidgetContent(t){return(0,m.jsx)(Wt,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const ze=[pe,re,Me],Dn=R.Ay.label.withConfig({displayName:"styles__StyledAndroidCheck",componentId:"sc-10bsb57-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;background-color:#fff;border:2px solid #ccc;border-radius:11%;}svg{display:block;transition:all 0.1s ease-in-out;width:78%;height:56%;fill:currentColor;stroke:none;}input:checked + .CheckState{color:#fff;background-color:#5677fc;border-color:transparent;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]);class Gn extends b.PureComponent{render(){const{widget:t,isPreview:e}=this.props,{isChecked:r,key:i}=t;let a;return e?a={defaultChecked:r}:a={checked:r},(0,m.jsxs)(Dn,{className:E()("Android-Check",{"is-preview":e}),children:[(0,m.jsx)("input",{type:"checkbox",...a},i+r),(0,m.jsx)("span",{className:"CheckState",children:(0,m.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",viewBox:"0 0 14 10",children:(0,m.jsx)("path",{d:"M5 10L0 5.192l1.4-1.346L5 7.308 12.6 0 14 1.346"})})})]})}}const Rn=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(Gn,{widget:t,isPreview:r==="preview"})})});class kr extends M.n{renderWidgetContent(t){return(0,m.jsx)(Rn,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class vi extends W.f{renderWidgetContent(t){return(0,m.jsx)(Rn,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class qi extends st.j{renderWidgetContent(t){return(0,m.jsx)(Rn,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const ta=[kr,vi,qi],ku=R.Ay.label.withConfig({displayName:"styles__StyledAndroidRadio",componentId:"sc-1vhn3x9-0"})(["position:relative;display:block;opacity:1;margin:0;padding:0;width:100%;height:100%;font-size:100px;cursor:inherit;input{position:absolute;left:0;top:0;opacity:0;cursor:pointer;}.CheckState{display:flex;justify-content:center;align-items:center;width:100%;height:100%;color:transparent;padding:15%;background-color:transparent;background-clip:content-box;border:2px solid #ccc;border-radius:50%;}svg{display:block;transition:all 0.1s ease-in-out;stroke:currentColor;fill:none;}input:checked + .CheckState{color:#fff;background-color:#5677fc;border-color:#5677fc;svg{opacity:1;}}input:not(:checked) + .CheckState{svg{opacity:0;}}&.is-preview{pointer-events:auto;cursor:pointer;}"]),pf=n=>{const{widget:t,isPreview:e}=n,[r,i]=(0,b.useState)(t.isChecked);(0,b.useEffect)(()=>{i(t.isChecked)},[t.isChecked]);const a=()=>{i(!r)};return(0,m.jsxs)(ku,{className:E()("Android-Radio",{"is-preview":e}),children:[(0,m.jsx)("input",{type:"radio",checked:r,onClick:a}),(0,m.jsx)("span",{className:"CheckState"})]})},os=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(pf,{widget:t,isPreview:r==="preview"})})});class aB extends M.n{renderWidgetContent(t){return(0,m.jsx)(os,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class oB extends W.f{renderWidgetContent(t){return(0,m.jsx)(os,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class sB extends st.j{renderWidgetContent(t){return(0,m.jsx)(os,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const lB=[aB,oB,sB];var uB=w(47946);const Y1=R.Ay.div.withConfig({displayName:"styles__StyledWebpage",componentId:"sc-1pnz8hn-0"})(["display:flex;flex-direction:column;width:100%;height:100%;-webkit-overflow-scrolling:touch;pointer-events:auto;&::-webkit-scrollbar{width:0;height:0;}.webpage-position{width:100%;height:100%;}.webpage-header{display:flex;background-color:#ededed;padding:0 12px;align-items:center;min-height:40px;.dot,.dot2{height:22px;width:22px;border-radius:50%;background-color:#dbdbdb;}.dot2{margin:0 8px 0 8px;}.oval{min-width:0;flex:1;border-radius:11px;height:22px;line-height:22px;background:#dbdbdb;.text{font-size:12px;padding-left:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d8694;}}}.content{height:calc(100% - 40px);padding:12px;background-color:#f7f7f7;margin-top:-1px;.webpage-url{background-color:#ebebeb;height:100%;display:flex;align-items:center;justify-content:center;.desc{font-size:16px;color:#8d9ea7;}}}span{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;line-height:30px !important;margin:10px;text-align:center;text-shadow:0 0 10px rgba(0,0,0,0.31);}.notice{position:absolute;top:60px;text-align:left;color:red;left:0;width:100%;line-height:22px;}.iframe{width:100%;height:100%;border:none;}"]);class Z1 extends b.PureComponent{render(){const{widget:t}=this.props;return(0,m.jsx)(Y1,{children:(0,m.jsxs)("div",{className:"webpage-position",children:[(0,m.jsxs)("div",{className:"webpage-header",children:[(0,m.jsx)("div",{className:"dot"}),(0,m.jsx)("div",{className:"dot2"}),(0,m.jsx)("div",{className:"oval",children:(0,m.jsx)("p",{className:"text",children:t.webpage.url?t.webpage.url:I18N.Common.https_only})})]}),(0,m.jsx)("div",{className:"content",children:(0,m.jsx)("div",{className:"webpage-url",children:(0,m.jsx)("p",{className:"desc",children:"Web Page"})})})]})})}}class cB extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setElemRef",t=>this.$elem=t),(0,k.A)(this,"updateIframeSrc",t=>{try{this.$elem.contentWindow.location.replace(t)}catch(e){console.error(e)}})}componentDidMount(){const{src:t}=this.props;this.updateIframeSrc(t)}componentDidUpdate(t){const{src:e}=this.props;e!==t.src&&this.updateIframeSrc(e)}render(){const t={position:"absolute",top:"-9999em",visibility:"hidden"},e=()=>{this.$elem.style.position="relative",this.$elem.style.top="0",this.$elem.style.visibility="visible"};return(0,m.jsx)(Y1,{children:(0,m.jsx)("iframe",{style:t,onLoad:e,ref:this.setElemRef,className:"iframe"})})}}const Gv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;const a=t.webpage.url.replace(/&amp;/g,"&"),o=uB.Bs.test(a);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{overflow:"hidden"},children:r==="design"||r==="snapshot"?(0,m.jsx)(Z1,{widget:t}):o?(0,m.jsx)(cB,{src:a}):(0,m.jsx)(Z1,{widget:t})})});class dB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Gv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class hB extends W.f{renderWidgetContent(t){return(0,m.jsx)(Gv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class fB extends st.j{renderWidgetContent(t){return(0,m.jsx)(Gv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const pB=[dB,hB,fB];function gB(n){const{shadow:t,fill:e}=n,r="drop-shadow("+t.offsetX+"px "+t.offsetY+"px "+t.blurRadius+"px "+(0,P.t0)(t.shadowColor)+")";return{filter:t.shadowIsVisible?r:"none",backgroundColor:e.fillIsVisible?(0,P.t0)(e.solidColor):"transparent",...(0,K.Um)(n),display:"flex",alignItems:"center",justifyContent:"center"}}const $1=/^(fa|md|mb|ci|fa5|antOutline|antFill)-/,Kv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;const a=$1.test(t.icon),o=(t.icon||"").replace($1,""),s=a?t.icon.split("-")[0]:"fa";return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...gB(t)},children:(0,m.jsx)("span",{className:"icon "+s+" "+(s==="mb"?"icon":s)+"-"+o,style:{fontSize:t.w+"px"},children:s==="md"?o:null})})});class vB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Kv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class mB extends W.f{renderWidgetContent(t){return(0,m.jsx)(Kv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class yB extends st.j{renderWidgetContent(t){return(0,m.jsx)(Kv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const xB=[vB,mB,yB],SB=R.Ay.div.withConfig({displayName:"styles__StyledMapView",componentId:"sc-ec1xyl-0"})(['overflow:hidden;width:100%;height:100%;background:#eeece4;position:relative;img{width:100%;height:100%;object-fit:cover;pointer-events:none;}&::after{content:"\\00a0";position:absolute;bottom:-1px;left:0;height:1px;width:100%;border-top:1px solid #bbb;display:block;}']);class wB extends b.PureComponent{render(){const{widget:t}=this.props,e=(0,gi.Kf)(t.map.mapImageSrc);return(0,m.jsx)(SB,{className:"image",children:(0,m.jsx)("img",{draggable:!1,src:e,alt:"map_view"})})}}const _B={borderTop:"1px solid #bbb",overflow:"hidden"},Xv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:_B,children:(0,m.jsx)(wB,{widget:t})})});class bB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Xv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class CB extends W.f{renderWidgetContent(t){return(0,m.jsx)(Xv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class TB extends st.j{renderWidgetContent(t){return(0,m.jsx)(Xv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const DB=[bB,CB,TB];var kB=w(36875),PB=w(39557),J1=w(67122);const AB=R.Ay.svg.withConfig({displayName:"styles__StyledSVGIconPathComponent",componentId:"sc-1sh3oaa-0"})(["vertical-align:top;&.fill{g{[fill]{fill:",";stroke:none;}[stroke]{stroke:",";fill:none;}[fill='none']{fill:none;}[fill='none'][stroke]{stroke:",";}[stroke='none']{stroke:none;}[stroke='none'][fill]{fill:",";}}&:not([fill]){fill:",";}&:not([stroke]){fill:",";}}"],n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor,n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor,n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor,n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor,n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor,n=>n.gradientId?"url(#"+n.gradientId+")":n.solidColor),IB=/^(fa5|md|mb|ci)-/;class Q1 extends b.PureComponent{constructor(t){super(t),this.state={prevProps:{widget:this.props.widget},svgElement:(0,J1.RY)(this.props.widget)}}static getDerivedStateFromProps(t,e){let{prevProps:r}=e;const{widget:i}=r,{iconName:a,path:o}=i==null?void 0:i.iconData,{widget:s}=t,{iconName:l,path:u}=s==null?void 0:s.iconData;return a!==l||o!==u?{prevProps:{widget:s},svgElement:(0,J1.RY)(s)}:null}render(){var t;const{widget:e,noNeed100:r}=this.props,{viewBox:i,svgAttr:a,iconColor:o,iconName:s,iconSize:l,isMultiColorIcon:u}=e==null?void 0:e.iconData,c=(s||"").replace(IB,""),d=s.split("-")[0],h=d+"-"+c,f="svg-"+d+" svg-"+h,p=l,g=typeof o=="number"?(0,PB._o)(o):o,v={position:"relative",display:"block",width:r?"":"100%",height:"100%",minWidth:p,minHeight:p,transform:""+(0,K.Qz)(e)},y=a&&a.fill?{fill:a.fill}:a&&a.stroke?{stroke:a.stroke}:{},x=(0,$.$8)(e.fill,{w:e.width,h:e.height}),S=i?i.split(" ").map(N=>Number(N)):[0,0,e.width,e.height];i||(0,kB.Cp)(new Error("DEBUG Widget icon viewBox is undefined"),{level:"debug",fingerprint:["debug-widget-icon-viewBox-is-undefined"],extra:{key:e==null?void 0:e.key,iconData:e==null?void 0:e.iconData}});const _=(0,K.rM)(x,{minX:S[0],minY:S[1],width:S[2],height:S[3]}),D=(0,K.Q)(x),C=""+e.cid+x.type;return(0,m.jsx)("span",{className:"icon svg-icon-wrap "+f+"-wrap",style:v,children:(0,m.jsxs)(AB,{xmlns:"http://www.w3.org/2000/svg",className:E()("svg-icon-path-icon",{fill:g!=="unset"&&!u}),viewBox:i,width:e.width,height:e.height,solidColor:x.type===ni.LA.Solid&&mu.Q.toRGBAStr(x.color),gradientId:x.type!==ni.LA.Solid&&C,...y,children:[(0,m.jsx)("defs",{children:x.type===ni.LA.LinearGradient?(0,m.jsx)("linearGradient",{id:C,x1:0,x2:"100%",y1:0,y2:0,gradientTransform:_,gradientUnits:"userSpaceOnUse",children:D.sort((N,q)=>N.point-q.point).map((N,q)=>(0,m.jsx)("stop",{stopColor:N.hex,stopOpacity:N.alpha,offset:N.point},q))}):x.type===ni.LA.RadialGradient?(0,m.jsx)("radialGradient",{id:C,cx:0,cy:0,r:"100%",gradientTransform:_,gradientUnits:"userSpaceOnUse",children:D.map((N,q)=>(0,m.jsx)("stop",{stopColor:N.hex,stopOpacity:N.alpha,offset:N.point},q))}):null}),(0,m.jsx)("g",{dangerouslySetInnerHTML:{__html:((t=this.state.svgElement)==null?void 0:t.innerHTML)||""}})]})})}}function EB(n){const{shadow:t}=n,e="drop-shadow("+t.offsetX+"px "+t.offsetY+"px "+t.blurRadius+"px "+(0,P.t0)(t.shadowColor)+")";return{filter:t.shadowIsVisible?e:"none",backgroundColor:"transparent",...(0,K.Um)(n),...(0,K.Nb)(n),display:"flex",alignItems:"center",justifyContent:"center"}}const Yv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...EB(t)},children:(0,m.jsx)(Q1,{widget:t})})});class LB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Yv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class OB extends W.f{renderWidgetContent(t){return(0,m.jsx)(Yv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class RB extends st.j{renderWidgetContent(t){return(0,m.jsx)(Yv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const NB=[LB,OB,RB],BB=R.Ay.div.withConfig({displayName:"styles__StyledTabItemWrapper",componentId:"sc-e85ckz-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;.text{white-space:nowrap;margin-top:2px;line-height:1;}"]);class VB extends b.PureComponent{render(){const{widget:t}=this.props,e=(0,P.t0)(t.textV0.textColor);return(0,m.jsxs)(BB,{className:"wrapper",children:[(0,m.jsx)(Q1,{noNeed100:!0,widget:t}),(0,m.jsx)("span",{className:"text",style:{color:e},children:t.textV0.text})]})}}const WB={height:"100%",color:"#444",fontSize:"12px"},Zv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:WB,children:(0,m.jsx)(VB,{widget:t})})});class FB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Zv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class jB extends W.f{renderWidgetContent(t){return(0,m.jsx)(Zv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class zB extends st.j{renderWidgetContent(t){return(0,m.jsx)(Zv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const HB=[FB,jB,zB],UB=R.Ay.div.withConfig({displayName:"styles__StyledPlaceholderText",componentId:"sc-1mh0wjs-0"})(["width:100%;height:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;z-index:1;max-height:100%;overflow:hidden;position:absolute;top:0;left:0;display:flex;border-radius:inherit;.rich-text{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;z-index:1;position:absolute;top:0;}span.text{position:absolute;}p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}"]),GB=n=>({...(0,K.u6)(n),background:(0,$.n7)(n),...(0,K.Um)(n),padding:0});class KB extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getStrokeDashArray",(t,e)=>{if(t==="solid")return"";if(t==="dotted")return e+" "+e;if(t==="dashed"){if(e===1)return"3 2";if(e===2)return"6 4";if(e>2)return e*2+" "+e}}),(0,k.A)(this,"renderDiagonalLines",()=>{const{widget:t}=this.props,e={bdrColor:(0,P.t0)(t.border.bdrColor),bdrWidth:t.border.bdrWidth+"px",bdrStyle:t.border.bdrStyle,bdrIsVisible:t.border.bdrIsVisible},{w:r,h:i}=t,{bdrColor:a,bdrWidth:o,bdrStyle:s,bdrIsVisible:l}=e,u=this.getStrokeDashArray(s,Number.parseInt(o));return l?(0,m.jsxs)("svg",{className:"diagonalLines",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",width:r,height:i,style:{top:"-"+o,left:"-"+o,position:"absolute"},children:[(0,m.jsx)("line",{xmlns:"http://www.w3.org/2000/svg",x1:"0",y1:"0",x2:r,y2:i,stroke:a,strokeWidth:o,strokeDasharray:u}),(0,m.jsx)("line",{xmlns:"http://www.w3.org/2000/svg",x1:"0",y1:i,x2:r,y2:"0",stroke:a,strokeWidth:o,strokeDasharray:u})]}):null})}render(){const{widget:t}=this.props;return(0,m.jsxs)(UB,{style:{...(0,K.im)(t),overflow:t.richTextV1&&!t.richTextV1.isClipText?"visible":"hidden"},children:[this.renderDiagonalLines(),(0,m.jsx)(H.HY,{widget:t})]})}}const $v=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:GB(t),children:(0,m.jsx)(KB,{widget:t})})});class XB extends M.n{renderWidgetContent(t){return(0,m.jsx)($v,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class YB extends W.f{renderWidgetContent(t){return(0,m.jsx)($v,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ZB extends st.j{renderWidgetContent(t){return(0,m.jsx)($v,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const $B=[XB,YB,ZB];var JB=w(70949),q1=w(68696),qa=w(40652);const tb=R.Ay.div.withConfig({displayName:"styles__StyledCarousel",componentId:"sc-8dkt1x-0"})(["height:100%;.pointers{position:absolute;display:flex;justify-content:center;align-items:center;width:100%;height:30px;top:auto !important;right:auto !important;bottom:0 !important;left:0 !important;transform:translateX(0) !important;}.pointer{background-color:rgb(51,51,51);display:block;width:8px;height:8px;border-radius:4px;margin:0 10px 0 0;}&.vertical{.pointer{margin:10px 0 0 0;}.pointers{flex-direction:column;width:30px;height:100%;top:0 !important;right:0 !important;bottom:auto !important;left:auto !important;transform:translateY(0) !important;}.slick-slider{.slick-track{display:block !important;}.slick-dots{width:30px;height:100%;flex-direction:column;right:0;}}}.slick-slider{height:100%;.slick-list{height:100% !important;.slick-track{height:100% !important;display:flex;.slick-slide{height:100%;> div{height:100%;}}}}.slick-dots{position:absolute;bottom:0;width:100%;height:30px;display:flex !important;justify-content:center;align-items:center;li{display:flex;span{display:none;}}}.image-wrapper{position:relative;span{svg.icon{width:32px;height:32px;}}}}"]);var ri=w(19216),Pa=w(97788);class eb extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"genPointers",t=>(e,r)=>{const i=r===t,a="pointer "+(i?"active":""),{widget:{carousel:o}}=this.props,{pointerBg:s,pointerFg:l}=o,u={backgroundColor:i?(0,P.t0)(l):(0,P.t0)(s)};return(0,m.jsx)("i",{style:u,className:a},"pointer-"+r)}),(0,k.A)(this,"genPointersActiveAtStart",t=>(e,r)=>this.genPointers(t)(e,r))}render(){const{widget:{carousel:t},widget:e}=this.props,{slides:r,showPointers:i,vertical:a,displayIndex:o=0}=t,{asset:s,fillType:l}=r[o]||{};return(0,m.jsx)(tb,{className:E()("carousel-wrapper",{vertical:a}),style:(0,K.Nb)(e),children:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(q1.A,{src:(0,gi.Kf)(s),fillType:l}),i&&(0,m.jsx)("div",{className:"pointers",children:r.map(this.genPointersActiveAtStart(o))})]})})}}const QB=(0,b.memo)(n=>{let{widget:t,treeData:e}=n;const[r,i]=(0,b.useState)(0),{slides:a,autoShift:o,interval:s,vertical:l,showPointers:u}=t.carousel,c=(f,p)=>{let{asset:g,linkCids:v,fillType:y}=f;const x=(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey),{interactiveCids:S,itaClassName:_}=(0,Pa.HW)(x,v),D={pointerEvents:"auto",...(0,K.Nb)(t)};return(0,m.jsx)(q1.A,{dataContainerCid:t.key,src:(0,gi.Kf)(g),link_cid:S,className:_,style:D,fillType:y},"slide-"+p)},d={vertical:l,verticalSwiping:l,autoplay:o,autoplaySpeed:s,pauseOnHover:!1,dots:u&&a.length!==1,infinite:!0,arrows:!1,slidesToShow:1,slidesToScroll:1,beforeChange:(f,p)=>i(p),customPaging:f=>{const p=f===r,g="pointer "+(p?"active":""),{pointerBg:v,pointerFg:y}=t.carousel,x={backgroundColor:p?(0,P.t0)(y):(0,P.t0)(v)};return(0,m.jsx)("i",{style:x,className:g},"pointer-"+f)}},h=a.length===1?[...a,...a]:a;return(0,m.jsx)(tb,{className:E()("carousel-wrapper isPreview",{vertical:l}),children:(0,m.jsx)(JB.A,{...d,children:h.map(c)})})}),Jv=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n,a={};r==="preview"&&(a={overflow:"hidden",...(0,K.Nb)(t)});const o=()=>{if(r==="design")return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eb,{widget:t}),(0,m.jsx)(qa.Pe,{sdk:e.widgetStore.sdkStore,widget:t})]});if(r==="preview")return(0,m.jsx)(QB,{widget:t,treeData:e});if(r==="snapshot")return(0,m.jsx)(eb,{widget:t})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:a,children:o()})});class qB extends M.n{renderWidgetContent(t){return(0,m.jsx)(Jv,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class t3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(Jv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class e3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(Jv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const n3=[qB,t3,e3];var Vr=w(7290),Qv=w(1163);const r3=R.Ay.div.withConfig({displayName:"style__StyledImageWrapper",componentId:"sc-40ks09-0"})([".image-container{position:relative;overflow:hidden;width:100%;height:100%;transition:inherit;transition-property:filter;border-radius:inherit;&.is-default-image{display:flex;align-items:center;justify-content:center;i{font-size:26px;}.icon{color:#8d9ea7;}.default-image{width:28px;height:22px;}}}"]);function i3(n){const{image:{imageClipType:t},fill:e}=n;return{boxShadow:"none",borderRadius:t===Qv.Mg.circular?"100%":(0,K.Nb)(n).borderRadius,background:e!=null&&e.fillIsVisible?(0,$.n7)(n):"transparent",color:"#bec2c9"}}const a3=n=>{const{shadow:t}=n,{shadowIsVisible:e,offsetX:r,offsetY:i,blurRadius:a,spreadRadius:o,shadowColor:s}=t||{};return e?r+"px "+i+"px "+a+"px "+o+"px "+(0,P.t0)(s):"none"};class o3 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setElementRef",t=>this.$elem=t)}componentDidMount(){setTimeout(()=>{this.$elem&&/\.(gif|GIF)$/.test(this.$elem.src)&&(this.$elem.src=(0,gi.Kf)(this.props.widget.image.imageRef))})}render(){const{widget:t}=this.props,{w:e,h:r,fill:i,border:{bdrIsVisible:a,bdrColor:o,bdrStyle:s,bdrWidth:l},image:{imageRef:u,imageFilter:c,imageRectWidth:d,imageRectHeight:h,imageRectCenterX:f,imageRectCenterY:p,imageRectR:g},p:v}=t,y=(0,gi.Kf)(u),x={width:"100%",height:"100%",...a?{borderColor:(0,P.t0)(o),borderWidth:l+"px",borderStyle:s}:{borderStyle:"none"},borderRadius:"inherit",overflow:"hidden",boxShadow:a3(t)},S={...a?{top:-l+"px",left:-l+"px",width:e+l,height:r+l}:{}},_=Math.round((f-d*.5)*10)/10,D=Math.round((p-h*.5)*10)/10,C=g,N=(0,K.Qz)(t).trim(),q=_||D||C||N,et={width:d,height:h,display:"block",transform:q?"translate("+_+"px,"+D+"px) rotate("+C+"deg) "+N:void 0,transformOrigin:q?"center center":void 0,filter:c.trim()},lt={backgroundColor:y||i!=null&&i.fillIsVisible?"inherit":"rgb(229, 229, 229)"};return(0,m.jsx)(r3,{className:"image-wrapper",style:x,children:(0,m.jsx)("div",{className:E()("image-container",{"is-default-image":!y}),style:{...S,...lt},children:y?(0,m.jsx)("img",{ref:this.setElementRef,className:"img",src:y,draggable:!1,style:et,alt:"image"}):(0,m.jsx)(Vr.C,{name:"right_panel/image/place_holder",className:"default-image"})})})}}const qv=(0,b.memo)(n=>{var t;let{widget:e,treeData:r,editingImageWrapperCid:i,currentImageOperateType:a,mode:o,isSupMkt:s=!1}=n;const l=(0,b.useMemo)(()=>o==="design"?i&&i.split(",").includes(e.cid)&&a===Qv.bl.slicing:!1,[o,a,i,e.cid]);return(0,m.jsx)(rt.cl,{treeData:r,widget:e,mode:o,isSupMkt:s,style:{...i3(e),borderRadius:(e==null||(t=e.image)==null?void 0:t.imageClipType)===Qv.Mg.circular?"100%":(0,K.Nb)(e).borderRadius},children:(0,m.jsx)(o3,{widget:e,isSlicingImage:l})})});class s3 extends M.n{renderWidgetContent(t){return(0,m.jsx)(qv,{widget:this.widget,treeData:this,editingImageWrapperCid:t.editingImageWrapperCid,currentImageOperateType:t.currentImageOperateType,mode:"design",isSupMkt:t.isSupMkt})}}class l3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(qv,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class u3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(qv,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const c3=[s3,l3,u3];var or=w(61269),Wi=w(86998),Pu=w(7997);const nb=R.Ay.div.withConfig({displayName:"tableCellStyle__StyledTableCell",componentId:"sc-cguj00-0"})(["&.tdDiv{align-items:flex-start;justify-content:center;}&.clickable{cursor:pointer}&.isPreview{position:relative;}"]);var gf=w(88223),vf=w(62065);class d3 extends b.PureComponent{render(){var t;const{tableCid:e,cell:r,stringStyle:i,isPreview:a,isLineEnd:o,isColumnEnd:s,inspectMode:l,x:u,y:c,isShowInnerBorderH:d,isShowInnerBorderV:h,getRuntimeInteractionsPerTableCell:f}=this.props;let p="",g="",v="";const y=f(c,u).filter(S=>S.interactive)||[];a&&(g=y.map(S=>S.key).join(","),p=(y==null?void 0:y.length)>0?(0,vf.t$)(y):"",v=(0,vf.XY)(y));const x=l?{"data-x":u,"data-y":c}:{};return(0,m.jsx)(nb,{...x,"data-container-cid":e,"data-link_cid":g,className:"tdDiv tdDiv-has-text td-need-overflow tdDiv-need-pos "+(a?"isPreview":"")+" "+p,"data-type":"td-div",style:(0,or.To)({stringStyle:i,isLineEnd:o,isColumnEnd:s,isShowInnerBorderH:d,isShowInnerBorderV:h,isPreview:a}),dangerouslySetInnerHTML:{__html:""+(0,gf.rB)().process(r)+(a&&((t=g)==null?void 0:t.length)>0?'<div class="region gesture '+v+'"/>':"")}})}}class tm extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"tableContextMenu",c=>{const{widget:d,selectionTableCellInfo:h}=this.props,{x:f,y:p}=c.target.dataset,{clientX:g,clientY:v}=c;(0,Pu.G)({x:f,y:p,widget:d,selectTableCellInfo:h}),MB.action("entry:contextmenu:withtype",{position:{top:v,left:g}}),(0,or.t0)({isShowTableMenu:!0})}),(0,k.A)(this,"handleUpdateInspectInfo",(c,d)=>{const{widget:h}=this.props;c.stopPropagation();const{clientX:f,clientY:p}=c,g=document.elementFromPoint(f,p),v=g.getAttribute("data-x"),y=g.getAttribute("data-y");v&&y&&MB.action("table:update:inspect:info",{[d]:{key:h.cid,x:Number(v),y:Number(y)}})}),(0,k.A)(this,"handleInspectMouseLeave",c=>{MB.action("table:update:inspect:info",{hoverCellInfo:null})});const{selectionTableCellInfo:e,widget:r,selectCopyCell:i}=this.props,{rows:a,columns:o}=r.tableData,{selectArea:s,firstCell:l,copyArea:u}=(0,or.dY)(e,a,o,i);this.state={selectArea:s,firstCell:l,copyArea:u}}componentDidUpdate(t,e,r){if(t.selectionTableCellInfo!==this.props.selectionTableCellInfo||t.selectCopyCell!==this.props.selectCopyCell||t.widget.tableData.rows!==this.props.widget.tableData.rows||t.widget.tableData.columns!==this.props.widget.tableData.columns){const{selectionTableCellInfo:i,widget:a,selectCopyCell:o}=this.props,{rows:s,columns:l}=a.tableData,{selectArea:u,firstCell:c,copyArea:d}=(0,or.dY)(i,s,l,o);this.setState({selectArea:u,firstCell:c,copyArea:d})}}render(){var t,e;const{widget:r,isPreview:i,editCell:a,onlyView:o,inspectMode:s,getRuntimeInteractionsPerTableCell:l}=this.props,{data:u,rows:c,columns:d,cellStyles:h,mergeCells:f}=r.tableData,p=(t=r.tableConfig)==null?void 0:t.innerBorderH.bdrIsVisible,g=(e=r.tableConfig)==null?void 0:e.innerBorderV.bdrIsVisible,{selectArea:v,firstCell:y,copyArea:x}=this.state,S=(0,or.$)(f);let _,D;return a&&(_=Number(a.x),D=Number(a.y)),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"jexcel_toolbar"}),(0,m.jsxs)("div",{className:"jexcel_content jexcel-table-v1",children:[(0,m.jsxs)("table",{className:"jexcel jexcel_hidden_index",cellPadding:"0",cellSpacing:"0",unselectable:"yes",children:[(0,m.jsx)("colgroup",{children:d.map((C,N)=>(0,m.jsx)("col",{width:C.width},N))}),(0,m.jsx)("thead",{className:"resizable",children:(0,m.jsxs)("tr",{children:[(0,m.jsx)("td",{className:"jexcel_selectall"}),d.map((C,N)=>(0,m.jsx)("td",{"data-x":N,children:Wi.A.getColumnName(N)},N))]})}),(0,m.jsx)("tbody",{className:or.hG[r.tableConfig.styleType],children:u.map((C,N)=>{const q=c[N]?c[N].height:30;return(0,m.jsx)("tr",{"data-y":N,style:{height:q},children:C.map((et,lt)=>{const ft=lt+"-"+N,[_t,Ct]=f[ft]||[1,1],kt=_===lt&&D===N,Ot=lt===C.length-1,Nt=N===u.length-1;return S.includes(ft)?null:(0,m.jsx)("td",{className:"td-need-pos td-need-overflow","data-x":lt,"data-y":N,"data-xy":ft,onContextMenu:i?null:this.tableContextMenu,colSpan:_t,rowSpan:Ct,onClick:s?Xt=>this.handleUpdateInspectInfo(Xt,"selectCellInfo"):void 0,onMouseEnter:s?Xt=>this.handleUpdateInspectInfo(Xt,"hoverCellInfo"):void 0,onMouseLeave:s?this.handleInspectMouseLeave:void 0,children:!kt&&(0,m.jsx)(d3,{x:lt,y:N,inspectMode:s,tableCid:r.cid,getRuntimeInteractionsPerTableCell:l,cell:et,isPreview:i,isLineEnd:Ot,isColumnEnd:Nt,stringStyle:h[N][lt],isShowInnerBorderH:p,isShowInnerBorderV:g})},lt)})},N)})})]}),!o&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"jexcel_select_border",style:v,children:(0,m.jsx)("div",{className:"firstCell",style:y})}),(0,m.jsx)("div",{className:"jexcel_corner_warp",style:v,children:(0,m.jsx)("div",{className:"jexcel_corner",unselectable:"on",children:(0,m.jsx)("div",{className:"jexcel_corner_bg"})})})]}),(0,m.jsx)("div",{className:"jexcel_copy_border",style:x}),(0,m.jsx)("textarea",{className:"jexcel_textarea",id:"jexcel_textarea"})]})]})}}const em=R.Ay.div.withConfig({displayName:"style__StyledTable",componentId:"sc-a7lb2p-0"})(["position:relative;width:100%;height:100%;&.is-dragging{cursor:grabbing;}.table_border{border:",";position:absolute;box-sizing:content-box;top:-",";left:-",";}.table-container{.jexcel_content thead{display:none;}&.jexcel_container{padding:0;width:100%;height:100%;position:absolute;top:0;left:0;.jexcel_content{padding:0;.jexcel_select_border{position:absolute;pointer-events:none;border:1px solid #298DF8;z-index:5;overflow:hidden;.firstCell{position:absolute;top:-2px;left:-2px;pointer-events:none;box-shadow:0 0 0 99999px rgba(41,141,248,0.15);}}.jexcel_corner_warp{position:absolute;pointer-events:none;z-index:6;.jexcel_corner{position:absolute;bottom:-3px;right:-3px;cursor:crosshair;top:unset;left:unset;background:#ffffff;pointer-events:all;width:6px;height:6px;border:none;padding:1px;box-shadow:0px 2px 4px 0px rgba(0,0,0,0.09);&:focus{outline:none;}.jexcel_corner_bg{background:#298DF8;width:6px;height:6px;pointer-events:none;position:absolute;}}}.jexcel_copy_border{position:absolute;pointer-events:none;border:1px dashed #298DF8;top:-2000px;left:-2000px;}}table{box-sizing:border-box;border:none;tbody{tr{color:#101010;td{line-height:20px;&.td-need-pos{position:relative;}padding:0;border-left:",";border-top:",';border-right-width:0px;border-bottom-width:0px;&[data-x="0"]{border-left:none;}&.td-need-overflow{overflow:hidden;.tdDiv-has-text{overflow:hidden;}}.tdDiv-has-text{&.tdDiv-need-pos{position:absolute;}height:100%;width:100%;top:0;left:0;display:flex;flex-direction:column;pointer-events:none;white-space:pre-wrap;padding:4px;background:#fff;word-break:break-all;&.isPreview{pointer-events:all;}}.tdDiv-no-text{height:100%;width:100%;background:#fff;}}&:first-child{td{border-top:none;}}}&.default{td{.tdDiv{background:#FFFFFF;}}}&.hasBorderInterlacing,&.noBorderInterlacing{tr:nth-child(odd){.tdDiv{background:#F2F2F2ff;}}}&.topLeftBg,&.topBg{tr:first-child{.tdDiv{background:#e8e8e8ff;}}}&.topLeftBg,&.leftBg{tr{td{&[data-x="0"]{.tdDiv{background:#e8e8e8ff;}}}}}}}}}.cover{position:absolute;z-index:11;width:100%;height:100%;left:0;top:0;}.jexcel_textarea{display:none;}'],n=>n.outerBorder.bdrIsVisible?n.outerBorder.borderWidth+" solid "+n.outerBorder.borderColor:"none",n=>n.outerBorder.bdrIsVisible?""+n.outerBorder.borderWidth:0,n=>n.outerBorder.bdrIsVisible?""+n.outerBorder.borderWidth:0,n=>n.innerBorderV.bdrIsVisible?n.innerBorderV.borderWidth+" solid "+n.innerBorderV.borderColor:"none",n=>n.innerBorderH.bdrIsVisible?n.innerBorderH.borderWidth+" solid "+n.innerBorderH.borderColor:"none"),Wct={};var ss=w(40829);const h3=(0,b.memo)(n=>{var t;const{tableCid:e,cellText:r,isPreview:i,x:a,y:o,getRuntimeInteractionsPerTableCell:s,cellReactStyle:l,isNeedPos:u,isEditCell:c}=n;let d="",h="",f="";const p=s(a,o).filter(y=>y.interactive)||[];i&&(h=p.map(y=>y.key).join(","),d=(p==null?void 0:p.length)>0?(0,vf.t$)(p):"",f=(0,vf.XY)(p));const g=r!=="",v=c?"":""+(0,gf.rB)().process(r)+(i&&((t=h)==null?void 0:t.length)>0?'<div class="region gesture '+f+'"/>':"");return(0,m.jsx)(nb,{"data-x":o,"data-y":a,"data-container-cid":e,"data-link_cid":h,className:E()("tdDiv",""+d,{isPreview:i,"tdDiv-need-pos":u,"tdDiv-has-text":g,"tdDiv-no-text":!g}),"data-type":"td-div",style:l,dangerouslySetInnerHTML:{__html:v}})}),f3=(0,b.memo)(n=>{const{x:t,y:e,isEditCell:r,height:i,isPreview:a,handleTableContextMenu:o,colSpan:s,rowSpan:l,inspectMode:u,widgetKey:c,cellText:d,cellStyle:h,getRuntimeInteractionsPerTableCell:f,isLineEnd:p,isColumnEnd:g,isNeedOverflow:v=!0,isNeedPosTotal:y,handleInspectMouseLeave:x,isShowInnerBorderH:S,isShowInnerBorderV:_,innerBorderWidthH:D,handleUpdateInspectInfo:C}=n,N=e+"-"+t;let q=y||Number(s)>1||Number(l)>1;const lt=(0,or.SA)(h).get("padding")!==void 0;!q&&lt&&(q=!0);let ft=q?"td-need-pos":"";(v||lt)&&(ft+=" td-need-overflow");const _t=(0,or.To)({stringStyle:h,isLineEnd:p,isColumnEnd:g,isShowInnerBorderH:S,isShowInnerBorderV:_,isPreview:a});return q||(Number(t)===0?_t.height=i:_t.height=i-D),d||delete _t.padding,(0,m.jsx)("td",{style:{height:i},className:ft,"data-x":e,"data-y":t,"data-xy":N,onContextMenu:a?null:o,colSpan:s,rowSpan:l,onClick:u?Ct=>C(Ct,"selectCellInfo"):void 0,onMouseEnter:u?Ct=>C(Ct,"hoverCellInfo"):void 0,onMouseLeave:u?x:void 0,children:(0,m.jsx)(h3,{x:t,y:e,tableCid:c,getRuntimeInteractionsPerTableCell:f,cellText:d,isPreview:a,cellReactStyle:_t,isNeedPos:q,isEditCell:r})},N)}),nm=n=>{const{widget:t,isPreview:e,editCell:r,inspectMode:i,getRuntimeInteractionsPerTableCell:a,selectionTableCellInfo:o,selectCopyCell:s,isEdit:l,onlyView:u}=n,{key:c,tableConfig:d,cells:h,heightList:f,widthList:p,table:g,tableData:{mergeCells:v}}=t,{innerBorderH:y,innerBorderV:x}=d,S=(0,b.useRef)(o);S.current=o;const _=(0,b.useCallback)(Ut=>{const{x:Yt,y:ue}=Ut.target.dataset,{clientX:ie,clientY:Gt}=Ut;(0,Pu.G)({x:Yt,y:ue,widget:t,selectTableCellInfo:S.current}),MB.action("entry:contextmenu:withtype",{position:{top:Gt,left:ie}}),(0,or.t0)({isShowTableMenu:!0})},[t,v]),D=(0,b.useCallback)((Ut,Yt)=>{Ut.stopPropagation();const{clientX:ue,clientY:ie}=Ut,Gt=document.elementFromPoint(ue,ie),Qt=Gt.getAttribute("data-x"),me=Gt.getAttribute("data-y");Qt&&me&&MB.action("table:update:inspect:info",{[Yt]:{key:c,x:Number(Qt),y:Number(me)}})},[c]),C=(0,b.useCallback)(Ut=>{MB.action("table:update:inspect:info",{hoverCellInfo:null})},[]),[N,q]=(0,b.useState)(p),[et,lt]=(0,b.useState)(f);(0,b.useEffect)(()=>{(0,or.O6)(et,f)&&lt(f)},[et,f]),(0,b.useEffect)(()=>{(0,or.O6)(N,p)&&q(p)},[N,p]);const[ft,_t]=(0,b.useState)({selectArea:null,firstCell:null,copyArea:null});(0,b.useEffect)(()=>{const{selectArea:Ut,firstCell:Yt,copyArea:ue}=(0,or.dY)(o,et.map(ie=>({height:ie})),N.map(ie=>({width:ie})),s);_t({selectArea:Ut,firstCell:Yt,copyArea:ue})},[o,s,et,N]);const Ct=(0,b.useMemo)(()=>(0,or.$)(v),[v]);let kt,Ot;r&&(Ot=Number(r.x),kt=Number(r.y));const Nt="jexcel jexcel_hidden_index "+or.hG[d.styleType],Xt=(0,b.useMemo)(()=>N.map((Ut,Yt)=>(0,m.jsx)("col",{width:Ut},Yt)),[N]),Vt=(0,b.useMemo)(()=>{const Ut=f.some(Gt=>Gt<9),Yt=y.bdrIsVisible?y.bdrWidth:0,ue=y.bdrIsVisible,ie=x.bdrIsVisible;return g.map((Gt,Qt)=>{const me=f[Qt];return(0,m.jsx)("tr",{"data-y":Qt,style:{height:me},children:Gt.map((De,Pe)=>{const Ce=Pe+"-"+Qt,[Ee,Ve]=v[Ce]||[1,1],Te=kt===Qt&&Ot===Pe,Be=Pe+Ee===p.length,tn=Qt+Ve===f.length,Je=h[De];return!Je||Ct.includes(Ce)?null:(0,m.jsx)(f3,{cellStyle:Je.style,cellText:Je.data,colSpan:Ee,getRuntimeInteractionsPerTableCell:a,handleTableContextMenu:_,handleInspectMouseLeave:C,height:me,inspectMode:i,isColumnEnd:tn,isEditCell:Te,isLineEnd:Be,isPreview:e,rowSpan:Ve,widgetKey:c,x:Qt,y:Pe,innerBorderWidthH:Yt,isShowInnerBorderH:ue,isShowInnerBorderV:ie,isNeedPosTotal:Ut,handleUpdateInspectInfo:D},Ce)})},Qt)})},[h,a,D,Ct,i,e,_,c,g,et,N,C,y,x,kt,Ot]);return(0,m.jsxs)("div",{className:"jexcel_content jexcel-table-v2",children:[(0,m.jsxs)("table",{className:Nt,cellPadding:"0",cellSpacing:"0",unselectable:"yes",children:[(0,m.jsx)("colgroup",{children:Xt}),(0,m.jsx)("tbody",{className:or.hG[d.styleType],children:Vt})]}),l&&!u&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"jexcel_select_border",style:ft.selectArea,children:(0,m.jsx)("div",{className:"firstCell",style:ft.firstCell})}),(0,m.jsx)("div",{className:"jexcel_corner_warp",style:ft.selectArea,children:(0,m.jsx)("div",{className:"jexcel_corner",unselectable:"on",children:(0,m.jsx)("div",{className:"jexcel_corner_bg"})})})]}),(0,m.jsx)("div",{className:"jexcel_copy_border",style:ft.copyArea})]})};class p3 extends b.PureComponent{render(){const{widget:t,getRuntimeInteractionsPerTableCell:e}=this.props,{w:r,h:i}=t,{innerBorderV:a,innerBorderH:o,outerBorder:s}=(0,or.xf)(t);return(0,m.jsxs)(em,{innerBorderH:o,innerBorderV:a,outerBorder:s,children:[(0,m.jsx)("div",{className:"table_border",style:{width:r,height:i}}),(0,m.jsx)("div",{className:"table-container jexcel_container","data-cid":t.cid,children:(0,ss.SS)(t)?(0,m.jsx)(nm,{widget:t,getRuntimeInteractionsPerTableCell:e,isPreview:!0}):(0,m.jsx)(tm,{widget:t,getRuntimeInteractionsPerTableCell:e,isPreview:!0})})]})}}var Qc=w(67305);const g3=R.Ay.div.withConfig({displayName:"style__StyledTableEditor",componentId:"sc-143oh2y-0"})(["position:absolute;z-index:2;#text_editor{width:100%;height:100%;outline:none;display:flex;flex-direction:column;overflow:hidden;align-items:center;justify-content:center;color:#101010;cursor:text;background-color:#fff;-webkit-user-select:text;user-select:text;line-height:20px;padding:4px;user-modify:read-write-plaintext-only;word-break:break-all;}"]);var v3=w(66748),Po=w.n(v3);class rb extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{editorText:this.props.editorText}),(0,k.A)(this,"handleMouseDown",t=>{t.stopPropagation()}),(0,k.A)(this,"handleKeyDown",t=>{const{handleSelectNextOnEnter:e,isOpenEditor:r,onOpenEditor:i,selectionTableCellInfo:a}=this.props,{selectionLeftTopInfo:{x:o,y:s}}=a,l=t.ctrlKey||t.metaKey;if((0,Qc.C2)(t)&&!l&&!r&&i({x:o,y:s,isNeedOldText:!1,notSelectAll:!0}),t.key===an._.Tab&&t.preventDefault(),!r){t.key===an._.Enter&&t.preventDefault();return}const u=t.key===an._.Escape,c=t.key===an._.Enter,d=t.key===an._.Alt,h=t.metaKey||t.ctrlKey,f=t.shiftKey;if(d){t.preventDefault(),t.stopPropagation();return}if(t.key===an._.Tab){this.closeEditor();return}if(c&&!f){e(this.getEditorContent()),this.$elem.innerHTML="",t.preventDefault();return}u||h&&c?this.closeEditor():r&&h&&!["z","Z","x","c","v","a"].includes(t.key)&&t.preventDefault()}),(0,k.A)(this,"setElementRef",t=>this.$elem=t),(0,k.A)(this,"closeEditor",()=>{const{closeEditor:t,isOpenEditor:e}=this.props;e&&(t(this.getEditorContent()),this.$elem.innerHTML="")})}componentDidMount(){setTimeout(()=>{this.selectAll()})}componentDidUpdate(t){const{selectionTableCellInfo:e,isOpenEditor:r,notSelectAll:i,editorText:a}=this.props,{isOpenEditor:o}=t;e&&setTimeout(()=>{document.activeElement&&document.activeElement.tagName!=="INPUT"&&this.$elem&&this.$elem.focus()}),!o&&r&&(this.$elem.innerHTML=a||"&nbsp"),!o&&r&&!i&&this.selectAll()}selectAll(){const{notSelectAll:t}=this.props,e=this.$elem;if(e)if(e.focus(),!t&&e.childNodes.length>0){const r=document.createRange(),i=window.getSelection();r.setStartBefore(e.childNodes[0]),r.setEndAfter(e.childNodes[e.childNodes.length-1]),i.removeAllRanges(),i.addRange(r)}else{const r=document.createRange();r.selectNodeContents(e),r.collapse(!1);const i=window.getSelection();if(i.anchorOffset!==0)return;i.removeAllRanges(),i.addRange(r)}}componentWillUnmount(){this.closeEditor()}getEditorContent(){return this.$elem.innerHTML.replace(/\n/g,"<br/>").replace(/&nbsp;/g,"")}render(){let{styleWarp:t,editorStyle:e,editorText:r}=this.props;return r||(r="&nbsp"),(0,m.jsx)(g3,{style:t,children:(0,m.jsx)("div",{contentEditable:!0,id:"text_editor",style:{...e,cursor:"text"},ref:this.setElementRef,dangerouslySetInnerHTML:{__html:r},onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onBlur:this.closeEditor})})}}(0,k.A)(rb,"propTypes",{styleWarp:Po().object,editorStyle:Po().object,selectionTableCellInfo:Po().object,closeEditor:Po().func,onOpenEditor:Po().func,notSelectAll:Po().bool,isOpenEditor:Po().bool,handleSelectNextOnEnter:Po().func,editorText:Po().string});var Au=w(92021),Iu=w(84044);const ib={styleWarp:{left:-2e3,top:-2e3,width:200,height:200},editorStyle:null,editorText:"",isCanEditInEditor:!1};class m3 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{isEdit:!1,isOpenEditor:!1,editorInfo:ib,editCell:null}),(0,k.A)(this,"setElementRef",t=>this.$element=t),(0,k.A)(this,"handleChangeStyle",t=>{let{attr:e,action:r}=t;const{selectionTableCellInfo:i}=this.props,{widget:a}=this.props,o=e==="textDecorationU"||e==="textDecorationS"?"textDecoration":e,s=(0,Qc.kO)(i,a)[o],l={boldType:1-s,fontStyle:!s||s==="normal"?"italic":"normal",fontSize:r==="increase"?s+1:s-1<1?1:s-1,textDecorationU:!s||s==="normal"||s==="none"||s==="line-through"?"underline":"normal",textDecorationS:!s||s==="normal"||s==="none"||s==="underline"?"line-through":"normal"};MB.action("entry:table:set:cell:attr:new",{attr:o,value:l[e]})}),(0,k.A)(this,"newJexcelKeyDownControls",t=>{const{selectionTableCellInfo:e}=this.props,{isOpenEditor:r}=this.state;if(!Au.a.tableHandle||!e||r||!(0,or.Py)(t))return;const i=t.shiftKey,a=t.ctrlKey||t.metaKey,o=t.altKey;if(t.key===an._.Tab){this.gotoNextAndEdit();return}if(t.key===an._.Enter&&e){const{selectionLeftTopInfo:{x:s,y:l}}=e;this.openEditor(s,l);return}if(e){let s="";switch(t.keyCode){case an.Ju.Up:s="up";break;case an.Ju.Right:s="right";break;case an.Ju.Down:s="down";break;case an.Ju.Left:s="left";break;case an.Ju.Backspace:case an.Ju.Delete:s="delete";break;case an.Ju.A:a&&!i&&(s="selectAll");break;case an.Ju.C:a&&!i&&(s="copy");break;case an.Ju.X:a&&!i&&(s="cut");break;case an.Ju.Z:a&&!i?s="undo":a&&i&&(s="redo");break;case an.Ju.V:a&&o&&!i&&(s="pasteProperties");break;case an.Ju.B:t.preventDefault(),a&&(this.handleChangeStyle({attr:"boldType"}),(0,Iu.L)("command+b \u9009\u4E2D\u6574\u4F53"));break;case an.Ju.I:t.preventDefault(),a&&(this.handleChangeStyle({attr:"fontStyle"}),(0,Iu.L)("command+i \u9009\u4E2D\u6574\u4F53"));break;case an.Ju.U:a&&(t.preventDefault(),this.handleChangeStyle({attr:"textDecorationU"}),(0,Iu.L)("command+u \u9009\u4E2D\u6574\u4F53"));break;case an.Ju.S:a&&i&&(t.preventDefault(),this.handleChangeStyle({attr:"textDecorationS"}),(0,Iu.L)("command+s \u9009\u4E2D\u6574\u4F53"));break;case an.Ju.Dot:a&&i&&(t.preventDefault(),this.handleChangeStyle({attr:"fontSize",action:"increase"}),(0,Iu.L)("command+shift+. \u9009\u4E2D\u6574\u4F53"));break;case an.Ju.Comma:a&&i&&(t.preventDefault(),this.handleChangeStyle({attr:"fontSize",action:"decrease"}),(0,Iu.L)("command+shift+, \u9009\u4E2D\u6574\u4F53"));break}s&&(this.onTableKeyDown(s,{shiftKey:i,ctrlKey:a}),t.preventDefault())}}),(0,k.A)(this,"onOpenEditor",t=>{let{x:e,y:r,isNeedOldText:i,notSelectAll:a=!1}=t;const{widget:o}=this.props,{cellStyles:s,data:l}=o.tableData;let u="",c="";if((0,ss.SS)(o)){const{cells:_,table:D}=o,C=(0,ss.j)(_,D,r,e);C&&(u=C.style,c=C.data)}else u=s[r][e],c=l[r][e];const d=this.el.el.querySelector('[data-xy="'+e+"-"+r+'"]');if(!d||!this.$element)return;const h=this.$element.getBoundingClientRect(),{width:f,height:p,top:g,left:v}=d.getBoundingClientRect(),y=MB.getScale(),S={styleWarp:{width:f/y*100,height:p/y*100,top:(g-h.top)/y*100,left:(v-h.left)/y*100},editorStyle:{width:f/y*100,height:p/y*100,...(0,or.To)({stringStyle:u,isPreview:!1})},editorText:i?c:"",isOpenEditor:!0,notSelectAll:a};MB.action("reducer:flag:set:is-show-resizer",{isHideResizer:!0}),this.setState({isOpenEditor:!0,editorInfo:S,editCell:{x:e,y:r}})}),(0,k.A)(this,"onPaste",t=>{const{selectionTableCellInfo:e}=this.props,{isOpenEditor:r}=this.state;e&&!r&&!(0,or.C1)("isInSetting")&&!MB.f.addActionInputFocus&&this.onTableKeyDown("paste",{text:(0,gf.rB)().process(t.clipboardData.getData("text"))})}),(0,k.A)(this,"mouseUpControls",()=>{const{widget:t,selectCopyCell:e,selectionTableCellInfo:r}=this.props;(0,or.C1)("isEditTable")&&Au.a.tableHandle&&(e&&(MB.action("entry:table:paste:copyselection",{widget:t,selectCopyCell:e,selectionTableCellInfo:r}),Wi.A.current.selectedCorner=!1),(0,or.t0)({isMouseDownInTable:!1}))}),(0,k.A)(this,"mouseDownControls",t=>{(0,or.t0)({isMouseDownInTable:!0}),Wi.A.mouseDownControls(t)}),(0,k.A)(this,"gotoNextAndEdit",()=>{const{selectionTableCellInfo:t,widget:e}=this.props;if(!t||!this.el)return;const{selectionLeftTopInfo:{x:r,y:i}}=t,{maxX:a,maxY:o}=(0,or.II)(e),s=r+1>a;if(s?i+1>o:i>o)return;let u={x1:s?0:r+1,y1:s?i+1:i};u=(0,Qc.n7)(e,u,"tab"),u&&((0,Pu.Z)({widget:e,x1:u.x1,y1:u.y1,x2:u.x1,y2:u.y1}),this.onOpenEditor({x:u.x1,y:u.y1,isNeedOldText:!0}))}),(0,k.A)(this,"openEditor",(t,e)=>{this.onOpenEditor({x:t,y:e,isNeedOldText:!0})}),(0,k.A)(this,"closeEditor",t=>{const{editCell:e}=this.state,{widget:r}=this.props;if(!e)return;const i=e.x,a=e.y;let o="";if((0,ss.SS)(r)){const{cells:s,table:l}=r,u=(0,ss.j)(s,l,a,i);u&&(o=u.data)}else o=r.tableData.data[a][i];o!==t&&MB.action("entry:table:set:value",{widget:r,text:t,position:{x:i,y:a}}),MB.action("reducer:flag:set:is-show-resizer",{isHideResizer:!1}),this.setState({isOpenEditor:!1,editCell:null,editorInfo:ib},()=>{this.lastClickEventRef&&this.handleDocDown(this.lastClickEvent)})}),(0,k.A)(this,"handleSelectNextOnEnter",t=>{const{editCell:e}=this.state,{widget:r}=this.props,i=Number(e.x),a=Number(e.y),s=r.tableData.data.length-1,l=a+1,u={x:i,y:l},c=(0,Qc.n7)(r,{x1:u.x,y1:u.y},"down");if(!c){setTimeout(()=>{this.closeEditor(t)});return}const{x1:d,y1:h}=c;h<=s&&(0,Pu.Z)({widget:r,x1:d,y1:h,x2:d,y2:h}),setTimeout(()=>{this.closeEditor(t)})}),(0,k.A)(this,"onSelection",(t,e,r,i,a)=>{const{widget:o,isResizeCell:s,onlyView:l,isMovingInDrag:u}=this.props;s||l||u||(0,Pu.Z)({widget:o,x1:e,y1:r,x2:i,y2:a})}),(0,k.A)(this,"onTableKeyDown",(t,e)=>{const{widget:r,selectionTableCellInfo:i}=this.props;MB.action("entry:table:key:down",{widget:r,eventType:t,options:e,selectTableCellInfo:i})}),(0,k.A)(this,"onCopySelection",(t,e)=>{const{selectionTableCellInfo:r}=this.props,i=(0,Qc.qt)(r,{endX:Number(t),endY:Number(e)});(0,or.t0)({selectCopyCell:i})}),(0,k.A)(this,"exitEditTable",()=>{var t;(0,or.t0)({selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),this.setState({isEdit:!1}),this.el.resetSelection(!0),(0,or.KN)("isEditTable",!1),(t=document.querySelector("#link-design"))==null||t.classList.remove("hide")}),(0,k.A)(this,"handleDocDown",t=>{const{isOpenEditor:e}=this.state;if(e){this.lastClickEvent=t;return}else this.lastClickEvent=null;if((0,or.PK)(t)){if(MB.f.editing){setTimeout(()=>{this.exitEditTable()},500);return}this.exitEditTable()}}),(0,k.A)(this,"stopEvent",t=>{const{isEdit:e}=this.state;e&&t.target.closest(".jexcel_container")&&t.stopPropagation()}),(0,k.A)(this,"dblclick",t=>{const{onlyView:e,widget:r,isSelected:i}=this.props;if(!(e||r.isLock)&&i){const{clientX:a,clientY:o}=t;this.enterEditMode(a,o)}}),(0,k.A)(this,"enterEditMode",(t,e)=>{var r;const{widget:i}=this.props;(0,or.t0)({isEditTable:!0}),this.setState({isEdit:!0},()=>{let a=document.elementFromPoint(t,e);const o=Wi.A.getElement(a);o[0]?Wi.A.current!==o[0].jexcel&&(Wi.A.current&&Wi.A.current.resetSelection(),Wi.A.current=o[0].jexcel):Wi.A.current&&(Wi.A.current.resetSelection(!0),Wi.A.current=null);const s=l=>{if(l.className&&l.classList.contains("jexcel_container"))return null;if(l.tagName==="TD")return l;if(l.parentNode)return s(l.parentNode)};if(a.tagName!=="TD"&&(a=s(a)),a){const l=a.getAttribute("data-x"),u=a.getAttribute("data-y");(0,Pu.Z)({widget:i,x1:l,y1:u,x2:l,y2:u})}}),(r=document.querySelector("#link-design"))==null||r.classList.add("hide"),(0,or.KN)("isEditTable",!0)}),(0,k.A)(this,"handleClickCover",t=>{const{widget:e,isSelected:r,onlyView:i}=this.props;if(i||e.isLock||!r)return;t.stopPropagation(),(0,or.t0)({widget:e,selectTableCellInfo:null});const{metaKey:a,ctrlKey:o,clientX:s,clientY:l}=t;(a||o)&&this.enterEditMode(s,l)}),(0,k.A)(this,"tableContainerHandleDbClick",t=>{const{onlyView:e}=this.props;e||Wi.A.doubleClickControls(t)}),(0,k.A)(this,"tableContainerHandleMouseOver",t=>{const{onlyView:e}=this.props;e||Wi.A.mouseOverControls(t)})}componentDidMount(){const t={onselection:this.onSelection,onCopySelection:this.onCopySelection,onTableKeyDown:this.onTableKeyDown};this.el=(0,Wi.A)(this.$element,t),this.el.openEditor=this.openEditor,this.el.corner=this.el.el.querySelector(".jexcel_corner"),(0,Au.e)({tableHandle:this.el}),document.addEventListener("keydown",this.newJexcelKeyDownControls),document.addEventListener("mouseup",this.mouseUpControls),document.addEventListener("paste",this.onPaste)}componentWillUnmount(){var t;document.removeEventListener("keydown",this.newJexcelKeyDownControls),document.removeEventListener("mouseup",this.mouseUpControls),document.removeEventListener("paste",this.onPaste),(t=this.el)==null||t.destory(),this.el=null,(0,Au.e)({tableHandle:null})}componentDidUpdate(t){var e;const{widget:r,selectionTableCellInfo:i,isSingleSelected:a}=this.props,{selectionTableCellInfo:o}=t;o===null&&i!==null&&!this.state.isEdit&&this.setState({isEdit:!0}),a&&r.cid!==((e=Au.a.tableHandle)==null||(e=e.el)==null?void 0:e.getAttribute("data-cid"))&&((0,or.t0)({widget:r,selectTableCellInfo:null}),(0,Au.e)({tableHandle:this.el})),o!==null&&i===null&&this.state.isEdit&&this.exitEditTable()}render(){const{isEdit:t,editorInfo:e,editCell:r}=this.state,{widget:i,selectionTableCellInfo:a,selectCopyCell:o,isSingleSelected:s,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c}=this.props,{w:d,h}=i,f=s&&a,{innerBorderV:p,innerBorderH:g,outerBorder:v}=(0,or.xf)(i);return(0,m.jsxs)(em,{onMouseDown:this.stopEvent,innerBorderH:g,innerBorderV:p,outerBorder:v,children:[(0,m.jsx)("div",{className:"table_border",style:{width:d,height:h}}),(0,m.jsx)("div",{ref:this.setElementRef,className:"table-container jexcel_container","data-cid":i.cid,onMouseDown:u?void 0:this.mouseDownControls,onMouseOver:u?void 0:this.tableContainerHandleMouseOver,onDoubleClick:u?void 0:this.tableContainerHandleDbClick,children:(0,ss.SS)(i)?(0,m.jsx)(nm,{widget:i,selectCopyCell:o,selectionTableCellInfo:a,editCell:r,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c,isEdit:t}):(0,m.jsx)(tm,{widget:i,selectCopyCell:o,selectionTableCellInfo:a,editCell:r,onlyView:l,inspectMode:u,getRuntimeInteractionsPerTableCell:c,isEdit:t})}),u||l?null:t?(0,m.jsx)(mn.A,{target:document.body,onMouseDown:(0,mn.t)(this.handleDocDown,{capture:!0})}):(0,m.jsx)("div",{className:"cover",onClick:this.handleClickCover,onDoubleClick:this.dblclick}),f&&!l&&(0,m.jsx)(rb,{...e,widget:i,selectionTableCellInfo:a,closeEditor:this.closeEditor,onOpenEditor:this.onOpenEditor,handleSelectNextOnEnter:this.handleSelectNextOnEnter})]})}}var mf=w(30797),qc=w(61724);class y3 extends b.PureComponent{componentDidMount(){const{onlyView:t,widget:e,dispatch:r,isSingleSelected:i}=this.props;t||e["!version"]!==3&&setTimeout(()=>{r({type:"entry:table:migrate",payload:{key:e.cid}})},30),i&&r({type:"table:update:info",payload:{widget:e}})}componentDidUpdate(t){const{widget:e,dispatch:r,isSingleSelected:i}=this.props;i&&this.props.widget!==t.widget&&r({type:"table:update:info",payload:{widget:e}})}render(){const{widget:t,onlyView:e,selectionTableCellInfo:r,selectCopyCell:i,getRuntimeInteractionsPerTableCell:a,isSelected:o,isSingleSelected:s,isResizeCell:l,inspectMode:u,isMovingInDrag:c}=this.props;return(0,m.jsx)(m3,{widget:t,selectCopyCell:i,selectionTableCellInfo:r,isSelected:o,isSingleSelected:s,isResizeCell:l,getRuntimeInteractionsPerTableCell:a,onlyView:e,inspectMode:u,isMovingInDrag:c})}}const x3=(0,J.Ng)((n,t)=>{const{widget:e}=t,r=(0,qc.zX)(n),i=(0,qc.g8)(n),a=(0,qc.nh)(n),o=(0,mf.p$)(n),s=(0,qc.fv)(n),l=(0,Ci.jx)(n),u=(0,Ci._b)(n),c=(0,qc.CY)(n),d=l===Vi.qi.OnlyView,h=o.includes(e.cid),f=h&&o.length===1;return a&&e&&a.cid===e.cid?{onlyView:d,selectionTableCellInfo:r,selectCopyCell:i,isResizeCell:s,isSelected:h,isSingleSelected:f,inspectMode:u,isMovingInDrag:c}:{onlyView:d,selectionTableCellInfo:null,selectCopyCell:null,isResizeCell:s,isSelected:h,isSingleSelected:f,inspectMode:u,isMovingInDrag:c}})(y3);class S3 extends b.PureComponent{render(){const{widget:t,getRuntimeInteractionsPerTableCell:e}=this.props,{w:r,h:i}=t,{innerBorderV:a,innerBorderH:o,outerBorder:s}=(0,or.xf)(t);return(0,m.jsxs)(em,{innerBorderH:o,innerBorderV:a,outerBorder:s,children:[(0,m.jsx)("div",{className:"table_border",style:{width:r,height:i}}),(0,m.jsx)("div",{className:"table-container jexcel_container","data-cid":t.cid,children:(0,ss.SS)(t)?(0,m.jsx)(nm,{widget:t,getRuntimeInteractionsPerTableCell:e}):(0,m.jsx)(tm,{widget:t,getRuntimeInteractionsPerTableCell:e})})]})}}const w3={fontSize:"14px"},rm=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,onlyView:i,isSupMkt:a=!1}=n;const o=(0,b.useCallback)((l,u)=>(0,ss.SS)(t)?(0,ri.wI)(e.widgetStore.sdkStore,t.key,l,u,e.runningIsEditingCombo,e.editingBDanliKey):(0,ri.je)(e.widgetStore.sdkStore,t.key,l,u,e.runningIsEditingCombo,e.editingBDanliKey),[e.widgetStore.sdkStore,e.editingBDanliKey,e.runningIsEditingCombo,t.key,t.interactions]),s=()=>{if(r==="design")return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(x3,{onlyView:i,widget:t,getRuntimeInteractionsPerTableCell:o}),(0,m.jsx)(qa.N5,{sdk:e.widgetStore.sdkStore,widget:t})]});if(r==="preview")return(0,m.jsx)(p3,{widget:t,getRuntimeInteractionsPerTableCell:o});if(r==="snapshot")return(0,m.jsx)(S3,{widget:t,getRuntimeInteractionsPerTableCell:o})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:w3,children:s()})});class _3 extends M.n{renderWidgetContent(t){const{onlyView:e}=t;return(0,m.jsx)(rm,{widget:this.widget,treeData:this,onlyView:e,mode:"design",isSupMkt:t.isSupMkt})}}class b3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(rm,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class C3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(rm,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const M3=[_3,b3,C3];var T3=w(15139);const ab=R.Ay.div.withConfig({displayName:"styles__StyledAudio",componentId:"sc-akmvrq-0"})(["background-color:#e8e8e8;display:flex;pointer-events:auto;button.play-pause{width:36px;height:36px;border-radius:50%;background-color:#fff;margin-left:12px;align-self:center;&[data-state=pause]{svg{&.play{display:block;width:10px;height:13px;margin-left:14px;margin-right:12px;}&.pause{display:none;}}}&[data-state=play]{svg{&.play{display:none;}&.pause{display:block;width:20px;height:20px;margin-left:8px;margin-right:8px;}}}}span.progress{display:flex;align-self:center;margin-left:12px;span{line-height:20px;font-weight:500;}.current-time,.duration{min-width:35px;}}input[type=range]{-webkit-appearance:none;position:relative;min-width:24px;flex-grow:1;flex-shrink:1;align-self:center;margin:0 12px;background-color:transparent;}input[type=range]::before{position:absolute;height:100%;width:0;content:'';background-color:#7d8b94;border-radius:100px;}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:100px;background-color:rgba(164,173,179,0.6);}input[type=range]::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.23);margin-top:-6px;opacity:1;cursor:pointer;}input[type=range]::-moz-range-track{height:4px;border-radius:100px;background-color:rgba(164,173,179,0.6);}input[type=range]::-moz-range-progress{height:4px;border-radius:100px;background-color:#7d8b94;}input[type=range]::-moz-range-thumb{position:relative;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.23);margin-top:-6px;opacity:1;cursor:pointer;}input[type=range]:focus{outline:none;}button.mute-control{margin-left:auto;margin-right:23px;pointer-events:none;svg{display:block;margin:auto;height:18px;width:18px;}}"]);function yf(n){const t=Math.floor(n/3600),e=t<10?"0"+t:""+t,r=Math.floor(n%3600/60),i=r<10?"0"+r:""+r,a=Math.floor(n%60),o=a<10?"0"+a:""+a;return t>1?e+":"+i+":"+o:i+":"+o}class D3 extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"audioEl",b.createRef()),(0,k.A)(this,"handleMetaDataLoaded",e=>{this.setState({duration:e.target.duration,audioLoaded:!0})}),this.state={duration:0,audioLoaded:!1}}render(){const{widget:t}=this.props,{width:e,height:r,audio:{audioSrc:i}}=t,{audioLoaded:a}=this.state,o={width:e,height:r,...ob(t)},s={color:a?"#415058":"#7d8b94"};return(0,m.jsxs)(ab,{style:o,children:[(0,m.jsxs)("button",{className:"play-pause","data-state":"pause",style:{pointerEvents:"none"},children:[(0,m.jsx)(Vr.C,{className:"play",name:"design/audio/play",style:s}),(0,m.jsx)(Vr.C,{className:"pause",name:"design/audio/pause"})]}),(0,m.jsxs)("span",{className:"progress",children:[(0,m.jsx)("span",{className:"current-time",style:s,children:yf(0)}),(0,m.jsx)("span",{style:s,children:"\xA0/\xA0"}),(0,m.jsx)("span",{className:"duration",style:s,children:yf(this.state.duration)})]}),(0,m.jsx)("input",{type:"range",defaultValue:"0",min:"0",max:"100"}),(0,m.jsx)("button",{className:"mute-control",children:(0,m.jsx)(Vr.C,{name:"design/audio/mute-control"})}),(0,m.jsx)("audio",{ref:this.audioEl,preload:"metadata",hidden:!0,onLoadedMetadata:this.handleMetaDataLoaded,children:(0,m.jsx)("source",{src:i})})]})}}class k3 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleProgressChange",t=>{const e=t.currentTarget,{widget:{cid:r,audio:{audioSrc:i}},audio:a,duration:o,dispatch:s}=this.props;s({type:"entry:runner:update:audio",payload:{key:r+"-"+i,currentTime:e.value/100*o}}),a.audioObj.currentTime=e.value/100*o}),(0,k.A)(this,"handlePlayButtonClick",async()=>{const{audio:{audioObj:t}}=this.props;t.currentTime===0||t.paused||t.ended?await t.play():t.pause()})}render(){const{widget:t,audioState:e,duration:r,currentTime:i,previewAudioLoaded:a}=this.props,{width:o,height:s,v:l}=t,u={"--progress":i/r*100+"%"},c={width:o,height:s,...ob(t)},d={color:a?"#415058":"#7d8b94"},h=l||T3.A.getCurrentWidgetOpacity(t.cid)==="1";return(0,m.jsxs)(ab,{style:c,children:[(0,m.jsxs)("button",{className:"play-pause","data-state":h?e:"pause",onClick:this.handlePlayButtonClick,style:{pointerEvents:"auto"},children:[(0,m.jsx)(Vr.C,{className:"play",name:"design/audio/play",style:d}),(0,m.jsx)(Vr.C,{className:"pause",name:"design/audio/pause"})]}),(0,m.jsxs)("span",{className:"progress",children:[(0,m.jsx)("span",{className:"current-time",style:d,children:yf(i)}),(0,m.jsx)("span",{style:d,children:"\xA0/\xA0"}),(0,m.jsx)("span",{className:"duration",style:d,children:yf(r)})]}),(0,m.jsx)("input",{type:"range",value:Math.floor(i/(r||1)*100),min:"0",max:"100",onChange:this.handleProgressChange,style:u,className:"audio-progress"}),(0,m.jsx)("button",{className:"mute-control",children:(0,m.jsx)(Vr.C,{name:"design/audio/mute-control"})})]})}}const P3=(n,t)=>{const e=(0,pt.mf)(n),{widget:{key:r}}=t,{audioList:i,runnerCacheTag:a}=e,o=i.find(s=>s.key===r);return{audio:o,duration:o?o.duration:0,currentTime:o?o.currentTime:0,previewAudioLoaded:o?o.previewAudioLoaded:!1,audioState:o?o.audioState:"pause",runnerCacheTag:a}},A3=(0,J.Ng)(P3)(k3);function ob(n){return{display:n.audio.isHidden?"none":void 0,overflow:"hidden",boxShadow:(0,K.Ps)(n.shadow),...(0,K.Nb)(n)}}const im=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:r==="preview"?(0,m.jsx)(A3,{widget:t},t.cid+t.text):(0,m.jsx)(D3,{widget:t})})});class I3 extends M.n{renderWidgetContent(t){return(0,m.jsx)(im,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class E3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(im,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class L3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(im,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const O3=[I3,E3,L3];var am=w(43109),R3=w(71394);const sb=R.Ay.div.withConfig({displayName:"styles__StyledVideo",componentId:"sc-1j6g03n-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;video{width:100%;height:100%;&:focus{outline:none;}}.iframe-container{width:100%;height:100%;}.status-indicator{margin:auto;text-align:center;color:#dbdbdb;}.controls-container{width:100%;display:flex;flex-direction:column;justify-content:flex-end;.progress-bar{background-color:#f2f4f5;margin:0 16px;border-radius:100px;width:auto;height:3px;opacity:0.2;}.controls{display:flex;align-items:center;margin-top:8px;margin-bottom:12px;svg{path{fill:#f7f7f7;}}.play-button{min-width:12px;min-height:15px;margin-left:18px;}.progress{color:#f7f7f7;margin-left:14px;margin-right:auto;font-size:14px;white-space:nowrap;}.mute-control{min-width:18px;min-height:14px;margin-left:14px;margin-right:22px;opacity:0.4;}.full-screen{min-width:17px;min-height:15px;margin-right:20px;opacity:0.4;}}}"]),lb=(n,t)=>({boxShadow:(0,K.Ps)(n.shadow),background:"linear-gradient(to top, #151515 6.56%, rgba(21, 21, 21, 0) 50%), "+(t?"#595a5c":"#454647"),...(0,K.Nb)(n)});class N3 extends b.PureComponent{render(){const{widget:t}=this.props,{is_muted:e,is_hide_controls:r,video:{videoSrc:i}}=t,a=(0,am.dB)(i),o=lb(t,a);return(0,m.jsxs)(sb,{className:"video",style:o,children:[(0,m.jsx)("div",{className:"status-indicator",children:a?I18N.w.video_will_play_on_preview:I18N.w.insert_video_on_the_right_panel}),(0,m.jsx)("div",{className:"controls-container",children:!r&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"progress-bar"}),(0,m.jsxs)("div",{className:"controls",children:[(0,m.jsx)(Vr.C,{className:"play-button",name:"design/audio/play",style:{opacity:a?1:.4}}),(0,m.jsx)("div",{className:"progress",style:{opacity:a?1:.4},children:"0:00 / 0:00"}),(0,m.jsx)(Vr.C,{className:"mute-control",name:e?"design/video/mute":"design/audio/mute-control"}),(0,m.jsx)(Vr.C,{className:"full-screen",name:"design/video/full-screen"})]})]})})]},i)}}class B3 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setVideoRef",t=>this.$video=t)}componentDidUpdate(t,e,r){if(t.runnerCacheTag!==this.props.runnerCacheTag){var i;(i=this.$video)==null||i.load()}}render(){const{widget:t,activeCanvasKey:e}=this.props,{cid:r,w:i,h:a,video:{isAutoplay:o,isLoop:s,isMuted:l,isHideControls:u,videoSrc:c},isVisible:d}=t,h=(0,am.dB)(c),f={...lb(t,h),pointerEvents:d?"auto":"none"},g=sdkStore.locUpColdCanvasKey(t.cid)===e,v=h?(0,R3.r)(new URL(c),r,o&&g,s,l,u).iframeHtml:"",y=d&&o&&g;return(0,m.jsx)(sb,{className:"video",style:f,children:h&&(0,am.Je)(new URL(c))?(0,m.jsx)("div",{className:"iframe-container",dangerouslySetInnerHTML:{__html:v}}):(0,m.jsxs)("video",{id:r,width:i,height:a,playsInline:!0,autoPlay:y,loop:d&&s,controls:!u,muted:y?!0:l,disablePictureInPicture:!0,controlsList:"nodownload",ref:this.setVideoRef,children:[(0,m.jsx)("source",{src:c}),"Video element is not supported in this browser."]})},c)}}const V3=(n,t)=>{const e=(0,pt.mf)(n),{widget:{key:r}}=t,{videoList:i,runnerCacheTag:a,activeCanvasKey:o}=e;return{video:i.find(l=>l.key===r),runnerCacheTag:a,activeCanvasKey:o}},W3=(0,J.Ng)(V3)(B3),om=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:r==="preview"?(0,m.jsx)(W3,{widget:t}):(0,m.jsx)(N3,{widget:t})})});class F3 extends M.n{renderWidgetContent(t){return(0,m.jsx)(om,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class j3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(om,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class z3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(om,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const H3=[F3,j3,z3];var ub=w(21183);const U3=R.Ay.div.withConfig({displayName:"styles__StyledQRCode",componentId:"sc-thux50-0"})(["overflow:hidden;.behavior{position:absolute;top:50%;left:50%;margin-left:-54px;margin-top:-16px;line-height:32px;height:32px;width:108px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0);border-radius:2px;pointer-events:none;&:lang(en){width:100px;margin-left:-50px;height:50px;margin-top:-25px;line-height:16px;}&:lang(ja){width:150px;margin-left:-75px;}span{color:#fff;opacity:0;}}&:hover{.behavior{background-color:rgba(31,41,46,0.9);span{opacity:1;}}}"]),G3=n=>{const{widget:t,scale:e,isReadOnly:r}=n,{w:i,h:a,isLock:o,qrCode:s}=t,{isBackgroundVisible:l,backgroundColor:u,isForegroundVisible:c,foregroundColor:d,content:h}=s,p=(0,ub.j)({height:a,width:i,text:h||I18N.link.link_qrcode_default,foreground:(0,K.Lt)(c,d),background:(0,K.Lt)(l,u)}).toDataURL();return(0,m.jsx)(U3,{children:(0,m.jsx)("img",{width:i,height:a,src:p,alt:"QR code",style:{pointerEvents:"none"}})})},K3=(0,J.Ng)(n=>({isReadOnly:(0,Ci.jx)(n)===Vi.qi.OnlyView}))(G3);class X3 extends b.PureComponent{render(){const{widget:t}=this.props,{w:e,h:r,qrCode:i}=t,{isBackgroundVisible:a,backgroundColor:o,isForegroundVisible:s,foregroundColor:l,content:u}=i,d=(0,ub.j)({height:r,width:e,text:u||I18N.link.link_qrcode_default,foreground:(0,K.Lt)(s,l),background:(0,K.Lt)(a,o)}).toDataURL();return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("img",{width:e,height:r,src:d,alt:"QR code",style:{pointerEvents:"none"}})})}}const sm=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{overflow:"hidden"},children:r==="design"?(0,m.jsx)(K3,{widget:t}):(0,m.jsx)(X3,{widget:t})})});class Y3 extends M.n{renderWidgetContent(t){return(0,m.jsx)(sm,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Z3 extends W.f{renderWidgetContent(t){return(0,m.jsx)(sm,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class $3 extends st.j{renderWidgetContent(t){return(0,m.jsx)(sm,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const J3=[Y3,Z3,$3];var cb=w(64143);const jct=n=>{const{richTextV1:{fontSize:t,textColor:e,lineHeight:r,paddingTuple:i,fontDirection:a,underline:o,strikethrough:s,italic:l,bold:u,verticalAlign:c,horizontalAlign:d,letterSpacing:h,isClipText:f}}=n;let p="";return o&&(p="underline"),s&&(p+=(p?" ":"")+"line-through"),p===""&&(p="none"),{fontSize:t+"px",fontWeight:u?700:400,fontStyle:l?"italic":"normal",letterSpacing:h+"px",justifyContent:c,alignItems:getRichTextAlignItems(d),textAlign:d,boxShadow:"none",color:e,lineHeight:r+"px",...formatPaddingTuple(i),textDecoration:p,flexDirection:"column",writingMode:a,overflow:f?"hidden":"visible"}};class db extends b.PureComponent{render(){var t,e;const{widget:r,widget:{type:i,w:a,h:o,richTextV1:{paddingTuple:s},border:{bdrIsVisible:l,bdrWidth:u,bdrStyle:c,bdrColor:d},shadow:h,fill:f},getPointsArr:p}=this.props,g=i===O.x.WPolygon?this.props.widget.polygon.sideNum:this.props.widget.star.sideNum,v=i===O.x.WPolygon?this.props.widget.polygon.cornerRadius:this.props.widget.star.cornerRadius,y=(t=(e=this.props.widget.star)==null?void 0:e.radius)!=null?t:0,x=(0,P.t0)(d),S={solid:"0 0",dotted:u+" "+u,dashed:u*2+" "+u},_={stroke:l?x:void 0,strokeWidth:u,strokeDasharray:S[c]},D={display:"flex",width:a-u*2,height:o-u*2},C=p({width:a,height:o,sides:g,radius:y/100,borderWidth:u});let N;h.shadowIsVisible&&(N="drop-shadow("+h.offsetX+"px "+h.offsetY+"px "+h.blurRadius+"px "+(0,P.t0)(h.shadowColor)+")");const q=(0,$.$8)(f,{w:a,h:o}),et=(0,K.rM)(q),lt=(0,K.Q)(q),ft=Math.floor(Math.random()*1e5);return(0,m.jsxs)("svg",{width:a,height:o,style:{overflow:"visible",filter:N||"none"},x:u/2,y:u/2,children:[(0,m.jsx)("defs",{children:q.type===ni.LA.LinearGradient?(0,m.jsx)("linearGradient",{id:ft,x1:0,x2:1,y1:0,y2:0,gradientTransform:et,children:lt.sort((_t,Ct)=>_t.point-Ct.point).map((_t,Ct)=>(0,m.jsx)("stop",{stopColor:_t.hex,stopOpacity:_t.alpha,offset:_t.point},Ct))}):q.type===ni.LA.RadialGradient?(0,m.jsx)("radialGradient",{id:ft,cx:0,cy:0,r:1,gradientTransform:et,children:lt.map((_t,Ct)=>(0,m.jsx)("stop",{stopColor:_t.hex,stopOpacity:_t.alpha,offset:_t.point},Ct))}):null}),(0,m.jsx)("path",{d:(0,cb.J)(C,Number(v)),style:_,fill:q.v?q.type!==ni.LA.Solid?"url(#"+ft+")":mu.Q.toRGBAStr(q.color):"rgba(255, 255, 255, 0)"}),(0,m.jsx)("foreignObject",{width:Math.abs(a-u*2),height:Math.abs(o-u*2-s.pT),x:u/2,y:u/2,style:{overflow:"visible"},children:(0,m.jsx)(H.HY,{widget:r,styles:D})})]})}}const Q3=n=>{var t,e,r,i,a,o,s;return{zIndex:n.zIndex,opacity:n.opacity,boxShadow:"none",fontSize:(t=n.textV0)==null?void 0:t.fontSize,lineHeight:((e=n.textV0)==null?void 0:e.lineHeight)+"px",padding:(r=n.textV0)==null?void 0:r.padding,fontWeight:(i=n.textV0)!=null&&i.bold?"bold":"normal",fontStyle:(a=n.textV0)!=null&&a.italic?"italic":"normal",textDecoration:(o=n.textV0)==null?void 0:o.textDecoration,display:"flex",color:(0,P.t0)((s=n.textV0)==null?void 0:s.textColor),alignItems:"center",justifyContent:"center",overflow:"visible"}};class q3 extends b.PureComponent{render(){const{widget:t}=this.props;return(0,m.jsx)("svg",{width:t.width,height:t.height,style:{overflow:"visible"},children:(0,m.jsx)(db,{widget:t,getPointsArr:cb.b})})}}const lm=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:Q3(t),children:(0,m.jsx)(q3,{widget:t})})});class t4 extends M.n{renderWidgetContent(t){return(0,m.jsx)(lm,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class e4 extends W.f{renderWidgetContent(t){return(0,m.jsx)(lm,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class n4 extends st.j{renderWidgetContent(t){return(0,m.jsx)(lm,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const r4=[t4,e4,n4];var i4=w(95805);class a4 extends b.PureComponent{render(){const{widget:t}=this.props;return(0,m.jsx)("svg",{width:t.w,height:t.h,style:{overflow:"visible"},children:(0,m.jsx)(db,{widget:t,getPointsArr:i4.z})})}}const o4=n=>{var t,e,r,i,a,o,s;return{zIndex:n.zIndex,opacity:n.opacity,boxShadow:"none",fontSize:(t=n.textV0)==null?void 0:t.fontSize,lineHeight:((e=n.textV0)==null?void 0:e.lineHeight)+"px",padding:(r=n.textV0)==null?void 0:r.padding,fontWeight:(i=n.textV0)!=null&&i.bold?"bold":"normal",fontStyle:(a=n.textV0)!=null&&a.italic?"italic":"normal",textDecoration:(o=n.textV0)==null?void 0:o.textDecoration,display:"flex",color:(0,P.t0)((s=n.textV0)==null?void 0:s.textColor),alignItems:"center",justifyContent:"center",overflow:n.richTextV1.isClipText?"hidden":"visible"}},um=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...o4(t)},children:(0,m.jsx)(a4,{widget:t})})});class s4 extends M.n{renderWidgetContent(t){return(0,m.jsx)(um,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class l4 extends W.f{renderWidgetContent(t){return(0,m.jsx)(um,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class u4 extends st.j{renderWidgetContent(t){return(0,m.jsx)(um,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const c4=[s4,l4,u4];var cm=w(32010),dm=w(15915);const hm=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1,...a}=n;const o=()=>{if(r==="preview"){if((0,ri.Xr)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey).filter(p=>p.interactive).length===0)return null;const{w:d,h}=e.widgetStore.sdkStore.getCCSBound2308(t.key),f={position:"absolute",left:0,top:0,width:d,height:h,zIndex:t.z,pointerEvents:"auto"};return(0,m.jsx)("div",{style:f})}return null};let s={},l=!1,u="";try{if(r==="design"&&(l=(0,cm.tZ)({widget:t,treeData:e,isSupMkt:i,mode:r}),l)){const{x:c,y:d}=sdkStore.getLBCOff(t.key)||{},{w:h,h:f}=sdkStore.getCCSBound2308(t.key);s={pointerEvents:"none",zIndex:2147483646,position:"absolute",left:c-h/2,top:d-f/2,width:h,height:f},u=(0,dm._5)()&&l?Number(h||0)<80?"has-watermark wm_s":"has-watermark wm_m":""}}catch(c){l=!1}return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isNeedChildren:!0,isSupMkt:i,style:{...r==="preview"&&{pointerEvents:"none"}},...a,children:[o(),r==="design"&&l&&(0,m.jsx)("div",{style:s,className:u})]})});class d4 extends M.n{renderWidgetContent(t){return(0,m.jsx)(hm,{widget:this.widget,mode:"design",treeData:this,...t})}}class h4 extends W.f{renderWidgetContent(t){return(0,m.jsx)(hm,{widget:this.widget,mode:"preview",treeData:this,...t})}}class f4 extends st.j{renderWidgetContent(t){return(0,m.jsx)(hm,{widget:this.widget,mode:"snapshot",treeData:this,...t})}}const p4=[d4,h4,f4];var g4=w(98236),Ys=w.n(g4);/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation.
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted.
  5. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  7. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  8. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  9. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  10. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  11. PERFORMANCE OF THIS SOFTWARE.
  12. ***************************************************************************** */var fm=function(n,t){return fm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},fm(n,t)};function Zt(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fm(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var hb=function(){return hb=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},hb.apply(this,arguments)};function zct(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function Hct(n,t,e,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,t,e,r);else for(var s=n.length-1;s>=0;s--)(o=n[s])&&(a=(i<3?o(a):i>3?o(t,e,a):o(t,e))||a);return i>3&&a&&Object.defineProperty(t,e,a),a}function Uct(n,t){return function(e,r){t(e,r,n)}}function Gct(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}function Kct(n,t,e,r){function i(a){return a instanceof e?a:new e(function(o){o(a)})}return new(e||(e=Promise))(function(a,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((r=r.apply(n,t||[])).next())})}function Xct(n,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1],a=u;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(u);break}a[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(n,e)}catch(c){u=[6,c],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var fb=Object.create?function(n,t,e,r){r===void 0&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){r===void 0&&(r=e),n[r]=t[e]};function Yct(n,t){for(var e in n)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&fb(t,n,e)}function pb(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v4(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return a}function Zct(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(v4(arguments[t]));return n}function $ct(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function Jct(n,t,e){if(e||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return n.concat(a||t)}function xf(n){return this instanceof xf?(this.v=n,this):new xf(n)}function Qct(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(n,t||[]),i,a=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(h){r[h]&&(i[h]=function(f){return new Promise(function(p,g){a.push([h,f,p,g])>1||s(h,f)})})}function s(h,f){try{l(r[h](f))}catch(p){d(a[0][3],p)}}function l(h){h.value instanceof xf?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function qct(n){var t,e;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=n[i]?function(o){return(e=!e)?{value:xf(n[i](o)),done:i==="return"}:a?a(o):o}:a}}function tdt(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof pb=="function"?pb(n):n[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(a){e[a]=n[a]&&function(o){return new Promise(function(s,l){o=n[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function edt(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var m4=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function ndt(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&fb(t,n,e);return m4(t,n),t}function rdt(n){return n&&n.__esModule?n:{default:n}}function idt(n,t,e,r){if(e==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!r:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(n):r?r.value:t.get(n)}function adt(n,t,e,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e}var y4=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),x4=function(){function n(){this.browser=new y4,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return n}(),Zs=new x4;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Zs.wxa=!0,Zs.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Zs.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Zs.node=!0,Zs.svgSupported=!0):S4(navigator.userAgent,Zs);function S4(n,t){var e=t.browser,r=n.match(/Firefox\/([\d.]+)/),i=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),a=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(e.firefox=!0,e.version=r[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const Zn=Zs;var pm=12,gb="sans-serif",ls=pm+"px "+gb,w4=20,_4=100,b4="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function C4(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e<n.length;e++){var r=String.fromCharCode(e+32),i=(n.charCodeAt(e)-w4)/_4;t[r]=i}return t}var M4=C4(b4),Aa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,t;return function(e,r){if(!n){var i=Aa.createCanvas();n=i&&i.getContext("2d")}if(n)return t!==r&&(t=n.font=r||ls),n.measureText(e);e=e||"",r=r||ls;var a=/(\d+)px/.exec(r),o=a&&+a[1]||pm,s=0;if(r.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=M4[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(n,t,e){var r=new Image;return r.onload=t,r.onerror=e,r.src=n,r}};function odt(n){for(var t in Aa)n[t]&&(Aa[t]=n[t])}var vb=to(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),mb=to(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),Eu=Object.prototype.toString,Sf=Array.prototype,T4=Sf.forEach,D4=Sf.filter,gm=Sf.slice,k4=Sf.map,yb=(function(){}).constructor,wf=yb?yb.prototype:null,vm="__proto__",P4=2311;function xb(){return P4++}function mm(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];typeof console<"u"&&console.error.apply(console,n)}function on(n){if(n==null||typeof n!="object")return n;var t=n,e=Eu.call(n);if(e==="[object Array]"){if(!ed(n)){t=[];for(var r=0,i=n.length;r<i;r++)t[r]=on(n[r])}}else if(mb[e]){if(!ed(n)){var a=n.constructor;if(a.from)t=a.from(n);else{t=new a(n.length);for(var r=0,i=n.length;r<i;r++)t[r]=n[r]}}}else if(!vb[e]&&!ed(n)&&!Lu(n)){t={};for(var o in n)n.hasOwnProperty(o)&&o!==vm&&(t[o]=on(n[o]))}return t}function Mn(n,t,e){if(!rn(t)||!rn(n))return e?on(t):n;for(var r in t)if(t.hasOwnProperty(r)&&r!==vm){var i=n[r],a=t[r];rn(a)&&rn(i)&&!Se(a)&&!Se(i)&&!Lu(a)&&!Lu(i)&&!Sb(a)&&!Sb(i)&&!ed(a)&&!ed(i)?Mn(i,a,e):(e||!(r in n))&&(n[r]=on(t[r]))}return n}function ym(n,t){for(var e=n[0],r=1,i=n.length;r<i;r++)e=Mn(e,n[r],t);return e}function ye(n,t){if(Object.assign)Object.assign(n,t);else for(var e in t)t.hasOwnProperty(e)&&e!==vm&&(n[e]=t[e]);return n}function nn(n,t,e){for(var r=Nn(t),i=0;i<r.length;i++){var a=r[i];(e?t[a]!=null:n[a]==null)&&(n[a]=t[a])}return n}var sdt=Aa.createCanvas;function kn(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var e=0,r=n.length;e<r;e++)if(n[e]===t)return e}return-1}function A4(n,t){var e=n.prototype;function r(){}r.prototype=t.prototype,n.prototype=new r;for(var i in e)e.hasOwnProperty(i)&&(n.prototype[i]=e[i]);n.prototype.constructor=n,n.superClass=t}function Wr(n,t,e){if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!=="constructor"&&(e?t[a]!=null:n[a]==null)&&(n[a]=t[a])}else nn(n,t,e)}function mi(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function mt(n,t,e){if(n&&t)if(n.forEach&&n.forEach===T4)n.forEach(t,e);else if(n.length===+n.length)for(var r=0,i=n.length;r<i;r++)t.call(e,n[r],r,n);else for(var a in n)n.hasOwnProperty(a)&&t.call(e,n[a],a,n)}function we(n,t,e){if(!n)return[];if(!t)return Sm(n);if(n.map&&n.map===k4)return n.map(t,e);for(var r=[],i=0,a=n.length;i<a;i++)r.push(t.call(e,n[i],i,n));return r}function to(n,t,e,r){if(n&&t){for(var i=0,a=n.length;i<a;i++)e=t.call(r,e,n[i],i,n);return e}}function sr(n,t,e){if(!n)return[];if(!t)return Sm(n);if(n.filter&&n.filter===D4)return n.filter(t,e);for(var r=[],i=0,a=n.length;i<a;i++)t.call(e,n[i],i,n)&&r.push(n[i]);return r}function I4(n,t,e){if(n&&t){for(var r=0,i=n.length;r<i;r++)if(t.call(e,n[r],r,n))return n[r]}}function Nn(n){if(!n)return[];if(Object.keys)return Object.keys(n);var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t}function E4(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return function(){return n.apply(t,e.concat(gm.call(arguments)))}}var Ge=wf&&qe(wf.bind)?wf.call.bind(wf.bind):E4;function xn(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return n.apply(this,t.concat(gm.call(arguments)))}}function Se(n){return Array.isArray?Array.isArray(n):Eu.call(n)==="[object Array]"}function qe(n){return typeof n=="function"}function je(n){return typeof n=="string"}function xm(n){return Eu.call(n)==="[object String]"}function $n(n){return typeof n=="number"}function rn(n){var t=typeof n;return t==="function"||!!n&&t==="object"}function Sb(n){return!!vb[Eu.call(n)]}function Fi(n){return!!mb[Eu.call(n)]}function Lu(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function _f(n){return n.colorStops!=null}function L4(n){return n.image!=null}function O4(n){return Eu.call(n)==="[object RegExp]"}function td(n){return n!==n}function ii(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0,r=n.length;e<r;e++)if(n[e]!=null)return n[e]}function pn(n,t){return n!=null?n:t}function eo(n,t,e){return n!=null?n:t!=null?t:e}function Sm(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return gm.apply(n,t)}function wm(n){if(typeof n=="number")return[n,n,n,n];var t=n.length;return t===2?[n[0],n[1],n[0],n[1]]:t===3?[n[0],n[1],n[2],n[1]]:n}function Ti(n,t){if(!n)throw new Error(t)}function Ia(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var wb="__ec_primitive__";function bf(n){n[wb]=!0}function ed(n){return n[wb]}var R4=function(){function n(){this.data={}}return n.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},n.prototype.has=function(t){return this.data.hasOwnProperty(t)},n.prototype.get=function(t){return this.data[t]},n.prototype.set=function(t,e){return this.data[t]=e,this},n.prototype.keys=function(){return Nn(this.data)},n.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},n}(),_b=typeof Map=="function";function N4(){return _b?new Map:new R4}var B4=function(){function n(t){var e=Se(t);this.data=N4();var r=this;t instanceof n?t.each(i):t&&mt(t,i);function i(a,o){e?r.set(a,o):r.set(o,a)}}return n.prototype.hasKey=function(t){return this.data.has(t)},n.prototype.get=function(t){return this.data.get(t)},n.prototype.set=function(t,e){return this.data.set(t,e),e},n.prototype.each=function(t,e){this.data.forEach(function(r,i){t.call(e,r,i)})},n.prototype.keys=function(){var t=this.data.keys();return _b?Array.from(t):t},n.prototype.removeKey=function(t){this.data.delete(t)},n}();function Ze(n){return new B4(n)}function Cf(n,t){for(var e=new n.constructor(n.length+t.length),r=0;r<n.length;r++)e[r]=n[r];for(var i=n.length,r=0;r<t.length;r++)e[r+i]=t[r];return e}function Mf(n,t){var e;if(Object.create)e=Object.create(n);else{var r=function(){};r.prototype=n,e=new r}return t&&ye(e,t),e}function bb(n){var t=n.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Xe(n,t){return n.hasOwnProperty(t)}function Fr(){}var Tf=180/Math.PI;function $s(n,t){return n==null&&(n=0),t==null&&(t=0),[n,t]}function Di(n,t){return n[0]=t[0],n[1]=t[1],n}function Ao(n){return[n[0],n[1]]}function V4(n,t,e){return n[0]=t,n[1]=e,n}function Cb(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function _m(n,t,e,r){return n[0]=t[0]+e[0]*r,n[1]=t[1]+e[1]*r,n}function Js(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function bm(n){return Math.sqrt(W4(n))}var ldt=null;function W4(n){return n[0]*n[0]+n[1]*n[1]}var udt=null;function cdt(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n}function ddt(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n}function hdt(n,t){return n[0]*t[0]+n[1]*t[1]}function Df(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function Ou(n,t){var e=bm(t);return e===0?(n[0]=0,n[1]=0):(n[0]=t[0]/e,n[1]=t[1]/e),n}function Cm(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var us=Cm;function F4(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}var Qs=F4;function fdt(n,t){return n[0]=-t[0],n[1]=-t[1],n}function kf(n,t,e,r){return n[0]=t[0]+r*(e[0]-t[0]),n[1]=t[1]+r*(e[1]-t[1]),n}function si(n,t,e){var r=t[0],i=t[1];return n[0]=e[0]*r+e[2]*i+e[4],n[1]=e[1]*r+e[3]*i+e[5],n}function cs(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function ds(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}var Ru=function(){function n(t,e){this.target=t,this.topTarget=e&&e.topTarget}return n}(),j4=function(){function n(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ru(e,t),"dragstart",t.event))},n.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,i=t.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Ru(e,t),"drag",t.event);var s=this.handler.findHover(r,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ru(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ru(s,t),"dragenter",t.event))}},n.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ru(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ru(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},n}();const z4=j4;var H4=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=r,r=e,e=null),!r||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===r)return this;var l={h:r,query:e,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},n.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},n.prototype.off=function(t,e){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var i=[],a=0,o=r[t].length;a<o;a++)r[t][a].h!==e&&i.push(r[t][a]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},n.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},n.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,e[0]);break;case 2:c.h.call(s,e[0],e[1]);break;default:c.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},n}();const la=H4;var U4=Math.log(2);function Mm(n,t,e,r,i,a){var o=r+"-"+i,s=n.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/U4);return n[e][l]}for(var u=r|1<<e,c=e+1;r&1<<c;)c++;for(var d=0,h=0,f=0;h<s;h++){var p=1<<h;p&i||(d+=(f%2?-1:1)*n[e][h]*Mm(n,t-1,c,u,i|p,a),f++)}return a[o]=d,d}function Mb(n,t){var e=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],r={},i=Mm(e,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Mm(e,7,o===0?1:0,1<<o,1<<s,r)/i*t[o];return function(l,u,c){var d=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/d,l[1]=(u*a[3]+c*a[4]+a[5])/d}}}var Tb="___zrEVENTSAVED",Tm=[];function G4(n,t,e,r,i){return Dm(Tm,t,r,i,!0)&&Dm(n,e,Tm[0],Tm[1])}function Dm(n,t,e,r,i){if(t.getBoundingClientRect&&Zn.domSupported&&!Db(t)){var a=t[Tb]||(t[Tb]={}),o=K4(t,a),s=X4(o,a,i);if(s)return s(n,e,r),!0}return!1}function K4(n,t){var e=t.markers;if(e)return e;e=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,u=(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[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),n.appendChild(o),e.push(o)}return e}function X4(n,t,e){for(var r=e?"invTrans":"trans",i=t[r],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,h=c.left,f=c.top;o.push(h,f),l=l&&a&&h===a[d]&&f===a[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[r]=e?Mb(s,o):Mb(o,s))}function Db(n){return n.nodeName.toUpperCase()==="CANVAS"}var Y4=/([&<>"'])/g,Z4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ji(n){return n==null?"":(n+"").replace(Y4,function(t,e){return Z4[e]})}var $4=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,km=[],J4=Zn.browser.firefox&&+Zn.browser.version.split(".")[0]<39;function Pm(n,t,e,r){return e=e||{},r?kb(n,t,e):J4&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):kb(n,t,e),e}function kb(n,t,e){if(Zn.domSupported&&n.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Db(n)){var a=n.getBoundingClientRect();e.zrX=r-a.left,e.zrY=i-a.top;return}else if(Dm(km,n,r,i)){e.zrX=km[0],e.zrY=km[1];return}}e.zrX=e.zrY=0}function Am(n){return n||window.event}function ua(n,t,e){if(t=Am(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Pm(n,o,t,e)}else{Pm(n,t,t,e);var a=Q4(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&$4.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Q4(n){var t=n.wheelDelta;if(t)return t;var e=n.deltaX,r=n.deltaY;if(e==null||r==null)return t;var i=Math.abs(r!==0?r:e),a=r>0?-1:r<0?1:e>0?-1:1;return 3*i*a}function Im(n,t,e,r){n.addEventListener(t,e,r)}function q4(n,t,e,r){n.removeEventListener(t,e,r)}var Io=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Pb(n){return n.which===2||n.which===3}var tV=function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,r){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Pm(r,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},n.prototype._recognize=function(t){for(var e in Em)if(Em.hasOwnProperty(e)){var r=Em[e](this._track,t);if(r)return r}},n}();function Ab(n){var t=n[1][0]-n[0][0],e=n[1][1]-n[0][1];return Math.sqrt(t*t+e*e)}function eV(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var Em={pinch:function(n,t){var e=n.length;if(e){var r=(n[e-1]||{}).points,i=(n[e-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Ab(r)/Ab(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eV(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:n[0].target,event:t}}}}};function ea(){return[1,0,0,1,0,0]}function Pf(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Lm(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function Eo(n,t,e){var r=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return n[0]=r,n[1]=i,n[2]=a,n[3]=o,n[4]=s,n[5]=l,n}function no(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function qs(n,t,e,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(e),d=Math.cos(e);return n[0]=i*d+s*c,n[1]=-i*c+s*d,n[2]=a*d+l*c,n[3]=-a*c+d*l,n[4]=d*(o-r[0])+c*(u-r[1])+r[0],n[5]=d*(u-r[1])-c*(o-r[0])+r[1],n}function Om(n,t,e){var r=e[0],i=e[1];return n[0]=t[0]*r,n[1]=t[1]*i,n[2]=t[2]*r,n[3]=t[3]*i,n[4]=t[4]*r,n[5]=t[5]*i,n}function Nu(n,t){var e=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*r;return l?(l=1/l,n[0]=o*l,n[1]=-a*l,n[2]=-r*l,n[3]=e*l,n[4]=(r*s-o*i)*l,n[5]=(a*i-e*s)*l,n):null}function nV(n){var t=ea();return Lm(t,n),t}var rV=function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(t){if(t){var e=this.x,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+t[5],this}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,r){t.x=e,t.y=r},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,r){t.x=e.x+r.x,t.y=e.y+r.y},n.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},n.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},n.scaleAndAdd=function(t,e,r,i){t.x=e.x+r.x*i,t.y=e.y+r.y*i},n.lerp=function(t,e,r,i){var a=1-i;t.x=a*e.x+i*r.x,t.y=a*e.y+i*r.y},n}();const Sn=rV;var Af=Math.min,If=Math.max,tl=new Sn,el=new Sn,nl=new Sn,rl=new Sn,nd=new Sn,rd=new Sn,iV=function(){function n(t,e,r,i){r<0&&(t=t+r,r=-r),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=r,this.height=i}return n.prototype.union=function(t){var e=Af(t.x,this.x),r=Af(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=If(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=If(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var e=this,r=t.width/e.width,i=t.height/e.height,a=ea();return no(a,a,[-e.x,-e.y]),Om(a,a,[r,i]),no(a,a,[t.x,t.y]),a},n.prototype.intersect=function(t,e){if(!t)return!1;t instanceof n||(t=n.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(a<l||u<i||s<c||d<o);if(e){var f=1/0,p=0,g=Math.abs(a-l),v=Math.abs(u-i),y=Math.abs(s-c),x=Math.abs(d-o),S=Math.min(g,v),_=Math.min(y,x);a<l||u<i?S>p&&(p=S,g<v?Sn.set(rd,-g,0):Sn.set(rd,v,0)):S<f&&(f=S,g<v?Sn.set(nd,g,0):Sn.set(nd,-v,0)),s<c||d<o?_>p&&(p=_,y<x?Sn.set(rd,0,-y):Sn.set(rd,0,x)):S<f&&(f=S,y<x?Sn.set(nd,0,y):Sn.set(nd,0,-x))}return e&&Sn.copy(e,h?nd:rd),h},n.prototype.contain=function(t,e){var r=this;return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,r){if(!r){t!==e&&n.copy(t,e);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=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.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}tl.x=nl.x=e.x,tl.y=rl.y=e.y,el.x=rl.x=e.x+e.width,el.y=nl.y=e.y+e.height,tl.transform(r),rl.transform(r),el.transform(r),nl.transform(r),t.x=Af(tl.x,el.x,nl.x,rl.x),t.y=Af(tl.y,el.y,nl.y,rl.y);var l=If(tl.x,el.x,nl.x,rl.x),u=If(tl.y,el.y,nl.y,rl.y);t.width=l-t.x,t.height=u-t.y},n}();const wn=iV;var Ib="silent";function aV(n,t,e){return{type:n,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:oV}}function oV(){Io(this.event)}var sV=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(la),id=function(){function n(t,e){this.x=t,this.y=e}return n}(),lV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rm=new wn(0,0,0,0),Eb=function(n){Zt(t,n);function t(e,r,i,a,o){var s=n.call(this)||this;return s._hovered=new id(0,0),s.storage=e,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new sV,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new z4(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(mt(lV,function(r){e.on&&e.on(r,this[r],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var r=e.zrX,i=e.zrY,a=Ob(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new id(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var r=e.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new id(0,0)},t.prototype.dispatch=function(e,r){var i=this[e];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var r=this.proxy;r.setCursor&&r.setCursor(e)},t.prototype.dispatchToElement=function(e,r,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+r,s=aV(r,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(e,r,i){var a=this.storage.getDisplayList(),o=new id(e,r);if(Lb(a,o,e,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new wn(e-u,r-u,l,l),d=a.length-1;d>=0;d--){var h=a[d];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Rm.copy(h.getBoundingRect()),h.transform&&Rm.applyTransform(h.transform),Rm.intersect(c)&&s.push(h))}if(s.length)for(var f=4,p=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=f)for(var y=0;y<g;y+=p){var x=e+v*Math.cos(y),S=r+v*Math.sin(y);if(Lb(s,o,x,S,i),o.target)return o}}return o},t.prototype.processGesture=function(e,r){this._gestureMgr||(this._gestureMgr=new tV);var i=this._gestureMgr;r==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new id;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(la);mt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Eb.prototype[n]=function(t){var e=t.zrX,r=t.zrY,i=Ob(this,e,r),a,o;if((n!=="mouseup"||!i)&&(a=this.findHover(e,r),o=a.target),n==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(n==="mouseup")this._upEl=o;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||us(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,n,t)}});function uV(n,t,e){if(n[n.rectHover?"rectContain":"contain"](t,e)){for(var r=n,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,e))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?Ib:!0}return!1}function Lb(n,t,e,r,i){for(var a=n.length-1;a>=0;a--){var o=n[a],s=void 0;if(o!==i&&!o.ignore&&(s=uV(o,e,r))&&(!t.topTarget&&(t.topTarget=o),s!==Ib)){t.target=o;break}}}function Ob(n,t,e){var r=n.painter;return t<0||t>r.getWidth()||e<0||e>r.getHeight()}const cV=Eb;var Rb=32,ad=7;function dV(n){for(var t=0;n>=Rb;)t|=n&1,n>>=1;return n+t}function Nb(n,t,e,r){var i=t+1;if(i===e)return 1;if(r(n[i++],n[t])<0){for(;i<e&&r(n[i],n[i-1])<0;)i++;hV(n,t,i)}else for(;i<e&&r(n[i],n[i-1])>=0;)i++;return i-t}function hV(n,t,e){for(e--;t<e;){var r=n[t];n[t++]=n[e],n[e--]=r}}function Bb(n,t,e,r,i){for(r===t&&r++;r<e;r++){for(var a=n[r],o=t,s=r,l;o<s;)l=o+s>>>1,i(a,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=a}}function Nm(n,t,e,r,i,a){var o=0,s=0,l=1;if(a(n,t[e+i])>0){for(s=r-i;l<s&&a(n,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(n,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(n,t[e+c])>0?o=c+1:l=c}return l}function Bm(n,t,e,r,i,a){var o=0,s=0,l=1;if(a(n,t[e+i])<0){for(s=i+1;l<s&&a(n,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l<s&&a(n,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(n,t[e+c])<0?l=c:o=c+1}return l}function fV(n,t){var e=ad,r,i,a=0,o=[];r=[],i=[];function s(f,p){r[a]=f,i[a]=p,a+=1}function l(){for(;a>1;){var f=a-2;if(f>=1&&i[f-1]<=i[f]+i[f+1]||f>=2&&i[f-2]<=i[f]+i[f-1])i[f-1]<i[f+1]&&f--;else if(i[f]>i[f+1])break;c(f)}}function u(){for(;a>1;){var f=a-2;f>0&&i[f-1]<i[f+1]&&f--,c(f)}}function c(f){var p=r[f],g=i[f],v=r[f+1],y=i[f+1];i[f]=g+y,f===a-3&&(r[f+1]=r[f+2],i[f+1]=i[f+2]),a--;var x=Bm(n[v],n,p,g,0,t);p+=x,g-=x,g!==0&&(y=Nm(n[p+g-1],n,v,y,y-1,t),y!==0&&(g<=y?d(p,g,v,y):h(p,g,v,y)))}function d(f,p,g,v){var y=0;for(y=0;y<p;y++)o[y]=n[f+y];var x=0,S=g,_=f;if(n[_++]=n[S++],--v===0){for(y=0;y<p;y++)n[_+y]=o[x+y];return}if(p===1){for(y=0;y<v;y++)n[_+y]=n[S+y];n[_+v]=o[x];return}for(var D=e,C,N,q;;){C=0,N=0,q=!1;do if(t(n[S],o[x])<0){if(n[_++]=n[S++],N++,C=0,--v===0){q=!0;break}}else if(n[_++]=o[x++],C++,N=0,--p===1){q=!0;break}while((C|N)<D);if(q)break;do{if(C=Bm(n[S],o,x,p,0,t),C!==0){for(y=0;y<C;y++)n[_+y]=o[x+y];if(_+=C,x+=C,p-=C,p<=1){q=!0;break}}if(n[_++]=n[S++],--v===0){q=!0;break}if(N=Nm(o[x],n,S,v,0,t),N!==0){for(y=0;y<N;y++)n[_+y]=n[S+y];if(_+=N,S+=N,v-=N,v===0){q=!0;break}}if(n[_++]=o[x++],--p===1){q=!0;break}D--}while(C>=ad||N>=ad);if(q)break;D<0&&(D=0),D+=2}if(e=D,e<1&&(e=1),p===1){for(y=0;y<v;y++)n[_+y]=n[S+y];n[_+v]=o[x]}else{if(p===0)throw new Error;for(y=0;y<p;y++)n[_+y]=o[x+y]}}function h(f,p,g,v){var y=0;for(y=0;y<v;y++)o[y]=n[g+y];var x=f+p-1,S=v-1,_=g+v-1,D=0,C=0;if(n[_--]=n[x--],--p===0){for(D=_-(v-1),y=0;y<v;y++)n[D+y]=o[y];return}if(v===1){for(_-=p,x-=p,C=_+1,D=x+1,y=p-1;y>=0;y--)n[C+y]=n[D+y];n[_]=o[S];return}for(var N=e;;){var q=0,et=0,lt=!1;do if(t(o[S],n[x])<0){if(n[_--]=n[x--],q++,et=0,--p===0){lt=!0;break}}else if(n[_--]=o[S--],et++,q=0,--v===1){lt=!0;break}while((q|et)<N);if(lt)break;do{if(q=p-Bm(o[S],n,f,p,p-1,t),q!==0){for(_-=q,x-=q,p-=q,C=_+1,D=x+1,y=q-1;y>=0;y--)n[C+y]=n[D+y];if(p===0){lt=!0;break}}if(n[_--]=o[S--],--v===1){lt=!0;break}if(et=v-Nm(n[x],o,0,v,v-1,t),et!==0){for(_-=et,S-=et,v-=et,C=_+1,D=S+1,y=0;y<et;y++)n[C+y]=o[D+y];if(v<=1){lt=!0;break}}if(n[_--]=n[x--],--p===0){lt=!0;break}N--}while(q>=ad||et>=ad);if(lt)break;N<0&&(N=0),N+=2}if(e=N,e<1&&(e=1),v===1){for(_-=p,x-=p,C=_+1,D=x+1,y=p-1;y>=0;y--)n[C+y]=n[D+y];n[_]=o[S]}else{if(v===0)throw new Error;for(D=_-(v-1),y=0;y<v;y++)n[D+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ef(n,t,e,r){e||(e=0),r||(r=n.length);var i=r-e;if(!(i<2)){var a=0;if(i<Rb){a=Nb(n,e,r,t),Bb(n,e,r,e+a,t);return}var o=fV(n,t),s=dV(i);do{if(a=Nb(n,e,r,t),a<s){var l=i;l>s&&(l=s),Bb(n,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var na=1,od=2,Bu=4,Vb=!1;function Vm(){Vb||(Vb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Wb(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var pV=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Wb}return n.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},n.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(e),r},n.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);r.length=this._displayListLen,Ef(r,Wb)},n.prototype._updateAndAddDisplayable=function(t,e,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=na),this._updateAndAddDisplayable(u,e,r)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Vm(),c.z=0),isNaN(c.z2)&&(Vm(),c.z2=0),isNaN(c.zlevel)&&(Vm(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=t.getDecalElement&&t.getDecalElement();d&&this._updateAndAddDisplayable(d,e,r);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,r);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,r)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,r=t.length;e<r;e++)this.delRoot(t[e]);return}var i=kn(this._roots,t);i>=0&&this._roots.splice(i,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const gV=pV;var Fb;Fb=Zn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const Wm=Fb;var Lf={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1,r=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/r)))},elasticOut:function(n){var t,e=.1,r=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var t,e=.1,r=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?-.5*(e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/r)):e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-Lf.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Lf.bounceIn(n*2)*.5:Lf.bounceOut(n*2-1)*.5+.5}};const jb=Lf;var Of=Math.pow,hs=Math.sqrt,Rf=1e-8,zb=1e-4,Hb=hs(3),Nf=1/3,ro=$s(),ca=$s(),Vu=$s();function fs(n){return n>-Rf&&n<Rf}function Ub(n){return n>Rf||n<-Rf}function Jr(n,t,e,r,i){var a=1-i;return a*a*(a*n+3*i*t)+i*i*(i*r+3*a*e)}function Gb(n,t,e,r,i){var a=1-i;return 3*(((t-n)*a+2*(e-t)*i)*a+(r-e)*i*i)}function Bf(n,t,e,r,i,a){var o=r+3*(t-e)-n,s=3*(e-t*2+n),l=3*(t-n),u=n-i,c=s*s-3*o*l,d=s*l-9*o*u,h=l*l-3*s*u,f=0;if(fs(c)&&fs(d))if(fs(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[f++]=p)}else{var g=d*d-4*c*h;if(fs(g)){var v=d/c,p=-s/o+v,y=-v/2;p>=0&&p<=1&&(a[f++]=p),y>=0&&y<=1&&(a[f++]=y)}else if(g>0){var x=hs(g),S=c*s+1.5*o*(-d+x),_=c*s+1.5*o*(-d-x);S<0?S=-Of(-S,Nf):S=Of(S,Nf),_<0?_=-Of(-_,Nf):_=Of(_,Nf);var p=(-s-(S+_))/(3*o);p>=0&&p<=1&&(a[f++]=p)}else{var D=(2*c*s-3*o*d)/(2*hs(c*c*c)),C=Math.acos(D)/3,N=hs(c),q=Math.cos(C),p=(-s-2*N*q)/(3*o),y=(-s+N*(q+Hb*Math.sin(C)))/(3*o),et=(-s+N*(q-Hb*Math.sin(C)))/(3*o);p>=0&&p<=1&&(a[f++]=p),y>=0&&y<=1&&(a[f++]=y),et>=0&&et<=1&&(a[f++]=et)}}return f}function Kb(n,t,e,r,i){var a=6*e-12*t+6*n,o=9*t+3*r-3*n-9*e,s=3*t-3*n,l=0;if(fs(o)){if(Ub(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(fs(c))i[0]=-a/(2*o);else if(c>0){var d=hs(c),u=(-a+d)/(2*o),h=(-a-d)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function ps(n,t,e,r,i,a){var o=(t-n)*i+n,s=(e-t)*i+t,l=(r-e)*i+e,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=n,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function Xb(n,t,e,r,i,a,o,s,l,u,c){var d,h=.005,f=1/0,p,g,v,y;ro[0]=l,ro[1]=u;for(var x=0;x<1;x+=.05)ca[0]=Jr(n,e,i,o,x),ca[1]=Jr(t,r,a,s,x),v=Qs(ro,ca),v<f&&(d=x,f=v);f=1/0;for(var S=0;S<32&&!(h<zb);S++)p=d-h,g=d+h,ca[0]=Jr(n,e,i,o,p),ca[1]=Jr(t,r,a,s,p),v=Qs(ca,ro),p>=0&&v<f?(d=p,f=v):(Vu[0]=Jr(n,e,i,o,g),Vu[1]=Jr(t,r,a,s,g),y=Qs(Vu,ro),g<=1&&y<f?(d=g,f=y):h*=.5);return c&&(c[0]=Jr(n,e,i,o,d),c[1]=Jr(t,r,a,s,d)),hs(f)}function vV(n,t,e,r,i,a,o,s,l){for(var u=n,c=t,d=0,h=1/l,f=1;f<=l;f++){var p=f*h,g=Jr(n,e,i,o,p),v=Jr(t,r,a,s,p),y=g-u,x=v-c;d+=Math.sqrt(y*y+x*x),u=g,c=v}return d}function ai(n,t,e,r){var i=1-r;return i*(i*n+2*r*t)+r*r*e}function Fm(n,t,e,r){return 2*((1-r)*(t-n)+r*(e-t))}function mV(n,t,e,r,i){var a=n-2*t+e,o=2*(t-n),s=n-r,l=0;if(fs(a)){if(Ub(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(fs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=hs(c),u=(-o+d)/(2*a),h=(-o-d)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Yb(n,t,e){var r=n+e-2*t;return r===0?.5:(n-t)/r}function sd(n,t,e,r,i){var a=(t-n)*r+n,o=(e-t)*r+t,s=(o-a)*r+a;i[0]=n,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Zb(n,t,e,r,i,a,o,s,l){var u,c=.005,d=1/0;ro[0]=o,ro[1]=s;for(var h=0;h<1;h+=.05){ca[0]=ai(n,e,i,h),ca[1]=ai(t,r,a,h);var f=Qs(ro,ca);f<d&&(u=h,d=f)}d=1/0;for(var p=0;p<32&&!(c<zb);p++){var g=u-c,v=u+c;ca[0]=ai(n,e,i,g),ca[1]=ai(t,r,a,g);var f=Qs(ca,ro);if(g>=0&&f<d)u=g,d=f;else{Vu[0]=ai(n,e,i,v),Vu[1]=ai(t,r,a,v);var y=Qs(Vu,ro);v<=1&&y<d?(u=v,d=y):c*=.5}}return l&&(l[0]=ai(n,e,i,u),l[1]=ai(t,r,a,u)),hs(d)}function yV(n,t,e,r,i,a,o){for(var s=n,l=t,u=0,c=1/o,d=1;d<=o;d++){var h=d*c,f=ai(n,e,i,h),p=ai(t,r,a,h),g=f-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=f,l=p}return u}var xV=/cubic-bezier\(([0-9,\.e ]+)\)/;function jm(n){var t=n&&xV.exec(n);if(t){var e=t[1].split(","),r=+Ia(e[0]),i=+Ia(e[1]),a=+Ia(e[2]),o=+Ia(e[3]);if(isNaN(r+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Bf(0,r,a,1,l,s)&&Jr(0,i,o,1,s[0])}}}var SV=function(){function n(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Fr,this.ondestroy=t.ondestroy||Fr,this.onrestart=t.onrestart||Fr,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var r=this._life,i=t-this._startTime-this._pausedTime,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=qe(t)?t:jb[t]||jm(t)},n}();const wV=SV;var $b=function(){function n(t){this.value=t}return n}(),_V=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new $b(t);return this.insertEntry(e),e},n.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),bV=function(){function n(t){this._list=new _V,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var r=this._list,i=this._map,a=null;if(i[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new $b(e),s.key=t,r.insertEntry(s),i[t]=s}return a},n.prototype.get=function(t){var e=this._map[t],r=this._list;if(e!=null)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const ld=bV;var Jb={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 Ea(n){return n=Math.round(n),n<0?0:n>255?255:n}function CV(n){return n=Math.round(n),n<0?0:n>360?360:n}function ud(n){return n<0?0:n>1?1:n}function zm(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?Ea(parseFloat(t)/100*255):Ea(parseInt(t,10))}function il(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?ud(parseFloat(t)/100):ud(parseFloat(t))}function Hm(n,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?n+(t-n)*e*6:e*2<1?t:e*3<2?n+(t-n)*(2/3-e)*6:n}function gs(n,t,e){return n+(t-n)*e}function da(n,t,e,r,i){return n[0]=t,n[1]=e,n[2]=r,n[3]=i,n}function Um(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var Qb=new ld(20),Vf=null;function Wu(n,t){Vf&&Um(Vf,t),Vf=Qb.put(n,Vf||t.slice())}function zi(n,t){if(n){t=t||[];var e=Qb.get(n);if(e)return Um(t,e);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in Jb)return Um(t,Jb[r]),Wu(n,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){da(t,0,0,0,1);return}return da(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wu(n,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){da(t,0,0,0,1);return}return da(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Wu(n,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?da(t,+u[0],+u[1],+u[2],1):da(t,0,0,0,1);c=il(u.pop());case"rgb":if(u.length>=3)return da(t,zm(u[0]),zm(u[1]),zm(u[2]),u.length===3?c:il(u[3])),Wu(n,t),t;da(t,0,0,0,1);return;case"hsla":if(u.length!==4){da(t,0,0,0,1);return}return u[3]=il(u[3]),Gm(u,t),Wu(n,t),t;case"hsl":if(u.length!==3){da(t,0,0,0,1);return}return Gm(u,t),Wu(n,t),t;default:return}}da(t,0,0,0,1)}}function Gm(n,t){var e=(parseFloat(n[0])%360+360)%360/360,r=il(n[1]),i=il(n[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t=t||[],da(t,Ea(Hm(o,a,e+1/3)*255),Ea(Hm(o,a,e)*255),Ea(Hm(o,a,e-1/3)*255),1),n.length===4&&(t[3]=n[3]),t}function MV(n){if(n){var t=n[0]/255,e=n[1]/255,r=n[2]/255,i=Math.min(t,e,r),a=Math.max(t,e,r),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,d=((a-e)/6+o/2)/o,h=((a-r)/6+o/2)/o;t===a?l=h-d:e===a?l=1/3+c-h:r===a&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,u,s];return n[3]!=null&&f.push(n[3]),f}}function Km(n,t){var e=zi(n);if(e){for(var r=0;r<3;r++)t<0?e[r]=e[r]*(1-t)|0:e[r]=(255-e[r])*t+e[r]|0,e[r]>255?e[r]=255:e[r]<0&&(e[r]=0);return io(e,e.length===4?"rgba":"rgb")}}function pdt(n){var t=zi(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Xm(n,t,e){if(!(!(t&&t.length)||!(n>=0&&n<=1))){e=e||[];var r=n*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],l=r-i;return e[0]=Ea(gs(o[0],s[0],l)),e[1]=Ea(gs(o[1],s[1],l)),e[2]=Ea(gs(o[2],s[2],l)),e[3]=ud(gs(o[3],s[3],l)),e}}var gdt=null;function TV(n,t,e){if(!(!(t&&t.length)||!(n>=0&&n<=1))){var r=n*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=zi(t[i]),s=zi(t[a]),l=r-i,u=io([Ea(gs(o[0],s[0],l)),Ea(gs(o[1],s[1],l)),Ea(gs(o[2],s[2],l)),ud(gs(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}var vdt=null;function cd(n,t,e,r){var i=zi(n);if(n)return i=MV(i),t!=null&&(i[0]=CV(t)),e!=null&&(i[1]=il(e)),r!=null&&(i[2]=il(r)),io(Gm(i),"rgba")}function Wf(n,t){var e=zi(n);if(e&&t!=null)return e[3]=ud(t),io(e,"rgba")}function io(n,t){if(!(!n||!n.length)){var e=n[0]+","+n[1]+","+n[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+n[3]),t+"("+e+")"}}function Ff(n,t){var e=zi(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function mdt(){return io([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var qb=new ld(100);function Ym(n){if(je(n)){var t=qb.get(n);return t||(t=Km(n,-.1),qb.put(n,t)),t}else if(_f(n)){var e=ye({},n);return e.colorStops=we(n.colorStops,function(r){return{offset:r.offset,color:Km(r.color,-.1)}}),e}return n}var dd=Math.round;function hd(n){var t;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var e=zi(n);e&&(n="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:n,opacity:t==null?1:t}}var tC=1e-4;function vs(n){return n<tC&&n>-tC}function jf(n){return dd(n*1e3)/1e3}function Zm(n){return dd(n*1e4)/1e4}function ydt(n){return dd(n*10)/10}function DV(n){return"matrix("+jf(n[0])+","+jf(n[1])+","+jf(n[2])+","+jf(n[3])+","+Zm(n[4])+","+Zm(n[5])+")"}var kV={left:"start",right:"end",center:"middle",middle:"middle"};function PV(n,t,e){return e==="top"?n+=t/2:e==="bottom"&&(n-=t/2),n}function AV(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function IV(n){var t=n.style,e=n.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function xdt(n){var t=[];if(n)for(var e=0;e<n.length;e++){var r=n[e];t.push(r.id)}return t.join(",")}function eC(n){return n&&!!n.image}function EV(n){return n&&!!n.svgElement}function $m(n){return eC(n)||EV(n)}function nC(n){return n.type==="linear"}function rC(n){return n.type==="radial"}function iC(n){return n&&(n.type==="linear"||n.type==="radial")}function zf(n){return"url(#"+n+")"}function aC(n){var t=n.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function oC(n){var t=n.x||0,e=n.y||0,r=(n.rotation||0)*Tf,i=pn(n.scaleX,1),a=pn(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),r&&l.push("rotate("+r+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+dd(o*Tf)+"deg, "+dd(s*Tf)+"deg)"),l.join(" ")}var LV=function(){return Zn.hasGlobalWindow&&qe(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),Jm=Array.prototype.slice;function Lo(n,t,e){return(t-n)*e+n}function Qm(n,t,e,r){for(var i=t.length,a=0;a<i;a++)n[a]=Lo(t[a],e[a],r);return n}function OV(n,t,e,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){n[o]||(n[o]=[]);for(var s=0;s<a;s++)n[o][s]=Lo(t[o][s],e[o][s],r)}return n}function Hf(n,t,e,r){for(var i=t.length,a=0;a<i;a++)n[a]=t[a]+e[a]*r;return n}function sC(n,t,e,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){n[o]||(n[o]=[]);for(var s=0;s<a;s++)n[o][s]=t[o][s]+e[o][s]*r}return n}function RV(n,t){for(var e=n.length,r=t.length,i=e>r?t:n,a=Math.min(e,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function NV(n,t,e){var r=n,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var l=a;l<o;l++)r.push(e===1?i[l]:Jm.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(e===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function fd(n){if(mi(n)){var t=n.length;if(mi(n[0])){for(var e=[],r=0;r<t;r++)e.push(Jm.call(n[r]));return e}return Jm.call(n)}return n}function Uf(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function BV(n){return mi(n&&n[0])?2:1}var Gf=0,Kf=1,lC=2,pd=3,qm=4,t0=5,uC=6;function cC(n){return n===qm||n===t0}function Xf(n){return n===Kf||n===lC}var gd=[0,0,0,0],VV=function(){function n(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=uC,l=e;if(mi(e)){var u=BV(e);s=u,(u===1&&!$n(e[0])||u===2&&!$n(e[0][0]))&&(o=!0)}else if($n(e)&&!td(e))s=Gf;else if(je(e))if(!isNaN(+e))s=Gf;else{var c=zi(e);c&&(l=c,s=pd)}else if(_f(e)){var d=ye({},l);d.colorStops=we(e.colorStops,function(f){return{offset:f.offset,color:zi(f.color)}}),nC(e)?s=qm:rC(e)&&(s=t0),l=d}a===0?this.valType=s:(s!==this.valType||s===uC)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:e,percent:0};return r&&(h.easing=r,h.easingFunc=qe(r)?r:jb[r]||jm(r)),i.push(h),h},n.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort(function(g,v){return g.time-v.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=Xf(i),u=cC(i),c=0;c<a;c++){var d=r[c],h=d.value,f=o.value;d.percent=d.time/t,s||(l&&c!==a-1?NV(h,f,i):u&&RV(h.colorStops,f.colorStops))}if(!s&&i!==t0&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var p=r[0].value,c=0;c<a;c++)i===Gf?r[c].additiveValue=r[c].value-p:i===pd?r[c].additiveValue=Hf([],r[c].value,p,-1):Xf(i)&&(r[c].additiveValue=i===Kf?Hf([],r[c].value,p,-1):sC([],r[c].value,p,-1))}},n.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===pd,c,d=this._lastFr,h=Math.min,f,p;if(s===1)f=p=o[0];else{if(e<0)c=0;else if(e<this._lastFrP){var g=h(d+1,s-1);for(c=g;c>=0&&!(o[c].percent<=e);c--);c=h(c,s-2)}else{for(c=d;c<s&&!(o[c].percent>e);c++);c=h(c-1,s-2)}p=o[c+1],f=o[c]}if(f&&p){this._lastFr=c,this._lastFrP=e;var v=p.percent-f.percent,y=v===0?1:h((e-f.percent)/v,1);p.easingFunc&&(y=p.easingFunc(y));var x=r?this._additiveValue:u?gd:t[l];if((Xf(a)||u)&&!x&&(x=this._additiveValue=[]),this.discrete)t[l]=y<1?f.rawValue:p.rawValue;else if(Xf(a))a===Kf?Qm(x,f[i],p[i],y):OV(x,f[i],p[i],y);else if(cC(a)){var S=f[i],_=p[i],D=a===qm;t[l]={type:D?"linear":"radial",x:Lo(S.x,_.x,y),y:Lo(S.y,_.y,y),colorStops:we(S.colorStops,function(N,q){var et=_.colorStops[q];return{offset:Lo(N.offset,et.offset,y),color:Uf(Qm([],N.color,et.color,y))}}),global:_.global},D?(t[l].x2=Lo(S.x2,_.x2,y),t[l].y2=Lo(S.y2,_.y2,y)):t[l].r=Lo(S.r,_.r,y)}else if(u)Qm(x,f[i],p[i],y),r||(t[l]=Uf(x));else{var C=Lo(f[i],p[i],y);r?this._additiveValue=C:t[l]=C}r&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var e=this.valType,r=this.propName,i=this._additiveValue;e===Gf?t[r]=t[r]+i:e===pd?(zi(t[r],gd),Hf(gd,gd,i,1),t[r]=Uf(gd)):e===Kf?Hf(t[r],t[r],i,1):e===lC&&sC(t[r],t[r],i,1)},n}(),WV=function(){function n(t,e,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){mm("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,r){return this.whenWithKeys(t,e,Nn(e),r)},n.prototype.whenWithKeys=function(t,e,r,i){for(var a=this._tracks,o=0;o<r.length;o++){var s=r[o],l=a[s];if(!l){l=a[s]=new VV(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var d=c.keyframes,h=d[d.length-1];u=h&&h.value,c.valType===pd&&u&&(u=Uf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,fd(u),i),this._trackKeys.push(s)}l.addKeyframe(t,fd(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r<e;r++)t[r].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var r=0;r<e.length;r++)e[r].call(this)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,r=0;r<e.length;r++)t[e[r]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var a=r[i].getTrack(t);a&&(e=a)}return e},n.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,r=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=u[c-1];d&&(e._target[s.propName]=d.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var h=new wV({life:i,loop:this._loop,delay:this._delay||0,onframe:function(f){e._started=2;var p=e._additiveAnimators;if(p){for(var g=!1,v=0;v<p.length;v++)if(p[v]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(var v=0;v<r.length;v++)r[v].step(e._target,f);var y=e._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](e._target,f)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},n.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var t=this;return we(this._trackKeys,function(e){return t._tracks[e]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=r[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!r[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(t,e,r){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(t[a]=fd(l.rawValue))}}}},n.prototype.__changeFinalValue=function(t,e){e=e||Nn(t);for(var r=0;r<e.length;r++){var i=e[r],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},n}();const e0=WV;function Fu(){return new Date().getTime()}var FV=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,e=e||{},r.stage=e.stage||{},r}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var r=e.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(e){if(e.animation){var r=e.prev,i=e.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var r=e.getClip();r&&this.removeClip(r),e.animation=null},t.prototype.update=function(e){for(var r=Fu()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=r,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function r(){e._running&&(Wm(r),!e._paused&&e.update())}Wm(r)},t.prototype.start=function(){this._running||(this._time=Fu(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Fu(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Fu()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var r=e.next;e.prev=e.next=e.animation=null,e=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,r){r=r||{},this.start();var i=new e0(e,r.loop);return this.addAnimator(i),i},t}(la);const jV=FV;var zV=300,n0=Zn.domSupported,r0=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=we(n,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:n,touch:t,pointer:r}}(),dC={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hC=!1;function i0(n){var t=n.pointerType;return t==="pen"||t==="touch"}function HV(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function a0(n){n&&(n.zrByTouch=!0)}function UV(n,t){return ua(n.dom,new GV(n,t),!0)}function fC(n,t){for(var e=t,r=!1;e&&e.nodeType!==9&&!(r=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return r}var GV=function(){function n(t,e){this.stopPropagation=Fr,this.stopImmediatePropagation=Fr,this.preventDefault=Fr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return n}(),La={mousedown:function(n){n=ua(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=ua(this.dom,n);var t=this.__mayPointerCapture;t&&(n.zrX!==t[0]||n.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=ua(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=ua(this.dom,n);var t=n.toElement||n.relatedTarget;fC(this,t)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){hC=!0,n=ua(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){hC||(n=ua(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=ua(this.dom,n),a0(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),La.mousemove.call(this,n),La.mousedown.call(this,n)},touchmove:function(n){n=ua(this.dom,n),a0(n),this.handler.processGesture(n,"change"),La.mousemove.call(this,n)},touchend:function(n){n=ua(this.dom,n),a0(n),this.handler.processGesture(n,"end"),La.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<zV&&La.click.call(this,n)},pointerdown:function(n){La.mousedown.call(this,n)},pointermove:function(n){i0(n)||La.mousemove.call(this,n)},pointerup:function(n){La.mouseup.call(this,n)},pointerout:function(n){i0(n)||La.mouseout.call(this,n)}};mt(["click","dblclick","contextmenu"],function(n){La[n]=function(t){t=ua(this.dom,t),this.trigger(n,t)}});var o0={pointermove:function(n){i0(n)||o0.mousemove.call(this,n)},pointerup:function(n){o0.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function KV(n,t){var e=t.domHandlers;Zn.pointerEventsSupported?mt(r0.pointer,function(r){Yf(t,r,function(i){e[r].call(n,i)})}):(Zn.touchEventsSupported&&mt(r0.touch,function(r){Yf(t,r,function(i){e[r].call(n,i),HV(t)})}),mt(r0.mouse,function(r){Yf(t,r,function(i){i=Am(i),t.touching||e[r].call(n,i)})}))}function XV(n,t){Zn.pointerEventsSupported?mt(dC.pointer,e):Zn.touchEventsSupported||mt(dC.mouse,e);function e(r){function i(a){a=Am(a),fC(n,a.target)||(a=UV(n,a),t.domHandlers[r].call(n,a))}Yf(t,r,i,{capture:!0})}}function Yf(n,t,e,r){n.mounted[t]=e,n.listenerOpts[t]=r,Im(n.domTarget,t,e,r)}function s0(n){var t=n.mounted;for(var e in t)t.hasOwnProperty(e)&&q4(n.domTarget,e,t[e],n.listenerOpts[e]);n.mounted={}}var pC=function(){function n(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return n}(),YV=function(n){Zt(t,n);function t(e,r){var i=n.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=r,i._localHandlerScope=new pC(e,La),n0&&(i._globalHandlerScope=new pC(document,o0)),KV(i,i._localHandlerScope),i}return t.prototype.dispose=function(){s0(this._localHandlerScope),n0&&s0(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,n0&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var r=this._globalHandlerScope;e?XV(this,r):s0(r)}},t}(la);const ZV=YV;var gC=1;Zn.hasGlobalWindow&&(gC=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Sdt=0,Zf=gC,l0=.4,u0="#333",c0="#ccc",$V="#eee",vC=Pf,mC=5e-5;function al(n){return n>mC||n<-mC}var ol=[],ju=[],d0=ea(),h0=Math.abs,JV=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return al(this.rotation)||al(this.x)||al(this.y)||al(this.scaleX-1)||al(this.scaleY-1)||al(this.skewX)||al(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;if(!(e||t)){r&&(vC(r),this.invTransform=null);return}r=r||ea(),e?this.getLocalTransform(r):vC(r),t&&(e?Eo(r,t,r):Lm(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ol);var r=ol[0]<0?-1:1,i=ol[1]<0?-1:1,a=((ol[0]-r)*e+r)/ol[0]||0,o=((ol[1]-i)*e+i)/ol[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ea(),Nu(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ea(),Eo(ju,t.invTransform,e),e=ju);var r=this.originX,i=this.originY;(r||i)&&(d0[4]=r,d0[5]=i,Eo(ju,e,d0),ju[4]-=r,ju[5]-=i,e=ju),this.setLocalTransform(e)}},n.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},n.prototype.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&si(r,r,i),r},n.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&si(r,r,i),r},n.prototype.getLineScale=function(){var t=this.transform;return t&&h0(t[0]-1)>1e-10&&h0(t[3]-1)>1e-10?Math.sqrt(h0(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){yC(this,t)},n.getLocalTransform=function(t,e){e=e||[];var r=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,d=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var p=r+s,g=i+l;e[4]=-p*a-h*g*o,e[5]=-g*o-f*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=f*a,e[2]=h*o,u&&qs(e,e,u),e[4]+=r+c,e[5]+=i+d,e},n.initDefaultProps=function(){var t=n.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),n}(),ao=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yC(n,t){for(var e=0;e<ao.length;e++){var r=ao[e];n[r]=t[r]}}const Oo=JV;var xC={};function ra(n,t){t=t||ls;var e=xC[t];e||(e=xC[t]=new ld(500));var r=e.get(n);return r==null&&(r=Aa.measureText(n,t).width,e.put(n,r)),r}function SC(n,t,e,r){var i=ra(n,t),a=$f(t),o=md(0,i,e),s=zu(0,a,r),l=new wn(o,s,i,a);return l}function vd(n,t,e,r){var i=((n||"")+"").split("\n"),a=i.length;if(a===1)return SC(i[0],t,e,r);for(var o=new wn(0,0,0,0),s=0;s<i.length;s++){var l=SC(i[s],t,e,r);s===0?o.copy(l):o.union(l)}return o}function md(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function zu(n,t,e){return e==="middle"?n-=t/2:e==="bottom"&&(n-=t),n}function $f(n){return ra("\u56FD",n)}function wdt(n,t){return platformApi.measureText(n,t)}function Oa(n,t){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function Jf(n,t,e){var r=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,c="left",d="top";if(r instanceof Array)l+=Oa(r[0],e.width),u+=Oa(r[1],e.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var f0="__zr_normal__",p0=ao.concat(["ignore"]),QV=to(ao,function(n,t){return n[t]=!0,n},{ignore:!1}),Hu={},qV=new wn(0,0,0,0),g0=function(){function n(t){this.id=xb(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),r.position!=null){var c=qV;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Hu,r,c):Jf(Hu,r,c),a.x=Hu.x,a.y=Hu.y,o=Hu.align,s=Hu.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var h=void 0,f=void 0;d==="center"?(h=c.width*.5,f=c.height*.5):(h=Oa(d[0],c.width),f=Oa(d[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+f+(i?0:c.y)}}r.rotation!=null&&(a.rotation=r.rotation);var p=r.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,x=void 0,S=void 0;g&&this.canBeInsideText()?(y=r.insideFill,x=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(y),S=!0)):(y=r.outsideFill,x=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(y),S=!0)),y=y||"#000",(y!==v.fill||x!==v.stroke||S!==v.autoStroke||o!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=x,v.autoStroke=S,v.align=o,v.verticalAlign=s,e.setDefaultTextStyle(v)),e.__dirty|=na,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c0:u0},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r=typeof e=="string"&&zi(e);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,io(r,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},ye(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(rn(t))for(var r=t,i=Nn(r),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==f0)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},n.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,p0)},n.prototype._savePrimaryToNormal=function(t,e,r){for(var i=0;i<r.length;i++){var a=r[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(f0,!1,t)},n.prototype.useState=function(t,e,r,i){var a=t===f0,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(kn(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){mm("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,h=this._textGuide;return d&&d.useState(t,e,r,c),h&&h.useState(t,e,r,c),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na),u}}},n.prototype.useStates=function(t,e,r){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var d=i[o-1],h=!!(d&&d.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,h),v&&v.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na)}},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e=kn(this.currentStates,t);if(e>=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},n.prototype.replaceState=function(t,e,r){var i=this.currentStates.slice(),a=kn(i,t),o=kn(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:r&&!o&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e={},r,i=0;i<t.length;i++){var a=t[i];ye(e,a),a.textConfig&&(r=r||{},ye(r,a.textConfig))}return r&&(e.textConfig=r),e},n.prototype._applyStateObj=function(t,e,r,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=ye({},i?this.textConfig:r.textConfig),ye(this.textConfig,e.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<p0.length;c++){var d=p0[c],h=a&&QV[d];e&&e[d]!=null?h?(u=!0,l[d]=e[d]):this[d]=e[d]:s&&r[d]!=null&&(h?(u=!0,l[d]=r[d]):this[d]=r[d])}if(!a)for(var c=0;c<this.animators.length;c++){var f=this.animators[c],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(e||r)[p]:e||r)}u&&this._transitionState(t,l,o)},n.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Oo,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ye(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=na;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,r=this._textGuide;e&&(e.__inHover=t),r&&(r.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,r){var i=t?this[t]:this,a=new e0(i,e,r);return t&&(a.targetName=t),this.addAnimator(a,t),a},n.prototype.addAnimator=function(t,e){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=kn(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var r=this.animators,i=r.length,a=[],o=0;o<i;o++){var s=r[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},n.prototype.animateTo=function(t,e,r){v0(this,t,e,r)},n.prototype.animateFrom=function(t,e,r){v0(this,t,e,r,!0)},n.prototype._transitionState=function(t,e,r,i){for(var a=v0(this,e,r,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var t=n.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=na;var e={};function r(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,d){Object.defineProperty(d,0,{get:function(){return c[s]},set:function(h){c[s]=h}}),Object.defineProperty(d,1,{get:function(){return c[l]},set:function(h){c[l]=h}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),n}();Wr(g0,la),Wr(g0,Oo);function v0(n,t,e,r,i){e=e||{};var a=[];wC(n,"",n,t,e,r,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},d=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(p,g){e.during(g)});for(var h=0;h<a.length;h++){var f=a[h];c&&f.done(c),d&&f.aborted(d),e.force&&f.duration(e.duration),f.start(e.easing)}return a}function m0(n,t,e){for(var r=0;r<e;r++)n[r]=t[r]}function tW(n){return mi(n[0])}function eW(n,t,e){if(mi(t[e]))if(mi(n[e])||(n[e]=[]),Fi(t[e])){var r=t[e].length;n[e].length!==r&&(n[e]=new t[e].constructor(r),m0(n[e],t[e],r))}else{var i=t[e],a=n[e],o=i.length;if(tW(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?m0(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else m0(a,i,o);a.length=i.length}else n[e]=t[e]}function nW(n,t){return n===t||mi(n)&&mi(t)&&rW(n,t)}function rW(n,t){var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}function wC(n,t,e,r,i,a,o,s){for(var l=Nn(r),u=i.duration,c=i.delay,d=i.additive,h=i.setToFinal,f=!rn(a),p=n.animators,g=[],v=0;v<l.length;v++){var y=l[v],x=r[y];if(x!=null&&e[y]!=null&&(f||a[y]))if(rn(x)&&!mi(x)&&!_f(x)){if(t){s||(e[y]=x,n.updateDuringAnimation(t));continue}wC(n,y,e[y],x,i,a&&a[y],o,s)}else g.push(y);else s||(e[y]=x,n.updateDuringAnimation(t),g.push(y))}var S=g.length;if(!d&&S)for(var _=0;_<p.length;_++){var D=p[_];if(D.targetName===t){var C=D.stopTracks(g);if(C){var N=kn(p,D);p.splice(N,1)}}}if(i.force||(g=sr(g,function(ft){return!nW(r[ft],e[ft])}),S=g.length),S>0||i.force&&!o.length){var q=void 0,et=void 0,lt=void 0;if(s){et={},h&&(q={});for(var _=0;_<S;_++){var y=g[_];et[y]=e[y],h?q[y]=r[y]:e[y]=r[y]}}else if(h){lt={};for(var _=0;_<S;_++){var y=g[_];lt[y]=fd(e[y]),eW(e,r,y)}}var D=new e0(e,!1,!1,d?sr(p,function(_t){return _t.targetName===t}):null);D.targetName=t,i.scope&&(D.scope=i.scope),h&&q&&D.whenWithKeys(0,q,g),lt&&D.whenWithKeys(0,lt,g),D.whenWithKeys(u==null?500:u,s?et:r,g).delay(c||0),n.addAnimator(D,t),o.push(D)}}const _C=g0;var bC=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===e)return r[i]},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,r){if(e&&e!==this&&e.parent!==this&&r&&r.parent===this){var i=this._children,a=i.indexOf(r);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,r){var i=kn(this._children,e);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(e,r){var i=this._children,a=i[r];if(e&&e!==this&&e.parent!==this&&e!==a){i[r]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var r=this.__zr;r&&r!==e.__zr&&e.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(e){var r=this.__zr,i=this._children,a=kn(i,e);return a<0?this:(i.splice(a,1),e.parent=null,r&&e.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,r=this.__zr,i=0;i<e.length;i++){var a=e[i];r&&a.removeSelfFromZr(r),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,r){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(r,o,a)}return this},t.prototype.traverse=function(e,r){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(r,a);a.isGroup&&!o&&a.traverse(e,r)}return this},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var r=new wn(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(wn.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(_C);bC.prototype.type="group";const sn=bC;/*!
  13. * ZRender, a high performance 2d drawing library.
  14. *
  15. * Copyright (c) 2013, Baidu Inc.
  16. * All rights reserved.
  17. *
  18. * LICENSE
  19. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  20. */var Qf={},sl={};function iW(n){delete sl[n]}function aW(n){if(!n)return!1;if(typeof n=="string")return Ff(n,1)<l0;if(n.colorStops){for(var t=n.colorStops,e=0,r=t.length,i=0;i<r;i++)e+=Ff(t[i].color,1);return e/=r,e<l0}return!1}var oW=function(){function n(t,e,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var a=new gV,o=r.renderer||"canvas";Qf[o]||(o=Nn(Qf)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Qf[o](e,a,r,t),l=r.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Zn.node&&!Zn.worker&&!l?new ZV(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,d=c==null||c==="auto"?Zn.touchEventsSupported:!!c,h=44,f;d&&(f=pn(r.pointerSize,h)),this.handler=new cV(a,s,u,s.root,f),this.animation=new jV({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},n.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=aW(t))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(t){this._darkMode=t},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(t){var e,r=Fu();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Fu();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},n.prototype.on=function(t,e,r){return this._disposed||this.handler.on(t,e,r),this},n.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},n.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},n.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof sn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,iW(this.id))},n}();function CC(n,t){var e=new oW(xb(),n,t);return sl[e.id]=e,e}function _dt(n){n.dispose()}function bdt(){for(var n in sl)sl.hasOwnProperty(n)&&sl[n].dispose();sl={}}function Cdt(n){return sl[n]}function sW(n,t){Qf[n]=t}var y0;function lW(n){if(typeof y0=="function")return y0(n)}function uW(n){y0=n}var Mdt="5.5.0",MC=1e-4,TC=20;function cW(n){return n.replace(/^\s+|\s+$/g,"")}function nr(n,t,e,r){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(n<=i)return o;if(n>=a)return s}else{if(n>=i)return o;if(n<=a)return s}else{if(n===i)return o;if(n===a)return s}return(n-i)/l*u+o}function Oe(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return je(n)?cW(n).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n}function Or(n,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),TC),n=(+n).toFixed(t),e?n:+n}function ha(n){return n.sort(function(t,e){return t-e}),n}function oo(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e}return dW(n)}function dW(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),r=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function DC(n,t){var e=Math.log,r=Math.LN10,i=Math.floor(e(n[1]-n[0])/r),a=Math.round(e(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Tdt(n,t,e){if(!n[t])return 0;var r=kC(n,e);return r[t]||0}function kC(n,t){var e=to(n,function(f,p){return f+(isNaN(p)?0:p)},0);if(e===0)return[];for(var r=Math.pow(10,t),i=we(n,function(f){return(isNaN(f)?0:f)/e*r*100}),a=r*100,o=we(i,function(f){return Math.floor(f)}),s=to(o,function(f,p){return f+p},0),l=we(i,function(f,p){return f-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,d=0,h=l.length;d<h;++d)l[d]>u&&(u=l[d],c=d);++o[c],l[c]=0,++s}return we(o,function(f){return f/r})}function hW(n,t){var e=Math.max(oo(n),oo(t)),r=n+t;return e>TC?r:Or(r,e)}var PC=9007199254740991;function AC(n){var t=Math.PI*2;return(n%t+t)%t}function yd(n){return n>-MC&&n<MC}var fW=/^(?:(\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 Ra(n){if(n instanceof Date)return n;if(je(n)){var t=fW.exec(n);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function pW(n){return Math.pow(10,x0(n))}function x0(n){if(n===0)return 0;var t=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,t)>=10&&t++,t}function IC(n,t){var e=x0(n),r=Math.pow(10,e),i=n/r,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,n=a*r,e>=-20?+n.toFixed(e<0?-e:0):n}function S0(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],a=e-r;return a?i+a*(n[r]-i):i}function EC(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,r=0;r<n.length;){for(var i=n[r].interval,a=n[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?n.splice(r,1):r++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Ro(n){var t=parseFloat(n);return t==n&&(t!==0||!je(n)||n.indexOf("x")<=0)?t:NaN}function LC(n){return!isNaN(Ro(n))}function OC(){return Math.round(Math.random()*9)}function RC(n,t){return t===0?n:RC(t,n%t)}function NC(n,t){return n==null?t:t==null?n:n*t/RC(n,t)}function BC(n,t,e){return(t-n)*e+n}var VC="series\0",WC="\0_ec_\0";function cr(n){return n instanceof Array?n:n==null?[]:[n]}function ll(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var r=0,i=e.length;r<i;r++){var a=e[r];!n.emphasis[t].hasOwnProperty(a)&&n[t].hasOwnProperty(a)&&(n.emphasis[t][a]=n[t][a])}}}var FC=["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 Uu(n){return rn(n)&&!Se(n)&&!(n instanceof Date)?n.value:n}function gW(n){return rn(n)&&!(n instanceof Array)}function jC(n,t,e){var r=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";n=n||[],t=(t||[]).slice();var o=Ze();mt(t,function(l,u){if(!rn(l)){t[u]=null;return}});var s=vW(n,o,e);return(r||i)&&mW(s,n,o,t),r&&yW(s,t),r||i?xW(s,t,i):a&&SW(s,t),wW(s),s}function vW(n,t,e){var r=[];if(e==="replaceAll")return r;for(var i=0;i<n.length;i++){var a=n[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:e==="replaceMerge"||Sd(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function mW(n,t,e,r){mt(r,function(i,a){if(!(!i||i.id==null)){var o=xd(i.id),s=e.get(o);if(s!=null){var l=n[s];Ti(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],r[a]=null}}})}function yW(n,t){mt(t,function(e,r){if(!(!e||e.name==null))for(var i=0;i<n.length;i++){var a=n[i].existing;if(!n[i].newOption&&a&&(a.id==null||e.id==null)&&!Sd(e)&&!Sd(a)&&zC("name",a,e)){n[i].newOption=e,t[r]=null;return}}})}function xW(n,t,e){mt(t,function(r){if(r){for(var i,a=0;(i=n[a])&&(i.newOption||Sd(i.existing)||i.existing&&r.id!=null&&!zC("id",r,i.existing));)a++;i?(i.newOption=r,i.brandNew=e):n.push({newOption:r,brandNew:e,existing:null,keyInfo:null}),a++}})}function SW(n,t){mt(t,function(e){n.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function wW(n){var t=Ze();mt(n,function(e){var r=e.existing;r&&t.set(r.id,e)}),mt(n,function(e){var r=e.newOption;Ti(!r||r.id==null||!t.get(r.id)||t.get(r.id)===e,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,e),!e.keyInfo&&(e.keyInfo={})}),mt(n,function(e,r){var i=e.existing,a=e.newOption,o=e.keyInfo;if(rn(a)){if(o.name=a.name!=null?xd(a.name):i?i.name:VC+r,i)o.id=xd(i.id);else if(a.id!=null)o.id=xd(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function zC(n,t,e){var r=Zr(t[n],null),i=Zr(e[n],null);return r!=null&&i!=null&&r===i}function xd(n){return Zr(n,"")}function Zr(n,t){return n==null?t:je(n)?n:$n(n)||xm(n)?n+"":t}function Ddt(n){}function kdt(n){return isStringSafe(n)||isNumeric(n)}function w0(n){var t=n.name;return!!(t&&t.indexOf(VC))}function Sd(n){return n&&n.id!=null&&xd(n.id).indexOf(WC)===0}function _W(n){return WC+n}function bW(n,t,e){mt(n,function(r){var i=r.newOption;rn(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=CW(t,i,r.existing,e))})}function CW(n,t,e,r){var i=t.type?t.type:e?e.subType:r.determineSubType(n,t);return i}function MW(n,t){var e={},r={};return i(n||[],e),i(t||[],r,e),[a(e),a(r)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var d=Zr(o[u].seriesId,null);if(d==null)return;for(var h=cr(o[u].dataIndex),f=l&&l[d],p=0,g=h.length;p<g;p++){var v=h[p];f&&f[v]?f[v]=null:(s[d]||(s[d]={}))[v]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function ul(n,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Se(t.dataIndex)?we(t.dataIndex,function(e){return n.indexOfRawIndex(e)}):n.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Se(t.name)?we(t.name,function(e){return n.indexOfName(e)}):n.indexOfName(t.name)}function Kn(){var n="__ec_inner_"+TW++;return function(t){return t[n]||(t[n]={})}}var TW=OC();function wd(n,t,e){var r=_0(t,e),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var d=_d(n,c,u,{useDefault:l===c,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[c+"Models"]=d.models,s[c+"Model"]=d.models[0]}),s}function _0(n,t){var e;if(je(n)){var r={};r[n+"Index"]=0,e=r}else e=n;var i=Ze(),a={},o=!1;return mt(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],d=(u[2]||"").toLowerCase();if(!(!c||!d||t&&t.includeMainTypes&&kn(t.includeMainTypes,c)<0)){o=o||!!c;var h=i.get(c)||i.set(c,{});h[d]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Kr={useDefault:!0,enableAll:!1,enableNone:!1},DW={useDefault:!1,enableAll:!0,enableNone:!0};function _d(n,t,e,r){r=r||Kr;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=n.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Ti(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ti(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=n.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function HC(n,t,e){n.setAttribute?n.setAttribute(t,e):n[t]=e}function kW(n,t){return n.getAttribute?n.getAttribute(t):n[t]}function PW(n){return n==="auto"?Zn.domSupported?"html":"richText":n||"html"}function b0(n,t){var e=Ze(),r=[];return mt(n,function(i){var a=t(i);(e.get(a)||(r.push(a),e.set(a,[]))).push(i)}),{keys:r,buckets:e}}function UC(n,t,e,r,i){var a=t==null||t==="auto";if(r==null)return r;if($n(r)){var o=BC(e||0,r,i);return Or(o,a?Math.max(oo(e||0),oo(r)):t)}else{if(je(r))return i<1?e:r;for(var s=[],l=e,u=r,c=Math.max(l?l.length:0,u.length),d=0;d<c;++d){var h=n.getDimensionInfo(d);if(h&&h.type==="ordinal")s[d]=(i<1&&l?l:u)[d];else{var f=l&&l[d]?l[d]:0,p=u[d],o=BC(f,p,i);s[d]=Or(o,a?Math.max(oo(f),oo(p)):t)}}return s}}var AW=".",cl="___EC__COMPONENT__CONTAINER___",GC="___EC__EXTENDED_CLASS___";function so(n){var t={main:"",sub:""};if(n){var e=n.split(AW);t.main=e[0]||"",t.sub=e[1]||""}return t}function IW(n){Ti(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function EW(n){return!!(n&&n[GC])}function C0(n,t){n.$constructor=n,n.extend=function(e){var r=this,i;return LW(r)?i=function(a){Zt(o,a);function o(){return a.apply(this,arguments)||this}return o}(r):(i=function(){(e.$constructor||r).apply(this,arguments)},A4(i,this)),ye(i.prototype,e),i[GC]=!0,i.extend=this.extend,i.superCall=NW,i.superApply=BW,i.superClass=r,i}}function LW(n){return qe(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function KC(n,t){n.extend=t.extend}var OW=Math.round(Math.random()*10);function RW(n){var t=["__\0is_clz",OW++].join("_");n.prototype[t]=!0,n.isInstance=function(e){return!!(e&&e[t])}}function NW(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return this.superClass.prototype[t].apply(n,e)}function BW(n,t,e){return this.superClass.prototype[t].apply(n,e)}function qf(n){var t={};n.registerClass=function(r){var i=r.type||r.prototype.type;if(i){IW(i),r.prototype.type=i;var a=so(i);if(!a.sub)t[a.main]=r;else if(a.sub!==cl){var o=e(a);o[a.sub]=r}}return r},n.getClass=function(r,i,a){var o=t[r];if(o&&o[cl]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return o},n.getClassesByMainType=function(r){var i=so(r),a=[],o=t[i.main];return o&&o[cl]?mt(o,function(s,l){l!==cl&&a.push(s)}):a.push(o),a},n.hasClass=function(r){var i=so(r);return!!t[i.main]},n.getAllClassMainTypes=function(){var r=[];return mt(t,function(i,a){r.push(a)}),r},n.hasSubTypes=function(r){var i=so(r),a=t[i.main];return a&&a[cl]};function e(r){var i=t[r.main];return(!i||!i[cl])&&(i=t[r.main]={},i[cl]=!0),i}}function dl(n,t){for(var e=0;e<n.length;e++)n[e][1]||(n[e][1]=n[e][0]);return t=t||!1,function(r,i,a){for(var o={},s=0;s<n.length;s++){var l=n[s][1];if(!(i&&kn(i,l)>=0||a&&kn(a,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[n[s][0]]=u)}}return o}}var VW=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],WW=dl(VW),FW=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return WW(this,t,e)},n}(),M0=new ld(50);function jW(n){if(typeof n=="string"){var t=M0.get(n);return t&&t.image}else return n}function T0(n,t,e,r,i){if(n)if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var a=M0.get(n),o={hostEl:e,cb:r,cbPayload:i};return a?(t=a.image,!tp(t)&&a.pending.push(o)):(t=Aa.loadImage(n,XC,XC),t.__zrImageSrc=n,M0.put(n,t.__cachedImgObj={image:t,pending:[o]})),t}else return n;else return t}function XC(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<n.pending.length;t++){var e=n.pending[t],r=e.cb;r&&r(this,e.cbPayload),e.hostEl.dirty()}n.pending.length=0}function tp(n){return n&&n.width&&n.height}var D0=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function zW(n,t,e,r,i){if(!t)return"";var a=(n+"").split("\n");i=YC(t,e,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=ZC(a[o],i);return a.join("\n")}function YC(n,t,e,r){r=r||{};var i=ye({},r);i.font=t,e=pn(e,"..."),i.maxIterations=pn(r.maxIterations,2);var a=i.minChar=pn(r.minChar,0);i.cnCharWidth=ra("\u56FD",t);var o=i.ascCharWidth=ra("a",t);i.placeholder=pn(r.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<a&&s>=o;l++)s-=o;var u=ra(e,t);return u>s&&(e="",u=0),s=n-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=n,i}function ZC(n,t){var e=t.containerWidth,r=t.font,i=t.contentWidth;if(!e)return"";var a=ra(n,r);if(a<=e)return n;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){n+=t.ellipsis;break}var s=o===0?HW(n,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(n.length*i/a):0;n=n.substr(0,s),a=ra(n,r)}return n===""&&(n=t.placeholder),n}function HW(n,t,e,r){for(var i=0,a=0,o=n.length;a<o&&i<t;a++){var s=n.charCodeAt(a);i+=0<=s&&s<=127?e:r}return a}function UW(n,t){n!=null&&(n+="");var e=t.overflow,r=t.padding,i=t.font,a=e==="truncate",o=$f(i),s=pn(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,d;c!=null&&(e==="break"||e==="breakAll")?d=n?JC(n,t.font,c,e==="breakAll",0).lines:[]:d=n?n.split("\n"):[];var h=d.length*s,f=pn(t.height,h);if(h>f&&u){var p=Math.floor(f/s);d=d.slice(0,p)}if(n&&a&&c!=null)for(var g=YC(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<d.length;v++)d[v]=ZC(d[v],g);for(var y=f,x=0,v=0;v<d.length;v++)x=Math.max(ra(d[v],i),x);c==null&&(c=x);var S=x;return r&&(y+=r[0]+r[2],S+=r[1]+r[3],c+=r[1]+r[3]),l&&(S=c),{lines:d,height:f,outerWidth:S,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:h,width:c}}var GW=function(){function n(){}return n}(),$C=function(){function n(t){this.tokens=[],t&&(this.tokens=t)}return n}(),KW=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return n}();function XW(n,t){var e=new KW;if(n!=null&&(n+=""),!n)return e;for(var r=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:a==="breakAll"}:null,s=D0.lastIndex=0,l;(l=D0.exec(n))!=null;){var u=l.index;u>s&&k0(e,n.substring(s,u),t,o),k0(e,l[2],t,o,l[1]),s=D0.lastIndex}s<n.length&&k0(e,n.substring(s,n.length),t,o);var c=[],d=0,h=0,f=t.padding,p=a==="truncate",g=t.lineOverflow==="truncate";function v(Vt,Ut,Yt){Vt.width=Ut,Vt.lineHeight=Yt,d+=Yt,h=Math.max(h,Ut)}t:for(var y=0;y<e.lines.length;y++){for(var x=e.lines[y],S=0,_=0,D=0;D<x.tokens.length;D++){var C=x.tokens[D],N=C.styleName&&t.rich[C.styleName]||{},q=C.textPadding=N.padding,et=q?q[1]+q[3]:0,lt=C.font=N.font||t.font;C.contentHeight=$f(lt);var ft=pn(N.height,C.contentHeight);if(C.innerHeight=ft,q&&(ft+=q[0]+q[2]),C.height=ft,C.lineHeight=eo(N.lineHeight,t.lineHeight,ft),C.align=N&&N.align||t.align,C.verticalAlign=N&&N.verticalAlign||"middle",g&&i!=null&&d+C.lineHeight>i){D>0?(x.tokens=x.tokens.slice(0,D),v(x,_,S),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var _t=N.width,Ct=_t==null||_t==="auto";if(typeof _t=="string"&&_t.charAt(_t.length-1)==="%")C.percentWidth=_t,c.push(C),C.contentWidth=ra(C.text,lt);else{if(Ct){var kt=N.backgroundColor,Ot=kt&&kt.image;Ot&&(Ot=jW(Ot),tp(Ot)&&(C.width=Math.max(C.width,Ot.width*ft/Ot.height)))}var Nt=p&&r!=null?r-_:null;Nt!=null&&Nt<C.width?!Ct||Nt<et?(C.text="",C.width=C.contentWidth=0):(C.text=zW(C.text,Nt-et,lt,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=ra(C.text,lt)):C.contentWidth=ra(C.text,lt)}C.width+=et,_+=C.width,N&&(S=Math.max(S,C.lineHeight))}v(x,_,S)}e.outerWidth=e.width=pn(r,h),e.outerHeight=e.height=pn(i,d),e.contentHeight=d,e.contentWidth=h,f&&(e.outerWidth+=f[1]+f[3],e.outerHeight+=f[0]+f[2]);for(var y=0;y<c.length;y++){var C=c[y],Xt=C.percentWidth;C.width=parseInt(Xt,10)/100*e.width}return e}function k0(n,t,e,r,i){var a=t==="",o=i&&e.rich[i]||{},s=n.lines,l=o.font||e.font,u=!1,c,d;if(r){var h=o.padding,f=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Oa(o.width,r.width)+f;s.length>0&&p+r.accumWidth>r.width&&(c=t.split("\n"),u=!0),r.accumWidth=p}else{var g=JC(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,d=g.linesWidths,c=g.lines}}else c=t.split("\n");for(var v=0;v<c.length;v++){var y=c[v],x=new GW;if(x.styleName=i,x.text=y,x.isLineHolder=!y&&!a,typeof o.width=="number"?x.width=o.width:x.width=d?d[v]:ra(y,l),!v&&!u){var S=(s[s.length-1]||(s[0]=new $C)).tokens,_=S.length;_===1&&S[0].isLineHolder?S[0]=x:(y||!_||a)&&S.push(x)}else s.push(new $C([x]))}}function YW(n){var t=n.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ZW=to(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function $W(n){return YW(n)?!!ZW[n]:!0}function JC(n,t,e,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,d=0;d<n.length;d++){var h=n.charAt(d);if(h==="\n"){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var f=ra(h,t),p=r?!1:!$W(h);if(a.length?c+f>e:i+c+f>e){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=f)):p?(a.push(l),o.push(u),l=h,u=f):(a.push(h),o.push(f));continue}c+=f,p?(l+=h,u+=f):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var P0="__zr_style_"+Math.round(Math.random()*10),hl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ep={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hl[P0]=!0;var QC=["z","z2","invisible"],JW=["invisible"],QW=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype._init=function(e){for(var r=Nn(e),i=0;i<r.length;i++){var a=r[i];a==="style"?this.useStyle(e[a]):n.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,r,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&qW(this,e,r)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,r){return this.rectContain(e,r)},t.prototype.traverse=function(e,r){e.call(r,this)},t.prototype.rectContain=function(e,r){var i=this.transformCoordToLocal(e,r),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new wn(0,0,0,0)),r?wn.applyTransform(e,i,r):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wn(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,r){e!=="style"?n.prototype.attrKV.call(this,e,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(e,r){return typeof e=="string"?this.style[e]=r:ye(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=od,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&od)},t.prototype.styleUpdated=function(){this.__dirty&=~od},t.prototype.createStyle=function(e){return Mf(hl,e)},t.prototype.useStyle=function(e){e[P0]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[P0]},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,r,QC)},t.prototype._applyStateObj=function(e,r,i,a,o,s){n.prototype._applyStateObj.call(this,e,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.style?o?a?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var d=Nn(c),h=0;h<d.length;h++){var f=d[h];f in u&&(u[f]=u[f],this.style[f]=c[f])}for(var p=Nn(u),h=0;h<p.length;h++){var f=p[h];this.style[f]=this.style[f]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?JW:QC,h=0;h<g.length;h++){var f=g[h];r&&r[f]!=null?this[f]=r[f]:l&&i[f]!=null&&(this[f]=i[f])}},t.prototype._mergeStates=function(e){for(var r=n.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(e,r){return ye(e,r),e},t.prototype.getAnimationStyleProps=function(){return ep},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=na|od}(),t}(_C),A0=new wn(0,0,0,0),I0=new wn(0,0,0,0);function qW(n,t,e){return A0.copy(n.getBoundingRect()),n.transform&&A0.applyTransform(n.transform),I0.width=t,I0.height=e,!A0.intersect(I0)}const fa=QW;var Hi=Math.min,Ui=Math.max,E0=Math.sin,L0=Math.cos,fl=Math.PI*2,np=$s(),rp=$s(),ip=$s();function ap(n,t,e){if(n.length!==0){for(var r=n[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<n.length;l++)r=n[l],i=Hi(i,r[0]),a=Ui(a,r[0]),o=Hi(o,r[1]),s=Ui(s,r[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function qC(n,t,e,r,i,a){i[0]=Hi(n,e),i[1]=Hi(t,r),a[0]=Ui(n,e),a[1]=Ui(t,r)}var tM=[],eM=[];function tF(n,t,e,r,i,a,o,s,l,u){var c=Kb,d=Jr,h=c(n,e,i,o,tM);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<h;f++){var p=d(n,e,i,o,tM[f]);l[0]=Hi(p,l[0]),u[0]=Ui(p,u[0])}h=c(t,r,a,s,eM);for(var f=0;f<h;f++){var g=d(t,r,a,s,eM[f]);l[1]=Hi(g,l[1]),u[1]=Ui(g,u[1])}l[0]=Hi(n,l[0]),u[0]=Ui(n,u[0]),l[0]=Hi(o,l[0]),u[0]=Ui(o,u[0]),l[1]=Hi(t,l[1]),u[1]=Ui(t,u[1]),l[1]=Hi(s,l[1]),u[1]=Ui(s,u[1])}function eF(n,t,e,r,i,a,o,s){var l=Yb,u=ai,c=Ui(Hi(l(n,e,i),1),0),d=Ui(Hi(l(t,r,a),1),0),h=u(n,e,i,c),f=u(t,r,a,d);o[0]=Hi(n,i,h),o[1]=Hi(t,a,f),s[0]=Ui(n,i,h),s[1]=Ui(t,a,f)}function nF(n,t,e,r,i,a,o,s,l){var u=cs,c=ds,d=Math.abs(i-a);if(d%fl<1e-4&&d>1e-4){s[0]=n-e,s[1]=t-r,l[0]=n+e,l[1]=t+r;return}if(np[0]=L0(i)*e+n,np[1]=E0(i)*r+t,rp[0]=L0(a)*e+n,rp[1]=E0(a)*r+t,u(s,np,rp),c(l,np,rp),i=i%fl,i<0&&(i=i+fl),a=a%fl,a<0&&(a=a+fl),i>a&&!o?a+=fl:i<a&&o&&(i+=fl),o){var h=a;a=i,i=h}for(var f=0;f<a;f+=Math.PI/2)f>i&&(ip[0]=L0(f)*e+n,ip[1]=E0(f)*r+t,u(s,ip,s),c(l,ip,l))}var vr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pl=[],gl=[],lo=[],ms=[],uo=[],co=[],O0=Math.min,R0=Math.max,vl=Math.cos,ml=Math.sin,No=Math.abs,N0=Math.PI,ys=N0*2,B0=typeof Float32Array<"u",bd=[];function V0(n){var t=Math.round(n/N0*1e8)/1e8;return t%2*N0}function W0(n,t){var e=V0(n[0]);e<0&&(e+=ys);var r=e-n[0],i=n[1];i+=r,!t&&i-e>=ys?i=e+ys:t&&e-i>=ys?i=e-ys:!t&&e>i?i=e+(ys-V0(e-i)):t&&e<i&&(i=e-(ys-V0(i-e))),n[0]=e,n[1]=i}var rF=function(){function n(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,r){r=r||0,r>0&&(this._ux=No(r/Zf/t)||0,this._uy=No(r/Zf/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(vr.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var r=No(t-this._xi),i=No(e-this._yi),a=r>this._ux||i>this._uy;if(this.addData(vr.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(t,e,r,i,a,o){return this._drawPendingPt(),this.addData(vr.C,t,e,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,r,i,a,o),this._xi=a,this._yi=o,this},n.prototype.quadraticCurveTo=function(t,e,r,i){return this._drawPendingPt(),this.addData(vr.Q,t,e,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,i),this._xi=r,this._yi=i,this},n.prototype.arc=function(t,e,r,i,a,o){this._drawPendingPt(),bd[0]=i,bd[1]=a,W0(bd,o),i=bd[0],a=bd[1];var s=a-i;return this.addData(vr.A,t,e,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,r,i,a,o),this._xi=vl(a)*r+t,this._yi=ml(a)*r+e,this},n.prototype.arcTo=function(t,e,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,r,i,a),this},n.prototype.rect=function(t,e,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,r,i),this.addData(vr.R,t,e,r,i),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(vr.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&t.closePath(),this._xi=e,this._yi=r,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&B0&&(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e},n.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,r=0,i=this._len,a=0;a<e;a++)r+=t[a].len();B0&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},n.prototype.addData=function(t,e,r,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var d=0;d<arguments.length;d++)c[this._len++]=arguments[d]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,B0&&this._len>11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){lo[0]=lo[1]=uo[0]=uo[1]=Number.MAX_VALUE,ms[0]=ms[1]=co[0]=co[1]=-Number.MAX_VALUE;var t=this.data,e=0,r=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],r=t[o+1],i=e,a=r),s){case vr.M:e=i=t[o++],r=a=t[o++],uo[0]=i,uo[1]=a,co[0]=i,co[1]=a;break;case vr.L:qC(e,r,t[o],t[o+1],uo,co),e=t[o++],r=t[o++];break;case vr.C:tF(e,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],uo,co),e=t[o++],r=t[o++];break;case vr.Q:eF(e,r,t[o++],t[o++],t[o],t[o+1],uo,co),e=t[o++],r=t[o++];break;case vr.A:var u=t[o++],c=t[o++],d=t[o++],h=t[o++],f=t[o++],p=t[o++]+f;o+=1;var g=!t[o++];l&&(i=vl(f)*d+u,a=ml(f)*h+c),nF(u,c,d,h,f,p,g,uo,co),e=vl(p)*d+u,r=ml(p)*h+c;break;case vr.R:i=e=t[o++],a=r=t[o++];var v=t[o++],y=t[o++];qC(i,a,i+v,a+y,uo,co);break;case vr.Z:e=i,r=a;break}cs(lo,lo,uo),ds(ms,ms,co)}return o===0&&(lo[0]=lo[1]=ms[0]=ms[1]=0),new wn(lo[0],lo[1],ms[0]-lo[0],ms[1]-lo[1])},n.prototype._calculateLength=function(){var t=this.data,e=this._len,r=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,d=0,h=0;h<e;){var f=t[h++],p=h===1;p&&(a=t[h],o=t[h+1],s=a,l=o);var g=-1;switch(f){case vr.M:a=s=t[h++],o=l=t[h++];break;case vr.L:{var v=t[h++],y=t[h++],x=v-a,S=y-o;(No(x)>r||No(S)>i||h===e-1)&&(g=Math.sqrt(x*x+S*S),a=v,o=y);break}case vr.C:{var _=t[h++],D=t[h++],v=t[h++],y=t[h++],C=t[h++],N=t[h++];g=vV(a,o,_,D,v,y,C,N,10),a=C,o=N;break}case vr.Q:{var _=t[h++],D=t[h++],v=t[h++],y=t[h++];g=yV(a,o,_,D,v,y,10),a=v,o=y;break}case vr.A:var q=t[h++],et=t[h++],lt=t[h++],ft=t[h++],_t=t[h++],Ct=t[h++],kt=Ct+_t;h+=1,p&&(s=vl(_t)*lt+q,l=ml(_t)*ft+et),g=R0(lt,ft)*O0(ys,Math.abs(Ct)),a=vl(kt)*lt+q,o=ml(kt)*ft+et;break;case vr.R:{s=a=t[h++],l=o=t[h++];var Ot=t[h++],Nt=t[h++];g=Ot*2+Nt*2;break}case vr.Z:{var x=s-a,S=l-o;g=Math.sqrt(x*x+S*S),a=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(t,e){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,d,h,f=e<1,p,g,v=0,y=0,x,S=0,_,D;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,x=e*g,!x)))t:for(var C=0;C<o;){var N=r[C++],q=C===1;switch(q&&(u=r[C],c=r[C+1],s=u,l=c),N!==vr.L&&S>0&&(t.lineTo(_,D),S=0),N){case vr.M:s=u=r[C++],l=c=r[C++],t.moveTo(u,c);break;case vr.L:{d=r[C++],h=r[C++];var et=No(d-u),lt=No(h-c);if(et>i||lt>a){if(f){var ft=p[y++];if(v+ft>x){var _t=(x-v)/ft;t.lineTo(u*(1-_t)+d*_t,c*(1-_t)+h*_t);break t}v+=ft}t.lineTo(d,h),u=d,c=h,S=0}else{var Ct=et*et+lt*lt;Ct>S&&(_=d,D=h,S=Ct)}break}case vr.C:{var kt=r[C++],Ot=r[C++],Nt=r[C++],Xt=r[C++],Vt=r[C++],Ut=r[C++];if(f){var ft=p[y++];if(v+ft>x){var _t=(x-v)/ft;ps(u,kt,Nt,Vt,_t,pl),ps(c,Ot,Xt,Ut,_t,gl),t.bezierCurveTo(pl[1],gl[1],pl[2],gl[2],pl[3],gl[3]);break t}v+=ft}t.bezierCurveTo(kt,Ot,Nt,Xt,Vt,Ut),u=Vt,c=Ut;break}case vr.Q:{var kt=r[C++],Ot=r[C++],Nt=r[C++],Xt=r[C++];if(f){var ft=p[y++];if(v+ft>x){var _t=(x-v)/ft;sd(u,kt,Nt,_t,pl),sd(c,Ot,Xt,_t,gl),t.quadraticCurveTo(pl[1],gl[1],pl[2],gl[2]);break t}v+=ft}t.quadraticCurveTo(kt,Ot,Nt,Xt),u=Nt,c=Xt;break}case vr.A:var Yt=r[C++],ue=r[C++],ie=r[C++],Gt=r[C++],Qt=r[C++],me=r[C++],De=r[C++],Pe=!r[C++],Ce=ie>Gt?ie:Gt,Ee=No(ie-Gt)>.001,Ve=Qt+me,Te=!1;if(f){var ft=p[y++];v+ft>x&&(Ve=Qt+me*(x-v)/ft,Te=!0),v+=ft}if(Ee&&t.ellipse?t.ellipse(Yt,ue,ie,Gt,De,Qt,Ve,Pe):t.arc(Yt,ue,Ce,Qt,Ve,Pe),Te)break t;q&&(s=vl(Qt)*ie+Yt,l=ml(Qt)*Gt+ue),u=vl(Ve)*ie+Yt,c=ml(Ve)*Gt+ue;break;case vr.R:s=u=r[C],l=c=r[C+1],d=r[C++],h=r[C++];var Be=r[C++],tn=r[C++];if(f){var ft=p[y++];if(v+ft>x){var Je=x-v;t.moveTo(d,h),t.lineTo(d+O0(Je,Be),h),Je-=Be,Je>0&&t.lineTo(d+Be,h+O0(Je,tn)),Je-=tn,Je>0&&t.lineTo(d+R0(Be-Je,0),h+tn),Je-=Be,Je>0&&t.lineTo(d,h+R0(tn-Je,0));break t}v+=ft}t.rect(d,h,Be,tn);break;case vr.Z:if(f){var ft=p[y++];if(v+ft>x){var _t=(x-v)/ft;t.lineTo(u*(1-_t)+s*_t,c*(1-_t)+l*_t);break t}v+=ft}t.closePath(),u=s,c=l}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=vr,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const ho=rF;function xs(n,t,e,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=n;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>n+s&&a>e+s||a<n-s&&a<e-s)return!1;if(n!==e)l=(t-r)/(n-e),u=(n*r-e*t)/(n-e);else return Math.abs(a-n)<=s/2;var c=l*a-o+u,d=c*c/(l*l+1);return d<=s/2*s/2}function iF(n,t,e,r,i,a,o,s,l,u,c){if(l===0)return!1;var d=l;if(c>t+d&&c>r+d&&c>a+d&&c>s+d||c<t-d&&c<r-d&&c<a-d&&c<s-d||u>n+d&&u>e+d&&u>i+d&&u>o+d||u<n-d&&u<e-d&&u<i-d&&u<o-d)return!1;var h=Xb(n,t,e,r,i,a,o,s,u,c,null);return h<=d/2}function nM(n,t,e,r,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>r+u&&l>a+u||l<t-u&&l<r-u&&l<a-u||s>n+u&&s>e+u&&s>i+u||s<n-u&&s<e-u&&s<i-u)return!1;var c=Zb(n,t,e,r,i,a,s,l,null);return c<=u/2}var rM=Math.PI*2;function ia(n){return n%=rM,n<0&&(n+=rM),n}var Cd=Math.PI*2;function aF(n,t,e,r,i,a,o,s,l){if(o===0)return!1;var u=o;s-=n,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>e||c+u<e)return!1;if(Math.abs(r-i)%Cd<1e-4)return!0;if(a){var d=r;r=ia(i),i=ia(d)}else r=ia(r),i=ia(i);r>i&&(i+=Cd);var h=Math.atan2(l,s);return h<0&&(h+=Cd),h>=r&&h<=i||h+Cd>=r&&h+Cd<=i}function Bo(n,t,e,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var l=o*(e-n)+n;return l===i?1/0:l>i?s:0}var Ss=ho.CMD,yl=Math.PI*2,oF=1e-4;function sF(n,t){return Math.abs(n-t)<oF}var ki=[-1,-1,-1],pa=[-1,-1];function lF(){var n=pa[0];pa[0]=pa[1],pa[1]=n}function uF(n,t,e,r,i,a,o,s,l,u){if(u>t&&u>r&&u>a&&u>s||u<t&&u<r&&u<a&&u<s)return 0;var c=Bf(t,r,a,s,u,ki);if(c===0)return 0;for(var d=0,h=-1,f=void 0,p=void 0,g=0;g<c;g++){var v=ki[g],y=v===0||v===1?.5:1,x=Jr(n,e,i,o,v);x<l||(h<0&&(h=Kb(t,r,a,s,pa),pa[1]<pa[0]&&h>1&&lF(),f=Jr(t,r,a,s,pa[0]),h>1&&(p=Jr(t,r,a,s,pa[1]))),h===2?v<pa[0]?d+=f<t?y:-y:v<pa[1]?d+=p<f?y:-y:d+=s<p?y:-y:v<pa[0]?d+=f<t?y:-y:d+=s<f?y:-y)}return d}function cF(n,t,e,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var l=mV(t,r,a,s,ki);if(l===0)return 0;var u=Yb(t,r,a);if(u>=0&&u<=1){for(var c=0,d=ai(t,r,a,u),h=0;h<l;h++){var f=ki[h]===0||ki[h]===1?.5:1,p=ai(n,e,i,ki[h]);p<o||(ki[h]<u?c+=d<t?f:-f:c+=a<d?f:-f)}return c}else{var f=ki[0]===0||ki[0]===1?.5:1,p=ai(n,e,i,ki[0]);return p<o?0:a<t?f:-f}}function dF(n,t,e,r,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ki[0]=-l,ki[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=yl-1e-4){r=0,i=yl;var c=a?1:-1;return o>=ki[0]+n&&o<=ki[1]+n?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=yl,i+=yl);for(var h=0,f=0;f<2;f++){var p=ki[f];if(p+n>o){var g=Math.atan2(s,p),c=a?1:-1;g<0&&(g=yl+g),(g>=r&&g<=i||g+yl>=r&&g+yl<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),h+=c)}}return h}function iM(n,t,e,r,i){for(var a=n.data,o=n.len(),s=0,l=0,u=0,c=0,d=0,h,f,p=0;p<o;){var g=a[p++],v=p===1;switch(g===Ss.M&&p>1&&(e||(s+=Bo(l,u,c,d,r,i))),v&&(l=a[p],u=a[p+1],c=l,d=u),g){case Ss.M:c=a[p++],d=a[p++],l=c,u=d;break;case Ss.L:if(e){if(xs(l,u,a[p],a[p+1],t,r,i))return!0}else s+=Bo(l,u,a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case Ss.C:if(e){if(iF(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,r,i))return!0}else s+=uF(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case Ss.Q:if(e){if(nM(l,u,a[p++],a[p++],a[p],a[p+1],t,r,i))return!0}else s+=cF(l,u,a[p++],a[p++],a[p],a[p+1],r,i)||0;l=a[p++],u=a[p++];break;case Ss.A:var y=a[p++],x=a[p++],S=a[p++],_=a[p++],D=a[p++],C=a[p++];p+=1;var N=!!(1-a[p++]);h=Math.cos(D)*S+y,f=Math.sin(D)*_+x,v?(c=h,d=f):s+=Bo(l,u,h,f,r,i);var q=(r-y)*_/S+y;if(e){if(aF(y,x,_,D,D+C,N,t,q,i))return!0}else s+=dF(y,x,_,D,D+C,N,q,i);l=Math.cos(D+C)*S+y,u=Math.sin(D+C)*_+x;break;case Ss.R:c=l=a[p++],d=u=a[p++];var et=a[p++],lt=a[p++];if(h=c+et,f=d+lt,e){if(xs(c,d,h,d,t,r,i)||xs(h,d,h,f,t,r,i)||xs(h,f,c,f,t,r,i)||xs(c,f,c,d,t,r,i))return!0}else s+=Bo(h,d,h,f,r,i),s+=Bo(c,f,c,d,r,i);break;case Ss.Z:if(e){if(xs(l,u,c,d,t,r,i))return!0}else s+=Bo(l,u,c,d,r,i);l=c,u=d;break}}return!e&&!sF(u,d)&&(s+=Bo(l,u,c,d,r,i)||0),s!==0}function hF(n,t,e){return iM(n,0,!1,t,e)}function fF(n,t,e,r){return iM(n,t,!0,e,r)}var op=nn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hl),pF={style:nn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ep.style)},F0=ao.concat(["invisible","culling","z","z2","zlevel","parent"]),gF=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.update=function(){var e=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.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<F0.length;++s)i[F0[s]]=this[F0[s]];i.__dirty|=na}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var r=Nn(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<r.length;a++){var o=r[a],s=e[o];o==="style"?this.style?ye(this.style,s):this.useStyle(s):o==="shape"?ye(this.shape,s):n.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(je(e)){var r=Ff(e,0);return r>.5?u0:r>.2?$V:c0}else if(e)return c0}return u0},t.prototype.getInsideTextStroke=function(e){var r=this.style.fill;if(je(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ff(e,0)<l0;if(a===o)return r}},t.prototype.buildPath=function(e,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Bu},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ho(!1)},t.prototype.hasStroke=function(){var e=this.style,r=e.stroke;return!(r==null||r==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,r=e.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,r=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Bu)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),a=this.getBoundingRect(),o=this.style;if(e=i[0],r=i[1],a.contain(e,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),fF(s,l/u,e,r)))return!0}if(this.hasFill())return hF(s,e,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Bu,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,r){e==="shape"?this.setShape(r):n.prototype.attrKV.call(this,e,r)},t.prototype.setShape=function(e,r){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=r:ye(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Bu)},t.prototype.createStyle=function(e){return Mf(op,e)},t.prototype._innerSaveToNormal=function(e){n.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=ye({},this.shape))},t.prototype._applyStateObj=function(e,r,i,a,o,s){n.prototype._applyStateObj.call(this,e,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=ye({},i.shape),ye(u,r.shape)):(u=ye({},a?this.shape:i.shape),ye(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=ye({},this.shape);for(var c={},d=Nn(u),h=0;h<d.length;h++){var f=d[h];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(e,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var r=n.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return pF},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var r=function(a){Zt(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return on(e.style)},o.prototype.getDefaultShape=function(){return on(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(r.prototype[i]=e[i]);return r},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=na|od|Bu}(),t}(fa);const In=gF;var vF=nn({strokeFirst:!0,font:ls,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},op),aM=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,r=e.stroke;return r!=null&&r!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,r=e.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(e){return Mf(vF,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var r=e.text;r!=null?r+="":r="";var i=vd(r,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(fa);aM.prototype.type="tspan";const Md=aM;var mF=nn({x:0,y:0},hl),yF={style:nn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ep.style)};function xF(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var oM=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Mf(mF,e)},t.prototype._getSize=function(e){var r=this.style,i=r[e];if(i!=null)return i;var a=xF(r.image)?r.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=r[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return yF},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new wn(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(fa);oM.prototype.type="image";const li=oM;function SF(n,t){var e=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(e=e+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>i&&(d=s+l,s*=i/d,l*=i/d),u+c>i&&(d=u+c,u*=i/d,c*=i/d),l+u>a&&(d=l+u,l*=a/d,u*=a/d),s+c>a&&(d=s+c,s*=a/d,c*=a/d),n.moveTo(e+s,r),n.lineTo(e+i-l,r),l!==0&&n.arc(e+i-l,r+l,l,-Math.PI/2,0),n.lineTo(e+i,r+a-u),u!==0&&n.arc(e+i-u,r+a-u,u,0,Math.PI/2),n.lineTo(e+c,r+a),c!==0&&n.arc(e+c,r+a-c,c,Math.PI/2,Math.PI),n.lineTo(e,r+s),s!==0&&n.arc(e+s,r+s,s,Math.PI,Math.PI*1.5)}var Gu=Math.round;function sM(n,t,e){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;n.x1=r,n.x2=i,n.y1=a,n.y2=o;var s=e&&e.lineWidth;return s&&(Gu(r*2)===Gu(i*2)&&(n.x1=n.x2=xl(r,s,!0)),Gu(a*2)===Gu(o*2)&&(n.y1=n.y2=xl(a,s,!0))),n}}function lM(n,t,e){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;n.x=r,n.y=i,n.width=a,n.height=o;var s=e&&e.lineWidth;return s&&(n.x=xl(r,s,!0),n.y=xl(i,s,!0),n.width=Math.max(xl(r+a,s,!1)-n.x,a===0?0:1),n.height=Math.max(xl(i+o,s,!1)-n.y,o===0?0:1)),n}}function xl(n,t,e){if(!t)return n;var r=Gu(n*2);return(r+Gu(t))%2===0?r/2:(r+(e?1:-1))/2}var wF=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),_F={},uM=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new wF},t.prototype.buildPath=function(e,r){var i,a,o,s;if(this.subPixelOptimize){var l=lM(_F,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?SF(e,r):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(In);uM.prototype.type="rect";const jn=uM;var cM={fill:"#000"},dM=2,bF={style:nn({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},ep.style)},hM=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=cM,r.attr(e),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var r=this._children[e];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):n.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var r=this.innerTransformable;return r?r.getLocalTransform(e):n.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,TF(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=e},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new wn(0,0,0,0),r=this._children,i=[],a=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||cM},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,r){if(!r)return e;var i=r.rich,a=e.rich||i&&{};return ye(e,r),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,r){for(var i=Nn(r),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},ye(e[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return bF},t.prototype._getOrCreateChild=function(e){var r=this._children[this._childCursor];return(!r||!(r instanceof e))&&(r=new e),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var e=this.style,r=e.font||ls,i=e.padding,a=wM(e),o=UW(a,e),s=j0(e),l=!!e.backgroundColor,u=o.outerHeight,c=o.outerWidth,d=o.contentWidth,h=o.lines,f=o.lineHeight,p=this._defaultStyle,g=e.x||0,v=e.y||0,y=e.align||p.align||"left",x=e.verticalAlign||p.verticalAlign||"top",S=g,_=zu(v,o.contentHeight,x);if(s||i){var D=md(g,c,y),C=zu(v,u,x);s&&this._renderBackground(e,e,D,C,c,u)}_+=f/2,i&&(S=SM(g,y,i),x==="top"?_+=i[0]:x==="bottom"&&(_-=i[2]));for(var N=0,q=!1,et=xM("fill"in e?e.fill:(q=!0,p.fill)),lt=yM("stroke"in e?e.stroke:!l&&(!p.autoStroke||q)?(N=dM,p.stroke):null),ft=e.textShadowBlur>0,_t=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),Ct=o.calculatedLineHeight,kt=0;kt<h.length;kt++){var Ot=this._getOrCreateChild(Md),Nt=Ot.createStyle();Ot.useStyle(Nt),Nt.text=h[kt],Nt.x=S,Nt.y=_,y&&(Nt.textAlign=y),Nt.textBaseline="middle",Nt.opacity=e.opacity,Nt.strokeFirst=!0,ft&&(Nt.shadowBlur=e.textShadowBlur||0,Nt.shadowColor=e.textShadowColor||"transparent",Nt.shadowOffsetX=e.textShadowOffsetX||0,Nt.shadowOffsetY=e.textShadowOffsetY||0),Nt.stroke=lt,Nt.fill=et,lt&&(Nt.lineWidth=e.lineWidth||N,Nt.lineDash=e.lineDash,Nt.lineDashOffset=e.lineDashOffset||0),Nt.font=r,gM(Nt,e),_+=f,_t&&Ot.setBoundingRect(new wn(md(Nt.x,e.width,Nt.textAlign),zu(Nt.y,Ct,Nt.textBaseline),d,Ct))}},t.prototype._updateRichTexts=function(){var e=this.style,r=wM(e),i=XW(r,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,d=this._defaultStyle,h=e.align||d.align,f=e.verticalAlign||d.verticalAlign,p=md(u,o,h),g=zu(c,s,f),v=p,y=g;l&&(v+=l[3],y+=l[0]);var x=v+a;j0(e)&&this._renderBackground(e,e,p,g,o,s);for(var S=!!e.backgroundColor,_=0;_<i.lines.length;_++){for(var D=i.lines[_],C=D.tokens,N=C.length,q=D.lineHeight,et=D.width,lt=0,ft=v,_t=x,Ct=N-1,kt=void 0;lt<N&&(kt=C[lt],!kt.align||kt.align==="left");)this._placeToken(kt,e,q,y,ft,"left",S),et-=kt.width,ft+=kt.width,lt++;for(;Ct>=0&&(kt=C[Ct],kt.align==="right");)this._placeToken(kt,e,q,y,_t,"right",S),et-=kt.width,_t-=kt.width,Ct--;for(ft+=(a-(ft-v)-(x-_t)-et)/2;lt<=Ct;)kt=C[lt],this._placeToken(kt,e,q,y,ft+kt.width/2,"center",S),ft+=kt.width,lt++;y+=q}},t.prototype._placeToken=function(e,r,i,a,o,s,l){var u=r.rich[e.styleName]||{};u.text=e.text;var c=e.verticalAlign,d=a+i/2;c==="top"?d=a+e.height/2:c==="bottom"&&(d=a+i-e.height/2);var h=!e.isLineHolder&&j0(u);h&&this._renderBackground(u,r,s==="right"?o-e.width:s==="center"?o-e.width/2:o,d-e.height/2,e.width,e.height);var f=!!u.backgroundColor,p=e.textPadding;p&&(o=SM(o,s,p),d-=e.height/2-p[0]-e.innerHeight/2);var g=this._getOrCreateChild(Md),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,x=!1,S=0,_=xM("fill"in u?u.fill:"fill"in r?r.fill:(x=!0,y.fill)),D=yM("stroke"in u?u.stroke:"stroke"in r?r.stroke:!f&&!l&&(!y.autoStroke||x)?(S=dM,y.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;v.text=e.text,v.x=o,v.y=d,C&&(v.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,v.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=e.font||ls,v.opacity=eo(u.opacity,r.opacity,1),gM(v,u),D&&(v.lineWidth=eo(u.lineWidth,r.lineWidth,S),v.lineDash=pn(u.lineDash,r.lineDash),v.lineDashOffset=r.lineDashOffset||0,v.stroke=D),_&&(v.fill=_);var N=e.contentWidth,q=e.contentHeight;g.setBoundingRect(new wn(md(v.x,N,v.textAlign),zu(v.y,q,v.textBaseline),N,q))},t.prototype._renderBackground=function(e,r,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,f=e.borderRadius,p=this,g,v;if(h||e.lineHeight||u&&c){g=this._getOrCreateChild(jn),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=f,g.dirtyShape()}if(h){var x=g.style;x.fill=l||null,x.fillOpacity=pn(e.fillOpacity,1)}else if(d){v=this._getOrCreateChild(li),v.onload=function(){p.dirtyStyle()};var S=v.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&c){var x=g.style;x.lineWidth=u,x.stroke=c,x.strokeOpacity=pn(e.strokeOpacity,1),x.lineDash=e.borderDash,x.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(g||v).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=eo(e.opacity,r.opacity,1)},t.makeFont=function(e){var r="";return vM(e)&&(r=[e.fontStyle,e.fontWeight,pM(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),r&&Ia(r)||e.textFont||e.font},t}(fa),CF={left:!0,right:1,center:1},MF={top:1,bottom:1,middle:1},fM=["fontStyle","fontWeight","fontSize","fontFamily"];function pM(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?pm+"px":n+"px"}function gM(n,t){for(var e=0;e<fM.length;e++){var r=fM[e],i=t[r];i!=null&&(n[r]=i)}}function vM(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function TF(n){return mM(n),mt(n.rich,mM),n}function mM(n){if(n){n.font=hM.makeFont(n);var t=n.align;t==="middle"&&(t="center"),n.align=t==null||CF[t]?t:"left";var e=n.verticalAlign;e==="center"&&(e="middle"),n.verticalAlign=e==null||MF[e]?e:"top";var r=n.padding;r&&(n.padding=wm(n.padding))}}function yM(n,t){return n==null||t<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function xM(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function SM(n,t,e){return t==="right"?n-e[1]:t==="center"?n+e[3]/2-e[1]/2:n+e[3]}function wM(n){var t=n.text;return t!=null&&(t+=""),t}function j0(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const Wn=hM;var hn=Kn(),z0=function(n,t,e,r){if(r){var i=hn(r);i.dataIndex=e,i.dataType=t,i.seriesIndex=n,i.ssrType="chart",r.type==="group"&&r.traverse(function(a){var o=hn(a);o.seriesIndex=n,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},_M=1,bM={},CM=Kn(),H0=Kn(),U0=0,Td=1,sp=2,Pi=["emphasis","blur","select"],Dd=["normal","emphasis","blur","select"],Ku=10,DF=9,Sl="highlight",lp="downplay",kd="select",up="unselect",Pd="toggleSelect";function Xu(n){return n!=null&&n!=="none"}function cp(n,t,e){n.onHoverStateChange&&(n.hoverState||0)!==e&&n.onHoverStateChange(t),n.hoverState=e}function MM(n){cp(n,"emphasis",sp)}function TM(n){n.hoverState===sp&&cp(n,"normal",U0)}function G0(n){cp(n,"blur",Td)}function DM(n){n.hoverState===Td&&cp(n,"normal",U0)}function kF(n){n.selected=!0}function PF(n){n.selected=!1}function kM(n,t,e){t(n,e)}function Vo(n,t,e){kM(n,t,e),n.isGroup&&n.traverse(function(r){kM(r,t,e)})}function dp(n,t){switch(t){case"emphasis":n.hoverState=sp;break;case"normal":n.hoverState=U0;break;case"blur":n.hoverState=Td;break;case"select":n.selected=!0}}function Pdt(n){n.isGroup?n.traverse(function(t){t.clearStates()}):n.clearStates()}function AF(n,t,e,r){for(var i=n.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l==null?r&&r[s]:l}for(var o=0;o<n.animators.length;o++){var u=n.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function IF(n,t,e,r){var i=e&&kn(e,"select")>=0,a=!1;if(n instanceof In){var o=CM(n),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Xu(s)||Xu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=ye({},r),u=ye({},u),u.fill=s):!Xu(u.fill)&&Xu(s)?(a=!0,r=ye({},r),u=ye({},u),u.fill=Ym(s)):!Xu(u.stroke)&&Xu(l)&&(a||(r=ye({},r),u=ye({},u)),u.stroke=Ym(l)),r.style=u}}if(r&&r.z2==null){a||(r=ye({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c!=null?c:Ku)}return r}function EF(n,t,e){if(e&&e.z2==null){e=ye({},e);var r=n.z2SelectLift;e.z2=n.z2+(r!=null?r:DF)}return e}function LF(n,t,e){var r=kn(n.currentStates,t)>=0,i=n.style.opacity,a=r?null:AF(n,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=ye({},e),o=ye({opacity:r?i:a.opacity*.1},o),e.style=o),e}function K0(n,t){var e=this.states[n];if(this.style){if(n==="emphasis")return IF(this,n,t,e);if(n==="blur")return LF(this,n,e);if(n==="select")return EF(this,n,e)}return e}function wl(n){n.stateProxy=K0;var t=n.getTextContent(),e=n.getTextGuideLine();t&&(t.stateProxy=K0),e&&(e.stateProxy=K0)}function PM(n,t){!OM(n,t)&&!n.__highByOuter&&Vo(n,MM)}function AM(n,t){!OM(n,t)&&!n.__highByOuter&&Vo(n,TM)}function Wo(n,t){n.__highByOuter|=1<<(t||0),Vo(n,MM)}function Fo(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&Vo(n,TM)}function IM(n){Vo(n,G0)}function X0(n){Vo(n,DM)}function EM(n){Vo(n,kF)}function LM(n){Vo(n,PF)}function OM(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function RM(n){var t=n.getModel(),e=[],r=[];t.eachComponent(function(i,a){var o=H0(a),s=i==="series",l=s?n.getViewOfSeriesModel(a):n.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){DM(u)}),s&&e.push(a)),o.isBlured=!1}),mt(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Y0(n,t,e,r){var i=r.getModel();e=e||"coordinateSystem";function a(u,c){for(var d=0;d<c.length;d++){var h=u.getItemGraphicEl(c[d]);h&&X0(h)}}if(n!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(n),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,d=u.coordinateSystem;d&&d.master&&(d=d.master);var h=d&&s?d===s:c;if(!(e==="series"&&!c||e==="coordinateSystem"&&!h||t==="series"&&c)){var f=r.getViewOfSeriesModel(u);if(f.group.traverse(function(v){v.__highByOuter&&c&&t==="self"||G0(v)}),mi(t))a(u.getData(),t);else if(rn(t))for(var p=Nn(t),g=0;g<p.length;g++)a(u.getData(p[g]),t[p[g]]);l.push(u),H0(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var d=r.getViewOfComponentModel(c);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,i)}})}}function Z0(n,t,e){if(!(n==null||t==null)){var r=e.getModel().getComponent(n,t);if(r){H0(r).isBlured=!0;var i=e.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(a){G0(a)})}}}function OF(n,t,e){var r=n.seriesIndex,i=n.getData(t.dataType);if(i){var a=ul(i,t);a=(Se(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 u=hn(o);Y0(r,u.focus,u.blurScope,e)}else{var c=n.get(["emphasis","focus"]),d=n.get(["emphasis","blurScope"]);c!=null&&Y0(r,c,d,e)}}}function $0(n,t,e,r){var i={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||t==null||e==null)return i;var a=r.getModel().getComponent(n,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(hn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function RF(n,t,e){var r=hn(n),i=$0(r.componentMainType,r.componentIndex,r.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&Z0(r.componentMainType,r.componentIndex,e),mt(a,function(s){return PM(s,t)})):(Y0(r.seriesIndex,r.focus,r.blurScope,e),r.focus==="self"&&Z0(r.componentMainType,r.componentIndex,e),PM(n,t))}function NF(n,t,e){RM(e);var r=hn(n),i=$0(r.componentMainType,r.componentIndex,r.componentHighDownName,e).dispatchers;i?mt(i,function(a){return AM(a,t)}):AM(n,t)}function BF(n,t,e){if(Q0(t)){var r=t.dataType,i=n.getData(r),a=ul(i,t);Se(a)||(a=[a]),n[t.type===Pd?"toggleSelect":t.type===kd?"select":"unselect"](a,r)}}function NM(n){var t=n.getAllData();mt(t,function(e){var r=e.data,i=e.type;r.eachItemGraphicEl(function(a,o){n.isSelected(o,i)?EM(a):LM(a)})})}function VF(n){var t=[];return n.eachSeries(function(e){var r=e.getAllData();mt(r,function(i){var a=i.data,o=i.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function jo(n,t,e){_l(n,!0),Vo(n,wl),J0(n,t,e)}function WF(n){_l(n,!1)}function Er(n,t,e,r){r?WF(n):jo(n,t,e)}function J0(n,t,e){var r=hn(n);t!=null?(r.focus=t,r.blurScope=e):r.focus&&(r.focus=null)}var BM=["emphasis","blur","select"],FF={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ui(n,t,e,r){e=e||"itemStyle";for(var i=0;i<BM.length;i++){var a=BM[i],o=t.getModel([a,e]),s=n.ensureState(a);s.style=r?r(o):o[FF[e]]()}}function _l(n,t){var e=t===!1,r=n;n.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!e||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!e)}function Ad(n){return!!(n&&n.__highDownDispatcher)}function jF(n,t,e){var r=hn(n);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=e}function zF(n){var t=bM[n];return t==null&&_M<=32&&(t=bM[n]=_M++),t}function Q0(n){var t=n.type;return t===kd||t===up||t===Pd}function VM(n){var t=n.type;return t===Sl||t===lp}function HF(n){var t=CM(n);t.normalFill=n.style.fill,t.normalStroke=n.style.stroke;var e=n.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var WM=Kn();function Yu(n,t,e,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,c=void 0,d=void 0;r?(u=pn(r.duration,200),c=pn(r.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(d=a.delay)),qe(d)&&(d=d(e,i)),qe(u)&&(u=u(e));var h={duration:u||0,delay:d,easing:c};return h}else return null}function q0(n,t,e,r,i,a,o){var s=!1,l;qe(i)?(o=a,a=i,i=null):rn(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=n==="leave";u||t.stopAnimation("leave");var c=Yu(n,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var d=c.duration,h=c.delay,f=c.easing,p={duration:d,delay:h||0,easing:f,done:a,force:!!a||!!o,setToFinal:!u,scope:n,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Hn(n,t,e,r,i,a){q0("update",n,t,e,r,i,a)}function _r(n,t,e,r,i,a){q0("enter",n,t,e,r,i,a)}function Zu(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++){var e=n.animators[t];if(e.scope==="leave")return!0}return!1}function ws(n,t,e,r,i,a){Zu(n)||q0("leave",n,t,e,r,i,a)}function FM(n,t,e,r){n.removeTextContent(),n.removeTextGuideLine(),ws(n,{style:{opacity:0}},t,e,r)}function Id(n,t,e){function r(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(i){i.isGroup||FM(i,t,e,r)}):FM(n,t,e,r)}function Na(n){WM(n).oldStyle=n.style}function UF(n){return WM(n).oldStyle}var hp={};function jM(n,t){for(var e=0;e<Pi.length;e++){var r=Pi[e],i=t[r],a=n.ensureState(r);a.style=a.style||{},a.style.text=i}var o=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:t.normal}),n.useStates(o,!0)}function ty(n,t,e){var r=n.labelFetcher,i=n.labelDataIndex,a=n.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=qe(n.defaultText)?n.defaultText(i,n,e):n.defaultText);for(var l={normal:s},u=0;u<Pi.length;u++){var c=Pi[u],d=t[c];l[c]=pn(r?r.getFormattedLabel(i,c,null,a,d&&d.get("formatter")):null,s)}return l}function ci(n,t,e,r){e=e||hp;for(var i=n instanceof Wn,a=!1,o=0;o<Dd.length;o++){var s=t[Dd[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?n:n.getTextContent();if(a){i||(l||(l=new Wn,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=ty(e,t),c=t.normal,d=!!c.getShallow("show"),h=mr(c,r&&r.normal,e,!1,!i);h.text=u.normal,i||n.setTextConfig(fp(c,e,!1));for(var o=0;o<Pi.length;o++){var f=Pi[o],s=t[f];if(s){var p=l.ensureState(f),g=!!pn(s.getShallow("show"),d);if(g!==d&&(p.ignore=!g),p.style=mr(s,r&&r[f],e,!0,!i),p.style.text=u[f],!i){var v=n.ensureState(f);v.textConfig=fp(s,e,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!d,l.useStyle(h),l.dirty(),e.enableTextSetter&&($u(l).setLabelText=function(y){var x=ty(e,t,y);jM(l,x)})}else l&&(l.ignore=!0);n.dirty()}function Qr(n,t){t=t||"label";for(var e={normal:n.getModel(t)},r=0;r<Pi.length;r++){var i=Pi[r];e[i]=n.getModel([i,t])}return e}function mr(n,t,e,r,i){var a={};return GF(a,n,e,r,i),t&&ye(a,t),a}function fp(n,t,e){t=t||{};var r={},i,a=n.getShallow("rotate"),o=pn(n.getShallow("distance"),e?null:5),s=n.getShallow("offset");return i=n.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=n.get("color")==="inherit"?t.inheritColor||null:"auto",r}function GF(n,t,e,r,i){e=e||hp;var a=t.ecModel,o=a&&a.option.textStyle,s=KF(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);GM(l[u]={},c,o,e,r,i,!1,!0)}}l&&(n.rich=l);var d=t.get("overflow");d&&(n.overflow=d);var h=t.get("minMargin");h!=null&&(n.margin=h),GM(n,t,o,e,r,i,!0,!1)}function KF(n){for(var t;n&&n!==n.ecModel;){var e=(n.option||hp).rich;if(e){t=t||{};for(var r=Nn(e),i=0;i<r.length;i++){var a=r[i];t[a]=1}}n=n.parentModel}return t}var zM=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],HM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],UM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function GM(n,t,e,r,i,a,o,s){e=!i&&e||hp;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),d=pn(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||e.color,c=c||e.textBorderColor),u!=null&&(n.fill=u),c!=null&&(n.stroke=c);var h=pn(t.getShallow("textBorderWidth"),e.textBorderWidth);h!=null&&(n.lineWidth=h);var f=pn(t.getShallow("textBorderType"),e.textBorderType);f!=null&&(n.lineDash=f);var p=pn(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(n.lineDashOffset=p),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(n.opacity=d),!i&&!a&&n.fill==null&&r.inheritColor&&(n.fill=r.inheritColor);for(var g=0;g<zM.length;g++){var v=zM[g],y=pn(t.getShallow(v),e[v]);y!=null&&(n[v]=y)}for(var g=0;g<HM.length;g++){var v=HM[g],y=t.getShallow(v);y!=null&&(n[v]=y)}if(n.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(n.verticalAlign=x)}if(!o||!r.disableBox){for(var g=0;g<UM.length;g++){var v=UM[g],y=t.getShallow(v);y!=null&&(n[v]=y)}var S=t.getShallow("borderType");S!=null&&(n.borderDash=S),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(n.borderColor=l)}}function ey(n,t){var e=t&&t.getModel("textStyle");return Ia([n.fontStyle||e&&e.getShallow("fontStyle")||"",n.fontWeight||e&&e.getShallow("fontWeight")||"",(n.fontSize||e&&e.getShallow("fontSize")||12)+"px",n.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var $u=Kn();function KM(n,t,e,r){if(n){var i=$u(n);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function XM(n,t,e,r,i){var a=$u(n);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=pn(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var d=UC(e,a.precision,s,l,c);a.interpolatedValue=c===1?null:d;var h=ty({labelDataIndex:t,labelFetcher:i,defaultText:o?o(d):d+""},a.statesModels,d);jM(n,h)}n.percent=0,(a.prevValue==null?_r:Hn)(n,{percent:1},r,t,null,u)}var XF=["textStyle","color"],ny=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ry=new Wn,YF=function(){function n(){}return n.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(XF):null)},n.prototype.getFont=function(){return ey({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<ny.length;r++)e[ny[r]]=this.getShallow(ny[r]);return ry.useStyle(e),ry.update(),ry.getBoundingRect()},n}();const ZF=YF;var YM=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$F=dl(YM),JF=function(){function n(){}return n.prototype.getLineStyle=function(t){return $F(this,t)},n}(),ZM=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],QF=dl(ZM),qF=function(){function n(){}return n.prototype.getItemStyle=function(t,e){return QF(this,t,e)},n}(),bl=function(){function n(t,e,r){this.parentModel=e,this.ecModel=r,this.option=t}return n.prototype.init=function(t,e,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},n.prototype.mergeOption=function(t,e){Mn(this.option,t,!0)},n.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},n.prototype.getShallow=function(t,e){var r=this.option,i=r==null?r:r[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},n.prototype.getModel=function(t,e){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new n(a,e,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var t=this.constructor;return new t(on(this.option))},n.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},n.prototype.resolveParentPath=function(t){return t},n.prototype.isAnimationEnabled=function(){if(!Zn.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(t,e){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&e&&(r=e._doGet(this.resolveParentPath(t),e.parentModel)),r},n}();C0(bl),RW(bl),Wr(bl,JF),Wr(bl,qF),Wr(bl,FW),Wr(bl,ZF);const pr=bl;var t6=Math.round(Math.random()*10);function Ju(n){return[n||"",t6++].join("_")}function e6(n){var t={};n.registerSubTypeDefaulter=function(e,r){var i=so(e);t[i.main]=r},n.determineSubType=function(e,r){var i=r.type;if(!i){var a=so(e).main;n.hasSubTypes(e)&&t[a]&&(i=t[a](r))}return i}}function n6(n,t){n.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),c=u.graph,d=u.noEntryList,h={};for(mt(a,function(x){h[x]=!0});d.length;){var f=d.pop(),p=c[f],g=!!h[f];g&&(s.call(l,f,p.originalDeps.slice()),delete h[f]),mt(p.successor,g?y:v)}mt(h,function(){var x="";throw new Error(x)});function v(x){c[x].entryCount--,c[x].entryCount===0&&d.push(x)}function y(x){h[x]=!0,v(x)}};function e(a){var o={},s=[];return mt(a,function(l){var u=r(o,l),c=u.originalDeps=t(l),d=i(c,a);u.entryCount=d.length,u.entryCount===0&&s.push(l),mt(d,function(h){kn(u.predecessor,h)<0&&u.predecessor.push(h);var f=r(o,h);kn(f.successor,h)<0&&f.successor.push(l)})}),{graph:o,noEntryList:s}}function r(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return mt(a,function(l){kn(o,l)>=0&&s.push(l)}),s}}function _s(n,t){return Mn(Mn({},n,!0),t,!0)}const r6={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:". "}}}},i6={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var pp="ZH",iy="EN",Qu=iy,gp={},ay={},$M=Zn.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qu).toUpperCase();return n.indexOf(pp)>-1?pp:Qu}():Qu;function JM(n,t){n=n.toUpperCase(),ay[n]=new pr(t),gp[n]=t}function a6(n){if(je(n)){var t=gp[n.toUpperCase()]||{};return n===pp||n===iy?on(t):Mn(on(t),on(gp[Qu]),!1)}else return Mn(on(n),on(gp[Qu]),!1)}function oy(n){return ay[n]}function o6(){return ay[Qu]}JM(iy,r6),JM(pp,i6);var sy=1e3,ly=sy*60,Ed=ly*60,ga=Ed*24,QM=ga*365,Ld={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}"},vp="{yyyy}-{MM}-{dd}",qM={year:"{yyyy}",month:"{yyyy}-{MM}",day:vp,hour:vp+" "+Ld.hour,minute:vp+" "+Ld.minute,second:vp+" "+Ld.second,millisecond:Ld.none},uy=["year","month","day","hour","minute","second","millisecond"],tT=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ai(n,t){return n+="","0000".substr(0,t-n.length)+n}function qu(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function s6(n){return n===qu(n)}function l6(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function mp(n,t,e,r){var i=Ra(n),a=i[cy(e)](),o=i[tc(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[yp(e)](),u=i["get"+(e?"UTC":"")+"Day"](),c=i[Od(e)](),d=(c-1)%12+1,h=i[xp(e)](),f=i[Sp(e)](),p=i[wp(e)](),g=r instanceof pr?r:oy(r||$M)||o6(),v=g.getModel("time"),y=v.get("month"),x=v.get("monthAbbr"),S=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ai(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Ai(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ai(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ai(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ai(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ai(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ai(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Ai(p,3)).replace(/{S}/g,p+"")}function u6(n,t,e,r,i){var a=null;if(je(e))a=e;else if(qe(e))a=e(n.value,t,{level:n.level});else{var o=ye({},Ld);if(n.level>0)for(var s=0;s<uy.length;++s)o[uy[s]]="{primary|"+o[uy[s]]+"}";var l=e?e.inherit===!1?e:nn(e,o):o,u=eT(n.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=tT.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Se(a)){var d=n.level==null?0:n.level>=0?n.level:a.length+n.level;d=Math.min(d,a.length-1),a=a[d]}}return mp(new Date(n.value),a,i,r)}function eT(n,t){var e=Ra(n),r=e[tc(t)]()+1,i=e[yp(t)](),a=e[Od(t)](),o=e[xp(t)](),s=e[Sp(t)](),l=e[wp(t)](),u=l===0,c=u&&s===0,d=c&&o===0,h=d&&a===0,f=h&&i===1,p=f&&r===1;return p?"year":f?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function nT(n,t,e){var r=$n(n)?Ra(n):n;switch(t=t||eT(n,e),t){case"year":return r[cy(e)]();case"half-year":return r[tc(e)]()>=6?1:0;case"quarter":return Math.floor((r[tc(e)]()+1)/4);case"month":return r[tc(e)]();case"day":return r[yp(e)]();case"half-day":return r[Od(e)]()/24;case"hour":return r[Od(e)]();case"minute":return r[xp(e)]();case"second":return r[Sp(e)]();case"millisecond":return r[wp(e)]()}}function cy(n){return n?"getUTCFullYear":"getFullYear"}function tc(n){return n?"getUTCMonth":"getMonth"}function yp(n){return n?"getUTCDate":"getDate"}function Od(n){return n?"getUTCHours":"getHours"}function xp(n){return n?"getUTCMinutes":"getMinutes"}function Sp(n){return n?"getUTCSeconds":"getSeconds"}function wp(n){return n?"getUTCMilliseconds":"getMilliseconds"}function c6(n){return n?"setUTCFullYear":"setFullYear"}function rT(n){return n?"setUTCMonth":"setMonth"}function iT(n){return n?"setUTCDate":"setDate"}function aT(n){return n?"setUTCHours":"setHours"}function oT(n){return n?"setUTCMinutes":"setMinutes"}function sT(n){return n?"setUTCSeconds":"setSeconds"}function lT(n){return n?"setUTCMilliseconds":"setMilliseconds"}function uT(n){if(!LC(n))return je(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cT(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,r){return r.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var ec=wm;function dy(n,t,e){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ia(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=n instanceof Date;if(o||s){var l=o?Ra(n):n;if(isNaN(+l)){if(s)return"-"}else return mp(l,r,e)}if(t==="ordinal")return xm(n)?i(n):$n(n)&&a(n)?n+"":"-";var u=Ro(n);return a(u)?uT(u):xm(n)?i(n):typeof n=="boolean"?n+"":"-"}var dT=["a","b","c","d","e","f","g"],hy=function(n,t){return"{"+n+(t==null?"":t)+"}"};function hT(n,t,e){Se(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=dT[a];n=n.replace(hy(o),hy(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];n=n.replace(hy(dT[l],s),e?ji(u):u)}return n}function d6(n,t,e){return mt(t,function(r,i){n=n.replace("{"+i+"}",e?ji(r):r)}),n}function h6(n,t){var e=je(n)?{color:n,extraCssText:t}:n||{},r=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!r)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ji(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ji(r)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Adt(n,t,e){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n="MM-dd\nyyyy");var r=Ra(t),i=e?"getUTC":"get",a=r[i+"FullYear"](),o=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return n=n.replace("MM",Ai(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Ai(a%100+"",2)).replace("dd",Ai(s,2)).replace("d",s).replace("hh",Ai(l,2)).replace("h",l).replace("mm",Ai(u,2)).replace("m",u).replace("ss",Ai(c,2)).replace("s",c).replace("SSS",Ai(d,3)),n}function f6(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Cl(n,t){return t=t||"transparent",je(n)?n:rn(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function _p(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var bp=mt,fT=["left","right","top","bottom","width","height"],Ml=[["width","left","right"],["height","top","bottom"]];function fy(n,t,e,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),d=t.childAt(u+1),h=d&&d.getBoundingRect(),f,p;if(n==="horizontal"){var g=c.width+(h?-h.x+c.x:0);f=a+g,f>r||l.newline?(a=0,f=g,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var v=c.height+(h?-h.y+c.y:0);p=o+v,p>i||l.newline?(a+=s+e,o=0,p=v,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),n==="horizontal"?a=f+e:o=p+e)})}var Tl=fy,Idt=xn(fy,"vertical"),Edt=xn(fy,"horizontal");function p6(n,t,e){var r=t.width,i=t.height,a=Oe(n.left,r),o=Oe(n.top,i),s=Oe(n.right,r),l=Oe(n.bottom,i);return(isNaN(a)||isNaN(parseFloat(n.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=i),e=ec(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function Xr(n,t,e){e=ec(e||0);var r=t.width,i=t.height,a=Oe(n.left,r),o=Oe(n.top,i),s=Oe(n.right,r),l=Oe(n.bottom,i),u=Oe(n.width,r),c=Oe(n.height,i),d=e[2]+e[0],h=e[1]+e[3],f=n.aspect;switch(isNaN(u)&&(u=r-s-h-a),isNaN(c)&&(c=i-l-d-o),f!=null&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(a)&&(a=r-s-u-h),isNaN(o)&&(o=i-l-c-d),n.left||n.right){case"center":a=r/2-u/2-e[3];break;case"right":a=r-u-h;break}switch(n.top||n.bottom){case"middle":case"center":o=i/2-c/2-e[0];break;case"bottom":o=i-c-d;break}a=a||0,o=o||0,isNaN(u)&&(u=r-h-a-(s||0)),isNaN(c)&&(c=i-d-o-(l||0));var p=new wn(a+e[3],o+e[0],u,c);return p.margin=e,p}function Cp(n,t,e,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||n,a.x=n.x,a.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new wn(0,0,+t.width||0,+t.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=Xr(nn({width:u.width,height:u.height},t),e,r),h=o?d.x-u.x:0,f=s?d.y-u.y:0;return l==="raw"?(a.x=h,a.y=f):(a.x+=h,a.y+=f),a===n&&n.markRedraw(),!0}function g6(n,t){return n[Ml[t][0]]!=null||n[Ml[t][1]]!=null&&n[Ml[t][2]]!=null}function Rd(n){var t=n.layoutMode||n.constructor.layoutMode;return rn(t)?t:t?{type:t}:null}function bs(n,t,e){var r=e&&e.ignoreSize;!Se(r)&&(r=[r,r]);var i=o(Ml[0],0),a=o(Ml[1],1);u(Ml[0],n,i),u(Ml[1],n,a);function o(c,d){var h={},f=0,p={},g=0,v=2;if(bp(c,function(S){p[S]=n[S]}),bp(c,function(S){s(t,S)&&(h[S]=p[S]=t[S]),l(h,S)&&f++,l(p,S)&&g++}),r[d])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(g===v||!f)return p;if(f>=v)return h;for(var y=0;y<c.length;y++){var x=c[y];if(!s(h,x)&&s(n,x)){h[x]=n[x];break}}return h}function s(c,d){return c.hasOwnProperty(d)}function l(c,d){return c[d]!=null&&c[d]!=="auto"}function u(c,d,h){bp(c,function(f){d[f]=h[f]})}}function nc(n){return pT({},n)}function pT(n,t){return t&&n&&bp(fT,function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n}var v6=Kn(),rc=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this,e,r,i)||this;return a.uid=Ju("ec_cpt_model"),a}return t.prototype.init=function(e,r,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,r){var i=Rd(this),a=i?nc(e):{},o=r.getTheme();Mn(e,o.get(this.mainType)),Mn(e,this.getDefaultOption()),i&&bs(e,a,i)},t.prototype.mergeOption=function(e,r){Mn(this.option,e,!0);var i=Rd(this);i&&bs(this.option,e,i)},t.prototype.optionUpdated=function(e,r){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!EW(e))return e.defaultOption;var r=v6(this);if(!r.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Mn(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(e,r){var i=e+"Index",a=e+"Id";return _d(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(pr);KC(rc,pr),qf(rc),e6(rc),n6(rc,m6);function m6(n){var t=[];return mt(rc.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=we(t,function(e){return so(e).main}),n!=="dataset"&&kn(t,"dataset")<=0&&t.unshift("dataset"),t}const Jn=rc;var gT="";typeof navigator<"u"&&(gT=navigator.platform||"");var ic="rgba(0, 0, 0, 0.2)";const y6={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ic,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ic,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ic,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ic,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ic,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ic,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gT.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 vT=Ze(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),va="original",yi="arrayRows",ma="objectRows",fo="keyedColumns",zo="typedArray",mT="unknown",po="column",ac="row",di={Must:1,Might:2,Not:3},yT=Kn();function x6(n){yT(n).datasetMap=Ze()}function xT(n,t,e){var r={},i=gy(t);if(!i||!n)return r;var a=[],o=[],s=t.ecModel,l=yT(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,c,d;n=n.slice(),mt(n,function(g,v){var y=rn(g)?g:n[v]={name:g};y.type==="ordinal"&&c==null&&(c=v,d=p(y)),r[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});mt(n,function(g,v){var y=g.name,x=p(g);if(c==null){var S=h.valueWayDim;f(r[y],S,x),f(o,S,x),h.valueWayDim+=x}else if(c===v)f(r[y],0,x),f(a,0,x);else{var S=h.categoryWayDim;f(r[y],S,x),f(o,S,x),h.categoryWayDim+=x}});function f(g,v,y){for(var x=0;x<y;x++)g.push(v+x)}function p(g){var v=g.dimsDef;return v?v.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function py(n,t,e){var r={},i=gy(n);if(!i)return r;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ma||a===fo)&&mt(o,function(c,d){(rn(c)?c.name:c)==="name"&&(s=d)});var l=function(){for(var c={},d={},h=[],f=0,p=Math.min(5,e);f<p;f++){var g=wT(t.data,a,t.seriesLayoutBy,o,t.startIndex,f);h.push(g);var v=g===di.Not;if(v&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v||!v&&h[c.n]===di.Not)&&(c.n=f),y(c)&&h[c.n]!==di.Not)return c;v||(g===di.Might&&d.v==null&&f!==s&&(d.v=f),(d.n==null||d.n===d.v)&&(d.n=f))}function y(x){return x.v!=null&&x.n!=null}return y(c)?c:y(d)?d:null}();if(l){r.value=[l.v];var u=s!=null?s:l.n;r.itemName=[u],r.seriesName=[u]}return r}function gy(n){var t=n.get("data",!0);if(!t)return _d(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},Kr).models[0]}function S6(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:_d(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},Kr).models}function ST(n,t){return wT(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function wT(n,t,e,r,i,a){var o,s=5;if(Fi(n))return di.Not;var l,u;if(r){var c=r[a];rn(c)?(l=c.name,u=c.type):je(c)&&(l=c)}if(u!=null)return u==="ordinal"?di.Must:di.Not;if(t===yi){var d=n;if(e===ac){for(var h=d[a],f=0;f<(h||[]).length&&f<s;f++)if((o=_(h[i+f]))!=null)return o}else for(var f=0;f<d.length&&f<s;f++){var p=d[i+f];if(p&&(o=_(p[a]))!=null)return o}}else if(t===ma){var g=n;if(!l)return di.Not;for(var f=0;f<g.length&&f<s;f++){var v=g[f];if(v&&(o=_(v[l]))!=null)return o}}else if(t===fo){var y=n;if(!l)return di.Not;var h=y[l];if(!h||Fi(h))return di.Not;for(var f=0;f<h.length&&f<s;f++)if((o=_(h[f]))!=null)return o}else if(t===va)for(var x=n,f=0;f<x.length&&f<s;f++){var v=x[f],S=Uu(v);if(!Se(S))return di.Not;if((o=_(S[a]))!=null)return o}function _(D){var C=je(D);if(D!=null&&isFinite(D)&&D!=="")return C?di.Might:di.Not;if(C&&D!=="-")return di.Must}return di.Not}var vy=Ze();function w6(n,t){Ti(vy.get(n)==null&&t),vy.set(n,t)}function _6(n,t,e){var r=vy.get(t);if(!r)return e;var i=r(n);if(!i)return e;if(0)var a;return e.concat(i)}var _T=Kn(),b6=Kn(),my=function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,r){var i=cr(this.get("color",!0)),a=this.get("colorLayer",!0);return bT(this,_T,i,a,t,e,r)},n.prototype.clearColorPalette=function(){M6(this,_T)},n}();function yy(n,t,e,r){var i=cr(n.get(["aria","decal","decals"]));return bT(n,b6,i,null,t,e,r)}function C6(n,t){for(var e=n.length,r=0;r<e;r++)if(n[r].length>t)return n[r];return n[e-1]}function bT(n,t,e,r,i,a,o){a=a||n;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!r?e:C6(r,o);if(c=c||e,!(!c||!c.length)){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}function M6(n,t){t(n).paletteIdx=0,t(n).paletteNameMap={}}var Mp,Nd,CT,MT="\0_ec_inner",T6=1,D6={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Ldt={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},TT={};function Odt(n){each(n,function(t,e){if(!ComponentModel.hasClass(e)){var r=D6[e];r&&!TT[r]&&(error("Component "+e+" is used but not imported.\nimport { "+r+" } from 'echarts/components';\necharts.use(["+r+"]);"),TT[r]=!0)}})}var DT=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e,r,i,a,o,s){a=a||{},this.option=null,this._theme=new pr(a),this._locale=new pr(o),this._optionManager=s},t.prototype.setOption=function(e,r,i){var a=AT(r);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,r){return this._resetOption(e,AT(r))},t.prototype._resetOption=function(e,r){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?CT(this,o):(this.restoreData(),this._mergeOption(o,r)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&mt(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,r){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Ze(),u=r&&r.replaceMergeMainTypeMap;x6(this),mt(e,function(d,h){d!=null&&(Jn.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?on(d):Mn(i[h],d,!0))}),u&&u.each(function(d,h){Jn.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Jn.topologicalTravel(s,Jn.getAllClassMainTypes(),c,this);function c(d){var h=_6(this,d,cr(e[d])),f=a.get(d),p=f?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=jC(f,h,p);bW(g,d,Jn),i[d]=null,a.set(d,null),o.set(d,0);var v=[],y=[],x=0,S,_;mt(g,function(D,C){var N=D.existing,q=D.newOption;if(!q)N&&(N.mergeOption({},this),N.optionUpdated({},!1));else{var et=d==="series",lt=Jn.getClass(d,D.keyInfo.subType,!et);if(!lt){if(0)var ft,_t;return}if(d==="tooltip"){if(S)return;S=!0}if(N&&N.constructor===lt)N.name=D.keyInfo.name,N.mergeOption(q,this),N.optionUpdated(q,!1);else{var Ct=ye({componentIndex:C},D.keyInfo);N=new lt(q,this,this,Ct),ye(N,Ct),D.brandNew&&(N.__requireNewView=!0),N.init(q,this,this),N.optionUpdated(null,!0)}}N?(v.push(N.option),y.push(N),x++):(v.push(void 0),y.push(void 0))},this),i[d]=v,a.set(d,y),o.set(d,x),d==="series"&&Mp(this)}this._seriesIndices||Mp(this)},t.prototype.getOption=function(){var e=on(this.option);return mt(e,function(r,i){if(Jn.hasClass(i)){for(var a=cr(r),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Sd(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[MT],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,r){var i=this._componentsMap.get(e);if(i){var a=i[r||0];if(a)return a;if(r==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var r=e.mainType;if(!r)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],mt(cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=kT("id",a,s):o!=null?l=kT("name",o,s):l=sr(s,function(u){return!!u}),PT(l,e)},t.prototype.findComponents=function(e){var r=e.query,i=e.mainType,a=s(r),o=a?this.queryComponents(a):sr(this._componentsMap.get(i),function(u){return!!u});return l(PT(o,e));function s(u){var c=i+"Index",d=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[d]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[d],name:u[h]}:null}function l(u){return e.filter?sr(u,e.filter):u}},t.prototype.eachComponent=function(e,r,i){var a=this._componentsMap;if(qe(e)){var o=r,s=e;a.each(function(d,h){for(var f=0;d&&f<d.length;f++){var p=d[f];p&&s.call(o,h,p,p.componentIndex)}})}else for(var l=je(e)?a.get(e):rn(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var r=Zr(e,null);return sr(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return sr(this._componentsMap.get("series"),function(r){return!!r&&r.subType===e})},t.prototype.getSeries=function(){return sr(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,r){Nd(this),mt(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(r,a,i)},this)},t.prototype.eachRawSeries=function(e,r){mt(this._componentsMap.get("series"),function(i){i&&e.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,r,i){Nd(this),mt(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&r.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,r,i){return mt(this.getSeriesByType(e),r,i)},t.prototype.isSeriesFiltered=function(e){return Nd(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,r){Nd(this);var i=[];mt(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(r,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Ze(i)},t.prototype.restoreData=function(e){Mp(this);var r=this._componentsMap,i=[];r.each(function(a,o){Jn.hasClass(o)&&i.push(o)}),Jn.topologicalTravel(i,Jn.getAllClassMainTypes(),function(a){mt(r.get(a),function(o){o&&(a!=="series"||!k6(o,e))&&o.restoreData()})})},t.internalField=function(){Mp=function(e){var r=e._seriesIndices=[];mt(e._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),e._seriesIndicesMap=Ze(r)},Nd=function(e){},CT=function(e,r){e.option={},e.option[MT]=T6,e._componentsMap=Ze({series:[]}),e._componentsCount=Ze();var i=r.aria;rn(i)&&i.enabled==null&&(i.enabled=!0),P6(r,e._theme.option),Mn(r,y6,!1),e._mergeOption(r,null)}}(),t}(pr);function k6(n,t){if(t){var e=t.seriesIndex,r=t.seriesId,i=t.seriesName;return e!=null&&n.componentIndex!==e||r!=null&&n.id!==r||i!=null&&n.name!==i}}function P6(n,t){var e=n.color&&!n.colorLayer;mt(t,function(r,i){i==="colorLayer"&&e||Jn.hasClass(i)||(typeof r=="object"?n[i]=n[i]?Mn(n[i],r,!1):on(r):n[i]==null&&(n[i]=r))})}function kT(n,t,e){if(Se(t)){var r=Ze();return mt(t,function(a){if(a!=null){var o=Zr(a,null);o!=null&&r.set(a,!0)}}),sr(e,function(a){return a&&r.get(a[n])})}else{var i=Zr(t,null);return sr(e,function(a){return a&&i!=null&&a[n]===i})}}function PT(n,t){return t.hasOwnProperty("subType")?sr(n,function(e){return e&&e.subType===t.subType}):n}function AT(n){var t=Ze();return n&&mt(cr(n.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Wr(DT,my);const IT=DT;var A6=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],I6=function(){function n(t){mt(A6,function(e){this[e]=Ge(t[e],t)},this)}return n}();const ET=I6;var xy={},E6=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var r=[];mt(xy,function(i,a){var o=i.create(t,e);r=r.concat(o||[])}),this._coordinateSystems=r},n.prototype.update=function(t,e){mt(this._coordinateSystems,function(r){r.update&&r.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){xy[t]=e},n.get=function(t){return xy[t]},n}();const Bd=E6;var L6=/^(min|max)?(.+)$/,O6=function(){function n(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return n.prototype.setOption=function(t,e,r){t&&(mt(cr(t.series),function(o){o&&o.data&&Fi(o.data)&&bf(o.data)}),mt(cr(t.dataset),function(o){o&&o.source&&Fi(o.source)&&bf(o.source)})),t=on(t);var i=this._optionBackup,a=R6(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},n.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],on(t?e.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(t){var e,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(e=on(r[i.getCurrentIndex()]))}return e},n.prototype.getMediaOption=function(t){var e=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)N6(i[l].query,e,r)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!V6(o,this._currentMediaIndices)&&(s=we(o,function(c){return on(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},n}();function R6(n,t,e){var r=[],i,a,o=n.baseOption,s=n.timeline,l=n.options,u=n.media,c=!!n.media,d=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||c)&&(n.options=n.media=null),a=n),c&&Se(u)&&mt(u,function(f){f&&f.option&&(f.query?r.push(f):i||(i=f))}),h(a),mt(l,function(f){return h(f)}),mt(r,function(f){return h(f.option)});function h(f){mt(t,function(p){p(f,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function N6(n,t,e){var r={width:t,height:e,aspectratio:t/e},i=!0;return mt(n,function(a,o){var s=o.match(L6);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();B6(r[u],a,l)||(i=!1)}}),i}function B6(n,t,e){return e==="min"?n>=t:e==="max"?n<=t:n===t}function V6(n,t){return n.join(",")===t.join(",")}const W6=O6;var Ba=mt,Vd=rn,LT=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sy(n){var t=n&&n.itemStyle;if(t)for(var e=0,r=LT.length;e<r;e++){var i=LT[e],a=t.normal,o=t.emphasis;a&&a[i]&&(n[i]=n[i]||{},n[i].normal?Mn(n[i].normal,a[i]):n[i].normal=a[i],a[i]=null),o&&o[i]&&(n[i]=n[i]||{},n[i].emphasis?Mn(n[i].emphasis,o[i]):n[i].emphasis=o[i],o[i]=null)}}function xi(n,t,e){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var r=n[t].normal,i=n[t].emphasis;r&&(e?(n[t].normal=n[t].emphasis=null,nn(n[t],r)):n[t]=r),i&&(n.emphasis=n.emphasis||{},n.emphasis[t]=i,i.focus&&(n.emphasis.focus=i.focus),i.blurScope&&(n.emphasis.blurScope=i.blurScope))}}function Wd(n){xi(n,"itemStyle"),xi(n,"lineStyle"),xi(n,"areaStyle"),xi(n,"label"),xi(n,"labelLine"),xi(n,"upperLabel"),xi(n,"edgeLabel")}function Yr(n,t){var e=Vd(n)&&n[t],r=Vd(e)&&e.textStyle;if(r)for(var i=0,a=FC.length;i<a;i++){var o=FC[i];r.hasOwnProperty(o)&&(e[o]=r[o])}}function ya(n){n&&(Wd(n),Yr(n,"label"),n.emphasis&&Yr(n.emphasis,"label"))}function F6(n){if(Vd(n)){Sy(n),Wd(n),Yr(n,"label"),Yr(n,"upperLabel"),Yr(n,"edgeLabel"),n.emphasis&&(Yr(n.emphasis,"label"),Yr(n.emphasis,"upperLabel"),Yr(n.emphasis,"edgeLabel"));var t=n.markPoint;t&&(Sy(t),ya(t));var e=n.markLine;e&&(Sy(e),ya(e));var r=n.markArea;r&&ya(r);var i=n.data;if(n.type==="graph"){i=i||n.nodes;var a=n.links||n.edges;if(a&&!Fi(a))for(var o=0;o<a.length;o++)ya(a[o]);mt(n.categories,function(u){Wd(u)})}if(i&&!Fi(i))for(var o=0;o<i.length;o++)ya(i[o]);if(t=n.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ya(s[o]);if(e=n.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Se(l[o])?(ya(l[o][0]),ya(l[o][1])):ya(l[o]);n.type==="gauge"?(Yr(n,"axisLabel"),Yr(n,"title"),Yr(n,"detail")):n.type==="treemap"?(xi(n.breadcrumb,"itemStyle"),mt(n.levels,function(u){Wd(u)})):n.type==="tree"&&Wd(n.leaves)}}function Ho(n){return Se(n)?n:n?[n]:[]}function OT(n){return(Se(n)?n[0]:n)||{}}function j6(n,t){Ba(Ho(n.series),function(r){Vd(r)&&F6(r)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ba(e,function(r){Ba(Ho(n[r]),function(i){i&&(Yr(i,"axisLabel"),Yr(i.axisPointer,"label"))})}),Ba(Ho(n.parallel),function(r){var i=r&&r.parallelAxisDefault;Yr(i,"axisLabel"),Yr(i&&i.axisPointer,"label")}),Ba(Ho(n.calendar),function(r){xi(r,"itemStyle"),Yr(r,"dayLabel"),Yr(r,"monthLabel"),Yr(r,"yearLabel")}),Ba(Ho(n.radar),function(r){Yr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Ba(Ho(n.geo),function(r){Vd(r)&&(ya(r),Ba(Ho(r.regions),function(i){ya(i)}))}),Ba(Ho(n.timeline),function(r){ya(r),xi(r,"label"),xi(r,"itemStyle"),xi(r,"controlStyle",!0);var i=r.data;Se(i)&&mt(i,function(a){rn(a)&&(xi(a,"label"),xi(a,"itemStyle"))})}),Ba(Ho(n.toolbox),function(r){xi(r,"iconStyle"),Ba(r.feature,function(i){xi(i,"iconStyle")})}),Yr(OT(n.axisPointer),"label"),Yr(OT(n.tooltip).axisPointer,"label")}function z6(n,t){for(var e=t.split(","),r=n,i=0;i<e.length&&(r=r&&r[e[i]],r!=null);i++);return r}function H6(n,t,e,r){for(var i=t.split(","),a=n,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=e)}function RT(n){n&&mt(U6,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}var U6=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],G6=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wy=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Fd(n){var t=n&&n.itemStyle;if(t)for(var e=0;e<wy.length;e++){var r=wy[e][1],i=wy[e][0];t[r]!=null&&(t[i]=t[r])}}function NT(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function BT(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function K6(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(n.emphasis.focus="adjacency"))}function VT(n,t){if(n)for(var e=0;e<n.length;e++)t(n[e]),n[e]&&VT(n[e].children,t)}function WT(n,t){j6(n,t),n.series=cr(n.series),mt(n.series,function(e){if(rn(e)){var r=e.type;if(r==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(r==="pie"||r==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),NT(e.label);var i=e.data;if(i&&!Fi(i))for(var a=0;a<i.length;a++)NT(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(r==="gauge"){var o=z6(e,"pointer.color");o!=null&&H6(e,"itemStyle.color",o)}else if(r==="bar"){Fd(e),Fd(e.backgroundStyle),Fd(e.emphasis);var i=e.data;if(i&&!Fi(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Fd(i[a]),Fd(i[a]&&i[a].emphasis))}else if(r==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),BT(e),VT(e.data,BT)}else r==="graph"||r==="sankey"?K6(e):r==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nn(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),RT(e)}}),n.dataRange&&(n.visualMap=n.dataRange),mt(G6,function(e){var r=n[e];r&&(Se(r)||(r=[r]),mt(r,function(i){RT(i)}))})}function X6(n){var t=Ze();n.eachSeries(function(e){var r=e.get("stack");if(r){var i=t.get(r)||t.set(r,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(Y6)}function Y6(n){mt(n,function(t,e){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(u,c,d){var h=o.get(t.stackedDimension,d);if(isNaN(h))return i;var f,p;s?p=o.getRawIndex(d):f=o.get(t.stackedByDimension,d);for(var g=NaN,v=e-1;v>=0;v--){var y=n[v];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,f)),p>=0){var x=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&x>0||l==="negative"&&x<0||l==="samesign"&&h>=0&&x>0||l==="samesign"&&h<=0&&x<0){h=hW(h,x),g=x;break}}}return r[0]=h,r[1]=g,r})})}var Tp=function(){function n(t){this.data=t.data||(t.sourceFormat===fo?{}:[]),this.sourceFormat=t.sourceFormat||mT,this.seriesLayoutBy=t.seriesLayoutBy||po,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var r=0;r<e.length;r++){var i=e[r];i.type==null&&ST(this,r)===di.Must&&(i.type="ordinal")}}return n}();function _y(n){return n instanceof Tp}function by(n,t,e){e=e||FT(n);var r=t.seriesLayoutBy,i=$6(n,e,r,t.sourceHeader,t.dimensions),a=new Tp({data:n,sourceFormat:e,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:on(t)});return a}function Cy(n){return new Tp({data:n,sourceFormat:Fi(n)?zo:va})}function Z6(n){return new Tp({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:on(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function FT(n){var t=mT;if(Fi(n))t=zo;else if(Se(n)){n.length===0&&(t=yi);for(var e=0,r=n.length;e<r;e++){var i=n[e];if(i!=null){if(Se(i)||Fi(i)){t=yi;break}else if(rn(i)){t=ma;break}}}}else if(rn(n)){for(var a in n)if(Xe(n,a)&&mi(n[a])){t=fo;break}}return t}function $6(n,t,e,r,i){var a,o;if(!n)return{dimensionsDefine:jT(i),startIndex:o,dimensionsDetectedCount:a};if(t===yi){var s=n;r==="auto"||r==null?zT(function(u){u!=null&&u!=="-"&&(je(u)?o==null&&(o=1):o=0)},e,s,10):o=$n(r)?r:r?1:0,!i&&o===1&&(i=[],zT(function(u,c){i[c]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===ac?s.length:s[0]?s[0].length:null}else if(t===ma)i||(i=J6(n));else if(t===fo)i||(i=[],mt(n,function(u,c){i.push(c)}));else if(t===va){var l=Uu(n[0]);a=Se(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jT(i),dimensionsDetectedCount:a}}function J6(n){for(var t=0,e;t<n.length&&!(e=n[t++]););if(e)return Nn(e)}function jT(n){if(n){var t=Ze();return we(n,function(e,r){e=rn(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function zT(n,t,e,r){if(t===ac)for(var i=0;i<e.length&&i<r;i++)n(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<r;i++)n(a[i],i)}function HT(n){var t=n.sourceFormat;return t===ma||t===fo}var Dl,kl,Pl,UT,GT,KT=function(){function n(t,e){var r=_y(t)?t:Cy(t);this._source=r;var i=this._data=r.data;r.sourceFormat===zo&&(this._offset=0,this._dimSize=e,this._data=i),GT(this,i,r)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(t,e){},n.prototype.appendData=function(t){},n.prototype.clean=function(){},n.protoInitialize=function(){var t=n.prototype;t.pure=!1,t.persistent=!0}(),n.internalField=function(){var t;GT=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,d=l.startIndex,h=l.dimensionsDefine,f=UT[Ty(u,c)];if(ye(o,f),u===zo)o.getItem=e,o.count=i,o.fillStorage=r;else{var p=YT(u,c);o.getItem=Ge(p,null,s,d,h);var g=$T(u,c);o.count=Ge(g,null,s,d,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,d=0;d<u;d++)s[d]=l[c+d];return s},r=function(o,s,l,u){for(var c=this._data,d=this._dimSize,h=0;h<d;h++){for(var f=u[h],p=f[0]==null?1/0:f[0],g=f[1]==null?-1/0:f[1],v=s-o,y=l[h],x=0;x<v;x++){var S=c[x*d+h];y[o+x]=S,S<p&&(p=S),S>g&&(g=S)}f[0]=p,f[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};UT=(t={},t[yi+"_"+po]={pure:!0,appendData:a},t[yi+"_"+ac]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ma]={pure:!0,appendData:a},t[fo]={pure:!0,appendData:function(o){var s=this._data;mt(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},t[va]={appendData:a},t[zo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),n}(),XT=function(n,t,e,r){return n[r]},Q6=(Dl={},Dl[yi+"_"+po]=function(n,t,e,r){return n[r+t]},Dl[yi+"_"+ac]=function(n,t,e,r,i){r+=t;for(var a=i||[],o=n,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},Dl[ma]=XT,Dl[fo]=function(n,t,e,r,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=n[s];a[o]=l?l[r]:null}return a},Dl[va]=XT,Dl);function YT(n,t){var e=Q6[Ty(n,t)];return e}var ZT=function(n,t,e){return n.length},q6=(kl={},kl[yi+"_"+po]=function(n,t,e){return Math.max(0,n.length-t)},kl[yi+"_"+ac]=function(n,t,e){var r=n[0];return r?Math.max(0,r.length-t):0},kl[ma]=ZT,kl[fo]=function(n,t,e){var r=e[0].name,i=n[r];return i?i.length:0},kl[va]=ZT,kl);function $T(n,t){var e=q6[Ty(n,t)];return e}var My=function(n,t,e){return n[t]},tj=(Pl={},Pl[yi]=My,Pl[ma]=function(n,t,e){return n[e]},Pl[fo]=My,Pl[va]=function(n,t,e){var r=Uu(n);return r instanceof Array?r[t]:r},Pl[zo]=My,Pl);function JT(n){var t=tj[n];return t}function Ty(n,t){return n===yi?n+"_"+t:n}function oc(n,t,e){if(n){var r=n.getRawDataItem(t);if(r!=null){var i=n.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=n.getDimensionIndex(e),s=i.getDimensionProperty(o);return JT(a)(r,o,s)}else{var l=r;return a===va&&(l=Uu(r)),l}}}}function Rdt(n,t,e){if(n){var r=n.getStore().getSource().sourceFormat;if(!(r!==SOURCE_FORMAT_ORIGINAL&&r!==SOURCE_FORMAT_OBJECT_ROWS)){var i=n.getRawDataItem(t);if(r===SOURCE_FORMAT_ORIGINAL&&!isObject(i)&&(i=null),i)return i[e]}}}var ej=/\{@(.+?)\}/g,Dy=function(){function n(){}return n.prototype.getDataParams=function(t,e){var r=this.getData(e),i=this.getRawValue(t,e),a=r.getRawIndex(t),o=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,d=this.mainType,h=d==="series",f=r.userOutput&&r.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,r,i,a,o){e=e||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(o&&(l.value=o.interpolatedValue),i!=null&&Se(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(qe(a))return l.status=e,l.dimensionIndex=i,a(l);if(je(a)){var c=hT(a,l);return c.replace(ej,function(d,h){var f=h.length,p=h;p.charAt(0)==="["&&p.charAt(f-1)==="]"&&(p=+p.slice(1,f-1));var g=oc(s,t,p);if(o&&Se(o.interpolatedValue)){var v=s.getDimensionIndex(p);v>=0&&(g=o.interpolatedValue[v])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(t,e){return oc(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,r){},n}();function QT(n){var t,e;return rn(n)?n.type&&(e=n):t=n,{text:t,frag:e}}function jd(n){return new nj(n)}var nj=function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e=this._upstream,r=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(x){return!(x>=1)&&(x=1),x}var d;(this._dirty||a==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(d||f<p)){var g=this._progress;if(Se(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,p,l,u);else this._doProgress(g,f,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,r,i,a){qT.reset(e,r,i,a),this._callingProgress=t,this._callingProgress({start:e,end:r,count:r-e,next:qT.next},this.context)},n.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,r;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(r=e.forceFirstProgress,e=e.progress),Se(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},n}(),qT=function(){var n,t,e,r,i,a={reset:function(l,u,c,d){t=l,n=u,e=c,r=d,i=Math.ceil(r/e),a.next=e>1&&r>0?s:o}};return a;function o(){return t<n?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=n?null:l<r?l:t;return t++,u}}(),rj="[ECharts] ",tD={},ij=typeof console<"u"&&console.warn&&console.log;function ky(n,t,e){if(ij){if(e){if(tD[t])return;tD[t]=!0}console[n](rj+t)}}function Ndt(n,t){ky("log",n,t)}function aj(n,t){ky("warn",n,t)}function Bdt(n,t){ky("error",n,t)}function Vdt(n){}function Wdt(n,t,e){}function Fdt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e="";if(0)var r;return e}function er(n){throw new Error(n)}function Cs(n,t){var e=t&&t.type;return e==="ordinal"?n:(e==="time"&&!$n(n)&&n!=null&&n!=="-"&&(n=+Ra(n)),n==null||n===""?NaN:+n)}var oj=Ze({number:function(n){return parseFloat(n)},time:function(n){return+Ra(n)},trim:function(n){return je(n)?Ia(n):n}});function eD(n){return oj.get(n)}var nD={lt:function(n,t){return n<t},lte:function(n,t){return n<=t},gt:function(n,t){return n>t},gte:function(n,t){return n>=t}},sj=function(){function n(t,e){if(!$n(e)){var r="";er(r)}this._opFn=nD[t],this._rvalFloat=Ro(e)}return n.prototype.evaluate=function(t){return $n(t)?this._opFn(t,this._rvalFloat):this._opFn(Ro(t),this._rvalFloat)},n}(),rD=function(){function n(t,e){var r=t==="desc";this._resultLT=r?1:-1,e==null&&(e=r?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return n.prototype.evaluate=function(t,e){var r=$n(t)?t:Ro(t),i=$n(e)?e:Ro(e),a=isNaN(r),o=isNaN(i);if(a&&(r=this._incomparable),o&&(i=this._incomparable),a&&o){var s=je(t),l=je(e);s&&(r=l?t:0),l&&(i=s?e:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},n}(),lj=function(){function n(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ro(e)}return n.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(e=Ro(t)===this._rvalFloat)}return this._isEQ?e:!e},n}();function uj(n,t){return n==="eq"||n==="ne"?new lj(n==="eq",t):Xe(nD,n)?new sj(n,t):null}var cj=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return Cs(t,e)},n}();function dj(n,t){var e=new cj,r=n.data,i=e.sourceFormat=n.sourceFormat,a=n.startIndex,o="";n.seriesLayoutBy!==po&&er(o);var s=[],l={},u=n.dimensionsDefine;if(u)mt(u,function(g,v){var y=g.name,x={index:v,name:y,displayName:g.displayName};if(s.push(x),y!=null){var S="";Xe(l,y)&&er(S),l[y]=x}});else for(var c=0;c<n.dimensionsDetectedCount;c++)s.push({index:c});var d=YT(i,po);t.__isBuiltIn&&(e.getRawDataItem=function(g){return d(r,a,s,g)},e.getRawData=Ge(hj,null,n)),e.cloneRawData=Ge(fj,null,n);var h=$T(i,po);e.count=Ge(h,null,r,a,s);var f=JT(i);e.retrieveValue=function(g,v){var y=d(r,a,s,g);return p(y,v)};var p=e.retrieveValueFromItem=function(g,v){if(g!=null){var y=s[v];if(y)return f(g,v,y.name)}};return e.getDimensionInfo=Ge(pj,null,s,l),e.cloneAllDimensionInfo=Ge(gj,null,s),e}function hj(n){var t=n.sourceFormat;if(!Py(t)){var e="";er(e)}return n.data}function fj(n){var t=n.sourceFormat,e=n.data;if(!Py(t)){var r="";er(r)}if(t===yi){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===ma){for(var i=[],a=0,o=e.length;a<o;a++)i.push(ye({},e[a]));return i}}function pj(n,t,e){if(e!=null){if($n(e)||!isNaN(e)&&!Xe(t,e))return n[e];if(Xe(t,e))return t[e]}}function gj(n){return on(n)}var iD=Ze();function vj(n){n=on(n);var t=n.type,e="";t||er(e);var r=t.split(":");r.length!==2&&er(e);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),n.__isBuiltIn=i,iD.set(t,n)}function mj(n,t,e){var r=cr(n),i=r.length,a="";i||er(a);for(var o=0,s=i;o<s;o++){var l=r[o];t=yj(l,t,e,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function yj(n,t,e,r){var i="";t.length||er(i),rn(n)||er(i);var a=n.type,o=iD.get(a);o||er(i);var s=we(t,function(c){return dj(c,o)}),l=cr(o.transform({upstream:s[0],upstreamList:s,config:on(n.config)}));if(0)var u;return we(l,function(c,d){var h="";rn(c)||er(h),c.data||er(h);var f=FT(c.data);Py(f)||er(h);var p,g=t[0];if(g&&d===0&&!c.dimensions){var v=g.startIndex;v&&(c.data=g.data.slice(0,v).concat(c.data)),p={seriesLayoutBy:po,sourceHeader:v,dimensions:g.metaRawOption.dimensions}}else p={seriesLayoutBy:po,sourceHeader:0,dimensions:c.dimensions};return by(c.data,p,null)})}function Py(n){return n===yi||n===ma}var Dp="undefined",xj=typeof Uint32Array===Dp?Array:Uint32Array,Sj=typeof Uint16Array===Dp?Array:Uint16Array,aD=typeof Int32Array===Dp?Array:Int32Array,oD=typeof Float64Array===Dp?Array:Float64Array,sD={float:oD,int:aD,ordinal:Array,number:Array,time:oD},Ay;function zd(n){return n>65535?xj:Sj}function sc(){return[1/0,-1/0]}function wj(n){var t=n.constructor;return t===Array?n.slice():new t(n)}function lD(n,t,e,r,i){var a=sD[e||"float"];if(i){var o=n[t],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];n[t]=l}}else n[t]=new a(r)}var _j=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ze()}return n.prototype.initData=function(t,e,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Ay[i.sourceFormat];this._dimValueGetter=r||a,this._rawExtent=[];var o=HT(i);this._dimensions=we(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(t,e){var r=this._calcDimNameToIdx,i=this._dimensions,a=r.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},r.set(t,a),this._chunks[a]=new sD[e||"float"](this._rawCount),this._rawExtent[a]=sc(),a},n.prototype.collectOrdinalMeta=function(t,e){var r=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=r.length;o===0&&(a[t]=sc());for(var l=a[t],u=o;u<s;u++){var c=r[u]=e.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},n.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],r=e.ordinalMeta;return r},n.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},n.prototype.appendData=function(t){var e=this._provider,r=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},n.prototype.appendValues=function(t,e){for(var r=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var c=i[u];lD(r,u,c.type,l,!0)}for(var d=[],h=s;h<l;h++)for(var f=h-s,p=0;p<a;p++){var c=i[p],g=Ay.arrayRows.call(this,t[f]||d,c.property,f,p);r[p][h]=g;var v=o[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=we(o,function(x){return x.property}),c=0;c<s;c++){var d=o[c];l[c]||(l[c]=sc()),lD(a,c,d.type,e,r)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var h=[],f=t;f<e;f++){h=i.getItem(f,h);for(var p=0;p<s;p++){var g=a[p],v=this._dimValueGetter(h,u[p],f,p);g[f]=v;var y=l[p];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(e)]:NaN},n.prototype.getValues=function(t,e){var r=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)r.push(this.get(i[a],e));return r},n.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var r=this._chunks[t];return r?r[e]:NaN},n.prototype.getSum=function(t){var e=this._chunks[t],r=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(r+=o)}return r},n.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var r=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},n.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,r=e[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(t,e,r){var i=this._chunks,a=i[t],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c<d;c++){var h=this.getRawIndex(c),f=e-a[h],p=Math.abs(f);p<=r&&((p<s||p===s&&f>=0&&l<0)&&(s=p,l=f,u=0),f===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var r=e.constructor,i=this._count;if(r===Array){t=new r(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new r(e.buffer,0,i)}else{var r=zd(this._rawCount);t=new r(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},n.prototype.filter=function(t,e){if(!this._count)return this;for(var r=this.clone(),i=r.count(),a=zd(r._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],d=r._chunks,h=0;h<i;h++){var f=void 0,p=r.getRawIndex(h);if(l===0)f=e(h);else if(l===1){var g=d[c][p];f=e(g,h)}else{for(var v=0;v<l;v++)s[v]=d[t[v]][p];s[v]=h,f=e.apply(null,s)}f&&(o[u++]=p)}return u<i&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},n.prototype.selectRange=function(t){var e=this.clone(),r=e._count;if(!r)return this;var i=Nn(t),a=i.length;if(!a)return this;var o=e.count(),s=zd(e._rawCount),l=new s(o),u=0,c=i[0],d=t[c][0],h=t[c][1],f=e._chunks,p=!1;if(!e._indices){var g=0;if(a===1){for(var v=f[i[0]],y=0;y<r;y++){var x=v[y];(x>=d&&x<=h||isNaN(x))&&(l[u++]=g),g++}p=!0}else if(a===2){for(var v=f[i[0]],S=f[i[1]],_=t[i[1]][0],D=t[i[1]][1],y=0;y<r;y++){var x=v[y],C=S[y];(x>=d&&x<=h||isNaN(x))&&(C>=_&&C<=D||isNaN(C))&&(l[u++]=g),g++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var N=e.getRawIndex(y),x=f[i[0]][N];(x>=d&&x<=h||isNaN(x))&&(l[u++]=N)}else for(var y=0;y<o;y++){for(var q=!0,N=e.getRawIndex(y),et=0;et<a;et++){var lt=i[et],x=f[lt][N];(x<t[lt][0]||x>t[lt][1])&&(q=!1)}q&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},n.prototype.map=function(t,e){var r=this.clone(t);return this._updateDims(r,t,e),r},n.prototype.modify=function(t,e){this._updateDims(this,t,e)},n.prototype._updateDims=function(t,e,r){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<e.length;c++)u[e[c]]=sc();for(var d=0;d<s;d++){for(var h=t.getRawIndex(d),f=0;f<o;f++)l[f]=i[e[f]][h];l[o]=d;var p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var c=0;c<p.length;c++){var g=e[c],v=p[c],y=u[g],x=i[g];x&&(x[h]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},n.prototype.lttbDownSample=function(t,e){var r=this.clone([t],!0),i=r._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),c,d,h,f=new(zd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));f[s++]=u;for(var p=1;p<o-1;p+=l){for(var g=Math.min(p+l,o-1),v=Math.min(p+l*2,o),y=(v+g)/2,x=0,S=g;S<v;S++){var _=this.getRawIndex(S),D=a[_];isNaN(D)||(x+=D)}x/=v-g;var C=p,N=Math.min(p+l,o),q=p-1,et=a[u];c=-1,h=C;for(var lt=-1,ft=0,S=C;S<N;S++){var _=this.getRawIndex(S),D=a[_];if(isNaN(D)){ft++,lt<0&&(lt=_);continue}d=Math.abs((q-y)*(D-et)-(q-S)*(x-et)),d>c&&(c=d,h=_)}ft>0&&ft<N-C&&(f[s++]=Math.min(lt,h),h=Math.max(lt,h)),f[s++]=h,u=h}return f[s++]=this.getRawIndex(o-1),r._count=s,r._indices=f,r.getRawIndex=this._getRawIdx,r},n.prototype.downSample=function(t,e,r,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],c=this.count(),d=a._rawExtent[t]=sc(),h=new(zd(this._rawCount))(Math.ceil(c/l)),f=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(p+g);s[g]=u[v]}var y=r(s),x=this.getRawIndex(Math.min(p+i(s,y)||0,c-1));u[x]=y,y<d[0]&&(d[0]=y),y>d[1]&&(d[1]=y),h[f++]=x}return a._count=f,a._indices=h,a._updateGetRawIdx(),a},n.prototype.each=function(t,e){if(this._count)for(var r=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(r){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},n.prototype.getDataExtent=function(t){var e=this._chunks[t],r=sc();if(!e)return r;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),d=e[c];d<s&&(s=d),d>l&&(l=d)}return o=[s,l],this._extent[t]=o,o},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var r=[],i=this._chunks,a=0;a<i.length;a++)r.push(i[a][e]);return r},n.prototype.clone=function(t,e){var r=new n,i=this._chunks,a=t&&to(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?wj(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},n.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=on(this._extent),t._rawExtent=on(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var r=this._indices.length;e=new t(r);for(var i=0;i<r;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},n.prototype._getRawIdxIdentity=function(t){return t},n.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,r,i,a){return Cs(e[a],this._dimensions[a])}Ay={arrayRows:t,objectRows:function(e,r,i,a){return Cs(e[r],this._dimensions[a])},keyedColumns:t,original:function(e,r,i,a){var o=e&&(e.value==null?e:e.value);return Cs(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,r,i,a){return e[a]}}}(),n}();const Iy=_j;var uD=function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),r=!!e.length,i,a;if(kp(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=e[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Fi(s)?zo:va,a=[];var d=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},f=pn(d.seriesLayoutBy,h.seriesLayoutBy)||null,p=pn(d.sourceHeader,h.sourceHeader),g=pn(d.dimensions,h.dimensions),v=f!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||g;i=v?[by(s,{seriesLayoutBy:f,sourceHeader:p,dimensions:g},l)]:[]}else{var y=t;if(r){var x=this._applyTransform(e);i=x.sourceList,a=x.upstreamSignList}else{var S=y.get("source",!0);i=[by(S,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},n.prototype._applyTransform=function(t){var e=this._sourceHost,r=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&dD(a)}var o,s=[],l=[];return mt(t,function(u){u.prepareSource();var c=u.getSource(i||0),d="";i!=null&&!c&&dD(d),s.push(c),l.push(u._getVersionSign())}),r?o=mj(r,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[Z6(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var r=t[e];if(r._isDirty()||this._upstreamSignList[e]!==r._getVersionSign())return!0}},n.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return e},n.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},n.prototype._innerGetDataStore=function(t,e,r){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];kp(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,r):(s=new Iy,s.initData(new KT(e,t.length),t)),o[r]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(kp(t)){var e=gy(t);return e?[e.getSourceManager()]:[]}else return we(S6(t),function(r){return r.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,r,i;if(kp(t))e=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),r=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:r,dimensions:i}},n}();function cD(n){var t=n.option.transform;t&&bf(n.option.transform)}function kp(n){return n.mainType==="series"}function dD(n){throw new Error(n)}var hD="line-height:1";function fD(n,t){var e=n.color||"#6e7079",r=n.fontSize||12,i=n.fontWeight||"400",a=n.color||"#464646",o=n.fontSize||14,s=n.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ji(r+"")+"px;color:"+ji(e)+";font-weight:"+ji(i+""),valueStyle:"font-size:"+ji(o+"")+"px;color:"+ji(a)+";font-weight:"+ji(s+"")}:{nameStyle:{fontSize:r,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var bj=[0,10,20,30],Cj=["","\n","\n\n","\n\n\n"];function qr(n,t){return t.type=n,t}function Ey(n){return n.type==="section"}function pD(n){return Ey(n)?Mj:Tj}function gD(n){if(Ey(n)){var t=0,e=n.blocks.length,r=e>1||e>0&&!n.noHeader;return mt(n.blocks,function(i){var a=gD(i);a>=t&&(t=a+ +(r&&(!a||Ey(i)&&!i.noHeader)))}),t}return 0}function Mj(n,t,e,r){var i=t.noHeader,a=Dj(gD(t)),o=[],s=t.blocks||[];Ti(!s||Se(s)),s=s||[];var l=n.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Xe(u,l)){var c=new rD(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}mt(s,function(p,g){var v=t.valueFormatter,y=pD(p)(v?ye(ye({},n),{valueFormatter:v}):n,p,g>0?a.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(a.richText):Ly(o.join(""),i?e:a.html);if(i)return d;var h=dy(t.header,"ordinal",n.useUTC),f=fD(r,n.renderMode).nameStyle;return n.renderMode==="richText"?mD(n,h,f)+a.richText+d:Ly('<div style="'+f+";"+hD+';">'+ji(h)+"</div>"+d,e)}function Tj(n,t,e,r){var i=n.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=n.useUTC,c=t.valueFormatter||n.valueFormatter||function(_){return _=Se(_)?_:[_],we(_,function(D,C){return dy(D,Se(f)?f[C]:f,u)})};if(!(a&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":dy(l,"ordinal",u),f=t.valueType,p=o?[]:c(t.value,t.dataIndex),g=!s||!a,v=!s&&a,y=fD(r,i),x=y.nameStyle,S=y.valueStyle;return i==="richText"?(s?"":d)+(a?"":mD(n,h,x))+(o?"":Aj(n,p,g,v,S)):Ly((s?"":d)+(a?"":kj(h,!s,x))+(o?"":Pj(p,g,v,S)),e)}}function vD(n,t,e,r,i,a){if(n){var o=pD(n),s={useUTC:i,renderMode:e,orderMode:r,markupStyleCreator:t,valueFormatter:n.valueFormatter};return o(s,n,0,a)}}function Dj(n){return{html:bj[n],richText:Cj[n]}}function Ly(n,t){var e='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+hD+';">'+n+e+"</div>"}function kj(n,t,e){var r=t?"margin-left:2px":"";return'<span style="'+e+";"+r+'">'+ji(n)+"</span>"}function Pj(n,t,e,r){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return n=Se(n)?n:[n],'<span style="'+a+";"+r+'">'+we(n,function(o){return ji(o)}).join("&nbsp;&nbsp;")+"</span>"}function mD(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function Aj(n,t,e,r,i){var a=[i],o=r?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(Se(t)?t.join(" "):t,a)}function yD(n,t){var e=n.getData().getItemVisual(t,"style"),r=e[n.visualDrawType];return Cl(r)}function xD(n,t){var e=n.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Oy=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OC()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,r){var i=r==="richText"?this._generateStyleName():null,a=h6({color:e,type:t,renderMode:r,markerId:i});return je(a)?a:(this.richTextStyles[i]=a.style,a.content)},n.prototype.wrapRichTextStyle=function(t,e){var r={};Se(e)?mt(e,function(a){return ye(r,a)}):ye(r,e);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},n}();function SD(n){var t=n.series,e=n.dataIndex,r=n.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=Se(s),u=yD(t,e),c,d,h,f;if(o>1||l&&!o){var p=Ij(s,t,e,a,u);c=p.inlineValues,d=p.inlineValueTypes,h=p.blocks,f=p.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);f=c=oc(i,e,a[0]),d=g.type}else f=c=l?s[0]:s;var v=w0(t),y=v&&t.name||"",x=i.getName(e),S=r?y:x;return qr("section",{header:y,noHeader:r||!v,sortParam:f,blocks:[qr("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Ia(S),value:c,valueType:d,dataIndex:e})].concat(h||[])})}function Ij(n,t,e,r,i){var a=t.getData(),o=to(n,function(d,h,f){var p=a.getDimensionInfo(f);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?mt(r,function(d){c(oc(a,e,d),d)}):mt(n,c);function c(d,h){var f=a.getDimensionInfo(h);!f||f.otherDims.tooltip===!1||(o?u.push(qr("nameValue",{markerType:"subItem",markerColor:i,name:f.displayName,value:d,valueType:f.type})):(s.push(d),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ms=Kn();function Pp(n,t){return n.getName(t)||n.getId(t)}var Ap="__universalTransitionEnabled",Ip=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,r,i){this.seriesIndex=this.componentIndex,this.dataTask=jd({count:Lj,reset:Oj}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Ms(this).sourceManager=new uD(this);a.prepareSource();var o=this.getInitialData(e,i);_D(o,this),this.dataTask.context.data=o,Ms(this).dataBeforeProcessed=o,wD(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,r){var i=Rd(this),a=i?nc(e):{},o=this.subType;Jn.hasClass(o)&&(o+="Series"),Mn(e,r.getTheme().get(this.subType)),Mn(e,this.getDefaultOption()),ll(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&bs(e,a,i)},t.prototype.mergeOption=function(e,r){e=Mn(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Rd(this);i&&bs(this.option,e,i);var a=Ms(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,r);_D(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ms(this).dataBeforeProcessed=o,wD(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Fi(e))for(var r=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&ll(e[i],"label",r)},t.prototype.getInitialData=function(e,r){},t.prototype.appendData=function(e){var r=this.getRawData();r.appendData(e.data)},t.prototype.getData=function(e){var r=Ry(this);if(r){var i=r.context.data;return e==null?i:i.getLinkedData(e)}else return Ms(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var r=Ry(this);if(r){var i=r.context;i.outputData=e,r!==this.dataTask&&(i.data=e)}Ms(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Ze(e)},t.prototype.getSourceManager=function(){return Ms(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ms(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,r,i){return SD({series:this,dataIndex:e,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Zn.node&&!(e&&e.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,r,i){var a=this.ecModel,o=my.prototype.getColorFromPalette.call(this,e,r,i);return o||(o=a.getColorFromPalette(e,r,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,r){this._innerSelect(this.getData(r),e)},t.prototype.unselect=function(e,r){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Pp(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,r){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,r=Nn(e),i=[],a=0;a<r.length;a++){var o=e[r[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[Pp(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ap])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){rn(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var d=r[c],h=Pp(e,d);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(d)}}else if(s==="single"||s===!0){var f=r[l-1],h=Pp(e,f);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=e.getRawIndex(f),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var r=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&r.push(i)}),r.length>0&&this._innerSelect(e,r)}},t.registerClass=function(e){return Jn.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Jn);Wr(Ip,Dy),Wr(Ip,my),KC(Ip,Jn);function wD(n){var t=n.name;w0(n)||(n.name=Ej(n)||t)}function Ej(n){var t=n.getRawData(),e=t.mapDimensionsAll("seriesName"),r=[];return mt(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Lj(n){return n.model.getRawData().count()}function Oj(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),Rj}function Rj(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _D(n,t){mt(Cf(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,xn(Nj,t))})}function Nj(n,t){var e=Ry(n);return e&&e.setOutputEnd((t||this).count()),t}function Ry(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var r=e.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(n.uid))}return r}}const br=Ip;var Ny=function(){function n(){this.group=new sn,this.uid=Ju("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,r,i){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,r,i){},n.prototype.updateLayout=function(t,e,r,i){},n.prototype.updateVisual=function(t,e,r,i){},n.prototype.toggleBlurSeries=function(t,e,r){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();C0(Ny),qf(Ny);const Lr=Ny;function lc(){var n=Kn();return function(t){var e=n(t),r=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(r&&r.large),s=e.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&"reset"}}var uc=ho.CMD,Bj=[[],[],[]],bD=Math.sqrt,Vj=Math.atan2;function CD(n,t){if(t){var e=n.data,r=n.len(),i,a,o,s,l,u,c=uc.M,d=uc.C,h=uc.L,f=uc.R,p=uc.A,g=uc.Q;for(o=0,s=0;o<r;){switch(i=e[o++],s=o,a=0,i){case c:a=1;break;case h:a=1;break;case d:a=3;break;case g:a=2;break;case p:var v=t[4],y=t[5],x=bD(t[0]*t[0]+t[1]*t[1]),S=bD(t[2]*t[2]+t[3]*t[3]),_=Vj(-t[1]/S,t[0]/x);e[o]*=x,e[o++]+=v,e[o]*=S,e[o++]+=y,e[o++]*=x,e[o++]*=S,e[o++]+=_,e[o++]+=_,o+=2,s=o;break;case f:u[0]=e[o++],u[1]=e[o++],si(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],si(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var D=Bj[l];D[0]=e[o++],D[1]=e[o++],si(D,D,t),e[s++]=D[0],e[s++]=D[1]}}n.increaseVersion()}}var By=Math.sqrt,Ep=Math.sin,Lp=Math.cos,Hd=Math.PI;function MD(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Vy(n,t){return(n[0]*t[0]+n[1]*t[1])/(MD(n)*MD(t))}function TD(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(Vy(n,t))}function DD(n,t,e,r,i,a,o,s,l,u,c){var d=l*(Hd/180),h=Lp(d)*(n-e)/2+Ep(d)*(t-r)/2,f=-1*Ep(d)*(n-e)/2+Lp(d)*(t-r)/2,p=h*h/(o*o)+f*f/(s*s);p>1&&(o*=By(p),s*=By(p));var g=(i===a?-1:1)*By((o*o*(s*s)-o*o*(f*f)-s*s*(h*h))/(o*o*(f*f)+s*s*(h*h)))||0,v=g*o*f/s,y=g*-s*h/o,x=(n+e)/2+Lp(d)*v-Ep(d)*y,S=(t+r)/2+Ep(d)*v+Lp(d)*y,_=TD([1,0],[(h-v)/o,(f-y)/s]),D=[(h-v)/o,(f-y)/s],C=[(-1*h-v)/o,(-1*f-y)/s],N=TD(D,C);if(Vy(D,C)<=-1&&(N=Hd),Vy(D,C)>=1&&(N=0),N<0){var q=Math.round(N/Hd*1e6)/1e6;N=Hd*2+q%2*Hd}c.addData(u,x,S,o,s,_,N,d,a)}var Wj=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Fj=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jj(n){var t=new ho;if(!n)return t;var e=0,r=0,i=e,a=r,o,s=ho.CMD,l=n.match(Wj);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],d=c.charAt(0),h=void 0,f=c.match(Fj)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var v=0;v<p;){var y=void 0,x=void 0,S=void 0,_=void 0,D=void 0,C=void 0,N=void 0,q=e,et=r,lt=void 0,ft=void 0;switch(d){case"l":e+=f[v++],r+=f[v++],h=s.L,t.addData(h,e,r);break;case"L":e=f[v++],r=f[v++],h=s.L,t.addData(h,e,r);break;case"m":e+=f[v++],r+=f[v++],h=s.M,t.addData(h,e,r),i=e,a=r,d="l";break;case"M":e=f[v++],r=f[v++],h=s.M,t.addData(h,e,r),i=e,a=r,d="L";break;case"h":e+=f[v++],h=s.L,t.addData(h,e,r);break;case"H":e=f[v++],h=s.L,t.addData(h,e,r);break;case"v":r+=f[v++],h=s.L,t.addData(h,e,r);break;case"V":r=f[v++],h=s.L,t.addData(h,e,r);break;case"C":h=s.C,t.addData(h,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),e=f[v-2],r=f[v-1];break;case"c":h=s.C,t.addData(h,f[v++]+e,f[v++]+r,f[v++]+e,f[v++]+r,f[v++]+e,f[v++]+r),e+=f[v-2],r+=f[v-1];break;case"S":y=e,x=r,lt=t.len(),ft=t.data,o===s.C&&(y+=e-ft[lt-4],x+=r-ft[lt-3]),h=s.C,q=f[v++],et=f[v++],e=f[v++],r=f[v++],t.addData(h,y,x,q,et,e,r);break;case"s":y=e,x=r,lt=t.len(),ft=t.data,o===s.C&&(y+=e-ft[lt-4],x+=r-ft[lt-3]),h=s.C,q=e+f[v++],et=r+f[v++],e+=f[v++],r+=f[v++],t.addData(h,y,x,q,et,e,r);break;case"Q":q=f[v++],et=f[v++],e=f[v++],r=f[v++],h=s.Q,t.addData(h,q,et,e,r);break;case"q":q=f[v++]+e,et=f[v++]+r,e+=f[v++],r+=f[v++],h=s.Q,t.addData(h,q,et,e,r);break;case"T":y=e,x=r,lt=t.len(),ft=t.data,o===s.Q&&(y+=e-ft[lt-4],x+=r-ft[lt-3]),e=f[v++],r=f[v++],h=s.Q,t.addData(h,y,x,e,r);break;case"t":y=e,x=r,lt=t.len(),ft=t.data,o===s.Q&&(y+=e-ft[lt-4],x+=r-ft[lt-3]),e+=f[v++],r+=f[v++],h=s.Q,t.addData(h,y,x,e,r);break;case"A":S=f[v++],_=f[v++],D=f[v++],C=f[v++],N=f[v++],q=e,et=r,e=f[v++],r=f[v++],h=s.A,DD(q,et,e,r,C,N,S,_,D,h,t);break;case"a":S=f[v++],_=f[v++],D=f[v++],C=f[v++],N=f[v++],q=e,et=r,e+=f[v++],r+=f[v++],h=s.A,DD(q,et,e,r,C,N,S,_,D,h,t);break}}(d==="z"||d==="Z")&&(h=s.Z,t.addData(h),e=i,r=a),o=h}return t.toStatic(),t}var kD=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(In);function PD(n){return n.setData!=null}function AD(n,t){var e=jj(n),r=ye({},t);return r.buildPath=function(i){if(PD(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},r.applyTransform=function(i){CD(e,i),this.dirtyShape()},r}function ID(n,t){return new kD(AD(n,t))}function zj(n,t){var e=AD(n,t),r=function(i){Zt(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(kD);return r}function Hj(n,t){for(var e=[],r=n.length,i=0;i<r;i++){var a=n[i];e.push(a.getUpdatedPathProxy(!0))}var o=new In(t);return o.createPathProxy(),o.buildPath=function(s){if(PD(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Wy(n,t){t=t||{};var e=new In;return n.shape&&e.setShape(n.shape),e.setStyle(n.style),t.bakeTransform?CD(e.path,n.getComputedTransform()):t.toLocal?e.setLocalTransform(n.getComputedTransform()):e.copyTransform(n),e.buildPath=n.buildPath,e.applyTransform=e.applyTransform,e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e}var Uj=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),ED=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Uj},t.prototype.buildPath=function(e,r){e.moveTo(r.cx+r.r,r.cy),e.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(In);ED.prototype.type="circle";const Uo=ED;var Gj=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),LD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Gj},t.prototype.buildPath=function(e,r){var i=.5522848,a=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),e.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),e.closePath()},t}(In);LD.prototype.type="ellipse";const Fy=LD;var OD=Math.PI,jy=OD*2,Al=Math.sin,cc=Math.cos,Kj=Math.acos,Si=Math.atan2,RD=Math.abs,Ud=Math.sqrt,Gd=Math.max,go=Math.min,Va=1e-4;function Xj(n,t,e,r,i,a,o,s){var l=e-n,u=r-t,c=o-i,d=s-a,h=d*l-c*u;if(!(h*h<Va))return h=(c*(t-a)-d*(n-i))/h,[n+h*l,t+h*u]}function Op(n,t,e,r,i,a,o){var s=n-e,l=t-r,u=(o?a:-a)/Ud(s*s+l*l),c=u*l,d=-u*s,h=n+c,f=t+d,p=e+c,g=r+d,v=(h+p)/2,y=(f+g)/2,x=p-h,S=g-f,_=x*x+S*S,D=i-a,C=h*g-p*f,N=(S<0?-1:1)*Ud(Gd(0,D*D*_-C*C)),q=(C*S-x*N)/_,et=(-C*x-S*N)/_,lt=(C*S+x*N)/_,ft=(-C*x+S*N)/_,_t=q-v,Ct=et-y,kt=lt-v,Ot=ft-y;return _t*_t+Ct*Ct>kt*kt+Ot*Ot&&(q=lt,et=ft),{cx:q,cy:et,x0:-c,y0:-d,x1:q*(i/D-1),y1:et*(i/D-1)}}function Yj(n){var t;if(Se(n)){var e=n.length;if(!e)return n;e===1?t=[n[0],n[0],0,0]:e===2?t=[n[0],n[0],n[1],n[1]]:e===3?t=n.concat(n[2]):t=n}else t=[n,n,n,n];return t}function Zj(n,t){var e,r=Gd(t.r,0),i=Gd(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,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,d=t.cy,h=!!t.clockwise,f=RD(u-l),p=f>jy&&f%jy;if(p>Va&&(f=p),!(r>Va))n.moveTo(c,d);else if(f>jy-Va)n.moveTo(c+r*cc(l),d+r*Al(l)),n.arc(c,d,r,l,u,!h),i>Va&&(n.moveTo(c+i*cc(u),d+i*Al(u)),n.arc(c,d,i,u,l,h));else{var g=void 0,v=void 0,y=void 0,x=void 0,S=void 0,_=void 0,D=void 0,C=void 0,N=void 0,q=void 0,et=void 0,lt=void 0,ft=void 0,_t=void 0,Ct=void 0,kt=void 0,Ot=r*cc(l),Nt=r*Al(l),Xt=i*cc(u),Vt=i*Al(u),Ut=f>Va;if(Ut){var Yt=t.cornerRadius;Yt&&(e=Yj(Yt),g=e[0],v=e[1],y=e[2],x=e[3]);var ue=RD(r-i)/2;if(S=go(ue,y),_=go(ue,x),D=go(ue,g),C=go(ue,v),et=N=Gd(S,_),lt=q=Gd(D,C),(N>Va||q>Va)&&(ft=r*cc(u),_t=r*Al(u),Ct=i*cc(l),kt=i*Al(l),f<OD)){var ie=Xj(Ot,Nt,Ct,kt,ft,_t,Xt,Vt);if(ie){var Gt=Ot-ie[0],Qt=Nt-ie[1],me=ft-ie[0],De=_t-ie[1],Pe=1/Al(Kj((Gt*me+Qt*De)/(Ud(Gt*Gt+Qt*Qt)*Ud(me*me+De*De)))/2),Ce=Ud(ie[0]*ie[0]+ie[1]*ie[1]);et=go(N,(r-Ce)/(Pe+1)),lt=go(q,(i-Ce)/(Pe-1))}}}if(!Ut)n.moveTo(c+Ot,d+Nt);else if(et>Va){var Ee=go(y,et),Ve=go(x,et),Te=Op(Ct,kt,Ot,Nt,r,Ee,h),Be=Op(ft,_t,Xt,Vt,r,Ve,h);n.moveTo(c+Te.cx+Te.x0,d+Te.cy+Te.y0),et<N&&Ee===Ve?n.arc(c+Te.cx,d+Te.cy,et,Si(Te.y0,Te.x0),Si(Be.y0,Be.x0),!h):(Ee>0&&n.arc(c+Te.cx,d+Te.cy,Ee,Si(Te.y0,Te.x0),Si(Te.y1,Te.x1),!h),n.arc(c,d,r,Si(Te.cy+Te.y1,Te.cx+Te.x1),Si(Be.cy+Be.y1,Be.cx+Be.x1),!h),Ve>0&&n.arc(c+Be.cx,d+Be.cy,Ve,Si(Be.y1,Be.x1),Si(Be.y0,Be.x0),!h))}else n.moveTo(c+Ot,d+Nt),n.arc(c,d,r,l,u,!h);if(!(i>Va)||!Ut)n.lineTo(c+Xt,d+Vt);else if(lt>Va){var Ee=go(g,lt),Ve=go(v,lt),Te=Op(Xt,Vt,ft,_t,i,-Ve,h),Be=Op(Ot,Nt,Ct,kt,i,-Ee,h);n.lineTo(c+Te.cx+Te.x0,d+Te.cy+Te.y0),lt<q&&Ee===Ve?n.arc(c+Te.cx,d+Te.cy,lt,Si(Te.y0,Te.x0),Si(Be.y0,Be.x0),!h):(Ve>0&&n.arc(c+Te.cx,d+Te.cy,Ve,Si(Te.y0,Te.x0),Si(Te.y1,Te.x1),!h),n.arc(c,d,i,Si(Te.cy+Te.y1,Te.cx+Te.x1),Si(Be.cy+Be.y1,Be.cx+Be.x1),h),Ee>0&&n.arc(c+Be.cx,d+Be.cy,Ee,Si(Be.y1,Be.x1),Si(Be.y0,Be.x0),!h))}else n.lineTo(c+Xt,d+Vt),n.arc(c,d,i,u,l,h)}n.closePath()}}}var $j=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),ND=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new $j},t.prototype.buildPath=function(e,r){Zj(e,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(In);ND.prototype.type="sector";const Gi=ND;var Jj=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),BD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Jj},t.prototype.buildPath=function(e,r){var i=r.cx,a=r.cy,o=Math.PI*2;e.moveTo(i+r.r,a),e.arc(i,a,r.r,0,o,!1),e.moveTo(i+r.r0,a),e.arc(i,a,r.r0,0,o,!0)},t}(In);BD.prototype.type="ring";const Rp=BD;function Qj(n,t,e,r){var i=[],a=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var h=0,f=n.length;h<f;h++)cs(c,c,n[h]),ds(d,d,n[h]);cs(c,c,r[0]),ds(d,d,r[1])}for(var h=0,f=n.length;h<f;h++){var p=n[h];if(e)l=n[h?h-1:f-1],u=n[(h+1)%f];else if(h===0||h===f-1){i.push(Ao(n[h]));continue}else l=n[h-1],u=n[h+1];Js(a,u,l),Df(a,a,t);var g=Cm(p,l),v=Cm(p,u),y=g+v;y!==0&&(g/=y,v/=y),Df(o,a,-g),Df(s,a,v);var x=Cb([],p,o),S=Cb([],p,s);r&&(ds(x,x,c),cs(x,x,d),ds(S,S,c),cs(S,S,d)),i.push(x),i.push(S)}return e&&i.push(i.shift()),i}function VD(n,t,e){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Qj(i,r,e,t.smoothConstraint);n.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)n.lineTo(i[s][0],i[s][1])}e&&n.closePath()}}var qj=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),WD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new qj},t.prototype.buildPath=function(e,r){VD(e,r,!0)},t}(In);WD.prototype.type="polygon";const Ki=WD;var tz=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),FD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tz},t.prototype.buildPath=function(e,r){VD(e,r,!1)},t}(In);FD.prototype.type="polyline";const Xi=FD;var ez={},nz=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),jD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nz},t.prototype.buildPath=function(e,r){var i,a,o,s;if(this.subPixelOptimize){var l=sM(ez,r,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=r.x1,a=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var r=this.shape;return[r.x1*(1-e)+r.x2*e,r.y1*(1-e)+r.y2*e]},t}(In);jD.prototype.type="line";const oi=jD;var Yi=[],rz=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function zD(n,t,e){var r=n.cpx2,i=n.cpy2;return r!=null||i!=null?[(e?Gb:Jr)(n.x1,n.cpx1,n.cpx2,n.x2,t),(e?Gb:Jr)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(e?Fm:ai)(n.x1,n.cpx1,n.x2,t),(e?Fm:ai)(n.y1,n.cpy1,n.y2,t)]}var HD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rz},t.prototype.buildPath=function(e,r){var i=r.x1,a=r.y1,o=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,d=r.cpy2,h=r.percent;h!==0&&(e.moveTo(i,a),c==null||d==null?(h<1&&(sd(i,l,o,h,Yi),l=Yi[1],o=Yi[2],sd(a,u,s,h,Yi),u=Yi[1],s=Yi[2]),e.quadraticCurveTo(l,u,o,s)):(h<1&&(ps(i,l,c,o,h,Yi),l=Yi[1],c=Yi[2],o=Yi[3],ps(a,u,d,s,h,Yi),u=Yi[1],d=Yi[2],s=Yi[3]),e.bezierCurveTo(l,u,c,d,o,s)))},t.prototype.pointAt=function(e){return zD(this.shape,e,!1)},t.prototype.tangentAt=function(e){var r=zD(this.shape,e,!0);return Ou(r,r)},t}(In);HD.prototype.type="bezier-curve";const Np=HD;var iz=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),UD=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iz},t.prototype.buildPath=function(e,r){var i=r.cx,a=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),d=Math.sin(s);e.moveTo(c*o+i,d*o+a),e.arc(i,a,o,s,l,!u)},t}(In);UD.prototype.type="arc";const zy=UD;var az=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,r=this.shapeChanged(),i=0;i<e.length;i++)r=r||e[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(r[0],r[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,r){for(var i=r.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],r=0;r<e.length;r++)e[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),In.prototype.getBoundingRect.call(this)},t}(In);const Bp=az;var oz=function(){function n(t){this.colorStops=t||[]}return n.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},n}();const GD=oz;var sz=function(n){Zt(t,n);function t(e,r,i,a,o,s){var l=n.call(this,o)||this;return l.x=e==null?0:e,l.y=r==null?0:r,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(GD);const Kd=sz;var lz=function(n){Zt(t,n);function t(e,r,i,a,o){var s=n.call(this,a)||this;return s.x=e==null?.5:e,s.y=r==null?.5:r,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return t}(GD);const KD=lz;var Il=[0,0],El=[0,0],Vp=new Sn,Wp=new Sn,uz=function(){function n(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Sn;for(var r=0;r<2;r++)this._axes[r]=new Sn;t&&this.fromBoundingRect(t,e)}return n.prototype.fromBoundingRect=function(t,e){var r=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),e)for(var u=0;u<4;u++)r[u].transform(e);Sn.sub(i[0],r[1],r[0]),Sn.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},n.prototype.intersect=function(t,e){var r=!0,i=!e;return Vp.set(1/0,1/0),Wp.set(0,0),!this._intersectCheckOneSide(this,t,Vp,Wp,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,Vp,Wp,i,-1)&&(r=!1,i)||i||Sn.copy(e,r?Vp:Wp),r},n.prototype._intersectCheckOneSide=function(t,e,r,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Il),this._getProjMinMaxOnAxis(l,e._corners,El),Il[1]<El[0]||Il[0]>El[1]){if(s=!1,a)return s;var c=Math.abs(El[0]-Il[1]),d=Math.abs(Il[0]-El[1]);Math.min(c,d)>i.len()&&(c<d?Sn.scale(i,u,-c*o):Sn.scale(i,u,d*o))}else if(r){var c=Math.abs(El[0]-Il[1]),d=Math.abs(Il[0]-El[1]);Math.min(c,d)<r.len()&&(c<d?Sn.scale(r,u,c*o):Sn.scale(r,u,-d*o))}}return s},n.prototype._getProjMinMaxOnAxis=function(t,e,r){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var c=e[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},n}();const Fp=uz;var cz=[],dz=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,r){e.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,r){r?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,r){r=r||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var r=this._cursor;r<this._displayables.length;r++)e&&e(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)e&&e(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var r=this._displayables[e];r.parent=this,r.update(),r.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var r=this._temporaryDisplayables[e];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wn(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(cz)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,r))return!0}return!1},t}(fa);const hz=dz;var jp=Math.max,zp=Math.min,Hy={};function XD(n){return In.extend(n)}var fz=zj;function pz(n,t){return fz(n,t)}function Wa(n,t){Hy[n]=t}function Uy(n){if(Hy.hasOwnProperty(n))return Hy[n]}function dc(n,t,e,r){var i=ID(n,t);return e&&(r==="center"&&(e=ZD(e,i.getBoundingRect())),$D(i,e)),i}function YD(n,t,e){var r=new li({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};r.setStyle(ZD(t,a))}}});return r}function ZD(n,t){var e=t.width/t.height,r=n.height*e,i;r<=n.width?i=n.height:(r=n.width,i=r/e);var a=n.x+n.width/2,o=n.y+n.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var xa=Hj;function $D(n,t){if(n.applyTransform){var e=n.getBoundingRect(),r=e.calculateTransform(t);n.applyTransform(r)}}function hc(n,t){return sM(n,n,{lineWidth:t}),n}function gz(n){return lM(n.shape,n.shape,n.style),n}var Hp=xl;function Ll(n,t){for(var e=Pf([]);n&&n!==t;)Eo(e,n.getLocalTransform(),e),n=n.parent;return e}function Fa(n,t,e){return t&&!mi(t)&&(t=Oo.getLocalTransform(t)),e&&(t=Nu([],t)),si([],n,t)}function Up(n,t,e){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[n==="left"?-r:n==="right"?r:0,n==="top"?-i:n==="bottom"?i:0];return a=Fa(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function JD(n){return!n.isGroup}function vz(n){return n.shape!=null}function Xd(n,t,e){if(!n||!t)return;function r(o){var s={};return o.traverse(function(l){JD(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return vz(o)&&(s.shape=ye({},o.shape)),s}var a=r(n);t.traverse(function(o){if(JD(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Hn(o,l,e,hn(o).dataIndex)}}})}function QD(n,t){return we(n,function(e){var r=e[0];r=jp(r,t.x),r=zp(r,t.x+t.width);var i=e[1];return i=jp(i,t.y),i=zp(i,t.y+t.height),[r,i]})}function mz(n,t){var e=jp(n.x,t.x),r=zp(n.x+n.width,t.x+t.width),i=jp(n.y,t.y),a=zp(n.y+n.height,t.y+t.height);if(r>=e&&a>=i)return{x:e,y:i,width:r-e,height:a-i}}function Yd(n,t,e){var r=ye({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(i.image=n.slice(8),nn(i,e),new li(r)):dc(n.replace("path://",""),r,e,"center")}function Zd(n,t,e,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(qD(n,t,e,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function qD(n,t,e,r,i,a,o,s){var l=e-n,u=r-t,c=o-i,d=s-a,h=Gy(c,d,l,u);if(yz(h))return!1;var f=n-i,p=t-a,g=Gy(f,p,l,u)/h;if(g<0||g>1)return!1;var v=Gy(f,p,c,d)/h;return!(v<0||v>1)}function Gy(n,t,e,r){return n*r-e*t}function yz(n){return n<=1e-6&&n>=-1e-6}function fc(n){var t=n.itemTooltipOption,e=n.componentModel,r=n.itemName,i=je(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=n.formatterParamsExtra;l&&mt(Nn(l),function(c){Xe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=hn(n.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:nn({content:r,formatterParams:s},i)}}function tk(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function Ts(n,t){if(n)if(Se(n))for(var e=0;e<n.length;e++)tk(n[e],t);else tk(n,t)}Wa("circle",Uo),Wa("ellipse",Fy),Wa("sector",Gi),Wa("ring",Rp),Wa("polygon",Ki),Wa("polyline",Xi),Wa("rect",jn),Wa("line",oi),Wa("bezierCurve",Np),Wa("arc",zy);var ek=Kn(),xz=lc(),Ky=function(){function n(){this.group=new sn,this.uid=Ju("viewChart"),this.renderTask=jd({plan:Sz,reset:wz}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,r,i){},n.prototype.highlight=function(t,e,r,i){var a=t.getData(i&&i.dataType);a&&rk(a,i,"emphasis")},n.prototype.downplay=function(t,e,r,i){var a=t.getData(i&&i.dataType);a&&rk(a,i,"normal")},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,r,i){this.render(t,e,r,i)},n.prototype.updateLayout=function(t,e,r,i){this.render(t,e,r,i)},n.prototype.updateVisual=function(t,e,r,i){this.render(t,e,r,i)},n.prototype.eachRendered=function(t){Ts(this.group,t)},n.markUpdateMethod=function(t,e){ek(t).updateMethod=e},n.protoInitialize=function(){var t=n.prototype;t.type="chart"}(),n}();function nk(n,t,e){n&&Ad(n)&&(t==="emphasis"?Wo:Fo)(n,e)}function rk(n,t,e){var r=ul(n,t),i=t&&t.highlightKey!=null?zF(t.highlightKey):null;r!=null?mt(cr(r),function(a){nk(n.getItemGraphicEl(a),e,i)}):n.eachItemGraphicEl(function(a){nk(a,e,i)})}C0(Ky,["dispose"]),qf(Ky);function Sz(n){return xz(n.model)}function wz(n){var t=n.model,e=n.ecModel,r=n.api,i=n.payload,a=t.pipelineContext.progressiveRender,o=n.view,s=i&&ek(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,r,i),_z[l]}var _z={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const gr=Ky;var Gp="\0__throttleOriginMethod",ik="\0__throttleRate",ak="\0__throttleType";function Xy(n,t,e){var r,i=0,a=0,o=null,s,l,u,c;t=t||0;function d(){a=new Date().getTime(),o=null,n.apply(l,u||[])}var h=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];r=new Date().getTime(),l=this,u=f;var g=c||t,v=c||e;c=null,s=r-(v?i:a)-g,clearTimeout(o),v?o=setTimeout(d,g):s>=0?d():o=setTimeout(d,-s),i=r};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(f){c=f},h}function pc(n,t,e,r){var i=n[t];if(i){var a=i[Gp]||i,o=i[ak],s=i[ik];if(s!==e||o!==r){if(e==null||!r)return n[t]=a;i=n[t]=Xy(a,e,r==="debounce"),i[Gp]=a,i[ak]=r,i[ik]=e}return i}}function $d(n,t){var e=n[t];e&&e[Gp]&&(e.clear&&e.clear(),n[t]=e[Gp])}var ok=Kn(),sk={itemStyle:dl(ZM,!0),lineStyle:dl(YM,!0)},bz={lineStyle:"stroke",itemStyle:"fill"};function lk(n,t){var e=n.visualStyleMapper||sk[t];return e||(console.warn("Unknown style type '"+t+"'."),sk.itemStyle)}function uk(n,t){var e=n.visualDrawType||bz[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Cz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=n.getModel(r),a=lk(n,r),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=uk(n,r),u=o[l],c=qe(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var h=n.getColorFromPalette(n.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||qe(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||qe(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(n)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(f,p){var g=n.getDataParams(p),v=ye({},o);v[l]=c(g),f.setItemVisual(p,"style",v)}}}},Jd=new pr,Mz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!(n.ignoreStyleOnData||t.isSeriesFiltered(n))){var e=n.getData(),r=n.visualStyleAccessPath||"itemStyle",i=lk(n,r),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Jd.option=l[r];var u=i(Jd),c=o.ensureUniqueItemVisual(s,"style");ye(c,u),Jd.option.decal&&(o.setItemVisual(s,"decal",Jd.option.decal),Jd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Tz={performRawSeries:!0,overallReset:function(n){var t=Ze();n.eachSeries(function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+r,a=t.get(i);a||(a={},t.set(i,a)),ok(e).scope=a}}),n.eachSeries(function(e){if(!(e.isColorBySeries()||n.isSeriesFiltered(e))){var r=e.getRawData(),i={},a=e.getData(),o=ok(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=uk(e,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],d=a.getItemVisual(c,"colorFromPalette");if(d){var h=a.ensureUniqueItemVisual(c,"style"),f=r.getName(u)||u+"",p=r.count();h[l]=e.getColorFromPalette(f,o,p)}})}})}},Kp=Math.PI;function Dz(n,t){t=t||{},nn(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 e=new sn,r=new jn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(r);var i=new Wn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new jn({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new zy({shape:{startAngle:-Kp/2,endAngle:-Kp/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Kp*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Kp*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(n.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}var kz=function(){function n(t,e,r,i){this._stageTaskMap=Ze(),this.ecInstance=t,this.api=e,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,a=!e&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var r=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=r.progressiveEnabled&&e.incrementalPrepareRender&&a>=r.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(t){var e=this,r=e._pipelineMap=Ze();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),r=this.api;mt(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ti(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,r),i.overallReset&&this._createOverallStageTask(i,a,e,r)},this)},n.prototype.prepareView=function(t,e,r,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=r,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,r){this._performStageTasks(this._visualHandlers,t,e,r)},n.prototype._performStageTasks=function(t,e,r,i){i=i||{};var a=!1,o=this;mt(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,h=c.overallTask;if(h){var f,p=h.agentStubMap;p.each(function(v){s(i,v)&&(v.dirty(),f=!0)}),f&&h.dirty(),o.updatePayload(h,r);var g=o.getPerformArgs(h,i.block);p.each(function(v){v.perform(g)}),h.perform(g)&&(a=!0)}else d&&d.each(function(v,y){s(i,v)&&v.dirty();var x=o.getPerformArgs(v,i.block);x.skip=!l.performRawSeries&&e.isSeriesFiltered(v.context.model),o.updatePayload(v,r),v.perform(x)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(r){e=r.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,r,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Ze(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(d){var h=d.uid,f=s.set(h,o&&o.get(h)||jd({plan:Lz,reset:Oz,count:Nz}));f.context={model:d,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(d,f)}},n.prototype._createOverallStageTask=function(t,e,r,i){var a=this,o=e.overallTask=e.overallTask||jd({reset:Pz});o.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Ze(),u=t.seriesType,c=t.getTargetSeries,d=!0,h=!1,f="";Ti(!t.createOnAllSeries,f),u?r.eachRawSeriesByType(u,p):c?c(r,i).each(p):(d=!1,mt(r.getSeries(),p));function p(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(h=!0,jd({reset:Az,onDirty:Ez})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,a._pipe(g,y)}h&&o.dirty()},n.prototype._pipe=function(t,e){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},n.wrapStageHandler=function(t,e){return qe(t)&&(t={overallReset:t,seriesType:Bz(t)}),t.uid=Ju("stageHandler"),e&&(t.visualType=e),t},n}();function Pz(n){n.overallReset(n.ecModel,n.api,n.payload)}function Az(n){return n.overallProgress&&Iz}function Iz(){this.agent.dirty(),this.getDownstream().dirty()}function Ez(){this.agent&&this.agent.dirty()}function Lz(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function Oz(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=cr(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?we(t,function(e,r){return ck(r)}):Rz}var Rz=ck(0);function ck(n){return function(t,e){var r=e.data,i=e.resetDefines[n];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 Nz(n){return n.data.count()}function Bz(n){Xp=null;try{n(Qd,dk)}catch(t){}return Xp}var Qd={},dk={},Xp;hk(Qd,IT),hk(dk,ET),Qd.eachSeriesByType=Qd.eachRawSeriesByType=function(n){Xp=n},Qd.eachComponent=function(n){n.mainType==="series"&&n.subType&&(Xp=n.subType)};function hk(n,t){for(var e in t.prototype)n[e]=Fr}const fk=kz;var pk=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Vz={color:pk,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],pk]};var Ii="#B9B8CE",gk="#100C2A",Yp=function(){return{axisLine:{lineStyle:{color:Ii}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},vk=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],mk={darkMode:!0,color:vk,backgroundColor:gk,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ii}},textStyle:{color:Ii},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ii}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ii},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:Ii}},timeline:{lineStyle:{color:Ii},label:{color:Ii},controlStyle:{color:Ii,borderColor:Ii}},calendar:{itemStyle:{color:gk},dayLabel:{color:Ii},monthLabel:{color:Ii},yearLabel:{color:Ii}},timeAxis:Yp(),logAxis:Yp(),valueAxis:Yp(),categoryAxis:Yp(),line:{symbol:"circle"},graph:{color:vk},gauge:{title:{color:Ii},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ii},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};mk.categoryAxis.splitLine.show=!1;const Wz=mk;var Fz=function(){function n(){}return n.prototype.normalizeQuery=function(t){var e={},r={},i={};if(je(t)){var a=so(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};mt(t,function(l,u){for(var c=!1,d=0;d<o.length;d++){var h=o[d],f=u.lastIndexOf(h);if(f>0&&f===u.length-h.length){var p=u.slice(0,f);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:e,dataQuery:r,otherQuery:i}},n.prototype.filter=function(t,e){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function c(d,h,f,p){return d[f]==null||h[p||f]===d[f]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Yy=["symbol","symbolSize","symbolRotate","symbolOffset"],yk=Yy.concat(["symbolKeepAspect"]),jz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Yy.length;o++){var s=Yy[o],l=n.get(s);qe(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||n.defaultSymbol,e.setVisual(ye({legendIcon:n.legendIcon||r.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},r)),t.isSeriesFiltered(n))return;var u=Nn(i);function c(d,h){for(var f=n.getRawValue(h),p=n.getDataParams(h),g=0;g<u.length;g++){var v=u[g];d.setItemVisual(h,v,i[v](f,p))}}return{dataEach:a?c:null}}},zz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.hasSymbolVisual||t.isSeriesFiltered(n))return;var e=n.getData();function r(i,a){for(var o=i.getItemModel(a),s=0;s<yk.length;s++){var l=yk[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?r:null}}};function Zy(n,t,e){switch(e){case"color":var r=n.getItemVisual(t,"style");return r[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e);default:}}function qd(n,t){switch(t){case"color":var e=n.getVisual("style");return e[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t);default:}}function xk(n,t,e,r){switch(e){case"color":var i=n.ensureUniqueItemVisual(t,"style");i[n.getVisual("drawType")]=r,n.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(t,e,r);break;default:}}function Sk(n,t){function e(r,i){var a=[];return r.eachComponent({mainType:"series",subType:n,query:i},function(o){a.push(o.seriesIndex)}),a}mt([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(r){t(r[0],function(i,a,o){i=ye({},i),o.dispatchAction(ye(i,{type:r[1],seriesIndex:e(a,i)}))})})}function gc(n,t,e,r,i){var a=n+t;e.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var d=o.getData(),h=ul(d,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:Se(h)?d.getName(h[0]):d.getName(h),selected:je(l)?l:ye({},l)})}})}function Hz(n,t,e){n.on("selectchanged",function(r){var i=e.getModel();r.isFromClick?(gc("map","selectchanged",t,i,r),gc("pie","selectchanged",t,i,r)):r.fromAction==="select"?(gc("map","selected",t,i,r),gc("pie","selected",t,i,r)):r.fromAction==="unselect"&&(gc("map","unselected",t,i,r),gc("pie","unselected",t,i,r))})}function Ol(n,t,e){for(var r;n&&!(t(n)&&(r=n,e));)n=n.__hostTarget||n.parent;return r}var Uz=Math.round(Math.random()*9),Gz=typeof Object.defineProperty=="function",Kz=function(){function n(){this._id="__ec_inner_"+Uz++}return n.prototype.get=function(t){return this._guard(t)[this._id]},n.prototype.set=function(t,e){var r=this._guard(t);return Gz?Object.defineProperty(r,this._id,{value:e,enumerable:!1,configurable:!0}):r[this._id]=e,this},n.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},n.prototype.has=function(t){return!!this._guard(t)[this._id]},n.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n}();const Xz=Kz;var Yz=In.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,r=t.cy,i=t.width/2,a=t.height/2;n.moveTo(e,r-a),n.lineTo(e+i,r+a),n.lineTo(e-i,r+a),n.closePath()}}),Zz=In.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,r=t.cy,i=t.width/2,a=t.height/2;n.moveTo(e,r-a),n.lineTo(e+i,r),n.lineTo(e,r+a),n.lineTo(e-i,r),n.closePath()}}),$z=In.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=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,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),h=Math.cos(u),f=o*.6,p=o*.7;n.moveTo(e-c,l+s),n.arc(e,l,o,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(e+c-d*f,l+s+h*f,e,r-p,e,r),n.bezierCurveTo(e,r-p,e-c+d*f,l+s+h*f,e-c,l+s),n.closePath()}}),Jz=In.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;n.moveTo(i,a),n.lineTo(i+o,a+e),n.lineTo(i,a+e/4*3),n.lineTo(i-o,a+e),n.lineTo(i,a),n.closePath()}}),Qz={line:oi,rect:jn,roundRect:jn,square:jn,circle:Uo,diamond:Zz,pin:$z,arrow:Jz,triangle:Yz},qz={line:function(n,t,e,r,i){i.x1=n,i.y1=t+r/2,i.x2=n+e,i.y2=t+r/2},rect:function(n,t,e,r,i){i.x=n,i.y=t,i.width=e,i.height=r},roundRect:function(n,t,e,r,i){i.x=n,i.y=t,i.width=e,i.height=r,i.r=Math.min(e,r)/4},square:function(n,t,e,r,i){var a=Math.min(e,r);i.x=n,i.y=t,i.width=a,i.height=a},circle:function(n,t,e,r,i){i.cx=n+e/2,i.cy=t+r/2,i.r=Math.min(e,r)/2},diamond:function(n,t,e,r,i){i.cx=n+e/2,i.cy=t+r/2,i.width=e,i.height=r},pin:function(n,t,e,r,i){i.x=n+e/2,i.y=t+r/2,i.width=e,i.height=r},arrow:function(n,t,e,r,i){i.x=n+e/2,i.y=t+r/2,i.width=e,i.height=r},triangle:function(n,t,e,r,i){i.cx=n+e/2,i.cy=t+r/2,i.width=e,i.height=r}},Zp={};mt(Qz,function(n,t){Zp[t]=new n});var tH=In.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,e){var r=Jf(n,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=e.y+e.height*.4),r},buildPath:function(n,t,e){var r=t.symbolType;if(r!=="none"){var i=Zp[r];i||(r="rect",i=Zp[r]),qz[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(n,i.shape,e)}}});function eH(n,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=n,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=n:e.fill=n,this.markRedraw()}}function Rr(n,t,e,r,i,a,o){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=YD(n.slice(8),new wn(t,e,r,i),o?"center":"cover"):n.indexOf("path://")===0?l=dc(n.slice(7),{},new wn(t,e,r,i),o?"center":"cover"):l=new tH({shape:{symbolType:n,x:t,y:e,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=eH,a&&l.setColor(a),l}function vc(n){return Se(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Rl(n,t){if(n!=null)return Se(n)||(n=[n,n]),[Oe(n[0],t[0])||0,Oe(pn(n[1],n[0]),t[1])||0]}function Nl(n){return isFinite(n)}function nH(n,t,e){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(r=r*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),r=Nl(r)?r:0,i=Nl(i)?i:1,a=Nl(a)?a:0,o=Nl(o)?o:0;var s=n.createLinearGradient(r,a,i,o);return s}function rH(n,t,e){var r=e.width,i=e.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*r+e.x,s=s*i+e.y,l=l*a),o=Nl(o)?o:.5,s=Nl(s)?s:.5,l=l>=0&&Nl(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function $y(n,t,e){for(var r=t.type==="radial"?rH(n,t,e):nH(n,t,e),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function iH(n,t){if(n===t||!n&&!t)return!1;if(!n||!t||n.length!==t.length)return!0;for(var e=0;e<n.length;e++)if(n[e]!==t[e])return!0;return!1}function $p(n){return parseInt(n,10)}function mc(n,t,e){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[r]!=null&&e[r]!=="auto")return parseFloat(e[r]);var s=document.defaultView.getComputedStyle(n);return(n[i]||$p(s[r])||$p(n.style[r]))-($p(s[a])||0)-($p(s[o])||0)|0}function aH(n,t){return!n||n==="solid"||!(t>0)?null:n==="dashed"?[4*t,2*t]:n==="dotted"?[t]:$n(n)?[n]:Se(n)?n:null}function Jy(n){var t=n.style,e=t.lineDash&&t.lineWidth>0&&aH(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(e){var i=t.strokeNoScale&&n.getLineScale?n.getLineScale():1;i&&i!==1&&(e=we(e,function(a){return a/i}),r/=i)}return[e,r]}var oH=new ho(!0);function Jp(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function wk(n){return typeof n=="string"&&n!=="none"}function Qp(n){var t=n.fill;return t!=null&&t!=="none"}function _k(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function bk(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function Qy(n,t,e){var r=T0(t.image,t.__image,e);if(tp(r)){var i=n.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Tf),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function sH(n,t,e,r){var i,a=Jp(e),o=Qp(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||oH,d=t.__dirty;if(!r){var h=e.fill,f=e.stroke,p=o&&!!h.colorStops,g=a&&!!f.colorStops,v=o&&!!h.image,y=a&&!!f.image,x=void 0,S=void 0,_=void 0,D=void 0,C=void 0;(p||g)&&(C=t.getBoundingRect()),p&&(x=d?$y(n,h,C):t.__canvasFillGradient,t.__canvasFillGradient=x),g&&(S=d?$y(n,f,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),v&&(_=d||!t.__canvasFillPattern?Qy(n,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),y&&(D=d||!t.__canvasStrokePattern?Qy(n,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?n.fillStyle=x:v&&(_?n.fillStyle=_:o=!1),g?n.strokeStyle=S:y&&(D?n.strokeStyle=D:a=!1)}var N=t.getGlobalScale();c.setScale(N[0],N[1],t.segmentIgnoreThreshold);var q,et;n.setLineDash&&e.lineDash&&(i=Jy(t),q=i[0],et=i[1]);var lt=!0;(u||d&Bu)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),lt=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),lt&&c.rebuildPath(n,l?s:1),q&&(n.setLineDash(q),n.lineDashOffset=et),r||(e.strokeFirst?(a&&bk(n,e),o&&_k(n,e)):(o&&_k(n,e),a&&bk(n,e))),q&&n.setLineDash([])}function lH(n,t,e){var r=t.__image=T0(e.image,t.__image,t,t.onload);if(!(!r||!tp(r))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),e.sWidth&&e.sHeight){var u=e.sx||0,c=e.sy||0;n.drawImage(r,u,c,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,c=e.sy,d=o-u,h=s-c;n.drawImage(r,u,c,d,h,i,a,o,s)}else n.drawImage(r,i,a,o,s)}}function uH(n,t,e){var r,i=e.text;if(i!=null&&(i+=""),i){n.font=e.font||ls,n.textAlign=e.textAlign,n.textBaseline=e.textBaseline;var a=void 0,o=void 0;n.setLineDash&&e.lineDash&&(r=Jy(t),a=r[0],o=r[1]),a&&(n.setLineDash(a),n.lineDashOffset=o),e.strokeFirst?(Jp(e)&&n.strokeText(i,e.x,e.y),Qp(e)&&n.fillText(i,e.x,e.y)):(Qp(e)&&n.fillText(i,e.x,e.y),Jp(e)&&n.strokeText(i,e.x,e.y)),a&&n.setLineDash([])}}var Ck=["shadowBlur","shadowOffsetX","shadowOffsetY"],Mk=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Tk(n,t,e,r,i){var a=!1;if(!r&&(e=e||{},t===e))return!1;if(r||t.opacity!==e.opacity){Zi(n,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(o)?hl.opacity:o}(r||t.blend!==e.blend)&&(a||(Zi(n,i),a=!0),n.globalCompositeOperation=t.blend||hl.blend);for(var s=0;s<Ck.length;s++){var l=Ck[s];(r||t[l]!==e[l])&&(a||(Zi(n,i),a=!0),n[l]=n.dpr*(t[l]||0))}return(r||t.shadowColor!==e.shadowColor)&&(a||(Zi(n,i),a=!0),n.shadowColor=t.shadowColor||hl.shadowColor),a}function Dk(n,t,e,r,i){var a=th(t,i.inHover),o=r?null:e&&th(e,i.inHover)||{};if(a===o)return!1;var s=Tk(n,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(Zi(n,i),s=!0),wk(a.fill)&&(n.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(Zi(n,i),s=!0),wk(a.stroke)&&(n.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(Zi(n,i),s=!0),n.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);n.lineWidth!==u&&(s||(Zi(n,i),s=!0),n.lineWidth=u)}for(var c=0;c<Mk.length;c++){var d=Mk[c],h=d[0];(r||a[h]!==o[h])&&(s||(Zi(n,i),s=!0),n[h]=a[h]||d[1])}return s}function cH(n,t,e,r,i){return Tk(n,th(t,i.inHover),e&&th(e,i.inHover),r,i)}function kk(n,t){var e=t.transform,r=n.dpr||1;e?n.setTransform(r*e[0],r*e[1],r*e[2],r*e[3],r*e[4],r*e[5]):n.setTransform(r,0,0,r,0,0)}function dH(n,t,e){for(var r=!1,i=0;i<n.length;i++){var a=n[i];r=r||a.isZeroArea(),kk(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=r}function hH(n,t){return n&&t?n[0]!==t[0]||n[1]!==t[1]||n[2]!==t[2]||n[3]!==t[3]||n[4]!==t[4]||n[5]!==t[5]:!(!n&&!t)}var Pk=1,Ak=2,Ik=3,Ek=4;function fH(n){var t=Qp(n),e=Jp(n);return!(n.lineDash||!(+t^+e)||t&&typeof n.fill!="string"||e&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function Zi(n,t){t.batchFill&&n.fill(),t.batchStroke&&n.stroke(),t.batchFill="",t.batchStroke=""}function th(n,t){return t&&n.__hoverStyle||n.style}function Lk(n,t){Bl(n,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Bl(n,t,e,r){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~na,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||iH(a,o))&&(o&&o.length&&(Zi(n,e),n.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Zi(n,e),n.save(),dH(a,n,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var c=t instanceof In&&t.autoBatch&&fH(t.style);s||hH(i,u.transform)?(Zi(n,e),kk(n,t)):c||Zi(n,e);var d=th(t,e.inHover);t instanceof In?(e.lastDrawType!==Pk&&(l=!0,e.lastDrawType=Pk),Dk(n,t,u,l,e),(!c||!e.batchFill&&!e.batchStroke)&&n.beginPath(),sH(n,t,d,c),c&&(e.batchFill=d.fill||"",e.batchStroke=d.stroke||"")):t instanceof Md?(e.lastDrawType!==Ik&&(l=!0,e.lastDrawType=Ik),Dk(n,t,u,l,e),uH(n,t,d)):t instanceof li?(e.lastDrawType!==Ak&&(l=!0,e.lastDrawType=Ak),cH(n,t,u,l,e),lH(n,t,d)):t.getTemporalDisplayables&&(e.lastDrawType!==Ek&&(l=!0,e.lastDrawType=Ek),pH(n,t,e)),c&&r&&Zi(n,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function pH(n,t,e){var r=t.getDisplayables(),i=t.getTemporalDisplayables();n.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Bl(n,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Bl(n,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,n.restore()}var qy=new Xz,Ok=new ld(100),Rk=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yc(n,t){if(n==="none")return null;var e=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";n.dirty&&qy.delete(n);var a=qy.get(n);if(a)return a;var o=nn(n,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,qy.set(n,s),n.dirty=!1,s;function l(u){for(var c=[e],d=!0,h=0;h<Rk.length;++h){var f=o[Rk[h]];if(f!=null&&!Se(f)&&!je(f)&&!$n(f)&&typeof f!="boolean"){d=!1;break}c.push(f)}var p;if(d){p=c.join(",")+(i?"-svg":"");var g=Ok.get(p);g&&(i?u.svgElement=g:u.image=g)}var v=Bk(o.dashArrayX),y=gH(o.dashArrayY),x=Nk(o.symbol),S=vH(v),_=Vk(y),D=!i&&Aa.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},N=et(),q;D&&(D.width=N.width*e,D.height=N.height*e,q=D.getContext("2d")),lt(),d&&Ok.put(p,D||C),u.image=D,u.svgElement=C,u.svgWidth=N.width,u.svgHeight=N.height;function et(){for(var ft=1,_t=0,Ct=S.length;_t<Ct;++_t)ft=NC(ft,S[_t]);for(var kt=1,_t=0,Ct=x.length;_t<Ct;++_t)kt=NC(kt,x[_t].length);ft*=kt;var Ot=_*S.length*x.length;if(0)var Nt;return{width:Math.max(1,Math.min(ft,o.maxTileWidth)),height:Math.max(1,Math.min(Ot,o.maxTileHeight))}}function lt(){q&&(q.clearRect(0,0,D.width,D.height),o.backgroundColor&&(q.fillStyle=o.backgroundColor,q.fillRect(0,0,D.width,D.height)));for(var ft=0,_t=0;_t<y.length;++_t)ft+=y[_t];if(ft<=0)return;for(var Ct=-_,kt=0,Ot=0,Nt=0;Ct<N.height;){if(kt%2===0){for(var Xt=Ot/2%x.length,Vt=0,Ut=0,Yt=0;Vt<N.width*2;){for(var ue=0,_t=0;_t<v[Nt].length;++_t)ue+=v[Nt][_t];if(ue<=0)break;if(Ut%2===0){var ie=(1-o.symbolSize)*.5,Gt=Vt+v[Nt][Ut]*ie,Qt=Ct+y[kt]*ie,me=v[Nt][Ut]*o.symbolSize,De=y[kt]*o.symbolSize,Pe=Yt/2%x[Xt].length;Ce(Gt,Qt,me,De,x[Xt][Pe])}Vt+=v[Nt][Ut],++Yt,++Ut,Ut===v[Nt].length&&(Ut=0)}++Nt,Nt===v.length&&(Nt=0)}Ct+=y[kt],++Ot,++kt,kt===y.length&&(kt=0)}function Ce(Ee,Ve,Te,Be,tn){var Je=i?1:e,An=Rr(tn,Ee*Je,Ve*Je,Te*Je,Be*Je,o.color,o.symbolKeepAspect);if(i){var En=r.painter.renderOneToVNode(An);En&&C.children.push(En)}else Lk(q,An)}}}}function Nk(n){if(!n||n.length===0)return[["rect"]];if(je(n))return[[n]];for(var t=!0,e=0;e<n.length;++e)if(!je(n[e])){t=!1;break}if(t)return Nk([n]);for(var r=[],e=0;e<n.length;++e)je(n[e])?r.push([n[e]]):r.push(n[e]);return r}function Bk(n){if(!n||n.length===0)return[[0,0]];if($n(n)){var t=Math.ceil(n);return[[t,t]]}for(var e=!0,r=0;r<n.length;++r)if(!$n(n[r])){e=!1;break}if(e)return Bk([n]);for(var i=[],r=0;r<n.length;++r)if($n(n[r])){var t=Math.ceil(n[r]);i.push([t,t])}else{var t=we(n[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function gH(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if($n(n)){var t=Math.ceil(n);return[t,t]}var e=we(n,function(r){return Math.ceil(r)});return n.length%2?e.concat(e):e}function vH(n){return we(n,function(t){return Vk(t)})}function Vk(n){for(var t=0,e=0;e<n.length;++e)t+=n[e];return n.length%2===1?t*2:t}function mH(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var r=e.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=yc(s,t)}});var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=yc(i,t)}}})}var yH=new la;const ja=yH;var Wk={};function xH(n,t){Wk[n]=t}function SH(n){return Wk[n]}var jdt="5.5.0",zdt={zrender:"5.5.0"},wH=1,_H=800,bH=900,CH=1e3,MH=2e3,TH=5e3,Fk=1e3,DH=1100,tx=2e3,jk=3e3,kH=4e3,qp=4500,PH=4600,AH=5e3,IH=6e3,zk=7e3,EH={PROCESSOR:{FILTER:CH,SERIES_FILTER:_H,STATISTIC:TH},VISUAL:{LAYOUT:Fk,PROGRESSIVE_LAYOUT:DH,GLOBAL:tx,CHART:jk,POST_CHART_LAYOUT:PH,COMPONENT:kH,BRUSH:AH,CHART_ITEM:qp,ARIA:IH,DECAL:zk}},wi="__flagInMainProcess",$i="__pendingUpdate",ex="__needsUpdateStatus",Hk=/^[a-zA-Z0-9_]+$/,nx="__connectUpdateStatus",Uk=0,LH=1,OH=2;function Gk(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Xk(this,n,t)}}function Kk(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Xk(this,n,t)}}function Xk(n,t,e){return e[0]=e[0]&&e[0].toLowerCase(),la.prototype[t].apply(n,e)}var Yk=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t}(la),Zk=Yk.prototype;Zk.on=Kk("on"),Zk.off=Kk("off");var xc,rx,tg,Ds,ix,ax,ox,eh,nh,$k,Jk,sx,Qk,eg,qk,t2,Sa,e2,ng=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this,new Fz)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},je(r)&&(r=n2[r]),a._dom=e;var o="canvas",s="auto",l=!1;if(0)var u;i.ssr&&uW(function(f){var p=hn(f),g=p.dataIndex;if(g!=null){var v=Ze();return v.set("series_index",p.seriesIndex),v.set("data_index",g),p.ssrType&&v.set("ssr_type",p.ssrType),v}});var c=a._zr=CC(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:pn(i.useDirtyRect,l),useCoarsePointer:pn(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Xy(Ge(c.flush,c),17),r=on(r),r&&WT(r,!0),a._theme=r,a._locale=a6(i.locale||$M),a._coordSysMgr=new Bd;var d=a._api=qk(a);function h(f,p){return f.__prio-p.__prio}return Ef(ig,h),Ef(ux,h),a._scheduler=new fk(a,d,ux,ig),a._messageCenter=new Yk,a._initEvents(),a.resize=Ge(a.resize,a),c.animation.on("frame",a._onframe,a),$k(c,a),Jk(c,a),bf(a),a}return t.prototype._onframe=function(){if(!this._disposed){e2(this);var e=this._scheduler;if(this[$i]){var r=this[$i].silent;this[wi]=!0;try{xc(this),Ds.update.call(this,null,this[$i].updateParams)}catch(l){throw this[wi]=!1,this[$i]=null,l}this._zr.flush(),this[wi]=!1,this[$i]=null,eh.call(this,r),nh.call(this,r)}else if(e.unfinished){var i=wH,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),ax(this,a),e.performVisualTasks(a),eg(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,r,i){if(!this[wi]){if(this._disposed){this.id;return}var a,o,s;if(rn(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[wi]=!0,!this._model||r){var l=new W6(this._api),u=this._theme,c=this._model=new IT;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},cx);var d={seriesTransition:s,optionChanged:!0};if(i)this[$i]={silent:a,updateParams:d},this[wi]=!1,this.getZr().wakeUp();else{try{xc(this),Ds.update.call(this,null,d)}catch(h){throw this[$i]=null,this[wi]=!1,h}this._ssr||this._zr.flush(),this[$i]=null,this[wi]=!1,eh.call(this,a),nh.call(this,a)}}},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||Zn.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var r=this._zr.painter;return r.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Zn.svgSupported){var e=this._zr,r=e.storage.getDisplayList();return mt(r,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var r=e.excludeComponents,i=this._model,a=[],o=this;mt(r,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return mt(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var r=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(ag[i]){var l=s,u=s,c=-s,d=-s,h=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();mt(Vl,function(S,_){if(S.group===i){var D=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(on(e)),C=S.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),c=o(C.right,c),d=o(C.bottom,d),h.push({dom:D,left:C.left,top:C.top})}}),l*=f,u*=f,c*=f,d*=f;var p=c-l,g=d-u,v=Aa.createCanvas(),y=CC(v,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var x="";return mt(h,function(S){var _=S.left-l,D=S.top-u;x+='<g transform="translate('+_+","+D+')">'+S.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=x,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new jn({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),mt(h,function(S){var _=new li({style:{x:S.left*f-l,y:S.top*f-u,image:S.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,r){return ix(this,"convertToPixel",e,r)},t.prototype.convertFromPixel=function(e,r){return ix(this,"convertFromPixel",e,r)},t.prototype.containPixel=function(e,r){if(this._disposed){this.id;return}var i=this._model,a,o=wd(i,e);return mt(o,function(s,l){l.indexOf("Models")>=0&&mt(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(a=a||d.containPoint(r,u))}},this)},this),!!a},t.prototype.getVisual=function(e,r){var i=this._model,a=wd(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Zy(s,l,r):qd(s,r)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;mt(RH,function(r){var i=function(a){var o=e.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&Ol(s,function(p){var g=hn(p);if(g&&g.dataIndex!=null){var v=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=v&&v.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=ye({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var h=c&&d!=null&&o.getComponent(c,d),f=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=r,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:f},e.trigger(r,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(r,i,e)}),mt(rh,function(r,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),mt(["selectchanged"],function(r){e._messageCenter.on(r,function(i){this.trigger(r,i)},e)}),Hz(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&HC(this.getDom(),hx,"");var r=this,i=r._api,a=r._model;mt(r._componentsViews,function(o){o.dispose(a,i)}),mt(r._chartsViews,function(o){o.dispose(a,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Vl[r.id]},t.prototype.resize=function(e){if(!this[wi]){if(this._disposed){this.id;return}this._zr.resize(e);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=e&&e.silent;this[$i]&&(a==null&&(a=this[$i].silent),i=!0,this[$i]=null),this[wi]=!0;try{i&&xc(this),Ds.update.call(this,{type:"resize",animation:ye({duration:0},e&&e.animation)})}catch(o){throw this[wi]=!1,o}this[wi]=!1,eh.call(this,a),nh.call(this,a)}}},t.prototype.showLoading=function(e,r){if(this._disposed){this.id;return}if(rn(e)&&(r=e,e=""),e=e||"default",this.hideLoading(),!!dx[e]){var i=dx[e](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var r=ye({},e);return r.type=rh[e.type],r},t.prototype.dispatchAction=function(e,r){if(this._disposed){this.id;return}if(rn(r)||(r={silent:!!r}),!!rg[e.type]&&this._model){if(this[wi]){this._pendingActions.push(e);return}var i=r.silent;ox.call(this,e,i);var a=r.flush;a?this._zr.flush():a!==!1&&Zn.browser.weChat&&this._throttledZrFlush(),eh.call(this,i),nh.call(this,i)}},t.prototype.updateLabelLayout=function(){ja.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var r=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){xc=function(d){var h=d._scheduler;h.restorePipelines(d._model),h.prepareStageTasks(),rx(d,!0),rx(d,!1),h.plan()},rx=function(d,h){for(var f=d._model,p=d._scheduler,g=h?d._componentsViews:d._chartsViews,v=h?d._componentsMap:d._chartsMap,y=d._zr,x=d._api,S=0;S<g.length;S++)g[S].__alive=!1;h?f.eachComponent(function(C,N){C!=="series"&&_(N)}):f.eachSeries(_);function _(C){var N=C.__requireNewView;C.__requireNewView=!1;var q="_ec_"+C.id+"_"+C.type,et=!N&&v[q];if(!et){var lt=so(C.type),ft=h?Lr.getClass(lt.main,lt.sub):gr.getClass(lt.sub);et=new ft,et.init(f,x),v[q]=et,g.push(et),y.add(et.group)}C.__viewId=et.__id=q,et.__alive=!0,et.__model=C,et.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!h&&p.prepareView(et,C,f,x)}for(var S=0;S<g.length;){var D=g[S];D.__alive?S++:(!h&&D.renderTask.dispose(),y.remove(D.group),D.dispose(f,x),g.splice(S,1),v[D.__id]===D&&delete v[D.__id],D.__id=D.group.__ecComponentInfo=null)}},tg=function(d,h,f,p,g){var v=d._model;if(v.setUpdatePayload(f),!p){mt([].concat(d._componentsViews).concat(d._chartsViews),D);return}var y={};y[p+"Id"]=f[p+"Id"],y[p+"Index"]=f[p+"Index"],y[p+"Name"]=f[p+"Name"];var x={mainType:p,query:y};g&&(x.subType=g);var S=f.excludeSeriesId,_;S!=null&&(_=Ze(),mt(cr(S),function(C){var N=Zr(C,null);N!=null&&_.set(N,!0)})),v&&v.eachComponent(x,function(C){var N=_&&_.get(C.id)!=null;if(!N)if(VM(f))if(C instanceof br)f.type===Sl&&!f.notBlur&&!C.get(["emphasis","disabled"])&&OF(C,f,d._api);else{var q=$0(C.mainType,C.componentIndex,f.name,d._api),et=q.focusSelf,lt=q.dispatchers;f.type===Sl&&et&&!f.notBlur&&Z0(C.mainType,C.componentIndex,d._api),lt&&mt(lt,function(ft){f.type===Sl?Wo(ft):Fo(ft)})}else Q0(f)&&C instanceof br&&(BF(C,f,d._api),NM(C),Sa(d))},d),v&&v.eachComponent(x,function(C){var N=_&&_.get(C.id)!=null;N||D(d[p==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},d);function D(C){C&&C.__alive&&C[h]&&C[h](C.__model,v,d._api,f)}},Ds={prepareAndUpdate:function(d){xc(this),Ds.update.call(this,d,{optionChanged:d.newOption!=null})},update:function(d,h){var f=this._model,p=this._api,g=this._zr,v=this._coordSysMgr,y=this._scheduler;if(f){f.setUpdatePayload(d),y.restoreData(f,d),y.performSeriesTasks(f),v.create(f,p),y.performDataProcessorTasks(f,d),ax(this,f),v.update(f,p),e(f),y.performVisualTasks(f,d),sx(this,f,p,d,h);var x=f.get("backgroundColor")||"transparent",S=f.get("darkMode");g.setBackgroundColor(x),S!=null&&S!=="auto"&&g.setDarkMode(S),ja.trigger("afterupdate",f,p)}},updateTransform:function(d){var h=this,f=this._model,p=this._api;if(f){f.setUpdatePayload(d);var g=[];f.eachComponent(function(y,x){if(y!=="series"){var S=h.getViewOfComponentModel(x);if(S&&S.__alive)if(S.updateTransform){var _=S.updateTransform(x,f,p,d);_&&_.update&&g.push(S)}else g.push(S)}});var v=Ze();f.eachSeries(function(y){var x=h._chartsMap[y.__viewId];if(x.updateTransform){var S=x.updateTransform(y,f,p,d);S&&S.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),e(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0,dirtyMap:v}),eg(this,f,p,d,{},v),ja.trigger("afterupdate",f,p)}},updateView:function(d){var h=this._model;h&&(h.setUpdatePayload(d),gr.markUpdateMethod(d,"updateView"),e(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0}),sx(this,h,this._api,d,{}),ja.trigger("afterupdate",h,this._api))},updateVisual:function(d){var h=this,f=this._model;f&&(f.setUpdatePayload(d),f.eachSeries(function(p){p.getData().clearAllVisual()}),gr.markUpdateMethod(d,"updateVisual"),e(f),this._scheduler.performVisualTasks(f,d,{visualType:"visual",setDirty:!0}),f.eachComponent(function(p,g){if(p!=="series"){var v=h.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,f,h._api,d)}}),f.eachSeries(function(p){var g=h._chartsMap[p.__viewId];g.updateVisual(p,f,h._api,d)}),ja.trigger("afterupdate",f,this._api))},updateLayout:function(d){Ds.update.call(this,d)}},ix=function(d,h,f,p){if(d._disposed){d.id;return}for(var g=d._model,v=d._coordSysMgr.getCoordinateSystems(),y,x=wd(g,f),S=0;S<v.length;S++){var _=v[S];if(_[h]&&(y=_[h](g,x,p))!=null)return y}},ax=function(d,h){var f=d._chartsMap,p=d._scheduler;h.eachSeries(function(g){p.updateStreamModes(g,f[g.__viewId])})},ox=function(d,h){var f=this,p=this.getModel(),g=d.type,v=d.escapeConnect,y=rg[g],x=y.actionInfo,S=(x.update||"update").split(":"),_=S.pop(),D=S[0]!=null&&so(S[0]);this[wi]=!0;var C=[d],N=!1;d.batch&&(N=!0,C=we(d.batch,function(kt){return kt=nn(ye({},kt),d),kt.batch=null,kt}));var q=[],et,lt=Q0(d),ft=VM(d);if(ft&&RM(this._api),mt(C,function(kt){if(et=y.action(kt,f._model,f._api),et=et||ye({},kt),et.type=x.event||et.type,q.push(et),ft){var Ot=_0(d),Nt=Ot.queryOptionMap,Xt=Ot.mainTypeSpecified,Vt=Xt?Nt.keys()[0]:"series";tg(f,_,kt,Vt),Sa(f)}else lt?(tg(f,_,kt,"series"),Sa(f)):D&&tg(f,_,kt,D.main,D.sub)}),_!=="none"&&!ft&&!lt&&!D)try{this[$i]?(xc(this),Ds.update.call(this,d),this[$i]=null):Ds[_].call(this,d)}catch(kt){throw this[wi]=!1,kt}if(N?et={type:x.event||g,escapeConnect:v,batch:q}:et=q[0],this[wi]=!1,!h){var _t=this._messageCenter;if(_t.trigger(et.type,et),lt){var Ct={type:"selectchanged",escapeConnect:v,selected:VF(p),isFromClick:d.isFromClick||!1,fromAction:d.type,fromActionPayload:d};_t.trigger(Ct.type,Ct)}}},eh=function(d){for(var h=this._pendingActions;h.length;){var f=h.shift();ox.call(this,f,d)}},nh=function(d){!d&&this.trigger("updated")},$k=function(d,h){d.on("rendered",function(f){h.trigger("rendered",f),d.animation.isFinished()&&!h[$i]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},Jk=function(d,h){d.on("mouseover",function(f){var p=f.target,g=Ol(p,Ad);g&&(RF(g,f,h._api),Sa(h))}).on("mouseout",function(f){var p=f.target,g=Ol(p,Ad);g&&(NF(g,f,h._api),Sa(h))}).on("click",function(f){var p=f.target,g=Ol(p,function(x){return hn(x).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",y=hn(g);h._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(d){d.clearColorPalette(),d.eachSeries(function(h){h.clearColorPalette()})}function r(d){var h=[],f=[],p=!1;if(d.eachComponent(function(x,S){var _=S.get("zlevel")||0,D=S.get("z")||0,C=S.getZLevelKey();p=p||!!C,(x==="series"?f:h).push({zlevel:_,z:D,idx:S.componentIndex,type:x,key:C})}),p){var g=h.concat(f),v,y;Ef(g,function(x,S){return x.zlevel===S.zlevel?x.z-S.z:x.zlevel-S.zlevel}),mt(g,function(x){var S=d.getComponent(x.type,x.idx),_=x.zlevel,D=x.key;v!=null&&(_=Math.max(v,_)),D?(_===v&&D!==y&&_++,y=D):y&&(_===v&&_++,y=""),v=_,S.setZLevel(_)})}}sx=function(d,h,f,p,g){r(h),Qk(d,h,f,p,g),mt(d._chartsViews,function(v){v.__alive=!1}),eg(d,h,f,p,g),mt(d._chartsViews,function(v){v.__alive||v.remove(h,f)})},Qk=function(d,h,f,p,g,v){mt(v||d._componentsViews,function(y){var x=y.__model;u(x,y),y.render(x,h,f,p),s(x,y),c(x,y)})},eg=function(d,h,f,p,g,v){var y=d._scheduler;g=ye(g||{},{updatedSeries:h.getSeries()}),ja.trigger("series:beforeupdate",h,f,g);var x=!1;h.eachSeries(function(S){var _=d._chartsMap[S.__viewId];_.__alive=!0;var D=_.renderTask;y.updatePayload(D,p),u(S,_),v&&v.get(S.uid)&&D.dirty(),D.perform(y.getPerformArgs(D))&&(x=!0),_.group.silent=!!S.get("silent"),o(S,_),NM(S)}),y.unfinished=x||y.unfinished,ja.trigger("series:layoutlabels",h,f,g),ja.trigger("series:transition",h,f,g),h.eachSeries(function(S){var _=d._chartsMap[S.__viewId];s(S,_),c(S,_)}),a(d,h),ja.trigger("series:afterupdate",h,f,g)},Sa=function(d){d[ex]=!0,d.getZr().wakeUp()},e2=function(d){d[ex]&&(d.getZr().storage.traverse(function(h){Zu(h)||i(h)}),d[ex]=!1)};function i(d){for(var h=[],f=d.currentStates,p=0;p<f.length;p++){var g=f[p];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}d.selected&&d.states.select&&h.push("select"),d.hoverState===sp&&d.states.emphasis?h.push("emphasis"):d.hoverState===Td&&d.states.blur&&h.push("blur"),d.useStates(h)}function a(d,h){var f=d._zr,p=f.storage,g=0;p.traverse(function(v){v.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!Zn.node&&!Zn.worker&&h.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=d._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function o(d,h){var f=d.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=f)})}function s(d,h){if(!d.preventAutoZ){var f=d.get("z")||0,p=d.get("zlevel")||0;h.eachRendered(function(g){return l(g,f,p,-1/0),!0})}}function l(d,h,f,p){var g=d.getTextContent(),v=d.getTextGuideLine(),y=d.isGroup;if(y)for(var x=d.childrenRef(),S=0;S<x.length;S++)p=Math.max(l(x[S],h,f,p),p);else d.z=h,d.zlevel=f,p=Math.max(d.z2,p);if(g&&(g.z=h,g.zlevel=f,isFinite(p)&&(g.z2=p+2)),v){var _=d.textGuideLineConfig;v.z=h,v.zlevel=f,isFinite(p)&&(v.z2=p+(_&&_.showAbove?1:-1))}return p}function u(d,h){h.eachRendered(function(f){if(!Zu(f)){var p=f.getTextContent(),g=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(d,h){var f=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),g=f.get("duration"),v=g>0?{duration:g,delay:f.get("delay"),easing:f.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Zu(y))return;if(y instanceof In&&HF(y),y.__dirty){var x=y.prevStates;x&&y.useStates(x)}if(p){y.stateTransition=v;var S=y.getTextContent(),_=y.getTextGuideLine();S&&(S.stateTransition=v),_&&(_.stateTransition=v)}y.__dirty&&i(y)}})}qk=function(d){return new(function(h){Zt(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},f.prototype.enterEmphasis=function(p,g){Wo(p,g),Sa(d)},f.prototype.leaveEmphasis=function(p,g){Fo(p,g),Sa(d)},f.prototype.enterBlur=function(p){IM(p),Sa(d)},f.prototype.leaveBlur=function(p){X0(p),Sa(d)},f.prototype.enterSelect=function(p){EM(p),Sa(d)},f.prototype.leaveSelect=function(p){LM(p),Sa(d)},f.prototype.getModel=function(){return d.getModel()},f.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},f.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},f}(ET))(d)},t2=function(d){function h(f,p){for(var g=0;g<f.length;g++){var v=f[g];v[nx]=p}}mt(rh,function(f,p){d._messageCenter.on(p,function(g){if(ag[d.group]&&d[nx]!==Uk){if(g&&g.escapeConnect)return;var v=d.makeActionFromEvent(g),y=[];mt(Vl,function(x){x!==d&&x.group===d.group&&y.push(x)}),h(y,Uk),mt(y,function(x){x[nx]!==LH&&x.dispatchAction(v)}),h(y,OH)}})})}}(),t}(la),lx=ng.prototype;lx.on=Gk("on"),lx.off=Gk("off"),lx.one=function(n,t,e){var r=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),r.off(n,i)}this.on.call(this,n,i,e)};var RH=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Hdt(n){}var rg={},rh={},ux=[],cx=[],ig=[],n2={},dx={},Vl={},ag={},NH=+new Date-0,BH=+new Date-0,hx="_echarts_instance_";function fx(n,t,e){var r=!(e&&e.ssr);if(r){var i=r2(n);if(i)return i}var a=new ng(n,t,e);return a.id="ec_"+NH++,Vl[a.id]=a,r&&HC(n,hx,a.id),t2(a),ja.trigger("afterinit",a),a}function Udt(n){if(isArray(n)){var t=n;n=null,each(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+BH++,each(t,function(e){e.group=n})}return ag[n]=!0,n}function Gdt(n){ag[n]=!1}var Kdt=null;function Xdt(n){isString(n)?n=Vl[n]:n instanceof ng||(n=r2(n)),n instanceof ng&&!n.isDisposed()&&n.dispose()}function r2(n){return Vl[kW(n,hx)]}function Ydt(n){return Vl[n]}function i2(n,t){n2[n]=t}function px(n){kn(cx,n)<0&&cx.push(n)}function a2(n,t){vx(ux,n,t,MH)}function VH(n){gx("afterinit",n)}function WH(n){gx("afterupdate",n)}function gx(n,t){ja.on(n,t)}function vo(n,t,e){qe(t)&&(e=t,t="");var r=rn(n)?n.type:[n,n={event:t}][0];n.event=(n.event||r).toLowerCase(),t=n.event,!rh[t]&&(Ti(Hk.test(r)&&Hk.test(t)),rg[r]||(rg[r]={action:e,actionInfo:n}),rh[t]=r)}function FH(n,t){Bd.register(n,t)}function Zdt(n){var t=CoordinateSystemManager.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function o2(n,t){vx(ig,n,t,Fk,"layout")}function Wl(n,t){vx(ig,n,t,jk,"visual")}var s2=[];function vx(n,t,e,r,i){if((qe(t)||rn(t))&&(e=t,t=r),!(kn(s2,e)>=0)){s2.push(e);var a=fk.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,n.push(a)}}function l2(n,t){dx[n]=t}function $dt(n){setPlatformAPI({createCanvas:n})}function og(n,t,e){var r=SH("registerMap");r&&r(n,t,e)}function Jdt(n){var t=getImpl("getMap");return t&&t(n)}var jH=vj;Wl(tx,Cz),Wl(qp,Mz),Wl(qp,Tz),Wl(tx,jz),Wl(qp,zz),Wl(zk,mH),px(WT),a2(bH,X6),l2("default",Dz),vo({type:Sl,event:Sl,update:Sl},Fr),vo({type:lp,event:lp,update:lp},Fr),vo({type:kd,event:kd,update:kd},Fr),vo({type:up,event:up,update:up},Fr),vo({type:Pd,event:Pd,update:Pd},Fr),i2("light",Vz),i2("dark",Wz);var sg={},u2=[],zH={registerPreprocessor:px,registerProcessor:a2,registerPostInit:VH,registerPostUpdate:WH,registerUpdateLifecycle:gx,registerAction:vo,registerCoordinateSystem:FH,registerLayout:o2,registerVisual:Wl,registerTransform:jH,registerLoading:l2,registerMap:og,registerImpl:xH,PRIORITY:EH,ComponentModel:Jn,ComponentView:Lr,SeriesModel:br,ChartView:gr,registerComponentModel:function(n){Jn.registerClass(n)},registerComponentView:function(n){Lr.registerClass(n)},registerSeriesModel:function(n){br.registerClass(n)},registerChartView:function(n){gr.registerClass(n)},registerSubTypeDefaulter:function(n,t){Jn.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){sW(n,t)}};function _n(n){if(Se(n)){mt(n,function(t){_n(t)});return}kn(u2,n)>=0||(u2.push(n),qe(n)&&(n={install:n}),n.install(zH))}function ih(n){return n==null?0:n.length||1}function c2(n){return n}var HH=function(){function n(t,e,r,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=r||c2,this._newKeyGetter=i||c2,this.context=a,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,r={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=r[s],u=ih(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,r={},i={},a=[],o=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=r[l],c=i[l],d=ih(u),h=ih(c);if(d>1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(d===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(d===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(d>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(d>1)for(var f=0;f<d;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},n.prototype._performRestAdd=function(t,e){for(var r=0;r<t.length;r++){var i=t[r],a=e[i],o=ih(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},n.prototype._initIndexMap=function(t,e,r,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(r[o]=s),!!e){var l=e[s],u=ih(l);u===0?(e[s]=o,a&&r.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},n}();const Go=HH;var UH=function(){function n(t,e){this._encode=t,this._schema=e}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function GH(n,t){var e={},r=e.encode={},i=Ze(),a=[],o=[],s={};mt(n.dimensions,function(h){var f=n.getDimensionInfo(h),p=f.coordDim;if(p){var g=f.coordDimIndex;mx(r,p)[g]=h,f.isExtraCoord||(i.set(p,1),KH(f.type)&&(a[0]=h),mx(s,p)[g]=n.getDimensionIndex(f.name)),f.defaultTooltip&&o.push(h)}vT.each(function(v,y){var x=mx(r,y),S=f.otherDims[y];S!=null&&S!==!1&&(x[S]=f.name)})});var l=[],u={};i.each(function(h,f){var p=r[f];u[f]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=we(l,function(h){return n.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(a=c.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,e.userOutput=new UH(s,t),e}function mx(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}function lg(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function KH(n){return!(n==="ordinal"||n==="time")}var XH=function(){function n(t){this.otherDims={},t!=null&&ye(this,t)}return n}();const ug=XH;var YH=Kn(),ZH={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},d2=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=p2(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return pn(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=HT(this.source),r=!g2(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===o)l=e?d.name:null,u=d.type,c=d.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!d||!d.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=ZH[u]||"f",c&&(i+=c.uid),i+="$"}var f=this.source,p=[f.seriesLayoutBy,f.startIndex,i].join("$$");return{dimensions:a,hash:p}},n.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,r=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[r];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),r++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},n.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function h2(n){return n instanceof d2}function f2(n){for(var t=Ze(),e=0;e<(n||[]).length;e++){var r=n[e],i=rn(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function p2(n){var t=YH(n);return t.dimNameMap||(t.dimNameMap=f2(n.dimensionsDefine))}function g2(n){return n>30}var ah=rn,ks=we,$H=typeof Int32Array>"u"?Array:Int32Array,JH="e\0\0",v2=-1,QH=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qH=["_approximateExtent"],m2,cg,oh,sh,yx,dg,xx,t8=function(){function n(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;h2(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var d=r[c],h=je(d)?new ug({name:d}):d instanceof ug?d:new ug(d),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(f),a[f]=h,u[f]!=null&&(l=!0),h.createInvertedIndices&&(s[f]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Ze();mt(o,function(v){g.set(a[v].storeDimIndex,v)})}}return n.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var r=this._dimIdxToName.get(e);if(r!=null)return r;var i=this._schema.getSourceDimension(e);if(i)return i.name},n.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},n.prototype._recognizeDimIndex=function(t){if($n(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(r){return e.hasOwnProperty(r)?e[r]:void 0}:function(r){return e[r]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var r=this._dimSummary;if(e==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[e]:null},n.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,r=e.encode[t];return(r||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,r){var i=this,a;if(t instanceof Iy&&(a=t),!a){var o=this.dimensions,s=_y(t)||mi(t)?new KT(t,o.length):t;a=new Iy;var l=ks(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,r)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=GH(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var r=this._store.appendValues(t,e.length),i=r.start,a=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&xx(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,r=0;r<e.length;r++){var i=this._dimInfos[e[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==zo&&!t.fillStorage},n.prototype._doInit=function(t,e){if(!(t>=e)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===va;if(l&&!i.pure)for(var u=[],c=t;c<e;c++){var d=i.getItem(c,u);if(!this.hasItemOption&&gW(d)&&(this.hasItemOption=!0),d){var h=d.name;a[c]==null&&h!=null&&(a[c]=Zr(h,null));var f=d.id;o[c]==null&&f!=null&&(o[c]=Zr(f,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)xx(this,c);m2(this)}},n.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},n.prototype.setCalculationInfo=function(t,e){ah(t)?ye(this._calculationInfo,t):this._calculationInfo[t]=e},n.prototype.getName=function(t){var e=this.getRawIndex(t),r=this._nameList[e];return r==null&&this._nameDimIdx!=null&&(r=oh(this,this._nameDimIdx,e)),r==null&&(r=""),r},n.prototype._getCategory=function(t,e){var r=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},n.prototype.getId=function(t){return cg(this,this.getRawIndex(t))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(t,e){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,e)},n.prototype.getByRawIndex=function(t,e){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,e)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},n.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},n.prototype.getValues=function(t,e){var r=this,i=this._store;return Se(t)?i.getValues(ks(t,function(a){return r._getStoreDimIndex(a)}),e):i.getValues(t)},n.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,r=0,i=e.length;r<i;r++)if(isNaN(this._store.get(e[r],t)))return!1;return!0},n.prototype.indexOfName=function(t){for(var e=0,r=this._store.count();e<r;e++)if(this.getName(e)===t)return e;return-1},n.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},n.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},n.prototype.rawIndexOf=function(t,e){var r=t&&this._invertedIndicesMap[t],i=r[e];return i==null||isNaN(i)?v2:i},n.prototype.indicesOfNearest=function(t,e,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,r)},n.prototype.each=function(t,e,r){"use strict";qe(t)&&(r=e,e=t,t=[]);var i=r||this,a=ks(sh(t),this._getStoreDimIndex,this);this._store.each(a,i?Ge(e,i):e)},n.prototype.filterSelf=function(t,e,r){"use strict";qe(t)&&(r=e,e=t,t=[]);var i=r||this,a=ks(sh(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ge(e,i):e),this},n.prototype.selectRange=function(t){"use strict";var e=this,r={},i=Nn(t),a=[];return mt(i,function(o){var s=e._getStoreDimIndex(o);r[s]=t[o],a.push(s)}),this._store=this._store.selectRange(r),this},n.prototype.mapArray=function(t,e,r){"use strict";qe(t)&&(r=e,e=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},r),i},n.prototype.map=function(t,e,r,i){"use strict";var a=r||i||this,o=ks(sh(t),this._getStoreDimIndex,this),s=dg(this);return s._store=this._store.map(o,a?Ge(e,a):e),s},n.prototype.modify=function(t,e,r,i){var a=this,o=r||i||this,s=ks(sh(t),this._getStoreDimIndex,this);this._store.modify(s,o?Ge(e,o):e)},n.prototype.downSample=function(t,e,r,i){var a=dg(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,r,i),a},n.prototype.lttbDownSample=function(t,e){var r=dg(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),r},n.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},n.prototype.getItemModel=function(t){var e=this.hostModel,r=this.getRawDataItem(t);return new pr(r,e,e&&e.ecModel)},n.prototype.diff=function(t){var e=this;return new Go(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return cg(t,r)},function(r){return cg(e,r)})},n.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},n.prototype.setVisual=function(t,e){this._visual=this._visual||{},ah(t)?ye(this._visual,t):this._visual[t]=e},n.prototype.getItemVisual=function(t,e){var r=this._itemVisuals[t],i=r&&r[e];return i==null?this.getVisual(e):i},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(t,e){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),Se(a)?a=a.slice():ah(a)&&(a=ye({},a)),i[e]=a),a},n.prototype.setItemVisual=function(t,e,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ah(e)?ye(i,e):i[e]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){ah(t)?ye(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,r){this._itemLayouts[t]=r?ye(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var r=this.hostModel&&this.hostModel.seriesIndex;z0(r,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){mt(this._graphicEls,function(r,i){r&&t&&t.call(e,r,i)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:ks(this.dimensions,this._getDimInfo,this),this.hostModel)),yx(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var r=this[t];qe(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return e.apply(this,[i].concat(Sm(arguments)))})},n.internalField=function(){m2=function(t){var e=t._invertedIndicesMap;mt(e,function(r,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){r=e[i]=new $H(o.categories.length);for(var l=0;l<r.length;l++)r[l]=v2;for(var l=0;l<s.count();l++)r[s.get(a.storeDimIndex,l)]=l}})},oh=function(t,e,r){return Zr(t._getCategory(e,r),null)},cg=function(t,e){var r=t._idList[e];return r==null&&t._idDimIdx!=null&&(r=oh(t,t._idDimIdx,e)),r==null&&(r=JH+e),r},sh=function(t){return Se(t)||(t=t!=null?[t]:[]),t},dg=function(t){var e=new n(t._schema?t._schema:ks(t.dimensions,t._getDimInfo,t),t.hostModel);return yx(e,t),e},yx=function(t,e){mt(QH.concat(e.__wrappedMethods||[]),function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t.__wrappedMethods=e.__wrappedMethods,mt(qH,function(r){t[r]=on(e[r])}),t._calculationInfo=ye({},e._calculationInfo)},xx=function(t,e){var r=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=r[e],l=i[e];if(s==null&&a!=null&&(r[e]=s=oh(t,a,e)),l==null&&o!=null&&(i[e]=l=oh(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}}}(),n}();const hi=t8;function y2(n,t){return Sc(n,t).dimensions}function Sc(n,t){_y(n)||(n=Cy(n)),t=t||{};var e=t.coordDimensions||[],r=t.dimensionsDefine||n.dimensionsDefine||[],i=Ze(),a=[],o=n8(n,e,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&g2(o),l=r===n.dimensionsDefine,u=l?p2(n):f2(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(n,o));for(var d=Ze(c),h=new aD(o),f=0;f<h.length;f++)h[f]=-1;function p(et){var lt=h[et];if(lt<0){var ft=r[et],_t=rn(ft)?ft:{name:ft},Ct=new ug,kt=_t.name;kt!=null&&u.get(kt)!=null&&(Ct.name=Ct.displayName=kt),_t.type!=null&&(Ct.type=_t.type),_t.displayName!=null&&(Ct.displayName=_t.displayName);var Ot=a.length;return h[et]=Ot,Ct.storeDimIndex=et,a.push(Ct),Ct}return a[lt]}if(!s)for(var f=0;f<o;f++)p(f);d.each(function(et,lt){var ft=cr(et).slice();if(ft.length===1&&!je(ft[0])&&ft[0]<0){d.set(lt,!1);return}var _t=d.set(lt,[]);mt(ft,function(Ct,kt){var Ot=je(Ct)?u.get(Ct):Ct;Ot!=null&&Ot<o&&(_t[kt]=Ot,v(p(Ot),lt,kt))})});var g=0;mt(e,function(et){var lt,ft,_t,Ct;if(je(et))lt=et,Ct={};else{Ct=et,lt=Ct.name;var kt=Ct.ordinalMeta;Ct.ordinalMeta=null,Ct=ye({},Ct),Ct.ordinalMeta=kt,ft=Ct.dimsDef,_t=Ct.otherDims,Ct.name=Ct.coordDim=Ct.coordDimIndex=Ct.dimsDef=Ct.otherDims=null}var Ot=d.get(lt);if(Ot!==!1){if(Ot=cr(Ot),!Ot.length)for(var Nt=0;Nt<(ft&&ft.length||1);Nt++){for(;g<o&&p(g).coordDim!=null;)g++;g<o&&Ot.push(g++)}mt(Ot,function(Xt,Vt){var Ut=p(Xt);if(l&&Ct.type!=null&&(Ut.type=Ct.type),v(nn(Ut,Ct),lt,Vt),Ut.name==null&&ft){var Yt=ft[Vt];!rn(Yt)&&(Yt={name:Yt}),Ut.name=Ut.displayName=Yt.name,Ut.defaultTooltip=Yt.defaultTooltip}_t&&nn(Ut.otherDims,_t)})}});function v(et,lt,ft){vT.get(lt)!=null?et.otherDims[lt]=ft:(et.coordDim=lt,et.coordDimIndex=ft,i.set(lt,!0))}var y=t.generateCoord,x=t.generateCoordCount,S=x!=null;x=y?x||1:0;var _=y||"value";function D(et){et.name==null&&(et.name=et.coordDim)}if(s)mt(a,function(et){D(et)}),a.sort(function(et,lt){return et.storeDimIndex-lt.storeDimIndex});else for(var C=0;C<o;C++){var N=p(C),q=N.coordDim;q==null&&(N.coordDim=r8(_,i,S),N.coordDimIndex=0,(!y||x<=0)&&(N.isExtraCoord=!0),x--),D(N),N.type==null&&(ST(n,C)===di.Must||N.isExtraCoord&&(N.otherDims.itemName!=null||N.otherDims.seriesName!=null))&&(N.type="ordinal")}return e8(a),new d2({source:n,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function e8(n){for(var t=Ze(),e=0;e<n.length;e++){var r=n[e],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function n8(n,t,e,r){var i=Math.max(n.dimensionsDetectedCount||1,t.length,e.length,r||0);return mt(t,function(a){var o;rn(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function r8(n,t,e){if(e||t.hasKey(n)){for(var r=0;t.hasKey(n+r);)r++;n+=r}return t.set(n,!0),n}var i8=function(){function n(t){this.coordSysDims=[],this.axisMap=Ze(),this.categoryAxisMap=Ze(),this.coordSysName=t}return n}();function a8(n){var t=n.get("coordinateSystem"),e=new i8(t),r=o8[t];if(r)return r(n,e,e.axisMap,e.categoryAxisMap),e}var o8={cartesian2d:function(n,t,e,r){var i=n.getReferringComponents("xAxis",Kr).models[0],a=n.getReferringComponents("yAxis",Kr).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),wc(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),wc(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,r){var i=n.getReferringComponents("singleAxis",Kr).models[0];t.coordSysDims=["single"],e.set("single",i),wc(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(n,t,e,r){var i=n.getReferringComponents("polar",Kr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),wc(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),wc(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,r){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,r){var i=n.ecModel,a=i.getComponent("parallel",n.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();mt(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];e.set(c,u),wc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function wc(n){return n.get("type")==="category"}function x2(n,t,e){e=e||{};var r=e.byIndex,i=e.stackedCoordDimension,a,o,s;s8(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(n&&n.get("stack")),u,c,d,h;if(mt(a,function(x,S){je(x)&&(a[S]=x={name:x}),l&&!x.isExtraCoord&&(!r&&!u&&x.ordinalMeta&&(u=x),!c&&x.type!=="ordinal"&&x.type!=="time"&&(!i||i===x.coordDim)&&(c=x))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,h="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var f=c.coordDim,p=c.type,g=0;mt(a,function(x){x.coordDim===f&&g++});var v={name:d,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(h,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:d}}function s8(n){return!h2(n.schema)}function Ko(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function Sx(n,t){return Ko(n,t)?n.getCalculationInfo("stackResultDimension"):t}function l8(n,t){var e=n.get("coordinateSystem"),r=Bd.get(e),i;return t&&t.coordSysDims&&(i=we(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=lg(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function u8(n,t,e){var r,i;return e&&mt(n,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(n[r].otherDims.itemName=0),r}function c8(n,t,e){e=e||{};var r=t.getSourceManager(),i,a=!1;n?(a=!0,i=Cy(n)):(i=r.getSource(),a=i.sourceFormat===va);var o=a8(t),s=l8(t,o),l=e.useEncodeDefaulter,u=qe(l)?l:l?xn(xT,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},d=Sc(i,c),h=u8(d.dimensions,e.createInvertedIndices,o),f=a?null:r.getSharedDataStore(d),p=x2(t,{schema:d,store:f}),g=new hi(d,t);g.setCalculationInfo(p);var v=h!=null&&d8(i)?function(y,x,S,_){return _===h?S:this.defaultDimValueGetter(y,x,S,_)}:null;return g.hasItemOption=!1,g.initData(a?i:f,null,v),g}function d8(n){if(n.sourceFormat===va){var t=h8(n.data||[]);return!Se(Uu(t))}}function h8(n){for(var t=0;t<n.length&&n[t]==null;)t++;return n[t]}const mo=c8;var S2=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(e)||(r[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();qf(S2);const Xo=S2;var f8=0,p8=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++f8}return n.createByAxisModel=function(t){var e=t.option,r=e.data,i=r&&we(r,g8);return new n({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,r=this._needCollect;if(!je(t)&&!r)return t;if(r&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(r?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=Ze(this.categories))},n}();function g8(n){return rn(n)&&n.value!=null?n.value:n+""}const _x=p8;function Qdt(n){var t=Math.pow(10,quantityExponent(Math.abs(n))),e=Math.abs(n/t);return e===0||e===1||e===2||e===3||e===5}function bx(n){return n.type==="interval"||n.type==="log"}function v8(n,t,e,r){var i={},a=n[1]-n[0],o=i.interval=IC(a/t,!0);e!=null&&o<e&&(o=i.interval=e),r!=null&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=w2(o),l=i.niceTickExtent=[Or(Math.ceil(n[0]/o)*o,s),Or(Math.floor(n[1]/o)*o,s)];return m8(l,n),i}function Cx(n){var t=Math.pow(10,x0(n)),e=n/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Or(e*t)}function w2(n){return oo(n)+2}function _2(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function m8(n,t){!isFinite(n[0])&&(n[0]=t[0]),!isFinite(n[1])&&(n[1]=t[1]),_2(n,0,t),_2(n,1,t),n[0]>n[1]&&(n[0]=n[1])}function hg(n,t){return n>=t[0]&&n<=t[1]}function fg(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function pg(n,t){return n*(t[1]-t[0])+t[0]}var b2=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new _x({})),Se(i)&&(i=new _x({categories:we(i,function(a){return rn(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(e){return e==null?NaN:je(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),hg(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),fg(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(pg(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],r=this._extent,i=r[0];i<=r[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(e){var r=this._ticksByOrdinalNumber;return r&&e>=0&&e<r.length?r[e]:e},t.prototype.getRawOrdinalNumber=function(e){var r=this._ordinalNumbersByTick;return r&&e>=0&&e<r.length?r[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var r=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},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}(Xo);Xo.registerClass(b2);const Mx=b2;var Fl=Or,C2=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return hg(e,this._extent)},t.prototype.normalize=function(e){return fg(e,this._extent)},t.prototype.scale=function(e){return pg(e,this._extent)},t.prototype.setExtent=function(e,r){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(e){var r=this._extent;e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=w2(e)},t.prototype.getTicks=function(e){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:Fl(a[0]-r,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Fl(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(e?s.push({value:Fl(c+r,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],d=s.value-l.value,h=d/e;u<e-1;){var f=Fl(l.value+(u+1)*h);f>a[0]&&f<a[1]&&c.push(f),u++}i.push(c)}return i},t.prototype.getLabel=function(e,r){if(e==null)return"";var i=r&&r.precision;i==null?i=oo(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Fl(e.value,i,!0);return uT(a)},t.prototype.calcNiceTicks=function(e,r,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=v8(a,e,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);e.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var a=r[1]-r[0];isFinite(a)||(r[0]=0,r[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(r[0]=Fl(Math.floor(r[0]/o)*o)),e.fixMax||(r[1]=Fl(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(e,r){this._niceExtent=[e,r]},t.type="interval",t}(Xo);Xo.registerClass(C2);const Ps=C2;var M2=typeof Float32Array<"u",y8=M2?Float32Array:Array;function yo(n){return Se(n)?M2?new Float32Array(n):n:new y8(n)}var Tx="__ec_stack_";function Dx(n){return n.get("stack")||Tx+n.seriesIndex}function kx(n){return n.dim+n.index}function x8(n){var t=[],e=n.axis,r="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<n.count;a++)t.push(nn({bandWidth:i,axisKey:r,stackId:Tx+a},n));for(var o=k2(t),s=[],a=0;a<n.count;a++){var l=o[r][Tx+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function T2(n,t){var e=[];return t.eachSeriesByType(n,function(r){I2(r)&&e.push(r)}),e}function S8(n){var t={};mt(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var d=l.getData(),h=c.dim+"_"+c.index,f=d.getDimensionIndex(d.mapDimension(c.dim)),p=d.getStore(),g=0,v=p.count();g<v;++g){var y=p.get(f,g);t[h]?t[h].push(y):t[h]=[y]}});var e={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[r]=a}}return e}function D2(n){var t=S8(n),e=[];return mt(n,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),d=a.scale.getExtent(),h=Math.abs(d[1]-d[0]);s=u?c/h*u:c}else{var f=r.getData();s=Math.abs(o[1]-o[0])/f.count()}var p=Oe(r.get("barWidth"),s),g=Oe(r.get("barMaxWidth"),s),v=Oe(r.get("barMinWidth")||(E2(r)?.5:1),s),y=r.get("barGap"),x=r.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:x,axisKey:kx(a),stackId:Dx(r)})}),k2(e)}function k2(n){var t={};mt(n,function(r,i){var a=r.axisKey,o=r.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var h=r.barMinWidth;h&&(l[u].minWidth=h);var f=r.barGap;f!=null&&(s.gap=f);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return mt(t,function(r,i){e[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Nn(a).length;s=Math.max(35-l*4,15)+"%"}var u=Oe(s,o),c=Oe(r.gap,1),d=r.remainedWidth,h=r.autoWidthCount,f=(d-u)/(h+(h-1)*c);f=Math.max(f,0),mt(a,function(y){var x=y.maxWidth,S=y.minWidth;if(y.width){var _=y.width;x&&(_=Math.min(_,x)),S&&(_=Math.max(_,S)),y.width=_,d-=_+c*_,h--}else{var _=f;x&&x<_&&(_=Math.min(x,d)),S&&S>_&&(_=S),_!==f&&(y.width=_,d-=_+c*_,h--)}}),f=(d-u)/(h+(h-1)*c),f=Math.max(f,0);var p=0,g;mt(a,function(y,x){y.width||(y.width=f),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var v=-p/2;mt(a,function(y,x){e[i][x]=e[i][x]||{bandWidth:o,offset:v,width:y.width},v+=y.width*(1+c)})}),e}function w8(n,t,e){if(n&&t){var r=n[kx(t)];return r!=null&&e!=null?r[Dx(e)]:r}}function P2(n,t){var e=T2(n,t),r=D2(e);mt(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Dx(i),u=r[kx(s)][l],c=u.offset,d=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function A2(n){return{seriesType:n,plan:lc(),reset:function(t){if(I2(t)){var e=t.getData(),r=t.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),c=e.getCalculationInfo("stackResultDimension"),d=Ko(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),f=_8(i,a),p=E2(t),g=t.get("barMinHeight")||0,v=c&&e.getDimensionIndex(c),y=e.getLayout("size"),x=e.getLayout("offset");return{progress:function(S,_){for(var D=S.count,C=p&&yo(D*3),N=p&&l&&yo(D*3),q=p&&yo(D),et=r.master.getRect(),lt=h?et.width:et.height,ft,_t=_.getStore(),Ct=0;(ft=S.next())!=null;){var kt=_t.get(d?v:o,ft),Ot=_t.get(s,ft),Nt=f,Xt=void 0;d&&(Xt=+kt-_t.get(o,ft));var Vt=void 0,Ut=void 0,Yt=void 0,ue=void 0;if(h){var ie=r.dataToPoint([kt,Ot]);if(d){var Gt=r.dataToPoint([Xt,Ot]);Nt=Gt[0]}Vt=Nt,Ut=ie[1]+x,Yt=ie[0]-Nt,ue=y,Math.abs(Yt)<g&&(Yt=(Yt<0?-1:1)*g)}else{var ie=r.dataToPoint([Ot,kt]);if(d){var Gt=r.dataToPoint([Ot,Xt]);Nt=Gt[1]}Vt=ie[0]+x,Ut=Nt,Yt=y,ue=ie[1]-Nt,Math.abs(ue)<g&&(ue=(ue<=0?-1:1)*g)}p?(C[Ct]=Vt,C[Ct+1]=Ut,C[Ct+2]=h?Yt:ue,N&&(N[Ct]=h?et.x:Vt,N[Ct+1]=h?Ut:et.y,N[Ct+2]=lt),q[ft]=ft):_.setItemLayout(ft,{x:Vt,y:Ut,width:Yt,height:ue}),Ct+=3}p&&_.setLayout({largePoints:C,largeDataIndices:q,largeBackgroundPoints:N,valueAxisHorizontal:h})}}}}}}function I2(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function E2(n){return n.pipelineContext&&n.pipelineContext.large}function _8(n,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var b8=function(n,t,e,r){for(;e<r;){var i=e+r>>>1;n[i][1]<t?e=i+1:r=i}return e},L2=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="time",r}return t.prototype.getLabel=function(e){var r=this.getSetting("useUTC");return mp(e.value,qM[l6(qu(this._minLevelUnit))]||qM.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,r,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return u6(e,r,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,r=this._extent,i=[];if(!e)return i;i.push({value:r[0],level:0});var a=this.getSetting("useUTC"),o=A8(this._minLevelUnit,this._approxInterval,a,r);return i=i.concat(o),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var r=this._extent;if(r[0]===r[1]&&(r[0]-=ga,r[1]+=ga),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-ga}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,r,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=gg.length,l=Math.min(b8(gg,this._approxInterval,0,s),s-1);this._interval=gg[l][1],this._minLevelUnit=gg[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return $n(e)?e:+Ra(e)},t.prototype.contain=function(e){return hg(this.parse(e),this._extent)},t.prototype.normalize=function(e){return fg(this.parse(e),this._extent)},t.prototype.scale=function(e){return pg(e,this._extent)},t.type="time",t}(Ps),gg=[["second",sy],["minute",ly],["hour",Ed],["quarter-day",Ed*6],["half-day",Ed*12],["day",ga*1.2],["half-week",ga*3.5],["week",ga*7],["month",ga*31],["quarter",ga*95],["half-year",QM/2],["year",QM]];function C8(n,t,e,r){var i=Ra(t),a=Ra(e),o=function(p){return nT(i,p,r)===nT(a,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},h=function(){return d()&&o("second")},f=function(){return h()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return f()}}function M8(n,t){return n/=ga,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function T8(n){var t=30*ga;return n/=t,n>6?6:n>3?3:n>2?2:1}function D8(n){return n/=Ed,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function O2(n,t){return n/=t?ly:sy,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function k8(n){return IC(n,!0)}function P8(n,t,e){var r=new Date(n);switch(qu(t)){case"year":case"month":r[rT(e)](0);case"day":r[iT(e)](1);case"hour":r[aT(e)](0);case"minute":r[oT(e)](0);case"second":r[sT(e)](0),r[lT(e)](0)}return r.getTime()}function A8(n,t,e,r){var i=1e4,a=tT,o=0;function s(lt,ft,_t,Ct,kt,Ot,Nt){for(var Xt=new Date(ft),Vt=ft,Ut=Xt[Ct]();Vt<_t&&Vt<=r[1];)Nt.push({value:Vt}),Ut+=lt,Xt[kt](Ut),Vt=Xt.getTime();Nt.push({value:Vt,notAdd:!0})}function l(lt,ft,_t){var Ct=[],kt=!ft.length;if(!C8(qu(lt),r[0],r[1],e)){kt&&(ft=[{value:P8(new Date(r[0]),lt,e)},{value:r[1]}]);for(var Ot=0;Ot<ft.length-1;Ot++){var Nt=ft[Ot].value,Xt=ft[Ot+1].value;if(Nt!==Xt){var Vt=void 0,Ut=void 0,Yt=void 0,ue=!1;switch(lt){case"year":Vt=Math.max(1,Math.round(t/ga/365)),Ut=cy(e),Yt=c6(e);break;case"half-year":case"quarter":case"month":Vt=T8(t),Ut=tc(e),Yt=rT(e);break;case"week":case"half-week":case"day":Vt=M8(t,31),Ut=yp(e),Yt=iT(e),ue=!0;break;case"half-day":case"quarter-day":case"hour":Vt=D8(t),Ut=Od(e),Yt=aT(e);break;case"minute":Vt=O2(t,!0),Ut=xp(e),Yt=oT(e);break;case"second":Vt=O2(t,!1),Ut=Sp(e),Yt=sT(e);break;case"millisecond":Vt=k8(t),Ut=wp(e),Yt=lT(e);break}s(Vt,Nt,Xt,Ut,Yt,ue,Ct),lt==="year"&&_t.length>1&&Ot===0&&_t.unshift({value:_t[0].value-Vt})}}for(var Ot=0;Ot<Ct.length;Ot++)_t.push(Ct[Ot]);return Ct}}for(var u=[],c=[],d=0,h=0,f=0;f<a.length&&o++<i;++f){var p=qu(a[f]);if(s6(a[f])){l(a[f],u[u.length-1]||[],c);var g=a[f+1]?qu(a[f+1]):null;if(p!==g){if(c.length){h=d,c.sort(function(lt,ft){return lt.value-ft.value});for(var v=[],y=0;y<c.length;++y){var x=c[y].value;(y===0||c[y-1].value!==x)&&(v.push(c[y]),x>=r[0]&&x<=r[1]&&d++)}var S=(r[1]-r[0])/t;if(d>S*1.5&&h>S/1.5||(u.push(v),d>S||n===a[f]))break}c=[]}}}for(var _=sr(we(u,function(lt){return sr(lt,function(ft){return ft.value>=r[0]&&ft.value<=r[1]&&!ft.notAdd})}),function(lt){return lt.length>0}),D=[],C=_.length-1,f=0;f<_.length;++f)for(var N=_[f],q=0;q<N.length;++q)D.push({value:N[q].value,level:C-f});D.sort(function(lt,ft){return lt.value-ft.value});for(var et=[],f=0;f<D.length;++f)(f===0||D[f].value!==D[f-1].value)&&et.push(D[f]);return et}Xo.registerClass(L2);const R2=L2;var N2=Xo.prototype,lh=Ps.prototype,I8=Or,E8=Math.floor,L8=Math.ceil,vg=Math.pow,za=Math.log,Px=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Ps,e._interval=0,e}return t.prototype.getTicks=function(e){var r=this._originalScale,i=this._extent,a=r.getExtent(),o=lh.getTicks.call(this,e);return we(o,function(s){var l=s.value,u=Or(vg(this.base,l));return u=l===i[0]&&this._fixMin?mg(u,a[0]):u,u=l===i[1]&&this._fixMax?mg(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,r){var i=za(this.base);e=za(Math.max(0,e))/i,r=za(Math.max(0,r))/i,lh.setExtent.call(this,e,r)},t.prototype.getExtent=function(){var e=this.base,r=N2.getExtent.call(this);r[0]=vg(e,r[0]),r[1]=vg(e,r[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(r[0]=mg(r[0],a[0])),this._fixMax&&(r[1]=mg(r[1],a[1])),r},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var r=this.base;e[0]=za(e[0])/za(r),e[1]=za(e[1])/za(r),N2.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,r){this.unionExtent(e.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(e){e=e||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var a=pW(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Or(L8(r[0]/a)*a),Or(E8(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){lh.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 e=za(e)/za(this.base),hg(e,this._extent)},t.prototype.normalize=function(e){return e=za(e)/za(this.base),fg(e,this._extent)},t.prototype.scale=function(e){return e=pg(e,this._extent),vg(this.base,e)},t.type="log",t}(Xo),B2=Px.prototype;B2.getMinorTicks=lh.getMinorTicks,B2.getLabel=lh.getLabel;function mg(n,t){return I8(n,oo(t))}Xo.registerClass(Px);const O8=Px;var R8=function(){function n(t,e,r){this._prepareParams(t,e,r)}return n.prototype._prepareParams=function(t,e,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);qe(a)?this._modelMinNum=yg(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=yg(t,a));var o=this._modelMaxRaw=e.get("max",!0);if(qe(o)?this._modelMaxNum=yg(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=yg(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Se(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Oa(l[0],1),Oa(l[1],1)]}},n.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,r=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:r-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:r+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=td(s)||td(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,f=this._determinedMax;return h!=null&&(s=h,u=!0),f!=null&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(t,e){this[B8[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){var r=N8[t];this[r]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),N8={min:"_determinedMin",max:"_determinedMax"},B8={min:"_dataMin",max:"_dataMax"};function V2(n,t,e){var r=n.rawExtentInfo;return r||(r=new R8(n,t,e),n.rawExtentInfo=r,r)}function yg(n,t){return t==null?null:td(t)?NaN:n.parse(t)}function W2(n,t){var e=n.type,r=V2(n,t,n.getExtent()).calculate();n.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&e==="time"){var s=T2("bar",o),l=!1;if(mt(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var u=D2(s),c=V8(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function V8(n,t,e,r){var i=e.axis.getExtent(),a=i[1]-i[0],o=w8(r,e.axis);if(o===void 0)return{min:n,max:t};var s=1/0;mt(o,function(f){s=Math.min(f.offset,s)});var l=-1/0;mt(o,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-n,d=1-(s+l)/a,h=c/d-c;return t+=h*(l/u),n-=h*(s/u),{min:n,max:t}}function jl(n,t){var e=t,r=W2(n,e),i=r.extent,a=e.get("splitNumber");n instanceof O8&&(n.base=e.get("logBase"));var o=n.type,s=e.get("interval"),l=o==="interval"||o==="time";n.setExtent(i[0],i[1]),n.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function uh(n,t){if(t=t||n.get("type"),t)switch(t){case"category":return new Mx({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new R2({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Xo.getClass(t)||Ps)}}function W8(n){var t=n.scale.getExtent(),e=t[0],r=t[1];return!(e>0&&r>0||e<0&&r<0)}function ch(n){var t=n.getLabelModel().get("formatter"),e=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(i,a){return n.scale.getFormattedLabel(i,a,r)}}(t):je(t)?function(r){return function(i){var a=n.scale.getLabel(i),o=r.replace("{value}",a!=null?a:"");return o}}(t):qe(t)?function(r){return function(i,a){return e!=null&&(a=i.value-e),r(Ax(n,i),a,i.level!=null?{level:i.level}:null)}}(t):function(r){return n.scale.getLabel(r)}}function Ax(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function F8(n){var t=n.model,e=n.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var r,i,a=e.getExtent();e instanceof Mx?i=e.count():(r=e.getTicks(),i=r.length);var o=n.getLabelModel(),s=ch(n),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var d=r?r[c]:{value:a[0]+c},h=s(d,c),f=o.getTextRect(h),p=j8(f,o.get("rotate")||0);l?l.union(p):l=p}return l}}function j8(n,t){var e=t*Math.PI/180,r=n.width,i=n.height,a=r*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=r*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new wn(n.x,n.y,a,o);return s}function Ix(n){var t=n.get("interval");return t==null?"auto":t}function F2(n){return n.type==="category"&&Ix(n.getLabelModel())===0}function xg(n,t){var e={};return mt(n.mapDimensionsAll(t),function(r){e[Sx(n,r)]=!0}),Nn(e)}function z8(n,t,e){t&&mt(xg(t,e),function(r){var i=t.getApproximateExtent(r);i[0]<n[0]&&(n[0]=i[0]),i[1]>n[1]&&(n[1]=i[1])})}var _c=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},n.prototype.getCoordSysModel=function(){},n}();function qdt(n){return mo(null,n)}var tht={isDimensionStacked:Ko,enableDataStack:x2,getStackedDimension:Sx};function eht(n,t){var e=t;t instanceof pr||(e=new pr(t));var r=uh(e);return r.setExtent(n[0],n[1]),jl(r,e),r}function nht(n){Wr(n,_c)}function Sg(n,t){return t=t||{},mr(n,null,null,t.state!=="normal")}function rht(n,t,e,r,i,a,o,s){var l=new Wn({style:{text:n,font:t,align:e,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function iht(n){var t=ComponentModel.extend(n);return ComponentModel.registerClass(t),t}function aht(n){var t=ComponentView.extend(n);return ComponentView.registerClass(t),t}function j2(n){var t=br.extend(n);return br.registerClass(t),t}function z2(n){var t=gr.extend(n);return gr.registerClass(t),t}var dh=Math.PI*2,zl=ho.CMD,H8=["top","right","bottom","left"];function U8(n,t,e,r,i){var a=e.width,o=e.height;switch(n){case"top":r.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":r.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":r.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":r.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function G8(n,t,e,r,i,a,o,s,l){o-=n,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*e+n,d=s*e+t;if(Math.abs(r-i)%dh<1e-4)return l[0]=c,l[1]=d,u-e;if(a){var h=r;r=ia(i),i=ia(h)}else r=ia(r),i=ia(i);r>i&&(i+=dh);var f=Math.atan2(s,o);if(f<0&&(f+=dh),f>=r&&f<=i||f+dh>=r&&f+dh<=i)return l[0]=c,l[1]=d,u-e;var p=e*Math.cos(r)+n,g=e*Math.sin(r)+t,v=e*Math.cos(i)+n,y=e*Math.sin(i)+t,x=(p-o)*(p-o)+(g-s)*(g-s),S=(v-o)*(v-o)+(y-s)*(y-s);return x<S?(l[0]=p,l[1]=g,Math.sqrt(x)):(l[0]=v,l[1]=y,Math.sqrt(S))}function wg(n,t,e,r,i,a,o,s){var l=i-n,u=a-t,c=e-n,d=r-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var f=l*c+u*d,p=f/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var g=o[0]=n+p*c,v=o[1]=t+p*d;return Math.sqrt((g-i)*(g-i)+(v-a)*(v-a))}function H2(n,t,e,r,i,a,o){e<0&&(n=n+e,e=-e),r<0&&(t=t+r,r=-r);var s=n+e,l=t+r,u=o[0]=Math.min(Math.max(i,n),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Ha=[];function K8(n,t,e){var r=H2(t.x,t.y,t.width,t.height,n.x,n.y,Ha);return e.set(Ha[0],Ha[1]),r}function X8(n,t,e){for(var r=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,d=n.x,h=n.y,f=0;f<c.length;){var p=c[f++];f===1&&(r=c[f],i=c[f+1],a=r,o=i);var g=u;switch(p){case zl.M:a=c[f++],o=c[f++],r=a,i=o;break;case zl.L:g=wg(r,i,c[f],c[f+1],d,h,Ha,!0),r=c[f++],i=c[f++];break;case zl.C:g=Xb(r,i,c[f++],c[f++],c[f++],c[f++],c[f],c[f+1],d,h,Ha),r=c[f++],i=c[f++];break;case zl.Q:g=Zb(r,i,c[f++],c[f++],c[f],c[f+1],d,h,Ha),r=c[f++],i=c[f++];break;case zl.A:var v=c[f++],y=c[f++],x=c[f++],S=c[f++],_=c[f++],D=c[f++];f+=1;var C=!!(1-c[f++]);s=Math.cos(_)*x+v,l=Math.sin(_)*S+y,f<=1&&(a=s,o=l);var N=(d-v)*S/x+v;g=G8(v,y,S,_,_+D,C,N,h,Ha),r=Math.cos(_+D)*x+v,i=Math.sin(_+D)*S+y;break;case zl.R:a=r=c[f++],o=i=c[f++];var q=c[f++],et=c[f++];g=H2(a,o,q,et,d,h,Ha);break;case zl.Z:g=wg(r,i,a,o,d,h,Ha,!0),r=a,i=o;break}g<u&&(u=g,e.set(Ha[0],Ha[1]))}return u}var Ua=new Sn,xr=new Sn,jr=new Sn,xo=new Sn,So=new Sn;function U2(n,t){if(n){var e=n.getTextGuideLine(),r=n.getTextContent();if(r&&e){var i=n.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||H8,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=n.getComputedTransform(),d=c&&Nu([],c),h=t.get("length2")||0;u&&jr.copy(u);for(var f=0;f<o.length;f++){var p=o[f];U8(p,0,s,Ua,xo),Sn.scaleAndAdd(xr,Ua,xo,h),xr.transform(d);var g=n.getBoundingRect(),v=u?u.distance(xr):n instanceof In?X8(xr,n.path,jr):K8(xr,g,jr);v<l&&(l=v,xr.transform(c),jr.transform(c),jr.toArray(a[0]),xr.toArray(a[1]),Ua.toArray(a[2]))}G2(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var _g=[],Ei=new Sn;function G2(n,t){if(t<=180&&t>0){t=t/180*Math.PI,Ua.fromArray(n[0]),xr.fromArray(n[1]),jr.fromArray(n[2]),Sn.sub(xo,Ua,xr),Sn.sub(So,jr,xr);var e=xo.len(),r=So.len();if(!(e<.001||r<.001)){xo.scale(1/e),So.scale(1/r);var i=xo.dot(So),a=Math.cos(t);if(a<i){var o=wg(xr.x,xr.y,jr.x,jr.y,Ua.x,Ua.y,_g,!1);Ei.fromArray(_g),Ei.scaleAndAdd(So,o/Math.tan(Math.PI-t));var s=jr.x!==xr.x?(Ei.x-xr.x)/(jr.x-xr.x):(Ei.y-xr.y)/(jr.y-xr.y);if(isNaN(s))return;s<0?Sn.copy(Ei,xr):s>1&&Sn.copy(Ei,jr),Ei.toArray(n[1])}}}}function Y8(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ua.fromArray(n[0]),xr.fromArray(n[1]),jr.fromArray(n[2]),Sn.sub(xo,xr,Ua),Sn.sub(So,jr,xr);var r=xo.len(),i=So.len();if(!(r<.001||i<.001)){xo.scale(1/r),So.scale(1/i);var a=xo.dot(t),o=Math.cos(e);if(a<o){var s=wg(xr.x,xr.y,jr.x,jr.y,Ua.x,Ua.y,_g,!1);Ei.fromArray(_g);var l=Math.PI/2,u=Math.acos(So.dot(t)),c=l+u-e;if(c>=l)Sn.copy(Ei,jr);else{Ei.scaleAndAdd(So,s/Math.tan(Math.PI/2-c));var d=jr.x!==xr.x?(Ei.x-xr.x)/(jr.x-xr.x):(Ei.y-xr.y)/(jr.y-xr.y);if(isNaN(d))return;d<0?Sn.copy(Ei,xr):d>1&&Sn.copy(Ei,jr)}Ei.toArray(n[1])}}}}function Ex(n,t,e,r){var i=e==="normal",a=i?n:n.ensureState(e);a.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?n.useStyle(s):a.style=s}function Z8(n,t){var e=t.smooth,r=t.points;if(r)if(n.moveTo(r[0][0],r[0][1]),e>0&&r.length>=3){var i=us(r[0],r[1]),a=us(r[1],r[2]);if(!i||!a){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*e,s=kf([],r[1],r[0],o/i),l=kf([],r[1],r[2],o/a),u=kf([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)n.lineTo(r[c][0],r[c][1])}function Lx(n,t,e){var r=n.getTextGuideLine(),i=n.getTextContent();if(!i){r&&n.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Dd.length;l++){var u=Dd[l],c=t[u],d=u==="normal";if(c){var h=c.get("show"),f=d?s:pn(i.states[u]&&i.states[u].ignore,s);if(f||!pn(h,o)){var p=d?r:r&&r.states[u];p&&(p.ignore=!0),r&&Ex(r,!0,u,c);continue}r||(r=new Xi,n.setTextGuideLine(r),!d&&(s||!o)&&Ex(r,!0,"normal",t.normal),n.stateProxy&&(r.stateProxy=n.stateProxy)),Ex(r,!1,u,c)}}if(r){nn(r.style,e),r.style.fill=null;var g=a.get("showAbove"),v=n.textGuideLineConfig=n.textGuideLineConfig||{};v.showAbove=g||!1,r.buildPath=Z8}}function Ox(n,t){t=t||"labelLine";for(var e={normal:n.getModel(t)},r=0;r<Pi.length;r++){var i=Pi[r];e[i]=n.getModel([i,t])}return e}function K2(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];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,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Fp(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function X2(n,t,e,r,i,a){var o=n.length;if(o<2)return;n.sort(function(et,lt){return et.rect[t]-lt.rect[t]});for(var s=0,l,u=!1,c=[],d=0,h=0;h<o;h++){var f=n[h],p=f.rect;l=p[t]-s,l<0&&(p[t]-=l,f.label[t]-=l,u=!0);var g=Math.max(-l,0);c.push(g),d+=g,s=p[t]+p[e]}d>0&&a&&C(-d/o,0,o);var v=n[0],y=n[o-1],x,S;_(),x<0&&N(-x,.8),S<0&&N(S,.8),_(),D(x,S,1),D(S,x,-1),_(),x<0&&q(-x),S<0&&q(S);function _(){x=v.rect[t]-r,S=i-y.rect[t]-y.rect[e]}function D(et,lt,ft){if(et<0){var _t=Math.min(lt,-et);if(_t>0){C(_t*ft,0,o);var Ct=_t+et;Ct<0&&N(-Ct*ft,1)}else N(-et*ft,1)}}function C(et,lt,ft){et!==0&&(u=!0);for(var _t=lt;_t<ft;_t++){var Ct=n[_t],kt=Ct.rect;kt[t]+=et,Ct.label[t]+=et}}function N(et,lt){for(var ft=[],_t=0,Ct=1;Ct<o;Ct++){var kt=n[Ct-1].rect,Ot=Math.max(n[Ct].rect[t]-kt[t]-kt[e],0);ft.push(Ot),_t+=Ot}if(_t){var Nt=Math.min(Math.abs(et)/_t,lt);if(et>0)for(var Ct=0;Ct<o-1;Ct++){var Xt=ft[Ct]*Nt;C(Xt,0,Ct+1)}else for(var Ct=o-1;Ct>0;Ct--){var Xt=ft[Ct-1]*Nt;C(-Xt,Ct,o)}}}function q(et){var lt=et<0?-1:1;et=Math.abs(et);for(var ft=Math.ceil(et/(o-1)),_t=0;_t<o-1;_t++)if(lt>0?C(ft,0,_t+1):C(-ft,o-_t-1,o),et-=ft,et<=0)return}return u}function $8(n,t,e,r){return X2(n,"x","width",t,e,r)}function Y2(n,t,e,r){return X2(n,"y","height",t,e,r)}function Z2(n){var t=[];n.sort(function(g,v){return v.priority-g.priority});var e=new wn(0,0,0,0);function r(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var i=0;i<n.length;i++){var a=n[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var d=a.obb,h=!1,f=0;f<t.length;f++){var p=t[f];if(e.intersect(p.rect)){if(o&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new Fp(p.localRect,p.transform)),d||(d=new Fp(s,l)),d.intersect(p.obb)){h=!0;break}}}h?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function J8(n){if(n){for(var t=[],e=0;e<n.length;e++)t.push(n[e].slice());return t}}function Q8(n,t){var e=n.label,r=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:J8(r&&r.shape.points)}}var $2=["align","verticalAlign","width","height","fontSize"],Li=new Oo,Rx=Kn(),q8=Kn();function bg(n,t,e){for(var r=0;r<e.length;r++){var i=e[r];t[i]!=null&&(n[i]=t[i])}}var Cg=["x","y","rotation"],t7=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(t,e,r,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();wn.applyTransform(c,c,u),u?Li.setLocalTransform(u):(Li.x=Li.y=Li.rotation=Li.originX=Li.originY=0,Li.scaleX=Li.scaleY=1),Li.rotation=ia(Li.rotation);var d=i.__hostTarget,h;if(d){h=d.getBoundingRect().plain();var f=d.getComputedTransform();wn.applyTransform(h,h,f)}var p=h&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:r,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:Li.x,y:Li.y,scaleX:Li.scaleX,scaleY:Li.scaleY,rotation:Li.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var r=t.__model,i=r.get("labelLayout");(qe(i)||Nn(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=hn(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,r,o,i)})},n.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),r=t.getHeight();function i(S,_){return function(){U2(S,_)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;qe(o.layoutOption)?c=o.layoutOption(Q8(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*d:u.attachedRot,offset:[c.dx||0,c.dy||0]});var h=!1;if(c.x!=null?(s.x=Oe(c.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Oe(c.y,r),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var f=l.getTextGuideLine();f&&(f.setShape({points:c.labelLinePoints}),h=!1)}var p=Rx(s);p.needsUpdateLabelLine=h,s.rotation=c.rotate!=null?c.rotate*d:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<$2.length;g++){var v=$2[g];s.setStyle(v,c[v]!=null?c[v]:u.style[v])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var x=o.seriesModel.getData(o.dataType);y=x.getItemModel(o.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(t){var e=t.getWidth(),r=t.getHeight(),i=K2(this._labelList),a=sr(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=sr(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});$8(a,0,e),Y2(o,0,r);var s=sr(i,function(l){return l.layoutOption.hideOverlap});Z2(s)},n.prototype.processLabelsOverall=function(){var t=this;mt(this._chartViewList,function(e){var r=e.__model,i=e.ignoreLabelLineUpdate,a=r.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=Rx(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),a&&t._animateLabels(o,r)})})},n.prototype._updateLabelLine=function(t,e){var r=t.getTextContent(),i=hn(t),a=i.dataIndex;if(r&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var d=s.getModel("labelLine");Lx(t,Ox(s),l),U2(t,d)}},n.prototype._animateLabels=function(t,e){var r=t.getTextContent(),i=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!Zu(t))){var a=Rx(r),o=a.oldLayout,s=hn(t),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=e.getData(s.dataType);if(o){r.attr(o);var h=t.prevStates;h&&(kn(h,"select")>=0&&r.attr(a.oldLayoutSelect),kn(h,"emphasis")>=0&&r.attr(a.oldLayoutEmphasis)),Hn(r,u,e,l)}else if(r.attr(u),!$u(r).valueAnimation){var d=pn(r.style.opacity,1);r.style.opacity=0,_r(r,{style:{opacity:d}},e,l)}if(a.oldLayout=u,r.states.select){var f=a.oldLayoutSelect={};bg(f,u,Cg),bg(f,r.states.select,Cg)}if(r.states.emphasis){var p=a.oldLayoutEmphasis={};bg(p,u,Cg),bg(p,r.states.emphasis,Cg)}XM(r,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){var a=q8(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Hn(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,_r(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},n}();const e7=t7;var Nx=Kn();function Bx(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,r){var i=Nx(e).labelManager;i||(i=Nx(e).labelManager=new e7),i.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(t,e,r){var i=Nx(e).labelManager;r.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}_n(Bx);function J2(n,t,e){var r=Aa.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",n)),r.width=i*e,r.height=a*e,r}var n7=function(n){Zt(t,n);function t(e,r,i){var a=n.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;var o;i=i||Zf,typeof e=="string"?o=J2(e,r,i):rn(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(bb(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=r,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=J2("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,r,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new wn(0,0,0,0);function c(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new wn(0,0,0,0);S.copy(x),o.push(S)}else{for(var _=!1,D=1/0,C=0,N=0;N<o.length;++N){var q=o[N];if(q.intersect(x)){var et=new wn(0,0,0,0);et.copy(q),et.union(x),o[N]=et,_=!0;break}else if(l){u.copy(x),u.union(q);var lt=x.width*x.height,ft=q.width*q.height,_t=u.width*u.height,Ct=_t-lt-ft;Ct<D&&(D=Ct,C=N)}}if(l&&(o[C].union(x),_=!0),!_){var S=new wn(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var h=e[d];if(h){var f=h.shouldBePainted(i,a,!0,!0),p=h.__isRendered&&(h.__dirty&na||!f)?h.getPrevPaintRect():null;p&&c(p);var g=f&&(h.__dirty&na||!h.__isRendered)?h.getPaintRect():null;g&&c(g)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var h=r[d],f=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&c(p)}}var v;do{v=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var y=d+1;y<o.length;)o[d].intersect(o[y])?(v=!0,o[d].union(o[y]),o.splice(y,1)):y++;d++}}while(v);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,r){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=r+"px"),a.width=e*i,a.height=r*i,s&&(s.width=e*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,r,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;r=r||this.clearColor;var u=this.motionBlur&&!e,c=this.lastFrameAlpha,d=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/d,l/d));var f=this.domBack;function p(g,v,y,x){if(o.clearRect(g,v,y,x),r&&r!=="transparent"){var S=void 0;if(_f(r)){var _=r.global||r.__width===y&&r.__height===x;S=_&&r.__canvasGradient||$y(o,r,{x:0,y:0,width:y,height:x}),r.__canvasGradient=S,r.__width=y,r.__height=x}else L4(r)&&(r.scaleX=r.scaleX||d,r.scaleY=r.scaleY||d,S=Qy(o,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=S||r,o.fillRect(g,v,y,x),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(f,g,v,y,x),o.restore())}!i||u?p(0,0,s,l):i.length&&mt(i,function(g){p(g.x*d,g.y*d,g.width*d,g.height*d)})},t}(la);const Vx=n7;var Q2=1e5,Hl=314159,Mg=.01,r7=.001;function i7(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function a7(n,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+n+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var o7=function(){function n(t,e,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=ye({},r||{}),this.dpr=r.devicePixelRatio||Zf,this._singleCanvas=a,this.root=t;var o=t.style;o&&(bb(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,d=c.width,h=c.height;r.width!=null&&(d=r.width),r.height!=null&&(h=r.height),this.dpr=r.devicePixelRatio||1,c.width=d*this.dpr,c.height=h*this.dpr,this._width=d,this._height=h;var f=new Vx(c,this,this.dpr);f.__builtin__=!0,f.initContext(),l[Hl]=f,f.zlevel=Hl,s.push(Hl),this._domRoot=t}else{this._width=mc(t,0,r),this._height=mc(t,1,r);var u=this._domRoot=a7(this._width,this._height);t.appendChild(u)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,r,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,r=this._hoverlayer;if(r&&r.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(Q2)),a||(a=r.ctx,a.save()),Bl(a,s,i,o===e-1))}a&&a.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(Q2)},n.prototype.paintOne=function(t,e){Lk(t,e)},n.prototype._paintList=function(t,e,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,r),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Wm(function(){l._paintList(t,e,r,i)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(Hl).ctx,e=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,e,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,r)})},n.prototype._doPaintList=function(t,e,r){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&a.push(u)}for(var c=!0,d=!1,h=function(g){var v=a[g],y=v.ctx,x=o&&v.createRepaintRects(t,e,f._width,f._height),S=r?v.__startIndex:v.__drawIndex,_=!r&&v.incremental&&Date.now,D=_&&Date.now(),C=v.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,C,x);else if(S===v.__startIndex){var N=t[S];(!N.incremental||!N.notClear||r)&&v.clear(!1,C,x)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=v.__startIndex);var q,et=function(Ct){var kt={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(q=S;q<v.__endIndex;q++){var Ot=t[q];if(Ot.__inHover&&(d=!0),i._doPaintEl(Ot,v,o,Ct,kt,q===v.__endIndex-1),_){var Nt=Date.now()-D;if(Nt>15)break}}kt.prevElClipPaths&&y.restore()};if(x)if(x.length===0)q=v.__endIndex;else for(var lt=f.dpr,ft=0;ft<x.length;++ft){var _t=x[ft];y.save(),y.beginPath(),y.rect(_t.x*lt,_t.y*lt,_t.width*lt,_t.height*lt),y.clip(),et(_t),y.restore()}else y.save(),et(),y.restore();v.__drawIndex=q,v.__drawIndex<v.__endIndex&&(c=!1)},f=this,p=0;p<a.length;p++)h(p);return Zn.wxa&&mt(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:d}},n.prototype._doPaintEl=function(t,e,r,i,a,o){var s=e.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Bl(s,t,a,o),t.setPrevPaintRect(l))}else Bl(s,t,a,o)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Hl);var r=this._layers[t];return r||(r=new Vx("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Mn(r,this._layerConfig[t],!0):this._layerConfig[t-Mg]&&Mn(r,this._layerConfig[t-Mg],!0),e&&(r.virtual=e),this.insertLayer(t,r),r.initContext()),r},n.prototype.insertLayer=function(t,e){var r=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!r[t]&&i7(e)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},n.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i];t.call(e,this._layers[a],a)}},n.prototype.eachBuiltinLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},n.prototype.eachOtherLayer=function(t,e){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,h){d.__dirty=d.__used=!1});function e(d){a&&(a.__endIndex!==d&&(a.__dirty=!0),a.__endIndex=d)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+r7,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Mg:0),this._needsManuallyCompositing),c.__builtin__||mm("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,e(l),a=c),i.__dirty&na&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(d,h){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,mt(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var r=this._layerConfig;r[t]?Mn(r[t],e,!0):r[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+Mg){var o=this._layers[a];Mn(o,r[t],!0)}}}},n.prototype.delLayer=function(t){var e=this._layers,r=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],r.splice(kn(r,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=mc(a,0,i),e=mc(a,1,i),r.style.display="",this._width!==t||e!==this._height){r.style.width=t+"px",r.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Hl).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Hl].dom;var e=new Vx("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var r=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(d){d.__builtin__?r.drawImage(d.dom,0,0,i,a):d.renderToCanvas&&(r.save(),d.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Bl(r,c,o,l===u-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();const s7=o7;function q2(n){n.registerPainter("canvas",s7)}var l7=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,r,i){n.prototype.init.call(this,e,r,i),this._sourceManager=new uD(this),cD(this)},t.prototype.mergeOption=function(e,r){n.prototype.mergeOption.call(this,e,r),cD(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:po},t}(Jn),u7=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Lr);function tP(n){n.registerComponentModel(l7),n.registerComponentView(u7)}_n([q2,tP]);const oht={init:function(){return fx.apply(null,arguments)}};_n(Bx),j2({type:"series.liquidFill",optionUpdated:function(){var n=this.option;n.gridSize=Math.max(Math.floor(n.gridSize),4)},getInitialData:function(n,t){var e=y2(n.data,{coordDimensions:["value"]}),r=new hi(e,this);return r.initData(n.data),r},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}}}});const c7=XD({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(n,t){t.radiusY==null&&(t.radiusY=t.radius);for(var e=Math.max(Math.ceil(2*t.radius/t.waveLength*4)*2,8);t.phase<-Math.PI*2;)t.phase+=Math.PI*2;for(;t.phase>0;)t.phase-=Math.PI*2;var r=t.phase/Math.PI/2*t.waveLength,i=t.cx-t.radius+r-t.radius*2;n.moveTo(i,t.waterLevel);for(var a=0,o=0;o<e;++o){var s=o%4,l=d7(o*t.waveLength/4,s,t.waveLength,t.amplitude);n.bezierCurveTo(l[0][0]+i,-l[0][1]+t.waterLevel,l[1][0]+i,-l[1][1]+t.waterLevel,l[2][0]+i,-l[2][1]+t.waterLevel),o===e-1&&(a=l[2][0])}t.inverse?(n.lineTo(a+i,t.cy-t.radiusY),n.lineTo(i,t.cy-t.radiusY),n.lineTo(i,t.waterLevel)):(n.lineTo(a+i,t.cy+t.radiusY),n.lineTo(i,t.cy+t.radiusY),n.lineTo(i,t.waterLevel)),n.closePath()}});function d7(n,t,e,r){return t===0?[[n+1/2*e/Math.PI/2,r/2],[n+1/2*e/Math.PI,r],[n+e/4,r]]:t===1?[[n+1/2*e/Math.PI/2*(Math.PI-2),r],[n+1/2*e/Math.PI/2*(Math.PI-1),r/2],[n+e/4,0]]:t===2?[[n+1/2*e/Math.PI/2,-r/2],[n+1/2*e/Math.PI,-r],[n+e/4,-r]]:[[n+1/2*e/Math.PI/2*(Math.PI-2),-r],[n+1/2*e/Math.PI/2*(Math.PI-1),-r/2],[n+e/4,0]]}var Yo=Oe;function eP(n){return n&&n.indexOf("path://")===0}z2({type:"liquidFill",render:function(n,t,e){var r=this,i=this.group;i.removeAll();var a=n.getData(),o=a.getItemModel(0),s=o.get("center"),l=o.get("radius"),u=e.getWidth(),c=e.getHeight(),d=Math.min(u,c),h=0,f=0,p=n.get("outline.show");p&&(h=n.get("outline.borderDistance"),f=Yo(n.get("outline.itemStyle.borderWidth"),d));var g=Yo(s[0],u),v=Yo(s[1],c),y,x,S,_=!1,D=n.get("shape");if(D==="container"?(_=!0,y=[u/2,c/2],x=[y[0]-f/2,y[1]-f/2],S=[Yo(h,u),Yo(h,c)],l=[Math.max(x[0]-S[0],0),Math.max(x[1]-S[1],0)]):(y=Yo(l,d)/2,x=y-f/2,S=Yo(h,d),l=Math.max(x-S,0)),p){var C=Ct();C.style.lineWidth=f,i.add(Ct())}var N=_?0:g-l,q=_?0:v-l,et=null;i.add(kt());var lt=this._data,ft=[];a.diff(lt).add(function(Vt){var Ut=Ot(Vt,!1),Yt=Ut.shape.waterLevel;Ut.shape.waterLevel=_?c/2:l,_r(Ut,{shape:{waterLevel:Yt}},n),Ut.z2=2,Nt(Vt,Ut,null),i.add(Ut),a.setItemGraphicEl(Vt,Ut),ft.push(Ut)}).update(function(Vt,Ut){for(var Yt=lt.getItemGraphicEl(Ut),ue=Ot(Vt,!1,Yt),ie={},Gt=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],Qt=0;Qt<Gt.length;++Qt){var me=Gt[Qt];ue.shape.hasOwnProperty(me)&&(ie[me]=ue.shape[me])}for(var De={},Pe=["fill","opacity","shadowBlur","shadowColor"],Qt=0;Qt<Pe.length;++Qt){var me=Pe[Qt];ue.style.hasOwnProperty(me)&&(De[me]=ue.style[me])}_&&(ie.radiusY=c/2),Hn(Yt,{shape:ie,x:ue.x,y:ue.y},n),n.isUniversalTransitionEnabled&&n.isUniversalTransitionEnabled()?Hn(Yt,{style:De},n):Yt.useStyle(De);var Ce=Yt.getClipPath(),Ee=ue.getClipPath();Yt.setClipPath(ue.getClipPath()),Yt.shape.inverse=ue.inverse,Ce&&Ee&&r._shape===D&&!eP(D)&&Hn(Ee,{shape:Ce.shape},n,{isFrom:!0}),Nt(Vt,Yt,Yt),i.add(Yt),a.setItemGraphicEl(Vt,Yt),ft.push(Yt)}).remove(function(Vt){var Ut=lt.getItemGraphicEl(Vt);i.remove(Ut)}).execute(),o.get("label.show")&&i.add(Xt(ft)),this._shape=D,this._data=a;function _t(Vt,Ut){if(D)if(eP(D)){var Yt=dc(D.slice(7),{}),ue=Yt.getBoundingRect(),ie=ue.width,Gt=ue.height;ie>Gt?(Gt=Vt*2/ie*Gt,ie=Vt*2):(ie=Vt*2/Gt*ie,Gt=Vt*2);var Qt=Ut?0:g-ie/2,me=Ut?0:v-Gt/2;return Yt=dc(D.slice(7),{},new wn(Qt,me,ie,Gt)),Ut&&(Yt.x=-ie/2,Yt.y=-Gt/2),Yt}else if(_){var De=Ut?-Vt[0]:g-Vt[0],Pe=Ut?-Vt[1]:v-Vt[1];return Rr("rect",De,Pe,Vt[0]*2,Vt[1]*2)}else{var De=Ut?-Vt:g-Vt,Pe=Ut?-Vt:v-Vt;return D==="pin"?Pe+=Vt:D==="arrow"&&(Pe-=Vt),Rr(D,De,Pe,Vt*2,Vt*2)}return new Uo({shape:{cx:Ut?0:g,cy:Ut?0:v,r:Vt}})}function Ct(){var Vt=_t(y);return Vt.style.fill=null,Vt.setStyle(n.getModel("outline.itemStyle").getItemStyle()),Vt}function kt(){var Vt=_t(l);Vt.setStyle(n.getModel("backgroundStyle").getItemStyle()),Vt.style.fill=null,Vt.z2=5;var Ut=_t(l);Ut.setStyle(n.getModel("backgroundStyle").getItemStyle()),Ut.style.stroke=null;var Yt=new sn;return Yt.add(Vt),Yt.add(Ut),Yt}function Ot(Vt,Ut,Yt){var ue=_?l[0]:l,ie=_?c/2:l,Gt=a.getItemModel(Vt),Qt=Gt.getModel("itemStyle"),me=Gt.get("phase"),De=Yo(Gt.get("amplitude"),ie*2),Pe=Yo(Gt.get("waveLength"),ue*2),Ce=a.get("value",Vt),Ee=ie-Ce*ie*2;me=Yt?Yt.shape.phase:me==="auto"?Vt*Math.PI/4:me;var Ve=Qt.getItemStyle();if(!Ve.fill){var Te=n.get("color"),Be=Vt%Te.length;Ve.fill=Te[Be]}var tn=ue*2,Je=new c7({shape:{waveLength:Pe,radius:ue,radiusY:ie,cx:tn,cy:0,waterLevel:Ee,amplitude:De,phase:me,inverse:Ut},style:Ve,x:g,y:v});Je.shape._waterLevel=Ee;var An=Gt.getModel("emphasis.itemStyle").getItemStyle();An.lineWidth=0,Je.ensureState("emphasis").style=An,jo(Je);var En=_t(l,!0);return En.setStyle({fill:"white"}),Je.setClipPath(En),Je}function Nt(Vt,Ut,Yt){var ue=a.getItemModel(Vt),ie=ue.get("period"),Gt=ue.get("direction"),Qt=a.get("value",Vt),me=ue.get("phase");me=Yt?Yt.shape.phase:me==="auto"?Vt*Math.PI/4:me;var De=function(Ee){var Ve=a.count();return Ve===0?Ee:Ee*(.2+(Ve-Vt)/Ve*.8)},Pe=0;ie==="auto"?Pe=De(5e3):Pe=typeof ie=="function"?ie(Qt,Vt):ie;var Ce=0;Gt==="right"||Gt==null?Ce=Math.PI:Gt==="left"?Ce=-Math.PI:Gt==="none"?Ce=0:console.error("Illegal direction value for liquid fill."),Gt!=="none"&&ue.get("waveAnimation")&&Ut.animate("shape",!0).when(0,{phase:me}).when(Pe/2,{phase:Ce+me}).when(Pe,{phase:Ce*2+me}).during(function(){et&&et.dirty(!0)}).start()}function Xt(Vt){var Ut=o.getModel("label");function Yt(){var Ve=n.getFormattedLabel(0,"normal"),Te=a.get("value",0)*100,Be=a.getName(0)||n.name;return isNaN(Te)||(Be=Te.toFixed(0)+"%"),Ve==null?Be:Ve}var ue={z2:10,shape:{x:N,y:q,width:(_?l[0]:l)*2,height:(_?l[1]:l)*2},style:{fill:"transparent"},textConfig:{position:Ut.get("position")||"inside"},silent:!0},ie={style:{text:Yt(),textAlign:Ut.get("align"),textVerticalAlign:Ut.get("baseline")}};Object.assign(ie.style,Sg(Ut));var Gt=new jn(ue),Qt=new jn(ue);Qt.disableLabelAnimation=!0,Gt.disableLabelAnimation=!0;var me=new Wn(ie),De=new Wn(ie);Gt.setTextContent(me),Qt.setTextContent(De);var Pe=Ut.get("insideColor");De.style.fill=Pe;var Ce=new sn;Ce.add(Gt),Ce.add(Qt);var Ee=_t(l,!0);return et=new Bp({shape:{paths:Vt},x:g,y:v}),et.setClipPath(Ee),Qt.setClipPath(et),Ce}},dispose:function(){}}),z2({type:"wordCloud",render:function(n,t,e){var r,i=this.group;i.removeAll();var a=n.getData(),o=n.get("gridSize");const s=(u,c,d,h)=>{var f=a.getItemModel(d),p=f.getModel("textStyle"),g=new Wn({style:Sg(p),scaleX:1/h.info.mu,scaleY:1/h.info.mu,x:(h.gx+h.info.gw/2)*o,y:(h.gy+h.info.gh/2)*o,rotation:h.rot});g.setStyle({x:h.info.fillTextOffsetX,y:h.info.fillTextOffsetY+c*.5,text:u,verticalAlign:"middle",fill:a.getItemVisual(d,"style").fill,fontSize:c}),i.add(g),a.setItemGraphicEl(d,g),g.ensureState("emphasis").style=Sg(f.getModel(["emphasis","textStyle"]),{state:"emphasis"}),g.ensureState("blur").style=Sg(f.getModel(["blur","textStyle"]),{state:"blur"}),jo(g,f.get(["emphasis","focus"]),f.get(["emphasis","blurScope"])),g.stateTransition={duration:n.get("animation")?n.get(["stateAnimation","duration"]):0,easing:n.get(["stateAnimation","easing"])},g.__highDownDispatcher=!0},l=(r=n.layoutInstance)==null?void 0:r.drawns;l!=null&&l.length&&l.forEach(u=>{let{item:c,drawn:d}=u;s(c[0],c[1],c[2],d)}),this._model=n},remove:function(){this.group.removeAll()},dispose:function(){}}),j2({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(n){return{fill:n.get("color")}},visualDrawType:"fill",optionUpdated:function(){var n=this.option;n.gridSize=Math.max(Math.floor(n.gridSize),4)},getInitialData:function(n,t){var e=y2(n.data,{coordDimensions:["value"]}),r=new hi(e,this);return r.initData(n.data),r},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"}}});var h7=w(67231),f7=w.n(h7);/*!
  21. * wordcloud2.js
  22. * http://timdream.org/wordcloud2.js/
  23. *
  24. * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
  25. * Released under the MIT license
  26. */window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],r="zero-timeout-message",i=function(o){var s=e.length;return e.push(o),window.postMessage(r+s.toString(36),"*"),s};return window.addEventListener("message",function(o){if(!(typeof o.data!="string"||o.data.substr(0,r.length)!==r)){o.stopImmediatePropagation();var s=parseInt(o.data.substr(r.length),36);e[s]&&(e[s](),e[s]=void 0)}},!0),window.clearImmediate=function(o){e[o]&&(e[o]=void 0)},i}()||function(e){window.setTimeout(e,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}}());var Wx=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!(!e||!e.getImageData||!e.fillText||!Array.prototype.some||!Array.prototype.push)}(),Fx=function(){if(Wx){for(var t=document.createElement("canvas").getContext("2d"),e=20,r,i;e;){if(t.font=e.toString(10)+"px sans-serif",t.measureText("\uFF37").width===r&&t.measureText("m").width===i)return e+1;r=t.measureText("\uFF37").width,i=t.measureText("m").width,e--}return 0}}(),p7=function(n){if(Array.isArray(n)){var t=n.slice();return t.splice(0,2),t}else return[]},g7=function(t){for(var e,r,i=t.length;i;)e=Math.floor(Math.random()*i),r=t[--i],t[i]=t[e],t[e]=r;return t},jx=function(t,e){if(!Wx)return;Array.isArray(t)||(t=[t]),t.forEach(function(ie,Gt){if(typeof ie=="string"){if(t[Gt]=document.getElementById(ie),!t[Gt])throw new Error("The element id specified is not found.")}else if(!ie.tagName&&!ie.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var r={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "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(e)for(var i in e)i in r&&(r[i]=e[i]);if(typeof r.weightFactor!="function"){var a=r.weightFactor;r.weightFactor=function(Gt){return Gt*a}}if(typeof r.shape!="function")switch(r.shape){case"circle":default:r.shape="circle";break;case"cardioid":r.shape=function(Gt){return 1-Math.sin(Gt)};break;case"diamond":r.shape=function(Gt){var Qt=Gt%(2*Math.PI/4);return 1/(Math.cos(Qt)+Math.sin(Qt))};break;case"square":r.shape=function(Gt){return Math.min(1/Math.abs(Math.cos(Gt)),1/Math.abs(Math.sin(Gt)))};break;case"triangle-forward":r.shape=function(Gt){var Qt=Gt%(2*Math.PI/3);return 1/(Math.cos(Qt)+Math.sqrt(3)*Math.sin(Qt))};break;case"triangle":case"triangle-upright":r.shape=function(Gt){var Qt=(Gt+Math.PI*3/2)%(2*Math.PI/3);return 1/(Math.cos(Qt)+Math.sqrt(3)*Math.sin(Qt))};break;case"pentagon":r.shape=function(Gt){var Qt=(Gt+.955)%(2*Math.PI/5);return 1/(Math.cos(Qt)+.726543*Math.sin(Qt))};break;case"star":r.shape=function(Gt){var Qt=(Gt+.955)%(2*Math.PI/10);return(Gt+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-Qt)+3.07768*Math.sin(2*Math.PI/10-Qt)):1/(Math.cos(Qt)+3.07768*Math.sin(Qt))};break}r.gridSize=Math.max(Math.floor(r.gridSize),4);var o=r.gridSize,s=o-r.maskGapWidth,l=Math.abs(r.maxRotation-r.minRotation),u=Math.min(r.maxRotation,r.minRotation),c=r.rotationStep,d,h,f,p,g,v,y;function x(ie,Gt){return"hsl("+(Math.random()*360).toFixed()+","+(Math.random()*30+70).toFixed()+"%,"+(Math.random()*(Gt-ie)+ie).toFixed()+"%)"}switch(r.color){case"random-dark":y=function(){return x(10,50)};break;case"random-light":y=function(){return x(50,90)};break;default:typeof r.color=="function"&&(y=r.color);break}var S;typeof r.fontWeight=="function"&&(S=r.fontWeight);var _=null;typeof r.classes=="function"&&(_=r.classes);var D=!1,C=[],N,q=function(Gt){var Qt=Gt.currentTarget,me=Qt.getBoundingClientRect(),De,Pe;Gt.touches?(De=Gt.touches[0].clientX,Pe=Gt.touches[0].clientY):(De=Gt.clientX,Pe=Gt.clientY);var Ce=De-me.left,Ee=Pe-me.top,Ve=Math.floor(Ce*(Qt.width/me.width||1)/o),Te=Math.floor(Ee*(Qt.height/me.height||1)/o);return C[Ve]?C[Ve][Te]:null},et=function(Gt){var Qt=q(Gt);if(N!==Qt){if(N=Qt,!Qt){r.hover(void 0,void 0,Gt);return}r.hover(Qt.item,Qt.dimension,Gt)}},lt=function(Gt){var Qt=q(Gt);Qt&&(r.click(Qt.item,Qt.dimension,Gt),Gt.preventDefault())},ft=[],_t=function(Gt){if(ft[Gt])return ft[Gt];var Qt=Gt*8,me=Qt,De=[];for(Gt===0&&De.push([p[0],p[1],0]);me--;){var Pe=1;r.shape!=="circle"&&(Pe=r.shape(me/Qt*2*Math.PI)),De.push([p[0]+Gt*Pe*Math.cos(-me/Qt*2*Math.PI),p[1]+Gt*Pe*Math.sin(-me/Qt*2*Math.PI)*r.ellipticity,me/Qt*2*Math.PI])}return ft[Gt]=De,De},Ct=function(){return r.abortThreshold>0&&new Date().getTime()-v>r.abortThreshold},kt=function(Gt){return f7()(Gt)?Math.PI/180*Gt:r.rotateRatio===0||Math.random()>r.rotateRatio?0:l===0?u:u+Math.round(Math.random()*l/c)*c},Ot=function(Gt,Qt,me,De){var Pe=!1,Ce=r.weightFactor(Qt);if(Ce<=r.minSize)return!1;var Ee=1;Ce<Fx&&(Ee=function(){for(var X1=2;X1*Ce<Fx;)X1+=2;return X1}());var Ve;S?Ve=S(Gt,Qt,Ce,De):Ve=r.fontWeight;var Te=document.createElement("canvas"),Be=Te.getContext("2d",{willReadFrequently:!0});Be.font=Ve+" "+(Ce*Ee).toString(10)+"px "+r.fontFamily;var tn=Be.measureText(Gt).width/Ee,Je=Math.max(Ce*Ee,Be.measureText("m").width,Be.measureText("\uFF37").width)/Ee,An=tn+Je*2,En=Je*3,Cr=Math.ceil(An/o),Mr=Math.ceil(En/o);An=Cr*o,En=Mr*o;var ir=-tn/2,ei=-Je*.4,Br=Math.ceil((An*Math.abs(Math.sin(me))+En*Math.abs(Math.cos(me)))/o),Oi=Math.ceil((An*Math.abs(Math.cos(me))+En*Math.abs(Math.sin(me)))/o),Xa=Oi*o,Uc=Br*o;Te.setAttribute("width",Xa),Te.setAttribute("height",Uc),Pe&&(document.body.appendChild(Te),Be.save()),Be.scale(1/Ee,1/Ee),Be.translate(Xa*Ee/2,Uc*Ee/2),Be.rotate(-me),Be.font=Ve+" "+(Ce*Ee).toString(10)+"px "+r.fontFamily,Be.fillStyle="#000",Be.textBaseline="middle",Be.fillText(Gt,ir*Ee,(ei+Ce*.5)*Ee);var Vct=Be.getImageData(0,0,Xa,Uc).data;if(Ct())return!1;Pe&&(Be.strokeRect(ir*Ee,ei,tn*Ee,Je*Ee),Be.restore());for(var iB=[],ns=Oi,Do,G1,K1,Ri=[Br/2,Oi/2,Br/2,Oi/2];ns--;)for(Do=Br;Do--;){K1=o;t:for(;K1--;)for(G1=o;G1--;)if(Vct[((Do*o+K1)*Xa+(ns*o+G1))*4+3]){iB.push([ns,Do]),ns<Ri[3]&&(Ri[3]=ns),ns>Ri[1]&&(Ri[1]=ns),Do<Ri[0]&&(Ri[0]=Do),Do>Ri[2]&&(Ri[2]=Do),Pe&&(Be.fillStyle="rgba(255, 0, 0, 0.5)",Be.fillRect(ns*o,Do*o,o-.5,o-.5));break t}Pe&&(Be.fillStyle="rgba(0, 0, 255, 0.5)",Be.fillRect(ns*o,Do*o,o-.5,o-.5))}return Pe&&(Be.fillStyle="rgba(0, 255, 0, 0.5)",Be.fillRect(Ri[3]*o,Ri[0]*o,(Ri[1]-Ri[3]+1)*o,(Ri[2]-Ri[0]+1)*o)),{mu:Ee,occupied:iB,bounds:Ri,gw:Oi,gh:Br,fillTextOffsetX:ir,fillTextOffsetY:ei,fillTextWidth:tn,fillTextHeight:Je,fontSize:Ce}},Nt=function(Gt,Qt,me,De,Pe){for(var Ce=Pe.length;Ce--;){var Ee=Gt+Pe[Ce][0],Ve=Qt+Pe[Ce][1];if(Ee>=h||Ve>=f||Ee<0||Ve<0){if(!r.drawOutOfBound)return!1;continue}if(!d[Ee][Ve])return!1}return!0},Xt=function(Gt,Qt,me,De,Pe,Ce,Ee,Ve,Te,Be){var tn=me.fontSize,Je;y?Je=y(De,Pe,tn,Ce,Ee,Be):Je=r.color;var An;S?An=S(De,Pe,tn,Be):An=r.fontWeight;var En;_?En=_(De,Pe,tn,Be):En=r.classes,t.forEach(function(Cr){if(Cr.getContext){var Mr=Cr.getContext("2d"),ir=me.mu;Mr.save(),Mr.scale(1/ir,1/ir),Mr.font=An+" "+(tn*ir).toString(10)+"px "+r.fontFamily,Mr.fillStyle=Je,Mr.translate((Gt+me.gw/2)*o*ir,(Qt+me.gh/2)*o*ir),Ve!==0&&Mr.rotate(-Ve),Mr.textBaseline="middle",Mr.fillText(De,me.fillTextOffsetX*ir,(me.fillTextOffsetY+tn*.5)*ir),Mr.restore()}else{var ei=document.createElement("span"),Br="";Br="rotate("+-Ve/Math.PI*180+"deg) ",me.mu!==1&&(Br+="translateX(-"+me.fillTextWidth/4+"px) scale("+1/me.mu+")");var Oi={position:"absolute",display:"block",font:An+" "+tn*me.mu+"px "+r.fontFamily,left:(Gt+me.gw/2)*o+me.fillTextOffsetX+"px",top:(Qt+me.gh/2)*o+me.fillTextOffsetY+"px",width:me.fillTextWidth+"px",height:me.fillTextHeight+"px",lineHeight:tn+"px",whiteSpace:"nowrap",transform:Br,webkitTransform:Br,msTransform:Br,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};Je&&(Oi.color=Je),ei.textContent=De;for(var Xa in Oi)ei.style[Xa]=Oi[Xa];if(Te)for(var Uc in Te)ei.setAttribute(Uc,Te[Uc]);En&&(ei.className+=En),Cr.appendChild(ei)}})},Vt=function(Gt,Qt,me,De,Pe){if(!(Gt>=h||Qt>=f||Gt<0||Qt<0)){if(d[Gt][Qt]=!1,me){var Ce=t[0].getContext("2d");Ce.fillRect(Gt*o,Qt*o,s,s)}D&&(C[Gt][Qt]={item:Pe,dimension:De})}},Ut=function(Gt,Qt,me,De,Pe,Ce){var Ee=Pe.occupied,Ve=r.drawMask,Te;Ve&&(Te=t[0].getContext("2d"),Te.save(),Te.fillStyle=r.maskColor);var Be;if(D){var tn=Pe.bounds;Be={x:(Gt+tn[3])*o,y:(Qt+tn[0])*o,w:(tn[1]-tn[3]+1)*o,h:(tn[2]-tn[0]+1)*o}}for(var Je=Ee.length;Je--;){var An=Gt+Ee[Je][0],En=Qt+Ee[Je][1];An>=h||En>=f||An<0||En<0||Vt(An,En,Ve,Be,Ce)}Ve&&Te.restore()},Yt=function ie(Gt,Qt){if(Qt>20)return null;var me,De,Pe,Ce;Array.isArray(Gt)?(me=Gt[0],De=Gt[1],Ce=Gt[3]):(me=Gt.word,De=Gt.weight,Pe=Gt.attributes);var Ee=kt(Ce),Ve=p7(Gt),Te=Ot(me,De,Ee,Ve);if(!Te||Ct())return!1;if(!r.drawOutOfBound&&!r.shrinkToFit){var Be=Te.bounds;if(Be[1]-Be[3]+1>h||Be[2]-Be[0]+1>f)return!1}for(var tn=g+1,Je=function(Mr){var ir=Math.floor(Mr[0]-Te.gw/2),ei=Math.floor(Mr[1]-Te.gh/2),Br=Te.gw,Oi=Te.gh;return Nt(ir,ei,Br,Oi,Te.occupied)?(Xt(ir,ei,Te,me,De,g-tn,Mr[2],Ee,Pe,Ve),Ut(ir,ei,Br,Oi,Te,Gt),{gx:ir,gy:ei,rot:Ee,info:Te}):!1};tn--;){var An=_t(g-tn);r.shuffle&&(An=[].concat(An),g7(An));for(var En=0;En<An.length;En++){var Cr=Je(An[En]);if(Cr)return Cr}}return r.shrinkToFit?(Array.isArray(Gt)?Gt[1]=Gt[1]*3/4:Gt.weight=Gt.weight*3/4,ie(Gt,Qt+1)):null},ue=function(){var Gt=t[0];if(Gt.getContext)h=Math.ceil(Gt.width/o),f=Math.ceil(Gt.height/o);else{var Qt=Gt.getBoundingClientRect();h=Math.ceil(Qt.width/o),f=Math.ceil(Qt.height/o)}p=r.origin?[r.origin[0]/o,r.origin[1]/o]:[h/2,f/2],g=Math.floor(Math.sqrt(h*h+f*f)),d=[];var me,De,Pe;if(!Gt.getContext||r.clearCanvas)for(t.forEach(function(tn){if(tn.getContext){var Je=tn.getContext("2d");Je.fillStyle=r.backgroundColor,Je.clearRect(0,0,h*(o+1),f*(o+1)),Je.fillRect(0,0,h*(o+1),f*(o+1))}else tn.textContent="",tn.style.backgroundColor=r.backgroundColor,tn.style.position="relative"}),me=h;me--;)for(d[me]=[],De=f;De--;)d[me][De]=!0;else{var Ce=document.createElement("canvas").getContext("2d");Ce.fillStyle=r.backgroundColor,Ce.fillRect(0,0,1,1);var Ee=Ce.getImageData(0,0,1,1).data,Ve=Gt.getContext("2d").getImageData(0,0,h*o,f*o).data;me=h;for(var Te,Be;me--;)for(d[me]=[],De=f;De--;){Be=o;t:for(;Be--;)for(Te=o;Te--;)for(Pe=4;Pe--;)if(Ve[((De*o+Be)*h*o+(me*o+Te))*4+Pe]!==Ee[Pe]){d[me][De]=!1;break t}d[me][De]!==!1&&(d[me][De]=!0)}Ve=Ce=Ee=void 0}if(r.hover||r.click){for(D=!0,me=h+1;me--;)C[me]=[];r.hover&&Gt.addEventListener("mousemove",et),r.click&&(Gt.addEventListener("click",lt),Gt.addEventListener("touchstart",lt),Gt.addEventListener("touchend",function(tn){tn.preventDefault()}),Gt.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),Gt.addEventListener("wordcloudstart",function tn(){Gt.removeEventListener("wordcloudstart",tn),Gt.removeEventListener("mousemove",et),Gt.removeEventListener("click",lt),N=void 0})}return r.list.map(tn=>({item:tn,drawn:Yt(tn,0)})).filter(tn=>{let{drawn:Je}=tn;return!!Je})};return ue()};jx.isSupported=Wx,jx.minFontSize=Fx;const nP=jx;if(!nP.isSupported)throw new Error("Sorry your browser not support wordCloud");function v7(n){for(var t=n.getContext("2d"),e=t.getImageData(0,0,n.width,n.height),r=t.createImageData(e),i=0,a=0,o=0;o<e.data.length;o+=4){var s=e.data[o+3];if(s>128){var l=e.data[o]+e.data[o+1]+e.data[o+2];i+=l,++a}}var u=i/a;for(let c=0;c<e.data.length;c+=4){const d=e.data[c]+e.data[c+1]+e.data[c+2];e.data[c+3]<128||d>u?(r.data[c]=0,r.data[c+1]=0,r.data[c+2]=0,r.data[c+3]=0):(r.data[c]=255,r.data[c+1]=255,r.data[c+2]=255,r.data[c+3]=255)}t.putImageData(r,0,0)}o2(function(n,t){n.eachSeriesByType("wordCloud",function(e){var r=Xr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),i=e.get("keepAspect"),a=e.get("maskImage"),o=a?a.width/a.height:1;i&&m7(r,o);var s=e.getData(),l=document.createElement("canvas");l.width=r.width,l.height=r.height;var u=l.getContext("2d");if(a)try{u.drawImage(a,0,0,l.width,l.height),v7(l)}catch(y){console.error("Invalid mask image"),console.error(y.toString())}var c=e.get("sizeRange"),d=e.get("rotationRange"),h=s.getDataExtent("value"),f=Math.PI/180,p=e.get("gridSize");const v=nP(l,{list:s.mapArray("value",function(y,x){var S=s.getItemModel(x);return[s.getName(x),S.get("textStyle.fontSize",!0)||nr(y,h,c),x,S.option.rotation]}).sort(function(y,x){return x[1]-y[1]}),fontFamily:e.get("textStyle.fontFamily")||e.get("emphasis.textStyle.fontFamily")||n.get("textStyle.fontFamily"),fontWeight:e.get("textStyle.fontWeight")||e.get("emphasis.textStyle.fontWeight")||n.get("textStyle.fontWeight"),gridSize:p,ellipticity:r.height/r.width,minRotation:d[0]*f,maxRotation:d[1]*f,clearCanvas:!a,rotateRatio:1,rotationStep:e.get("rotationStep")*f,drawOutOfBound:e.get("drawOutOfBound"),shrinkToFit:e.get("shrinkToFit"),layoutAnimation:e.get("layoutAnimation"),shuffle:!1,shape:e.get("shape")}).map(y=>({...y,drawn:{...y.drawn,gx:y.drawn.gx+r.x/p,gy:y.drawn.gy+r.y/p}}));e.layoutInstance={drawns:v}})}),px(function(n){var t=(n||{}).series;!Se(t)&&(t=t?[t]:[]);var e=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];mt(t,function(i){if(i&&i.type==="wordCloud"){var a=i.textStyle||{};r(a.normal),r(a.emphasis)}});function r(i){i&&mt(e,function(a){i.hasOwnProperty(a)&&(i["text"+f6(a)]=i[a])})}});function m7(n,t){var e=n.width,r=n.height;e>r*t?(n.x+=(e-r*t)/2,n.width=r*t):(n.y+=(r-e/t)/2,n.height=e/t)}var y7=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Jn);const x7=y7;var zx=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Kr).models[0]},t.type="cartesian2dAxis",t}(Jn);Wr(zx,_c);const sht=null;var rP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},S7=Mn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rP),Hx=Mn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rP),w7=Mn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Hx),_7=nn({logBase:10},Hx);const iP={category:S7,value:Hx,time:w7,log:_7};var b7={value:1,category:1,time:1,log:1};function bc(n,t,e,r){mt(b7,function(i,a){var o=Mn(Mn({},iP[a],!0),r,!0),s=function(l){Zt(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var h=Rd(this),f=h?nc(c):{},p=d.getTheme();Mn(c,p.get(a+"Axis")),Mn(c,this.getDefaultOption()),c.type=aP(c),h&&bs(c,f,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=_x.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",aP)}function aP(n){return n.type||(n.data?"category":"value")}var C7=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return we(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),sr(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}();const M7=C7;var Ux=["x","y"];function oP(n){return n.type==="interval"||n.type==="time"}var T7=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ux,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!oP(e)||!oP(r))){var i=e.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,h=o[0]-i[0]*c,f=o[1]-a[0]*d,p=this._transform=[c,0,0,d,h,f];this._invTransform=Nu([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,r){var i=this.dataToPoint(e),a=this.dataToPoint(r),o=this.getArea(),s=new wn(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,r,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return si(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},t.prototype.clampData=function(e,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(e,r){var i=[];if(this._invTransform)return si(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),r),i[1]=o.coordToData(o.toLocalCoord(e[1]),r),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(r[0],r[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new wn(a,o,s,l)},t}(M7);const D7=T7;var hh=Kn();function k7(n){return n.type==="category"?A7(n):E7(n)}function P7(n,t){return n.type==="category"?I7(n,t):{ticks:we(n.scale.getTicks(),function(e){return e.value})}}function A7(n){var t=n.getLabelModel(),e=sP(n,t);return!t.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function sP(n,t){var e=lP(n,"labels"),r=Ix(t),i=uP(e,r);if(i)return i;var a,o;return qe(r)?a=hP(n,r):(o=r==="auto"?L7(n):r,a=dP(n,o)),cP(e,r,{labels:a,labelCategoryInterval:o})}function I7(n,t){var e=lP(n,"ticks"),r=Ix(t),i=uP(e,r);if(i)return i;var a,o;if((!t.get("show")||n.scale.isBlank())&&(a=[]),qe(r))a=hP(n,r,!0);else if(r==="auto"){var s=sP(n,n.getLabelModel());o=s.labelCategoryInterval,a=we(s.labels,function(l){return l.tickValue})}else o=r,a=dP(n,o,!0);return cP(e,r,{ticks:a,tickCategoryInterval:o})}function E7(n){var t=n.scale.getTicks(),e=ch(n);return{labels:we(t,function(r,i){return{level:r.level,formattedLabel:e(r,i),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function lP(n,t){return hh(n)[t]||(hh(n)[t]=[])}function uP(n,t){for(var e=0;e<n.length;e++)if(n[e].key===t)return n[e].value}function cP(n,t,e){return n.push({key:t,value:e}),e}function L7(n){var t=hh(n).autoInterval;return t!=null?t:hh(n).autoInterval=n.calculateCategoryInterval()}function O7(n){var t=R7(n),e=ch(n),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=n.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),h=0,f=0;l<=a[1];l+=s){var p=0,g=0,v=vd(e({value:l}),t.font,"center","top");p=v.width*1.3,g=v.height*1.3,h=Math.max(h,p,7),f=Math.max(f,g,7)}var y=h/c,x=f/d;isNaN(y)&&(y=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(y,x))),_=hh(n.model),D=n.getExtent(),C=_.lastAutoInterval,N=_.lastTickCount;return C!=null&&N!=null&&Math.abs(C-S)<=1&&Math.abs(N-o)<=1&&C>S&&_.axisExtent0===D[0]&&_.axisExtent1===D[1]?S=C:(_.lastTickCount=o,_.lastAutoInterval=S,_.axisExtent0=D[0],_.axisExtent1=D[1]),S}function R7(n){var t=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function dP(n,t,e){var r=ch(n),i=n.scale,a=i.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=F2(n),h=o.get("showMinLabel")||d,f=o.get("showMaxLabel")||d;h&&u!==a[0]&&g(a[0]);for(var p=u;p<=a[1];p+=l)g(p);f&&p-l!==a[1]&&g(a[1]);function g(v){var y={value:v};s.push(e?v:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:v})}return s}function hP(n,t,e){var r=n.scale,i=ch(n),a=[];return mt(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var fP=[0,1],N7=function(){function n(t,e,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=r||[0,0]}return n.prototype.contain=function(t){var e=this._extent,r=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=r&&t<=i},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return DC(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var r=this._extent;r[0]=t,r[1]=e},n.prototype.dataToCoord=function(t,e){var r=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),pP(r,i.count())),nr(t,fP,r,e)},n.prototype.coordToData=function(t,e){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),pP(r,i.count()));var a=nr(t,r,fP,e);return this.scale.scale(a)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),r=P7(this,e),i=r.ticks,a=we(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return B7(this,a,o,t.clamp),a},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var r=this.scale.getMinorTicks(e),i=we(r,function(a){return we(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},n.prototype.getViewLabels=function(){return k7(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),r=e[1]-e[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},n.prototype.calculateCategoryInterval=function(){return O7(this)},n}();function pP(n,t){var e=n[1]-n[0],r=t,i=e/r/2;n[0]+=i,n[1]-=i}function B7(n,t,e,r){var i=t.length;if(!n.onBand||e||!i)return;var a=n.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;mt(t,function(f){f.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var d=a[0]>a[1];h(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(f,p){return f=Or(f),p=Or(p),d?f>p:f<p}}const Ga=N7;var V7=function(n){Zt(t,n);function t(e,r,i,a,o){var s=n.call(this,e,r,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),e&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(e,r){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Ga);const W7=V7;function Gx(n,t,e){e=e||{};var r=n.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p=u==="x"?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(g,p[1]),p[0])}a.position=[u==="y"?p[h[l]]:d[0],u==="x"?p[h[l]]:d[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[s],a.labelOffset=o?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ii(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function gP(n){return n.get("coordinateSystem")==="cartesian2d"}function vP(n){var t={xAxisModel:null,yAxisModel:null};return mt(t,function(e,r){var i=r.replace(/Model$/,""),a=n.getReferringComponents(i,Kr).models[0];t[r]=a}),t}var Kx=Math.log;function mP(n,t,e){var r=Ps.prototype,i=r.getTicks.call(e),a=r.getTicks.call(e,!0),o=i.length-1,s=r.getInterval.call(e),l=W2(n,t),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var h=Kx(n.base);u=[Kx(u[0])/h,Kx(u[1])/h]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var f=r.getExtent.call(n);c&&(u[0]=f[0]),d&&(u[1]=f[1]);var p=r.getInterval.call(n),g=u[0],v=u[1];if(c&&d)p=(v-g)/o;else if(c)for(v=u[0]+p*o;v<u[1]&&isFinite(v)&&isFinite(u[1]);)p=Cx(p),v=u[0]+p*o;else if(d)for(g=u[1]-p*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)p=Cx(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=Cx(p));var x=p*o;v=Math.ceil(u[1]/p)*p,g=Or(v-x),g<0&&u[0]>=0?(g=0,v=Or(x)):v>0&&u[1]<=0&&(v=0,g=-Or(x))}var S=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;if(r.setExtent.call(n,g+p*S,v+p*_),r.setInterval.call(n,p),(S||_)&&r.setNiceExtent.call(n,g+p,v-p),0)var D}var F7=function(){function n(t,e,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ux,this._initCartesian(t,e,r),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var r=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Nn(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var h=+l[d],f=o[h],p=f.model,g=f.scale;bx(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(f):(jl(g,p),bx(g)&&(s=f))}c.length&&(s||(s=c.pop(),jl(s.scale,s.model)),mt(c,function(v){mP(v.scale,v.model,s.scale)}))}}i(r.x),i(r.y);var a={};mt(r.x,function(o){yP(r,"y",o,a)}),mt(r.y,function(o){yP(r,"x",o,a)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,r){var i=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),o=Xr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(mt(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=F8(u);if(c){var d=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),mt(this._coordsList,function(u){u.calcAffineTransform()});function l(){mt(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(d[h],d[1-h]),j7(u,c?o.x:o.y)})}},n.prototype.getAxis=function(t,e){var r=this._axesMap[t];if(r!=null)return r[e||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var r="x"+t+"y"+e;return this._coordsMap[r]}rn(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(t,e,r){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},n.prototype.convertFromPixel=function(t,e,r){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},n.prototype._findConvertTarget=function(t){var e=t.seriesModel,r=t.xAxisModel||e&&e.getReferringComponents("xAxis",Kr).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Kr).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,kn(o,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n.prototype._initCartesian=function(t,e,r){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,mt(s.x,function(c,d){mt(s.y,function(h,f){var p="x"+d+"y"+f,g=new D7(p);g.master=i,g.model=t,i._coordsMap[p]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(h)})});function u(c){return function(d,h){if(Xx(d,t)){var f=d.get("position");c==="x"?f!=="top"&&f!=="bottom"&&(f=o.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=o.left?"right":"left"),o[f]=!0;var p=new W7(c,uh(d),[0,0],d.get("type"),f),g=p.type==="category";p.onBand=g&&d.get("boundaryGap"),p.inverse=d.get("inverse"),d.axis=p,p.model=d,p.grid=a,p.index=h,a._axesList.push(p),s[c][h]=p,l[c]++}}}},n.prototype._updateScale=function(t,e){mt(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(gP(i)){var a=vP(i),o=a.xAxisModel,s=a.yAxisModel;if(!Xx(o,e)||!Xx(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),d=l.getAxis("y");r(u,c),r(u,d)}},this);function r(i,a){mt(xg(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},n.prototype.getTooltipAxes=function(t){var e=[],r=[];return mt(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);kn(e,a)<0&&e.push(a),kn(r,o)<0&&r.push(o)}),{baseAxes:e,otherAxes:r}},n.create=function(t,e){var r=[];return t.eachComponent("grid",function(i,a){var o=new n(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(i){if(gP(i)){var a=vP(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},n.dimensions=Ux,n}();function Xx(n,t){return n.getCoordSysModel()===t}function yP(n,t,e,r){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=n[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)xP(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&xP(i[u])&&!r[c(i[u])]){a=i[u];break}a&&(r[c(a)]=!0);function c(d){return d.dim+"_"+d.index}}function xP(n){return n&&n.type!=="category"&&n.type!=="time"&&W8(n)}function j7(n,t){var e=n.getExtent(),r=e[0]+e[1];n.toGlobalCoord=n.dim==="x"?function(i){return i+t}:function(i){return r-i+t},n.toLocalCoord=n.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}const z7=F7;var As=Math.PI,Ul=function(){function n(t,e){this.group=new sn,this.opt=e,this.axisModel=t,nn(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new sn({x:e.position[0],y:e.position[1],rotation:e.rotation});r.updateTransform(),this._transformGroup=r}return n.prototype.hasBuilder=function(t){return!!SP[t]},n.prototype.add=function(t){SP[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,r){var i=AC(e-t),a,o;return yd(i)?(o=r>0?"top":"bottom",a="center"):yd(i-As)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i<As?a=r>0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),SP={axisLine:function(n,t,e,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(si(s,s,o),si(l,l,o));var c=ye({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new oi({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});hc(d.shape,d.style.lineWidth),d.anid="line",e.add(d);var h=t.get(["axisLine","symbol"]);if(h!=null){var f=t.get(["axisLine","symbolSize"]);je(h)&&(h=[h,h]),(je(f)||$n(f))&&(f=[f,f]);var p=Rl(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],v=f[1];mt([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,x){if(h[x]!=="none"&&h[x]!=null){var S=Rr(h[x],-g/2,-v/2,g,v,c.stroke,!0),_=y.r+y.offset,D=u?l:s;S.attr({rotation:y.rotate,x:D[0]+_*Math.cos(n.rotation),y:D[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),e.add(S)}})}}},axisTickLabel:function(n,t,e,r){var i=G7(e,r,t,n),a=X7(e,r,t,n);if(U7(t,a,i),K7(e,r,t,n.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=K2(we(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Z2(o)}},axisName:function(n,t,e,r){var i=ii(n.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=n.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,_P(a)?n.labelOffset+o*l:0],h,f=t.get("nameRotate");f!=null&&(f=f*As/180);var p;_P(a)?h=Ul.innerTextLayout(n.rotation,f!=null?f:n.rotation,o):(h=H7(n.rotation,a,f||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,x=ii(n.nameTruncateMaxWidth,v.maxWidth,p),S=new Wn({x:d[0],y:d[1],rotation:h.rotation,silent:Ul.isLabelSilent(t),style:mr(s,{text:i,font:g,overflow:"truncate",width:x,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(fc({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var _=Ul.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,hn(S).eventData=_}r.add(S),S.updateTransform(),e.add(S),S.decomposeTransform()}}};function H7(n,t,e,r){var i=AC(e-n),a,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return yd(i-As/2)?(o=l?"bottom":"top",a="center"):yd(i-As*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<As*1.5&&i>As/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function U7(n,t,e){if(!F2(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),i=n.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],c=e[1],d=e[e.length-1],h=e[e.length-2];r===!1?(wa(a),wa(u)):wP(a,o)&&(r?(wa(o),wa(c)):(wa(a),wa(u))),i===!1?(wa(s),wa(d)):wP(l,s)&&(i?(wa(l),wa(h)):(wa(s),wa(d)))}}function wa(n){n&&(n.ignore=!0)}function wP(n,t){var e=n&&n.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!e||!r)){var i=Pf([]);return qs(i,i,-n.rotation),e.applyTransform(Eo([],i,n.getLocalTransform())),r.applyTransform(Eo([],i,t.getLocalTransform())),e.intersect(r)}}function _P(n){return n==="middle"||n==="center"}function bP(n,t,e,r,i){for(var a=[],o=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(si(o,o,t),si(s,s,t));var c=new oi({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});hc(c.shape,c.style.lineWidth),c.anid=i+"_"+n[l].tickValue,a.push(c)}return a}function G7(n,t,e,r){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=i.getTicksCoords(),c=bP(u,t.transform,l,nn(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<c.length;d++)n.add(c[d]);return c}}function K7(n,t,e,r){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=r*a.get("length"),u=nn(s.getLineStyle(),nn(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var d=bP(o[c],t.transform,l,u,"minorticks_"+c),h=0;h<d.length;h++)n.add(d[h])}}function X7(n,t,e,r){var i=e.axis,a=ii(r.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(ii(r.labelRotate,o.get("rotate"))||0)*As/180,c=Ul.innerTextLayout(r.rotation,u,r.labelDirection),d=e.getCategories&&e.getCategories(!0),h=[],f=Ul.isLabelSilent(e),p=e.get("triggerEvent");return mt(l,function(g,v){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,x=g.formattedLabel,S=g.rawLabel,_=o;if(d&&d[y]){var D=d[y];rn(D)&&D.textStyle&&(_=new pr(D.textStyle,o,e.ecModel))}var C=_.getTextColor()||e.get(["axisLine","lineStyle","color"]),N=i.dataToCoord(y),q=_.getShallow("align",!0)||c.textAlign,et=pn(_.getShallow("alignMinLabel",!0),q),lt=pn(_.getShallow("alignMaxLabel",!0),q),ft=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,_t=pn(_.getShallow("verticalAlignMinLabel",!0),ft),Ct=pn(_.getShallow("verticalAlignMaxLabel",!0),ft),kt=new Wn({x:N,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(g.level||0),style:mr(_,{text:x,align:v===0?et:v===l.length-1?lt:q,verticalAlign:v===0?_t:v===l.length-1?Ct:ft,fill:qe(C)?C(i.type==="category"?S:i.type==="value"?y+"":y,v):C})});if(kt.anid="label_"+y,p){var Ot=Ul.makeAxisEventDataBase(e);Ot.targetType="axisLabel",Ot.value=S,Ot.tickIndex=v,i.type==="category"&&(Ot.dataIndex=y),hn(kt).eventData=Ot}t.add(kt),kt.updateTransform(),h.push(kt),n.add(kt),kt.decomposeTransform()}),h}}const Zo=Ul;function Y7(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Z7(e,n,t),e.seriesInvolved&&J7(e,n),e}function Z7(n,t,e){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];mt(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fh(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var c=s.model,d=c.getModel("tooltip",r);if(mt(s.getAxes(),xn(g,!1,null)),s.getTooltipAxes&&r&&d.get("show")){var h=d.get("trigger")==="axis",f=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(h||f)&&mt(p.baseAxes,xn(g,f?"cross":!0,h)),f&&mt(p.otherAxes,xn(g,"cross",!1))}function g(v,y,x){var S=x.model.getModel("axisPointer",i),_=S.get("show");if(!(!_||_==="auto"&&!v&&!$x(S))){y==null&&(y=S.get("triggerTooltip")),S=v?$7(x,d,i,t,v,y):S;var D=S.get("snap"),C=S.get("triggerEmphasis"),N=fh(x.model),q=y||D||x.type==="category",et=n.axesInfo[N]={key:N,axis:x,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:C,involveSeries:q,snap:D,useHandle:$x(S),seriesModels:[],linkGroup:null};u[N]=et,n.seriesInvolved=n.seriesInvolved||q;var lt=Q7(a,x);if(lt!=null){var ft=o[lt]||(o[lt]={axesInfo:{}});ft.axesInfo[N]=et,ft.mapper=a[lt].mapper,et.linkGroup=ft}}}})}function $7(n,t,e,r,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};mt(s,function(h){l[h]=on(o.get(h))}),l.snap=n.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!a){var d=l.lineStyle=o.get("crossStyle");d&&nn(u,d.textStyle)}}return n.model.getModel("axisPointer",new pr(l,e,r))}function J7(n,t){t.eachSeries(function(e){var r=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||mt(n.coordSysAxesInfo[fh(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function Q7(n,t){for(var e=t.model,r=t.dim,i=0;i<n.length;i++){var a=n[i]||{};if(Yx(a[r+"AxisId"],e.id)||Yx(a[r+"AxisIndex"],e.componentIndex)||Yx(a[r+"AxisName"],e.name))return i}}function Yx(n,t){return n==="all"||Se(n)&&kn(n,t)>=0||n===t}function q7(n){var t=Zx(n);if(t){var e=t.axisPointerModel,r=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=r.parse(o));var s=$x(e);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Zx(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[fh(n)]}function t9(n){var t=Zx(n);return t&&t.axisPointerModel}function $x(n){return!!n.get(["handle","show"])}function fh(n){return n.type+"||"+n.id}var CP={},e9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,a){this.axisPointerClass&&q7(e),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,r,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(e,r){this._disposeAxisPointer(r),n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,r,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=t9(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,r){CP[e]=r},t.getAxisPointerClass=function(e){return e&&CP[e]},t.type="axis",t}(Lr);const Gl=e9;var Jx=Kn();function MP(n,t,e,r){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,d=Jx(n).splitAreaColors,h=Ze(),f=0;if(d)for(var p=0;p<u.length;p++){var g=d.get(u[p].tickValue);if(g!=null){f=(g+(c-1)*p)%c;break}}var v=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Se(s)?s:[s];for(var p=1;p<u.length;p++){var x=i.toGlobalCoord(u[p].coord),S=void 0,_=void 0,D=void 0,C=void 0;i.isHorizontal()?(S=v,_=l.y,D=x-S,C=l.height,v=S+D):(S=l.x,_=v,D=l.width,C=x-_,v=_+C);var N=u[p-1].tickValue;N!=null&&h.set(N,f),t.add(new jn({anid:N!=null?"area_"+N:null,shape:{x:S,y:_,width:D,height:C},style:nn({fill:s[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%c}Jx(n).splitAreaColors=h}}}function TP(n){Jx(n).splitAreaColors=null}var n9=["axisLine","axisTickLabel","axisName"],r9=["splitArea","splitLine","minorSplitLine"],DP=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,r,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new sn,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Gx(s,e),u=new Zo(e,ye({handleAutoShown:function(d){for(var h=s.coordinateSystem.getCartesians(),f=0;f<h.length;f++)if(bx(h[f].getOtherAxis(e.axis).scale))return!0;return!1}},l));mt(n9,u.add,u),this._axisGroup.add(u.getGroup()),mt(r9,function(d){e.get([d,"show"])&&i9[d](this,this._axisGroup,e,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Xd(o,this._axisGroup,e),n.prototype.render.call(this,e,r,i,a)}},t.prototype.remove=function(){TP(this)},t.type="cartesianAxis",t}(Gl),i9={splitLine:function(n,t,e,r){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=Se(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:a}),h=[],f=[],p=o.getLineStyle(),g=0;g<d.length;g++){var v=i.toGlobalCoord(d[g].coord);u?(h[0]=v,h[1]=l.y,f[0]=v,f[1]=l.y+l.height):(h[0]=l.x,h[1]=v,f[0]=l.x+l.width,f[1]=v);var y=c++%s.length,x=d[g].tickValue,S=new oi({anid:x!=null?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:nn({stroke:s[y]},p),silent:!0});hc(S.shape,p.lineWidth),t.add(S)}}},minorSplitLine:function(n,t,e,r){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],d=[],h=o.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=i.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,d[0]=g,d[1]=s.y+s.height):(c[0]=s.x,c[1]=g,d[0]=s.x+s.width,d[1]=g);var v=new oi({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:d[0],y2:d[1]},style:h,silent:!0});hc(v.shape,h.lineWidth),t.add(v)}},splitArea:function(n,t,e,r){MP(n,t,e,r)}},kP=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(DP),a9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=kP.type,e}return t.type="yAxis",t}(DP);const lht=null;var o9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,r){this.group.removeAll(),e.get("show")&&this.group.add(new jn({shape:e.coordinateSystem.getRect(),style:nn({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Lr),PP={offset:0};function AP(n){n.registerComponentView(o9),n.registerComponentModel(x7),n.registerCoordinateSystem("cartesian2d",z7),bc(n,"x",zx,PP),bc(n,"y",zx,PP),n.registerComponentView(kP),n.registerComponentView(a9),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Kl=Kn(),IP=on,Qx=Ge,s9=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,r,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new sn,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),r.getZr().add(s);else{var h=xn(EP,e,d);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}RP(s,e,!0),this._renderHandle(a)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var r=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Zx(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(t,e,r,i,a){},n.prototype.createPointerEl=function(t,e,r,i){var a=e.pointer;if(a){var o=Kl(t).pointerEl=new Z[a.type](IP(e.pointer));t.add(o)}},n.prototype.createLabelEl=function(t,e,r,i){if(e.label){var a=Kl(t).labelEl=new Wn(IP(e.label));t.add(a),OP(a,i)}},n.prototype.updatePointerEl=function(t,e,r){var i=Kl(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),r(i,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,r,i){var a=Kl(t).labelEl;a&&(a.setStyle(e.label.style),r(a,{x:e.label.x,y:e.label.y}),OP(a,i))},n.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Yd(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Io(u.event)},onmousedown:Qx(this._onHandleDragMove,this,0,0),drift:Qx(this._onHandleDragMove,this),ondragend:Qx(this._onHandleDragEnd,this)}),r.add(i)),RP(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Se(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,pc(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},n.prototype._moveHandleToValue=function(t,e){EP(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(qx(r),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(qx(i)),Kl(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),r=this._group,i=this._handle;e&&r&&(this._lastGraphicKey=null,r&&e.remove(r),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),$d(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}},n}();function EP(n,t,e,r){LP(Kl(e).lastProp,r)||(Kl(e).lastProp=r,t?Hn(e,r,n):(e.stopAnimation(),e.attr(r)))}function LP(n,t){if(rn(n)&&rn(t)){var e=!0;return mt(t,function(r,i){e=e&&LP(n[i],r)}),!!e}else return n===t}function OP(n,t){n[t.get(["label","show"])?"show":"hide"]()}function qx(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function RP(n,t,e){var r=t.get("z"),i=t.get("zlevel");n&&n.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=e)})}const tS=s9;function eS(n){var t=n.get("type"),e=n.getModel(t+"Style"),r;return t==="line"?(r=e.getLineStyle(),r.fill=null):t==="shadow"&&(r=e.getAreaStyle(),r.stroke=null),r}function NP(n,t,e,r,i){var a=e.get("value"),o=BP(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ec(s.get("padding")||0),u=s.getFont(),c=vd(o,u),d=i.position,h=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=i.align;p==="right"&&(d[0]-=h),p==="center"&&(d[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(d[1]-=f),g==="middle"&&(d[1]-=f/2),l9(d,h,f,r);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:mr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function l9(n,t,e,r){var i=r.getWidth(),a=r.getHeight();n[0]=Math.min(n[0]+t,i)-t,n[1]=Math.min(n[1]+e,a)-e,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function BP(n,t,e,r,i){n=t.scale.parse(n);var a=t.scale.getLabel({value:n},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ax(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};mt(r,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),je(o)?a=o.replace("{value}",a):qe(o)&&(a=o(s))}return a}function nS(n,t,e){var r=ea();return qs(r,r,e.rotation),no(r,r,e.position),Fa([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],r)}function VP(n,t,e,r,i,a){var o=Zo.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),NP(t,r,i,a,{position:nS(r.axis,n,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function rS(n,t,e){return e=e||0,{x1:n[e],y1:n[1-e],x2:t[e],y2:t[1-e]}}function WP(n,t,e){return e=e||0,{x:n[e],y:n[1-e],width:t[e],height:t[1-e]}}function FP(n,t,e,r,i,a){return{cx:n,cy:t,r0:e,r,startAngle:i,endAngle:a,clockwise:!0}}var u9=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=jP(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var h=eS(a),f=c9[u](s,d,c);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=Gx(l.model,i);VP(r,e,p,i,a,o)},t.prototype.getHandleTransform=function(e,r,i){var a=Gx(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=nS(r.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=jP(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[e.x,e.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var h=(u[1]+u[0])/2,f=[h,h];f[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:e.rotation,cursorPoint:f,tooltipOption:p[c]}},t}(tS);function jP(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var c9={line:function(n,t,e){var r=rS([t,e[0]],[t,e[1]],zP(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,t,e){var r=Math.max(1,n.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:WP([t-r/2,e[0]],[r,i],zP(n))}}};function zP(n){return n.dim==="x"?0:1}const d9=u9;var h9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Jn);const f9=h9;var $o=Kn(),p9=mt;function HP(n,t,e){if(!Zn.node){var r=t.getZr();$o(r).records||($o(r).records={}),g9(r,t);var i=$o(r).records[n]||($o(r).records[n]={});i.handler=e}}function g9(n,t){if($o(n).initialized)return;$o(n).initialized=!0,e("click",xn(UP,"click")),e("mousemove",xn(UP,"mousemove")),e("globalout",m9);function e(r,i){n.on(r,function(a){var o=y9(t);p9($o(n).records,function(s){s&&i(s,a,o.dispatchAction)}),v9(o.pendings,t)})}}function v9(n,t){var e=n.showTip.length,r=n.hideTip.length,i;e?i=n.showTip[e-1]:r&&(i=n.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function m9(n,t,e){n.handler("leave",null,e)}function UP(n,t,e,r){t.handler(n,e,r)}function y9(n){var t={showTip:[],hideTip:[]},e=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=e,n.dispatchAction(r))};return{dispatchAction:e,pendings:t}}function iS(n,t){if(!Zn.node){var e=t.getZr(),r=($o(e).records||{})[n];r&&($o(e).records[n]=null)}}var x9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=r.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";HP("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,r){iS("axisPointer",r)},t.prototype.dispose=function(e,r){iS("axisPointer",r)},t.type="axisPointer",t}(Lr);const S9=x9;function GP(n,t){var e=[],r=n.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ul(a,n);if(o==null||o<0||Se(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,f=d==="x"||d==="radius"?1:0,p=a.mapDimension(h),g=[];g[f]=a.get(p,o),g[1-f]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(we(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),e=[v.x+v.width/2,v.y+v.height/2]}return{point:e,el:s}}var KP=Kn();function w9(n,t,e){var r=n.currTrigger,i=[n.x,n.y],a=n,o=n.dispatchAction||Ge(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Tg(i)&&(i=GP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Tg(i),u=a.axesInfo,c=s.axesInfo,d=r==="leave"||Tg(i),h={},f={},p={list:[],map:{}},g={showPointer:xn(b9,f),showTooltip:xn(C9,p)};mt(s.coordSysMap,function(y,x){var S=l||y.containPoint(i);mt(s.coordSysAxesInfo[x],function(_,D){var C=_.axis,N=k9(u,_);if(!d&&S&&(!u||N)){var q=N&&N.value;q==null&&!l&&(q=C.pointToData(i)),q!=null&&XP(_,q,g,!1,h)}})});var v={};return mt(c,function(y,x){var S=y.linkGroup;S&&!f[x]&&mt(S.axesInfo,function(_,D){var C=f[D];if(_!==y&&C){var N=C.value;S.mapper&&(N=y.axis.scale.parse(S.mapper(N,YP(_),YP(y)))),v[y.key]=N}})}),mt(v,function(y,x){XP(c[x],y,g,!0,h)}),M9(f,c,h),T9(p,i,n,o),D9(c,o,e),h}}function XP(n,t,e,r,i){var a=n.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!n.involveSeries){e.showPointer(n,t);return}var o=_9(t,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ye(i,s[0]),!r&&n.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,o,l)}}function _9(n,t){var e=t.axis,r=e.dim,i=n,a=[],o=Number.MAX_VALUE,s=-1;return mt(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,h;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,n,e);h=f.dataIndices,d=f.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],n,e.type==="category"?.5:null),!h.length)return;d=l.getData().get(c[0],h[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g<o||p>=0&&s<0)&&(o=g,s=p,i=d,a.length=0),mt(h,function(v){a.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:a,snapToValue:i}}function b9(n,t,e,r){n[t.key]={value:e,payloadBatch:r}}function C9(n,t,e,r){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=fh(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function M9(n,t,e){var r=e.axesInfo=[];mt(t,function(i,a){var o=i.axisPointerModel.option,s=n[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function T9(n,t,e,r){if(Tg(t)||!n.list.length){r({type:"hideTip"});return}var i=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:n.list})}function D9(n,t,e){var r=e.getZr(),i="axisPointerLastHighlights",a=KP(r)[i]||{},o=KP(r)[i]={};mt(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&mt(d.seriesDataIndices,function(h){var f=h.seriesIndex+" | "+h.dataIndex;o[f]=h})});var s=[],l=[];mt(a,function(u,c){!o[c]&&l.push(u)}),mt(o,function(u,c){!a[c]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function k9(n,t){for(var e=0;e<(n||[]).length;e++){var r=n[e];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function YP(n){var t=n.axis.model,e={},r=e.axisDim=n.axis.dim;return e.axisIndex=e[r+"AxisIndex"]=t.componentIndex,e.axisName=e[r+"AxisName"]=t.name,e.axisId=e[r+"AxisId"]=t.id,e}function Tg(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function ph(n){Gl.registerAxisPointerClass("CartesianAxisPointer",d9),n.registerComponentModel(f9),n.registerComponentView(S9),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Se(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Y7(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},w9)}function ZP(n){_n(AP),_n(ph)}var P9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Jn);const A9=P9;function $P(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function JP(n){if(Zn.domSupported){for(var t=document.documentElement.style,e=0,r=n.length;e<r;e++)if(n[e]in t)return n[e]}}var QP=JP(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),I9=JP(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function qP(n,t){if(!n)return t;t=cT(t,!0);var e=n.indexOf(t);return n=e===-1?t:"-"+n.slice(0,e)+"-"+t,n.toLowerCase()}function E9(n,t){var e=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return e?t?e[t]:e:null}var L9=qP(I9,"transition"),aS=qP(QP,"transform"),O9="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Zn.transform3dSupported?"will-change:transform;":"");function R9(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function N9(n,t,e){if(!je(e)||e==="inside")return"";var r=n.get("backgroundColor"),i=n.get("borderWidth");t=Cl(t);var a=R9(e),o=Math.max(Math.round(i)*1.5,6),s="",l=aS+":",u;kn(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+i,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),f=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-d)/2)*100)/100;s+=";"+a+":-"+f+"px";var p=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function B9(n,t){var e="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+e,i="opacity"+r+",visibility"+r;return t||(r=" "+n+"s "+e,i+=Zn.transformSupported?","+aS+r:",left"+r+",top"+r),L9+":"+i}function tA(n,t,e){var r=n.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Zn.transformSupported)return e?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=Zn.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+aS+":"+o+";":[["top",0],["left",0],[QP,o]]}function V9(n){var t=[],e=n.get("fontSize"),r=n.getTextColor();r&&t.push("color:"+r),t.push("font:"+n.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=n.get("textShadowColor"),a=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),mt(["decoration","align"],function(l){var u=n.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function W9(n,t,e){var r=[],i=n.get("transitionDuration"),a=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=xD(n,"html"),h=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+h),t&&i&&r.push(B9(i,e)),a&&r.push("background-color:"+a),mt(["width","color","radius"],function(f){var p="border-"+f,g=cT(p),v=n.get(g);v!=null&&r.push(p+":"+v+(f==="color"?"":"px"))}),r.push(V9(c)),d!=null&&r.push("padding:"+ec(d).join("px ")+"px"),r.join(";")+";"}function eA(n,t,e,r,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&G4(n,o,e,r,i)}else{n[0]=r,n[1]=i;var s=a&&a.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var F9=function(){function n(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Zn.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(je(a)?document.querySelector(a):Lu(a)?a:qe(a)&&a(t.getDom()));eA(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ua(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),r=E9(e,"position"),i=e.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},n.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,a=this._styleCoord;r.innerHTML?i.cssText=O9+W9(t,!this._firstShow,this._longHide)+tA(a[0],a[1],!0)+("border-color:"+Cl(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,e,r,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(je(a)&&r.get("trigger")==="item"&&!$P(r)&&(s=N9(r,i,a)),je(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Se(t)||(t=[t]);for(var l=0;l<t.length;l++)Lu(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},n.prototype.moveTo=function(t,e){var r=this._styleCoord;if(eA(r,this._zr,this._container,t,e),r[0]!=null&&r[1]!=null){var i=this.el.style,a=tA(r[0],r[1]);mt(a,function(o){i[o[0]]=o[1]})}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Zn.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ge(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},n}();const j9=F9;var z9=function(){function n(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),rA(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return n.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(t,e,r,i,a){var o=this;rn(t)&&er(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Wn({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:xD(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),mt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),mt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),r=nA(t.style);return[e.width+r.left+r.right,e.height+r.top+r.bottom]},n.prototype.moveTo=function(t,e){var r=this.el;if(r){var i=this._styleCoord;rA(i,this._zr,t,e),t=i[0],e=i[1];var a=r.style,o=Is(a.borderWidth||0),s=nA(a);r.x=t+o+s.left,r.y=e+o+s.top,r.markRedraw()}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Ge(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Is(n){return Math.max(0,n)}function nA(n){var t=Is(n.shadowBlur||0),e=Is(n.shadowOffsetX||0),r=Is(n.shadowOffsetY||0);return{left:Is(t-e),right:Is(t+e),top:Is(t-r),bottom:Is(t+r)}}function rA(n,t,e,r){n[0]=e,n[1]=r,n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}const H9=z9;var U9=new jn({shape:{x:-1,y:-1,width:2,height:2}}),G9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){if(!(Zn.node||!r.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=PW(i.get("renderMode"));this._tooltipContent=a==="richText"?new H9(r):new j9(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,r,i){if(!(Zn.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=r,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?pc(this,"_updatePosition",50,"fixRate"):$d(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,r=e.get("triggerOn");HP("itemTooltip",this._api,Ge(function(i,a,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,r=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,r,i,a){if(!(a.from===this.uid||Zn.node||!i.getDom())){var o=iA(a,i);this._ticket="";var s=a.dataByCoordSys,l=Z9(a,r,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=U9;c.x=a.x,c.y=a.y,c.update(),hn(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,r,i,a))return;var d=GP(a,r),h=d.point[0],f=d.point[1];h!=null&&f!=null&&this._tryShow({offsetX:h,offsetY:f,target:d.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(iA(a,i))},t.prototype._manuallyAxisShowTip=function(e,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=gh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,r){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=hn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ol(i,function(c){if(hn(c).dataIndex!=null)return l=c,!0;if(hn(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(e,l,r):u?this._showComponentItemTooltip(e,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(e,r){var i=e.get("showDelay");r=Ge(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(e,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=gh([r.tooltipOption],a),l=this._renderMode,u=[],c=qr("section",{blocks:[],noHeader:!0}),d=[],h=new Oy;mt(e,function(x){mt(x.dataByAxis,function(S){var _=i.getComponent(S.axisDim+"Axis",S.axisIndex),D=S.value;if(!(!_||D==null)){var C=BP(D,_.axis,i,S.seriesDataIndices,S.valueLabelOpt),N=qr("section",{header:C,noHeader:!Ia(C),sortBlocks:!0,blocks:[]});c.blocks.push(N),mt(S.seriesDataIndices,function(q){var et=i.getSeriesByIndex(q.seriesIndex),lt=q.dataIndexInside,ft=et.getDataParams(lt);if(!(ft.dataIndex<0)){ft.axisDim=S.axisDim,ft.axisIndex=S.axisIndex,ft.axisType=S.axisType,ft.axisId=S.axisId,ft.axisValue=Ax(_.axis,{value:D}),ft.axisValueLabel=C,ft.marker=h.makeTooltipMarker("item",Cl(ft.color),l);var _t=QT(et.formatTooltip(lt,!0,null)),Ct=_t.frag;if(Ct){var kt=gh([et],a).get("valueFormatter");N.blocks.push(kt?ye({valueFormatter:kt},Ct):Ct)}_t.text&&d.push(_t.text),u.push(ft)}})}})}),c.blocks.reverse(),d.reverse();var f=r.position,p=s.get("order"),g=vD(c,h,l,p,i.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var v=l==="richText"?"\n\n":"<br/>",y=d.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],f,null,h)})},t.prototype._showSeriesItemTooltip=function(e,r,i){var a=this._ecModel,o=hn(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,h=u.getData(d),f=this._renderMode,p=e.positionDefault,g=gh([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(c,d),x=new Oy;y.marker=x.makeTooltipMarker("item",Cl(y.color),f);var S=QT(u.formatTooltip(c,!1,d)),_=g.get("order"),D=g.get("valueFormatter"),C=S.frag,N=C?vD(D?ye({valueFormatter:D},C):C,x,f,_,a.get("useUTC"),g.get("textStyle")):S.text,q="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,N,y,q,e.offsetX,e.offsetY,e.position,e.target,x)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,r,i){var a=hn(r),o=a.tooltipConfig,s=o.option||{};if(je(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=e.positionDefault,h=gh(u,this._tooltipModel,d?{position:d}:null),f=h.get("content"),p=Math.random()+"",g=new Oy;this._showOrMove(h,function(){var v=on(h.get("formatterParams")||{});this._showTooltipContent(h,f,v,p,e.offsetX,e.offsetY,e.position,r,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,r,i,a,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var d=this._tooltipContent;d.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var f=r,p=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=p.color;if(h)if(je(h)){var v=e.ecModel.get("useUTC"),y=Se(i)?i[0]:i,x=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=h,x&&(f=mp(y.axisValue,f,v)),f=hT(f,i,!0)}else if(qe(h)){var S=Ge(function(_,D){_===this._ticket&&(d.setContent(D,c,e,g,l),this._updatePosition(e,l,o,s,d,i,u))},this);this._ticket=a,f=h(i,a,S)}else f=h;d.setContent(f,c,e,g,l),d.show(e,g),this._updatePosition(e,l,o,s,d,i,u)}},t.prototype._getNearestPoint=function(e,r,i,a){if(i==="axis"||Se(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Se(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(e,r,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||e.get("position");var d=o.getSize(),h=e.get("align"),f=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),qe(r)&&(r=r([i,a],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),Se(r))i=Oe(r[0],u),a=Oe(r[1],c);else if(rn(r)){var g=r;g.width=d[0],g.height=d[1];var v=Xr(g,{width:u,height:c});i=v.x,a=v.y,h=null,f=null}else if(je(r)&&l){var y=Y9(r,p,d,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=K9(i,a,o,u,c,h?null:20,f?null:20);i=y[0],a=y[1]}if(h&&(i-=aA(h)?d[0]/2:h==="right"?d[0]:0),f&&(a-=aA(f)?d[1]/2:f==="bottom"?d[1]:0),$P(e)){var y=X9(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&mt(i,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&mt(u,function(h,f){var p=d[f]||{},g=h.seriesDataIndices||[],v=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&g.length===v.length,o&&mt(g,function(y,x){var S=v[x];o=o&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),a&&mt(h.seriesDataIndices,function(y){var x=y.seriesIndex,S=r[x],_=a[x];S&&_&&_.data!==S.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=r,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,r){Zn.node||!r.getDom()||($d(this,"_updatePosition"),this._tooltipContent.dispose(),iS("itemTooltip",r))},t.type="tooltip",t}(Lr);function gh(n,t,e){var r=t.ecModel,i;e?(i=new pr(e,r,r),i=new pr(t.option,i,r)):i=t;for(var a=n.length-1;a>=0;a--){var o=n[a];o&&(o instanceof pr&&(o=o.get("tooltip",!0)),je(o)&&(o={formatter:o}),o&&(i=new pr(o,i,r)))}return i}function iA(n,t){return n.dispatchAction||Ge(t.dispatchAction,t)}function K9(n,t,e,r,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(n+l+a+2>r?n-=l+a:n+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[n,t]}function X9(n,t,e,r,i){var a=e.getSize(),o=a[0],s=a[1];return n=Math.min(n+o,r)-o,t=Math.min(t+s,i)-s,n=Math.max(n,0),t=Math.max(t,0),[n,t]}function Y9(n,t,e,r){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(n){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function aA(n){return n==="center"||n==="middle"}function Z9(n,t,e){var r=_0(n).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=_d(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=hn(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const $9=G9;function oA(n){_n(ph),n.registerComponentModel(A9),n.registerComponentView($9),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Fr),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Fr)}var J9=function(n,t){if(t==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Q9=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,r,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,r){n.prototype.mergeOption.call(this,e,r),this._updateSelector(e)},t.prototype._updateSelector=function(e){var r=e.selector,i=this.ecModel;r===!0&&(r=e.selector=["all","inverse"]),Se(r)&&mt(r,function(a,o){je(a)&&(a={type:a}),r[o]=Mn(a,J9(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),r=!0;break}}!r&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var r=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var d=l.legendVisualProvider,h=d.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(h)),h.length?r=r.concat(h):c=!0}else c=!0;c&&w0(l)&&r.push(l.name)}),this._availableNames=i;var a=this.get("data")||r,o=Ze(),s=we(a,function(l){return(je(l)||$n(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new pr(l,this,this.ecModel))},this);this._data=sr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;mt(a,function(o){r[o.get("name")]=!1})}r[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var r=this.option.selected;r.hasOwnProperty(e)||(r[e]=!0),this[r[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,r=this.option.selected;mt(e,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,r=this.option.selected;mt(e,function(i){var a=i.get("name",!0);r.hasOwnProperty(a)||(r[a]=!0),r[a]=!r[a]})},t.prototype.isSelected=function(e){var r=this.option.selected;return!(r.hasOwnProperty(e)&&!r[e])&&kn(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Jn);const oS=Q9;function q9(n,t,e){var r=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=Xr(r,a,i);Tl(t.get("orient"),n,t.get("itemGap"),o.width,o.height),Cp(n,r,a,i)}function sA(n,t){var e=ec(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),n=new jn({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var Cc=xn,sS=mt,Dg=sn,tU=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Dg),this.group.add(this._selectorGroup=new Dg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,r,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,r,i,l,s,u);var c=e.getBoxLayoutParams(),d={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),f=Xr(c,d,h),p=this.layoutInner(e,o,f,a,l,u),g=Xr(nn({width:p.width,height:p.height},c),d,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=sA(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,r,i,a,o,s,l){var u=this.getContentGroup(),c=Ze(),d=r.get("selectedMode"),h=[];i.eachRawSeries(function(f){!f.get("legendHoverLink")&&h.push(f.id)}),sS(r.getData(),function(f,p){var g=f.get("name");if(!this.newlineDisabled&&(g===""||g==="\n")){var v=new Dg;v.newline=!0,u.add(v);return}var y=i.getSeriesByName(g)[0];if(!c.get(g))if(y){var x=y.getData(),S=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),D=x.getVisual("style"),C=this._createItem(y,g,p,f,r,e,S,D,_,d,a);C.on("click",Cc(lA,g,null,a,h)).on("mouseover",Cc(lS,y.name,null,a,h)).on("mouseout",Cc(uS,y.name,null,a,h)),i.ssr&&C.eachChild(function(N){var q=hn(N);q.seriesIndex=y.seriesIndex,q.dataIndex=p,q.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(N){if(!c.get(g)&&N.legendVisualProvider){var q=N.legendVisualProvider;if(!q.containName(g))return;var et=q.indexOfName(g),lt=q.getItemVisual(et,"style"),ft=q.getItemVisual(et,"legendIcon"),_t=zi(lt.fill);_t&&_t[3]===0&&(_t[3]=.2,lt=ye(ye({},lt),{fill:io(_t,"rgba")}));var Ct=this._createItem(N,g,p,f,r,e,{},lt,ft,d,a);Ct.on("click",Cc(lA,null,g,a,h)).on("mouseover",Cc(lS,null,g,a,h)).on("mouseout",Cc(uS,null,g,a,h)),i.ssr&&Ct.eachChild(function(kt){var Ot=hn(kt);Ot.seriesIndex=N.seriesIndex,Ot.dataIndex=p,Ot.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,a,s,l)},t.prototype._createSelector=function(e,r,i,a,o){var s=this.getSelectorGroup();sS(e,function(u){var c=u.type,d=new Wn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var h=r.getModel("selectorLabel"),f=r.getModel(["emphasis","selectorLabel"]);ci(d,{normal:h,emphasis:f},{defaultText:u.title}),jo(d)})},t.prototype._createItem=function(e,r,i,a,o,s,l,u,c,d,h){var f=e.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),v=o.isSelected(r),y=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),S=a.get("icon");c=S||c||"roundRect";var _=eU(c,a,l,u,f,v,h),D=new Dg,C=a.getModel("textStyle");if(qe(e.getLegendIcon)&&(!S||S==="inherit"))D.add(e.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var N=S==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;D.add(nU({itemWidth:p,itemHeight:g,icon:c,iconRotate:N,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}))}var q=s==="left"?p+5:-5,et=s,lt=o.get("formatter"),ft=r;je(lt)&&lt?ft=lt.replace("{name}",r!=null?r:""):qe(lt)&&(ft=lt(r));var _t=v?C.getTextColor():a.get("inactiveColor");D.add(new Wn({style:mr(C,{text:ft,x:q,y:g/2,fill:_t,align:et,verticalAlign:"middle"},{inheritColor:_t})}));var Ct=new jn({shape:D.getBoundingRect(),style:{fill:"transparent"}}),kt=a.getModel("tooltip");return kt.get("show")&&fc({el:Ct,componentModel:o,itemName:r,itemTooltipOption:kt.option}),D.add(Ct),D.eachChild(function(Ot){Ot.silent=!0}),Ct.silent=!d,this.getContentGroup().add(D),jo(D),D.__legendDataIndex=i,D},t.prototype.layoutInner=function(e,r,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Tl(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Tl("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),f=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),g=e.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",x=g===0?"y":"x";s==="end"?f[g]+=c[v]+p:d[g]+=h[v]+p,f[1-g]+=c[y]/2-h[y]/2,u.x=f[0],u.y=f[1],l.x=d[0],l.y=d[1];var S={x:0,y:0};return S[v]=c[v]+p+h[v],S[y]=Math.max(c[y],h[y]),S[x]=Math.min(0,h[x]+f[1-g]),S}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Lr);function eU(n,t,e,r,i,a,o){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),sS(v,function(x,S){v[S]==="inherit"&&(v[S]=y[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:yc(d,o),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:e).opacity),s(u,r);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,e),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),f.stroke==="auto"&&(f.stroke=r.fill),!a){var p=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function nU(n){var t=n.icon||"roundRect",e=Rr(t,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return e.setStyle(n.itemStyle),e.rotation=(n.iconRotate||0)*Math.PI/180,e.setOrigin([n.itemWidth/2,n.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function lA(n,t,e,r){uS(n,t,e,r),e.dispatchAction({type:"legendToggleSelect",name:n!=null?n:t}),lS(n,t,e,r)}function uA(n){for(var t=n.getZr().storage.getDisplayList(),e,r=0,i=t.length;r<i&&!(e=t[r].states.emphasis);)r++;return e&&e.hoverLayer}function lS(n,t,e,r){uA(e)||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:r})}function uS(n,t,e,r){uA(e)||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:r})}const cA=tU;function rU(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var r=0;r<t.length;r++)if(!t[r].isSelected(e.name))return!1;return!0})}function vh(n,t,e){var r={},i=n==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):n==="allSelect"||n==="inverseSelect"?o[n]():(o[n](t.name),a=o.isSelected(t.name));var s=o.getData();mt(s,function(l){var u=l.get("name");if(!(u==="\n"||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),n==="allSelect"||n==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function iU(n){n.registerAction("legendToggleSelect","legendselectchanged",xn(vh,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",xn(vh,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",xn(vh,"inverseSelect")),n.registerAction("legendSelect","legendselected",xn(vh,"select")),n.registerAction("legendUnSelect","legendunselected",xn(vh,"unSelect"))}function dA(n){n.registerComponentModel(oS),n.registerComponentView(cA),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,rU),n.registerSubTypeDefaulter("legend",function(){return"plain"}),iU(n)}var aU=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,r,i){var a=nc(e);n.prototype.init.call(this,e,r,i),hA(this,e,a)},t.prototype.mergeOption=function(e,r){n.prototype.mergeOption.call(this,e,r),hA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=_s(oS.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(oS);function hA(n,t,e){var r=n.getOrient(),i=[1,1];i[r.index]=0,bs(t,e,{type:"box",ignoreSize:!!i})}const oU=aU;var fA=sn,cS=["width","height"],dS=["x","y"],sU=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new fA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new fA)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,r,i,a,o,s,l){var u=this;n.prototype.renderInner.call(this,e,r,i,a,o,s,l);var c=this._controllerGroup,d=r.get("pageIconSize",!0),h=Se(d)?d:[d,d];p("pagePrev",0);var f=r.getModel("pageTextStyle");c.add(new Wn({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,v){var y=g+"DataIndex",x=Yd(r.get("pageIcons",!0)[r.getOrient().name][v],{onclick:Ge(u._pageGo,u,y,r,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});x.name=g,c.add(x)}},t.prototype.layoutInner=function(e,r,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=cS[u],d=dS[u],h=cS[1-u],f=dS[1-u];o&&Tl("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=on(i);o&&(y[c]=i[c]-g[c]-p);var x=this._layoutContentAndController(e,a,y,u,c,h,f,d);if(o){if(s==="end")v[u]+=x[c]+p;else{var S=g[c]+p;v[u]-=S,x[d]-=S}x[c]+=g[c]+p,v[1-u]+=x[f]+x[h]/2-g[h]/2,x[h]=Math.max(x[h],g[h]),x[f]=Math.min(x[f],g[f]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return x},t.prototype._layoutContentAndController=function(e,r,i,a,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;Tl(e.get("orient"),c,e.get("itemGap"),a?i.width:null,a?null:i.height),Tl("horizontal",h,e.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=f[o]>i[o],v=[-f.x,-f.y];r||(v[a]=c[u]);var y=[0,0],x=[-p.x,-p.y],S=pn(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var _=e.get("pageButtonPosition",!0);_==="end"?x[a]+=i[o]-p[o]:y[a]+=p[o]+S}x[1-a]+=f[s]/2-p[s]/2,c.setPosition(v),d.setPosition(y),h.setPosition(x);var D={x:0,y:0};if(D[o]=g?i[o]:f[o],D[s]=Math.max(f[s],p[s]),D[l]=Math.min(0,p[l]+x[1-a]),d.__rectSize=i[o],g){var C={x:0,y:0};C[o]=Math.max(i[o]-p[o]-S,0),C[s]=D[s],d.setClipPath(new jn({shape:C})),d.__rectSize=C[o]}else h.eachChild(function(q){q.attr({invisible:!0,silent:!0})});var N=this._getPageInfo(e);return N.pageIndex!=null&&Hn(c,{x:N.contentPosition[0],y:N.contentPosition[1]},g?e:null),this._updatePageInfoView(e,N),D},t.prototype._pageGo=function(e,r,i){var a=this._getPageInfo(r)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(e,r){var i=this._controllerGroup;mt(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",h=r[d]!=null,f=i.childOfName(c);f&&(f.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),f.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;a&&o&&a.setStyle("text",je(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var r=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=cS[o],l=dS[o],u=this._findTargetItemIndex(r),c=i.children(),d=c[u],h=c.length,f=h?1:0,p={contentPosition:[i.x,i.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=_(d);p.contentPosition[o]=-g.s;for(var v=u+1,y=g,x=g,S=null;v<=h;++v)S=_(c[v]),(!S&&x.e>y.s+a||S&&!D(S,y.s))&&(x.i>y.i?y=x:y=S,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),x=S;for(var v=u-1,y=g,x=g,S=null;v>=-1;--v)S=_(c[v]),(!S||!D(x,S.s))&&y.i<x.i&&(x=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=S;return p;function _(C){if(C){var N=C.getBoundingRect(),q=N[l]+C[l];return{s:q,e:q+N[s],i:C.__legendDataIndex}}}function D(C,N){return C.e>=N&&C.s<=N+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(r=s)}),r!=null?r:a},t.type="legend.scroll",t}(cA);const lU=sU;function uU(n){n.registerAction("legendScroll","legendscroll",function(t,e){var r=t.scrollDataIndex;r!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function cU(n){_n(dA),n.registerComponentModel(oU),n.registerComponentView(lU),uU(n)}function pA(n){_n(dA),_n(cU)}var dU={average:function(n){for(var t=0,e=0,r=0;r<n.length;r++)isNaN(n[r])||(t+=n[r],e++);return e===0?NaN:t/e},sum:function(n){for(var t=0,e=0;e<n.length;e++)t+=n[e]||0;return t},max:function(n){for(var t=-1/0,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e<n.length;e++)n[e]<t&&(t=n[e]);return isFinite(t)?t:NaN},minmax:function(n){for(var t=-1/0,e=-1/0,r=0;r<n.length;r++){var i=n[r],a=Math.abs(i);a>t&&(t=a,e=i)}return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},hU=function(n){return Math.round(n.length/2)};function gA(n){return{seriesType:n,reset:function(t,e,r){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(d||1),f=Math.round(s/h);if(isFinite(f)&&f>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/f));var p=void 0;je(a)?p=dU[a]:qe(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/f,p,hU))}}}}}var vA=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)mt(a.getAxes(),function(h,f){if(h.type==="category"&&r!=null){var p=h.getTicksCoords(),g=h.getTickModel().get("alignWithLabel"),v=o[f],y=r[f]==="x1"||r[f]==="y1";if(y&&!g&&(v+=1),p.length<2)return;if(p.length===2){s[f]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var x=void 0,S=void 0,_=1,D=0;D<p.length;D++){var C=p[D].coord,N=D===p.length-1?p[D-1].tickValue+_:p[D].tickValue;if(N===v){S=C;break}else if(N<v)x=C;else if(x!=null&&N>v){S=(C+x)/2;break}D===1&&(_=N-p[0].tickValue)}S==null&&(x?x&&(S=p[p.length-1].coord):S=p[0].coord),s[f]=h.toGlobalCoord(S)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=a.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(br);br.registerClass(vA);const kg=vA;var fU=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return mo(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>e&&(e=r),e},t.prototype.brushSelector=function(e,r,i){return i.rect(r.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=_s(kg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(kg);const pU=fU;function mA(n,t,e,r,i){var a=n.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=e.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var d=new jn({shape:{x:o,y:s,width:l,height:u}});if(t){var h=n.getBaseAxis(),f=h.isHorizontal(),p=h.inverse;f?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=u),d.shape.height=0);var g=qe(i)?function(v){i(v,d)}:null;_r(d,{shape:{width:l,height:u,x:o,y:s}},e,null,r,g)}return d}function yA(n,t,e){var r=n.getArea(),i=Or(r.r0,1),a=Or(r.r,1),o=new Gi({shape:{cx:Or(n.cx,1),cy:Or(n.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=n.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=i,_r(o,{shape:{endAngle:r.endAngle,r:a}},e)}return o}function mh(n,t,e,r,i){if(n){if(n.type==="polar")return yA(n,t,e);if(n.type==="cartesian2d")return mA(n,t,e,r,i)}else return null;return null}var gU=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),vU=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new gU},t.prototype.buildPath=function(e,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,h=r.clockwise,f=Math.PI*2,p=h?d-c<f:c-d<f;p||(c=d-(h?f:-f));var g=Math.cos(c),v=Math.sin(c),y=Math.cos(d),x=Math.sin(d);p?(e.moveTo(g*o+i,v*o+a),e.arc(g*u+i,v*u+a,l,-Math.PI+c,c,!h)):e.moveTo(g*s+i,v*s+a),e.arc(i,a,s,c,d,!h),e.arc(y*u+i,x*u+a,l,d-Math.PI*2,d-Math.PI,!h),o!==0&&e.arc(i,a,o,d,c,h)},t}(In);const Pg=vU;function Xl(n,t){return n.type===t}function Mc(n,t){var e=n.mapDimensionsAll("defaultedLabel"),r=e.length;if(r===1){var i=oc(n,t,e[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o<e.length;o++)a.push(oc(n,t,e[o]));return a.join(" ")}}function xA(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!Se(t))return t+"";for(var r=[],i=0;i<e.length;i++){var a=n.getDimensionIndex(e[i]);a>=0&&r.push(t[a])}return r.join(" ")}function mU(n,t){t=t||{};var e=t.isRoundCap;return function(r,i,a){var o=i.position;if(!o||o instanceof Array)return Jf(r,i,a);var s=n(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,d=u.cy,h=u.r,f=u.r0,p=(h+f)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,x=e?Math.abs(h-f)/2:0,S=Math.cos,_=Math.sin,D=c+h*S(g),C=d+h*_(g),N="left",q="top";switch(s){case"startArc":D=c+(f-l)*S(y),C=d+(f-l)*_(y),N="center",q="top";break;case"insideStartArc":D=c+(f+l)*S(y),C=d+(f+l)*_(y),N="center",q="bottom";break;case"startAngle":D=c+p*S(g)+Ag(g,l+x,!1),C=d+p*_(g)+Ig(g,l+x,!1),N="right",q="middle";break;case"insideStartAngle":D=c+p*S(g)+Ag(g,-l+x,!1),C=d+p*_(g)+Ig(g,-l+x,!1),N="left",q="middle";break;case"middle":D=c+p*S(y),C=d+p*_(y),N="center",q="middle";break;case"endArc":D=c+(h+l)*S(y),C=d+(h+l)*_(y),N="center",q="bottom";break;case"insideEndArc":D=c+(h-l)*S(y),C=d+(h-l)*_(y),N="center",q="top";break;case"endAngle":D=c+p*S(v)+Ag(v,l+x,!0),C=d+p*_(v)+Ig(v,l+x,!0),N="left",q="middle";break;case"insideEndAngle":D=c+p*S(v)+Ag(v,-l+x,!0),C=d+p*_(v)+Ig(v,-l+x,!0),N="right",q="middle";break;default:return Jf(r,i,a)}return r=r||{},r.x=D,r.y=C,r.align=N,r.verticalAlign=q,r}}function yU(n,t,e,r){if($n(r)){n.setTextConfig({rotation:r});return}else if(Se(t)){n.setTextConfig({rotation:0});return}var i=n.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:n.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),n.setTextConfig({rotation:c})}function Ag(n,t,e){return t*Math.sin(n)*(e?-1:1)}function Ig(n,t,e){return t*Math.cos(n)*(e?1:-1)}function Yl(n,t,e){var r=n.get("borderRadius");if(r==null)return e?{cornerRadius:0}:null;Se(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:we(r,function(a){return Oa(a,i)})}}var hS=Math.max,fS=Math.min;function xU(n,t){var e=n.getArea&&n.getArea();if(Xl(n,"cartesian2d")){var r=n.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var SU=function(n){Zt(t,n);function t(){var e=n.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,r,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,r,i):this._renderNormal(e,r,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,r){this._progressiveEls=[],this._incrementalRenderLarge(e,r)},t.prototype.eachRendered=function(e){Ts(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e,r,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.getBaseAxis(),d;u.type==="cartesian2d"?d=c.isHorizontal():u.type==="polar"&&(d=c.dim==="angle");var h=e.isAnimationEnabled()?e:null,f=wU(e,u);f&&this._enableRealtimeSort(f,s,i);var p=e.get("clip",!0)||f,g=xU(u,s);o.removeClipPath();var v=e.get("roundCap",!0),y=e.get("showBackground",!0),x=e.getModel("backgroundStyle"),S=x.get("borderRadius")||0,_=[],D=this._backgroundEls,C=a&&a.isInitSort,N=a&&a.type==="changeAxisOrder";function q(ft){var _t=Eg[u.type](s,ft),Ct=kU(u,d,_t);return Ct.useStyle(x.getItemStyle()),u.type==="cartesian2d"?Ct.setShape("r",S):Ct.setShape("cornerRadius",S),_[ft]=Ct,Ct}s.diff(l).add(function(ft){var _t=s.getItemModel(ft),Ct=Eg[u.type](s,ft,_t);if(y&&q(ft),!(!s.hasValue(ft)||!CA[u.type](Ct))){var kt=!1;p&&(kt=SA[u.type](g,Ct));var Ot=wA[u.type](e,s,ft,Ct,d,h,c.model,!1,v);f&&(Ot.forceLabelAnimation=!0),TA(Ot,s,ft,_t,Ct,e,d,u.type==="polar"),C?Ot.attr({shape:Ct}):f?_A(f,h,Ot,Ct,ft,d,!1,!1):_r(Ot,{shape:Ct},e,ft),s.setItemGraphicEl(ft,Ot),o.add(Ot),Ot.ignore=kt}}).update(function(ft,_t){var Ct=s.getItemModel(ft),kt=Eg[u.type](s,ft,Ct);if(y){var Ot=void 0;D.length===0?Ot=q(_t):(Ot=D[_t],Ot.useStyle(x.getItemStyle()),u.type==="cartesian2d"?Ot.setShape("r",S):Ot.setShape("cornerRadius",S),_[ft]=Ot);var Nt=Eg[u.type](s,ft),Xt=AA(d,Nt,u);Hn(Ot,{shape:Xt},h,ft)}var Vt=l.getItemGraphicEl(_t);if(!s.hasValue(ft)||!CA[u.type](kt)){o.remove(Vt);return}var Ut=!1;if(p&&(Ut=SA[u.type](g,kt),Ut&&o.remove(Vt)),Vt?Na(Vt):Vt=wA[u.type](e,s,ft,kt,d,h,c.model,!!Vt,v),f&&(Vt.forceLabelAnimation=!0),N){var Yt=Vt.getTextContent();if(Yt){var ue=$u(Yt);ue.prevValue!=null&&(ue.prevValue=ue.value)}}else TA(Vt,s,ft,Ct,kt,e,d,u.type==="polar");C?Vt.attr({shape:kt}):f?_A(f,h,Vt,kt,ft,d,!0,N):Hn(Vt,{shape:kt},e,ft,null),s.setItemGraphicEl(ft,Vt),Vt.ignore=Ut,o.add(Vt)}).remove(function(ft){var _t=l.getItemGraphicEl(ft);_t&&Id(_t,e,ft)}).execute();var et=this._backgroundGroup||(this._backgroundGroup=new sn);et.removeAll();for(var lt=0;lt<_.length;++lt)et.add(_[lt]);o.add(et),this._backgroundEls=_,this._data=s},t.prototype._renderLarge=function(e,r,i){this._clear(),kA(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,r){this._removeBackground(),kA(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var r=e.get("clip",!0)&&mh(e.coordinateSystem,!1,e),i=this.group;r?i.setClipPath(r):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,r,i){var a=this;if(r.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(r,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,r,i){var a=[];return e.each(e.mapDimension(r.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:we(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,r,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),d=c<0?Number.MIN_VALUE:r(e.indexOfRawIndex(c));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(e,r){for(var i=r.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,r,i,a){if(this._isOrderChangedWithinSameData(e,r,i)){var o=this._dataSort(e,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,r,i){var a=r.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(e,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var r=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Id(a,e,hn(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(gr),SA={cartesian2d:function(n,t){var e=t.width<0?-1:1,r=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=n.x+n.width,a=n.y+n.height,o=hS(t.x,n.x),s=fS(t.x+t.width,i),l=hS(t.y,n.y),u=fS(t.y+t.height,a),c=s<o,d=u<l;return t.x=c&&o>i?s:o,t.y=d&&l>a?u:l,t.width=c?0:s-o,t.height=d?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}var i=fS(t.r,n.r),a=hS(t.r0,n.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},wA={cartesian2d:function(n,t,e,r,i,a,o,s,l){var u=new jn({shape:ye({},r),z2:1});if(u.__dataIndex=e,u.name="item",a){var c=u.shape,d=i?"height":"width";c[d]=0}return u},polar:function(n,t,e,r,i,a,o,s,l){var u=!i&&l?Pg:Gi,c=new u({shape:r,z2:1});c.name="item";var d=MA(i);if(c.calculateTextPosition=mU(d,{isRoundCap:u===Pg}),a){var h=c.shape,f=i?"r":"endAngle",p={};h[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Hn:_r)(c,{shape:p},a)}return c}};function wU(n,t){var e=n.get("realtimeSort",!0),r=t.getBaseAxis();if(e&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function _A(n,t,e,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?Hn:_r)(e,{shape:l},t,i,null);var c=t?n.baseAxis.model:null;(o?Hn:_r)(e,{shape:u},c,i)}function bA(n,t){for(var e=0;e<t.length;e++)if(!isFinite(n[t[e]]))return!0;return!1}var _U=["x","y","width","height"],bU=["cx","cy","r","startAngle","endAngle"],CA={cartesian2d:function(n){return!bA(n,_U)},polar:function(n){return!bA(n,bU)}},Eg={cartesian2d:function(n,t,e){var r=n.getItemLayout(t),i=e?MU(e,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(n,t,e){var r=n.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function CU(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function MA(n){return function(t){var e=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+e;default:return r}}}(n)}function TA(n,t,e,r,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var c=n.shape,d=Yl(r.getModel("itemStyle"),c,!0);ye(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var h=r.getShallow("cursor");h&&n.attr("cursor",h);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Qr(r);ci(n,p,{labelFetcher:a,labelDataIndex:e,defaultText:Mc(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=n.getTextContent();if(s&&g){var v=r.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,yU(n,v==="outside"?f:v,MA(o),r.get(["label","rotate"]))}KM(g,p,a.getRawValue(e),function(x){return xA(t,x)});var y=r.getModel(["emphasis"]);Er(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),ui(n,r),CU(i)&&(n.style.fill="none",n.style.stroke="none",mt(n.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function MU(n,t){var e=n.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var TU=function(){function n(){}return n}(),DA=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new TU},t.prototype.buildPath=function(e,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],e.rect(s[0],s[1],l[0],l[1])},t}(In);function kA(n,t,e,r){var i=n.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=n.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new DA({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var d=new DA({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual("style")),hn(d).seriesIndex=n.seriesIndex,n.get("silent")||(d.on("mousedown",PA),d.on("mousemove",PA)),e&&e.push(d)}var PA=Xy(function(n){var t=this,e=DU(t,n.offsetX,n.offsetY);hn(t).dataIndex=e>=0?e:null},30,!1);function DU(n,t,e){for(var r=n.baseDimIdx,i=1-r,a=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=a.length/3;c<d;c++){var h=c*3;if(l[r]=u,l[i]=a[h+2],s[r]=a[h+r],s[i]=a[h+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function AA(n,t,e){if(Xl(e,"cartesian2d")){var r=t,i=e.getArea();return{x:n?r.x:i.x,y:n?i.y:r.y,width:n?r.width:i.width,height:n?i.height:r.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:n?i.r0:a.r0,r:n?i.r:a.r,startAngle:n?a.startAngle:0,endAngle:n?a.endAngle:Math.PI*2}}}function kU(n,t,e){var r=n.type==="polar"?Gi:jn;return new r({shape:AA(t,e,n),silent:!0,z2:0})}const PU=SU;function IA(n){n.registerChartView(PU),n.registerSeriesModel(pU),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,xn(P2,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,A2("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,gA("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var AU=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var r;return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var r=new sn,i=Rr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);r.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=Rr(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);r.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(br);const IU=AU;var EU=function(n){Zt(t,n);function t(e,r,i,a){var o=n.call(this)||this;return o.updateData(e,r,i,a),o}return t.prototype._createSymbol=function(e,r,i,a,o){this.removeAll();var s=Rr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=LU,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Wo(this.childAt(0))},t.prototype.downplay=function(){Fo(this.childAt(0))},t.prototype.setZ=function(e,r){var i=this.childAt(0);i.zlevel=e,i.z=r},t.prototype.setDraggable=function(e,r){var i=this.childAt(0);i.draggable=e,i.cursor=!r&&e?"move":i.cursor},t.prototype.updateData=function(e,r,i,a){this.silent=!1;var o=e.getItemVisual(r,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,r),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var d=e.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,e,r,l,d)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(f):Hn(h,f,s,r),Na(h)}if(this._updateCommon(e,r,l,i,a),u){var h=this.childAt(0);if(!c){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,_r(h,f,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,r,i,a,o){var s=this.childAt(0),l=e.hostModel,u,c,d,h,f,p,g,v,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,d=a.selectItemStyle,h=a.focus,f=a.blurScope,g=a.labelStatesModels,v=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||e.hasItemOption){var x=a&&a.itemModel?a.itemModel:e.getItemModel(r),S=x.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),d=x.getModel(["select","itemStyle"]).getItemStyle(),c=x.getModel(["blur","itemStyle"]).getItemStyle(),h=S.get("focus"),f=S.get("blurScope"),p=S.get("disabled"),g=Qr(x),v=S.getShallow("scale"),y=x.getShallow("cursor")}var _=e.getItemVisual(r,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var D=Rl(e.getItemVisual(r,"symbolOffset"),i);D&&(s.x=D[0],s.y=D[1]),y&&s.attr("cursor",y);var C=e.getItemVisual(r,"style"),N=C.fill;if(s instanceof li){var q=s.style;s.useStyle(ye({image:q.image,x:q.x,y:q.y,width:q.width,height:q.height},C))}else s.__isEmptyBrush?s.useStyle(ye({},C)):s.useStyle(C),s.style.decal=null,s.setColor(N,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var et=e.getItemVisual(r,"liftZ"),lt=this._z2;et!=null?lt==null&&(this._z2=s.z2,s.z2+=et):lt!=null&&(s.z2=lt,this._z2=null);var ft=o&&o.useNameLabel;ci(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:_t,inheritColor:N,defaultOpacity:C.opacity});function _t(Ot){return ft?e.getName(Ot):Mc(e,Ot)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var Ct=s.ensureState("emphasis");Ct.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var kt=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;Ct.scaleX=this._sizeX*kt,Ct.scaleY=this._sizeY*kt,this.setSymbolScale(1),Er(this,h,f,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,r,i){var a=this.childAt(0),o=hn(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ws(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ws(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,r){return vc(e.getItemVisual(r,"symbolSize"))},t}(sn);function LU(n,t){this.parent.drift(n,t)}const yh=EU;function pS(n,t,e,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(e))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&n.getItemVisual(e,"symbol")!=="none"}function EA(n){return n!=null&&!rn(n)&&(n={isIgnore:n}),n||{}}function LA(n){var t=n.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Qr(t),cursorStyle:t.get("cursor")}}var OU=function(){function n(t){this.group=new sn,this._SymbolCtor=t||yh}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=EA(e);var r=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=LA(t),u={disableAnimation:s},c=e.getSymbolPoint||function(d){return t.getItemLayout(d)};a||r.removeAll(),t.diff(a).add(function(d){var h=c(d);if(pS(t,h,d,e)){var f=new o(t,d,l,u);f.setPosition(h),t.setItemGraphicEl(d,f),r.add(f)}}).update(function(d,h){var f=a.getItemGraphicEl(h),p=c(d);if(!pS(t,p,d,e)){r.remove(f);return}var g=t.getItemVisual(d,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==g)r.remove(f),f=new o(t,d,l,u),f.setPosition(p);else{f.updateData(t,d,l,u);var y={x:p[0],y:p[1]};s?f.attr(y):Hn(f,y,i)}r.add(f),t.setItemGraphicEl(d,f)}).remove(function(d){var h=a.getItemGraphicEl(d);h&&h.fadeOut(function(){r.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(r,i){var a=t._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=LA(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,r){this._progressiveEls=[],r=EA(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(pS(e,o,a,r)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(t){Ts(this._progressiveEls||this.group,t)},n.prototype.remove=function(t){var e=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},r.hostModel)}):e.removeAll()},n}();const xh=OU;function OA(n,t,e){var r=n.getBaseAxis(),i=n.getOtherAxis(r),a=RU(i,e),o=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,d=we(n.dimensions,function(p){return t.mapDimension(p)}),h=!1,f=t.getCalculationInfo("stackResultDimension");return Ko(t,d[0])&&(h=!0,d[0]=f),Ko(t,d[1])&&(h=!0,d[1]=f),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function RU(n,t){var e=0,r=n.scale.getExtent();return t==="start"?e=r[0]:t==="end"?e=r[1]:$n(t)&&!isNaN(t)?e=t:r[0]>0?e=r[0]:r[1]<0&&(e=r[1]),e}function RA(n,t,e,r){var i=NaN;n.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=n.valueStart);var a=n.baseDataOffset,o=[];return o[a]=e.get(n.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function NU(n,t){var e=[];return t.diff(n).add(function(r){e.push({cmd:"+",idx:r})}).update(function(r,i){e.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){e.push({cmd:"-",idx:r})}).execute(),e}function BU(n,t,e,r,i,a,o,s){for(var l=NU(n,t),u=[],c=[],d=[],h=[],f=[],p=[],g=[],v=OA(i,t,o),y=n.getLayout("points")||[],x=t.getLayout("points")||[],S=0;S<l.length;S++){var _=l[S],D=!0,C=void 0,N=void 0;switch(_.cmd){case"=":C=_.idx*2,N=_.idx1*2;var q=y[C],et=y[C+1],lt=x[N],ft=x[N+1];(isNaN(q)||isNaN(et))&&(q=lt,et=ft),u.push(q,et),c.push(lt,ft),d.push(e[C],e[C+1]),h.push(r[N],r[N+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var _t=_.idx,Ct=v.dataDimsForPoint,kt=i.dataToPoint([t.get(Ct[0],_t),t.get(Ct[1],_t)]);N=_t*2,u.push(kt[0],kt[1]),c.push(x[N],x[N+1]);var Ot=RA(v,i,t,_t);d.push(Ot[0],Ot[1]),h.push(r[N],r[N+1]),g.push(t.getRawIndex(_t));break;case"-":D=!1}D&&(f.push(_),p.push(p.length))}p.sort(function(me,De){return g[me]-g[De]});for(var Nt=u.length,Xt=yo(Nt),Vt=yo(Nt),Ut=yo(Nt),Yt=yo(Nt),ue=[],S=0;S<p.length;S++){var ie=p[S],Gt=S*2,Qt=ie*2;Xt[Gt]=u[Qt],Xt[Gt+1]=u[Qt+1],Vt[Gt]=c[Qt],Vt[Gt+1]=c[Qt+1],Ut[Gt]=d[Qt],Ut[Gt+1]=d[Qt+1],Yt[Gt]=h[Qt],Yt[Gt+1]=h[Qt+1],ue[S]=f[ie]}return{current:Xt,next:Vt,stackedOnCurrent:Ut,stackedOnNext:Yt,status:ue}}var Es=Math.min,Ls=Math.max;function Zl(n,t){return isNaN(n)||isNaN(t)}function gS(n,t,e,r,i,a,o,s,l){for(var u,c,d,h,f,p,g=e,v=0;v<r;v++){var y=t[g*2],x=t[g*2+1];if(g>=i||g<0)break;if(Zl(y,x)){if(l){g+=a;continue}break}if(g===e)n[a>0?"moveTo":"lineTo"](y,x),d=y,h=x;else{var S=y-u,_=x-c;if(S*S+_*_<.5){g+=a;continue}if(o>0){for(var D=g+a,C=t[D*2],N=t[D*2+1];C===y&&N===x&&v<r;)v++,D+=a,g+=a,C=t[D*2],N=t[D*2+1],y=t[g*2],x=t[g*2+1],S=y-u,_=x-c;var q=v+1;if(l)for(;Zl(C,N)&&q<r;)q++,D+=a,C=t[D*2],N=t[D*2+1];var et=.5,lt=0,ft=0,_t=void 0,Ct=void 0;if(q>=r||Zl(C,N))f=y,p=x;else{lt=C-u,ft=N-c;var kt=y-u,Ot=C-y,Nt=x-c,Xt=N-x,Vt=void 0,Ut=void 0;if(s==="x"){Vt=Math.abs(kt),Ut=Math.abs(Ot);var Yt=lt>0?1:-1;f=y-Yt*Vt*o,p=x,_t=y+Yt*Ut*o,Ct=x}else if(s==="y"){Vt=Math.abs(Nt),Ut=Math.abs(Xt);var ue=ft>0?1:-1;f=y,p=x-ue*Vt*o,_t=y,Ct=x+ue*Ut*o}else Vt=Math.sqrt(kt*kt+Nt*Nt),Ut=Math.sqrt(Ot*Ot+Xt*Xt),et=Ut/(Ut+Vt),f=y-lt*o*(1-et),p=x-ft*o*(1-et),_t=y+lt*o*et,Ct=x+ft*o*et,_t=Es(_t,Ls(C,y)),Ct=Es(Ct,Ls(N,x)),_t=Ls(_t,Es(C,y)),Ct=Ls(Ct,Es(N,x)),lt=_t-y,ft=Ct-x,f=y-lt*Vt/Ut,p=x-ft*Vt/Ut,f=Es(f,Ls(u,y)),p=Es(p,Ls(c,x)),f=Ls(f,Es(u,y)),p=Ls(p,Es(c,x)),lt=y-f,ft=x-p,_t=y+lt*Ut/Vt,Ct=x+ft*Ut/Vt}n.bezierCurveTo(d,h,f,p,y,x),d=_t,h=Ct}else n.lineTo(y,x)}u=y,c=x,g+=a}return v}var NA=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),VU=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NA},t.prototype.buildPath=function(e,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&Zl(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Zl(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=gS(e,i,a,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(e,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ho.CMD,s,l,u=r==="x",c=[],d=0;d<a.length;){var h=a[d++],f=void 0,p=void 0,g=void 0,v=void 0,y=void 0,x=void 0,S=void 0;switch(h){case o.M:s=a[d++],l=a[d++];break;case o.L:if(f=a[d++],p=a[d++],S=u?(e-s)/(f-s):(e-l)/(p-l),S<=1&&S>=0){var _=u?(p-l)*S+l:(f-s)*S+s;return u?[e,_]:[_,e]}s=f,l=p;break;case o.C:f=a[d++],p=a[d++],g=a[d++],v=a[d++],y=a[d++],x=a[d++];var D=u?Bf(s,f,g,y,e,c):Bf(l,p,v,x,e,c);if(D>0)for(var C=0;C<D;C++){var N=c[C];if(N<=1&&N>=0){var _=u?Jr(l,p,v,x,N):Jr(s,f,g,y,N);return u?[e,_]:[_,e]}}s=y,l=x;break}}},t}(In),WU=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t}(NA),BA=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new WU},t.prototype.buildPath=function(e,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Zl(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Zl(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=gS(e,i,o,s,s,1,r.smooth,l,r.connectNulls);gS(e,a,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,e.closePath()}},t}(In);function VA(n,t){if(n.length===t.length){for(var e=0;e<n.length;e++)if(n[e]!==t[e])return;return!0}}function WA(n){for(var t=1/0,e=1/0,r=-1/0,i=-1/0,a=0;a<n.length;){var o=n[a++],s=n[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[r,i]]}function FA(n,t){var e=WA(n),r=e[0],i=e[1],a=WA(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function jA(n){return $n(n)?n:n?.5:0}function FU(n,t,e){if(!e.valueDim)return[];for(var r=t.count(),i=yo(r*2),a=0;a<r;a++){var o=RA(e,n,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Os(n,t,e,r){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],d=[];if(r){for(s=0;s<n.length;s+=2)!isNaN(n[s])&&!isNaN(n[s+1])&&d.push(n[s],n[s+1]);n=d}for(s=0;s<n.length-2;s+=2)switch(c[0]=n[s+2],c[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],o.push(u[0],u[1]),e){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var h=(u[a]+c[a])/2,f=[];l[a]=f[a]=h,l[1-a]=u[1-a],f[1-a]=c[1-a],o.push(l[0],l[1]),o.push(f[0],f[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(n[s++],n[s++]),o}function jU(n,t){var e=[],r=n.length,i,a;function o(c,d,h){var f=c.coord,p=(h-f)/(d.coord-f),g=TV(p,[c.color,d.color]);return{coord:h,color:g}}for(var s=0;s<r;s++){var l=n[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function zU(n,t,e){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&t.type==="cartesian2d"){for(var i,a,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(a){var l=t.getAxis(i),u=we(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,d=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=jU(u,i==="x"?e.getWidth():e.getHeight()),f=h.length;if(!f&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=h[0].coord-p,v=h[f-1].coord+p,y=v-g;if(y<.001)return"transparent";mt(h,function(S){S.offset=(S.coord-g)/y}),h.push({offset:f?h[f-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:d[0]||"transparent"});var x=new Kd(0,0,0,0,h,!0);return x[i]=g,x[i+"2"]=v,x}}}function HU(n,t,e){var r=n.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&UU(a,t))){var o=t.mapDimension(a.dim),s={};return mt(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function UU(n,t){var e=n.getExtent(),r=Math.abs(e[1]-e[0])/n.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(yh.getSymbolSize(t,o)[n.isHorizontal()?1:0]*1.5>r)return!1;return!0}function GU(n,t){return isNaN(n)||isNaN(t)}function KU(n){for(var t=n.length/2;t>0&&GU(n[t*2-2],n[t*2-1]);t--);return t-1}function zA(n,t){return[n[t*2],n[t*2+1]]}function XU(n,t,e){for(var r=n.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<r;u++)if(o=n[u*2+i],!(isNaN(o)||isNaN(n[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function HA(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<Pi.length;t++)if(n.get([Pi[t],"endLabel","show"]))return!0;return!1}function vS(n,t,e,r){if(Xl(t,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=HA(r)?function(f,p){n._endLabelOnDuring(f,p,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=mA(t,e,r,function(){var f=n._endLabel;f&&e&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var d=c.shape,h=Math.max(d.width,d.height);u?(d.y-=h,d.height+=h*2):(d.x-=h,d.width+=h*2)}return l&&l(1,c),c}else return yA(t,e,r)}function YU(n,t){var e=t.getBaseAxis(),r=e.isHorizontal(),i=e.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}}}var ZU=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(){var e=new sn,r=new xh;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=e},t.prototype.render=function(e,r,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),c=e.getModel("areaStyle"),d=l.getLayout("points")||[],h=o.type==="polar",f=this._coordSys,p=this._symbolDraw,g=this._polyline,v=this._polygon,y=this._lineGroup,x=!r.ssr&&e.get("animation"),S=!c.isEmpty(),_=c.get("origin"),D=OA(o,l,_),C=S&&FU(o,l,D),N=e.get("showSymbol"),q=e.get("connectNulls"),et=N&&!h&&HU(e,l,o),lt=this._data;lt&&lt.eachItemGraphicEl(function(De,Pe){De.__temp&&(s.remove(De),lt.setItemGraphicEl(Pe,null))}),N||p.remove(),s.add(y);var ft=h?!1:e.get("step"),_t;o&&o.getArea&&e.get("clip",!0)&&(_t=o.getArea(),_t.width!=null?(_t.x-=.1,_t.y-=.1,_t.width+=.2,_t.height+=.2):_t.r0&&(_t.r0-=.5,_t.r+=.5)),this._clipShapeForSymbol=_t;var Ct=zU(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&f.type===o.type&&ft===this._step))N&&p.updateData(l,{isIgnore:et,clipShape:_t,disableAnimation:!0,getSymbolPoint:function(De){return[d[De*2],d[De*2+1]]}}),x&&this._initSymbolLabelAnimation(l,o,_t),ft&&(d=Os(d,o,ft,q),C&&(C=Os(C,o,ft,q))),g=this._newPolyline(d),S?v=this._newPolygon(d,C):v&&(y.remove(v),v=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Cl(Ct)),y.setClipPath(vS(this,o,!0,e));else{S&&!v?v=this._newPolygon(d,C):v&&!S&&(y.remove(v),v=this._polygon=null),h||this._initOrUpdateEndLabel(e,o,Cl(Ct));var kt=y.getClipPath();if(kt){var Ot=vS(this,o,!1,e);_r(kt,{shape:Ot.shape},e)}else y.setClipPath(vS(this,o,!0,e));N&&p.updateData(l,{isIgnore:et,clipShape:_t,disableAnimation:!0,getSymbolPoint:function(De){return[d[De*2],d[De*2+1]]}}),(!VA(this._stackedOnPoints,C)||!VA(this._points,d))&&(x?this._doUpdateAnimation(l,C,o,i,ft,_,q):(ft&&(d=Os(d,o,ft,q),C&&(C=Os(C,o,ft,q))),g.setShape({points:d}),v&&v.setShape({points:d,stackedOnPoints:C})))}var Nt=e.getModel("emphasis"),Xt=Nt.get("focus"),Vt=Nt.get("blurScope"),Ut=Nt.get("disabled");if(g.useStyle(nn(u.getLineStyle(),{fill:"none",stroke:Ct,lineJoin:"bevel"})),ui(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Yt=g.getState("emphasis").style;Yt.lineWidth=+g.style.lineWidth+1}hn(g).seriesIndex=e.seriesIndex,Er(g,Xt,Vt,Ut);var ue=jA(e.get("smooth")),ie=e.get("smoothMonotone");if(g.setShape({smooth:ue,smoothMonotone:ie,connectNulls:q}),v){var Gt=l.getCalculationInfo("stackedOnSeries"),Qt=0;v.useStyle(nn(c.getAreaStyle(),{fill:Ct,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Gt&&(Qt=jA(Gt.get("smooth"))),v.setShape({smooth:ue,stackedOnSmooth:Qt,smoothMonotone:ie,connectNulls:q}),ui(v,e,"areaStyle"),hn(v).seriesIndex=e.seriesIndex,Er(v,Xt,Vt,Ut)}var me=function(De){a._changePolyState(De)};l.eachItemGraphicEl(function(De){De&&(De.onHoverStateChange=me)}),this._polyline.onHoverStateChange=me,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=d,this._step=ft,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,g),v&&this.packEventData(e,v))},t.prototype.packEventData=function(e,r){hn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,r,i,a){var o=e.getData(),s=ul(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var h=e.get("zlevel")||0,f=e.get("z")||0;u=new yh(o,s),u.x=c,u.y=d,u.setZ(h,f);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=f,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else gr.prototype.highlight.call(this,e,r,i,a)},t.prototype.downplay=function(e,r,i,a){var o=e.getData(),s=ul(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else gr.prototype.downplay.call(this,e,r,i,a)},t.prototype._changePolyState=function(e){var r=this._polygon;dp(this._polyline,e),r&&dp(r,e)},t.prototype._newPolyline=function(e){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new VU({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(e,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new BA({shape:{points:e,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");qe(c)&&(c=c(null));var d=u.get("animationDelay")||0,h=qe(d)?d(null):d;e.eachItemGraphicEl(function(f,p){var g=f;if(g){var v=[f.x,f.y],y=void 0,x=void 0,S=void 0;if(i)if(o){var _=i,D=r.pointToCoord(v);a?(y=_.startAngle,x=_.endAngle,S=-D[1]/180*Math.PI):(y=_.r0,x=_.r,S=D[0])}else{var C=i;a?(y=C.x,x=C.x+C.width,S=f.x):(y=C.y+C.height,x=C.y,S=f.y)}var N=x===y?0:(S-y)/(x-y);l&&(N=1-N);var q=qe(d)?d(p):c*N+h,et=g.getSymbolPath(),lt=et.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:q}),lt&&lt.animateFrom({style:{opacity:0}},{duration:300,delay:q}),et.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,r,i){var a=e.getModel("endLabel");if(HA(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Wn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=KU(l);c>=0&&(ci(s,Qr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:c,defaultText:function(d,h,f){return f!=null?xA(o,f):Mc(o,d)},enableTextSetter:!0},YU(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,r,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var d=i.getLayout("points"),h=i.hostModel,f=h.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),x=v.inverse,S=r.shape,_=x?y?S.x:S.y+S.height:y?S.x+S.width:S.y,D=(y?g:0)*(x?-1:1),C=(y?0:-g)*(x?-1:1),N=y?"x":"y",q=XU(d,_,N),et=q.range,lt=et[1]-et[0],ft=void 0;if(lt>=1){if(lt>1&&!f){var _t=zA(d,et[0]);u.attr({x:_t[0]+D,y:_t[1]+C}),o&&(ft=h.getRawValue(et[0]))}else{var _t=c.getPointOn(_,N);_t&&u.attr({x:_t[0]+D,y:_t[1]+C});var Ct=h.getRawValue(et[0]),kt=h.getRawValue(et[1]);o&&(ft=UC(i,p,Ct,kt,q.t))}a.lastFrameIndex=et[0]}else{var Ot=e===1||a.lastFrameIndex>0?et[0]:0,_t=zA(d,Ot);o&&(ft=h.getRawValue(Ot)),u.attr({x:_t[0]+D,y:_t[1]+C})}if(o){var Nt=$u(u);typeof Nt.setLabelText=="function"&&Nt.setLabelText(ft)}}},t.prototype._doUpdateAnimation=function(e,r,i,a,o,s,l){var u=this._polyline,c=this._polygon,d=e.hostModel,h=BU(this._data,e,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin,s),f=h.current,p=h.stackedOnCurrent,g=h.next,v=h.stackedOnNext;if(o&&(f=Os(h.current,i,o,l),p=Os(h.stackedOnCurrent,i,o,l),g=Os(h.next,i,o,l),v=Os(h.stackedOnNext,i,o,l)),FA(f,g)>3e3||c&&FA(p,v)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=h.current,u.shape.points=f;var y={shape:{points:g}};h.current!==f&&(y.shape.__points=h.next),u.stopAnimation(),Hn(u,y,d),c&&(c.setShape({points:f,stackedOnPoints:p}),c.stopAnimation(),Hn(c,{shape:{stackedOnPoints:v}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var x=[],S=h.status,_=0;_<S.length;_++){var D=S[_].cmd;if(D==="="){var C=e.getItemGraphicEl(S[_].idx1);C&&x.push({el:C,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var N=u.shape.__points,q=0;q<x.length;q++){var et=x[q].el,lt=x[q].ptIdx*2;et.x=N[lt],et.y=N[lt+1],et.markRedraw()}})},t.prototype.remove=function(e){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(r.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(gr);const $U=ZU;function Sh(n,t){return{seriesType:n,plan:lc(),reset:function(e){var r=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=we(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Ko(r,s[0])&&(s[0]=u),Ko(r,s[1])&&(s[1]=u);var c=r.getStore(),d=r.getDimensionIndex(s[0]),h=r.getDimensionIndex(s[1]);return l&&{progress:function(f,p){for(var g=f.end-f.start,v=o&&yo(g*l),y=[],x=[],S=f.start,_=0;S<f.end;S++){var D=void 0;if(l===1){var C=c.get(d,S);D=i.dataToPoint(C,null,x)}else y[0]=c.get(d,S),y[1]=c.get(h,S),D=i.dataToPoint(y,null,x);o?(v[_++]=D[0],v[_++]=D[1]):p.setItemLayout(S,D.slice())}o&&p.setLayout("points",v)}}}}}}function UA(n){n.registerChartView($U),n.registerSeriesModel(IU),n.registerLayout(Sh("line",!0)),n.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,gA("line"))}var GA=Math.PI*2,Lg=Math.PI/180;function KA(n,t){return Xr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XA(n,t){var e=KA(n,t),r=n.get("center"),i=n.get("radius");Se(i)||(i=[0,i]);var a=Oe(e.width,t.getWidth()),o=Oe(e.height,t.getHeight()),s=Math.min(a,o),l=Oe(i[0],s/2),u=Oe(i[1],s/2),c,d,h=n.coordinateSystem;if(h){var f=h.dataToPoint(r);c=f[0]||0,d=f[1]||0}else Se(r)||(r=[r,r]),c=Oe(r[0],a)+e.x,d=Oe(r[1],o)+e.y;return{cx:c,cy:d,r0:l,r:u}}function JU(n,t,e){t.eachSeriesByType(n,function(r){var i=r.getData(),a=i.mapDimension("value"),o=KA(r,e),s=XA(r,e),l=s.cx,u=s.cy,c=s.r,d=s.r0,h=-r.get("startAngle")*Lg,f=r.get("endAngle"),p=r.get("padAngle")*Lg;f=f==="auto"?h-GA:-f*Lg;var g=r.get("minAngle")*Lg,v=g+p,y=0;i.each(a,function(Nt){!isNaN(Nt)&&y++});var x=i.getSum(a),S=Math.PI/(x||y)*2,_=r.get("clockwise"),D=r.get("roseType"),C=r.get("stillShowZeroSum"),N=i.getDataExtent(a);N[0]=0;var q=_?1:-1,et=[h,f],lt=q*p/2;W0(et,!_),h=et[0],f=et[1];var ft=Math.abs(f-h),_t=ft,Ct=0,kt=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(Nt,Xt){var Vt;if(isNaN(Nt)){i.setItemLayout(Xt,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:d,r:D?NaN:c});return}D!=="area"?Vt=x===0&&C?S:Nt*S:Vt=ft/y,Vt<v?(Vt=v,_t-=v):Ct+=Nt;var Ut=kt+q*Vt,Yt=0,ue=0;p>Vt?(Yt=kt+q*Vt/2,ue=Yt):(Yt=kt+lt,ue=Ut-lt),i.setItemLayout(Xt,{angle:Vt,startAngle:Yt,endAngle:ue,clockwise:_,cx:l,cy:u,r0:d,r:D?nr(Nt,N,[d,c]):c}),kt=Ut}),_t<GA&&y)if(_t<=.001){var Ot=ft/y;i.each(a,function(Nt,Xt){if(!isNaN(Nt)){var Vt=i.getItemLayout(Xt);Vt.angle=Ot;var Ut=0,Yt=0;Ot<p?(Ut=h+q*(Xt+1/2)*Ot,Yt=Ut):(Ut=h+q*Xt*Ot+lt,Yt=h+q*(Xt+1)*Ot-lt),Vt.startAngle=Ut,Vt.endAngle=Yt}})}else S=_t/Ct,kt=h,i.each(a,function(Nt,Xt){if(!isNaN(Nt)){var Vt=i.getItemLayout(Xt),Ut=Vt.angle===v?v:Nt*S,Yt=0,ue=0;Ut<p?(Yt=kt+q*Ut/2,ue=Yt):(Yt=kt+lt,ue=kt+q*Ut-lt),Vt.startAngle=Yt,Vt.endAngle=ue,kt+=q*Ut}})})}function wh(n){return{seriesType:n,reset:function(t,e){var r=e.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var QU=Math.PI/180;function YA(n,t,e,r,i,a,o,s,l,u){if(n.length<2)return;function c(g){for(var v=g.rB,y=v*v,x=0;x<g.list.length;x++){var S=g.list[x],_=Math.abs(S.label.y-e),D=r+S.len,C=D*D,N=Math.sqrt((1-Math.abs(_*_/y))*C),q=t+(N+S.len2)*i,et=q-S.label.x,lt=S.targetTextWidth-et*i;ZA(S,lt,!0),S.label.x=q}}function d(g){for(var v={list:[],maxY:0},y={list:[],maxY:0},x=0;x<g.length;x++)if(g[x].labelAlignTo==="none"){var S=g[x],_=S.label.y>e?y:v,D=Math.abs(S.label.y-e);if(D>=_.maxY){var C=S.label.x-t-S.len2*i,N=r+S.len,q=Math.abs(C)<N?Math.sqrt(D*D/(1-C*C/N/N)):N;_.rB=q,_.maxY=D}_.list.push(S)}c(v),c(y)}for(var h=n.length,f=0;f<h;f++)if(n[f].position==="outer"&&n[f].labelAlignTo==="labelLine"){var p=n[f].label.x-u;n[f].linePoints[1][0]+=p,n[f].label.x=u}Y2(n,l,l+o)&&d(n)}function qU(n,t,e,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<n.length;h++){var f=n[h].label;mS(n[h])||(f.x<t?(c=Math.min(c,f.x),l.push(n[h])):(d=Math.max(d,f.x),u.push(n[h])))}for(var h=0;h<n.length;h++){var p=n[h];if(!mS(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var f=p.label,g=p.linePoints,v=void 0;p.labelAlignTo==="edge"?f.x<t?v=g[2][0]-p.labelDistance-o-p.edgeDistance:v=o+i-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?f.x<t?v=c-o-p.bleedMargin:v=o+i-d-p.bleedMargin:f.x<t?v=f.x-o-p.bleedMargin:v=o+i-f.x-p.bleedMargin,p.targetTextWidth=v,ZA(p,v)}}YA(u,t,e,r,1,i,a,o,s,d),YA(l,t,e,r,-1,i,a,o,s,c);for(var h=0;h<n.length;h++){var p=n[h];if(!mS(p)&&p.linePoints){var f=p.label,g=p.linePoints,y=p.labelAlignTo==="edge",x=f.style.padding,S=x?x[1]+x[3]:0,_=f.style.backgroundColor?0:S,D=p.rect.width+_,C=g[1][0]-g[2][0];y?f.x<t?g[2][0]=o+p.edgeDistance+D+p.labelDistance:g[2][0]=o+i-p.edgeDistance-D-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+C),g[1][1]=g[2][1]=f.y}}}function ZA(n,t,e){if(e===void 0&&(e=!1),n.labelStyleWidth==null){var r=n.label,i=r.style,a=n.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||e){var d=a.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",o)}else{var f=t-l,p=t<c?f:e?f>n.unconstrainedWidth?null:f:null;r.setStyle("width",p)}var g=r.getBoundingRect();a.width=g.width;var v=(r.style.margin||0)+2.1;a.height=g.height+v,a.y-=(a.height-d)/2}}}function mS(n){return n.position==="center"}function tG(n){var t=n.getData(),e=[],r,i,a=!1,o=(n.get("minShowLabelAngle")||0)*QU,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function f(C){C.ignore=!0}function p(C){if(!C.ignore)return!0;for(var N in C.states)if(C.states[N].ignore===!1)return!0;return!1}t.each(function(C){var N=t.getItemGraphicEl(C),q=N.shape,et=N.getTextContent(),lt=N.getTextGuideLine(),ft=t.getItemModel(C),_t=ft.getModel("label"),Ct=_t.get("position")||ft.get(["emphasis","label","position"]),kt=_t.get("distanceToLabelLine"),Ot=_t.get("alignTo"),Nt=Oe(_t.get("edgeDistance"),u),Xt=_t.get("bleedMargin"),Vt=ft.getModel("labelLine"),Ut=Vt.get("length");Ut=Oe(Ut,u);var Yt=Vt.get("length2");if(Yt=Oe(Yt,u),Math.abs(q.endAngle-q.startAngle)<o){mt(et.states,f),et.ignore=!0,lt&&(mt(lt.states,f),lt.ignore=!0);return}if(p(et)){var ue=(q.startAngle+q.endAngle)/2,ie=Math.cos(ue),Gt=Math.sin(ue),Qt,me,De,Pe;r=q.cx,i=q.cy;var Ce=Ct==="inside"||Ct==="inner";if(Ct==="center")Qt=q.cx,me=q.cy,Pe="center";else{var Ee=(Ce?(q.r+q.r0)/2*ie:q.r*ie)+r,Ve=(Ce?(q.r+q.r0)/2*Gt:q.r*Gt)+i;if(Qt=Ee+ie*3,me=Ve+Gt*3,!Ce){var Te=Ee+ie*(Ut+l-q.r),Be=Ve+Gt*(Ut+l-q.r),tn=Te+(ie<0?-1:1)*Yt,Je=Be;Ot==="edge"?Qt=ie<0?c+Nt:c+u-Nt:Qt=tn+(ie<0?-kt:kt),me=Je,De=[[Ee,Ve],[Te,Be],[tn,Je]]}Pe=Ce?"center":Ot==="edge"?ie>0?"right":"left":ie>0?"left":"right"}var An=Math.PI,En=0,Cr=_t.get("rotate");if($n(Cr))En=Cr*(An/180);else if(Ct==="center")En=0;else if(Cr==="radial"||Cr===!0){var Mr=ie<0?-ue+An:-ue;En=Mr}else if(Cr==="tangential"&&Ct!=="outside"&&Ct!=="outer"){var ir=Math.atan2(ie,Gt);ir<0&&(ir=An*2+ir);var ei=Gt>0;ei&&(ir=An+ir),En=ir-An}if(a=!!En,et.x=Qt,et.y=me,et.rotation=En,et.setStyle({verticalAlign:"middle"}),Ce){et.setStyle({align:Pe});var Xa=et.states.select;Xa&&(Xa.x+=et.x,Xa.y+=et.y)}else{var Br=et.getBoundingRect().clone();Br.applyTransform(et.getComputedTransform());var Oi=(et.style.margin||0)+2.1;Br.y-=Oi/2,Br.height+=Oi,e.push({label:et,labelLine:lt,position:Ct,len:Ut,len2:Yt,minTurnAngle:Vt.get("minTurnAngle"),maxSurfaceAngle:Vt.get("maxSurfaceAngle"),surfaceNormal:new Sn(ie,Gt),linePoints:De,textAlign:Pe,labelDistance:kt,labelAlignTo:Ot,edgeDistance:Nt,bleedMargin:Xt,rect:Br,unconstrainedWidth:Br.width,labelStyleWidth:et.style.width})}N.setTextConfig({inside:Ce})}}),!a&&n.get("avoidLabelOverlap")&&qU(e,r,i,l,u,h,c,d);for(var g=0;g<e.length;g++){var v=e[g],y=v.label,x=v.labelLine,S=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),S&&(mt(y.states,f),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(x){var D=v.linePoints;S||!D?(mt(x.states,f),x.ignore=!0):(G2(D,v.minTurnAngle),Y8(D,v.surfaceNormal,v.maxSurfaceAngle),x.setShape({points:D}),y.__hostTarget.textGuideLineConfig={anchor:new Sn(D[0][0],D[0][1])})}}}var eG=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this)||this;a.z2=2;var o=new Wn;return a.setTextContent(o),a.updateData(e,r,i,!0),a}return t.prototype.updateData=function(e,r,i,a){var o=this,s=e.hostModel,l=e.getItemModel(r),u=l.getModel("emphasis"),c=e.getItemLayout(r),d=ye(Yl(l.getModel("itemStyle"),c,!0),c);if(isNaN(d.startAngle)){o.setShape(d);return}if(a){o.setShape(d);var h=s.getShallow("animationType");s.ecModel.ssr?(_r(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=d.cx,o.originY=d.cy):h==="scale"?(o.shape.r=c.r0,_r(o,{shape:{r:c.r}},s,r)):i!=null?(o.setShape({startAngle:i,endAngle:i}),_r(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,Hn(o,{shape:{endAngle:c.endAngle}},s,r))}else Na(o),Hn(o,{shape:d},s,r);o.useStyle(e.getItemVisual(r,"style")),ui(o,l);var f=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(f)*p,v=Math.sin(f)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,r),o.ensureState("emphasis").shape=ye({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Yl(u.getModel("itemStyle"),c)),ye(o.ensureState("select"),{x:g,y:v,shape:Yl(l.getModel(["select","itemStyle"]),c)}),ye(o.ensureState("blur"),{shape:Yl(l.getModel(["blur","itemStyle"]),c)});var x=o.getTextGuideLine(),S=o.getTextContent();x&&ye(x.ensureState("select"),{x:g,y:v}),ye(S.ensureState("select"),{x:g,y:v}),Er(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,r,i){var a=this,o=r.getItemModel(i),s=o.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;ci(a,Qr(o),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:e.getFormattedLabel(i,"normal")||r.getName(i)});var d=a.getTextContent();a.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var h=e.get(["label","position"]);if(h!=="outside"&&h!=="outer")a.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new Xi,this.setTextGuideLine(f)),Lx(this,Ox(o),{stroke:u,opacity:eo(s.get(["lineStyle","opacity"]),c,1)})}},t}(Gi),nG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,r,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d<o.count();++d)c=o.getItemLayout(d);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=new Gi({shape:XA(e,i)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(f){var p=new eG(o,f,u);o.setItemGraphicEl(f,p),l.add(p)}).update(function(f,p){var g=s.getItemGraphicEl(p);g.updateData(o,f,u),g.off("click"),l.add(g),o.setItemGraphicEl(f,g)}).remove(function(f){var p=s.getItemGraphicEl(f);Id(p,e,f)}).execute(),tG(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(gr);const rG=nG;function Tc(n,t,e){t=Se(t)&&{coordDimensions:t}||ye({encodeDefine:n.getEncode()},t);var r=n.getSource(),i=Sc(r,t).dimensions,a=new hi(i,n);return a.initData(r,e),a}var iG=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},n.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},n.prototype.getItemVisual=function(t,e){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,e)},n}();const _h=iG;var aG=Kn(),oG=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new _h(Ge(this.getData,this),Ge(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Tc(this,{coordDimensions:["value"],encodeDefaulter:xn(py,this)})},t.prototype.getDataParams=function(e){var r=this.getData(),i=aG(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=kC(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){ll(e,"labelLine",["show"]);var r=e.labelLine,i=e.emphasis.labelLine;r.show=r.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(br);const sG=oG;function lG(n){return{seriesType:n,reset:function(t,e){var r=t.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!($n(o)&&!isNaN(o)&&o<0)})}}}function $A(n){n.registerChartView(rG),n.registerSeriesModel(sG),Sk("pie",n.registerAction),n.registerLayout(xn(JU,"pie")),n.registerProcessor(wh("pie")),n.registerProcessor(lG("pie"))}function uG(n){n.eachSeriesByType("radar",function(t){var e=t.getData(),r=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();mt(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=JA(c)?c:QA(i)})}),e.each(function(o){var s=I4(r[o],function(l){return JA(l)})||QA(i);r[o].push(s.slice()),e.setItemLayout(o,r[o])})}})}function JA(n){return!isNaN(n[0])&&!isNaN(n[1])}function QA(n){return[n.cx,n.cy]}function cG(n){var t=n.polar;if(t){Se(t)||(t=[t]);var e=[];mt(t,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),n.radar=n.radar||[],Se(n.radar)||(n.radar=[n.radar]),n.radar.push(r)):e.push(r)}),n.polar=e}mt(n.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var dG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,f){var p=h.getItemVisual(f,"symbol")||"circle";if(p!=="none"){var g=vc(h.getItemVisual(f,"symbolSize")),v=Rr(p,-1,-1,2,2),y=h.getItemVisual(f,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),v}}function c(h,f,p,g,v,y){p.removeAll();for(var x=0;x<f.length-1;x++){var S=u(g,v);S&&(S.__dimIdx=x,h[x]?(S.setPosition(h[x]),Z[y?"initProps":"updateProps"](S,{x:f[x][0],y:f[x][1]},e,v)):S.setPosition(f[x]),p.add(S))}}function d(h){return we(h,function(f){return[a.cx,a.cy]})}s.diff(l).add(function(h){var f=s.getItemLayout(h);if(f){var p=new Ki,g=new Xi,v={shape:{points:f}};p.shape.points=d(f),g.shape.points=d(f),_r(p,v,e,h),_r(g,v,e,h);var y=new sn,x=new sn;y.add(g),y.add(p),y.add(x),c(g.shape.points,f,x,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,f){var p=l.getItemGraphicEl(f),g=p.childAt(0),v=p.childAt(1),y=p.childAt(2),x={shape:{points:s.getItemLayout(h)}};x.shape.points&&(c(g.shape.points,x.shape.points,y,s,h,!1),Na(v),Na(g),Hn(g,x,e),Hn(v,x,e),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,f){var p=s.getItemModel(f),g=h.childAt(0),v=h.childAt(1),y=h.childAt(2),x=s.getItemVisual(f,"style"),S=x.fill;o.add(h),g.useStyle(nn(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),ui(g,p,"lineStyle"),ui(v,p,"areaStyle");var _=p.getModel("areaStyle"),D=_.isEmpty()&&_.parentModel.isEmpty();v.ignore=D,mt(["emphasis","select","blur"],function(q){var et=p.getModel([q,"areaStyle"]),lt=et.isEmpty()&&et.parentModel.isEmpty();v.ensureState(q).ignore=lt&&D}),v.useStyle(nn(_.getAreaStyle(),{fill:S,opacity:.7,decal:x.decal}));var C=p.getModel("emphasis"),N=C.getModel("itemStyle").getItemStyle();y.eachChild(function(q){if(q instanceof li){var et=q.style;q.useStyle(ye({image:et.image,x:et.x,y:et.y,width:et.width,height:et.height},x))}else q.useStyle(x),q.setColor(S),q.style.strokeNoScale=!0;var lt=q.ensureState("emphasis");lt.style=on(N);var ft=s.getStore().get(s.getDimensionIndex(q.__dimIdx),f);(ft==null||isNaN(ft))&&(ft=""),ci(q,Qr(p),{labelFetcher:s.hostModel,labelDataIndex:f,labelDimIndex:q.__dimIdx,defaultText:ft,inheritColor:S,defaultOpacity:x.opacity})}),Er(h,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(gr);const hG=dG;var fG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new _h(Ge(this.getData,this),Ge(this.getRawData,this))},t.prototype.getInitialData=function(e,r){return Tc(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,r,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=yD(this,e);return qr("section",{header:u,sortBlocks:!0,blocks:we(s,function(d){var h=a.get(a.mapDimension(d.dim),e);return qr("nameValue",{markerType:"subItem",markerColor:c,name:d.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var r=this.getData(),i=this.coordinateSystem,a=r.getValues(we(i.dimensions,function(u){return r.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(br);const pG=fG;var bh=iP.value;function Og(n,t){return nn({show:t},n)}var gG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),h=this.get("triggerEvent"),f=we(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=nn({color:p.color},l));var v=Mn(on(p),{boundaryGap:e,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:h},!1);if(je(c)){var y=v.name;v.name=c.replace("{value}",y!=null?y:"")}else qe(c)&&(v.name=c(v.name,v));var x=new pr(v,null,this.ecModel);return Wr(x,_c.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Mn({lineStyle:{color:"#bbb"}},bh.axisLine),axisLabel:Og(bh.axisLabel,!1),axisTick:Og(bh.axisTick,!1),splitLine:Og(bh.splitLine,!0),splitArea:Og(bh.splitArea,!0),indicator:[]},t}(Jn);const vG=gG;var mG=["axisLine","axisTickLabel","axisName"],yG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var r=e.coordinateSystem,i=r.getIndicatorAxes(),a=we(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Zo(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});mt(a,function(o){mt(mG,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var r=e.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),h=l.get("color"),f=u.get("color"),p=Se(h)?h:[h],g=Se(f)?f:[f],v=[],y=[];function x(Ot,Nt,Xt){var Vt=Xt%Nt.length;return Ot[Vt]=Ot[Vt]||[],Vt}if(a==="circle")for(var S=i[0].getTicksCoords(),_=r.cx,D=r.cy,C=0;C<S.length;C++){if(c){var N=x(v,p,C);v[N].push(new Uo({shape:{cx:_,cy:D,r:S[C].coord}}))}if(d&&C<S.length-1){var N=x(y,g,C);y[N].push(new Rp({shape:{cx:_,cy:D,r0:S[C].coord,r:S[C+1].coord}}))}}else for(var q,et=we(i,function(Ot,Nt){var Xt=Ot.getTicksCoords();return q=q==null?Xt.length-1:Math.min(Xt.length-1,q),we(Xt,function(Vt){return r.coordToPoint(Vt.coord,Nt)})}),lt=[],C=0;C<=q;C++){for(var ft=[],_t=0;_t<i.length;_t++)ft.push(et[_t][C]);if(ft[0]&&ft.push(ft[0].slice()),c){var N=x(v,p,C);v[N].push(new Xi({shape:{points:ft}}))}if(d&&lt){var N=x(y,g,C-1);y[N].push(new Ki({shape:{points:ft.concat(lt)}}))}lt=ft.slice().reverse()}var Ct=l.getLineStyle(),kt=u.getAreaStyle();mt(y,function(Ot,Nt){this.group.add(xa(Ot,{style:nn({stroke:"none",fill:g[Nt%g.length]},kt),silent:!0}))},this),mt(v,function(Ot,Nt){this.group.add(xa(Ot,{style:nn({fill:"none",stroke:p[Nt%p.length]},Ct),silent:!0}))},this)},t.type="radar",t}(Lr);const xG=yG;var SG=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this,e,r,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Ga);const wG=SG;var _G=function(){function n(t,e,r){this.dimensions=[],this._model=t,this._indicatorAxes=we(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new wG(o,new Ps);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,r)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var r=this._indicatorAxes[e];return this.coordToPoint(r.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var r=this._indicatorAxes[e],i=r.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,r=t[1]-this.cy,i=Math.sqrt(e*e+r*r);e/=i,r/=i;for(var a=Math.atan2(-r,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],d=Math.abs(a-c.angle);d<o&&(s=c,l=u,o=d)}return[l,+(s&&s.coordToData(i))]},n.prototype.resize=function(t,e){var r=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=Oe(r[0],i),this.cy=Oe(r[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(je(s)||$n(s))&&(s=[0,s]),this.r0=Oe(s[0],o),this.r=Oe(s[1],o),mt(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},n.prototype.update=function(t,e){var r=this._indicatorAxes,i=this._model;mt(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();mt(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new Ps;o.setExtent(0,a),o.setInterval(1),mt(r,function(s,l){mP(s.scale,s.model,o)})},n.prototype.convertToPixel=function(t,e,r){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(t,e,r){return console.warn("Not implemented."),null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.create=function(t,e){var r=[];return t.eachComponent("radar",function(i){var a=new n(i,t,e);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},n.dimensions=[],n}();const bG=_G;function CG(n){n.registerCoordinateSystem("radar",bG),n.registerComponentModel(vG),n.registerComponentView(xG),n.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(r){e.setItemVisual(r,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function qA(n){_n(CG),n.registerChartView(hG),n.registerSeriesModel(pG),n.registerLayout(uG),n.registerProcessor(wh("radar")),n.registerPreprocessor(cG)}var MG=["itemStyle","opacity"],TG=function(n){Zt(t,n);function t(e,r){var i=n.call(this)||this,a=i,o=new Xi,s=new Wn;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(e,r,!0),i}return t.prototype.updateData=function(e,r,i){var a=this,o=e.hostModel,s=e.getItemModel(r),l=e.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(MG);c=c==null?1:c,i||Na(a),a.useStyle(e.getItemVisual(r,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,_r(a,{style:{opacity:c}},o,r)):Hn(a,{style:{opacity:c},shape:{points:l.points}},o,r),ui(a,s),this._updateLabel(e,r),Er(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,r){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=e.hostModel,l=e.getItemModel(r),u=e.getItemLayout(r),c=u.label,d=e.getItemVisual(r,"style"),h=d.fill;ci(o,Qr(l),{labelFetcher:e.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:e.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var f=c.linePoints;a.setShape({points:f}),i.textGuideLineConfig={anchor:f?new Sn(f[0][0],f[0][1]):null},Hn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Lx(i,Ox(l),{stroke:h})},t}(Ki),DG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,r,i){var a=e.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new TG(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Id(u,e,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(gr);const kG=DG;var PG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new _h(Ge(this.getData,this),Ge(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,r){return Tc(this,{coordDimensions:["value"],encodeDefaulter:xn(py,this)})},t.prototype._defaultLabelLine=function(e){ll(e,"labelLine",["show"]);var r=e.labelLine,i=e.emphasis.labelLine;r.show=r.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var r=this.getData(),i=n.prototype.getDataParams.call(this,e),a=r.mapDimension("value"),o=r.getSum(a);return i.percent=o?+(r.get(a,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(br);const AG=PG;function IG(n,t){return Xr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function EG(n,t){for(var e=n.mapDimension("value"),r=n.mapArray(e,function(l){return l}),i=[],a=t==="ascending",o=0,s=n.count();o<s;o++)i[o]=o;return qe(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?r[l]-r[u]:r[u]-r[l]}),i}function LG(n){var t=n.hostModel,e=t.get("orient");n.each(function(r){var i=n.getItemModel(r),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=n.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",d,h,f,p;if(c)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,f=(u[0][1]+u[3][1])/2,d="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,f=(u[1][1]+u[2][1])/2,d="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,f=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,d="center"),p=[[h,f],[h,f]];else{var g=void 0,v=void 0,y=void 0,x=void 0,S=s.get("length");o==="left"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,y=g-S,h=y-5,d="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,y=g+S,h=y+5,d="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,x=v-S,f=x-5,d="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,x=v+S,f=x+5,d="center"):o==="rightTop"?(g=e==="horizontal"?u[3][0]:u[1][0],v=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(x=v-S,f=x-5,d="center"):(y=g+S,h=y+5,d="top")):o==="rightBottom"?(g=u[2][0],v=u[2][1],e==="horizontal"?(x=v+S,f=x+5,d="center"):(y=g+S,h=y+5,d="bottom")):o==="leftTop"?(g=u[0][0],v=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(x=v-S,f=x-5,d="center"):(y=g-S,h=y-5,d="right")):o==="leftBottom"?(g=e==="horizontal"?u[1][0]:u[3][0],v=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(x=v+S,f=x+5,d="center"):(y=g-S,h=y-5,d="right")):(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,e==="horizontal"?(x=v+S,f=x+5,d="center"):(y=g+S,h=y+5,d="left")),e==="horizontal"?(y=g,h=y):(x=v,f=x),p=[[g,v],[y,x]]}l.label={linePoints:p,x:h,y:f,verticalAlign:"middle",textAlign:d,inside:c}})}function OG(n,t){n.eachSeriesByType("funnel",function(e){var r=e.getData(),i=r.mapDimension("value"),a=e.get("sort"),o=IG(e,t),s=e.get("orient"),l=o.width,u=o.height,c=EG(r,a),d=o.x,h=o.y,f=s==="horizontal"?[Oe(e.get("minSize"),u),Oe(e.get("maxSize"),u)]:[Oe(e.get("minSize"),l),Oe(e.get("maxSize"),l)],p=r.getDataExtent(i),g=e.get("min"),v=e.get("max");g==null&&(g=Math.min(p[0],0)),v==null&&(v=p[1]);var y=e.get("funnelAlign"),x=e.get("gap"),S=s==="horizontal"?l:u,_=(S-x*(r.count()-1))/r.count(),D=function(kt,Ot){if(s==="horizontal"){var Nt=r.get(i,kt)||0,Xt=nr(Nt,[g,v],f,!0),Vt=void 0;switch(y){case"top":Vt=h;break;case"center":Vt=h+(u-Xt)/2;break;case"bottom":Vt=h+(u-Xt);break}return[[Ot,Vt],[Ot,Vt+Xt]]}var Ut=r.get(i,kt)||0,Yt=nr(Ut,[g,v],f,!0),ue;switch(y){case"left":ue=d;break;case"center":ue=d+(l-Yt)/2;break;case"right":ue=d+l-Yt;break}return[[ue,Ot],[ue+Yt,Ot]]};a==="ascending"&&(_=-_,x=-x,s==="horizontal"?d+=l:h+=u,c=c.reverse());for(var C=0;C<c.length;C++){var N=c[C],q=c[C+1],et=r.getItemModel(N);if(s==="horizontal"){var lt=et.get(["itemStyle","width"]);lt==null?lt=_:(lt=Oe(lt,l),a==="ascending"&&(lt=-lt));var ft=D(N,d),_t=D(q,d+lt);d+=lt+x,r.setItemLayout(N,{points:ft.concat(_t.slice().reverse())})}else{var Ct=et.get(["itemStyle","height"]);Ct==null?Ct=_:(Ct=Oe(Ct,u),a==="ascending"&&(Ct=-Ct));var ft=D(N,h),_t=D(q,h+Ct);h+=Ct+x,r.setItemLayout(N,{points:ft.concat(_t.slice().reverse())})}}LG(r)})}function tI(n){n.registerChartView(kG),n.registerSeriesModel(AG),n.registerLayout(OG),n.registerProcessor(wh("funnel"))}var RG=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),NG=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new RG},t.prototype.buildPath=function(e,r){var i=Math.cos,a=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),c=r.y-a(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,e.moveTo(u,c),e.lineTo(r.x+i(l)*s,r.y+a(l)*s),e.lineTo(r.x+i(r.angle)*o,r.y+a(r.angle)*o),e.lineTo(r.x-i(l)*s,r.y-a(l)*s),e.lineTo(u,c)},t}(In);const BG=NG;function VG(n,t){var e=n.get("center"),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i),o=Oe(e[0],t.getWidth()),s=Oe(e[1],t.getHeight()),l=Oe(n.get("radius"),a/2);return{cx:o,cy:s,r:l}}function Rg(n,t){var e=n==null?"":n+"";return t&&(je(t)?e=t.replace("{value}",e):qe(t)&&(e=t(n))),e}var WG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){this.group.removeAll();var a=e.get(["axisLine","lineStyle","color"]),o=VG(e,i);this._renderMain(e,r,i,a,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,r,i,a,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,d=e.getModel("axisLine"),h=d.get("roundCap"),f=h?Pg:Gi,p=d.get("show"),g=d.getModel("lineStyle"),v=g.get("width"),y=[u,c];W0(y,!l),u=y[0],c=y[1];for(var x=c-u,S=u,_=[],D=0;p&&D<a.length;D++){var C=Math.min(Math.max(a[D][0],0),1);c=u+x*C;var N=new f({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-v,r:o.r},silent:!0});N.setStyle({fill:a[D][1]}),N.setStyle(g.getLineStyle(["color","width"])),_.push(N),S=c}_.reverse(),mt(_,function(et){return s.add(et)});var q=function(et){if(et<=0)return a[0][1];var lt;for(lt=0;lt<a.length;lt++)if(a[lt][0]>=et&&(lt===0?0:a[lt-1][0])<et)return a[lt][1];return a[lt-1][1]};this._renderTicks(e,r,i,q,o,u,c,l,v),this._renderTitleAndDetail(e,r,i,q,o),this._renderAnchor(e,o),this._renderPointer(e,r,i,q,o,u,c,l,v)},t.prototype._renderTicks=function(e,r,i,a,o,s,l,u,c){for(var d=this.group,h=o.cx,f=o.cy,p=o.r,g=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),x=e.getModel("axisTick"),S=e.getModel("axisLabel"),_=e.get("splitNumber"),D=x.get("splitNumber"),C=Oe(y.get("length"),p),N=Oe(x.get("length"),p),q=s,et=(l-s)/_,lt=et/D,ft=y.getModel("lineStyle").getLineStyle(),_t=x.getModel("lineStyle").getLineStyle(),Ct=y.get("distance"),kt,Ot,Nt=0;Nt<=_;Nt++){if(kt=Math.cos(q),Ot=Math.sin(q),y.get("show")){var Xt=Ct?Ct+c:c,Vt=new oi({shape:{x1:kt*(p-Xt)+h,y1:Ot*(p-Xt)+f,x2:kt*(p-C-Xt)+h,y2:Ot*(p-C-Xt)+f},style:ft,silent:!0});ft.stroke==="auto"&&Vt.setStyle({stroke:a(Nt/_)}),d.add(Vt)}if(S.get("show")){var Xt=S.get("distance")+Ct,Ut=Rg(Or(Nt/_*(v-g)+g),S.get("formatter")),Yt=a(Nt/_),ue=kt*(p-C-Xt)+h,ie=Ot*(p-C-Xt)+f,Gt=S.get("rotate"),Qt=0;Gt==="radial"?(Qt=-q+2*Math.PI,Qt>Math.PI/2&&(Qt+=Math.PI)):Gt==="tangential"?Qt=-q-Math.PI/2:$n(Gt)&&(Qt=Gt*Math.PI/180),Qt===0?d.add(new Wn({style:mr(S,{text:Ut,x:ue,y:ie,verticalAlign:Ot<-.8?"top":Ot>.8?"bottom":"middle",align:kt<-.4?"left":kt>.4?"right":"center"},{inheritColor:Yt}),silent:!0})):d.add(new Wn({style:mr(S,{text:Ut,x:ue,y:ie,verticalAlign:"middle",align:"center"},{inheritColor:Yt}),silent:!0,originX:ue,originY:ie,rotation:Qt}))}if(x.get("show")&&Nt!==_){var Xt=x.get("distance");Xt=Xt?Xt+c:c;for(var me=0;me<=D;me++){kt=Math.cos(q),Ot=Math.sin(q);var De=new oi({shape:{x1:kt*(p-Xt)+h,y1:Ot*(p-Xt)+f,x2:kt*(p-N-Xt)+h,y2:Ot*(p-N-Xt)+f},silent:!0,style:_t});_t.stroke==="auto"&&De.setStyle({stroke:a((Nt+me/D)/_)}),d.add(De),q+=lt}q-=lt}else q+=et}},t.prototype._renderPointer=function(e,r,i,a,o,s,l,u,c){var d=this.group,h=this._data,f=this._progressEls,p=[],g=e.get(["pointer","show"]),v=e.getModel("progress"),y=v.get("show"),x=e.getData(),S=x.mapDimension("value"),_=+e.get("min"),D=+e.get("max"),C=[_,D],N=[s,l];function q(lt,ft){var _t=x.getItemModel(lt),Ct=_t.getModel("pointer"),kt=Oe(Ct.get("width"),o.r),Ot=Oe(Ct.get("length"),o.r),Nt=e.get(["pointer","icon"]),Xt=Ct.get("offsetCenter"),Vt=Oe(Xt[0],o.r),Ut=Oe(Xt[1],o.r),Yt=Ct.get("keepAspect"),ue;return Nt?ue=Rr(Nt,Vt-kt/2,Ut-Ot,kt,Ot,null,Yt):ue=new BG({shape:{angle:-Math.PI/2,width:kt,r:Ot,x:Vt,y:Ut}}),ue.rotation=-(ft+Math.PI/2),ue.x=o.cx,ue.y=o.cy,ue}function et(lt,ft){var _t=v.get("roundCap"),Ct=_t?Pg:Gi,kt=v.get("overlap"),Ot=kt?v.get("width"):c/x.count(),Nt=kt?o.r-Ot:o.r-(lt+1)*Ot,Xt=kt?o.r:o.r-lt*Ot,Vt=new Ct({shape:{startAngle:s,endAngle:ft,cx:o.cx,cy:o.cy,clockwise:u,r0:Nt,r:Xt}});return kt&&(Vt.z2=D-x.get(S,lt)%D),Vt}(y||g)&&(x.diff(h).add(function(lt){var ft=x.get(S,lt);if(g){var _t=q(lt,s);_r(_t,{rotation:-((isNaN(+ft)?N[0]:nr(ft,C,N,!0))+Math.PI/2)},e),d.add(_t),x.setItemGraphicEl(lt,_t)}if(y){var Ct=et(lt,s),kt=v.get("clip");_r(Ct,{shape:{endAngle:nr(ft,C,N,kt)}},e),d.add(Ct),z0(e.seriesIndex,x.dataType,lt,Ct),p[lt]=Ct}}).update(function(lt,ft){var _t=x.get(S,lt);if(g){var Ct=h.getItemGraphicEl(ft),kt=Ct?Ct.rotation:s,Ot=q(lt,kt);Ot.rotation=kt,Hn(Ot,{rotation:-((isNaN(+_t)?N[0]:nr(_t,C,N,!0))+Math.PI/2)},e),d.add(Ot),x.setItemGraphicEl(lt,Ot)}if(y){var Nt=f[ft],Xt=Nt?Nt.shape.endAngle:s,Vt=et(lt,Xt),Ut=v.get("clip");Hn(Vt,{shape:{endAngle:nr(_t,C,N,Ut)}},e),d.add(Vt),z0(e.seriesIndex,x.dataType,lt,Vt),p[lt]=Vt}}).execute(),x.each(function(lt){var ft=x.getItemModel(lt),_t=ft.getModel("emphasis"),Ct=_t.get("focus"),kt=_t.get("blurScope"),Ot=_t.get("disabled");if(g){var Nt=x.getItemGraphicEl(lt),Xt=x.getItemVisual(lt,"style"),Vt=Xt.fill;if(Nt instanceof li){var Ut=Nt.style;Nt.useStyle(ye({image:Ut.image,x:Ut.x,y:Ut.y,width:Ut.width,height:Ut.height},Xt))}else Nt.useStyle(Xt),Nt.type!=="pointer"&&Nt.setColor(Vt);Nt.setStyle(ft.getModel(["pointer","itemStyle"]).getItemStyle()),Nt.style.fill==="auto"&&Nt.setStyle("fill",a(nr(x.get(S,lt),C,[0,1],!0))),Nt.z2EmphasisLift=0,ui(Nt,ft),Er(Nt,Ct,kt,Ot)}if(y){var Yt=p[lt];Yt.useStyle(x.getItemVisual(lt,"style")),Yt.setStyle(ft.getModel(["progress","itemStyle"]).getItemStyle()),Yt.z2EmphasisLift=0,ui(Yt,ft),Er(Yt,Ct,kt,Ot)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,r){var i=e.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Rr(s,r.cx-o/2+Oe(l[0],r.r),r.cy-o/2+Oe(l[1],r.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,r,i,a,o){var s=this,l=e.getData(),u=l.mapDimension("value"),c=+e.get("min"),d=+e.get("max"),h=new sn,f=[],p=[],g=e.isAnimationEnabled(),v=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){f[y]=new Wn({silent:!0}),p[y]=new Wn({silent:!0})}).update(function(y,x){f[y]=s._titleEls[x],p[y]=s._detailEls[x]}).execute(),l.each(function(y){var x=l.getItemModel(y),S=l.get(u,y),_=new sn,D=a(nr(S,[c,d],[0,1],!0)),C=x.getModel("title");if(C.get("show")){var N=C.get("offsetCenter"),q=o.cx+Oe(N[0],o.r),et=o.cy+Oe(N[1],o.r),lt=f[y];lt.attr({z2:v?0:2,style:mr(C,{x:q,y:et,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:D})}),_.add(lt)}var ft=x.getModel("detail");if(ft.get("show")){var _t=ft.get("offsetCenter"),Ct=o.cx+Oe(_t[0],o.r),kt=o.cy+Oe(_t[1],o.r),Ot=Oe(ft.get("width"),o.r),Nt=Oe(ft.get("height"),o.r),Xt=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:D,lt=p[y],Vt=ft.get("formatter");lt.attr({z2:v?0:2,style:mr(ft,{x:Ct,y:kt,text:Rg(S,Vt),width:isNaN(Ot)?null:Ot,height:isNaN(Nt)?null:Nt,align:"center",verticalAlign:"middle"},{inheritColor:Xt})}),KM(lt,{normal:ft},S,function(Yt){return Rg(Yt,Vt)}),g&&XM(lt,y,l,e,{getFormattedLabel:function(Yt,ue,ie,Gt,Qt,me){return Rg(me?me.interpolatedValue:S,Vt)}}),_.add(lt)}h.add(_)}),this.group.add(h),this._titleEls=f,this._detailEls=p},t.type="gauge",t}(gr);const FG=WG;var jG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,r){return Tc(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(br);const zG=jG;function eI(n){n.registerChartView(FG),n.registerSeriesModel(zG)}var HG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(br);const UG=HG;var nI=4,GG=function(){function n(){}return n}(),KG=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new GG},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,r){var i=r.points,a=r.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<nI,c=this.softClipShape,d;if(u){this._ctx=l;return}for(this._ctx=null,d=this._off;d<i.length;){var h=i[d++],f=i[d++];isNaN(h)||isNaN(f)||c&&!c.contain(h,f)||(s.x=h-a[0]/2,s.y=f-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,r=e.points,i=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,r){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,d=a[c]-s/2,h=a[c+1]-l/2;if(e>=d&&r>=h&&e<=d+s&&r<=h+l)return u}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),a=this.getBoundingRect();if(e=i[0],r=i[1],a.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.points,a=r.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,d=-1/0,h=0;h<i.length;){var f=i[h++],p=i[h++];l=Math.min(f,l),c=Math.max(f,c),u=Math.min(p,u),d=Math.max(p,d)}e=this._rect=new wn(l-o/2,u-s/2,c-l+o,d-u+s)}return e},t}(In),XG=function(){function n(){this.group=new sn}return n.prototype.updateData=function(t,e){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,e)},n.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,a=r.startIndex*4*2;e=new Float32Array(e.buffer,a,i)}r.setShape("points",e),r.reset()})},n.prototype.incrementalPrepareUpdate=function(t){this._clear()},n.prototype.incrementalUpdate=function(t,e,r){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,e,r)}},n.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},n.prototype._create=function(){var t=new KG({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},n.prototype._setCommon=function(t,e,r){var i=e.hostModel;r=r||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=r.clipShape||null,t.symbolProxy=Rr(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<nI;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=hn(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(u.dataIndex=d+(t.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const YG=XG;var ZG=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._symbolDraw.incrementalUpdate(e,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=e.end===r.getData().count()},t.prototype.updateTransform=function(e,r,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Sh("").reset(e,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var r=e.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,r){var i=this._symbolDraw,a=r.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new YG:new xh,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(gr);const $G=ZG;function rI(n){_n(AP),n.registerSeriesModel(UG),n.registerChartView($G),n.registerLayout(Sh("scatter"))}var iI="\0_ec_interaction_mutex";function JG(n,t,e){var r=yS(n);r[t]=e}function QG(n,t,e){var r=yS(n),i=r[t];i===e&&(r[t]=null)}function aI(n,t){return!!yS(n)[t]}function yS(n){return n[iI]||(n[iI]={})}vo({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Fr);var qG=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;r._zr=e;var i=Ge(r._mousedownHandler,r),a=Ge(r._mousemoveHandler,r),o=Ge(r._mouseupHandler,r),s=Ge(r._mousewheelHandler,r),l=Ge(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=nn(on(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},r.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!Pb(e)){for(var r=e.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!Ng("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||aI(this._zr,"globalPan"))){var r=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=r-a,l=i-o;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&Io(e.event),oI(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:r,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Pb(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var r=Ng("zoomOnMouseWheel",e,this._opt),i=Ng("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!r&&!i)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;xS(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var d=Math.abs(a),h=(a>0?1:-1)*(d>3?.4:d>1?.15:.05);xS(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!aI(this._zr,"globalPan")){var r=e.pinchScale>1?1.1:1/1.1;xS(this,"zoom",null,e,{scale:r,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(la);function xS(n,t,e,r,i){n.pointerChecker&&n.pointerChecker(r,i.originX,i.originY)&&(Io(r.event),oI(n,t,e,r,i))}function oI(n,t,e,r,i){i.isAvailableBehavior=Ge(Ng,null,e,r),n.trigger(t,i)}function Ng(n,t,e){var r=e[n];return!n||r&&(!je(r)||t.event[r+"Key"])}const Ch=qG;function SS(n,t,e){var r=n.target;r.x+=t,r.y+=e,r.dirty()}function wS(n,t,e,r){var i=n.target,a=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var tK={axisPointer:1,tooltip:1,brush:1};function Bg(n,t,e){var r=t.getComponentByElement(n.topTarget),i=r&&r.coordinateSystem;return r&&r!==e&&!tK.hasOwnProperty(r.mainType)&&i&&i.model!==e}function sI(n){if(je(n)){var t=new DOMParser;n=t.parseFromString(n,"text/xml")}var e=n;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var _S,Vg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},lI=Nn(Vg),Wg={"alignment-baseline":"textBaseline","stop-color":"stopColor"},uI=Nn(Wg),eK=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(t,e){e=e||{};var r=sI(t);this._defsUsePending=[];var i=new sn;this._root=i;var a=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||e.width),l=parseFloat(r.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),aa(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;iK(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var h=Fg(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(d=mI(c,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var f=i;i=new sn,i.add(f),f.scaleX=f.scaleY=d.scale,f.x=d.x,f.y=d.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new jn({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:a}},n.prototype._parseNode=function(t,e,r,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var c=_S[s];if(c&&Xe(_S,s)){l=c.call(this,t,e);var d=t.getAttribute("name");if(d){var h={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(h),s==="g"&&(u=h)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var f=cI[s];if(f&&Xe(cI,s)){var p=f.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var v=t.firstChild;v;)v.nodeType===1?this._parseNode(v,l,r,u,a,o):v.nodeType===3&&o&&this._parseText(v,l),v=v.nextSibling},n.prototype._parseText=function(t,e){var r=new Md({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});_a(e,r),aa(t,r,this._defsUsePending,!1,!1),nK(r,e);var i=r.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,r.scaleX*=a/9,r.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,e.add(r),r},n.internalField=function(){_S={g:function(t,e){var r=new sn;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r},rect:function(t,e){var r=new jn;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,e){var r=new Uo;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,e){var r=new oi;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,e){var r=new Fy;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,e){var r=t.getAttribute("points"),i;r&&(i=fI(r));var a=new Ki({shape:{points:i||[]},silent:!0});return _a(e,a),aa(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var r=t.getAttribute("points"),i;r&&(i=fI(r));var a=new Xi({shape:{points:i||[]},silent:!0});return _a(e,a),aa(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var r=new li;return _a(e,r),aa(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,e){var r=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new sn;return _a(e,s),aa(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var r=t.getAttribute("x"),i=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new sn;return _a(e,s),aa(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var r=t.getAttribute("d")||"",i=ID(r);return _a(e,i),aa(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),n}(),cI={lineargradient:function(n){var t=parseInt(n.getAttribute("x1")||"0",10),e=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),i=parseInt(n.getAttribute("y2")||"0",10),a=new Kd(t,e,r,i);return dI(n,a),hI(n,a),a},radialgradient:function(n){var t=parseInt(n.getAttribute("cx")||"0",10),e=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),i=new KD(t,e,r);return dI(n,i),hI(n,i),i}};function dI(n,t){var e=n.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function hI(n,t){for(var e=n.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var r=e.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var a={};vI(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function _a(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),nn(t.__inheritedStyle,n.__inheritedStyle))}function fI(n){for(var t=Fg(n),e=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);e.push([i,a])}return e}function aa(n,t,e,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};n.nodeType===1&&(sK(n,t),vI(n,o,s),r||lK(n,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=pI(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=pI(a,"stroke",o.stroke,e)),mt(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),mt(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=we(Fg(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function nK(n,t){var e=t.__selfStyle;if(e){var r=e.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),n.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),n.style.textAlign=s)}}var rK=/^url\(\s*#(.*?)\)/;function pI(n,t,e,r){var i=e&&e.match(rK);if(i){var a=Ia(i[1]);r.push([n,t,a]);return}return e==="none"&&(e=null),e}function iK(n,t){for(var e=0;e<t.length;e++){var r=t[e];r[0].style[r[1]]=n[r[2]]}}var aK=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Fg(n){return n.match(aK)||[]}var oK=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,bS=Math.PI/180;function sK(n,t){var e=n.getAttribute("transform");if(e){e=e.replace(/,/g," ");var r=[],i=null;e.replace(oK,function(d,h,f){return r.push(h,f),""});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=Fg(o);switch(i=i||ea(),s){case"translate":no(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Om(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":qs(i,i,-parseFloat(l[0])*bS,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*bS);Eo(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*bS);Eo(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var gI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vI(n,t,e){var r=n.getAttribute("style");if(r){gI.lastIndex=0;for(var i;(i=gI.exec(r))!=null;){var a=i[1],o=Xe(Vg,a)?Vg[a]:null;o&&(t[o]=i[2]);var s=Xe(Wg,a)?Wg[a]:null;s&&(e[s]=i[2])}}}function lK(n,t,e){for(var r=0;r<lI.length;r++){var i=lI[r],a=n.getAttribute(i);a!=null&&(t[Vg[i]]=a)}for(var r=0;r<uI.length;r++){var i=uI[r],a=n.getAttribute(i);a!=null&&(e[Wg[i]]=a)}}function mI(n,t){var e=t.width/n.width,r=t.height/n.height,i=Math.min(e,r);return{scale:i,x:-(n.x+n.width/2)*i+(t.x+t.width/2),y:-(n.y+n.height/2)*i+(t.y+t.height/2)}}function uK(n,t){var e=new eK;return e.parse(n,t)}var cK=1e-8;function yI(n,t){return Math.abs(n-t)<cK}function $l(n,t,e){var r=0,i=n[0];if(!i)return!1;for(var a=1;a<n.length;a++){var o=n[a];r+=Bo(i[0],i[1],o[0],o[1],t,e),i=o}var s=n[0];return(!yI(i[0],s[0])||!yI(i[1],s[1]))&&(r+=Bo(i[0],i[1],s[0],s[1],t,e)),r!==0}var dK=[];function CS(n,t){for(var e=0;e<n.length;e++)si(n[e],n[e],t)}function xI(n,t,e,r){for(var i=0;i<n.length;i++){var a=n[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(cs(t,t,a),ds(e,e,a))}}function hK(n){for(var t=0,e=0,r=0,i=n.length,a=n[i-1][0],o=n[i-1][1],s=0;s<i;s++){var l=n[s][0],u=n[s][1],c=a*u-l*o;t+=c,e+=(a+l)*c,r+=(o+u)*c,a=l,o=u}return t?[e/t/3,r/t/3,t]:[n[0][0]||0,n[0][1]||0]}var SI=function(){function n(t){this.name=t}return n.prototype.setCenter=function(t){this._center=t},n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},n}(),wI=function(){function n(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return n}(),_I=function(){function n(t){this.type="linestring",this.points=t}return n}(),bI=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this,e)||this;return a.type="geoJSON",a.geometries=r,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,r,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(r=o,i=l)}if(r)return hK(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var r=this._rect;if(r&&!e)return r;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return mt(o,function(s){s.type==="polygon"?xI(s.exterior,i,a,e):mt(s.points,function(l){xI(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new wn(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=r),r},t.prototype.contain=function(e){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if($l(l,e[0],e[1])){for(var c=0;c<(u?u.length:0);c++)if($l(u[c],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,r,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new wn(e,r,i,a),u=o.calculateTransform(l),c=this.geometries,d=0;d<c.length;d++){var h=c[d];h.type==="polygon"?(CS(h.exterior,u),mt(h.interiors,function(f){CS(f,u)})):mt(h.points,function(f){CS(f,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var r=new t(e,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t}(SI),fK=function(n){Zt(t,n);function t(e,r){var i=n.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,r=e.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],a=Pf(dK),o=e;o&&!o.isGeoSVGGraphicRoot;)Eo(a,o.getLocalTransform(),a),o=o.parent;return Nu(a,a),si(i,i,a),i},t}(SI),pK=Ze(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),gK=function(){function n(t,e){this.type="geoSVG",this._usedGraphicMap=Ze(),this._freedGraphics=[],this._mapName=t,this._parsedXML=sI(e)}return n.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=mK(t.named),r=e.regions,i=e.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(t){var e,r;try{e=t&&uK(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=e.root,Ti(r!=null)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var i=new sn;i.add(r),i.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,h=void 0;if(a!=null?(u=0,d=a):s&&(u=s.x,d=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var f=r.getBoundingRect();u==null&&(u=f.x,d=f.width),c==null&&(c=f.y,h=f.height)}l=this._boundingRect=new wn(u,c,d,h)}if(s){var p=mI(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}i.setClipPath(new jn({shape:l.plain()}));var g=[];return mt(e.named,function(v){pK.get(v.svgNodeTagLower)!=null&&(g.push(v),vK(v.el))}),{root:i,boundingRect:l,named:g}},n.prototype.useGraphic=function(t){var e=this._usedGraphicMap,r=e.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,r),r)},n.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,r=e.get(t);r&&(e.removeKey(t),this._freedGraphics.push(r))},n}();function vK(n){n.silent=!1,n.isGroup&&n.traverse(function(t){t.silent=!1})}function mK(n){var t=[],e=Ze();return mt(n,function(r){if(r.namedFrom==null){var i=new fK(r.name,r.el);t.push(i),e.set(r.name,i)}}),{regions:t,regionsMap:e}}function yK(n){if(!n.UTF8Encoding)return n;var t=n,e=t.UTF8Scale;e==null&&(e=1024);var r=t.features;return mt(r,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=CI(s,o,e);break;case"Polygon":MS(s,o,e);break;case"MultiLineString":MS(s,o,e);break;case"MultiPolygon":mt(s,function(l,u){return MS(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function MS(n,t,e){for(var r=0;r<n.length;r++)n[r]=CI(n[r],t[r],e)}function CI(n,t,e){for(var r=[],i=t[0],a=t[1],o=0;o<n.length;o+=2){var s=n.charCodeAt(o)-64,l=n.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,r.push([s/e,l/e])}return r}function xK(n,t){return n=yK(n),we(sr(n.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var r=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new wI(o[0],o.slice(1)));break;case"MultiPolygon":mt(i.coordinates,function(l){l[0]&&a.push(new wI(l[0],l.slice(1)))});break;case"LineString":a.push(new _I([i.coordinates]));break;case"MultiLineString":a.push(new _I(i.coordinates))}var s=new bI(r[t||"name"],a,r.cp);return s.properties=r,s})}for(var TS=[126,25],MI="\u5357\u6D77\u8BF8\u5C9B",Jl=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ql=0;Ql<Jl.length;Ql++)for(var Dc=0;Dc<Jl[Ql].length;Dc++)Jl[Ql][Dc][0]/=10.5,Jl[Ql][Dc][1]/=-10.5/.75,Jl[Ql][Dc][0]+=TS[0],Jl[Ql][Dc][1]+=TS[1];function SK(n,t){if(n==="china"){for(var e=0;e<t.length;e++)if(t[e].name===MI)return;t.push(new bI(MI,we(Jl,function(r){return{type:"polygon",exterior:r}}),TS))}}var wK={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function _K(n,t){if(n==="china"){var e=wK[t.name];if(e){var r=t.getCenter();r[0]+=e[0]/10.5,r[1]+=-e[1]/(10.5/.75),t.setCenter(r)}}}var bK=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function CK(n,t){n==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:bK[0]})}var MK="name",TK=function(){function n(t,e,r){this.type="geoJSON",this._parsedMap=Ze(),this._mapName=t,this._specialAreas=r,this._geoJSON=kK(e)}return n.prototype.load=function(t,e){e=e||MK;var r=this._parsedMap.get(e);if(!r){var i=this._parseToRegions(e);r=this._parsedMap.set(e,{regions:i,boundingRect:DK(i)})}var a=Ze(),o=[];return mt(r.regions,function(s){var l=s.name;t&&Xe(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new wn(0,0,0,0),regionsMap:a}},n.prototype._parseToRegions=function(t){var e=this._mapName,r=this._geoJSON,i;try{i=r?xK(r,t):[]}catch(a){throw new Error("Invalid geoJson format\n"+a.message)}return SK(e,i),mt(i,function(a){var o=a.name;_K(e,a),CK(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function DK(n){for(var t,e=0;e<n.length;e++){var r=n[e].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function kK(n){return je(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var Mh=Ze();const Jo={registerMap:function(n,t,e){if(t.svg){var r=new gK(n,t.svg);Mh.set(n,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var r=new TK(n,i,e);Mh.set(n,r)}},getGeoResource:function(n){return Mh.get(n)},getMapForUser:function(n){var t=Mh.get(n);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(n,t,e){var r=Mh.get(n);if(r)return r.load(t,e)}};var DS=["rect","circle","line","ellipse","polygon","polyline","path"],PK=Ze(DS),AK=Ze(DS.concat(["g"])),IK=Ze(DS.concat(["g"])),TI=Kn();function jg(n){var t=n.getItemStyle(),e=n.get("areaColor");return e!=null&&(t.fill=e),t}function DI(n){var t=n.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var EK=function(){function n(t){var e=new sn;this.uid=Ju("ec_map_draw"),this._controller=new Ch(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new sn),e.add(this._svgGroup=new sn)}return n.prototype.draw=function(t,e,r,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,d=l.getTransformInfo(),h=d.raw,f=d.roam,p=!u.childAt(0)||a;p?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):Hn(c,f,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,v={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(t,e,r),this._updateMapSelectHandler(t,u,r,i)},n.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Ze(),r=Ze(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(f,p){return p&&(f=p(f)),f&&[f[0]*a.scaleX+a.x,f[1]*a.scaleY+a.y]}function d(f){for(var p=[],g=!u&&l&&l.project,v=0;v<f.length;++v){var y=c(f[v],g);y&&p.push(y)}return p}function h(f){return{shape:{points:d(f)}}}i.removeAll(),mt(t.geo.regions,function(f){var p=f.name,g=e.get(p),v=r.get(p)||{},y=v.dataIdx,x=v.regionModel;g||(g=e.set(p,new sn),i.add(g),y=s?s.indexOfName(p):null,x=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:x}));var S=[],_=[];mt(f.geometries,function(N){if(N.type==="polygon"){var q=[N.exterior].concat(N.interiors||[]);u&&(q=LI(q,u)),mt(q,function(lt){S.push(new Ki(h(lt)))})}else{var et=N.points;u&&(et=LI(et,u,!0)),mt(et,function(lt){_.push(new Xi(h(lt)))})}});var D=c(f.getCenter(),l&&l.project);function C(N,q){if(N.length){var et=new Bp({culling:!0,segmentIgnoreThreshold:1,shape:{paths:N}});g.add(et),kI(t,et,y,x),PI(t,et,p,x,o,y,D),q&&(DI(et),mt(et.states,DI))}}C(S),C(_,!0)}),e.each(function(f,p){var g=r.get(p),v=g.dataIdx,y=g.regionModel;AI(t,f,p,y,o,v),II(t,f,p,y,o),EI(t,f,p,y,o)},this)},n.prototype._buildSVG=function(t){var e=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Ze(),a=!1;mt(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,d=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);if(PK.get(c)!=null&&d instanceof fa&&kI(t,d,h,f),d instanceof fa&&(d.culling=!0),d.z2EmphasisLift=0,!o.namedFrom&&(IK.get(c)!=null&&PI(t,d,s,f,l,h,null),AI(t,d,s,f,l,h),II(t,d,s,f,l),AK.get(c)!=null)){var p=EI(t,d,s,f,l);p==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(d)}},this),this._enableBlurEntireSVG(a,t)},n.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var r=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){wl(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var r=e.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},n.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},n.prototype._useSVG=function(t){var e=Jo.getGeoResource(t);if(e&&e.type==="geoSVG"){var r=e.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},n.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Jo.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(t,e,r){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,SS(o,u.dx,u.dy),r.dispatchAction(ye(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,wS(o,u.scale,u.originX,u.originY),r.dispatchAction(ye(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,d){return i.containPoint([c,d])&&!Bg(u,r,t)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=TI(e).ignore)})},n.prototype._updateMapSelectHandler=function(t,e,r,i){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},n}();function kI(n,t,e,r){var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=jg(i),u=jg(a),c=jg(s),d=jg(o),h=n.data;if(h){var f=h.getItemVisual(e,"style"),p=h.getItemVisual(e,"decal");n.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=yc(p,n.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=d,wl(t)}function PI(n,t,e,r,i,a,o){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var d=l?e:a,h=void 0;(!s||a>=0)&&(h=i);var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ci(t,Qr(r),{labelFetcher:h,labelDataIndex:d,defaultText:e},f);var p=t.getTextContent();if(p&&(TI(p).ignore=p.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function AI(n,t,e,r,i,a){n.data?n.data.setItemGraphicEl(a,t):hn(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:r&&r.option||{}}}function II(n,t,e,r,i){n.data||fc({el:t,componentModel:i,itemName:e,itemTooltipOption:r.get("tooltip")})}function EI(n,t,e,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Er(t,o,a.get("blurScope"),a.get("disabled")),n.isGeo&&jF(t,i,e),o}function LI(n,t,e){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),mt(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),r}const OI=EK;var LK=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new OI(i);o.add(s.group),s.draw(e,r,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(e,r,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,r,i){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,d=u.offset,h=new Uo({style:{fill:e.getData().getVisual("style").fill},shape:{cx:c[0]+d*9,cy:c[1],r:3},silent:!0,z2:8+(d?0:Ku+1)});if(!d){var f=e.mainSeries.getData(),p=a.getName(l),g=f.indexOfName(p),v=a.getItemModel(l),y=v.getModel("label"),x=f.getItemGraphicEl(g);ci(h,Qr(v),{labelFetcher:{getFormattedLabel:function(S,_){return e.getFormattedLabel(g,_)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),x.onHoverStateChange=function(S){dp(h,S)}}o.add(h)}}})},t.type="map",t}(gr);const OK=LK;var RK=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var r=Tc(this,{coordDimensions:["value"],encodeDefaulter:xn(py,this)}),i=Ze(),a=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);i.set(l,!0)}var u=Jo.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return mt(u.regions,function(c){var d=c.name;i.get(d)||a.push(d)}),r.appendValues([],a),r},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var r=this.getData();return r.get(r.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var r=this.getData();return r.getItemModel(r.indexOfName(e))},t.prototype.formatTooltip=function(e,r,i){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var d=l[c].originalData.indexOfName(s),h=a.mapDimension("value");isNaN(l[c].originalData.get(h,d))||u.push(l[c].name)}return qr("section",{header:u.join(", "),noHeader:!u.length,blocks:[qr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var r=e.icon||"roundRect",i=Rr(r,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(br);const NK=RK;function BK(n,t){var e={};return mt(n,function(r){r.each(r.mapDimension("value"),function(i,a){var o="ec-"+r.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),n[0].map(n[0].mapDimension("value"),function(r,i){for(var a="ec-"+n[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].length,c=0;c<u;c++)s=Math.min(s,e[a][c]),l=Math.max(l,e[a][c]),o+=e[a][c];var d;return t==="min"?d=s:t==="max"?d=l:t==="average"?d=o/u:d=o,u===0?NaN:d})}function VK(n){var t={};n.eachSeriesByType("map",function(e){var r=e.getHostGeoModel(),i=r?"o"+r.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),mt(t,function(e,r){for(var i=BK(we(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(i.cloneShallow()),e[a].mainSeries=e[0]})}function WK(n){var t={};n.eachSeriesByType("map",function(e){var r=e.getMapType();if(!(e.getHostGeoModel()||t[r])){var i={};mt(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var d=l.getName(c),h=s.getRegion(d);if(!(!h||isNaN(u))){var f=i[d]||0,p=s.dataToPoint(h.getCenter());i[d]=f+1,l.setItemLayout(c,{point:p,offset:f})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[r]=!0}})}var RI=si,FK=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Oo,r._rawTransformable=new Oo,r.name=e,r}return t.prototype.setBoundingRect=function(e,r,i,a){return this._rect=new wn(e,r,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,r,i,a){this._transformTo(e,r,i,a),this._viewRect=new wn(e,r,i,a)},t.prototype._transformTo=function(e,r,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new wn(e,r,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,r){e&&(this._center=[Oe(e[0],r.getWidth()),Oe(e[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var r=this.zoomLimit;r&&(r.max!=null&&(e=Math.min(r.max,e)),r.min!=null&&(e=Math.max(r.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),r=e.x+e.width/2,i=e.y+e.height/2;return[r,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=si([],a,e),i=si([],i,e),r.originX=a[0],r.originY=a[1],r.x=i[0]-a[0],r.y=i[1]-a[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,r=this._rawTransformable;r.parent=e,e.updateTransform(),r.updateTransform(),Lm(this.transform||(this.transform=[]),r.transform||ea()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Nu(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,r=this._roamTransformable,i=new Oo;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,r,i){var a=r?this._rawTransform:this.transform;return i=i||[],a?RI(i,e,a):Di(i,e)},t.prototype.pointToData=function(e){var r=this.invTransform;return r?RI([],e,r):[e[0],e[1]]},t.prototype.convertToPixel=function(e,r,i){var a=NI(r);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,r,i){var a=NI(r);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Oo);function NI(n){var t=n.seriesModel;return t?t.coordinateSystem:null}const Th=FK;var jK={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},BI=["lng","lat"],VI=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this,e)||this;a.dimensions=BI,a.type="geo",a._nameCoordMap=Ze(),a.map=r;var o=i.projection,s=Jo.load(r,i.nameMap,i.nameProperty),l=Jo.getGeoResource(r),u=a.resourceType=l?l.type:null,c=a.regions=s.regions,d=jK[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var f=0;f<c.length;f++){var p=c[f].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:pn(i.aspectScale,d.aspectScale),a._invertLongitute=o?!1:d.invertLongitute,a}return t.prototype._transformTo=function(e,r,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new wn(e,r,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var r=this.regions,i=0;i<r.length;i++){var a=r[i];if(a.type==="geoJSON"&&a.contain(e))return r[i]}},t.prototype.addGeoCoord=function(e,r){this._nameCoordMap.set(e,r)},t.prototype.getGeoCoord=function(e){var r=this._regionsMap.get(e);return this._nameCoordMap.get(e)||r&&r.getCenter()},t.prototype.dataToPoint=function(e,r,i){if(je(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,r,i)}},t.prototype.pointToData=function(e){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return n.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,r,i){return n.prototype.dataToPoint.call(this,e,r,i)},t.prototype.convertToPixel=function(e,r,i){var a=WI(r);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,r,i){var a=WI(r);return a===this?a.pointToData(i):null},t}(Th);Wr(VI,Th);function WI(n){var t=n.geoModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Kr).models[0]||{}).coordinateSystem:null}const FI=VI;function jI(n,t){var e=n.get("boundingCoords");if(e!=null){var r=e[0],i=e[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(C,N,q,et){for(var lt=q-C,ft=et-N,_t=0;_t<=100;_t++){var Ct=_t/100,kt=a.project([C+lt*Ct,N+ft*Ct]);cs(r,r,kt),ds(i,i,kt)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),h=n.get("layoutCenter"),f=n.get("layoutSize"),p=t.getWidth(),g=t.getHeight(),v=d.width/d.height*this.aspectScale,y=!1,x,S;h&&f&&(x=[Oe(h[0],p),Oe(h[1],g)],S=Oe(f,Math.min(p,g)),!isNaN(x[0])&&!isNaN(x[1])&&!isNaN(S)&&(y=!0));var _;if(y)_={},v>1?(_.width=S,_.height=S/v):(_.height=S,_.width=S*v),_.y=x[1]-_.height/2,_.x=x[0]-_.width/2;else{var D=n.getBoxLayoutParams();D.aspect=v,_=Xr(D,{width:p,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),t),this.setZoom(n.get("zoom"))}function zK(n,t){mt(t.get("geoCoord"),function(e,r){n.addGeoCoord(r,e)})}var HK=function(){function n(){this.dimensions=BI}return n.prototype.create=function(t,e){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new FI(l+s,l,ye({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=jI,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),mt(a,function(o,s){var l=we(o,function(c){return c.get("nameMap")}),u=new FI(s,s,ye({nameMap:ym(l)},i(o[0])));u.zoomLimit=ii.apply(null,we(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=jI,u.resize(o[0],e),mt(o,function(c){c.coordinateSystem=u,zK(u,c)})}),r},n.prototype.getFilledRegions=function(t,e,r,i){for(var a=(t||[]).slice(),o=Ze(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=Jo.load(e,r,i);return mt(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},n}(),UK=new HK;const zI=UK;var GK=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r,i){var a=Jo.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),ll(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,r=this.option;r.regions=zI.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=to(r.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new pr(o,e,e.ecModel)),o.selected&&(i[s]=!0)),a},Ze()),r.selectedMap||(r.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new pr(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,r){var i=this.getRegionModel(e),a=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(qe(a))return o.status=r,a(o);if(je(a))return a.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var a=r.selectedMap||(r.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var r=this.option.selectedMap;r&&(r[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var r=this.option.selectedMap;return!!(r&&r[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Jn);const KK=GK;function HI(n,t){return n.pointToProjected?n.pointToProjected(t):n.pointToData(t)}function kS(n,t,e,r){var i=n.getZoom(),a=n.getCenter(),o=t.zoom,s=n.projectedToPoint?n.projectedToPoint(a):n.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,n.setCenter(HI(n,s),r)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}n.scaleX*=o,n.scaleY*=o;var c=(t.originX-n.x)*(o-1),d=(t.originY-n.y)*(o-1);n.x-=c,n.y-=d,n.updateTransform(),n.setCenter(HI(n,s),r),n.setZoom(o*i)}return{center:n.getCenter(),zoom:n.getZoom()}}var XK=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,r){this._api=r},t.prototype.render=function(e,r,i,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new OI(i));var o=this._mapDraw;o.draw(e,r,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,r,i)},t.prototype._handleRegionClick=function(e){var r;Ol(e.target,function(i){return(r=hn(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(e,r,i){var a=this;this._mapDraw.group.traverse(function(o){var s=hn(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Lr);const YK=XK;function ZK(n,t,e){Jo.registerMap(n,t,e)}function UI(n){n.registerCoordinateSystem("geo",zI),n.registerComponentModel(KK),n.registerComponentView(YK),n.registerImpl("registerMap",ZK),n.registerImpl("getMap",function(e){return Jo.getMapForUser(e)});function t(e,r){r.update="geo:updateSelectStatus",n.registerAction(r,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;mt(u.regions,function(d){o[d.name]=l.isSelected(d.name)||!1});var c=[];mt(o,function(d,h){o[h]&&c.push(h)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,r,i){var a=e.componentType||"series";r.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=kS(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&mt(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function GI(n){_n(UI),n.registerChartView(OK),n.registerSeriesModel(NK),n.registerLayout(WK),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,VK),Sk("map",n.registerAction)}var $K=2,JK=4,QK=function(n){Zt(t,n);function t(e,r,i,a){var o=n.call(this)||this;o.z2=$K,o.textConfig={inside:!0},hn(o).seriesIndex=r.seriesIndex;var s=new Wn({z2:JK,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,r,i,a),o}return t.prototype.updateData=function(e,r,i,a,o){this.node=r,r.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;hn(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=ye({},c);d.label=null;var h=r.getVisual("style");h.lineJoin="bevel";var f=r.getVisual("decal");f&&(h.decal=yc(f,o));var p=Yl(l.getModel("itemStyle"),d,!0);ye(d,p),mt(Pi,function(x){var S=s.ensureState(x),_=l.getModel([x,"itemStyle"]);S.style=_.getItemStyle();var D=Yl(_,d);D&&(S.shape=D)}),e?(s.setShape(d),s.shape.r=c.r0,_r(s,{shape:{r:c.r}},i,r.dataIndex)):(Hn(s,{shape:d},i),Na(s)),s.useStyle(h),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var v=u.get("focus"),y=v==="ancestor"?r.getAncestorsIndices():v==="descendant"?r.getDescendantIndices():v;Er(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var r=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,h=d.getTextContent(),f=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!g,mt(Dd,function(y){var x=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),S=y==="normal",_=S?h:h.ensureState(y),D=e.getFormattedLabel(f,y);S&&(D=D||r.node.name),_.style=mr(x,{},null,y!=="normal",!0),D&&(_.style.text=D);var C=x.get("show");C!=null&&!S&&(_.ignore=!C);var N=v(x,"position"),q=S?d:d.states[y],et=q.style.fill;q.textConfig={outsideFill:x.get("color")==="inherit"?et:null,inside:N!=="outside"};var lt,ft=v(x,"distance")||0,_t=v(x,"align"),Ct=v(x,"rotate"),kt=Math.PI*.5,Ot=Math.PI*1.5,Nt=ia(Ct==="tangential"?Math.PI/2-l:l),Xt=Nt>kt&&!yd(Nt-kt)&&Nt<Ot;N==="outside"?(lt=o.r+ft,_t=Xt?"right":"left"):!_t||_t==="center"?(s===2*Math.PI&&o.r0===0?lt=0:lt=(o.r+o.r0)/2,_t="center"):_t==="left"?(lt=o.r0+ft,_t=Xt?"right":"left"):_t==="right"&&(lt=o.r-ft,_t=Xt?"left":"right"),_.style.align=_t,_.style.verticalAlign=v(x,"verticalAlign")||"middle",_.x=lt*u+o.cx,_.y=lt*c+o.cy;var Vt=0;Ct==="radial"?Vt=ia(-l)+(Xt?Math.PI:0):Ct==="tangential"?Vt=ia(Math.PI/2-l)+(Xt?Math.PI:0):$n(Ct)&&(Vt=Ct*Math.PI/180),_.rotation=ia(Vt)});function v(y,x){var S=y.get(x);return S==null?a.get(x):S}h.dirtyStyle()},t}(Gi);const KI=QK;function Dh(n,t,e){if(n&&kn(t,n.type)>=0){var r=e.getData().tree.root,i=n.targetNode;if(je(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=n.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function XI(n){for(var t=[];n;)n=n.parentNode,n&&t.push(n);return t.reverse()}function PS(n,t){var e=XI(n);return kn(e,t)>=0}function zg(n,t){for(var e=[];n;){var r=n.dataIndex;e.push({name:n.name,dataIndex:r,value:t.getRawValue(r)}),n=n.parentNode}return e.reverse(),e}var AS="sunburstRootToNode",YI="sunburstHighlight",qK="sunburstUnhighlight";function tX(n){n.registerAction({type:AS,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(i,a){var o=Dh(t,[AS],i);if(o){var s=i.getViewRoot();s&&(t.direction=PS(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),n.registerAction({type:YI,update:"none"},function(t,e,r){t=ye({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Dh(t,[YI],a);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(ye(t,{type:"highlight"}))}),n.registerAction({type:qK,update:"updateView"},function(t,e,r){t=ye({},t),r.dispatchAction(ye(t,{type:"downplay"}))})}var eX=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,a){var o=this;this.seriesModel=e,this.api=i,this.ecModel=r;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),c=this.group,d=e.get("renderLabelForZeroData"),h=[];u.eachNode(function(x){h.push(x)});var f=this._oldChildren||[];p(h,f),y(l,u),this._initEvents(),this._oldChildren=h;function p(x,S){if(x.length===0&&S.length===0)return;new Go(S,x,_,_).add(D).update(D).remove(xn(D,null)).execute();function _(C){return C.getId()}function D(C,N){var q=C==null?null:x[C],et=N==null?null:S[N];g(q,et)}}function g(x,S){if(!d&&x&&!x.getValue()&&(x=null),x!==l&&S!==l){if(S&&S.piece)x?(S.piece.updateData(!1,x,e,r,i),s.setItemGraphicEl(x.dataIndex,S.piece)):v(S);else if(x){var _=new KI(x,e,r,i);c.add(_),s.setItemGraphicEl(x.dataIndex,_)}}}function v(x){x&&x.piece&&(c.remove(x.piece),x.piece=null)}function y(x,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,x,e,r,i):(o.virtualPiece=new KI(x,e,r,i),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(S.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,a=e.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";_p(u,c)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AS,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(gr);const nX=eX;var ba=Kn();function rX(n){var t=n.mainData,e=n.datas;e||(e={main:t},n.datasAttr={main:"data"}),n.datas=n.mainData=null,ZI(t,e,n),mt(e,function(r){mt(t.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,xn(iX,n))})}),t.wrapMethod("cloneShallow",xn(oX,n)),mt(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,xn(aX,n))}),Ti(e[t.dataType]===t)}function iX(n,t){if(uX(this)){var e=ye({},ba(this).datas);e[this.dataType]=t,ZI(t,e,n)}else IS(t,this.dataType,ba(this).mainData,n);return t}function aX(n,t){return n.struct&&n.struct.update(),t}function oX(n,t){return mt(ba(t).datas,function(e,r){e!==t&&IS(e.cloneShallow(),r,t,n)}),t}function sX(n){var t=ba(this).mainData;return n==null||t==null?t:ba(t).datas[n]}function lX(){var n=ba(this).mainData;return n==null?[{data:n}]:we(Nn(ba(n).datas),function(t){return{type:t,data:ba(n).datas[t]}})}function uX(n){return ba(n).mainData===n}function ZI(n,t,e){ba(n).datas={},mt(t,function(r,i){IS(r,i,n,e)})}function IS(n,t,e,r){ba(e).datas[t]=n,ba(n).mainData=e,n.dataType=t,r.struct&&(n[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=n),n.getLinkedData=sX,n.getLinkedDataAll=lX}const $I=rX;var cX=function(){function n(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(t,e,r){qe(t)&&(r=e,e=t,t=null),t=t||{},je(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(r,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,r);i==="postorder"&&e.call(r,this)},n.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},n.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,r=this.children,i=r.length;e<i;e++){var a=r[e].getNodeById(t);if(a)return a}},n.prototype.contains=function(t){if(t===this)return!0;for(var e=0,r=this.children,i=r.length;e<i;e++){var a=r[e].contains(t);if(a)return a}},n.prototype.getAncestors=function(t){for(var e=[],r=t?this:this.parentNode;r;)e.push(r),r=r.parentNode;return e.reverse(),e},n.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},n.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},n.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},n.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,r=e.data.getItemModel(this.dataIndex);return r.getModel(t)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},n.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},n.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},n.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},n}(),dX=function(){function n(t){this.type="tree",this._nodes=[],this.hostModel=t}return n.prototype.eachNode=function(t,e,r){this.root.eachNode(t,e,r)},n.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},n.prototype.getNodeById=function(t){return this.root.getNodeById(t)},n.prototype.update=function(){for(var t=this.data,e=this._nodes,r=0,i=e.length;r<i;r++)e[r].dataIndex=-1;for(var r=0,i=t.count();r<i;r++)e[t.getRawIndex(r)].dataIndex=r},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(t,e,r){var i=new n(e),a=[],o=1;s(t);function s(c,d){var h=c.value;o=Math.max(o,Se(h)?h.length:1),a.push(c);var f=new cX(Zr(c.name,""),i);d?hX(f,d):i.root=f,i._nodes.push(f);var p=c.children;if(p)for(var g=0;g<p.length;g++)s(p[g],f)}i.root.updateDepthAndHeight(0);var l=Sc(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new hi(l,e);return u.initData(a),r&&r(u),$I({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},n}();function hX(n,t){var e=t.children;n.parentNode!==t&&(e.push(n),n.parentNode=t)}const ES=dX;function JI(n){var t=n.getData(),e=t.tree,r={};e.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=yy(n.ecModel,a.name||a.dataIndex+"",r);i.setVisual("decal",o)})}var fX=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,r){var i={name:e.name,children:e.data};QI(i);var a=this._levelModels=we(e.levels||[],function(l){return new pr(l,this,r)},this),o=ES.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),h=a[d.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return r.treePathInfo=zg(i,this),r},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var r=this.getRawData().tree.root;(!e||e!==r&&!r.contains(e))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){JI(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(br);function QI(n){var t=0;mt(n.children,function(r){QI(r);var i=r.value;Se(i)&&(i=i[0]),t+=i});var e=n.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(n.value)?n.value[0]=e:n.value=e}const pX=fX;var qI=Math.PI/180;function gX(n,t,e){t.eachSeriesByType(n,function(r){var i=r.get("center"),a=r.get("radius");Se(a)||(a=[0,a]),Se(i)||(i=[i,i]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=Oe(i[0],o),c=Oe(i[1],s),d=Oe(a[0],l/2),h=Oe(a[1],l/2),f=-r.get("startAngle")*qI,p=r.get("minAngle")*qI,g=r.getData().tree.root,v=r.getViewRoot(),y=v.depth,x=r.get("sort");x!=null&&tE(v,x);var S=0;mt(v.children,function(Nt){!isNaN(Nt.getValue())&&S++});var _=v.getValue(),D=Math.PI/(_||S)*2,C=v.depth>0,N=v.height-(C?-1:1),q=(h-d)/(N||1),et=r.get("clockwise"),lt=r.get("stillShowZeroSum"),ft=et?1:-1,_t=function(Nt,Xt){if(Nt){var Vt=Xt;if(Nt!==g){var Ut=Nt.getValue(),Yt=_===0&&lt?D:Ut*D;Yt<p&&(Yt=p),Vt=Xt+ft*Yt;var ue=Nt.depth-y-(C?-1:1),ie=d+q*ue,Gt=d+q*(ue+1),Qt=r.getLevelModel(Nt);if(Qt){var me=Qt.get("r0",!0),De=Qt.get("r",!0),Pe=Qt.get("radius",!0);Pe!=null&&(me=Pe[0],De=Pe[1]),me!=null&&(ie=Oe(me,l/2)),De!=null&&(Gt=Oe(De,l/2))}Nt.setLayout({angle:Yt,startAngle:Xt,endAngle:Vt,clockwise:et,cx:u,cy:c,r0:ie,r:Gt})}if(Nt.children&&Nt.children.length){var Ce=0;mt(Nt.children,function(Ee){Ce+=_t(Ee,Xt+Ce)})}return Vt-Xt}};if(C){var Ct=d,kt=d+q,Ot=Math.PI*2;g.setLayout({angle:Ot,startAngle:f,endAngle:f+Ot,clockwise:et,cx:u,cy:c,r0:Ct,r:kt})}_t(v,f)})}function tE(n,t){var e=n.children||[];n.children=vX(e,t),e.length&&mt(n.children,function(r){tE(r,t)})}function vX(n,t){if(qe(t)){var e=we(n,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return e.sort(function(i,a){return t(i.params,a.params)}),we(e,function(i){return n[i.index]})}else{var r=t==="asc";return n.sort(function(i,a){var o=(i.getValue()-a.getValue())*(r?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(r?-1:1):o})}}function mX(n){var t={};function e(r,i,a){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&je(s)&&(s=Km(s,(r.depth-1)/(a-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var i=r.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,r,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");ye(u,l)})})}function eE(n){n.registerChartView(nX),n.registerSeriesModel(pX),n.registerLayout(xn(gX,"sunburst")),n.registerProcessor(xn(wh,"sunburst")),n.registerVisual(mX),tX(n)}var nE=function(){function n(){}return n.prototype.getInitialData=function(t,e){var r,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],h=u[1-c],f=[i,a],p=f[c].get("type"),g=f[1-c].get("type"),v=t.data;if(v&&l){var y=[];mt(v,function(_,D){var C;Se(_)?(C=_.slice(),_.unshift(D)):Se(_.value)?(C=ye({},_),C.value=C.value.slice(),_.value.unshift(D)):C=_,y.push(C)}),t.data=y}var x=this.defaultValueDimensions,S=[{name:d,type:lg(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:lg(g),dimsDef:x.slice()}];return Tc(this,{coordDimensions:S,dimensionsCount:x.length+1,encodeDefaulter:xn(xT,S,this)})},n.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},n}(),rE=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(br);Wr(rE,nE,!0);const yX=rE;var xX=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),d=iE(c,a,u,l,!0);a.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(d);return}var h=a.getItemLayout(u);d?(Na(d),aE(h,d,a,u)):d=iE(h,a,u,l),o.add(d),a.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(e){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&r.remove(a)})},t.type="boxplot",t}(gr),SX=function(){function n(){}return n}(),wX=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new SX},t.prototype.buildPath=function(e,r){var i=r.points,a=0;for(e.moveTo(i[a][0],i[a][1]),a++;a<4;a++)e.lineTo(i[a][0],i[a][1]);for(e.closePath();a<i.length;a++)e.moveTo(i[a][0],i[a][1]),a++,e.lineTo(i[a][0],i[a][1])},t}(In);function iE(n,t,e,r,i){var a=n.ends,o=new wX({shape:{points:i?_X(a,r,n):a}});return aE(n,o,t,e,i),o}function aE(n,t,e,r,i){var a=e.hostModel,o=Z[i?"initProps":"updateProps"];o(t,{shape:{points:n.ends}},a,r),t.useStyle(e.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(r),l=s.getModel("emphasis");ui(t,s),Er(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function _X(n,t,e){return we(n,function(r){return r=r.slice(),r[t]=e.initBaseline,r})}const bX=xX;var kh=mt;function CX(n){var t=MX(n);kh(t,function(e){var r=e.seriesModels;r.length&&(TX(e),kh(r,function(i,a){DX(i,e.boxOffsetList[a],e.boxWidthList[a])}))})}function MX(n){var t=[],e=[];return n.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),a=kn(e,i);a<0&&(a=e.length,e[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(r)}),t}function TX(n){var t=n.axis,e=n.seriesModels,r=e.length,i=n.boxWidthList=[],a=n.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;kh(e,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}kh(e,function(p){var g=p.get("boxWidth");Se(g)||(g=[g,g]),o.push([Oe(g[0],s)||0,Oe(g[1],s)||0])});var c=s*.8-2,d=c/r*.3,h=(c-d*(r-1))/r,f=h/2-c/2;kh(e,function(p,g){a.push(f),f+=d+h,i.push(Math.min(Math.max(h,o[g][0]),o[g][1]))})}function DX(n,t,e){var r=n.coordinateSystem,i=n.getData(),a=e/2,o=n.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var d=0;d<i.count();d++){var h=i.get(u,d),f=S(h,c[2],d),p=S(h,c[0],d),g=S(h,c[1],d),v=S(h,c[3],d),y=S(h,c[4],d),x=[];_(x,g,!1),_(x,v,!0),x.push(p,g,y,v),D(x,p),D(x,y),D(x,f),i.setItemLayout(d,{initBaseline:f[s],ends:x})}function S(C,N,q){var et=i.get(N,q),lt=[];lt[o]=C,lt[s]=et;var ft;return isNaN(C)||isNaN(et)?ft=[NaN,NaN]:(ft=r.dataToPoint(lt),ft[o]+=t),ft}function _(C,N,q){var et=N.slice(),lt=N.slice();et[o]+=a,lt[o]-=a,q?C.push(et,lt):C.push(lt,et)}function D(C,N){var q=N.slice(),et=N.slice();q[o]-=a,et[o]+=a,C.push(q,et)}}function kX(n,t){t=t||{};for(var e=[],r=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<n.length;o++){var s=ha(n[o].slice()),l=S0(s,.25),u=S0(s,.5),c=S0(s,.75),d=s[0],h=s[s.length-1],f=(i==null?1.5:i)*(c-l),p=a?d:Math.max(d,l-f),g=a?h:Math.min(h,c+f),v=t.itemNameFormatter,y=qe(v)?v({value:o}):je(v)?v.replace("{value}",o+""):o+"";e.push([y,p,l,u,c,g]);for(var x=0;x<s.length;x++){var S=s[x];if(S<p||S>g){var _=[y,S];r.push(_)}}}return{boxData:e,outliers:r}}var PX={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==yi){var r="";er(r)}var i=kX(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function oE(n){n.registerSeriesModel(yX),n.registerChartView(bX),n.registerLayout(CX),n.registerTransform(PX)}var AX=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),IX=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new AX},t.prototype.buildPath=function(e,r){var i=r.extent;e.moveTo(r.x1,r.y1),e.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(e.lineTo(r.x2+i,r.y2),e.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(e.lineTo(r.x2,r.y2+i),e.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),e.closePath()},t.prototype.highlight=function(){Wo(this)},t.prototype.downplay=function(){Fo(this)},t}(In),EX=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,r,i){var a=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,c=l.height,d=e.getData(),h=e.getData("edge"),f=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new IX,v=hn(g);v.dataIndex=p.dataIndex,v.seriesIndex=e.seriesIndex,v.dataType="edge";var y=p.getModel(),x=y.getModel("lineStyle"),S=x.get("curveness"),_=p.node1.getLayout(),D=p.node1.getModel(),C=D.get("localX"),N=D.get("localY"),q=p.node2.getLayout(),et=p.node2.getModel(),lt=et.get("localX"),ft=et.get("localY"),_t=p.getLayout(),Ct,kt,Ot,Nt,Xt,Vt,Ut,Yt;g.shape.extent=Math.max(1,_t.dy),g.shape.orient=f,f==="vertical"?(Ct=(C!=null?C*u:_.x)+_t.sy,kt=(N!=null?N*c:_.y)+_.dy,Ot=(lt!=null?lt*u:q.x)+_t.ty,Nt=ft!=null?ft*c:q.y,Xt=Ct,Vt=kt*(1-S)+Nt*S,Ut=Ot,Yt=kt*S+Nt*(1-S)):(Ct=(C!=null?C*u:_.x)+_.dx,kt=(N!=null?N*c:_.y)+_t.sy,Ot=lt!=null?lt*u:q.x,Nt=(ft!=null?ft*c:q.y)+_t.ty,Xt=Ct*(1-S)+Ot*S,Vt=kt,Ut=Ct*S+Ot*(1-S),Yt=Nt),g.setShape({x1:Ct,y1:kt,x2:Ot,y2:Nt,cpx1:Xt,cpy1:Vt,cpx2:Ut,cpy2:Yt}),g.useStyle(x.getItemStyle()),sE(g.style,f,p);var ue=""+y.get("value"),ie=Qr(y,"edgeLabel");ci(g,ie,{labelFetcher:{getFormattedLabel:function(me,De,Pe,Ce,Ee,Ve){return e.getFormattedLabel(me,De,"edge",Ce,eo(Ee,ie.normal&&ie.normal.get("formatter"),ue),Ve)}},labelDataIndex:p.dataIndex,defaultText:ue}),g.setTextConfig({position:"inside"});var Gt=y.getModel("emphasis");ui(g,y,"lineStyle",function(me){var De=me.getItemStyle();return sE(De,f,p),De}),s.add(g),h.setItemGraphicEl(p.dataIndex,g);var Qt=Gt.get("focus");Er(g,Qt==="adjacency"?p.getAdjacentDataIndices():Qt==="trajectory"?p.getTrajectoryDataIndices():Qt,Gt.get("blurScope"),Gt.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),v=p.getModel(),y=v.get("localX"),x=v.get("localY"),S=v.getModel("emphasis"),_=new jn({shape:{x:y!=null?y*u:g.x,y:x!=null?x*c:g.y,width:g.dx,height:g.dy},style:v.getModel("itemStyle").getItemStyle(),z2:10});ci(_,Qr(v),{labelFetcher:{getFormattedLabel:function(C,N){return e.getFormattedLabel(C,N,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),ui(_,v),s.add(_),d.setItemGraphicEl(p.dataIndex,_),hn(_).dataType="node";var D=S.get("focus");Er(_,D==="adjacency"?p.getAdjacentDataIndices():D==="trajectory"?p.getTrajectoryDataIndices():D,S.get("blurScope"),S.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var v=d.getItemModel(g);v.get("draggable")&&(p.drift=function(y,x){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=x,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(LX(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(gr);function sE(n,t,e){switch(n.fill){case"source":n.fill=e.node1.getVisual("color"),n.decal=e.node1.getVisual("style").decal;break;case"target":n.fill=e.node2.getVisual("color"),n.decal=e.node2.getVisual("style").decal;break;case"gradient":var r=e.node1.getVisual("color"),i=e.node2.getVisual("color");je(r)&&je(i)&&(n.fill=new Kd(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function LX(n,t,e){var r=new jn({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return _r(r,{shape:{width:n.width+20}},t,e),r}const OX=EX;function kc(n){return"_EC_"+n}var RX=function(){function n(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var r=this._nodesMap;if(!r[kc(t)]){var i=new ql(t,e);return i.hostGraph=this,this.nodes.push(i),r[kc(t)]=i,i}},n.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},n.prototype.getNodeById=function(t){return this._nodesMap[kc(t)]},n.prototype.addEdge=function(t,e,r){var i=this._nodesMap,a=this._edgesMap;if($n(t)&&(t=this.nodes[t]),$n(e)&&(e=this.nodes[e]),t instanceof ql||(t=i[kc(t)]),e instanceof ql||(e=i[kc(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new lE(t,e,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),a[o]=s,s}},n.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},n.prototype.getEdge=function(t,e){t instanceof ql&&(t=t.id),e instanceof ql&&(e=e.id);var r=this._edgesMap;return this._directed?r[t+"-"+e]:r[t+"-"+e]||r[e+"-"+t]},n.prototype.eachNode=function(t,e){for(var r=this.nodes,i=r.length,a=0;a<i;a++)r[a].dataIndex>=0&&t.call(e,r[a],a)},n.prototype.eachEdge=function(t,e){for(var r=this.edges,i=r.length,a=0;a<i;a++)r[a].dataIndex>=0&&r[a].node1.dataIndex>=0&&r[a].node2.dataIndex>=0&&t.call(e,r[a],a)},n.prototype.breadthFirstTraverse=function(t,e,r,i){if(e instanceof ql||(e=this._nodesMap[kc(e)]),!!e){for(var a=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],d=c.node1===l?c.node2:c.node1;if(!d.__visited){if(t.call(i,d,l))return;s.push(d),d.__visited=!0}}}},n.prototype.update=function(){for(var t=this.data,e=this.edgeData,r=this.nodes,i=this.edges,a=0,o=r.length;a<o;a++)r[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)r[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(s){var l=i[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a},n.prototype.clone=function(){for(var t=new n(this._directed),e=this.nodes,r=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},n}(),ql=function(){function n(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t==null?"":t,this.dataIndex=e==null?-1:e}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,r=e.data.getItemModel(this.dataIndex);return r.getModel(t)}},n.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var r=this.edges[e];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},n.prototype.getTrajectoryDataIndices=function(){for(var t=Ze(),e=Ze(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,e.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:e.keys()}},n}(),lE=function(){function n(t,e,r){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=r==null?-1:r}return n.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,r=e.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var t=Ze(),e=Ze();t.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],a=0;a<r.length;){var o=r[a];a++,e.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,e.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},n}();function uE(n,t){return{getValue:function(e){var r=this[n][t];return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,r){this.dataIndex>=0&&this[n][t].setItemVisual(this.dataIndex,e,r)},getVisual:function(e){return this[n][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,r){this.dataIndex>=0&&this[n][t].setItemLayout(this.dataIndex,e,r)},getLayout:function(){return this[n][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][t].getRawIndex(this.dataIndex)}}}Wr(ql,uE("hostGraph","data")),Wr(lE,uE("hostGraph","edgeData"));const NX=RX;function cE(n,t,e,r,i){for(var a=new NX(r),o=0;o<n.length;o++)a.addNode(ii(n[o].id,n[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],d=c.source,h=c.target;a.addEdge(d,h,u)&&(l.push(c),s.push(ii(Zr(c.id,null),d+" > "+h)),u++)}var f=e.get("coordinateSystem"),p;if(f==="cartesian2d"||f==="polar")p=mo(n,e);else{var g=Bd.get(f),v=g?g.dimensions||[]:[];kn(v,"value")<0&&v.concat(["value"]);var y=Sc(n,{coordDimensions:v,encodeDefine:e.getEncode()}).dimensions;p=new hi(y,e),p.initData(n)}var x=new hi(["value"],e);return x.initData(l,s),i&&i(p,x),$I({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:x},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var BX=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){var i=e.edges||e.links,a=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new pr(o[l],this,r));if(a&&i){var u=cE(a,i,this,!0,c);return u.data}function c(d,h){d.wrapMethod("getItemModel",function(f,p){var g=f.parentModel,v=g.getData().getItemLayout(p);if(v){var y=v.depth,x=g.levelModels[y];x&&(f.parentModel=x)}return f}),h.wrapMethod("getItemModel",function(f,p){var g=f.parentModel,v=g.getGraph().getEdgeByIndex(p),y=v.node1.getLayout();if(y){var x=y.depth,S=g.levelModels[x];S&&(f.parentModel=S)}return f})}},t.prototype.setNodePosition=function(e,r){var i=this.option.data||this.option.nodes,a=i[e];a.localX=r[0],a.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,r,i){function a(f){return isNaN(f)||f==null}if(i==="edge"){var o=this.getDataParams(e,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return qr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(e),d=c.getLayout().value,h=this.getDataParams(e,i).data.name;return qr("nameValue",{name:h!=null?h+"":null,value:d,noValue:a(d)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,r){var i=n.prototype.getDataParams.call(this,e,r);if(i.value==null&&r==="node"){var a=this.getGraph().getNodeByIndex(e),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(br);const VX=BX;function WX(n,t){n.eachSeriesByType("sankey",function(e){var r=e.get("nodeWidth"),i=e.get("nodeGap"),a=FX(e,t);e.layoutInfo=a;var o=a.width,s=a.height,l=e.getGraph(),u=l.nodes,c=l.edges;zX(u);var d=sr(u,function(g){return g.getLayout().value===0}),h=d.length!==0?0:e.get("layoutIterations"),f=e.get("orient"),p=e.get("nodeAlign");jX(u,c,r,i,o,s,h,f,p)})}function FX(n,t){return Xr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jX(n,t,e,r,i,a,o,s,l){HX(n,t,e,i,a,s,l),XX(n,t,a,i,r,o,s),nY(n,s)}function zX(n){mt(n,function(t){var e=Ns(t.outEdges,Hg),r=Ns(t.inEdges,Hg),i=t.getValue()||0,a=Math.max(e,r,i);t.setLayout({value:a},!0)})}function HX(n,t,e,r,i,a,o){for(var s=[],l=[],u=[],c=[],d=0,h=0;h<t.length;h++)s[h]=1;for(var h=0;h<n.length;h++)l[h]=n[h].inEdges.length,l[h]===0&&u.push(n[h]);for(var f=-1;u.length;){for(var p=0;p<u.length;p++){var g=u[p],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=v.depth!=null&&v.depth>=0;y&&v.depth>f&&(f=v.depth),g.setLayout({depth:y?v.depth:d},!0),a==="vertical"?g.setLayout({dy:e},!0):g.setLayout({dx:e},!0);for(var x=0;x<g.outEdges.length;x++){var S=g.outEdges[x],_=t.indexOf(S);s[_]=0;var D=S.node2,C=n.indexOf(D);--l[C]===0&&c.indexOf(D)<0&&c.push(D)}}++d,u=c,c=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var N=f>d-1?f:d-1;o&&o!=="left"&&UX(n,o,a,N);var q=a==="vertical"?(i-e)/N:(r-e)/N;KX(n,q,a)}function dE(n){var t=n.hostGraph.data.getRawDataItem(n.dataIndex);return t.depth!=null&&t.depth>=0}function UX(n,t,e,r){if(t==="right"){for(var i=[],a=n,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}mt(n,function(d){dE(d)||d.setLayout({depth:Math.max(0,r-d.getLayout().skNodeHeight)},!0)})}else t==="justify"&&GX(n,r)}function GX(n,t){mt(n,function(e){!dE(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function KX(n,t,e){mt(n,function(r){var i=r.getLayout().depth*t;e==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function XX(n,t,e,r,i,a,o){var s=YX(n,o);ZX(s,t,e,r,i,o),LS(s,i,e,r,o);for(var l=1;a>0;a--)l*=.99,$X(s,l,o),LS(s,i,e,r,o),eY(s,l,o),LS(s,i,e,r,o)}function YX(n,t){var e=[],r=t==="vertical"?"y":"x",i=b0(n,function(a){return a.getLayout()[r]});return i.keys.sort(function(a,o){return a-o}),mt(i.keys,function(a){e.push(i.buckets.get(a))}),e}function ZX(n,t,e,r,i,a){var o=1/0;mt(n,function(s){var l=s.length,u=0;mt(s,function(d){u+=d.getLayout().value});var c=a==="vertical"?(r-(l-1)*i)/u:(e-(l-1)*i)/u;c<o&&(o=c)}),mt(n,function(s){mt(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),mt(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function LS(n,t,e,r,i){var a=i==="vertical"?"x":"y";mt(n,function(o){o.sort(function(g,v){return g.getLayout()[a]-v.getLayout()[a]});for(var s,l,u,c=0,d=o.length,h=i==="vertical"?"dx":"dy",f=0;f<d;f++)l=o[f],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var p=i==="vertical"?r:e;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var f=d-2;f>=0;--f)l=o[f],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function $X(n,t,e){mt(n.slice().reverse(),function(r){mt(r,function(i){if(i.outEdges.length){var a=Ns(i.outEdges,JX,e)/Ns(i.outEdges,Hg);if(isNaN(a)){var o=i.outEdges.length;a=o?Ns(i.outEdges,QX,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-Rs(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Rs(i,e))*t;i.setLayout({y:l},!0)}}})})}function JX(n,t){return Rs(n.node2,t)*n.getValue()}function QX(n,t){return Rs(n.node2,t)}function qX(n,t){return Rs(n.node1,t)*n.getValue()}function tY(n,t){return Rs(n.node1,t)}function Rs(n,t){return t==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function Hg(n){return n.getValue()}function Ns(n,t,e){for(var r=0,i=n.length,a=-1;++a<i;){var o=+t(n[a],e);isNaN(o)||(r+=o)}return r}function eY(n,t,e){mt(n,function(r){mt(r,function(i){if(i.inEdges.length){var a=Ns(i.inEdges,qX,e)/Ns(i.inEdges,Hg);if(isNaN(a)){var o=i.inEdges.length;a=o?Ns(i.inEdges,tY,e)/o:0}if(e==="vertical"){var s=i.getLayout().x+(a-Rs(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Rs(i,e))*t;i.setLayout({y:l},!0)}}})})}function nY(n,t){var e=t==="vertical"?"x":"y";mt(n,function(r){r.outEdges.sort(function(i,a){return i.node2.getLayout()[e]-a.node2.getLayout()[e]}),r.inEdges.sort(function(i,a){return i.node1.getLayout()[e]-a.node1.getLayout()[e]})}),mt(n,function(r){var i=0,a=0;mt(r.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),mt(r.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}var Ph=mt,rY=rn,Ug=-1,OS=function(){function n(t){var e=t.mappingMethod,r=t.type,i=this.option=on(t);this.type=r,this.mappingMethod=e,this._normalizeData=oY[e];var a=n.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(RS(i),iY(i)):e==="category"?i.categories?aY(i):RS(i,!0):(Ti(e!=="linear"||i.dataExtent),RS(i))}return n.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},n.prototype.getNormalizer=function(){return Ge(this._normalizeData,this)},n.listVisualTypes=function(){return Nn(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(t,e,r){rn(t)?mt(t,e,r):e.call(r,t)},n.mapVisual=function(t,e,r){var i,a=Se(t)?[]:rn(t)?{}:(i=!0,null);return n.eachVisual(t,function(o,s){var l=e.call(r,o,s);i?a=l:a[s]=l}),a},n.retrieveVisuals=function(t){var e={},r;return t&&Ph(n.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],r=!0)}),r?e:null},n.prepareVisualTypes=function(t){if(Se(t))t=t.slice();else if(rY(t)){var e=[];Ph(t,function(r,i){e.push(i)}),t=e}else return[];return t.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},n.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},n.findPieceIndex=function(t,e,r){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||je(l)&&l===t+"")return o;r&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,d=u.close;if(c){if(c[0]===-1/0){if(Kg(d[1],t,c[1]))return o}else if(c[1]===1/0){if(Kg(d[0],c[0],t))return o}else if(Kg(d[0],c[0],t)&&Kg(d[1],t,c[1]))return o;r&&h(c[0],o),r&&h(c[1],o)}}if(r)return t===1/0?e.length-1:t===-1/0?0:i;function h(f,p){var g=Math.abs(f-t);g<a&&(a=g,i=p)}},n.visualHandlers={color:{applyVisual:Ah("color"),getColorMapper:function(){var t=this.option;return Ge(t.mappingMethod==="category"?function(e,r){return!r&&(e=this._normalizeData(e)),Ih.call(this,e)}:function(e,r,i){var a=!!i;return!r&&(e=this._normalizeData(e)),i=Xm(e,t.parsedVisual,i),a?i:io(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return io(Xm(t,this.option.parsedVisual),"rgba")},category:Ih,piecewise:function(t,e){var r=BS.call(this,e);return r==null&&(r=io(Xm(t,this.option.parsedVisual),"rgba")),r},fixed:tu}},colorHue:Gg(function(t,e){return cd(t,e)}),colorSaturation:Gg(function(t,e){return cd(t,null,e)}),colorLightness:Gg(function(t,e){return cd(t,null,null,e)}),colorAlpha:Gg(function(t,e){return Wf(t,e)}),decal:{applyVisual:Ah("decal"),_normalizedToVisual:{linear:null,category:Ih,piecewise:null,fixed:null}},opacity:{applyVisual:Ah("opacity"),_normalizedToVisual:NS([0,1])},liftZ:{applyVisual:Ah("liftZ"),_normalizedToVisual:{linear:tu,category:tu,piecewise:tu,fixed:tu}},symbol:{applyVisual:function(t,e,r){var i=this.mapValueToVisual(t);r("symbol",i)},_normalizedToVisual:{linear:hE,category:Ih,piecewise:function(t,e){var r=BS.call(this,e);return r==null&&(r=hE.call(this,t)),r},fixed:tu}},symbolSize:{applyVisual:Ah("symbolSize"),_normalizedToVisual:NS([0,1])}},n}();function iY(n){var t=n.pieceList;n.hasSpecialVisual=!1,mt(t,function(e,r){e.originIndex=r,e.visual!=null&&(n.hasSpecialVisual=!0)})}function aY(n){var t=n.categories,e=n.categoryMap={},r=n.visual;if(Ph(t,function(o,s){e[o]=s}),!Se(r)){var i=[];rn(r)?Ph(r,function(o,s){var l=e[s];i[l!=null?l:Ug]=o}):i[Ug]=r,r=fE(n,i)}for(var a=t.length-1;a>=0;a--)r[a]==null&&(delete e[t[a]],t.pop())}function RS(n,t){var e=n.visual,r=[];rn(e)?Ph(e,function(a){r.push(a)}):e!=null&&r.push(e);var i={color:1,symbol:1};!t&&r.length===1&&!i.hasOwnProperty(n.type)&&(r[1]=r[0]),fE(n,r)}function Gg(n){return{applyVisual:function(t,e,r){var i=this.mapValueToVisual(t);r("color",n(e("color"),i))},_normalizedToVisual:NS([0,1])}}function hE(n){var t=this.option.visual;return t[Math.round(nr(n,[0,1],[0,t.length-1],!0))]||{}}function Ah(n){return function(t,e,r){r(n,this.mapValueToVisual(t))}}function Ih(n){var t=this.option.visual;return t[this.option.loop&&n!==Ug?n%t.length:n]}function tu(){return this.option.visual[0]}function NS(n){return{linear:function(t){return nr(t,n,this.option.visual,!0)},category:Ih,piecewise:function(t,e){var r=BS.call(this,e);return r==null&&(r=nr(t,n,this.option.visual,!0)),r},fixed:tu}}function BS(n){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var r=OS.findPieceIndex(n,e),i=e[r];if(i&&i.visual)return i.visual[this.type]}}function fE(n,t){return n.visual=t,n.type==="color"&&(n.parsedVisual=we(t,function(e){var r=zi(e);return r||[0,0,0,1]})),t}var oY={linear:function(n){return nr(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var t=this.option.pieceList,e=OS.findPieceIndex(n,t,!0);if(e!=null)return nr(e,[0,t.length-1],[0,1],!0)},category:function(n){var t=this.option.categories?this.option.categoryMap[n]:n;return t==null?Ug:t},fixed:Fr};function Kg(n,t,e){return n?t<=e:t<e}const fi=OS;function sY(n){n.eachSeriesByType("sankey",function(t){var e=t.getGraph(),r=e.nodes,i=e.edges;if(r.length){var a=1/0,o=-1/0;mt(r,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),mt(r,function(s){var l=new fi({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&mt(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function pE(n){n.registerChartView(OX),n.registerSeriesModel(VX),n.registerLayout(WX),n.registerVisual(sY),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var lY=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,r,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),h=a.get("type");if(h&&h!=="none"){var f=eS(a),p=cY[h](s,l,d,c);p.style=f,e.graphicKey=p.type,e.pointer=p}var g=a.get(["label","margin"]),v=uY(r,i,a,l,g);NP(e,i,a,o,v)},t}(tS);function uY(n,t,e,r,i){var a=t.axis,o=a.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(a.dim==="radius"){var h=ea();qs(h,h,s),no(h,h,[r.cx,r.cy]),u=Fa([o,-i],h);var f=t.getModel("axisLabel").get("rotate")||0,p=Zo.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+i,o]);var v=r.cx,y=r.cy;c=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var cY={line:function(n,t,e,r){return n.dim==="angle"?{type:"Line",shape:rS(t.coordToPoint([r[0],e]),t.coordToPoint([r[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(n,t,e,r){var i=Math.max(1,n.getBandWidth()),a=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:FP(t.cx,t.cy,r[0],r[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:FP(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const dY=lY;var hY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var r,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(r=a)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Jn);const fY=hY;var VS=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Kr).models[0]},t.type="polarAxis",t}(Jn);Wr(VS,_c);var pY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(VS),gY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(VS),WS=function(n){Zt(t,n);function t(e,r){return n.call(this,"radius",e,r)||this}return t.prototype.pointToData=function(e,r){return this.polar.pointToData(e,r)[this.dim==="radius"?0:1]},t}(Ga);WS.prototype.dataToRadius=Ga.prototype.dataToCoord,WS.prototype.radiusToData=Ga.prototype.coordToData;const vY=WS;var mY=Kn(),FS=function(n){Zt(t,n);function t(e,r){return n.call(this,"angle",e,r||[0,360])||this}return t.prototype.pointToData=function(e,r){return this.polar.pointToData(e,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,r=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),c=vd(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),h=d/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=mY(e.model),g=p.lastAutoInterval,v=p.lastTickCount;return g!=null&&v!=null&&Math.abs(g-f)<=1&&Math.abs(v-o)<=1&&g>f?f=g:(p.lastTickCount=o,p.lastAutoInterval=f),f},t}(Ga);FS.prototype.dataToAngle=Ga.prototype.dataToCoord,FS.prototype.angleToData=Ga.prototype.coordToData;const yY=FS;var gE=["radius","angle"],xY=function(){function n(t){this.dimensions=gE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new vY,this._angleAxis=new yY,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},n.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},n.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(t){var e=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===t&&e.push(r),i.scale.type===t&&e.push(i),e},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},n.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},n.prototype.pointToData=function(t,e){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],e),this._angleAxis.angleToData(r[1],e)]},n.prototype.pointToCoord=function(t){var e=t[0]-this.cx,r=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+r*r);e/=l,r/=l;for(var u=Math.atan2(-r,e)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(t){var e=t[0],r=t[1]/180*Math.PI,i=Math.cos(r)*e+this.cx,a=-Math.sin(r)*e+this.cy;return[i,a]},n.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),r=e.getExtent().slice();r[0]>r[1]&&r.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,h=this.r0;return c<=d*d&&c>=h*h}}},n.prototype.convertToPixel=function(t,e,r){var i=vE(e);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(t,e,r){var i=vE(e);return i===this?this.pointToData(r):null},n}();function vE(n){var t=n.seriesModel,e=n.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const SY=xY;function wY(n,t,e){var r=t.get("center"),i=e.getWidth(),a=e.getHeight();n.cx=Oe(r[0],i),n.cy=Oe(r[1],a);var o=n.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Se(l)||(l=[0,l]);var u=[Oe(l[0],s),Oe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function _Y(n,t){var e=this,r=e.getAngleAxis(),i=e.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();mt(xg(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),mt(xg(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),jl(r.scale,r.model),jl(i.scale,i.model),r.type==="category"&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function bY(n){return n.mainType==="angleAxis"}function mE(n,t){var e;if(n.type=t.get("type"),n.scale=uh(t),n.onBand=t.get("boundaryGap")&&n.type==="category",n.inverse=t.get("inverse"),bY(t)){n.inverse=n.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:r+(n.inverse?-360:360);n.setExtent(r,i)}t.axis=n,n.model=t}var CY={dimensions:gE,create:function(n,t){var e=[];return n.eachComponent("polar",function(r,i){var a=new SY(i+"");a.update=_Y;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");mE(o,l),mE(s,u),wY(a,r,t),e.push(a),r.coordinateSystem=a,a.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",Kr).models[0];r.coordinateSystem=i.coordinateSystem}}),e}};const MY=CY;var TY=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xg(n,t,e){t[1]>t[0]&&(t=t.slice().reverse());var r=n.coordToPoint([t[0],e]),i=n.coordToPoint([t[1],e]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function Yg(n){var t=n.getRadiusAxis();return t.inverse?0:1}function yE(n){var t=n[0],e=n[n.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&n.pop()}var DY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,r){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=we(i.getViewLabels(),function(c){c=on(c);var d=i.scale,h=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});yE(u),yE(s),mt(TY,function(c){e.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&kY[c](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Gl),kY={axisLine:function(n,t,e,r,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=Yg(e),d=c?0:1,h,f=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[d]===0?h=new Z[f]({shape:{cx:e.cx,cy:e.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new Rp({shape:{cx:e.cx,cy:e.cy,r:a[c],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,n.add(h)},axisTick:function(n,t,e,r,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Yg(e)],u=we(r,function(c){return new oi({shape:Xg(e,[l,l+s],c.coord)})});n.add(xa(u,{style:nn(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,e,r,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Yg(e)],c=[],d=0;d<i.length;d++)for(var h=0;h<i[d].length;h++)c.push(new oi({shape:Xg(e,[u,u+l],i[d][h].coord)}));n.add(xa(c,{style:nn(s.getModel("lineStyle").getLineStyle(),nn(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,t,e,r,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");mt(o,function(d,h){var f=l,p=d.tickValue,g=a[Yg(e)],v=e.coordToPoint([g+u,d.coord]),y=e.cx,x=e.cy,S=Math.abs(v[0]-y)/g<.3?"center":v[0]>y?"left":"right",_=Math.abs(v[1]-x)/g<.3?"middle":v[1]>x?"top":"bottom";if(s&&s[p]){var D=s[p];rn(D)&&D.textStyle&&(f=new pr(D.textStyle,l,l.ecModel))}var C=new Wn({silent:Zo.isLabelSilent(t),style:mr(f,{x:v[0],y:v[1],fill:f.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:S,verticalAlign:_})});if(n.add(C),c){var N=Zo.makeAxisEventDataBase(t);N.targetType="axisLabel",N.value=d.rawLabel,hn(C).eventData=N}},this)},splitLine:function(n,t,e,r,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d<r.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new oi({shape:Xg(e,a,r[d].coord)}))}for(var d=0;d<c.length;d++)n.add(xa(c[d],{style:nn({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(n,t,e,r,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new oi({shape:Xg(e,a,i[u][c].coord)}));n.add(xa(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(n,t,e,r,i,a){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=Math.PI/180,h=-r[0].coord*d,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),g=t.get("clockwise"),v=1,y=r.length;v<=y;v++){var x=v===y?r[0].coord:r[v].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new Gi({shape:{cx:e.cx,cy:e.cy,r0:f,r:p,startAngle:h,endAngle:-x*d,clockwise:g},silent:!0})),h=-x*d}for(var v=0;v<c.length;v++)n.add(xa(c[v],{style:nn({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const PY=DY;var AY=["axisLine","axisTickLabel","axisName"],IY=["splitLine","splitArea","minorSplitLine"],EY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,r){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new sn;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),d=l.getExtent()[0],h=o.getExtent(),f=OY(s,e,d),p=new Zo(e,f);mt(AY,p.add,p),a.add(p.getGroup()),Xd(i,a,e),mt(IY,function(g){e.get([g,"show"])&&!o.scale.isBlank()&&LY[g](this.group,e,s,d,h,u,c)},this)}},t.type="radiusAxis",t}(Gl),LY={splitLine:function(n,t,e,r,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=e.getAngleAxis(),d=Math.PI/180,h=c.getExtent(),f=Math.abs(h[1]-h[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],g=0;g<a.length;g++){var v=u++%l.length;p[v]=p[v]||[],p[v].push(new Z[f]({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[g].coord,0),startAngle:-h[0]*d,endAngle:-h[1]*d,clockwise:c.inverse}}))}for(var g=0;g<p.length;g++)n.add(xa(p[g],{style:nn({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,t,e,r,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)u.push(new Uo({shape:{cx:e.cx,cy:e.cy,r:o[c][d].coord}}));n.add(xa(u,{style:nn({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,t,e,r,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=a[0].coord,h=1;h<a.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new Gi({shape:{cx:e.cx,cy:e.cy,r0:d,r:a[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),d=a[h].coord}for(var h=0;h<c.length;h++)n.add(xa(c[h],{style:nn({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function OY(n,t,e){return{position:[n.cx,n.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const RY=EY;function xE(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function SE(n,t){return t.dim+n.model.componentIndex}function NY(n,t,e){var r={},i=BY(sr(t.getSeriesByType(n),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(n,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=SE(s,l),c=xE(a),d=i[u][c],h=d.offset,f=d.width,p=s.getOtherAxis(l),g=a.coordinateSystem.cx,v=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,x=a.get("barMinAngle")||0;r[c]=r[c]||[];for(var S=o.mapDimension(p.dim),_=o.mapDimension(l.dim),D=Ko(o,S),C=l.dim!=="radius"||!a.get("roundCap",!0),N=p.dataToCoord(0),q=0,et=o.count();q<et;q++){var lt=o.get(S,q),ft=o.get(_,q),_t=lt>=0?"p":"n",Ct=N;D&&(r[c][ft]||(r[c][ft]={p:N,n:N}),Ct=r[c][ft][_t]);var kt=void 0,Ot=void 0,Nt=void 0,Xt=void 0;if(p.dim==="radius"){var Vt=p.dataToCoord(lt)-N,Ut=l.dataToCoord(ft);Math.abs(Vt)<y&&(Vt=(Vt<0?-1:1)*y),kt=Ct,Ot=Ct+Vt,Nt=Ut-h,Xt=Nt-f,D&&(r[c][ft][_t]=Ot)}else{var Yt=p.dataToCoord(lt,C)-N,ue=l.dataToCoord(ft);Math.abs(Yt)<x&&(Yt=(Yt<0?-1:1)*x),kt=ue+h,Ot=kt+f,Nt=Ct,Xt=Ct+Yt,D&&(r[c][ft][_t]=Xt)}o.setItemLayout(q,{cx:g,cy:v,r0:kt,r:Ot,startAngle:-Nt*Math.PI/180,endAngle:-Xt*Math.PI/180,clockwise:Nt>=Xt})}}})}function BY(n){var t={};mt(n,function(r,i){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=SE(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),d=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=d.stacks;t[l]=d;var f=xE(r);h[f]||d.autoWidthCount++,h[f]=h[f]||{width:0,maxWidth:0};var p=Oe(r.get("barWidth"),c),g=Oe(r.get("barMaxWidth"),c),v=r.get("barGap"),y=r.get("barCategoryGap");p&&!h[f].width&&(p=Math.min(d.remainedWidth,p),h[f].width=p,d.remainedWidth-=p),g&&(h[f].maxWidth=g),v!=null&&(d.gap=v),y!=null&&(d.categoryGap=y)});var e={};return mt(t,function(r,i){e[i]={};var a=r.stacks,o=r.bandWidth,s=Oe(r.categoryGap,o),l=Oe(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),mt(a,function(g,v){var y=g.maxWidth;y&&y<d&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h=0,f;mt(a,function(g,v){g.width||(g.width=d),f=g,h+=g.width*(1+l)}),f&&(h-=f.width*l);var p=-h/2;mt(a,function(g,v){e[i][v]=e[i][v]||{offset:p,width:g.width},p+=g.width*(1+l)})}),e}const VY=NY;var WY={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},FY={splitNumber:5},jY=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Lr);function wE(n){_n(ph),Gl.registerAxisPointerClass("PolarAxisPointer",dY),n.registerCoordinateSystem("polar",MY),n.registerComponentModel(fY),n.registerComponentView(jY),bc(n,"angle",pY,WY),bc(n,"radius",gY,FY),n.registerComponentView(PY),n.registerComponentView(RY),n.registerLayout(xn(VY,"bar"))}_n(wE);var jS=Math.sin,zS=Math.cos,_E=Math.PI,eu=Math.PI*2,zY=180/_E,HY=function(){function n(){}return n.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},n.prototype.moveTo=function(t,e){this._add("M",t,e)},n.prototype.lineTo=function(t,e){this._add("L",t,e)},n.prototype.bezierCurveTo=function(t,e,r,i,a,o){this._add("C",t,e,r,i,a,o)},n.prototype.quadraticCurveTo=function(t,e,r,i){this._add("Q",t,e,r,i)},n.prototype.arc=function(t,e,r,i,a,o){this.ellipse(t,e,r,r,0,i,a,o)},n.prototype.ellipse=function(t,e,r,i,a,o,s,l){var u=s-o,c=!l,d=Math.abs(u),h=vs(d-eu)||(c?u>=eu:-u>=eu),f=u>0?u%eu:u%eu+eu,p=!1;h?p=!0:vs(d)?p=!1:p=f>=_E==!!c;var g=t+r*zS(o),v=e+i*jS(o);this._start&&this._add("M",g,v);var y=Math.round(a*zY);if(h){var x=1/this._p,S=(c?1:-1)*(eu-x);this._add("A",r,i,y,1,+c,t+r*zS(o+S),e+i*jS(o+S)),x>.01&&this._add("A",r,i,y,0,+c,g,v)}else{var _=t+r*zS(s),D=e+i*jS(s);this._add("A",r,i,y,+p,+c,_,D)}},n.prototype.rect=function(t,e,r,i){this._add("M",t,e),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(t,e,r,i,a,o,s,l,u){for(var c=[],d=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f)){this._invalid=!0;return}c.push(Math.round(f*d)/d)}this._d.push(t+c.join(" ")),this._start=t==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}();const bE=HY;var Eh="none",UY=Math.round;function GY(n){var t=n.fill;return t!=null&&t!==Eh}function KY(n){var t=n.stroke;return t!=null&&t!==Eh}var HS=["lineCap","miterLimit","lineJoin"],XY=we(HS,function(n){return"stroke-"+n.toLowerCase()});function YY(n,t,e,r){var i=t.opacity==null?1:t.opacity;if(e instanceof li){n("opacity",i);return}if(GY(t)){var a=hd(t.fill);n("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(r||o<1)&&n("fill-opacity",o)}else n("fill",Eh);if(KY(t)){var s=hd(t.stroke);n("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,d=t.strokeFirst;if((r||u!==1)&&n("stroke-width",u),(r||d)&&n("paint-order",d?"stroke":"fill"),(r||c<1)&&n("stroke-opacity",c),t.lineDash){var h=Jy(e),f=h[0],p=h[1];f&&(p=UY(p||0),n("stroke-dasharray",f.join(",")),(p||r)&&n("stroke-dashoffset",p))}else r&&n("stroke-dasharray",Eh);for(var g=0;g<HS.length;g++){var v=HS[g];if(r||t[v]!==op[v]){var y=t[v]||op[v];y&&n(XY[g],y)}}}else r&&n("stroke",Eh)}var CE="http://www.w3.org/2000/svg",ME="http://www.w3.org/1999/xlink",ZY="http://www.w3.org/2000/xmlns/",$Y="http://www.w3.org/XML/1998/namespace",TE="ecmeta_";function DE(n){return document.createElementNS(CE,n)}function ti(n,t,e,r,i){return{tag:n,attrs:e||{},children:r,text:i,key:t}}function JY(n,t){var e=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+n+" "+e.join(" ")+">"}function QY(n){return"</"+n+">"}function US(n,t){t=t||{};var e=t.newline?"\n":"";function r(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return JY(o,s)+(o!=="style"?ji(l):l||"")+(a?""+e+we(a,function(u){return r(u)}).join(e)+e:"")+QY(o)}return r(n)}function qY(n,t,e){e=e||{};var r=e.newline?"\n":"",i=" {"+r,a=r+"}",o=we(Nn(n),function(l){return l+i+we(Nn(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+a}).join(r),s=we(Nn(t),function(l){return"@keyframes "+l+i+we(Nn(t[l]),function(u){return u+i+we(Nn(t[l][u]),function(c){var d=t[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function GS(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kE(n,t,e,r){return ti("svg","root",{width:n,height:t,xmlns:CE,"xmlns:xlink":ME,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+t:!1},e)}var tZ=0;function PE(){return tZ++}var AE={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},nu="transform-origin";function eZ(n,t,e){var r=ye({},n.shape);ye(r,t),n.buildPath(e,r);var i=new bE;return i.reset(aC(n)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function nZ(n,t){var e=t.originX,r=t.originY;(e||r)&&(n[nu]=e+"px "+r+"px")}var rZ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function IE(n,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=n,e}function iZ(n,t,e){var r=n.shape.paths,i={},a,o;if(mt(r,function(l){var u=GS(e.zrId);u.animation=!0,Zg(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,h=Nn(c),f=h.length;if(f){o=h[f-1];var p=c[o];for(var g in p){var v=p[g];i[g]=i[g]||{d:""},i[g].d+=v.d||""}for(var y in d){var x=d[y].animation;x.indexOf(o)>=0&&(a=x)}}}),!!a){t.d=!1;var s=IE(i,e);return a.replace(o,s)}}function EE(n){return je(n)?AE[n]?"cubic-bezier("+AE[n]+")":jm(n)?n:"":""}function Zg(n,t,e,r){var i=n.animators,a=i.length,o=[];if(n instanceof Bp){var s=iZ(n,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],d=[c.getMaxTime()/1e3+"s"],h=EE(c.getClip().easing),f=c.getDelay();h?d.push(h):d.push("linear"),f&&d.push(f/1e3+"s"),c.getLoop()&&d.push("infinite");var p=d.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function g(x){var S=x[1],_=S.length,D={},C={},N={},q="animation-timing-function";function et(Ce,Ee,Ve){for(var Te=Ce.getTracks(),Be=Ce.getMaxTime(),tn=0;tn<Te.length;tn++){var Je=Te[tn];if(Je.needsAnimate()){var An=Je.keyframes,En=Je.propName;if(Ve&&(En=Ve(En)),En)for(var Cr=0;Cr<An.length;Cr++){var Mr=An[Cr],ir=Math.round(Mr.time/Be*100)+"%",ei=EE(Mr.easing),Br=Mr.rawValue;(je(Br)||$n(Br))&&(Ee[ir]=Ee[ir]||{},Ee[ir][En]=Mr.rawValue,ei&&(Ee[ir][q]=ei))}}}}for(var lt=0;lt<_;lt++){var ft=S[lt],_t=ft.targetName;_t?_t==="shape"&&et(ft,C):!r&&et(ft,D)}for(var Ct in D){var kt={};yC(kt,n),ye(kt,D[Ct]);var Ot=oC(kt),Nt=D[Ct][q];N[Ct]=Ot?{transform:Ot}:{},nZ(N[Ct],kt),Nt&&(N[Ct][q]=Nt)}var Xt,Vt=!0;for(var Ct in C){N[Ct]=N[Ct]||{};var Ut=!Xt,Nt=C[Ct][q];Ut&&(Xt=new ho);var Yt=Xt.len();Xt.reset(),N[Ct].d=eZ(n,C[Ct],Xt);var ue=Xt.len();if(!Ut&&Yt!==ue){Vt=!1;break}Nt&&(N[Ct][q]=Nt)}if(!Vt)for(var Ct in N)delete N[Ct].d;if(!r)for(var lt=0;lt<_;lt++){var ft=S[lt],_t=ft.targetName;_t==="style"&&et(ft,N,function(Te){return rZ[Te]})}for(var ie=Nn(N),Gt=!0,Qt,lt=1;lt<ie.length;lt++){var me=ie[lt-1],De=ie[lt];if(N[me][nu]!==N[De][nu]){Gt=!1;break}Qt=N[me][nu]}if(Gt&&Qt){for(var Ct in N)N[Ct][nu]&&delete N[Ct][nu];t[nu]=Qt}if(sr(ie,function(Ce){return Nn(N[Ce]).length>0}).length){var Pe=IE(N,e);return Pe+" "+x[0]+" both"}}for(var v in l){var s=g(l[v]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+PE();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function aZ(n,t,e){if(!n.ignore)if(n.isSilent()){var r={"pointer-events":"none"};LE(r,t,e,!0)}else{var i=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},a=i.fill;if(!a){var o=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||o;l&&(a=Ym(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&n.transform?n.transform[0]:1;u=u/c}var r={cursor:"pointer"};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),LE(r,t,e,!0)}}function LE(n,t,e,r){var i=JSON.stringify(n),a=e.cssStyleCache[i];a||(a=e.zrId+"-cls-"+PE(),e.cssStyleCache[i]=a,e.cssNodes["."+a+(r?":hover":"")]=n),t.class=t.class?t.class+" "+a:a}var Lh=Math.round;function OE(n){return n&&je(n.src)}function RE(n){return n&&qe(n.toDataURL)}function KS(n,t,e,r){YY(function(i,a){var o=i==="fill"||i==="stroke";o&&iC(a)?jE(t,n,i,r):o&&$m(a)?zE(e,n,i,r):o&&a==="none"?n[i]="transparent":n[i]=a},t,e,!1),hZ(e,n,r)}function XS(n,t){var e=lW(t);e&&(e.each(function(r,i){r!=null&&(n[(TE+i).toLowerCase()]=r+"")}),t.isSilent()&&(n[TE+"silent"]="true"))}function NE(n){return vs(n[0]-1)&&vs(n[1])&&vs(n[2])&&vs(n[3]-1)}function oZ(n){return vs(n[4])&&vs(n[5])}function YS(n,t,e){if(t&&!(oZ(t)&&NE(t))){var r=e?10:1e4;n.transform=NE(t)?"translate("+Lh(t[4]*r)/r+" "+Lh(t[5]*r)/r+")":DV(t)}}function BE(n,t,e){for(var r=n.points,i=[],a=0;a<r.length;a++)i.push(Lh(r[a][0]*e)/e),i.push(Lh(r[a][1]*e)/e);t.points=i.join(" ")}function VE(n){return!n.smooth}function sZ(n){var t=we(n,function(e){return typeof e=="string"?[e,e]:e});return function(e,r,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(r[o[1]]=Lh(s*i)/i)}}}var lZ={circle:[sZ(["cx","cy","r"])],polyline:[BE,VE],polygon:[BE,VE]};function uZ(n){for(var t=n.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function WE(n,t){var e=n.style,r=n.shape,i=lZ[n.type],a={},o=t.animation,s="path",l=n.style.strokePercent,u=t.compress&&aC(n)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&uZ(n))&&!(l<1)){s=n.type;var c=Math.pow(10,u);i[0](r,a,c)}else{var d=!n.path||n.shapeChanged();n.path||n.createPathProxy();var h=n.path;d&&(h.beginPath(),n.buildPath(h,n.shape),n.pathUpdated());var f=h.getVersion(),p=n,g=p.__svgPathBuilder;(p.__svgPathVersion!==f||!g||l!==p.__svgPathStrokePercent)&&(g||(g=p.__svgPathBuilder=new bE),g.reset(u),h.rebuildPath(g,l),g.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=l),a.d=g.getStr()}return YS(a,n.transform),KS(a,e,n,t),XS(a,n),t.animation&&Zg(n,a,t),t.emphasis&&aZ(n,a,t),ti(s,n.id+"",a)}function cZ(n,t){var e=n.style,r=e.image;if(r&&!je(r)&&(OE(r)?r=r.src:RE(r)&&(r=r.toDataURL())),!!r){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:r,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),YS(l,n.transform),KS(l,e,n,t),XS(l,n),t.animation&&Zg(n,l,t),ti("image",n.id+"",l)}}function dZ(n,t){var e=n.style,r=e.text;if(r!=null&&(r+=""),!(!r||isNaN(e.x)||isNaN(e.y))){var i=e.font||ls,a=e.x||0,o=PV(e.y||0,$f(i),e.textBaseline),s=kV[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(vM(e)){var u="",c=e.fontStyle,d=pM(e.fontSize);if(!parseFloat(d))return;var h=e.fontFamily||gb,f=e.fontWeight;u+="font-size:"+d+";font-family:"+h+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),f&&f!=="normal"&&(u+="font-weight:"+f+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),YS(l,n.transform),KS(l,e,n,t),XS(l,n),t.animation&&Zg(n,l,t),ti("text",n.id+"",l,void 0,r)}}function FE(n,t){if(n instanceof In)return WE(n,t);if(n instanceof li)return cZ(n,t);if(n instanceof Md)return dZ(n,t)}function hZ(n,t,e){var r=n.style;if(AV(r)){var i=IV(n),a=e.shadowCache,o=a[i];if(!o){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,d=r.shadowOffsetY||0,h=r.shadowBlur,f=hd(r.shadowColor),p=f.opacity,g=f.color,v=h/2/l,y=h/2/u,x=v+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=ti("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ti("feDropShadow","",{dx:c/l,dy:d/u,stdDeviation:x,"flood-color":g,"flood-opacity":p})]),a[i]=o}t.filter=zf(o)}}function jE(n,t,e,r){var i=n[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(nC(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(rC(i))a="radialGradient",o.cx=pn(i.x,.5),o.cy=pn(i.y,.5),o.r=pn(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var d=Zm(s[u].offset)*100+"%",h=s[u].color,f=hd(h),p=f.color,g=f.opacity,v={offset:d};v["stop-color"]=p,g<1&&(v["stop-opacity"]=g),l.push(ti("stop",u+"",v))}var y=ti(a,"",o,l),x=US(y),S=r.gradientCache,_=S[x];_||(_=r.zrId+"-g"+r.gradientIdx++,S[x]=_,o.id=_,r.defs[_]=ti(a,_,o,l)),t[e]=zf(_)}function zE(n,t,e,r){var i=n.style[e],a=n.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",d;if(eC(i)){var h=i.imageWidth,f=i.imageHeight,p=void 0,g=i.image;if(je(g)?p=g:OE(g)?p=g.src:RE(g)&&(p=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";Ti(h,v),Ti(f,v)}else if(h==null||f==null){var y=function(lt,ft){if(lt){var _t=lt.elm,Ct=h||ft.width,kt=f||ft.height;lt.tag==="pattern"&&(u?(kt=1,Ct/=a.width):c&&(Ct=1,kt/=a.height)),lt.attrs.width=Ct,lt.attrs.height=kt,_t&&(_t.setAttribute("width",Ct),_t.setAttribute("height",kt))}},x=T0(p,null,n,function(lt){l||y(C,lt),y(d,lt)});x&&x.width&&x.height&&(h=h||x.width,f=f||x.height)}d=ti("image","img",{href:p,width:h,height:f}),o.width=h,o.height=f}else i.svgElement&&(d=on(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var S,_;l?S=_=1:u?(_=1,S=o.width/a.width):c?(S=1,_=o.height/a.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),_!=null&&!isNaN(_)&&(o.height=_);var D=oC(i);D&&(o.patternTransform=D);var C=ti("pattern","",o,[d]),N=US(C),q=r.patternCache,et=q[N];et||(et=r.zrId+"-p"+r.patternIdx++,q[N]=et,o.id=et,C=r.defs[et]=ti("pattern",et,o,[d])),t[e]=zf(et)}}function fZ(n,t,e){var r=e.clipPathCache,i=e.defs,a=r[n.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};r[n.id]=a,i[a]=ti("clipPath",a,o,[WE(n,e)])}t["clip-path"]=zf(a)}function HE(n){return document.createTextNode(n)}function uht(n){return document.createComment(n)}function ru(n,t,e){n.insertBefore(t,e)}function UE(n,t){n.removeChild(t)}function GE(n,t){n.appendChild(t)}function KE(n){return n.parentNode}function XE(n){return n.nextSibling}function cht(n){return n.tagName}function ZS(n,t){n.textContent=t}function dht(n){return n.textContent}function hht(n){return n.nodeType===1}function fht(n){return n.nodeType===3}function pht(n){return n.nodeType===8}var YE=58,pZ=120,gZ=ti("","");function $S(n){return n===void 0}function wo(n){return n!==void 0}function vZ(n,t,e){for(var r={},i=t;i<=e;++i){var a=n[i].key;a!==void 0&&(r[a]=i)}return r}function Oh(n,t){var e=n.key===t.key,r=n.tag===t.tag;return r&&e}function Rh(n){var t,e=n.children,r=n.tag;if(wo(r)){var i=n.elm=DE(r);if(JS(gZ,n),Se(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&GE(i,Rh(a))}else wo(n.text)&&!rn(n.text)&&GE(i,HE(n.text))}else n.elm=HE(n.text);return n.elm}function ZE(n,t,e,r,i){for(;r<=i;++r){var a=e[r];a!=null&&ru(n,Rh(a),t)}}function $g(n,t,e,r){for(;e<=r;++e){var i=t[e];if(i!=null)if(wo(i.tag)){var a=KE(i.elm);UE(a,i.elm)}else UE(n,i.elm)}}function JS(n,t){var e,r=t.elm,i=n&&n.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?r.setAttribute(e,""):o===!1?r.removeAttribute(e):e==="style"?r.style.cssText=o:e.charCodeAt(0)!==pZ?r.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?r.setAttributeNS(ZY,e,o):e.charCodeAt(3)===YE?r.setAttributeNS($Y,e,o):e.charCodeAt(5)===YE?r.setAttributeNS(ME,e,o):r.setAttribute(e,o))}for(e in i)e in a||r.removeAttribute(e)}}function mZ(n,t,e){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],c=e[l],d,h,f,p;r<=a&&i<=l;)o==null?o=t[++r]:s==null?s=t[--a]:u==null?u=e[++i]:c==null?c=e[--l]:Oh(o,u)?(Pc(o,u),o=t[++r],u=e[++i]):Oh(s,c)?(Pc(s,c),s=t[--a],c=e[--l]):Oh(o,c)?(Pc(o,c),ru(n,o.elm,XE(s.elm)),o=t[++r],c=e[--l]):Oh(s,u)?(Pc(s,u),ru(n,s.elm,o.elm),s=t[--a],u=e[++i]):($S(d)&&(d=vZ(t,r,a)),h=d[u.key],$S(h)?ru(n,Rh(u),o.elm):(f=t[h],f.tag!==u.tag?ru(n,Rh(u),o.elm):(Pc(f,u),t[h]=void 0,ru(n,f.elm,o.elm))),u=e[++i]);(r<=a||i<=l)&&(r>a?(p=e[l+1]==null?null:e[l+1].elm,ZE(n,p,e,i,l)):$g(n,t,r,a))}function Pc(n,t){var e=t.elm=n.elm,r=n.children,i=t.children;n!==t&&(JS(n,t),$S(t.text)?wo(r)&&wo(i)?r!==i&&mZ(e,r,i):wo(i)?(wo(n.text)&&ZS(e,""),ZE(e,null,i,0,i.length-1)):wo(r)?$g(e,r,0,r.length-1):wo(n.text)&&ZS(e,""):n.text!==t.text&&(wo(r)&&$g(e,r,0,r.length-1),ZS(e,t.text)))}function yZ(n,t){if(Oh(n,t))Pc(n,t);else{var e=n.elm,r=KE(e);Rh(t),r!==null&&(ru(r,t.elm,XE(e)),$g(r,[n],0,0))}return t}var xZ=0,SZ=function(){function n(t,e,r){if(this.type="svg",this.refreshHover=$E("refreshHover"),this.configLayer=$E("configLayer"),this.storage=e,this._opts=r=ye({},r),this.root=t,this._id="zr"+xZ++,this._oldVNode=kE(r.width,r.height),t&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=DE("svg");JS(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",yZ(this._oldVNode,t),this._oldVNode=t}},n.prototype.renderOneToVNode=function(t){return FE(t,GS(this._id))},n.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=GS(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=wZ(r,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=ti("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=we(Nn(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(ti("defs","defs",{},u)),t.animation){var c=qY(a.cssNodes,a.cssAnims,{newline:!0});if(c){var d=ti("style","stl",{},[],c);o.push(d)}}return kE(r,i,o,t.useViewBox)},n.prototype.renderToString=function(t){return t=t||{},US(this.renderToVNode({animation:pn(t.cssAnimation,!0),emphasis:pn(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:pn(t.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(t,e,r){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var d=t[c];if(!d.invisible){var h=d.__clipPaths,f=h&&h.length||0,p=l&&l.length||0,g=void 0;for(g=Math.max(f-1,p-1);g>=0&&!(h&&l&&h[g]===l[g]);g--);for(var v=p-1;v>g;v--)o--,s=a[o-1];for(var y=g+1;y<f;y++){var x={};fZ(h[y],x,e);var S=ti("g","clip-g-"+u++,x,[]);(s?s.children:r).push(S),a[o++]=S,s=S}l=h;var _=FE(d,e);_&&(s?s.children:r).push(_)}}},n.prototype.resize=function(t,e){var r=this._opts,i=this.root,a=this._viewport;if(t!=null&&(r.width=t),e!=null&&(r.height=e),i&&a&&(a.style.display="none",t=mc(i,0,r),e=mc(i,1,r),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if($m(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(t){var e=this.renderToString(),r="data:image/svg+xml;";return t?(e=LV(e),e&&r+"base64,"+e):r+"charset=UTF-8,"+encodeURIComponent(e)},n}();function $E(n){return function(){}}function wZ(n,t,e,r){var i;if(e&&e!=="none")if(i=ti("rect","bg",{width:n,height:t,x:"0",y:"0"}),iC(e))jE({fill:e},i.attrs,"fill",r);else if($m(e))zE({style:{fill:e},dirty:Fr,getBoundingRect:function(){return{width:n,height:t}}},i.attrs,"fill",r);else{var a=hd(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const _Z=SZ;function JE(n){n.registerPainter("svg",_Z)}var We=w(39541),_o=w(30954),dr=w(86688);const bZ=["\u4E0A\u8FB9\u7F18","\u4E0A\u56DB\u5206\u4F4D\u6570","\u4E2D\u4F4D\u6570","\u4E0B\u56DB\u5206\u4F4D\u6570","\u4E0B\u8FB9\u7F18"],QE=(n,t)=>{const{chartConfig:e,chartData:{xAxis:r,series:i}}=n,{prefix:a,suffix:o,chartCategory:s,isShowToolTip:l,chartType:u,foregroundColor:c,toolTipStyle:d,chartTheme:h}=e,{prefixStr:f,suffixStr:p}=(0,_o.I)({prefix:a,suffix:o});let g={};switch(u){case We.N.bar_chart:case We.N.horizontal_bar_chart:case We.N.line_chart:case We.N.line_area_chart:case We.N.mixed_bar_line_chart:g={trigger:"axis",axisPointer:{type:"shadow"},formatter:v=>{let y=v[0].name;for(let x=0,S=v.length;x<S;x++)y+="<br/>"+v[x].marker+v[x].seriesName+"\xA0\xA0\xA0\xA0\xA0"+f+(s==="accPer"?Math.floor(v[x].value):v[x].value)+(""+(s==="accPer"?"%":p));return y}};break;case We.N.pie_chart:case We.N.ring_chart:case We.N.nightingale_chart:g={formatter:v=>v.marker+v.name+"\xA0\xA0\xA0\xA0\xA0"+f+v.value+p};break;case We.N.progress_chart:g={formatter:v=>{let{value:y}=v;return y+"%"}};break;case We.N.radar_chart:g={formatter:v=>{let y=v.name;for(let x=0,S=v.value.length;x<S;x++)y+="<br/>"+v.marker+r[x]+"\xA0\xA0\xA0\xA0\xA0"+f+v.value[x]+p;return y}};break;case We.N.waterfall_chart:g={trigger:"axis",axisPointer:{type:"shadow"},formatter:v=>{if(v.length<=1)return"";const[y,x,S,_,D]=v,C=_t=>isNaN(Number(_t))?0:Math.abs(Number(_t)),N=C(x.value)+C(S.value),q=C(_==null?void 0:_.value)+C(D==null?void 0:D.value),et=N>0?x.marker:q>0?_==null?void 0:_.marker:"",lt=N>0?x.seriesName:q>0?_==null?void 0:_.seriesName:"",ft=N>0?N:q>0?q:0;return!et||!lt?"":y.name+"<br/>"+et+lt+"\xA0\xA0\xA0\xA0\xA0"+f+ft+p}};break;case We.N.scatter_chart:case We.N.bubble_chart:g={formatter:function(v){return v.marker+v.seriesName+"<br/>"+v.data.map((y,x)=>{var S;return x===((S=v.data)==null?void 0:S.length)-1?r[x]+": "+f+y+p:r[x]+": "+y}).join("<br/>")}};break;case We.N.gauge_chart:g={formatter:v=>f+v.value+p,borderColor:(0,P.t0)(c)};break;case We.N.map_chart:g={trigger:"item",formatter:v=>{let y="";const{data:x}=t.getOption().series[0];for(const S of x)if(v.name===S.name){y+=S.name+"<br>";for(const _ of S.value)y+=_.name+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+_.value+"<br>"}return y},backgroundColor:(0,P.t0)(d.bgColor),borderColor:(0,P.t0)(d.bdrColor),borderWidth:d.bdrWidth,textStyle:{color:(0,P.t0)(d.textColor),fontSize:d.fontSize}};break;case We.N.radial_polar_chart:g={formatter:v=>v.marker+v.seriesName+"<br/>"+v.name+":\xA0\xA0"+f+(s==="accPer"?Math.floor(v.value):v.value)+(""+(s==="accPer"?"%":p))};break;case We.N.sunburst_chart:g={formatter:v=>{const y=v.treePathInfo.findIndex(_=>_.dataIndex===v.dataIndex),x=r[y-1],S=r[r.length-1];return(x?v.marker+x+":\xA0\xA0"+v.name+"<br/>":"")+S+":\xA0\xA0"+f+v.value+p}};break;case We.N.word_cloud_chart:g={formatter:v=>v.marker+r[0]+":\xA0\xA0"+v.name+"<br/>"+r[1]+":\xA0\xA0"+f+v.value+p};break;case We.N.boxplot_chart:g={formatter:v=>{var y;const x='<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,dr.tp)({theme:h,color:(y=i[0])==null?void 0:y.color,index:0})+';"></span>';if(v.seriesType==="scatter"){var S;const _=(S=v.value)!=null&&S.length?v.value[v.value.length-1]:"";return x+v.name+"<br/>\u79BB\u7FA4\u503C:\xA0\xA0"+f+_+p}return x+v.name+v.data.slice(1).reverse().map((_,D)=>"<br/>"+bZ[D]+":\xA0\xA0"+f+_+p).join("")}};break;case We.N.sankey_chart:g={formatter:v=>{const y=r[2];if(v.dataType==="edge")return v.data.source+" \u2192 "+v.data.target+"<br/>"+y+":\xA0\xA0"+f+v.value+p;if(v.dataType==="node")return v.marker+v.data.name+"<br/>"+y+":\xA0\xA0"+f+v.value+p}};break;case We.N.liquid_fill_gauge_chart:g={formatter:v=>{var y;return'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,dr.tp)({theme:h,color:(y=i[v.dataIndex])==null?void 0:y.color,index:v.dataIndex})+';"></span>'+v.value}};break;default:g={};break}return{tooltip:{show:l,borderColor:"transparent",...g}}};var _i=w(3664);const CZ=n=>{const t=n[0].data.map(s=>isNaN(Number(s))?0:Number(s)),e=[],r=[],i=[],a=[],o=[];for(let s=0,l=0;s<t.length;s++){if(t[s]===0){e.push(0),r.push("-"),i.push("-"),a.push("-"),o.push("-");continue}const u=l+t[s];l>0?u>0?t[s]>0?(e.push(l),r.push(t[s]),i.push("-"),a.push("-"),o.push("-")):(e.push(u),r.push("-"),i.push("-"),a.push("-"),o.push(-t[s])):u<0?(e.push(0),r.push("-"),i.push("-"),a.push(l),o.push(u)):(e.push(0),r.push("-"),i.push("-"),a.push("-"),o.push(l)):l<0?u>0?(e.push(0),r.push(u),i.push(l),a.push("-"),o.push("-")):u<0?t[s]<0?(e.push(l),r.push("-"),i.push("-"),a.push("-"),o.push(u-l)):(e.push(u),r.push(l-u),i.push("-"),a.push("-"),o.push("-")):(e.push(0),r.push(-Math.abs(l)),i.push("-"),a.push("-"),o.push("-")):(e.push(0),t[s]>0?(r.push(t[s]),i.push("-"),a.push("-"),o.push("-")):(r.push("-"),i.push("-"),a.push("-"),o.push(t[s]))),l+=t[s]}return{placeholder:e,in1:r,in2:i,out1:a,out2:o}},MZ=n=>{let{data:t,theme:e,label:r,unit:i,barCategoryGap:a}=n;const{prefixStr:o,suffixStr:s}=(0,_o.I)(i),{placeholder:l,in1:u,in2:c,out1:d,out2:h}=CZ(t),{isVisible:f,textStyle:{fontSize:p}}=r,g=t[0].name,v=t[1].name,y=(0,_i.qy)((0,dr.tp)({theme:e,color:t[0].color,index:0})),x=(0,_i.qy)((0,dr.tp)({theme:e,color:t[1].color,index:1}));return[{type:"bar",stack:"total",itemStyle:{borderColor:"transparent",color:"transparent"},emphasis:{itemStyle:{borderColor:"transparent",color:"transparent"}},data:l},{data:u,type:"bar",name:g,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:y},label:{show:f,formatter:S=>{const _=S.dataIndex;if(u[_]!=="-"){const D=Math.abs(u[_]),C=Math.abs(c[_]==="-"?0:c[_]);return""+o+(D+C)+s}else return""},position:"top",color:y,fontSize:p}},{data:c,type:"bar",name:g,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:y},label:{show:!1}},{data:d,type:"bar",name:v,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:x},label:{show:!1}},{data:h,type:"bar",name:v,barCategoryGap:100-a+"%",stack:"total",itemStyle:{color:x},label:{show:f,formatter:S=>{const _=S.dataIndex;if(h[_]!=="-"){const D=Math.abs(d[_]==="-"?0:d[_]),C=h[_];return""+o+Math.abs(D-C)+s}else return""},position:"bottom",color:x,fontSize:p}}]},TZ=n=>{let{data:t,bubbleRadius:e,theme:r}=n;return t.map((i,a)=>({type:"scatter",name:i.name,symbolSize:e,data:i.data,itemStyle:{color:(0,dr.tp)({theme:r,color:i.color,index:a})}}))},DZ=n=>{let{data:t,label:e,theme:r}=n;const{isVisible:i,textStyle:{fontSize:a,color:o}}=e;return[{type:"funnel",data:t.map((l,u)=>({...l,index:u})).sort((l,u)=>Number(u.data[0])-Number(l.data[0])).map((l,u)=>({value:l.data,name:l.name,originIndex:l.index,color:l.color})),gap:2,label:{show:i,position:"inside",fontSize:a,color:(0,P.t0)(o)},itemStyle:{borderColor:"transparent",color:l=>{const{color:u,originIndex:c}=l.data;return(0,_i.qy)((0,dr.tp)({theme:r,color:u,index:c}))}},emphasis:{scale:!1},sort:"descending",left:"center",top:"middle",width:"80%",height:"80%",animationEasing:"elasticOut",animationDelay:function(l){return l*100},animationDuration:function(l){return l*100}}]},kZ=n=>{let{progress:t,unit:e,foregroundColor:r,backgroundColor:i,minNum:a,maxNum:o,canRunChartAnimation:s,label:l,labelText:u}=n;const{prefixStr:c,suffixStr:d}=(0,_o.I)(e),{textStyle:h}=(0,dr.$y)(l.textStyle),{textStyle:f}=(0,dr.$y)(u.textStyle);return[{type:"gauge",radius:"100%",center:["50%","50%"],progress:{show:!0,itemStyle:{color:(0,P.t0)(r)}},detail:{show:l.isVisible,...h,valueAnimation:s,formatter:p=>""+c+p+d},data:[{value:t,name:""}],min:a,max:o,axisLine:{lineStyle:{color:[[(t-a)/(o-a),(0,P.t0)(r)],[1,(0,P.t0)(i)]]}},axisLabel:{show:u.isVisible,...f},pointer:{show:!0,itemStyle:{color:(0,P.t0)(r)}}}]},PZ=n=>{var t;let{data:e,label:r,theme:i,canRunChartAnimation:a}=n;const{isVisible:o,textStyle:{fontSize:s,color:l}}=r;return[{type:"liquidFill",center:["50%","50%"],radius:"95%",data:e.map(u=>{let{data:c}=u;return c[0]}),label:{show:o,fontSize:s,color:(0,P.t0)(l)},color:e.map((u,c)=>{let{color:d}=u;return(0,_i.qy)((0,dr.tp)({theme:i,color:d,index:c}))}),outline:{show:!0,itemStyle:{borderColor:(0,dr.tp)({theme:i,color:(t=e[0])==null?void 0:t.color,index:0}),shadowBlur:0}},backgroundStyle:{shadowBlur:0},itemStyle:{shadowBlur:0},waveAnimation:a}]};var QS=w(69447);const AZ=n=>{const{chartConfig:{isShowAxis:t,grid:e,hoverStyle:r,mapAdCode:i,chartTheme:a,mapSolidColor:o},textV0:s,chartData:l}=n,u=a!==0,c=l.series.length,d=QS.JD.get(String(i)).map((h,f)=>{const p=l.xAxis.map((g,v)=>({name:g,value:l.series[f%c].data[v]}));return{name:h,value:p,itemStyle:{areaColor:u?(0,P.t0)(o):(0,P.t0)(l.series[f%c].color||QS.Fy[f%QS.Fy.length])}}});return[{type:"map",map:"MAP_CHART",select:{itemStyle:{areaColor:(0,P.t0)(r.bgColor)}},label:{show:t,color:(0,P.t0)(s.textColor),fontSize:s.fontSize},itemStyle:{borderColor:(0,P.t0)(e.bdrColor)},emphasis:{label:{show:!0,color:(0,P.t0)(r.textColor),fontSize:r.fontSize},itemStyle:{areaColor:(0,P.t0)(r.bgColor),borderColor:(0,P.t0)(r.bdrColor)}},data:d}]},qS={bar_chart:"bar",horizontal_bar_chart:"bar",line_chart:"line",line_area_chart:"line",pie_chart:"pie",ring_chart:"pie",progress_chart:"pie",nightingale_chart:"pie",radar_chart:"radar"},Jg={x:{left:"60%",right:"40%",center:"50%"},y:{top:"60%",bottom:"50%",center:"50%"}},tw=(n,t)=>{const r=n.map(i=>i.data).reduce((i,a)=>i.map((o,s)=>Math.abs(parseFloat(o))+Math.abs(parseFloat(a[s]))||0));return t.map((i,a)=>(parseFloat(i)||0)/r[a]*100)},IZ=n=>{let{data:t,type:e,theme:r,category:i,smooth:a,label:o,unit:s,barCategoryGap:l}=n;const{prefixStr:u,suffixStr:c}=(0,_o.I)(s),{isVisible:d,textStyle:{fontSize:h}}=o;return t.map((f,p)=>{const g=e==="line_area_chart"?{opacity:.2,color:(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))}:{color:"transparent"},v=i==="accPer"?tw(t,f.data):f.data,y=(e==="bar_chart"||e==="horizontal_bar_chart")&&(i==="acc"||i==="accPer");return{data:v,type:qS[e],name:f.name,smooth:a,barCategoryGap:100-l+"%",barGap:0,itemStyle:{color:(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))},areaStyle:g,label:{show:d,formatter:x=>{let{value:S}=x;return""+u+(i==="accPer"?Math.floor(S):S)+(i==="accPer"?"%":c)},position:y?"":e==="horizontal_bar_chart"?"right":"top",fontSize:h,color:y?"rgba(255, 255, 255, 1)":(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))},...i!=="group"?{stack:"total"}:{}}})};var bo=w(54635);const EZ=n=>{let{data:t,theme:e,type:r,legend:i,label:a,borderRadius:o,innerRadius:s,unit:l}=n;const{prefixStr:u,suffixStr:c}=(0,_o.I)(l),{isVisible:d,textStyle:{fontSize:h,color:f}}=a,p={borderRadius:o},g=(0,bo.sG)(i),v=!d&&!g.isVisible,y=r===We.N.ring_chart?v?[s+"%","100%"]:d&&g.isVisible?[.6*s+"%","60%"]:[.75*s+"%","75%"]:r===We.N.nightingale_chart?v?[s+"%","100%"]:[s+"%","75%"]:v?"100%":"75%",x=r===We.N.nightingale_chart?{roseType:"area"}:{};return[{data:t.map((S,_)=>({value:S.data,name:S.name,itemStyle:{color:(0,_i.qy)((0,dr.tp)({theme:e,color:S.color,index:_})),...p}})),label:{show:d,fontSize:h,color:(0,P.t0)(f),formatter:S=>{let{name:_,value:D}=S;return[_,"{data|"+u+D[0]+c+"}"].join("\n")},rich:{data:{align:"left",fontSize:(h||12)+"px"}}},labelLine:{length:5,show:d},emphasis:{scale:!1},radius:y,center:g.isVisible?[Jg.x[g.x],"50%"]:["50%","50%"],type:qS[r],name:t.name,stack:"total",barCategoryGap:"50%",width:"100%",height:"100%",...x}]},LZ=n=>{let{progress:t,innerRadius:e,foregroundColor:r,backgroundColor:i,label:a}=n;const{progressNum:o,progressRadius:s,progressColor:l,progressBackground:u}=(0,bo.dQ)({progress:t,innerRadius:e,foregroundColor:r,backgroundColor:i}),{textStyle:c}=(0,dr.$y)(a.textStyle);return{name:"",type:"pie",radius:[s+"%","100%"],label:{show:a.isVisible,position:"center",...c},labelLine:{show:!1},emphasis:{disabled:!0},data:[{value:o,name:o+"%",itemStyle:{color:l}},{value:100-o,name:o+"%",itemStyle:{color:u}}]}},OZ=n=>{let{data:t,theme:e,type:r,label:i,unit:a}=n;const{prefixStr:o,suffixStr:s}=(0,_o.I)(a),{isVisible:l,textStyle:{fontSize:u}}=i;return[{data:t.map((c,d)=>({value:c.data,name:c.name,itemStyle:{color:(0,_i.qy)((0,dr.tp)({theme:e,color:c.color,index:d}))},label:{show:l,formatter:h=>{let{value:f}=h;return""+o+f+s},fontSize:u,color:(0,_i.qy)((0,dr.tp)({theme:e,color:c.color,index:d}))}})),type:qS[r]}]},RZ=n=>{let{data:t,type:e,theme:r,category:i,smooth:a,label:o,unit:s,barCategoryGap:l}=n;const{prefixStr:u,suffixStr:c}=(0,_o.I)(s),{isVisible:d,textStyle:{fontSize:h}}=o;return t.map((f,p)=>{let g;if(!f.type)g=p===t.length-1;else{var v,y;g=(v=(y=f.type)==null?void 0:y.includes("line"))!=null?v:!1}const x=g?"line":"bar",S=e===We.N.line_area_chart?{opacity:.2,color:(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))}:{color:"transparent"},_=i==="accPer"?tw(t,f.data):f.data,D=(e===We.N.bar_chart||e===We.N.horizontal_bar_chart)&&(i==="acc"||i==="accPer");return{data:_,type:x,name:f.name,yAxisIndex:g?1:0,smooth:a,barCategoryGap:100-l+"%",barGap:0,itemStyle:{color:(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))},areaStyle:S,label:{show:d,formatter:C=>{let{value:N}=C;return""+u+(i==="accPer"?Math.floor(N):N)+(i==="accPer"?"%":c)},position:D?"":e===We.N.horizontal_bar_chart?"right":"top",fontSize:h,color:D?"rgba(255, 255, 255, 1)":(0,_i.qy)((0,dr.tp)({theme:r,color:f.color,index:p}))},...i!=="group"?{stack:"total"}:{}}})},NZ=n=>{let{data:t,theme:e,minBubbleRadius:r,maxBubbleRadius:i}=n;const a=t.map(u=>u.data.map(c=>c[2])).flat(),o=Math.min(...a),l=Math.max(...a)-o;return t.map((u,c)=>({type:"scatter",name:u.name,symbolSize:d=>(d[2]-o)/l*(i-r)+r,data:u.data,itemStyle:{color:(0,dr.tp)({theme:e,color:u.color,index:c})}}))},BZ=n=>{let{data:t,theme:e,category:r,label:i,unit:a}=n;const{prefixStr:o,suffixStr:s}=(0,_o.I)(a);return t.map((l,u)=>({data:r==="accPer"?tw(t,l.data):l.data,type:"bar",name:l.name,coordinateSystem:"polar",itemStyle:{color:(0,_i.qy)((0,dr.tp)({theme:e,color:l.color,index:u}))},areaStyle:{color:"transparent"},label:{show:i.isVisible,formatter:d=>""+o+(r==="accPer"?Math.floor(d.value):d.value)+(r==="accPer"?"%":s),position:"middle",color:(0,_i.qy)((0,dr.tp)({theme:e,color:i.textStyle.color,index:u})),fontSize:i.textStyle.fontSize},...r!=="group"?{stack:"total"}:{}}))};var VZ=w(62140),WZ=w(75915);function FZ(n){var t=n;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],r,i;r=e.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function jZ(n,t){var e=n.isExpand?n.children:[],r=n.parentNode.children,i=n.hierNode.i?r[n.hierNode.i-1]:null;if(e.length){UZ(n);var a=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(n.hierNode.prelim=i.hierNode.prelim+t(n,i),n.hierNode.modifier=n.hierNode.prelim-a):n.hierNode.prelim=a}else i&&(n.hierNode.prelim=i.hierNode.prelim+t(n,i));n.parentNode.hierNode.defaultAncestor=GZ(n,i,n.parentNode.hierNode.defaultAncestor||r[0],t)}function zZ(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function qE(n){return arguments.length?n:YZ}function Nh(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function HZ(n,t){return Xr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function UZ(n){for(var t=n.children,e=t.length,r=0,i=0;--e>=0;){var a=t[e];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function GZ(n,t,e,r){if(t){for(var i=n,a=n,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=ew(s),a=nw(a),s&&a;){i=ew(i),o=nw(o),i.hierNode.ancestor=n;var h=s.hierNode.prelim+d-a.hierNode.prelim-u+r(s,a);h>0&&(XZ(KZ(s,n,e),n,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!ew(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),a&&!nw(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,e=n)}return e}function ew(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function nw(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function KZ(n,t,e){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:e}function XZ(n,t,e){var r=e/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,n.hierNode.change+=r}function YZ(n,t){return n.parentNode===t.parentNode?1:2}var ZZ=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),$Z=function(n){Zt(t,n);function t(e){return n.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZZ},t.prototype.buildPath=function(e,r){var i=r.childPoints,a=i.length,o=r.parentPoint,s=i[0],l=i[a-1];if(a===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,h=Oe(r.forkPosition,1),f=[];f[c]=o[c],f[d]=o[d]+(l[d]-o[d])*h,e.moveTo(o[0],o[1]),e.lineTo(f[0],f[1]),e.moveTo(s[0],s[1]),f[c]=s[c],e.lineTo(f[0],f[1]),f[c]=l[c],e.lineTo(f[0],f[1]),e.lineTo(l[0],l[1]);for(var p=1;p<a-1;p++){var g=i[p];e.moveTo(g[0],g[1]),f[c]=g[c],e.lineTo(f[0],f[1])}},t}(In),JZ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new sn,e}return t.prototype.init=function(e,r){this._controller=new Ch(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,r,i){var a=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,i),this._updateController(e,r,i);var u=this._data;a.diff(u).add(function(c){tL(a,c)&&eL(a,c,null,s,e)}).update(function(c,d){var h=u.getItemGraphicEl(d);if(!tL(a,c)){h&&iL(u,d,h,s,e);return}eL(a,c,h,s,e)}).remove(function(c){var d=u.getItemGraphicEl(c);d&&iL(u,c,d,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,d){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:d})})}),this._data=a},t.prototype._updateViewCoordSys=function(e,r){var i=e.getData(),a=[];i.each(function(d){var h=i.getItemLayout(d);h&&!isNaN(h.x)&&!isNaN(h.y)&&a.push([+h.x,+h.y])});var o=[],s=[];ap(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=e.coordinateSystem=new Th;c.zoomLimit=e.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(e.get("center"),r),c.setZoom(e.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,r,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,d){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,d)&&!Bg(u,i,e)}),o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){SS(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){wS(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(e),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var r=e.getData(),i=this._getNodeGlobalScale(e);r.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(e){var r=e.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,a=r.scaleX||1,o=r.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(gr);function tL(n,t){var e=n.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function eL(n,t,e,r,i){var a=!e,o=n.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=n.tree.root,d=o.parentNode===c?o:o.parentNode||o,h=n.getItemGraphicEl(d.dataIndex),f=d.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,g=o.getLayout();a?(e=new yh(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=p.x,e.y=p.y):e.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=g.rawX,e.__radialRawY=g.rawY,r.add(e),n.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Hn(e,{x:g.x,y:g.y},i);var v=e.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],x=y.getLayout(),S=y.children.length,_=void 0,D=void 0;if(g.x===x.x&&o.isExpand===!0&&y.children.length){var C={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};_=Math.atan2(C.y-x.y,C.x-x.x),_<0&&(_=Math.PI*2+_),D=C.x<x.x,D&&(_=_-Math.PI)}else _=Math.atan2(g.y-x.y,g.x-x.x),_<0&&(_=Math.PI*2+_),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(D=g.x<x.x,D&&(_=_-Math.PI)):(D=g.x>x.x,D||(_=_-Math.PI));var N=D?"left":"right",q=s.getModel("label"),et=q.get("rotate"),lt=et*(Math.PI/180),ft=v.getTextContent();ft&&(v.setTextConfig({position:q.get("position")||N,rotation:et==null?-_:lt,origin:"center"}),ft.setStyle("verticalAlign","middle"))}var _t=s.get(["emphasis","focus"]),Ct=_t==="relative"?Cf(o.getAncestorsIndices(),o.getDescendantIndices()):_t==="ancestor"?o.getAncestorsIndices():_t==="descendant"?o.getDescendantIndices():null;Ct&&(hn(e).focus=Ct),QZ(i,o,c,e,p,f,g,r),e.__edge&&(e.onHoverStateChange=function(kt){if(kt!=="blur"){var Ot=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);Ot&&Ot.hoverState===Td||dp(e.__edge,kt)}})}function QZ(n,t,e,r,i,a,o,s){var l=t.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),h=n.get(["lineStyle","curveness"]),f=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(g||(g=r.__edge=new Np({shape:rw(c,d,h,i,i)})),Hn(g,{shape:rw(c,d,h,a,o)},n));else if(u==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var v=t.children,y=[],x=0;x<v.length;x++){var S=v[x].getLayout();y.push([S.x,S.y])}g||(g=r.__edge=new $Z({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:f}})),Hn(g,{shape:{parentPoint:[o.x,o.y],childPoints:y}},n)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(nn({strokeNoScale:!0,fill:null},p)),ui(g,l,"lineStyle"),wl(g),s.add(g))}function nL(n,t,e,r,i){var a=t.tree.root,o=rL(a,n),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(n.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),d=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?d:void 0),f=r.get("edgeShape"),p=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);h&&(f==="curve"?ws(h,{shape:rw(p,g,v,l,l),style:{opacity:0}},r,{cb:function(){e.remove(h)},removeOpt:i}):f==="polyline"&&r.get("layout")==="orthogonal"&&ws(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){e.remove(h)},removeOpt:i}))}}function rL(n,t){for(var e=t.parentNode===n?t:t.parentNode||t,r;r=e.getLayout(),r==null;)e=e.parentNode===n?e:e.parentNode||e;return{source:e,sourceLayout:r}}function iL(n,t,e,r,i){var a=n.tree.getNodeByDataIndex(t),o=n.tree.root,s=rL(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ws(e,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(e),n.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){nL(u,n,r,i,l)}),nL(a,n,r,i,l)}function rw(n,t,e,r,i){var a,o,s,l,u,c,d,h;if(n==="radial"){u=r.rawX,d=r.rawY,c=i.rawX,h=i.rawY;var f=Nh(u,d),p=Nh(u,d+(h-d)*e),g=Nh(c,h+(d-h)*e),v=Nh(c,h);return{x1:f.x||0,y1:f.y||0,x2:v.x||0,y2:v.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=r.x,d=r.y,c=i.x,h=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*e,o=d,s=c+(u-c)*e,l=h),(t==="TB"||t==="BT")&&(a=u,o=d+(h-d)*e,s=c,l=h+(d-h)*e);return{x1:u,y1:d,x2:c,y2:h,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}const qZ=JZ;var t$=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var r={name:e.name,children:e.data},i=e.leaves||{},a=new pr(i,this,this.ecModel),o=ES.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(h,f){var p=o.getNodeByDataIndex(f);return p&&p.children.length&&p.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=e.expandAndCollapse,c=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var h=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=h&&h.collapsed!=null?!h.collapsed:d.depth<=c}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,r,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return qr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return r.treeAncestors=zg(i,this),r.collapsed=!i.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(br);const e$=t$;function n$(n,t,e){for(var r=[n],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,e)}function Bh(n,t){for(var e=[n],r;r=e.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)e.push(i[a])}}function r$(n,t){n.eachSeriesByType("tree",function(e){i$(e,t)})}function i$(n,t){var e=HZ(n,t);n.layoutInfo=e;var r=n.get("layout"),i=0,a=0,o=null;r==="radial"?(i=2*Math.PI,a=Math.min(e.height,e.width)/2,o=qE(function(S,_){return(S.parentNode===_.parentNode?1:2)/S.depth})):(i=e.width,a=e.height,o=qE());var s=n.getData().tree.root,l=s.children[0];if(l){FZ(s),n$(l,jZ,o),s.hierNode.modifier=-l.hierNode.prelim,Bh(l,zZ);var u=l,c=l,d=l;Bh(l,function(S){var _=S.getLayout().x;_<u.getLayout().x&&(u=S),_>c.getLayout().x&&(c=S),S.depth>d.depth&&(d=S)});var h=u===c?1:o(u,c)/2,f=h-u.getLayout().x,p=0,g=0,v=0,y=0;if(r==="radial")p=i/(c.getLayout().x+h+f),g=a/(d.depth-1||1),Bh(l,function(S){v=(S.getLayout().x+f)*p,y=(S.depth-1)*g;var _=Nh(v,y);S.setLayout({x:_.x,y:_.y,rawX:v,rawY:y},!0)});else{var x=n.getOrient();x==="RL"||x==="LR"?(g=a/(c.getLayout().x+h+f),p=i/(d.depth-1||1),Bh(l,function(S){y=(S.getLayout().x+f)*g,v=x==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:v,y},!0)})):(x==="TB"||x==="BT")&&(p=i/(c.getLayout().x+h+f),g=a/(d.depth-1||1),Bh(l,function(S){v=(S.getLayout().x+f)*p,y=x==="TB"?(S.depth-1)*g:a-(S.depth-1)*g,S.setLayout({x:v,y},!0)}))}}}function a$(n){n.eachSeriesByType("tree",function(t){var e=t.getData(),r=e.tree;r.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");ye(s,o)})})}function o$(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var i=t.dataIndex,a=r.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,r){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=kS(a,t,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function s$(n){n.registerChartView(qZ),n.registerSeriesModel(e$),n.registerLayout(r$),n.registerVisual(a$),o$(n)}var aL=["treemapZoomToNode","treemapRender","treemapMove"];function l$(n){for(var t=0;t<aL.length;t++)n.registerAction({type:aL[t],update:"updateView"},Fr);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,r){r.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Dh(e,s,a);if(l){var u=a.getViewRoot();u&&(e.direction=PS(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}var u$=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,r){var i={name:e.name,children:e.data};oL(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new pr({itemStyle:o},this,r);a=e.levels=c$(a,r);var l=we(a||[],function(d){return new pr(d,s,r)},this),u=ES.createTree(i,this,c);function c(d){d.wrapMethod("getItemModel",function(h,f){var p=u.getNodeByDataIndex(f),g=p?l[p.depth]:null;return h.parentModel=g||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,r,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return qr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var r=n.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return r.treeAncestors=zg(i,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},ye(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var r=this._idIndexMap;r||(r=this._idIndexMap=Ze(),this._idIndexMapCount=0);var i=r.get(e);return i==null&&r.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var r=this.getRawData().tree.root;(!e||e!==r&&!r.contains(e))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){JI(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(br);function oL(n){var t=0;mt(n.children,function(r){oL(r);var i=r.value;Se(i)&&(i=i[0]),t+=i});var e=n.value;Se(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Se(n.value)?n.value[0]=e:n.value=e}function c$(n,t){var e=cr(t.get("color")),r=cr(t.get(["aria","decal","decals"]));if(e){n=n||[];var i,a;mt(n,function(s){var l=new pr(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=n[0]||(n[0]={});return i||(o.color=e.slice()),!a&&r&&(o.decal=r.slice()),n}}const d$=u$;var h$=8,sL=8,iw=5,f$=function(){function n(t){this.group=new sn,t.add(this.group)}return n.prototype.render=function(t,e,r,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!r)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(t,d,s,l,u,c,i),Cp(o,d.pos,d.box)}},n.prototype._prepare=function(t,e,r){for(var i=t;i;i=i.parentNode){var a=Zr(i.getModel().get("name"),""),o=r.getTextRect(a),s=Math.max(o.width+h$*2,e.emptyItemWidth);e.totalWidth+=s+sL,e.renderList.push({node:i,text:a,width:s})}},n.prototype._renderContent=function(t,e,r,i,a,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),d=p6(e.pos,e.box),h=e.totalWidth,f=e.renderList,p=i.getModel("itemStyle").getItemStyle(),g=f.length-1;g>=0;g--){var v=f[g],y=v.node,x=v.width,S=v.text;h>d.width&&(h-=x-u,x=u,S=null);var _=new Ki({shape:{points:p$(l,0,x,c,g===f.length-1,g===0)},style:nn(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Wn({style:mr(a,{text:S})}),textConfig:{position:"inside"},z2:Ku*1e4,onclick:xn(s,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=mr(o,{text:S}),_.ensureState("emphasis").style=p,Er(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),g$(_,t,y),l+=x+sL}},n.prototype.remove=function(){this.group.removeAll()},n}();function p$(n,t,e,r,i,a){var o=[[i?n:n-iw,t],[n+e,t],[n+e,t+r],[i?n:n-iw,t+r]];return!a&&o.splice(2,0,[n+e+iw,t+r/2]),!i&&o.push([n,t+r/2]),o}function g$(n,t,e){hn(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&zg(e,t)}}const v$=f$;var m$=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(t,e,r,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:r,delay:i,easing:a}),!0)},n.prototype.finished=function(t){return this._finishedCallback=t,this},n.prototype.start=function(){for(var t=this,e=this._storage.length,r=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},n}();function y$(){return new m$}var aw=sn,lL=jn,uL=3,cL="label",dL="upperLabel",x$=Ku*10,S$=Ku*2,w$=Ku*3,iu=dl([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hL=function(n){var t=iu(n);return t.stroke=t.fill=t.lineWidth=null,t},Qg=Kn(),_$=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Vh(),e}return t.prototype.render=function(e,r,i,a){var o=r.findComponents({mainType:"series",subType:"treemap",query:a});if(!(kn(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Dh(a,s,e),u=a&&a.type,c=e.layoutInfo,d=!this._oldTree,h=this._storage,f=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,p=this._giveContainerGroup(c),g=e.get("animation"),v=this._doRender(p,e,f);g&&!d&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,v,e,f):v.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var r=this._containerGroup;return r||(r=this._containerGroup=new aw,this._initEvents(r),this.group.add(r)),r.x=e.x,r.y=e.y,r},t.prototype._doRender=function(e,r,i){var a=r.getData().tree,o=this._oldTree,s=Vh(),l=Vh(),u=this._storage,c=[];function d(v,y,x,S){return b$(r,l,u,i,s,c,v,y,x,S)}f(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var h=p(u);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:g};function f(v,y,x,S,_){S?(y=v,mt(v,function(N,q){!N.isRemoved()&&C(q,q)})):new Go(y,v,D,D).add(C).update(C).remove(xn(C,null)).execute();function D(N){return N.getId()}function C(N,q){var et=N!=null?v[N]:null,lt=q!=null?y[q]:null,ft=d(et,lt,x,_);ft&&f(et&&et.viewChildren||[],lt&&lt.viewChildren||[],ft,S,_+1)}}function p(v){var y=Vh();return v&&mt(v,function(x,S){var _=y[S];mt(x,function(D){D&&(_.push(D),Qg(D).willDelete=!0)})}),y}function g(){mt(h,function(v){mt(v,function(y){y.parent&&y.parent.remove(y)})}),mt(c,function(v){v.invisible=!0,v.dirty()})}},t.prototype._doAnimation=function(e,r,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(qe(o)?0:o)||0,u=(qe(s)?null:s)||"cubicOut",c=y$();mt(r.willDeleteEls,function(d,h){mt(d,function(f,p){if(!f.invisible){var g=f.parent,v,y=Qg(g);if(a&&a.direction==="drillDown")v=g===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var x=0,S=0;y.willDelete||(x=y.nodeWidth/2,S=y.nodeHeight/2),v=h==="nodeGroup"?{x,y:S,style:{opacity:0}}:{shape:{x,y:S,width:0,height:0},style:{opacity:0}}}v&&c.add(f,v,l,0,u)}})}),mt(this._storage,function(d,h){mt(d,function(f,p){var g=r.lastsForAnimation[h][p],v={};g&&(f instanceof sn?g.oldX!=null&&(v.x=f.x,v.y=f.y,f.x=g.oldX,f.y=g.oldY):(g.oldShape&&(v.shape=ye({},f.shape),f.setShape(g.oldShape)),g.fadein?(f.setStyle("opacity",0),v.style={opacity:1}):f.style.opacity!==1&&(v.style={opacity:1})),c.add(f,v,l,0,u))})},this),this._state="animating",c.finished(Ge(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(e){var r=this._controller;r||(r=this._controller=new Ch(e.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Ge(this._onPan,this)),r.on("zoom",Ge(this._onZoom,this)));var i=new wn(0,0,e.getWidth(),e.getHeight());r.setPointerChecker(function(a,o,s){return i.contain(o,s)})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>uL||Math.abs(e.dy)>uL)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var r=e.originX,i=e.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new wn(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,i-=l.y;var u=ea();no(u,u,[-r,-i]),Om(u,u,[e.scale,e.scale]),no(u,u,[r,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var r=this;e.on("click",function(i){if(r._state==="ready"){var a=r.seriesModel.get("nodeClick",!0);if(a){var o=r.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(a==="zoomToNode")r._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&_p(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,r,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new v$(this.group))).render(e,r,i.node,function(o){a._state!=="animating"&&(PS(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Vh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,r){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(gr);function Vh(){return{nodeGroup:[],background:[],content:[]}}function b$(n,t,e,r,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),h=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var f=c.width,p=c.height,g=c.borderWidth,v=c.invisible,y=o.getRawIndex(),x=s&&s.getRawIndex(),S=o.viewChildren,_=c.upperHeight,D=S&&S.length,C=h.getModel("itemStyle"),N=h.getModel(["emphasis","itemStyle"]),q=h.getModel(["blur","itemStyle"]),et=h.getModel(["select","itemStyle"]),lt=C.get("borderRadius")||0,ft=Qt("nodeGroup",aw);if(!ft)return;if(l.add(ft),ft.x=c.x||0,ft.y=c.y||0,ft.markRedraw(),Qg(ft).nodeWidth=f,Qg(ft).nodeHeight=p,c.isAboveViewRoot)return ft;var _t=Qt("background",lL,u,S$);_t&&Ut(ft,_t,D&&c.upperLabelHeight);var Ct=h.getModel("emphasis"),kt=Ct.get("focus"),Ot=Ct.get("blurScope"),Nt=Ct.get("disabled"),Xt=kt==="ancestor"?o.getAncestorsIndices():kt==="descendant"?o.getDescendantIndices():kt;if(D)Ad(ft)&&_l(ft,!1),_t&&(_l(_t,!Nt),d.setItemGraphicEl(o.dataIndex,_t),J0(_t,Xt,Ot));else{var Vt=Qt("content",lL,u,w$);Vt&&Yt(ft,Vt),_t.disableMorphing=!0,_t&&Ad(_t)&&_l(_t,!1),_l(ft,!Nt),d.setItemGraphicEl(o.dataIndex,ft),J0(ft,Xt,Ot)}return ft;function Ut(Pe,Ce,Ee){var Ve=hn(Ce);if(Ve.dataIndex=o.dataIndex,Ve.seriesIndex=n.seriesIndex,Ce.setShape({x:0,y:0,width:f,height:p,r:lt}),v)ue(Ce);else{Ce.invisible=!1;var Te=o.getVisual("style"),Be=Te.stroke,tn=hL(C);tn.fill=Be;var Je=iu(N);Je.fill=N.get("borderColor");var An=iu(q);An.fill=q.get("borderColor");var En=iu(et);if(En.fill=et.get("borderColor"),Ee){var Cr=f-2*g;ie(Ce,Be,Te.opacity,{x:g,y:0,width:Cr,height:_})}else Ce.removeTextContent();Ce.setStyle(tn),Ce.ensureState("emphasis").style=Je,Ce.ensureState("blur").style=An,Ce.ensureState("select").style=En,wl(Ce)}Pe.add(Ce)}function Yt(Pe,Ce){var Ee=hn(Ce);Ee.dataIndex=o.dataIndex,Ee.seriesIndex=n.seriesIndex;var Ve=Math.max(f-2*g,0),Te=Math.max(p-2*g,0);if(Ce.culling=!0,Ce.setShape({x:g,y:g,width:Ve,height:Te,r:lt}),v)ue(Ce);else{Ce.invisible=!1;var Be=o.getVisual("style"),tn=Be.fill,Je=hL(C);Je.fill=tn,Je.decal=Be.decal;var An=iu(N),En=iu(q),Cr=iu(et);ie(Ce,tn,Be.opacity,null),Ce.setStyle(Je),Ce.ensureState("emphasis").style=An,Ce.ensureState("blur").style=En,Ce.ensureState("select").style=Cr,wl(Ce)}Pe.add(Ce)}function ue(Pe){!Pe.invisible&&a.push(Pe)}function ie(Pe,Ce,Ee,Ve){var Te=h.getModel(Ve?dL:cL),Be=Zr(h.get("name"),null),tn=Te.getShallow("show");ci(Pe,Qr(h,Ve?dL:cL),{defaultText:tn?Be:null,inheritColor:Ce,defaultOpacity:Ee,labelFetcher:n,labelDataIndex:o.dataIndex});var Je=Pe.getTextContent();if(Je){var An=Je.style,En=wm(An.padding||0);Ve&&(Pe.setTextConfig({layoutRect:Ve}),Je.disableLabelLayout=!0),Je.beforeUpdate=function(){var Mr=Math.max((Ve?Ve.width:Pe.shape.width)-En[1]-En[3],0),ir=Math.max((Ve?Ve.height:Pe.shape.height)-En[0]-En[2],0);(An.width!==Mr||An.height!==ir)&&Je.setStyle({width:Mr,height:ir})},An.truncateMinChar=2,An.lineOverflow="truncate",Gt(An,Ve,c);var Cr=Je.getState("emphasis");Gt(Cr?Cr.style:null,Ve,c)}}function Gt(Pe,Ce,Ee){var Ve=Pe?Pe.text:null;if(!Ce&&Ee.isLeafRoot&&Ve!=null){var Te=n.get("drillDownIcon",!0);Pe.text=Te?Te+" "+Ve:Ve}}function Qt(Pe,Ce,Ee,Ve){var Te=x!=null&&e[Pe][x],Be=i[Pe];return Te?(e[Pe][x]=null,me(Be,Te)):v||(Te=new Ce,Te instanceof fa&&(Te.z2=C$(Ee,Ve)),De(Be,Te)),t[Pe][y]=Te}function me(Pe,Ce){var Ee=Pe[y]={};Ce instanceof aw?(Ee.oldX=Ce.x,Ee.oldY=Ce.y):Ee.oldShape=ye({},Ce.shape)}function De(Pe,Ce){var Ee=Pe[y]={},Ve=o.parentNode,Te=Ce instanceof sn;if(Ve&&(!r||r.direction==="drillDown")){var Be=0,tn=0,Je=i.background[Ve.getRawIndex()];!r&&Je&&Je.oldShape&&(Be=Je.oldShape.width,tn=Je.oldShape.height),Te?(Ee.oldX=0,Ee.oldY=tn):Ee.oldShape={x:Be,y:tn,width:0,height:0}}Ee.fadein=!Te}}function C$(n,t){return n*x$+t}const M$=_$;var T$="itemStyle",fL=Kn();const D$={seriesType:"treemap",reset:function(n){var t=n.getData().tree,e=t.root;e.isRemoved()||pL(e,{},n.getViewRoot().getAncestors(),n)}};function pL(n,t,e,r){var i=n.getModel(),a=n.getLayout(),o=n.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(T$),l=k$(s,t,r),u=o.ensureUniqueItemVisual(n.dataIndex,"style"),c=s.get("borderColor"),d=s.get("borderColorSaturation"),h;d!=null&&(h=gL(l),c=P$(d,h)),u.stroke=c;var f=n.viewChildren;if(!f||!f.length)h=gL(l),u.fill=h;else{var p=A$(n,i,a,s,l,f);mt(f,function(g,v){if(g.depth>=e.length||g===e[g.depth]){var y=I$(i,l,g,v,p,r);pL(g,y,e,r)}})}}}function k$(n,t,e){var r=ye({},t),i=e.designatedVisualItemStyle;return mt(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=n.get(a);i[a]=null,o!=null&&(r[a]=o)}),r}function gL(n){var t=ow(n,"color");if(t){var e=ow(n,"colorAlpha"),r=ow(n,"colorSaturation");return r&&(t=cd(t,null,null,r)),e&&(t=Wf(t,e)),t}}function P$(n,t){return t!=null?cd(t,null,null,n):null}function ow(n,t){var e=n[t];if(e!=null&&e!=="none")return e}function A$(n,t,e,r,i,a){if(!(!a||!a.length)){var o=sw(t,"color")||i.color!=null&&i.color!=="none"&&(sw(t,"colorAlpha")||sw(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var h=new fi(d);return fL(h).drColorMappingBy=c,h}}}function sw(n,t){var e=n.get(t);return Se(e)&&e.length?{name:t,range:e}:null}function I$(n,t,e,r,i,a){var o=ye({},t);if(i){var s=i.type,l=s==="color"&&fL(i).drColorMappingBy,u=l==="index"?r:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(n.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Wh=Math.max,qg=Math.min,vL=ii,lw=mt,mL=["itemStyle","borderWidth"],E$=["itemStyle","gapWidth"],L$=["upperLabel","show"],O$=["upperLabel","height"];const R$={seriesType:"treemap",reset:function(n,t,e,r){var i=e.getWidth(),a=e.getHeight(),o=n.option,s=Xr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=Oe(vL(s.width,l[0]),i),c=Oe(vL(s.height,l[1]),a),d=r&&r.type,h=["treemapZoomToNode","treemapRootToNode"],f=Dh(r,h,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),v=XI(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?j$(n,f,g,u,c):p?[p.width,p.height]:[u,c],x=o.sort;x&&x!=="asc"&&x!=="desc"&&(x="desc");var S={squareRatio:o.squareRatio,sort:x,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),yL(g,S,!1,0),_=g.getLayout(),lw(v,function(C,N){var q=(v[N+1]||g).getValue();C.setLayout(ye({dataExtent:[q,q],borderWidth:0,upperHeight:0},_))})}var D=n.getData().tree.root;D.setLayout(z$(s,p,f),!0),n.setLayoutInfo(s),SL(D,new wn(-s.x,-s.y,i,a),v,g,0)}};function yL(n,t,e,r){var i,a;if(!n.isRemoved()){var o=n.getLayout();i=o.width,a=o.height;var s=n.getModel(),l=s.get(mL),u=s.get(E$)/2,c=wL(s),d=Math.max(l,c),h=l-u,f=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=Wh(i-2*h,0),a=Wh(a-h-f,0);var p=i*a,g=N$(n,s,p,t,e,r);if(g.length){var v={x:h,y:f,width:i,height:a},y=qg(i,a),x=1/0,S=[];S.area=0;for(var _=0,D=g.length;_<D;){var C=g[_];S.push(C),S.area+=C.getLayout().area;var N=F$(S,y,t.squareRatio);N<=x?(_++,x=N):(S.area-=S.pop().getLayout().area,xL(S,y,v,u,!1),y=qg(v.width,v.height),S.length=S.area=0,x=1/0)}if(S.length&&xL(S,y,v,u,!0),!e){var q=s.get("childrenVisibleMin");q!=null&&p<q&&(e=!0)}for(var _=0,D=g.length;_<D;_++)yL(g[_],t,e,r+1)}}}function N$(n,t,e,r,i,a){var o=n.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!l)return n.viewChildren=[];o=sr(o,function(f){return!f.isRemoved()}),V$(o,s);var u=W$(t,o,s);if(u.sum===0)return n.viewChildren=[];if(u.sum=B$(t,e,u.sum,s,o),u.sum===0)return n.viewChildren=[];for(var c=0,d=o.length;c<d;c++){var h=o[c].getValue()/u.sum*e;o[c].setLayout({area:h})}return l&&(o.length&&n.setLayout({isLeafRoot:!0},!0),o.length=0),n.viewChildren=o,n.setLayout({dataExtent:u.dataExtent},!0),o}function B$(n,t,e,r,i){if(!r)return e;for(var a=n.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/e*t<a&&(s=l,e-=u)}return r==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function V$(n,t){return t&&n.sort(function(e,r){var i=t==="asc"?e.getValue()-r.getValue():r.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-r.dataIndex:r.dataIndex-e.dataIndex:i}),n}function W$(n,t,e){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=n.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],lw(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function F$(n,t,e){for(var r=0,i=1/0,a=0,o=void 0,s=n.length;a<s;a++)o=n[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=n.area*n.area,u=t*t*e;return l?Wh(u*r/l,l/(u*i)):1/0}function xL(n,t,e,r,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],c=t?n.area/t:0;(i||c>e[l[o]])&&(c=e[l[o]]);for(var d=0,h=n.length;d<h;d++){var f=n[d],p={},g=c?f.getLayout().area/c:0,v=p[l[o]]=Wh(c-2*r,0),y=e[s[a]]+e[l[a]]-u,x=d===h-1||y<g?y:g,S=p[l[a]]=Wh(x-2*r,0);p[s[o]]=e[s[o]]+qg(r,v/2),p[s[a]]=u+qg(r,S/2),u+=x,f.setLayout(p,!0)}e[s[o]]+=c,e[l[o]]-=c}function j$(n,t,e,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===e)return o;for(var s,l=r*i,u=l*n.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,d=s.children,h=0,f=d.length;h<f;h++)c+=d[h].getValue();var p=a.getValue();if(p===0)return o;u*=c/p;var g=s.getModel(),v=g.get(mL),y=Math.max(v,wL(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>PC&&(u=PC),a=s}u<l&&(u=l);var x=Math.pow(u/l,.5);return[r*x,i*x]}function z$(n,t,e){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!e)return r;var i=e.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:n.width/2-o[0],y:n.height/2-o[1]}}function SL(n,t,e,r,i){var a=n.getLayout(),o=e[i],s=o&&o===n;if(!(o&&!s||i===e.length&&n!==r)){n.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new wn(t.x-a.x,t.y-a.y,t.width,t.height);lw(n.viewChildren||[],function(u){SL(u,l,e,r,i+1)})}}function wL(n){return n.get(L$)?n.get(O$):0}function H$(n){n.registerSeriesModel(d$),n.registerChartView(M$),n.registerVisual(D$),n.registerLayout(R$),l$(n)}function U$(n){var t=n.findComponents({mainType:"legend"});!t||!t.length||n.eachSeriesByType("graph",function(e){var r=e.getCategoriesData(),i=e.getGraph(),a=i.data,o=r.mapArray(r.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){$n(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function G$(n){var t={};n.eachSeriesByType("graph",function(e){var r=e.getCategoriesData(),i=e.getData(),a={};r.each(function(o){var s=r.getName(o);a["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],d=0;d<c.length;d++){var h=l.getShallow(c[d],!0);h!=null&&r.setItemVisual(o,c[d],h)}}),r.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){je(l)&&(l=a["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");ye(c,u);for(var d=["symbol","symbolSize","symbolKeepAspect"],h=0;h<d.length;h++)i.setItemVisual(o,d[h],r.getItemVisual(l,d[h]))}})})}function tv(n){return n instanceof Array||(n=[n,n]),n}function K$(n){n.eachSeriesByType("graph",function(t){var e=t.getGraph(),r=t.getEdgeData(),i=tv(t.get("edgeSymbol")),a=tv(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",a&&a[0]),r.setVisual("toSymbolSize",a&&a[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=e.getEdgeByIndex(o),u=tv(s.getShallow("symbol",!0)),c=tv(s.getShallow("symbolSize",!0)),d=s.getModel("lineStyle").getLineStyle(),h=r.ensureUniqueItemVisual(o,"style");switch(ye(h,d),h.stroke){case"source":{var f=l.node1.getVisual("style");h.stroke=f&&f.fill;break}case"target":{var f=l.node2.getVisual("style");h.stroke=f&&f.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var uw="-->",ev=function(n){return n.get("autoCurveness")||null},_L=function(n,t){var e=ev(n),r=20,i=[];if($n(e))r=e;else if(Se(e)){n.__curvenessList=e;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));n.__curvenessList=i},Fh=function(n,t,e){var r=[n.id,n.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[e.uid,r,i].join(uw)},bL=function(n){var t=n.split(uw);return[t[0],t[2],t[1]].join(uw)},X$=function(n,t){var e=Fh(n.node1,n.node2,t);return t.__edgeMap[e]},Y$=function(n,t){var e=cw(Fh(n.node1,n.node2,t),t),r=cw(Fh(n.node2,n.node1,t),t);return e+r},cw=function(n,t){var e=t.__edgeMap;return e[n]?e[n].length:0};function Z$(n){ev(n)&&(n.__curvenessList=[],n.__edgeMap={},_L(n))}function $$(n,t,e,r){if(ev(e)){var i=Fh(n,t,e),a=e.__edgeMap,o=a[bL(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function dw(n,t,e,r){var i=ev(t),a=Se(i);if(!i)return null;var o=X$(n,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=Y$(n,t);_L(t,u),n.lineStyle=n.lineStyle||{};var c=Fh(n.node1,n.node2,t),d=t.__curvenessList,h=a||u%2?0:1;if(o.isForward)return d[h+s];var f=bL(c),p=cw(f,t),g=d[s+p+h];return r?a?i&&i[0]===0?(p+h)%2?g:-g:((p%2?0:1)+h)%2?g:-g:(p+h)%2?g:-g:d[s+p+h]}function CL(n){var t=n.coordinateSystem;if(!(t&&t.type!=="view")){var e=n.getGraph();e.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),hw(e,n)}}function hw(n,t){n.eachEdge(function(e,r){var i=eo(e.getModel().get(["lineStyle","curveness"]),-dw(e,t,r,!0),0),a=Ao(e.node1.getLayout()),o=Ao(e.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),e.setLayout(s)})}function J$(n,t){n.eachSeriesByType("graph",function(e){var r=e.get("layout"),i=e.coordinateSystem;if(i&&i.type!=="view"){var a=e.getData(),o=[];mt(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var d=a.get(o[c],s);isNaN(d)||(u=!0),l.push(d)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}hw(a.graph,e)}else(!r||r==="none")&&CL(e)})}function jh(n){var t=n.coordinateSystem;if(t.type!=="view")return 1;var e=n.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),a=(i-1)*e+1;return a/r}function zh(n){var t=n.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var ML=Math.PI,fw=[];function pw(n,t,e,r){var i=n.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=n.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:l,cy:u}),!!d){if(e){var h=i.pointToData(r),f=h[0],p=h[1],g=[f-l,p-u];Ou(g,g),Df(g,g,c),e.setLayout([l+g[0],u+g[1]],!0);var v=n.get(["circular","rotateLabel"]);TL(e,v,l,u)}Q$[t](n,s,o,c,l,u,d),s.eachEdge(function(y,x){var S=eo(y.getModel().get(["lineStyle","curveness"]),dw(y,n,x),0),_=Ao(y.node1.getLayout()),D=Ao(y.node2.getLayout()),C,N=(_[0]+D[0])/2,q=(_[1]+D[1])/2;+S&&(S*=3,C=[l*S+N*(1-S),u*S+q*(1-S)]),y.setLayout([_,D,C])})}}}var Q$={value:function(n,t,e,r,i,a,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var d=c.getValue("value"),h=u*(l?d:1)/2;s+=h,c.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=h})},symbolSize:function(n,t,e,r,i,a,o){var s=0;fw.length=o;var l=jh(n);t.eachNode(function(d){var h=zh(d);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var f=Math.asin(h/2/r);isNaN(f)&&(f=ML/2),fw[d.dataIndex]=f,s+=f*2});var u=(2*ML-s)/o/2,c=0;t.eachNode(function(d){var h=u+fw[d.dataIndex];c+=h,(!d.getLayout()||!d.getLayout().fixed)&&d.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=h})}};function TL(n,t,e,r){var i=n.getGraphicEl();if(i){var a=n.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=n.getLayout(),u=Math.atan2(l[1]-r,l[0]-e);u<0&&(u=Math.PI*2+u);var c=l[0]<e;c&&(u=u-Math.PI);var d=c?"left":"right";s.setTextConfig({rotation:-u,position:d,origin:"center"});var h=s.ensureState("emphasis");ye(h.textConfig||(h.textConfig={}),{position:d})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function q$(n){n.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&pw(t,"symbolSize")})}var Ac=_m;function tJ(n,t,e){for(var r=n,i=t,a=e.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=e.gravity==null?.1:e.gravity,c=0;c<r.length;c++){var d=r[c];d.p||(d.p=$s(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=Ao(d.p),d.edges=null}var h=e.friction==null?.6:e.friction,f=h,p,g;return{warmUp:function(){f=h*.8},setFixed:function(v){r[v].fixed=!0},setUnfixed:function(v){r[v].fixed=!1},beforeStep:function(v){p=v},afterStep:function(v){g=v},step:function(v){p&&p(r,i);for(var y=[],x=r.length,S=0;S<i.length;S++){var _=i[S];if(!_.ignoreForceLayout){var D=_.n1,C=_.n2;Js(y,C.p,D.p);var N=bm(y)-_.d,q=C.w/(D.w+C.w);isNaN(q)&&(q=0),Ou(y,y),!D.fixed&&Ac(D.p,D.p,y,q*N*f),!C.fixed&&Ac(C.p,C.p,y,-(1-q)*N*f)}}for(var S=0;S<x;S++){var et=r[S];et.fixed||(Js(y,l,et.p),Ac(et.p,et.p,y,u*f))}for(var S=0;S<x;S++)for(var D=r[S],lt=S+1;lt<x;lt++){var C=r[lt];Js(y,C.p,D.p);var N=bm(y);N===0&&(V4(y,Math.random()-.5,Math.random()-.5),N=1);var ft=(D.rep+C.rep)/N/N;!D.fixed&&Ac(D.pp,D.pp,y,ft),!C.fixed&&Ac(C.pp,C.pp,y,-ft)}for(var _t=[],S=0;S<x;S++){var et=r[S];et.fixed||(Js(_t,et.p,et.pp),Ac(et.p,et.p,_t,f),Di(et.pp,et.p))}f=f*.992;var Ct=f<.01;g&&g(r,i,Ct),v&&v(Ct)}}}function eJ(n){n.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(S){var _=a.getId(S);a.setItemLayout(S,r[_]||[NaN,NaN])}):!l||l==="none"?CL(t):l==="circular"&&pw(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),d=s.get("repulsion"),h=s.get("edgeLength"),f=Se(d)?d:[d,d],p=Se(h)?h:[h,h];p=[p[1],p[0]];var g=a.mapArray("value",function(S,_){var D=a.getItemLayout(_),C=nr(S,u,f);return isNaN(C)&&(C=(f[0]+f[1])/2),{w:C,rep:C,fixed:a.getItemModel(_).get("fixed"),p:!D||isNaN(D[0])||isNaN(D[1])?null:D}}),v=o.mapArray("value",function(S,_){var D=i.getEdgeByIndex(_),C=nr(S,c,p);isNaN(C)&&(C=(p[0]+p[1])/2);var N=D.getModel(),q=eo(D.getModel().get(["lineStyle","curveness"]),-dw(D,t,_,!0),0);return{n1:g[D.node1.dataIndex],n2:g[D.node2.dataIndex],d:C,curveness:q,ignoreForceLayout:N.get("ignoreForceLayout")}}),y=e.getBoundingRect(),x=tJ(g,v,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});x.beforeStep(function(S,_){for(var D=0,C=S.length;D<C;D++)S[D].fixed&&Di(S[D].p,i.getNodeByIndex(D).getLayout())}),x.afterStep(function(S,_,D){for(var C=0,N=S.length;C<N;C++)S[C].fixed||i.getNodeByIndex(C).setLayout(S[C].p),r[a.getId(C)]=S[C].p;for(var C=0,N=_.length;C<N;C++){var q=_[C],et=i.getEdgeByIndex(C),lt=q.n1.p,ft=q.n2.p,_t=et.getLayout();_t=_t?_t.slice():[],_t[0]=_t[0]||[],_t[1]=_t[1]||[],Di(_t[0],lt),Di(_t[1],ft),+q.curveness&&(_t[2]=[(lt[0]+ft[0])/2-(lt[1]-ft[1])*q.curveness,(lt[1]+ft[1])/2-(ft[0]-lt[0])*q.curveness]),et.setLayout(_t)}}),t.forceLayout=x,t.preservedPoints=r,x.step()}else t.forceLayout=null})}function nJ(n,t,e){var r=ye(n.getBoxLayoutParams(),{aspect:e});return Xr(r,{width:t.getWidth(),height:t.getHeight()})}function rJ(n,t){var e=[];return n.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var a=r.getData(),o=a.mapArray(function(v){var y=a.getItemModel(v);return[+y.get("x"),+y.get("y")]}),s=[],l=[];ap(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=nJ(r,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var d=l[0]-s[0],h=l[1]-s[1],f=c.width,p=c.height,g=r.coordinateSystem=new Th;g.zoomLimit=r.get("scaleLimit"),g.setBoundingRect(s[0],s[1],d,h),g.setViewRect(c.x,c.y,f,p),g.setCenter(r.get("center"),t),g.setZoom(r.get("zoom")),e.push(g)}}),e}var DL=oi.prototype,gw=Np.prototype,kL=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),ght=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t}(kL);function vw(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var iJ=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kL},t.prototype.buildPath=function(e,r){vw(r)?DL.buildPath.call(this,e,r):gw.buildPath.call(this,e,r)},t.prototype.pointAt=function(e){return vw(this.shape)?DL.pointAt.call(this,e):gw.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var r=this.shape,i=vw(r)?[r.x2-r.x1,r.y2-r.y1]:gw.tangentAt.call(this,e);return Ou(i,i)},t}(In);const aJ=iJ;var mw=["fromSymbol","toSymbol"];function PL(n){return"_"+n+"Type"}function AL(n,t,e){var r=t.getItemVisual(e,n);if(!r||r==="none")return r;var i=t.getItemVisual(e,n+"Size"),a=t.getItemVisual(e,n+"Rotate"),o=t.getItemVisual(e,n+"Offset"),s=t.getItemVisual(e,n+"KeepAspect"),l=vc(i),u=Rl(o||0,l);return r+l+u+(a||"")+(s||"")}function IL(n,t,e){var r=t.getItemVisual(e,n);if(!(!r||r==="none")){var i=t.getItemVisual(e,n+"Size"),a=t.getItemVisual(e,n+"Rotate"),o=t.getItemVisual(e,n+"Offset"),s=t.getItemVisual(e,n+"KeepAspect"),l=vc(i),u=Rl(o||0,l),c=Rr(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=n,c}}function oJ(n){var t=new aJ({name:"line",subPixelOptimize:!0});return yw(t.shape,n),t}function yw(n,t){n.x1=t[0][0],n.y1=t[0][1],n.x2=t[1][0],n.y2=t[1][1],n.percent=1;var e=t[2];e?(n.cpx1=e[0],n.cpy1=e[1]):(n.cpx1=NaN,n.cpy1=NaN)}var sJ=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this)||this;return a._createLine(e,r,i),a}return t.prototype._createLine=function(e,r,i){var a=e.hostModel,o=e.getItemLayout(r),s=oJ(o);s.shape.percent=0,_r(s,{shape:{percent:1}},a,r),this.add(s),mt(mw,function(l){var u=IL(l,e,r);this.add(u),this[PL(l)]=AL(l,e,r)},this),this._updateCommonStl(e,r,i)},t.prototype.updateData=function(e,r,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(r),l={shape:{}};yw(l.shape,s),Hn(o,l,a,r),mt(mw,function(u){var c=AL(u,e,r),d=PL(u);if(this[d]!==c){this.remove(this.childOfName(u));var h=IL(u,e,r);this.add(h)}this[d]=c},this),this._updateCommonStl(e,r,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,r,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,d=i&&i.emphasisDisabled,h=i&&i.focus,f=i&&i.blurScope;if(!i||e.hasItemOption){var p=e.getItemModel(r),g=p.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),d=g.get("disabled"),h=g.get("focus"),f=g.get("blurScope"),c=Qr(p)}var v=e.getItemVisual(r,"style"),y=v.stroke;o.useStyle(v),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,mt(mw,function(C){var N=this.childOfName(C);if(N){N.setColor(y),N.style.opacity=v.opacity;for(var q=0;q<Pi.length;q++){var et=Pi[q],lt=o.getState(et);if(lt){var ft=lt.style||{},_t=N.ensureState(et),Ct=_t.style||(_t.style={});ft.stroke!=null&&(Ct[N.__isEmptyBrush?"stroke":"fill"]=ft.stroke),ft.opacity!=null&&(Ct.opacity=ft.opacity)}}N.markRedraw()}},this);var x=a.getRawValue(r);ci(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(C,N){return a.getFormattedLabel(C,N,e.dataType)}},inheritColor:y||"#000",defaultOpacity:v.opacity,defaultText:(x==null?e.getName(r):isFinite(x)?Or(x):x)+""});var S=this.getTextContent();if(S){var _=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=_.get("position")||"middle";var D=_.get("distance");Se(D)||(D=[D,D]),S.__labelDistance=D}this.setTextConfig({position:null,local:!0,inside:!1}),Er(this,h,f,d)},t.prototype.highlight=function(){Wo(this)},t.prototype.downplay=function(){Fo(this)},t.prototype.updateLayout=function(e,r){this.setLinePoints(e.getItemLayout(r))},t.prototype.setLinePoints=function(e){var r=this.childOfName("line");yw(r.shape,e),r.dirty()},t.prototype.beforeUpdate=function(){var e=this,r=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!r&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),d=l.pointAt(u),h=Js([],d,c);Ou(h,h);function f(lt,ft){var _t=lt.__specifiedRotation;if(_t==null){var Ct=l.tangentAt(ft);lt.attr("rotation",(ft===1?-1:1)*Math.PI/2-Math.atan2(Ct[1],Ct[0]))}else lt.attr("rotation",_t)}if(r&&(r.setPosition(c),f(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),i&&(i.setPosition(d),f(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,g=void 0,v=a.__labelDistance,y=v[0]*o,x=v[1]*o,S=u/2,_=l.tangentAt(S),D=[_[1],-_[0]],C=l.pointAt(S);D[1]>0&&(D[0]=-D[0],D[1]=-D[1]);var N=_[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var q=-Math.atan2(_[1],_[0]);d[0]<c[0]&&(q=Math.PI+q),a.rotation=q}var et=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":et=-x,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":et=x,g="top";break;default:et=0,g="middle"}switch(a.__position){case"end":a.x=h[0]*y+d[0],a.y=h[1]*x+d[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*x+c[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*N+c[0],a.y=c[1]+et,p=_[0]<0?"right":"left",a.originX=-y*N,a.originY=-et;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=C[0],a.y=C[1]+et,p="center",a.originY=-et;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*N+d[0],a.y=d[1]+et,p=_[0]>=0?"right":"left",a.originX=y*N,a.originY=-et;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||p})}},t}(sn);const xw=sJ;var lJ=function(){function n(t){this.group=new sn,this._LineCtor=t||xw}return n.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var r=this,i=r.group,a=r._lineData;r._lineData=t,a||i.removeAll();var o=EL(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,r){e.updateLayout(t,r)},this)},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=EL(t),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function r(s){!s.isGroup&&!uJ(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(Sw(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(r),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(t){Ts(this._progressiveEls||this.group,t)},n.prototype._doAdd=function(t,e,r){var i=t.getItemLayout(e);if(Sw(i)){var a=new this._LineCtor(t,e,r);t.setItemGraphicEl(e,a),this.group.add(a)}},n.prototype._doUpdate=function(t,e,r,i,a){var o=t.getItemGraphicEl(r);if(!Sw(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},n}();function uJ(n){return n.animators&&n.animators.length>0}function EL(n){var t=n.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Qr(t)}}function LL(n){return isNaN(n[0])||isNaN(n[1])}function Sw(n){return n&&!LL(n[0])&&!LL(n[1])}const ww=lJ;var _w=[],bw=[],Cw=[],Ic=ai,Mw=Qs,OL=Math.abs;function RL(n,t,e){for(var r=n[0],i=n[1],a=n[2],o=1/0,s,l=e*e,u=.1,c=.1;c<=.9;c+=.1){_w[0]=Ic(r[0],i[0],a[0],c),_w[1]=Ic(r[1],i[1],a[1],c);var d=OL(Mw(_w,t)-l);d<o&&(o=d,s=c)}for(var h=0;h<32;h++){var f=s+u;bw[0]=Ic(r[0],i[0],a[0],s),bw[1]=Ic(r[1],i[1],a[1],s),Cw[0]=Ic(r[0],i[0],a[0],f),Cw[1]=Ic(r[1],i[1],a[1],f);var d=Mw(bw,t)-l;if(OL(d)<.01)break;var p=Mw(Cw,t)-l;u/=2,d<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Tw(n,t){var e=[],r=sd,i=[[],[],[]],a=[[],[]],o=[];t/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[Ao(u[0]),Ao(u[1])],u[2]&&u.__original.push(Ao(u[2])));var h=u.__original;if(u[2]!=null){if(Di(i[0],h[0]),Di(i[1],h[2]),Di(i[2],h[1]),c&&c!=="none"){var f=zh(s.node1),p=RL(i,h[0],f*t);r(i[0][0],i[1][0],i[2][0],p,e),i[0][0]=e[3],i[1][0]=e[4],r(i[0][1],i[1][1],i[2][1],p,e),i[0][1]=e[3],i[1][1]=e[4]}if(d&&d!=="none"){var f=zh(s.node2),p=RL(i,h[1],f*t);r(i[0][0],i[1][0],i[2][0],p,e),i[1][0]=e[1],i[2][0]=e[2],r(i[0][1],i[1][1],i[2][1],p,e),i[1][1]=e[1],i[2][1]=e[2]}Di(u[0],i[0]),Di(u[1],i[2]),Di(u[2],i[1])}else{if(Di(a[0],h[0]),Di(a[1],h[1]),Js(o,a[1],a[0]),Ou(o,o),c&&c!=="none"){var f=zh(s.node1);_m(a[0],a[0],o,f*t)}if(d&&d!=="none"){var f=zh(s.node2);_m(a[1],a[1],o,-f*t)}Di(u[0],a[0]),Di(u[1],a[1])}})}function NL(n){return n.type==="view"}var cJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){var i=new xh,a=new ww,o=this.group;this._controller=new Ch(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(e,r,i){var a=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(NL(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Hn(u,c,e)}Tw(e.getGraph(),jh(e));var d=e.getData();s.updateData(d);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,r,i),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,p);var g=e.get("layout");d.graph.eachNode(function(S){var _=S.dataIndex,D=S.getGraphicEl(),C=S.getModel();if(D){D.off("drag").off("dragend");var N=C.get("draggable");N&&D.on("drag",function(et){switch(g){case"force":f.warmUp(),!a._layouting&&a._startForceLayoutIteration(f,p),f.setFixed(_),d.setItemLayout(_,[D.x,D.y]);break;case"circular":d.setItemLayout(_,[D.x,D.y]),S.setLayout({fixed:!0},!0),pw(e,"symbolSize",S,[et.offsetX,et.offsetY]),a.updateLayout(e);break;case"none":default:d.setItemLayout(_,[D.x,D.y]),hw(e.getGraph(),e),a.updateLayout(e);break}}).on("dragend",function(){f&&f.setUnfixed(_)}),D.setDraggable(N,!!C.get("cursor"));var q=C.get(["emphasis","focus"]);q==="adjacency"&&(hn(D).focus=S.getAdjacentDataIndices())}}),d.graph.eachEdge(function(S){var _=S.getGraphicEl(),D=S.getModel().get(["emphasis","focus"]);_&&D==="adjacency"&&(hn(_).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var v=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),y=d.getLayout("cx"),x=d.getLayout("cy");d.graph.eachNode(function(S){TL(S,v,y,x)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,r){var i=this;(function a(){e.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,r,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,d)&&!Bg(u,i,e)}),!NL(e.coordinateSystem)){o.disable();return}o.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){SS(s,u.dx,u.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){wS(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Tw(e.getGraph(),jh(e)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,r=e.getData(),i=jh(e);r.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(e){Tw(e.getGraph(),jh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(gr);const dJ=cJ;var hJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new _h(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){n.prototype.mergeDefaultAndTheme.apply(this,arguments),ll(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,r){var i=e.edges||e.links||[],a=e.data||e.nodes||[],o=this;if(a&&i){Z$(this);var s=cE(a,i,this,!0,l);return mt(s.edges,function(u){$$(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,v=p.getShallow("category"),y=g[v];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=pr.prototype.getModel;function h(p,g){var v=d.call(this,p,g);return v.resolveParentPath=f,v}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=f,p.getModel=h,p});function f(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,r,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(e,i),s=a.graph.getEdgeByIndex(e),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),qr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=SD({series:this,dataIndex:e,multipleSeries:r});return d},t.prototype._updateCategoriesData=function(){var e=we(this.option.categories||[],function(i){return i.value!=null?i:ye({value:0},i)}),r=new hi(["value"],this);r.initData(e),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(br);const fJ=hJ;var pJ={type:"graphRoam",event:"graphRoam",update:"none"};function gJ(n){n.registerChartView(dJ),n.registerSeriesModel(fJ),n.registerProcessor(U$),n.registerVisual(G$),n.registerVisual(K$),n.registerLayout(J$),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,q$),n.registerLayout(eJ),n.registerCoordinateSystem("graphView",{dimensions:Th.dimensions,create:rJ}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Fr),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Fr),n.registerAction(pJ,function(t,e,r){e.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=kS(a,t,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var vJ=.3,mJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new sn,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,r,i,a){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,c=u.dimensions,d=WL(e);s.diff(l).add(h).update(f).remove(p).execute();function h(v){var y=VL(s,o,v,c,u);Dw(y,s,v,d)}function f(v,y){var x=l.getItemGraphicEl(y),S=BL(s,v,c,u);s.setItemGraphicEl(v,x),Hn(x,{shape:{points:S}},e,v),Na(x),Dw(x,s,v,d)}function p(v){var y=l.getItemGraphicEl(v);o.remove(y)}if(!this._initialized){this._initialized=!0;var g=yJ(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},t.prototype.incrementalPrepareRender=function(e,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,r,i){for(var a=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=WL(r),u=this._progressiveEls=[],c=e.start;c<e.end;c++){var d=VL(a,this._dataGroup,c,s,o);d.incremental=!0,Dw(d,a,c,l),u.push(d)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(gr);function yJ(n,t,e){var r=n.model,i=n.getRect(),a=new jn({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),_r(a,{shape:{width:i.width,height:i.height}},t,e),a}function BL(n,t,e,r){for(var i=[],a=0;a<e.length;a++){var o=e[a],s=n.get(n.mapDimension(o),t);xJ(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function VL(n,t,e,r,i){var a=BL(n,e,r,i),o=new Xi({shape:{points:a},z2:10});return t.add(o),n.setItemGraphicEl(e,o),o}function WL(n){var t=n.get("smooth",!0);return t===!0&&(t=vJ),t=Ro(t),td(t)&&(t=0),{smooth:t}}function Dw(n,t,e,r){n.useStyle(t.getItemVisual(e,"style")),n.style.fill=null,n.setShape("smooth",r.smooth);var i=t.getItemModel(e),a=i.getModel("emphasis");ui(n,i,"lineStyle"),Er(n,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function xJ(n,t){return t==="category"?n==null:n==null||isNaN(n)}const SJ=mJ;var wJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,r){return mo(null,this,{useEncodeDefaulter:Ge(_J,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var r=this.coordinateSystem,i=this.getData(),a=[];return r.eachActiveState(i,function(o,s){e===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(br);function _J(n){var t=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(t){var e={};return mt(t.dimensions,function(r){var i=bJ(r);e[r]=i}),e}}function bJ(n){return+n.replace("dim","")}const CJ=wJ;var MJ=["lineStyle","opacity"],TJ={seriesType:"parallel",reset:function(n,t){var e=n.coordinateSystem,r={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(i,a){e.eachActiveState(a,function(o,s){var l=r[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(MJ,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};const DJ=TJ;function kJ(n){PJ(n),AJ(n)}function PJ(n){if(!n.parallel){var t=!1;mt(n.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(n.parallel=[{}])}}function AJ(n){var t=cr(n.parallelAxis);mt(t,function(e){if(rn(e)){var r=e.parallelIndex||0,i=cr(n.parallel)[r];i&&i.parallelAxisDefault&&Mn(e,i.parallelAxisDefault,!1)}})}var IJ=5,EJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){this._model=e,this._api=i,this._handlers||(this._handlers={},mt(LJ,function(a,o){i.getZr().on(o,this._handlers[o]=Ge(a,this))},this)),pc(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,r){$d(this,"_throttledDispatchExpand"),mt(this._handlers,function(i,a){r.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(ye({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Lr),LJ={mousedown:function(n){kw(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint;if(kw(this,"click")&&t){var e=[n.offsetX,n.offsetY],r=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(r>IJ)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!kw(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=e.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function kw(n,t){var e=n._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const OJ=EJ;var RJ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var r=this.option;e&&Mn(r,e,!0),this._initDimensions()},t.prototype.contains=function(e,r){var i=e.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){mt(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){e.hasOwnProperty(r)&&(this.option[r]=e[r])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],r=this.parallelAxisIndex=[],i=sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);mt(i,function(a){e.push("dim"+a.get("dim")),r.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Jn);const NJ=RJ;var BJ=function(n){Zt(t,n);function t(e,r,i,a,o){var s=n.call(this,e,r,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ga);const VJ=BJ;function au(n,t,e,r,i,a){n=n||0;var o=e[1]-e[0];if(i!=null&&(i=Ec(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=Ec(s,[0,o]),i=a=Ec(s,[i,a]),r=0}t[0]=Ec(t[0],e),t[1]=Ec(t[1],e);var l=Pw(t,r);t[r]+=n;var u=i||0,c=e.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=Ec(t[r],c);var d;return d=Pw(t,r),i!=null&&(d.sign!==l.sign||d.span<i)&&(t[1-r]=t[r]+l.sign*i),d=Pw(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function Pw(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ec(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var Aw=mt,FL=Math.min,jL=Math.max,zL=Math.floor,WJ=Math.ceil,HL=Or,FJ=Math.PI,jJ=function(){function n(t,e,r){this.type="parallel",this._axesMap=Ze(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,r)}return n.prototype._init=function(t,e,r){var i=t.dimensions,a=t.parallelAxisIndex;Aw(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),c=this._axesMap.set(o,new VJ(o,uh(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},n.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),r=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=r&&o<=r+e.axisLength&&s>=i&&s<=i+e.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(r){if(t.contains(r,e)){var i=r.getData();Aw(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),jl(o.scale,o.model)},this)}},this)},n.prototype.resize=function(t,e){this._rect=Xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,r=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,c=nv(t.get("axisExpandWidth"),l),d=nv(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,f=t.get("axisExpandWindow"),p;if(f)p=nv(f[1]-f[0],l),f[1]=f[0]+p;else{p=nv(c*(d-1),l);var g=t.get("axisExpandCenter")||zL(u/2);f=[c*g-p/2],f[1]=f[0]+p}var v=(s-p)/(u-d);v<3&&(v=0);var y=[zL(HL(f[0]/c,1))+1,WJ(HL(f[1]/c,1))-1],x=v/c*f[0];return{layout:a,pixelDimIndex:o,layoutBase:e[r[o]],layoutLength:s,axisBase:e[r[1-o]],axisLength:e[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:v,axisExpandWindow:f,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:x}},n.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Aw(r,function(o,s){var l=(i.axisExpandable?HJ:zJ)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:FJ/2,vertical:0},d=[u[a].x+t.x,u[a].y+t.y],h=c[a],f=ea();qs(f,f,h),no(f,f,d),this._axesLayout[o]={position:d,rotation:h,transform:f,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(t){return this._axesMap.get(t)},n.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},n.prototype.eachActiveState=function(t,e,r,i){r==null&&(r=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];mt(o,function(v){s.push(t.mapDimension(v)),l.push(a.get(v).model)});for(var u=this.hasAxisBrushed(),c=r;c<i;c++){var d=void 0;if(!u)d="normal";else{d="active";for(var h=t.getValues(s,c),f=0,p=o.length;f<p;f++){var g=l[f].getActiveState(h[f]);if(g==="inactive"){d="inactive";break}}}e(d,c)}},n.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,r=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(r=!0);return r},n.prototype.axisCoordToPoint=function(t,e){var r=this._axesLayout[e];return Fa([t,0],r.transform)},n.prototype.getAxisLayout=function(t){return on(this._axesLayout[t])},n.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),r=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[r]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",c=e.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),h=d[0]!=null;if(c)h&&c&&s<a*d[0]?(u="jump",l=s-a*d[2]):h&&c&&s>a*(1-d[0])?(u="jump",l=s-a*(1-d[2])):(l=s-a*d[1])>=0&&(l=s-a*(1-d[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?au(l,i,o,"all"):u="none";else{var f=i[1]-i[0],p=o[1]*s/f;i=[jL(0,p-f/2)],i[1]=FL(o[1],i[0]+f),i[0]=i[1]-f}return{axisExpandWindow:i,behavior:u}},n}();function nv(n,t){return FL(jL(n,t[0]),t[1])}function zJ(n,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*n,axisNameAvailableWidth:e,axisLabelShow:!0}}function HJ(n,t){var e=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return n<o[0]?(s=n*a,c=a):n<=o[1]?(s=t.axisExpandWindow0Pos+n*r-t.axisExpandWindow[0],l=r,u=!0):(s=e-(i-1-n)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const UJ=jJ;function GJ(n,t){var e=[];return n.eachComponent("parallel",function(r,i){var a=new UJ(r,n,t);a.name="parallel_"+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,e.push(a)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",Kr).models[0];r.coordinateSystem=i.coordinateSystem}}),e}var KJ={create:GJ};const XJ=KJ;var UL=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return dl([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var r=this.activeIntervals=on(e);if(r)for(var i=r.length-1;i>=0;i--)ha(r[i])},t.prototype.getActiveState=function(e){var r=this.activeIntervals;if(!r.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=r.length;a<o;a++)if(r[a][0]<=e&&e<=r[a][1])return"active";return"inactive"},t}(Jn);Wr(UL,_c);const GL=UL;var ou=!0,Hh=Math.min,Lc=Math.max,YJ=Math.pow,ZJ=1e4,$J=6,JJ=6,KL="globalPan",QJ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qJ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tQ=0,eQ=function(n){Zt(t,n);function t(e){var r=n.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=e,r.group=new sn,r._uid="brushController_"+tQ++,mt(lQ,function(i,a){this._handlers[a]=Ge(i,this)},r),r}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var r=this._zr;this._enableGlobalPan||JG(r,KL,this._uid),mt(this._handlers,function(i,a){r.on(a,i)}),this._brushType=e.brushType,this._brushOption=Mn(on(XL),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;QG(e,KL,this._uid),mt(this._handlers,function(r,i){e.off(i,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var r=this._panels={};mt(e,function(i){r[i.panelId]=on(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=we(e,function(h){return Mn(on(XL),h,!0)});var r="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Go(i,e,u,l).add(c).update(c).remove(d).execute(),this;function l(h,f){return(h.id!=null?h.id:r+f)+"-"+h.brushType}function u(h,f){return l(h.__brushOption,f)}function c(h,f){var p=e[h];if(f!=null&&i[f]===s)a[h]=i[f];else{var g=a[h]=f!=null?(i[f].__brushOption=p,i[f]):ZL(o,YL(o,p));Iw(o,g)}}function d(h){i[h]!==s&&o.group.remove(i[h])}},t.prototype.unmount=function(){return this.enableBrush(!1),Ow(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(la);function YL(n,t){var e=rv[t.brushType].createCover(n,t);return e.__brushOption=t,JL(e,t),n.group.add(e),e}function ZL(n,t){var e=Ew(t);return e.endCreating&&(e.endCreating(n,t),JL(t,t.__brushOption)),t}function $L(n,t){var e=t.__brushOption;Ew(t).updateCoverShape(n,t,e.range,e)}function JL(n,t){var e=t.z;e==null&&(e=ZJ),n.traverse(function(r){r.z=e,r.z2=e})}function Iw(n,t){Ew(t).updateCommon(n,t),$L(n,t)}function Ew(n){return rv[n.__brushOption.brushType]}function Lw(n,t,e){var r=n._panels;if(!r)return ou;var i,a=n._transform;return mt(r,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function QL(n,t){var e=n._panels;if(!e)return ou;var r=t.__brushOption.panelId;return r!=null?e[r]:ou}function Ow(n){var t=n._covers,e=t.length;return mt(t,function(r){n.group.remove(r)},n),t.length=0,!!e}function su(n,t){var e=we(n._covers,function(r){var i=r.__brushOption,a=on(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});n.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function nQ(n){var t=n._track;if(!t.length)return!1;var e=t[t.length-1],r=t[0],i=e[0]-r[0],a=e[1]-r[1],o=YJ(i*i+a*a,.5);return o>$J}function qL(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function tO(n,t,e,r){var i=new sn;return i.add(new jn({name:"main",style:Nw(e),silent:!0,draggable:!0,cursor:"move",drift:xn(rO,n,t,i,["n","s","w","e"]),ondragend:xn(su,t,{isEnd:!0})})),mt(r,function(a){i.add(new jn({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xn(rO,n,t,i,a),ondragend:xn(su,t,{isEnd:!0})}))}),i}function eO(n,t,e,r){var i=r.brushStyle.lineWidth||0,a=Lc(i,JJ),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,c=e[0][1],d=e[1][1],h=c-a+i/2,f=d-a+i/2,p=c-o,g=d-s,v=p+i,y=g+i;Qo(n,t,"main",o,s,p,g),r.transformable&&(Qo(n,t,"w",l,u,a,y),Qo(n,t,"e",h,u,a,y),Qo(n,t,"n",l,u,v,a),Qo(n,t,"s",l,f,v,a),Qo(n,t,"nw",l,u,a,a),Qo(n,t,"ne",h,u,a,a),Qo(n,t,"sw",l,f,a,a),Qo(n,t,"se",h,f,a,a))}function Rw(n,t){var e=t.__brushOption,r=e.transformable,i=t.childAt(0);i.useStyle(Nw(e)),i.attr({silent:!r,cursor:r?"move":"default"}),mt([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Bw(n,a[0]):iQ(n,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?qJ[s]+"-resize":null})})}function Qo(n,t,e,r,i,a,o){var s=t.childOfName(e);s&&s.setShape(oQ(Vw(n,t,[[r,i],[r+a,i+o]])))}function Nw(n){return nn({strokeNoScale:!0},n.brushStyle)}function nO(n,t,e,r){var i=[Hh(n,e),Hh(t,r)],a=[Lc(n,e),Lc(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function rQ(n){return Ll(n.group)}function Bw(n,t){var e={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Up(e[t],rQ(n));return r[i]}function iQ(n,t){var e=[Bw(n,t[0]),Bw(n,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function rO(n,t,e,r,i,a){var o=e.__brushOption,s=n.toRectRange(o.range),l=iO(t,i,a);mt(r,function(u){var c=QJ[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(nO(s[0][0],s[1][0],s[0][1],s[1][1])),Iw(t,e),su(t,{isEnd:!1})}function aQ(n,t,e,r){var i=t.__brushOption.range,a=iO(n,e,r);mt(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Iw(n,t),su(n,{isEnd:!1})}function iO(n,t,e){var r=n.group,i=r.transformCoordToLocal(t,e),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Vw(n,t,e){var r=QL(n,t);return r&&r!==ou?r.clipPath(e,n._transform):on(e)}function oQ(n){var t=Hh(n[0][0],n[1][0]),e=Hh(n[0][1],n[1][1]),r=Lc(n[0][0],n[1][0]),i=Lc(n[0][1],n[1][1]);return{x:t,y:e,width:r-t,height:i-e}}function sQ(n,t,e){if(!(!n._brushType||uQ(n,t.offsetX,t.offsetY))){var r=n._zr,i=n._covers,a=Lw(n,t,e);if(!n._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===ou||s.panelId===a.panelId)&&rv[s.brushType].contain(i[o],e[0],e[1]))return}a&&r.setCursorStyle("crosshair")}}function Ww(n){var t=n.event;t.preventDefault&&t.preventDefault()}function Fw(n,t,e){return n.childOfName("main").contain(t,e)}function aO(n,t,e,r){var i=n._creatingCover,a=n._creatingPanel,o=n._brushOption,s;if(n._track.push(e.slice()),nQ(n)||i){if(a&&!i){o.brushMode==="single"&&Ow(n);var l=on(o);l.brushType=oO(l.brushType,a),l.panelId=a===ou?null:a.panelId,i=n._creatingCover=YL(n,l),n._covers.push(i)}if(i){var u=rv[oO(n._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(Vw(n,i,n._track)),r&&(ZL(n,i),u.updateCommon(n,i)),$L(n,i),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&Lw(n,t,e)&&Ow(n)&&(s={isEnd:r,removeOnClick:!0});return s}function oO(n,t){return n==="auto"?t.defaultBrushType:n}var lQ={mousedown:function(n){if(this._dragging)sO(this,n);else if(!n.target||!n.target.draggable){Ww(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var e=this._creatingPanel=Lw(this,n,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,r=this.group.transformCoordToLocal(t,e);if(sQ(this,n,r),this._dragging){Ww(n);var i=aO(this,n,r,!1);i&&su(this,i)}},mouseup:function(n){sO(this,n)}};function sO(n,t){if(n._dragging){Ww(t);var e=t.offsetX,r=t.offsetY,i=n.group.transformCoordToLocal(e,r),a=aO(n,t,i,!0);n._dragging=!1,n._track=[],n._creatingCover=null,a&&su(n,a)}}function uQ(n,t,e){var r=n._zr;return t<0||t>r.getWidth()||e<0||e>r.getHeight()}var rv={lineX:lO(0),lineY:lO(1),rect:{createCover:function(n,t){function e(r){return r}return tO({toRectRange:e,fromRectRange:e},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=qL(n);return nO(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,e,r){eO(n,t,e,r)},updateCommon:Rw,contain:Fw},polygon:{createCover:function(n,t){var e=new sn;return e.add(new Xi({name:"main",style:Nw(t),silent:!0})),e},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0)),t.add(new Ki({name:"main",draggable:!0,drift:xn(aQ,n,t),ondragend:xn(su,n,{isEnd:!0})}))},updateCoverShape:function(n,t,e,r){t.childAt(0).setShape({points:Vw(n,t,e)})},updateCommon:Rw,contain:Fw}};function lO(n){return{createCover:function(t,e){return tO({toRectRange:function(r){var i=[r,[0,100]];return n&&i.reverse(),i},fromRectRange:function(r){return r[n]}},t,e,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var e=qL(t),r=Hh(e[0][n],e[1][n]),i=Lc(e[0][n],e[1][n]);return[r,i]},updateCoverShape:function(t,e,r,i){var a,o=QL(t,e);if(o!==ou&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(n);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,a];n&&l.reverse(),eO(t,e,l,i)},updateCommon:Rw,contain:Fw}}const jw=eQ;function uO(n){return n=zw(n),function(t){return QD(t,n)}}function cO(n,t){return n=zw(n),function(e){var r=t!=null?t:e,i=r?n.width:n.height,a=r?n.x:n.y;return[a,a+(i||0)]}}function dO(n,t,e){var r=zw(n);return function(i,a){return r.contain(a[0],a[1])&&!Bg(i,t,e)}}function zw(n){return wn.create(n)}var cQ=["axisLine","axisTickLabel","axisName"],dQ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){n.prototype.init.apply(this,arguments),(this._brushController=new jw(r.getZr())).on("brush",Ge(this._onBrush,this))},t.prototype.render=function(e,r,i,a){if(!hQ(e,r,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new sn,this.group.add(this._axisGroup),!!e.get("show")){var s=pQ(e,r),l=s.coordinateSystem,u=e.getAreaSelectStyle(),c=u.width,d=e.axis.dim,h=l.getAxisLayout(d),f=ye({strokeContainThreshold:c},h),p=new Zo(e,f);mt(cQ,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(f,u,e,s,c,i),Xd(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,r,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=wn.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:uO(d),isTargetByCursor:dO(d,s,a),getLinearBrushOtherExtent:cO(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(fQ(i))},t.prototype._onBrush=function(e){var r=e.areas,i=this.axisModel,a=i.axis,o=we(r,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Lr);function hQ(n,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===n}function fQ(n){var t=n.axis;return we(n.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function pQ(n,t){return t.getComponent("parallel",n.get("parallelIndex"))}const gQ=dQ;var vQ={type:"axisAreaSelect",event:"axisAreaSelected"};function mQ(n){n.registerAction(vQ,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),n.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var yQ={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function hO(n){n.registerComponentView(OJ),n.registerComponentModel(NJ),n.registerCoordinateSystem("parallel",XJ),n.registerPreprocessor(kJ),n.registerComponentModel(GL),n.registerComponentView(gQ),bc(n,"parallel",GL,yQ),mQ(n)}function xQ(n){_n(hO),n.registerChartView(SJ),n.registerSeriesModel(CJ),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,DJ)}var SQ=["color","borderColor"],wQ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,r,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,r,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,r):this._incrementalRenderNormal(e,r)},t.prototype.eachRendered=function(e){Ts(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e){var r=e.getData(),i=this._data,a=this.group,o=r.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&fO(u,d))return;var h=Hw(d,c,!0);_r(h,{shape:{points:d.ends}},e,c),Uw(h,r,c,o),a.add(h),r.setItemGraphicEl(c,h)}}).update(function(c,d){var h=i.getItemGraphicEl(d);if(!r.hasValue(c)){a.remove(h);return}var f=r.getItemLayout(c);if(s&&fO(u,f)){a.remove(h);return}h?(Hn(h,{shape:{points:f.ends}},e,c),Na(h)):h=Hw(f,c),Uw(h,r,c,o),a.add(h),r.setItemGraphicEl(c,h)}).remove(function(c){var d=i.getItemGraphicEl(c);d&&a.remove(d)}).execute(),this._data=r},t.prototype._renderLarge=function(e){this._clear(),pO(e,this.group);var r=e.get("clip",!0)?mh(e.coordinateSystem,!1,e):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,r){for(var i=r.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),l=Hw(s,o);Uw(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,r){pO(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(gr),_Q=function(){function n(){}return n}(),bQ=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new _Q},t.prototype.buildPath=function(e,r){var i=r.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(In);function Hw(n,t,e){var r=n.ends;return new bQ({shape:{points:e?CQ(r,n):r},z2:100})}function fO(n,t){for(var e=!0,r=0;r<t.ends.length;r++)if(n.contain(t.ends[r][0],t.ends[r][1])){e=!1;break}return e}function Uw(n,t,e,r){var i=t.getItemModel(e);n.useStyle(t.getItemVisual(e,"style")),n.style.strokeNoScale=!0,n.__simpleBox=r,ui(n,i)}function CQ(n,t){return we(n,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var MQ=function(){function n(){}return n}(),Gw=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new MQ},t.prototype.buildPath=function(e,r){for(var i=r.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];e.moveTo(o,i[a++]),e.lineTo(o,i[a++])}else a+=3},t}(In);function pO(n,t,e,r){var i=n.getData(),a=i.getLayout("largePoints"),o=new Gw({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Gw({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Gw({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),Kw(1,o,n,i),Kw(-1,s,n,i),Kw(0,l,n,i),r&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function Kw(n,t,e,r){var i=e.get(["itemStyle",n>0?"borderColor":"borderColor0"])||e.get(["itemStyle",n>0?"color":"color0"]);n===0&&(i=e.get(["itemStyle","borderColorDoji"]));var a=e.getModel("itemStyle").getItemStyle(SQ);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const TQ=wQ;var gO=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,r,i){var a=r.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(br);Wr(gO,nE,!0);const DQ=gO;function kQ(n){!n||!Se(n.series)||mt(n.series,function(t){rn(t)&&t.type==="k"&&(t.type="candlestick")})}var PQ=["itemStyle","borderColor"],AQ=["itemStyle","borderColor0"],IQ=["itemStyle","borderColorDoji"],EQ=["itemStyle","color"],LQ=["itemStyle","color0"],OQ={seriesType:"candlestick",plan:lc(),performRawSeries:!0,reset:function(n,t){function e(a,o){return o.get(a>0?EQ:LQ)}function r(a,o){return o.get(a===0?IQ:a>0?PQ:AQ)}if(!t.isSeriesFiltered(n)){var i=n.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");ye(d,c)}}}}}};const RQ=OQ;var NQ={seriesType:"candlestick",plan:lc(),reset:function(n){var t=n.coordinateSystem,e=n.getData(),r=BQ(n,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),l=we(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),u=l[0],c=l[1],d=l[2],h=l[3];if(e.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:f};function f(g,v){for(var y,x=v.getStore();(y=g.next())!=null;){var S=x.get(s,y),_=x.get(u,y),D=x.get(c,y),C=x.get(d,y),N=x.get(h,y),q=Math.min(_,D),et=Math.max(_,D),lt=Xt(q,S),ft=Xt(et,S),_t=Xt(C,S),Ct=Xt(N,S),kt=[];Vt(kt,ft,0),Vt(kt,lt,1),kt.push(Yt(Ct),Yt(ft),Yt(_t),Yt(lt));var Ot=v.getItemModel(y),Nt=!!Ot.get(["itemStyle","borderColorDoji"]);v.setItemLayout(y,{sign:vO(x,y,_,D,c,Nt),initBaseline:_>D?ft[a]:lt[a],ends:kt,brushRect:Ut(C,N,S)})}function Xt(ue,ie){var Gt=[];return Gt[i]=ie,Gt[a]=ue,isNaN(ie)||isNaN(ue)?[NaN,NaN]:t.dataToPoint(Gt)}function Vt(ue,ie,Gt){var Qt=ie.slice(),me=ie.slice();Qt[i]=Hp(Qt[i]+r/2,1,!1),me[i]=Hp(me[i]-r/2,1,!0),Gt?ue.push(Qt,me):ue.push(me,Qt)}function Ut(ue,ie,Gt){var Qt=Xt(ue,Gt),me=Xt(ie,Gt);return Qt[i]-=r/2,me[i]-=r/2,{x:Qt[0],y:Qt[1],width:a?r:me[0]-Qt[0],height:a?me[1]-Qt[1]:r}}function Yt(ue){return ue[i]=Hp(ue[i],1),ue}}function p(g,v){for(var y=yo(g.count*4),x=0,S,_=[],D=[],C,N=v.getStore(),q=!!n.get(["itemStyle","borderColorDoji"]);(C=g.next())!=null;){var et=N.get(s,C),lt=N.get(u,C),ft=N.get(c,C),_t=N.get(d,C),Ct=N.get(h,C);if(isNaN(et)||isNaN(_t)||isNaN(Ct)){y[x++]=NaN,x+=3;continue}y[x++]=vO(N,C,lt,ft,c,q),_[i]=et,_[a]=_t,S=t.dataToPoint(_,null,D),y[x++]=S?S[0]:NaN,y[x++]=S?S[1]:NaN,_[a]=Ct,S=t.dataToPoint(_,null,D),y[x++]=S?S[1]:NaN}v.setLayout("largePoints",y)}}};function vO(n,t,e,r,i,a){var o;return e>r?o=-1:e<r?o=1:o=a?0:t>0?n.get(i,t-1)<=r?1:-1:1,o}function BQ(n,t){var e=n.getBaseAxis(),r,i=e.type==="category"?e.getBandWidth():(r=e.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=Oe(pn(n.get("barMaxWidth"),i),i),o=Oe(pn(n.get("barMinWidth"),1),i),s=n.get("barWidth");return s!=null?Oe(s,i):Math.max(Math.min(i/2,a),o)}const VQ=NQ;function WQ(n){n.registerChartView(TQ),n.registerSeriesModel(DQ),n.registerPreprocessor(kQ),n.registerVisual(RQ),n.registerLayout(VQ)}function mO(n,t){var e=t.rippleEffectColor||t.color;n.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var FQ=function(n){Zt(t,n);function t(e,r){var i=n.call(this)||this,a=new yh(e,r),o=new sn;return i.add(a),i.add(o),i.updateData(e,r),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var r=e.symbolType,i=e.color,a=e.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=Rr(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}mO(o,e)},t.prototype.updateEffectAnimation=function(e){for(var r=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(r[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}mO(i,e)},t.prototype.highlight=function(){Wo(this)},t.prototype.downplay=function(){Fo(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,r){var i=this,a=e.hostModel;this.childAt(0).updateData(e,r);var o=this.childAt(1),s=e.getItemModel(r),l=e.getItemVisual(r,"symbol"),u=vc(e.getItemVisual(r,"symbolSize")),c=e.getItemVisual(r,"style"),d=c&&c.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(v){v.setStyle("fill",d)});var f=Rl(e.getItemVisual(r,"symbolOffset"),u);f&&(o.x=f[0],o.y=f[1]);var p=e.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var g={};g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=r/e.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=d,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):v==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,Er(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(sn);const jQ=FQ;var zQ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new xh(jQ)},t.prototype.render=function(e,r,i){var a=e.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var r=e.coordinateSystem,i=r&&r.getArea&&r.getArea();return e.get("clip",!0)?i:null},t.prototype.updateTransform=function(e,r,i){var a=e.getData();this.group.dirty();var o=Sh("").reset(e,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var r=e.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=nV(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(gr);const HQ=zQ;var UQ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,r){return mo(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,r,i){return i.point(r.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(br);const GQ=UQ;function KQ(n){n.registerChartView(HQ),n.registerSeriesModel(GQ),n.registerLayout(Sh("effectScatter"))}var XQ=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this)||this;return a.add(a.createLine(e,r,i)),a._updateEffectSymbol(e,r),a}return t.prototype.createLine=function(e,r,i){return new xw(e,r,i)},t.prototype._updateEffectSymbol=function(e,r){var i=e.getItemModel(r),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");Se(o)||(o=[o,o]);var l=e.getItemVisual(r,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Rr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,a,r))},t.prototype._updateEffectAnimation=function(e,r,i){var a=this.childAt(1);if(a){var o=e.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),d=ii(r.get("delay"),function(f){return f/e.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;qe(d)?h=d(i):h=d,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,r,i,a,o){if(r>0){e.__t=0;var s=this,l=e.animate("",a).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});a||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return us(e.__p1,e.__cp1)+us(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,r){e.__p1=r[0],e.__p2=r[1],e.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(e,r,i){this.childAt(0).updateData(e,r,i),this._updateEffectSymbol(e,r)},t.prototype._updateSymbolPosition=function(e){var r=e.__p1,i=e.__p2,a=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=ai,c=Fm;s[0]=u(r[0],a[0],i[0],o),s[1]=u(r[1],a[1],i[1],o);var d=e.__t<1?c(r[0],a[0],i[0],o):c(i[0],a[0],r[0],1-o),h=e.__t<1?c(r[1],a[1],i[1],o):c(i[1],a[1],r[1],1-o);e.rotation=-Math.atan2(h,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=us(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*us(r,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,r){this.childAt(0).updateLayout(e,r);var i=e.getItemModel(r).getModel("effect");this._updateEffectAnimation(e,i,r)},t}(sn);const yO=XQ;var YQ=function(n){Zt(t,n);function t(e,r,i){var a=n.call(this)||this;return a._createPolyline(e,r,i),a}return t.prototype._createPolyline=function(e,r,i){var a=e.getItemLayout(r),o=new Xi({shape:{points:a}});this.add(o),this._updateCommonStl(e,r,i)},t.prototype.updateData=function(e,r,i){var a=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(r)}};Hn(o,s,a,r),this._updateCommonStl(e,r,i)},t.prototype._updateCommonStl=function(e,r,i){var a=this.childAt(0),o=e.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var d=o.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),c=d.get("disabled"),l=d.get("focus"),u=d.get("blurScope")}a.useStyle(e.getItemVisual(r,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var h=a.ensureState("emphasis");h.style=s,Er(this,l,u,c)},t.prototype.updateLayout=function(e,r){var i=this.childAt(0);i.setShape("points",e.getItemLayout(r))},t}(sn);const xO=YQ;var ZQ=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,r,i){return new xO(e,r,i)},t.prototype._updateAnimationPoints=function(e,r){this._points=r;for(var i=[0],a=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];a+=us(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var r=e.__t<1?e.__t:2-e.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-a[l])/(a[l+1]-a[l]),d=i[l],h=i[l+1];e.x=d[0]*(1-c)+c*h[0],e.y=d[1]*(1-c)+c*h[1];var f=e.__t<1?h[0]-d[0]:d[0]-h[0],p=e.__t<1?h[1]-d[1]:d[1]-h[1];e.rotation=-Math.atan2(p,f)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,e.ignore=!1}},t}(yO);const $Q=ZQ;var JQ=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),QQ=function(n){Zt(t,n);function t(e){var r=n.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JQ},t.prototype.buildPath=function(e,r){var i=r.segs,a=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){e.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],d=i[o++],h=i[o++];if(e.moveTo(u,c),a>0){var f=(u+d)/2-(c-h)*a,p=(c+h)/2-(d-u)*a;e.quadraticCurveTo(f,p,d,h)}else e.lineTo(d,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,r){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var d=a[u++],h=a[u++],f=1;f<c;f++){var p=a[u++],g=a[u++];if(xs(d,h,p,g,s,e,r))return l}l++}else for(var l=0,u=0;u<a.length;){var d=a[u++],h=a[u++],p=a[u++],g=a[u++];if(o>0){var v=(d+p)/2-(h-g)*o,y=(h+g)/2-(p-d)*o;if(nM(d,h,v,y,p,g,s,e,r))return l}else if(xs(d,h,p,g,s,e,r))return l;l++}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),a=this.getBoundingRect();if(e=i[0],r=i[1],a.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],d=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(d,o),l=Math.max(d,l)}e=this._rect=new wn(a,o,s,l)}return e},t}(In),qQ=function(){function n(){this.group=new sn}return n.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},n.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(t,e){var r=this._newAdded[0],i=e.getLayout("linesPoints"),a=r&&r.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,e),l.__startIndex=t.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},n.prototype._create=function(){var t=new QQ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},n.prototype._setCommon=function(t,e,r){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=e.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=hn(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const tq=qQ;var eq={seriesType:"lines",plan:lc(),reset:function(n){var t=n.coordinateSystem;if(t){var e=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(e){for(var u=0,c=i.start;c<i.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var d=0,h=[],c=i.start;c<i.end;c++){var f=n.getLineCoords(c,o);e&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(o[p],!1,h),s[d++]=h[0],s[d++]=h[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=a.getItemModel(c),f=n.getLineCoords(c,o),v=[];if(e)for(var y=0;y<f;y++)v.push(t.dataToPoint(o[y]));else{v[0]=t.dataToPoint(o[0]),v[1]=t.dataToPoint(o[1]);var x=g.get(["lineStyle","curveness"]);+x&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*x,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*x])}a.setItemLayout(c,v)}}}}}};const SO=eq;var nq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=e.getData(),o=this._updateLineDraw(a,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var d=e.get("clip",!0)&&mh(e.coordinateSystem,!1,e);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var a=e.getData(),o=this._updateLineDraw(a,e);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._lineDraw.incrementalUpdate(e,r.getData()),this._finished=e.end===r.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,r,i){var a=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=SO.reset(e,r,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,r){var i=this._lineDraw,a=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new tq:new ww(o?a?$Q:xO:a?yO:xw),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var r=e.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(e,r){this.remove(e,r)},t.type="lines",t}(gr);const rq=nq;var iq=typeof Uint32Array>"u"?Array:Uint32Array,aq=typeof Float64Array>"u"?Array:Float64Array;function wO(n){var t=n.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(n.data=we(t,function(e){var r=[e[0].coord,e[1].coord],i={coords:r};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),ym([i,e[0],e[1]])}))}var oq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],wO(e);var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(wO(e),e.data){var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var r=this._processFlatCoordsArray(e.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Cf(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Cf(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),e.data=new Float32Array(r.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var r=this.getData().getItemModel(e),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],a=this._flatCoordsOffset[e*2+1],o=0;o<a;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),$n(e[0])){for(var i=e.length,a=new iq(i),o=new aq(i),s=0,l=0,u=0,c=0;c<i;){u++;var d=e[c++];a[l++]=s+r,a[l++]=d;for(var h=0;h<d;h++){var f=e[c++],p=e[c++];o[s++]=f,o[s++]=p,c>i}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,r){if(0)var i;var a=new hi(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;a.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),a},t.prototype.formatTooltip=function(e,r,i){var a=this.getData(),o=a.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),qr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),r=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(br);const sq=oq;function iv(n){return n instanceof Array||(n=[n,n]),n}var lq={seriesType:"lines",reset:function(n){var t=iv(n.get("symbol")),e=iv(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",e&&e[0]),r.setVisual("toSymbolSize",e&&e[1]);function i(a,o){var s=a.getItemModel(o),l=iv(s.getShallow("symbol",!0)),u=iv(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};const uq=lq;function cq(n){n.registerChartView(rq),n.registerSeriesModel(sq),n.registerLayout(SO),n.registerVisual(uq)}var dq=256,hq=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Aa.createCanvas();this.canvas=t}return n.prototype.update=function(t,e,r,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),f=t.length;d.width=e,d.height=r;for(var p=0;p<f;++p){var g=t[p],v=g[0],y=g[1],x=g[2],S=i(x);h.globalAlpha=S,h.drawImage(s,v-c,y-c)}if(!d.width||!d.height)return d;for(var _=h.getImageData(0,0,d.width,d.height),D=_.data,C=0,N=D.length,q=this.minOpacity,et=this.maxOpacity,lt=et-q;C<N;){var S=D[C+3]/256,ft=Math.floor(S*(dq-1))*4;if(S>0){var _t=o(S)?l:u;S>0&&(S=S*lt+q),D[C++]=_t[ft],D[C++]=_t[ft+1],D[C++]=_t[ft+2],D[C++]=_t[ft+3]*S*256}else C+=4}return h.putImageData(_,0,0),d},n.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Aa.createCanvas()),e=this.pointSize+this.blurSize,r=e*2;t.width=r,t.height=r;var i=t.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},n.prototype._getGradient=function(t,e){for(var r=this._gradientPixels,i=r[e]||(r[e]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},n}();const fq=hq;function pq(n,t,e){var r=n[1]-n[0];t=we(t,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&e[s]}}function gq(n,t){var e=n[1]-n[0];return t=[(t[0]-n[0])/e,(t[1]-n[0])/e],function(r){return r>=t[0]&&r<=t[1]}}function _O(n){var t=n.dimensions;return t[0]==="lng"&&t[1]==="lat"}var vq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):_O(o)&&this._renderOnGeo(o,e,a,i)},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,r,i,a){var o=r.coordinateSystem;o&&(_O(o)?this.render(r,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,a,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Ts(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,r,i,a,o){var s=e.coordinateSystem,l=Xl(s,"cartesian2d"),u,c,d,h;if(l){var f=s.getAxis("x"),p=s.getAxis("y");u=f.getBandWidth()+.5,c=p.getBandWidth()+.5,d=f.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,v=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),x=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),_=e.get(["itemStyle","borderRadius"]),D=Qr(e),C=e.getModel("emphasis"),N=C.get("focus"),q=C.get("blurScope"),et=C.get("disabled"),lt=l?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],ft=i;ft<a;ft++){var _t=void 0,Ct=v.getItemVisual(ft,"style");if(l){var kt=v.get(lt[0],ft),Ot=v.get(lt[1],ft);if(isNaN(v.get(lt[2],ft))||isNaN(kt)||isNaN(Ot)||kt<d[0]||kt>d[1]||Ot<h[0]||Ot>h[1])continue;var Nt=s.dataToPoint([kt,Ot]);_t=new jn({shape:{x:Nt[0]-u/2,y:Nt[1]-c/2,width:u,height:c},style:Ct})}else{if(isNaN(v.get(lt[1],ft)))continue;_t=new jn({z2:1,shape:s.dataToRect([v.get(lt[0],ft)]).contentShape,style:Ct})}if(v.hasItemOption){var Xt=v.getItemModel(ft),Vt=Xt.getModel("emphasis");y=Vt.getModel("itemStyle").getItemStyle(),x=Xt.getModel(["blur","itemStyle"]).getItemStyle(),S=Xt.getModel(["select","itemStyle"]).getItemStyle(),_=Xt.get(["itemStyle","borderRadius"]),N=Vt.get("focus"),q=Vt.get("blurScope"),et=Vt.get("disabled"),D=Qr(Xt)}_t.shape.r=_;var Ut=e.getRawValue(ft),Yt="-";Ut&&Ut[2]!=null&&(Yt=Ut[2]+""),ci(_t,D,{labelFetcher:e,labelDataIndex:ft,defaultOpacity:Ct.opacity,defaultText:Yt}),_t.ensureState("emphasis").style=y,_t.ensureState("blur").style=x,_t.ensureState("select").style=S,Er(_t,N,q,et),_t.incremental=o,o&&(_t.states.emphasis.hoverLayer=!0),g.add(_t),v.setItemGraphicEl(ft,_t),this._progressiveEls&&this._progressiveEls.push(_t)}},t.prototype._renderOnGeo=function(e,r,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new fq;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=e.getViewRect().clone(),d=e.getRoamTransform();c.applyTransform(d);var h=Math.max(c.x,0),f=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),v=p-h,y=g-f,x=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(x,function(N,q,et){var lt=e.dataToPoint([N,q]);return lt[0]-=h,lt[1]-=f,lt.push(et),lt}),_=i.getExtent(),D=i.type==="visualMap.continuous"?gq(_,i.option.range):pq(_,i.getPieceList(),i.option.selected);u.update(S,v,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},D);var C=new li({style:{width:v,height:y,x:h,y:f,image:u.canvas},silent:!0});this.group.add(C)},t.type="heatmap",t}(gr);const mq=vq;var yq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return mo(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Bd.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(br);const xq=yq;function Sq(n){n.registerChartView(mq),n.registerSeriesModel(xq)}var wq=["itemStyle","borderWidth"],bO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Xw=new Uo,_q=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:bO[+c],categoryDim:bO[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var g=AO(o,p),v=CO(o,p,g,h),y=IO(o,h,v);o.setItemGraphicEl(p,y),a.add(y),OO(y,h,v)}}).update(function(p,g){var v=s.getItemGraphicEl(g);if(!o.hasValue(p)){a.remove(v);return}var y=AO(o,p),x=CO(o,p,y,h),S=LO(o,x);v&&S!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(p,null),v=null),v?Pq(v,h,x):v=IO(o,h,x,!0),o.setItemGraphicEl(p,v),v.__pictorialSymbolMeta=x,a.add(v),OO(v,h,x)}).remove(function(p){var g=s.getItemGraphicEl(p);g&&EO(s,p,g.__pictorialSymbolMeta.animationModel,g)}).execute();var f=e.get("clip",!0)?mh(e.coordinateSystem,!1,e):null;return f?a.setClipPath(f):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,r){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){EO(a,hn(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(gr);function CO(n,t,e,r){var i=n.getItemLayout(t),a=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,d=e.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:e,symbolType:n.getItemVisual(t,"symbol")||"circle",style:n.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?e:null,hoverScale:d&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};bq(e,a,i,r,h),Cq(n,t,i,a,o,h.boundingLength,h.pxSign,c,r,h),Mq(e,h.symbolScale,u,r,h);var f=h.symbolSize,p=Rl(e.get("symbolOffset"),f);return Tq(e,f,i,a,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,r,h),h}function bq(n,t,e,r,i){var a=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),c;if(Se(o)){var d=[Yw(s,o[0])-l,Yw(s,o[1])-l];d[1]<d[0]&&d.reverse(),c=d[u]}else o!=null?c=Yw(s,o)-l:t?c=r.coordSysExtent[a.index][u]-l:c=e[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=e[a.wh]),i.pxSign=c>0?1:-1}function Yw(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function Cq(n,t,e,r,i,a,o,s,l,u){var c=l.valueDim,d=l.categoryDim,h=Math.abs(e[d.wh]),f=n.getItemVisual(t,"symbolSize"),p;Se(f)?p=f.slice():f==null?p=["100%","100%"]:p=[f,f],p[d.index]=Oe(p[d.index],h),p[c.index]=Oe(p[c.index],r?h:Math.abs(a)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Mq(n,t,e,r,i){var a=n.get(wq)||0;a&&(Xw.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Xw.updateTransform(),a/=Xw.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function Tq(n,t,e,r,i,a,o,s,l,u,c,d){var h=c.categoryDim,f=c.valueDim,p=d.pxSign,g=Math.max(t[f.index]+s,0),v=g;if(r){var y=Math.abs(l),x=ii(n.get("symbolMargin"),"15%")+"",S=!1;x.lastIndexOf("!")===x.length-1&&(S=!0,x=x.slice(0,x.length-1));var _=Oe(x,t[f.index]),D=Math.max(g+_*2,0),C=S?0:_*2,N=LC(r),q=N?r:RO((y+C)/D),et=y-q*g;_=et/2/(S?q:Math.max(q-1,1)),D=g+_*2,C=S?0:_*2,!N&&r!=="fixed"&&(q=u?RO((Math.abs(u)+C)/D):0),v=q*D-C,d.repeatTimes=q,d.symbolMargin=_}var lt=p*(v/2),ft=d.pathPosition=[];ft[h.index]=e[h.wh]/2,ft[f.index]=o==="start"?lt:o==="end"?l-lt:l/2,a&&(ft[0]+=a[0],ft[1]+=a[1]);var _t=d.bundlePosition=[];_t[h.index]=e[h.xy],_t[f.index]=e[f.xy];var Ct=d.barRectShape=ye({},e);Ct[f.wh]=p*Math.max(Math.abs(e[f.wh]),Math.abs(ft[f.index]+lt)),Ct[h.wh]=e[h.wh];var kt=d.clipShape={};kt[h.xy]=-e[h.xy],kt[h.wh]=c.ecSize[h.wh],kt[f.xy]=0,kt[f.wh]=e[f.wh]}function MO(n){var t=n.symbolPatternSize,e=Rr(n.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function TO(n,t,e,r){var i=n.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,c=0,d=a[t.valueDim.index]+o+e.symbolMargin*2;for(Zw(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?Oc(g,null,p(c),e,r):Oc(g,null,{scaleX:0,scaleY:0},e,r,function(){i.remove(g)}),c++});c<u;c++){var h=MO(e);h.__pictorialAnimationIndex=c,h.__pictorialRepeatTimes=u,i.add(h);var f=p(c);Oc(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},e,r)}function p(g){var v=s.slice(),y=e.pxSign,x=g;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(x=u-1-g),v[l.index]=d*(x-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function DO(n,t,e,r){var i=n.__pictorialBundle,a=n.__pictorialMainPath;a?Oc(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,r):(a=n.__pictorialMainPath=MO(e),i.add(a),Oc(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,r))}function kO(n,t,e){var r=ye({},t.barRectShape),i=n.__pictorialBarRect;i?Oc(i,null,{shape:r},t,e):(i=n.__pictorialBarRect=new jn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,n.add(i))}function PO(n,t,e,r){if(e.symbolClip){var i=n.__pictorialClipPath,a=ye({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)Hn(i,{shape:a},s,l);else{a[o.wh]=0,i=new jn({shape:a}),n.__pictorialBundle.setClipPath(i),n.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Z[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function AO(n,t){var e=n.getItemModel(t);return e.getAnimationDelayParams=Dq,e.isAnimationEnabled=kq,e}function Dq(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function kq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function IO(n,t,e,r){var i=new sn,a=new sn;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?TO(i,t,e):DO(i,t,e),kO(i,e,r),PO(i,t,e,r),i.__pictorialShapeStr=LO(n,e),i.__pictorialSymbolMeta=e,i}function Pq(n,t,e){var r=e.animationModel,i=e.dataIndex,a=n.__pictorialBundle;Hn(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},r,i),e.symbolRepeat?TO(n,t,e,!0):DO(n,t,e,!0),kO(n,e,!0),PO(n,t,e,!0)}function EO(n,t,e,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];Zw(r,function(o){a.push(o)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(e=null),mt(a,function(o){ws(o,{scaleX:0,scaleY:0},e,t,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(t,null)}function LO(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Zw(n,t,e){mt(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&t.call(e,r)})}function Oc(n,t,e,r,i,a){t&&n.attr(t),r.symbolClip&&!i?e&&n.attr(e):e&&Z[i?"updateProps":"initProps"](n,e,r.animationModel,r.dataIndex,a)}function OO(n,t,e){var r=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),d=a.get("blurScope"),h=a.get("scale");Zw(n,function(g){if(g instanceof li){var v=g.style;g.useStyle(ye({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},e.style))}else g.useStyle(e.style);var y=g.ensureState("emphasis");y.style=o,h&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=e.z2});var f=t.valueDim.posDesc[+(e.boundingLength>0)],p=n.__pictorialBarRect;p.ignoreClip=!0,ci(p,Qr(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Mc(t.seriesModel.getData(),r),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:f}),Er(n,c,d,a.get("disabled"))}function RO(n){var t=Math.round(n);return Math.abs(n-t)<1e-4?t:Math.ceil(n)}const Aq=_q;var Iq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=_s(kg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(kg);const Eq=Iq;function Lq(n){n.registerChartView(Aq),n.registerSeriesModel(Eq),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,xn(P2,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,A2("pictorialBar"))}var Oq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,r,i){var a=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function h(v){return v.name}var f=new Go(this._layersSeries||[],l,h,h),p=[];f.add(Ge(g,this,"add")).update(Ge(g,this,"update")).remove(Ge(g,this,"remove")).execute();function g(v,y,x){var S=o._layers;if(v==="remove"){s.remove(S[y]);return}for(var _=[],D=[],C,N=l[y].indices,q=0;q<N.length;q++){var et=a.getItemLayout(N[q]),lt=et.x,ft=et.y0,_t=et.y;_.push(lt,ft),D.push(lt,ft+_t),C=a.getItemVisual(N[q],"style")}var Ct,kt=a.getItemLayout(N[0]),Ot=e.getModel("label"),Nt=Ot.get("margin"),Xt=e.getModel("emphasis");if(v==="add"){var Vt=p[y]=new sn;Ct=new BA({shape:{points:_,stackedOnPoints:D,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),Vt.add(Ct),s.add(Vt),e.isAnimationEnabled()&&Ct.setClipPath(Rq(Ct.getBoundingRect(),e,function(){Ct.removeClipPath()}))}else{var Vt=S[x];Ct=Vt.childAt(0),s.add(Vt),p[y]=Vt,Hn(Ct,{shape:{points:_,stackedOnPoints:D}},e),Na(Ct)}ci(Ct,Qr(e),{labelDataIndex:N[q-1],defaultText:a.getName(N[q-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),Ct.setTextConfig({position:null,local:!0});var Ut=Ct.getTextContent();Ut&&(Ut.x=kt.x-Nt,Ut.y=kt.y0+kt.y/2),Ct.useStyle(C),a.setItemGraphicEl(y,Ct),ui(Ct,e),Er(Ct,Xt.get("focus"),Xt.get("blurScope"),Xt.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(gr);function Rq(n,t,e){var r=new jn({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return _r(r,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},t,e),r}const Nq=Oq;var $w=2,Bq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new _h(Ge(this.getData,this),Ge(this.getRawData,this))},t.prototype.fixData=function(e){var r=e.length,i={},a=b0(e,function(h){return i.hasOwnProperty(h[0]+"")||(i[h[0]+""]=-1),h[2]}),o=[];a.buckets.each(function(h,f){o.push({name:f,dataList:h})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var d=o[l].dataList[c][0]+"";i[d]=l}for(var d in i)i.hasOwnProperty(d)&&i[d]!==l&&(i[d]=l,e[r]=[d,0,u],r++)}return e},t.prototype.getInitialData=function(e,r){for(var i=this.getReferringComponents("singleAxis",Kr).models[0],a=i.get("type"),o=sr(e.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Ze(),c=0,d=0;d<s.length;++d)l.push(s[d][$w]),u.get(s[d][$w])||(u.set(s[d][$w],c),c++);var h=Sc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:lg(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new hi(h,this);return f.initData(s),f},t.prototype.getLayerSeries=function(){for(var e=this.getData(),r=e.count(),i=[],a=0;a<r;++a)i[a]=a;var o=e.mapDimension("single"),s=b0(i,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(d,h){return e.get(o,d)-e.get(o,h)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,r,i){Se(e)||(e=e?[e]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var d=Number.MAX_VALUE,h=-1,f=o[c].indices.length,p=0;p<f;++p){var g=a.get(e[0],o[c].indices[p]),v=Math.abs(g-r);v<=d&&(u=g,d=v,h=o[c].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,r,i){var a=this.getData(),o=a.getName(e),s=a.get(a.mapDimension("value"),e);return qr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(br);const Vq=Bq;function Wq(n,t){n.eachSeriesByType("themeRiver",function(e){var r=e.getData(),i=e.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=e.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=Oe(s[0],o.height),s[1]=Oe(s[1],o.height);var u=o.height-s[0]-s[1];NO(r,e,u)}else{s[0]=Oe(s[0],o.width),s[1]=Oe(s[1],o.width);var c=o.width-s[0]-s[1];NO(r,e,c)}r.setLayout("layoutInfo",a)})}function NO(n,t,e){if(n.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=n.mapDimension("single"),o=n.mapDimension("value"),s=we(i,function(v){return we(v.indices,function(y){var x=r.dataToPoint(n.get(a,y));return x[1]=n.get(o,y),x})}),l=Fq(s),u=l.y0,c=e/l.max,d=i.length,h=i[0].indices.length,f,p=0;p<h;++p){f=u[p]*c,n.setItemLayout(i[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:f,y:s[0][p][1]*c});for(var g=1;g<d;++g)f+=s[g-1][p][1]*c,n.setItemLayout(i[g].indices[p],{layerIndex:g,x:s[g][p][0],y0:f,y:s[g][p][1]*c})}}function Fq(n){for(var t=n.length,e=n[0].length,r=[],i=[],a=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=n[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<e;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<e;++c){var d=r[c]+i[c];d>a&&(a=d)}return{y0:i,max:a}}function jq(n){n.registerChartView(Nq),n.registerSeriesModel(Vq),n.registerLayout(Wq),n.registerProcessor(wh("themeRiver"))}var BO={color:"fill",borderColor:"stroke"},zq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},qo=Kn(),Hq=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,r){return mo(null,this)},t.prototype.getDataParams=function(e,r,i){var a=n.prototype.getDataParams.call(this,e,r);return i&&(a.info=qo(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(br);const Uq=Hq;function Gq(n,t){return t=t||[0,0],we(["x","y"],function(e,r){var i=this.getAxis(e),a=t[r],o=n[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function Kq(n){var t=n.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return n.dataToPoint(e)},size:Ge(Gq,n)}}}function Xq(n,t){return t=t||[0,0],we([0,1],function(e){var r=t[e],i=n[e]/2,a=[],o=[];return a[e]=r-i,o[e]=r+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function Yq(n){var t=n.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:n.getZoom()},api:{coord:function(e){return n.dataToPoint(e)},size:Ge(Xq,n)}}}function Zq(n,t){var e=this.getAxis(),r=t instanceof Array?t[0]:t,i=(n instanceof Array?n[0]:n)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(r-i)-e.dataToCoord(r+i))}function $q(n){var t=n.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return n.dataToPoint(e)},size:Ge(Zq,n)}}}function Jq(n,t){return t=t||[0,0],we(["Radius","Angle"],function(e,r){var i="get"+e+"Axis",a=this[i](),o=t[r],s=n[r]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Qq(n){var t=n.getRadiusAxis(),e=n.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=n.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Ge(Jq,n)}}}function qq(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(r,i){return n.dataToPoint(r,i)}}}}var vht={};function VO(n,t,e,r){return n&&(n.legacy||n.legacy!==!1&&!e&&!r&&t!=="tspan"&&(t==="text"||Xe(n,"text")))}function WO(n,t,e){var r=n,i,a,o;if(t==="text")o=r;else{o={},Xe(r,"text")&&(o.text=r.text),Xe(r,"rich")&&(o.rich=r.rich),Xe(r,"textFill")&&(o.fill=r.textFill),Xe(r,"textStroke")&&(o.stroke=r.textStroke),Xe(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Xe(r,"fontSize")&&(o.fontSize=r.fontSize),Xe(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Xe(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Xe(r,"textPosition");e?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Xe(r,"textPosition")&&(i.position=r.textPosition),Xe(r,"textOffset")&&(i.offset=r.textOffset),Xe(r,"textRotation")&&(i.rotation=r.textRotation),Xe(r,"textDistance")&&(i.distance=r.textDistance)}return FO(o,n),mt(o.rich,function(l){FO(l,l)}),{textConfig:i,textContent:a}}function FO(n,t){t&&(t.font=t.textFont||t.font,Xe(t,"textStrokeWidth")&&(n.lineWidth=t.textStrokeWidth),Xe(t,"textAlign")&&(n.align=t.textAlign),Xe(t,"textVerticalAlign")&&(n.verticalAlign=t.textVerticalAlign),Xe(t,"textLineHeight")&&(n.lineHeight=t.textLineHeight),Xe(t,"textWidth")&&(n.width=t.textWidth),Xe(t,"textHeight")&&(n.height=t.textHeight),Xe(t,"textBackgroundColor")&&(n.backgroundColor=t.textBackgroundColor),Xe(t,"textPadding")&&(n.padding=t.textPadding),Xe(t,"textBorderColor")&&(n.borderColor=t.textBorderColor),Xe(t,"textBorderWidth")&&(n.borderWidth=t.textBorderWidth),Xe(t,"textBorderRadius")&&(n.borderRadius=t.textBorderRadius),Xe(t,"textBoxShadowColor")&&(n.shadowColor=t.textBoxShadowColor),Xe(t,"textBoxShadowBlur")&&(n.shadowBlur=t.textBoxShadowBlur),Xe(t,"textBoxShadowOffsetX")&&(n.shadowOffsetX=t.textBoxShadowOffsetX),Xe(t,"textBoxShadowOffsetY")&&(n.shadowOffsetY=t.textBoxShadowOffsetY))}function jO(n,t,e){var r=n;r.textPosition=r.textPosition||e.position||"inside",e.offset!=null&&(r.textOffset=e.offset),e.rotation!=null&&(r.textRotation=e.rotation),e.distance!=null&&(r.textDistance=e.distance);var i=r.textPosition.indexOf("inside")>=0,a=n.fill||"#000";zO(r,t);var o=r.textFill==null;return i?o&&(r.textFill=e.insideFill||"#fff",!r.textStroke&&e.insideStroke&&(r.textStroke=e.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||e.outsideFill||"#000"),!r.textStroke&&e.outsideStroke&&(r.textStroke=e.outsideStroke)),r.text=t.text,r.rich=t.rich,mt(t.rich,function(s){zO(s,s)}),r}function zO(n,t){t&&(Xe(t,"fill")&&(n.textFill=t.fill),Xe(t,"stroke")&&(n.textStroke=t.fill),Xe(t,"lineWidth")&&(n.textStrokeWidth=t.lineWidth),Xe(t,"font")&&(n.font=t.font),Xe(t,"fontStyle")&&(n.fontStyle=t.fontStyle),Xe(t,"fontWeight")&&(n.fontWeight=t.fontWeight),Xe(t,"fontSize")&&(n.fontSize=t.fontSize),Xe(t,"fontFamily")&&(n.fontFamily=t.fontFamily),Xe(t,"align")&&(n.textAlign=t.align),Xe(t,"verticalAlign")&&(n.textVerticalAlign=t.verticalAlign),Xe(t,"lineHeight")&&(n.textLineHeight=t.lineHeight),Xe(t,"width")&&(n.textWidth=t.width),Xe(t,"height")&&(n.textHeight=t.height),Xe(t,"backgroundColor")&&(n.textBackgroundColor=t.backgroundColor),Xe(t,"padding")&&(n.textPadding=t.padding),Xe(t,"borderColor")&&(n.textBorderColor=t.borderColor),Xe(t,"borderWidth")&&(n.textBorderWidth=t.borderWidth),Xe(t,"borderRadius")&&(n.textBorderRadius=t.borderRadius),Xe(t,"shadowColor")&&(n.textBoxShadowColor=t.shadowColor),Xe(t,"shadowBlur")&&(n.textBoxShadowBlur=t.shadowBlur),Xe(t,"shadowOffsetX")&&(n.textBoxShadowOffsetX=t.shadowOffsetX),Xe(t,"shadowOffsetY")&&(n.textBoxShadowOffsetY=t.shadowOffsetY),Xe(t,"textShadowColor")&&(n.textShadowColor=t.textShadowColor),Xe(t,"textShadowBlur")&&(n.textShadowBlur=t.textShadowBlur),Xe(t,"textShadowOffsetX")&&(n.textShadowOffsetX=t.textShadowOffsetX),Xe(t,"textShadowOffsetY")&&(n.textShadowOffsetY=t.textShadowOffsetY))}function mht(n,t){if(0)var e}var HO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},UO=Nn(HO),yht=to(ao,function(n,t){return n[t]=1,n},{}),xht=ao.join(", "),av=["","style","shape","extra"],Rc=Kn();function Jw(n,t,e,r,i){var a=n+"Animation",o=Yu(n,r,i)||{},s=Rc(t).userDuring;return o.duration>0&&(o.during=s?Ge(itt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=n),ye(o,e[a]),o}function ov(n,t,e,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=e.isAnimationEnabled(),l=Rc(n),u=t.style;l.userDuring=t.during;var c={},d={};if(ott(n,t,d),XO("shape",t,d),XO("extra",t,d),!a&&s&&(att(n,t,c),KO("shape",n,t,c),KO("extra",n,t,c),stt(n,t,u,c)),d.style=u,ttt(n,d,o),ntt(n,t),s)if(a){var h={};mt(av,function(p){var g=p?t[p]:t;g&&g.enterFrom&&(p&&(h[p]=h[p]||{}),ye(p?h[p]:h,g.enterFrom))});var f=Jw("enter",n,t,e,i);f.duration>0&&n.animateFrom(h,f)}else ett(n,t,i||0,e,c);GO(n,t),u?n.dirty():n.markRedraw()}function GO(n,t){for(var e=Rc(n).leaveToProps,r=0;r<av.length;r++){var i=av[r],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=Rc(n).leaveToProps={}),i&&(e[i]=e[i]||{}),ye(i?e[i]:e,a.leaveTo))}}function sv(n,t,e,r){if(n){var i=n.parent,a=Rc(n).leaveToProps;if(a){var o=Jw("update",n,t,e,0);o.done=function(){i.remove(n),r&&r()},n.animateTo(a,o)}else i.remove(n),r&&r()}}function lu(n){return n==="all"}function ttt(n,t,e){var r=t.style;if(!n.isGroup&&r){if(e){n.useStyle({});for(var i=n.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(n.style)}}n.setStyle(r)}t&&(t.style=null,t&&n.attr(t),t.style=r)}function ett(n,t,e,r,i){if(i){var a=Jw("update",n,t,r,e);a.duration>0&&n.animateFrom(i,a)}}function ntt(n,t){Xe(t,"silent")&&(n.silent=t.silent),Xe(t,"ignore")&&(n.ignore=t.ignore),n instanceof fa&&Xe(t,"invisible")&&(n.invisible=t.invisible),n instanceof In&&Xe(t,"autoBatch")&&(n.autoBatch=t.autoBatch)}var Co={},rtt={setTransform:function(n,t){return Co.el[n]=t,this},getTransform:function(n){return Co.el[n]},setShape:function(n,t){var e=Co.el,r=e.shape||(e.shape={});return r[n]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(n){var t=Co.el.shape;if(t)return t[n]},setStyle:function(n,t){var e=Co.el,r=e.style;return r&&(r[n]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(n){var t=Co.el.style;if(t)return t[n]},setExtra:function(n,t){var e=Co.el.extra||(Co.el.extra={});return e[n]=t,this},getExtra:function(n){var t=Co.el.extra;if(t)return t[n]}};function Sht(n){}function itt(){var n=this,t=n.el;if(t){var e=Rc(t).userDuring,r=n.userDuring;if(e!==r){n.el=n.userDuring=null;return}Co.el=t,r(rtt)}}function KO(n,t,e,r){var i=e[n];if(i){var a=t[n],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=r[n]={}),lu(l))ye(o,a);else for(var u=cr(l),c=0;c<u.length;c++){var d=u[c],h=a[d];o[d]=h}else if(lu(s)||kn(s,n)>=0){!o&&(o=r[n]={});for(var f=Nn(a),c=0;c<f.length;c++){var d=f[c],h=a[d];ltt(i[d],h)&&(o[d]=h)}}}}}function XO(n,t,e){var r=t[n];if(r)for(var i=e[n]={},a=Nn(r),o=0;o<a.length;o++){var s=a[o];i[s]=fd(r[s])}}function att(n,t,e){for(var r=t.transition,i=lu(r)?ao:cr(r||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=n[o];e[o]=s}}}function ott(n,t,e){for(var r=0;r<UO.length;r++){var i=UO[r],a=HO[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var r=0;r<ao.length;r++){var s=ao[r];t[s]!=null&&(e[s]=t[s])}}function stt(n,t,e,r){if(e){var i=n.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!lu(o)){var l=cr(o);!a&&(a=r.style={});for(var u=0;u<l.length;u++){var c=l[u],d=i[c];a[c]=d}}else if(n.getAnimationStyleProps&&(lu(s)||lu(o)||kn(s,"style")>=0)){var h=n.getAnimationStyleProps(),f=h?h.style:null;if(f){!a&&(a=r.style={});for(var p=Nn(e),u=0;u<p.length;u++){var c=p[u];if(f[c]){var d=i[c];a[c]=d}}}}}}}function ltt(n,t){return mi(n)?n!==t:n!=null&&isFinite(n)}var wht,YO=Kn(),utt=["percent","easing","shape","style","extra"];function ZO(n){n.stopAnimation("keyframe"),n.attr(YO(n))}function lv(n,t,e){if(!(!e.isAnimationEnabled()||!t)){if(Se(t)){mt(t,function(s){lv(n,s,e)});return}var r=t.keyframes,i=t.duration;if(e&&i==null){var a=Yu("enter",e,0);i=a&&a.duration}if(!(!r||!i)){var o=YO(n);mt(av,function(s){if(!(s&&!n[s])){var l,u=!1;r.sort(function(c,d){return c.percent-d.percent}),mt(r,function(c){var d=n.animators,h=s?c[s]:c;if(h){var f=Nn(h);if(s||(f=sr(f,function(v){return kn(utt,v)<0})),!!f.length){l||(l=n.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<d.length;p++)d[p]!==l&&d[p].targetName===l.targetName&&d[p].stopTracks(f);s&&(o[s]=o[s]||{});var g=s?o[s]:o;mt(f,function(v){g[v]=((s?n[s]:n)||{})[v]}),l.whenWithKeys(i*c.percent,h,f,c.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var ts="emphasis",Bs="normal",Qw="blur",qw="select",Vs=[Bs,ts,Qw,qw],t_={normal:["itemStyle"],emphasis:[ts,"itemStyle"],blur:[Qw,"itemStyle"],select:[qw,"itemStyle"]},e_={normal:["label"],emphasis:[ts,"label"],blur:[Qw,"label"],select:[qw,"label"]},ctt=["x","y"],dtt="e\0\0",Ca={normal:{},emphasis:{},blur:{},select:{}},htt={cartesian2d:Kq,geo:Yq,single:$q,polar:Qq,calendar:qq};function n_(n){return n instanceof In}function r_(n){return n instanceof fa}function ftt(n,t){t.copyTransform(n),r_(t)&&r_(n)&&(t.setStyle(n.style),t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t.invisible=n.invisible,t.ignore=n.ignore,n_(t)&&n_(n)&&t.setShape(n.shape))}var ptt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=JO(e,s,r,i);o||l.removeAll(),s.diff(o).add(function(d){o_(i,null,d,u(d,a),e,l,s)}).remove(function(d){var h=o.getItemGraphicEl(d);h&&sv(h,qo(h).option,e)}).update(function(d,h){var f=o.getItemGraphicEl(h);o_(i,f,d,u(d,a),e,l,s)}).execute();var c=e.get("clip",!0)?mh(e.coordinateSystem,!1,e):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,r,i,a,o){var s=r.getData(),l=JO(r,s,i,a),u=this._progressiveEls=[];function c(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var d=e.start;d<e.end;d++){var h=o_(null,null,d,l(d,o),r,this.group,s);h&&(h.traverse(c),u.push(h))}},t.prototype.eachRendered=function(e){Ts(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,r,i,a){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(gr);const gtt=ptt;function i_(n){var t=n.type,e;if(t==="path"){var r=n.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=nR(r);e=dc(a,null,i,r.layout||"center"),qo(e).customPathData=a}else if(t==="image")e=new li({}),qo(e).customImagePath=n.style.image;else if(t==="text")e=new Wn({});else if(t==="group")e=new sn;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Uy(t);if(!o){var s="";er(s)}e=new o}return qo(e).customGraphicType=t,e.name=n.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function a_(n,t,e,r,i,a,o){ZO(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=ctt);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;Xe(u,"textFill")&&(u.fill=u.textFill),Xe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,d=n_(t)?l.decal:null;n&&d&&(d.dirty=!0,c=yc(d,n)),l.__decalPattern=c}if(r_(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}ov(t,r,a,{dataIndex:e,isInit:o,clearStyle:!0}),lv(t,r.keyframeAnimation,a)}function $O(n,t,e,r,i){var a=t.isGroup?null:t,o=i&&i[n].cfg;if(a){var s=a.ensureState(n);if(r===!1){var l=a.getState(n);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),wl(a)}}function vtt(n,t,e){if(!n.isGroup){var r=n,i=e.currentZ,a=e.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<Vs.length;s++)mtt(r,t,Vs[s])}}function mtt(n,t,e){var r=e===Bs,i=r?t:uv(t,e),a=i?i.z2:null,o;a!=null&&(o=r?n:n.ensureState(e),o.z2=a||0)}function JO(n,t,e,r){var i=n.get("renderItem"),a=n.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):htt[a.type](a));for(var s=nn({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:_,style:C,ordinalRawValue:D,styleEmphasis:N,visual:lt,barLayout:ft,currentSeriesIndices:_t,font:Ct},o.api||{}),l={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:ytt(n.getData())},u,c,d={},h={},f={},p={},g=0;g<Vs.length;g++){var v=Vs[g];f[v]=n.getModel(t_[v]),p[v]=n.getModel(e_[v])}function y(kt){return kt===u?c||(c=t.getItemModel(kt)):t.getItemModel(kt)}function x(kt,Ot){return t.hasItemOption?kt===u?d[Ot]||(d[Ot]=y(kt).getModel(t_[Ot])):y(kt).getModel(t_[Ot]):f[Ot]}function S(kt,Ot){return t.hasItemOption?kt===u?h[Ot]||(h[Ot]=y(kt).getModel(e_[Ot])):y(kt).getModel(e_[Ot]):p[Ot]}return function(kt,Ot){return u=kt,c=null,d={},h={},i&&i(nn({dataIndexInside:kt,dataIndex:t.getRawIndex(kt),actionType:Ot?Ot.type:null},l),s)};function _(kt,Ot){return Ot==null&&(Ot=u),t.getStore().get(t.getDimensionIndex(kt||0),Ot)}function D(kt,Ot){Ot==null&&(Ot=u),kt=kt||0;var Nt=t.getDimensionInfo(kt);if(!Nt){var Xt=t.getDimensionIndex(kt);return Xt>=0?t.getStore().get(Xt,Ot):void 0}var Vt=t.get(Nt.name,Ot),Ut=Nt&&Nt.ordinalMeta;return Ut?Ut.categories[Vt]:Vt}function C(kt,Ot){Ot==null&&(Ot=u);var Nt=t.getItemVisual(Ot,"style"),Xt=Nt&&Nt.fill,Vt=Nt&&Nt.opacity,Ut=x(Ot,Bs).getItemStyle();Xt!=null&&(Ut.fill=Xt),Vt!=null&&(Ut.opacity=Vt);var Yt={inheritColor:je(Xt)?Xt:"#000"},ue=S(Ot,Bs),ie=mr(ue,null,Yt,!1,!0);ie.text=ue.getShallow("show")?pn(n.getFormattedLabel(Ot,Bs),Mc(t,Ot)):null;var Gt=fp(ue,Yt,!1);return et(kt,Ut),Ut=jO(Ut,ie,Gt),kt&&q(Ut,kt),Ut.legacy=!0,Ut}function N(kt,Ot){Ot==null&&(Ot=u);var Nt=x(Ot,ts).getItemStyle(),Xt=S(Ot,ts),Vt=mr(Xt,null,null,!0,!0);Vt.text=Xt.getShallow("show")?eo(n.getFormattedLabel(Ot,ts),n.getFormattedLabel(Ot,Bs),Mc(t,Ot)):null;var Ut=fp(Xt,null,!0);return et(kt,Nt),Nt=jO(Nt,Vt,Ut),kt&&q(Nt,kt),Nt.legacy=!0,Nt}function q(kt,Ot){for(var Nt in Ot)Xe(Ot,Nt)&&(kt[Nt]=Ot[Nt])}function et(kt,Ot){kt&&(kt.textFill&&(Ot.textFill=kt.textFill),kt.textPosition&&(Ot.textPosition=kt.textPosition))}function lt(kt,Ot){if(Ot==null&&(Ot=u),Xe(BO,kt)){var Nt=t.getItemVisual(Ot,"style");return Nt?Nt[BO[kt]]:null}if(Xe(zq,kt))return t.getItemVisual(Ot,kt)}function ft(kt){if(a.type==="cartesian2d"){var Ot=a.getBaseAxis();return x8(nn({axis:Ot},kt))}}function _t(){return e.getCurrentSeriesIndices()}function Ct(kt){return ey(kt,e)}}function ytt(n){var t={};return mt(n.dimensions,function(e){var r=n.getDimensionInfo(e);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=n.getDimensionIndex(e)}}),t}function o_(n,t,e,r,i,a,o){if(!r){a.remove(t);return}var s=s_(n,t,e,r,i,a);return s&&o.setItemGraphicEl(e,s),s&&Er(s,r.focus,r.blurScope,r.emphasisDisabled),s}function s_(n,t,e,r,i,a){var o=-1,s=t;t&&QO(t,r,i)&&(o=kn(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=i_(r),s&&ftt(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ca.normal.cfg=Ca.normal.conOpt=Ca.emphasis.cfg=Ca.emphasis.conOpt=Ca.blur.cfg=Ca.blur.conOpt=Ca.select.cfg=Ca.select.conOpt=null,Ca.isLegacy=!1,Stt(u,e,r,i,l,Ca),xtt(u,e,r,i,l),a_(n,u,e,r,Ca,i,l),Xe(r,"info")&&(qo(u).info=r.info);for(var c=0;c<Vs.length;c++){var d=Vs[c];if(d!==Bs){var h=uv(r,d),f=l_(r,h,d);$O(d,u,h,f,Ca)}}return vtt(u,r,i),r.type==="group"&&wtt(n,u,e,r,i),o>=0?a.replaceAt(u,o):a.add(u),u}function QO(n,t,e){var r=qo(n),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&Mtt(a)&&nR(a)!==r.customPathData||i==="image"&&Xe(o,"image")&&o.image!==r.customImagePath}function xtt(n,t,e,r,i){var a=e.clipPath;if(a===!1)n&&n.getClipPath()&&n.removeClipPath();else if(a){var o=n.getClipPath();o&&QO(o,a,r)&&(o=null),o||(o=i_(a),n.setClipPath(o)),a_(null,o,t,a,null,r,i)}}function Stt(n,t,e,r,i,a){if(!n.isGroup){qO(e,null,a),qO(e,ts,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=i_(o),n.setTextContent(c)),a_(null,c,t,o,null,r,i);for(var d=o&&o.style,h=0;h<Vs.length;h++){var f=Vs[h];if(f!==Bs){var p=a[f].conOpt;$O(f,c,p,l_(o,p,f),null)}}d?c.dirty():c.markRedraw()}}}}function qO(n,t,e){var r=t?uv(n,t):n,i=t?l_(n,r,ts):n.style,a=n.type,o=r?r.textConfig:null,s=n.textContent,l=s?t?uv(s,t):s:null;if(i&&(e.isLegacy||VO(i,a,!!o,!!l))){e.isLegacy=!0;var u=WO(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var d=t?e[t]:e.normal;d.cfg=o,d.conOpt=l}function uv(n,t){return t?n?n[t]:null:n}function l_(n,t,e){var r=t&&t.style;return r==null&&e===ts&&n&&(r=n.styleEmphasis),r}function wtt(n,t,e,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){btt({api:n,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var d=a[c],h=t.childAt(c);d?(d.ignore==null&&(d.ignore=!1),s_(n,h,e,d,i,t)):h.ignore=!0}for(var f=t.childCount()-1;f>=c;f--){var p=t.childAt(f);_tt(t,p,i)}}}function _tt(n,t,e){t&&sv(t,qo(n).option,e)}function btt(n){new Go(n.oldChildren,n.newChildren,tR,tR,n).add(eR).update(eR).remove(Ctt).execute()}function tR(n,t){var e=n&&n.name;return e!=null?e:dtt+t}function eR(n,t){var e=this.context,r=n!=null?e.newChildren[n]:null,i=t!=null?e.oldChildren[t]:null;s_(e.api,i,e.dataIndex,r,e.seriesModel,e.group)}function Ctt(n){var t=this.context,e=t.oldChildren[n];e&&sv(e,qo(e).option,t.seriesModel)}function nR(n){return n&&(n.pathData||n.d)}function Mtt(n){return n&&(Xe(n,"pathData")||Xe(n,"d"))}function Ttt(n){n.registerChartView(gtt),n.registerSeriesModel(Uq)}function u_(n,t){t=t||{};var e=n.coordinateSystem,r=n.axis,i={},a=r.position,o=r.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var d={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=d[a],n.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ii(t.labelInside,n.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var h=t.rotate;return h==null&&(h=n.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-h:h,i.z2=1,i}var Dtt=["axisLine","axisTickLabel","axisName"],ktt=["splitArea","splitLine"],Ptt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,r,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new sn;var l=u_(e),u=new Zo(e,l);mt(Dtt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),mt(ktt,function(c){e.get([c,"show"])&&Att[c](this,this.group,this._axisGroup,e)},this),Xd(s,this._axisGroup,e),n.prototype.render.call(this,e,r,i,a)},t.prototype.remove=function(){TP(this)},t.type="singleAxis",t}(Gl),Att={splitLine:function(n,t,e,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),d=[],h=0,f=i.getTicksCoords({tickModel:a}),p=[],g=[],v=0;v<f.length;++v){var y=i.toGlobalCoord(f[v].coord);c?(p[0]=y,p[1]=u.y,g[0]=y,g[1]=u.y+u.height):(p[0]=u.x,p[1]=y,g[0]=u.x+u.width,g[1]=y);var x=new oi({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});hc(x.shape,l);var S=h++%s.length;d[S]=d[S]||[],d[S].push(x)}for(var _=o.getLineStyle(["color"]),v=0;v<d.length;++v)t.add(xa(d[v],{style:nn({stroke:s[v%s.length]},_),silent:!0}))}},splitArea:function(n,t,e,r){MP(n,e,r,r)}};const Itt=Ptt;var rR=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Jn);Wr(rR,_c.prototype);const c_=rR;var Ett=function(n){Zt(t,n);function t(e,r,i,a,o){var s=n.call(this,e,r,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,r){return this.coordinateSystem.pointToData(e)[0]},t}(Ga);const Ltt=Ett;var iR=["single"],Ott=function(){function n(t,e,r){this.type="single",this.dimension="single",this.dimensions=iR,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,r)}return n.prototype._init=function(t,e,r){var i=this.dimension,a=new Ltt(i,uh(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},n.prototype.update=function(t,e){t.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();mt(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),jl(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(t,e){this._rect=Xr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,r=e.isHorizontal(),i=r?[0,t.width]:[0,t.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),this._updateAxisTransform(e,r?t.x:t.y)},n.prototype._updateAxisTransform=function(t,e){var r=t.getExtent(),i=r[0]+r[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+e}:function(o){return i-o+e},t.toLocalCoord=a?function(o){return o-e}:function(o){return i-o+e}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(t){var e=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},n.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(t){var e=this.getAxis(),r=this.getRect(),i=[],a=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-a]=a===0?r.y+r.height/2:r.x+r.width/2,i},n.prototype.convertToPixel=function(t,e,r){var i=aR(e);return i===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(t,e,r){var i=aR(e);return i===this?this.pointToData(r):null},n}();function aR(n){var t=n.seriesModel,e=n.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const Rtt=Ott;function Ntt(n,t){var e=[];return n.eachComponent("singleAxis",function(r,i){var a=new Rtt(r,n,t);a.name="single_"+i,a.resize(r,t),r.coordinateSystem=a,e.push(a)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",Kr).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),e}var Btt={create:Ntt,dimensions:iR};const Vtt=Btt;var oR=["x","y"],Wtt=["width","height"],Ftt=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,r,i,a,o){var s=i.axis,l=s.coordinateSystem,u=d_(l,1-cv(s)),c=l.dataToPoint(r)[0],d=a.get("type");if(d&&d!=="none"){var h=eS(a),f=jtt[d](s,c,u);f.style=h,e.graphicKey=f.type,e.pointer=f}var p=u_(i);VP(r,e,p,i,a,o)},t.prototype.getHandleTransform=function(e,r,i){var a=u_(r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=nS(r.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,r,i,a){var o=i.axis,s=o.coordinateSystem,l=cv(o),u=d_(s,l),c=[e.x,e.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=d_(s,1-l),h=(d[1]+d[0])/2,f=[h,h];return f[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(tS),jtt={line:function(n,t,e){var r=rS([t,e[0]],[t,e[1]],cv(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,t,e){var r=n.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:WP([t-r/2,e[0]],[r,i],cv(n))}}};function cv(n){return n.isHorizontal()?0:1}function d_(n,t){var e=n.getRect();return[e[oR[t]],e[oR[t]]+e[Wtt[t]]]}const ztt=Ftt;var Htt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Lr);function Utt(n){_n(ph),Gl.registerAxisPointerClass("SingleAxisPointer",ztt),n.registerComponentView(Htt),n.registerComponentView(Itt),n.registerComponentModel(c_),bc(n,"single",c_,c_.defaultOption),n.registerCoordinateSystem("single",Vtt)}var Gtt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r,i){var a=nc(e);n.prototype.init.apply(this,arguments),sR(e,a)},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),sR(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Jn);function sR(n,t){var e=n.cellSize,r;Se(e)?r=e:r=n.cellSize=[e,e],r.length===1&&(r[1]=r[0]);var i=we([0,1],function(a){return g6(t,a)&&(r[a]="auto"),r[a]!=null&&r[a]!=="auto"});bs(n,t,{type:"box",ignoreSize:i})}const Ktt=Gtt;var Xtt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,r,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=r.start.time;u<=r.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,d=new jn({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(d)}},t.prototype._renderLines=function(e,r,i,a){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,h=0;d.time<=r.end.time;h++){p(d.formatedDate),h===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var f=d.date;f.setMonth(f.getMonth()+1),d=s.getDateInfo(f)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var v=o._getLinePointsOfOneWeek(e,g,i);o._tlpoints.push(v[0]),o._blpoints.push(v[v.length-1]),u&&o._drawSplitline(v,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(e,r,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-r/2,a[1][o]=a[1][o]+r/2,a},t.prototype._drawSplitline=function(e,r,i){var a=new Xi({z2:20,shape:{points:e},style:r});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,r,i){for(var a=e.coordinateSystem,o=a.getDateInfo(r),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,r){return je(e)&&e?d6(e,r):qe(e)?e(r):r.nameMap},t.prototype._yearTextPositionControl=function(e,r,i,a,o){var s=r[0],l=r[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,r,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,f={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],d],right:[u[h][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),v={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,v),x=new Wn({z2:30,style:mr(o,{text:y})});x.attr(this._yearTextPositionControl(x,f[l],i,l,s)),a.add(x)}},t.prototype._monthTextPositionControl=function(e,r,i,a,o){var s="left",l="top",u=e[0],c=e[1];return i==="horizontal"?(c=c+o,r&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,r,i,a){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||je(s))&&(s&&(r=oy(s)||r),s=r.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,f=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g<d[h].length-1;g++){var v=d[h][g].slice(),y=this._firstDayOfMonth[g];if(p){var x=this._firstDayPoints[g];v[f]=(x[f]+d[0][g+1][f])/2}var S=o.get("formatter"),_=s[+y.m-1],D={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:_},C=this._formatterLabel(S,D),N=new Wn({z2:30,style:ye(mr(o,{text:C}),this._monthTextPositionControl(v,p,i,u,l))});a.add(N)}}},t.prototype._weekTextPositionControl=function(e,r,i,a,o){var s="center",l="middle",u=e[0],c=e[1],d=i==="start";return r==="horizontal"?(u=u+a+(d?1:-1)*o[0]/2,s=d?"right":"left"):(c=c+a+(d?1:-1)*o[1]/2,l=d?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,r,i,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),d=s.get("margin"),h=l.getFirstDayOfWeek();if(!c||je(c)){c&&(r=oy(c)||r);var f=r.get(["time","dayOfWeekShort"]);c=f||we(r.get(["time","dayOfWeekAbbr"]),function(D){return D[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];d=Oe(d,Math.min(g[1],g[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,d=-d);for(var v=0;v<7;v++){var y=l.getNextNDay(p,v),x=l.dataToRect([y.time],!1).center,S=v;S=Math.abs((v+h)%7);var _=new Wn({z2:30,style:ye(mr(s,{text:c[S]}),this._weekTextPositionControl(x,a,u,d,g))});o.add(_)}}},t.type="calendar",t}(Lr);const Ytt=Xtt;var h_=864e5,Ztt=function(){function n(t,e,r){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=t}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(t){t=Ra(t);var e=t.getFullYear(),r=t.getMonth()+1,i=r<10?"0"+r:""+r,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},n.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},n.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];mt([0,1],function(d){c(a,d)&&(o[i[d]]=a[d]*s[d])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Xr(o,l);mt([0,1],function(d){c(a,d)||(a[d]=u[i[d]]/s[d])});function c(d,h){return d[h]!=null&&d[h]!=="auto"}this._sw=a[0],this._sh=a[1]},n.prototype.dataToPoint=function(t,e){Se(t)&&(t=t[0]),e==null&&(e=!0);var r=this.getDateInfo(t),i=this._rangeInfo,a=r.formatedDate;if(e&&!(r.time>=i.start.time&&r.time<i.end.time+h_))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},n.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},n.prototype.dataToRect=function(t,e){var r=this.dataToPoint(t,e);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},n.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,e-1,i):this._getDateByWeeksAndDay(e,r-1,i)},n.prototype.convertToPixel=function(t,e,r){var i=lR(e);return i===this?i.dataToPoint(r):null},n.prototype.convertFromPixel=function(t,e,r){var i=lR(e);return i===this?i.pointToData(r):null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(Se(t)&&t.length===1&&(t=t[0]),Se(t))e=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(e=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(e=[r,r])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},n.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;e[0].time>e[1].time&&(r=!0,e.reverse());var i=Math.floor(e[1].time/h_)-Math.floor(e[0].time/h_)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+e[0].day+6)/7),d=r?-c+1:c-1;return r&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:d,fweek:e[0].day,lweek:e[1].day}},n.prototype._getDateByWeeksAndDay=function(t,e,r){var i=this._getRangeInfo(r);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},n.create=function(t,e){var r=[];return t.eachComponent("calendar",function(i){var a=new n(i,t,e);r.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function lR(n){var t=n.calendarModel,e=n.seriesModel,r=t?t.coordinateSystem:e?e.coordinateSystem:null;return r}const $tt=Ztt;function Jtt(n){n.registerComponentModel(Ktt),n.registerComponentView(Ytt),n.registerCoordinateSystem("calendar",$tt)}function Qtt(n,t){var e=n.existing;if(t.id=n.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function uR(n,t){var e;return mt(t,function(r){n[r]!=null&&n[r]!=="auto"&&(e=!0)}),e}function qtt(n,t,e){var r=ye({},e),i=n[t],a=e.$action||"merge";if(a==="merge")if(i){if(0)var o;Mn(i,r,!0),bs(i,r,{ignoreSize:!0}),pT(e,i),dv(e,i),dv(e,i,"shape"),dv(e,i,"style"),dv(e,i,"extra"),e.clipPath=i.clipPath}else n[t]=r;else a==="replace"?n[t]=r:a==="remove"&&i&&(n[t]=null)}var cR=["transition","enterFrom","leaveTo"],tet=cR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function dv(n,t,e){if(e&&(!n[e]&&t[e]&&(n[e]={}),n=n[e],t=t[e]),!(!n||!t))for(var r=e?cR:tet,i=0;i<r.length;i++){var a=r[i];n[a]==null&&t[a]!=null&&(n[a]=t[a])}}function eet(n,t){if(n&&(n.hv=t.hv=[uR(t,["left","right"]),uR(t,["top","bottom"])],n.type==="group")){var e=n,r=t;e.width==null&&(e.width=r.width=0),e.height==null&&(e.height=r.height=0)}}var net=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,r){var i=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,e,r),this.option.elements=i},t.prototype.optionUpdated=function(e,r){var i=this.option,a=(r?i:e).elements,o=i.elements=r?[]:i.elements,s=[];this._flatten(a,s,null);var l=jC(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];mt(l,function(c,d){var h=c.newOption;h&&(u.push(h),Qtt(c,h),qtt(o,d,h),eet(o[d],h))},this),i.elements=sr(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(e,r,i){mt(e,function(a){if(a){i&&(a.parentOption=i),r.push(a);var o=a.children;o&&o.length&&this._flatten(o,r,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Jn),dR={path:null,compoundPath:null,group:sn,image:li,text:Wn},Ma=Kn(),ret=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Ze()},t.prototype.render=function(e,r,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var r=e.useElOptionsToUpdate();if(r){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");mt(r,function(l){var u=Zr(l.id,null),c=u!=null?i.get(u):null,d=Zr(l.parentId,null),h=d!=null?i.get(d):a,f=l.type,p=l.style;f==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var g=l.textContent,v=l.textConfig;if(p&&VO(p,f,!!v,!!g)){var y=WO(p,f,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var x=iet(l),S=l.$action||"merge",_=S==="merge",D=S==="replace";if(_){var C=!c,N=c;C?N=hR(u,h,l.type,i):(N&&(Ma(N).isNew=!1),ZO(N)),N&&(ov(N,x,e,{isInit:C}),fR(N,l,o,s))}else if(D){hv(c,l,i,e);var q=hR(u,h,l.type,i);q&&(ov(q,x,e,{isInit:!0}),fR(q,l,o,s))}else S==="remove"&&(GO(c,l),hv(c,l,i,e));var et=i.get(u);if(et&&g)if(_){var lt=et.getTextContent();lt?lt.attr(g):et.setTextContent(new Wn(g))}else D&&et.setTextContent(new Wn(g));if(et){var ft=l.clipPath;if(ft){var _t=ft.type,Ct=void 0,C=!1;if(_){var kt=et.getClipPath();C=!kt||Ma(kt).type!==_t,Ct=C?f_(_t):kt}else D&&(C=!0,Ct=f_(_t));et.setClipPath(Ct),ov(Ct,ft,e,{isInit:C}),lv(Ct,ft.keyframeAnimation,e)}var Ot=Ma(et);et.setTextConfig(v),Ot.option=l,aet(et,e,l),fc({el:et,componentModel:e,itemName:et.name,itemTooltipOption:l.tooltip}),lv(et,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,r){for(var i=e.option.elements,a=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var d=i[c],h=Zr(d.id,null),f=h!=null?o.get(h):null;if(!(!f||!f.isGroup)){var p=f.parent,g=p===a,v=Ma(f),y=Ma(p);v.width=Oe(v.option.width,g?s:y.width)||0,v.height=Oe(v.option.height,g?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var d=i[c],h=Zr(d.id,null),f=h!=null?o.get(h):null;if(f){var p=f.parent,y=Ma(p),x=p===a?{width:s,height:l}:{width:y.width,height:y.height},S={},_=Cp(f,d,x,null,{hv:d.hv,boundingMode:d.bounding},S);if(!Ma(f).isNew&&_){for(var D=d.transition,C={},N=0;N<u.length;N++){var q=u[N],et=S[q];D&&(lu(D)||kn(D,q)>=0)?C[q]=et:f[q]=et}Hn(f,C,e,0)}else f.attr(S)}}},t.prototype._clear=function(){var e=this,r=this._elMap;r.each(function(i){hv(i,Ma(i).option,r,e._lastGraphicModel)}),this._elMap=Ze()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Lr);function f_(n){var t=Xe(dR,n)?dR[n]:Uy(n),e=new t({});return Ma(e).type=n,e}function hR(n,t,e,r){var i=f_(e);return t.add(i),r.set(n,i),Ma(i).id=n,Ma(i).isNew=!0,i}function hv(n,t,e,r){var i=n&&n.parent;i&&(n.type==="group"&&n.traverse(function(a){hv(a,t,e,r)}),sv(n,t,r),e.removeKey(Ma(n).id))}function fR(n,t,e,r){n.isGroup||mt([["cursor",fa.prototype.cursor],["zlevel",r||0],["z",e||0],["z2",0]],function(i){var a=i[0];Xe(t,a)?n[a]=pn(t[a],i[1]):n[a]==null&&(n[a]=i[1])}),mt(Nn(t),function(i){if(i.indexOf("on")===0){var a=t[i];n[i]=qe(a)?a:null}}),Xe(t,"draggable")&&(n.draggable=t.draggable),t.name!=null&&(n.name=t.name),t.id!=null&&(n.id=t.id)}function iet(n){return n=ye({},n),mt(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(fT),function(t){delete n[t]}),n}function aet(n,t,e){var r=hn(n).eventData;!n.silent&&!n.ignore&&!r&&(r=hn(n).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:n.name}),r&&(r.info=e.info)}function oet(n){n.registerComponentModel(net),n.registerComponentView(ret),n.registerPreprocessor(function(t){var e=t.graphic;Se(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var pR=["x","y","radius","angle","single"],set=["cartesian2d","polar","singleAxis"];function uet(n){var t=n.get("coordinateSystem");return kn(set,t)>=0}function Ws(n){return n+"Axis"}function _ht(n){return n+"AxisIndex"}function bht(n){return n+"AxisId"}function cet(n,t){var e=Ze(),r=[],i=Ze();n.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,n.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(h,f){var p=e.get(h);p&&p[f]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,h){(e.get(d)||e.set(d,[]))[h]=!0})}return r}function gR(n){var t=n.ecModel,e={infoList:[],infoMap:Ze()};return n.eachTargetAxis(function(r,i){var a=t.getComponent(Ws(r),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var p_=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n}(),det=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,r,i){var a=vR(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var r=vR(e);Mn(this.option,e,!0),Mn(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(e){var r=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;mt([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),r=this._targetAxisInfoMap=Ze(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var r=!1;return mt(pR,function(i){var a=this.getReferringComponents(Ws(i),DW);if(a.specified){r=!0;var o=new p_;mt(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(e,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var h=new p_;if(h.add(d.componentIndex),e.set(c,h),a=!1,c==="x"||c==="y"){var f=d.getReferringComponents("grid",Kr).models[0];f&&mt(u,function(p){d.componentIndex!==p.componentIndex&&f===p.getReferringComponents("grid",Kr).models[0]&&h.add(p.componentIndex)})}}}a&&mt(pR,function(u){if(a){var c=i.findComponents({mainType:Ws(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var d=new p_;d.add(c[0].componentIndex),e.set(u,d),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(r){!e&&(e=r)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var r=this._rangePropMode,i=this.get("rangeMode");mt([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(r,i){e==null&&(e=this.ecModel.getComponent(Ws(r),i))},this),e},t.prototype.eachTargetAxis=function(e,r){this._targetAxisInfoMap.each(function(i,a){mt(i.indexList,function(o){e.call(r,a,o)})})},t.prototype.getAxisProxy=function(e,r){var i=this.getAxisModel(e,r);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,r){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[r])return this.ecModel.getComponent(Ws(e),r)},t.prototype.setRawRange=function(e){var r=this.option,i=this.settledOption;mt([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(r[a[0]]=i[a[0]]=e[a[0]],r[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var r=this.option;mt(["start","startValue","end","endValue"],function(i){r[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,r){if(e==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Jn);function vR(n){var t={};return mt(["start","end","startValue","endValue","throttle"],function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}const Uh=det;var het=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Uh);const fet=het;var pet=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,a){this.dataZoomModel=e,this.ecModel=r,this.api=i},t.type="dataZoom",t}(Lr);const g_=pet;var get=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(g_);const vet=get;var Nc=mt,mR=ha,met=function(){function n(t,e,r,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=r}return n.prototype.hostedBy=function(t){return this._dataZoomModel===t},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(uet(e)){var r=Ws(this._dimName),i=e.getReferringComponents(r,Kr).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return on(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Nc(["start","end"],function(h,f){var p=t[h],g=t[h+"Value"];a[f]==="percent"?(p==null&&(p=o[f]),g=i.parse(nr(p,o,e))):(u=!0,g=g==null?e[f]:i.parse(g),p=nr(g,e,o)),l[f]=g==null||isNaN(g)?e[f]:g,s[f]=p==null||isNaN(p)?o[f]:p}),mR(l),mR(s);var c=this._minMaxSpan;u?d(l,s,e,o,!1):d(s,l,o,e,!0);function d(h,f,p,g,v){var y=v?"Span":"ValueSpan";au(0,h,p,"all",c["min"+y],c["max"+y]);for(var x=0;x<2;x++)f[x]=nr(h[x],p,g,!0),v&&(f[x]=i.parse(f[x]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=yet(this,this._dimName,e),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Nc(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(a==="weakFilter"){var d=u.getStore(),h=we(c,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var p,g,v,y=0;y<c.length;y++){var x=d.get(h[y],f),S=!isNaN(x),_=x<o[0],D=x>o[1];if(S&&!_&&!D)return!0;S&&(v=!0),_&&(p=!0),D&&(g=!0)}return v&&p&&g})}else Nc(c,function(f){if(a==="empty")l.setData(u=u.map(f,function(g){return s(g)?g:NaN}));else{var p={};p[f]=o,u.selectRange(p)}});Nc(c,function(f){u.setApproximateExtent(o,f)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,r=this._dataExtent;Nc(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=nr(r[0]+o,r,[0,100],!0):a!=null&&(o=nr(a,[0,100],r,!0)-r[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,r=this._valueWindow;if(e){var i=DC(r,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},n}();function yet(n,t,e){var r=[1/0,-1/0];Nc(e,function(o){z8(r,o.getData(),t)});var i=n.getAxisModel(),a=V2(i.axis.scale,i,r).calculate();return[a.min,a.max]}const xet=met;var wet={getTargetSeries:function(n){function t(i){n.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=n.getComponent(Ws(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new xet(i,a,s,n),e.push(o.__dzAxisProxy))});var r=Ze();return mt(e,function(i){mt(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),r},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(r,i){e.getAxisProxy(r,i).reset(e)}),e.eachTargetAxis(function(r,i){e.getAxisProxy(r,i).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var r=e.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),a=r.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const _et=wet;function bet(n){n.registerAction("dataZoom",function(t,e){var r=cet(e,t);mt(r,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var yR=!1;function v_(n){yR||(yR=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,_et),bet(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Cet(n){n.registerComponentModel(fet),n.registerComponentView(vet),v_(n)}var Ta=function(){function n(){}return n}(),xR={};function Bc(n,t){xR[n]=t}function SR(n){return xR[n]}var Met=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;mt(this.option.feature,function(r,i){var a=SR(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Mn(r,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Jn);const Tet=Met;var Det=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.render=function(e,r,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},c=this._features||(this._features={}),d=[];mt(u,function(p,g){d.push(g)}),new Go(this._featureNames||[],d).add(h).update(h).remove(xn(h,null)).execute(),this._featureNames=d;function h(p,g){var v=d[p],y=d[g],x=u[v],S=new pr(x,e,e.ecModel),_;if(a&&a.newTitle!=null&&a.featureName===v&&(x.title=a.newTitle),v&&!y){if(ket(v))_={onclick:S.option.onclick,featureName:v};else{var D=SR(v);if(!D)return;_=new D}c[v]=_}else if(_=c[y],!_)return;_.uid=Ju("toolbox-feature"),_.model=S,_.ecModel=r,_.api=i;var C=_ instanceof Ta;if(!v&&y){C&&_.dispose&&_.dispose(r,i);return}if(!S.get("show")||C&&_.unusable){C&&_.remove&&_.remove(r,i);return}f(S,_,v),S.setIconStatus=function(N,q){var et=this.option,lt=this.iconPaths;et.iconStatus=et.iconStatus||{},et.iconStatus[N]=q,lt[N]&&(q==="emphasis"?Wo:Fo)(lt[N])},_ instanceof Ta&&_.render&&_.render(S,r,i,a)}function f(p,g,v){var y=p.getModel("iconStyle"),x=p.getModel(["emphasis","iconStyle"]),S=g instanceof Ta&&g.getIcons?g.getIcons():p.get("icon"),_=p.get("title")||{},D,C;je(S)?(D={},D[v]=S):D=S,je(_)?(C={},C[v]=_):C=_;var N=p.iconPaths={};mt(D,function(q,et){var lt=Yd(q,{},{x:-s/2,y:-s/2,width:s,height:s});lt.setStyle(y.getItemStyle());var ft=lt.ensureState("emphasis");ft.style=x.getItemStyle();var _t=new Wn({style:{text:C[et],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:ey({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},r)},ignore:!0});lt.setTextContent(_t),fc({el:lt,componentModel:e,itemName:et,formatterParamsExtra:{title:C[et]}}),lt.__title=C[et],lt.on("mouseover",function(){var Ct=x.getItemStyle(),kt=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";_t.setStyle({fill:x.get("textFill")||Ct.fill||Ct.stroke||"#000",backgroundColor:x.get("textBackgroundColor")}),lt.setTextConfig({position:x.get("textPosition")||kt}),_t.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",et])!=="emphasis"&&i.leaveEmphasis(this),_t.hide()}),(p.get(["iconStatus",et])==="emphasis"?Wo:Fo)(lt),o.add(lt),lt.on("click",Ge(g.onclick,g,r,i,et)),N[et]=lt})}q9(o,e,i),o.add(sA(o.getBoundingRect(),e)),l||o.eachChild(function(p){var g=p.__title,v=p.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),x=p.getTextContent(),S=x&&x.ensureState("emphasis");if(S&&!qe(S)&&g){var _=S.style||(S.style={}),D=vd(g,Wn.makeFont(_)),C=p.x+o.x,N=p.y+o.y+s,q=!1;N+D.height>i.getHeight()&&(y.position="top",q=!0);var et=q?-5-D.height:s+10;C+D.width/2>i.getWidth()?(y.position=["100%",et],_.align="right"):C-D.width/2<0&&(y.position=[0,et],_.align="left")}})},t.prototype.updateView=function(e,r,i,a){mt(this._features,function(o){o instanceof Ta&&o.updateView&&o.updateView(o.model,r,i,a)})},t.prototype.remove=function(e,r){mt(this._features,function(i){i instanceof Ta&&i.remove&&i.remove(e,r)}),this.group.removeAll()},t.prototype.dispose=function(e,r){mt(this._features,function(i){i instanceof Ta&&i.dispose&&i.dispose(e,r)})},t.type="toolbox",t}(Lr);function ket(n){return n.indexOf("my")===0}const Pet=Det;var Aet=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,r){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Zn.browser;if(qe(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),f=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];f&&(p=window.atob(p));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=p.length,y=new Uint8Array(v);v--;)y[v]=p.charCodeAt(v);var x=new Blob([y]);window.navigator.msSaveOrOpenBlob(x,g)}else{var S=document.createElement("iframe");document.body.appendChild(S);var _=S.contentWindow,D=_.document;D.open("image/svg+xml","replace"),D.write(p),D.close(),_.focus(),D.execCommand("SaveAs",!0,g),document.body.removeChild(S)}}else{var C=i.get("lang"),N='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',q=window.open();q.document.write(N),q.document.title=a}},t.getDefaultOption=function(e){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(Ta);const Iet=Aet;var wR="__ec_magicType_stack__",Cht=null,Mht=null,Eet=[["line","bar"],["stack"]],Let=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,r=e.get("icon"),i={};return mt(e.get("type"),function(a){r[a]&&(i[a]=r[a])}),i},t.getDefaultOption=function(e){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(e,r,i){var a=this.model,o=a.get(["seriesIndex",i]);if(_R[i]){var s={series:[]},l=function(d){var h=d.subType,f=d.id,p=_R[i](h,f,d,a);p&&(nn(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var y=v.dim,x=y+"Axis",S=d.getReferringComponents(x,Kr).models[0],_=S.componentIndex;s[x]=s[x]||[];for(var D=0;D<=_;D++)s[x][_]=s[x][_]||{};s[x][_].boundaryGap=i==="bar"}}};mt(Eet,function(d){kn(d,i)>=0&&mt(d,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Mn({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ta),_R={line:function(n,t,e,r){if(n==="bar")return Mn({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,t,e,r){if(n==="line")return Mn({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,t,e,r){var i=e.get("stack")===wR;if(n==="line"||n==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Mn({id:t,stack:i?"":wR},r.get(["option","stack"])||{},!0)}};vo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});const Oet=Let;var fv=new Array(60).join("-"),Vc=" ";function Ret(n){var t={},e=[],r=[];return n.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:r}}function Net(n){var t=[];return mt(n,function(e,r){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(we(e.series,function(f){return f.name})),l=[i.model.getCategories()];mt(e.series,function(f){var p=f.getRawData();l.push(f.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Vc)],c=0;c<l[0].length;c++){for(var d=[],h=0;h<l.length;h++)d.push(l[h][c]);u.push(d.join(Vc))}t.push(u.join("\n"))}),t.join("\n\n"+fv+"\n\n")}function Bet(n){return we(n,function(t){var e=t.getRawData(),r=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];r.push((s?s+Vc:"")+i.join(Vc))}),r.join("\n")}).join("\n\n"+fv+"\n\n")}function Vet(n){var t=Ret(n);return{value:sr([Net(t.seriesGroupByCategoryAxis),Bet(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+fv+"\n\n"),meta:t.meta}}function pv(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wet(n){var t=n.slice(0,n.indexOf("\n"));if(t.indexOf(Vc)>=0)return!0}var m_=new RegExp("["+Vc+"]+","g");function Fet(n){for(var t=n.split(/\n+/g),e=pv(t.shift()).split(m_),r=[],i=we(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=pv(t[a]).split(m_);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function jet(n){for(var t=n.split(/\n+/g),e=pv(t.shift()),r=[],i=0;i<t.length;i++){var a=pv(t[i]);if(a){var o=a.split(m_),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:e,data:r}}function zet(n,t){var e=n.split(new RegExp("\n*"+fv+"\n*","g")),r={series:[]};return mt(e,function(i,a){if(Wet(i)){var o=Fet(i),s=t[a],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=jet(i);r.series.push(o)}}),r}var Het=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=a.get("optionToContent"),h=a.get("contentToOption"),f=Vet(e);if(qe(d)){var p=d(r.getOption());je(p)?u.innerHTML=p:Lu(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=f.value,u.appendChild(c)}var v=f.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var x="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),_=document.createElement("div");x+=";background-color:"+a.get("buttonColor"),x+=";color:"+a.get("buttonTextColor");var D=this;function C(){i.removeChild(o),D._dom=null}Im(S,"click",C),Im(_,"click",function(){if(h==null&&d!=null||h!=null&&d==null){C();return}var N;try{qe(h)?N=h(u,r.getOption()):N=zet(c.value,v)}catch(q){throw C(),new Error("Data view format error "+q)}N&&r.dispatchAction({type:"changeDataView",newOption:N}),C()}),S.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=S.style.cssText=x,!a.get("readOnly")&&y.appendChild(_),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,r){this.remove(e,r)},t.getDefaultOption=function(e){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(Ta);function Uet(n,t){return we(n,function(e,r){var i=t&&t[r];if(rn(i)&&!Se(i)){var a=rn(e)&&!Se(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=nn(e,i),o&&delete e.name,e}else return e})}vo({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,t){var e=[];mt(n.newOption.series,function(r){var i=t.getSeriesByName(r.name)[0];if(!i)e.push(ye({type:"scatter"},r));else{var a=i.get("data");e.push({name:r.name,data:Uet(r.data,a)})}}),t.mergeOption(nn({series:e},n.newOption))});const Get=Het;var bR=mt,CR=Kn();function Ket(n,t){var e=y_(n);bR(t,function(r,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function Xet(n){var t=y_(n),e=t[t.length-1];t.length>1&&t.pop();var r={};return bR(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){r[a]=i;break}}),r}function Yet(n){CR(n).snapshots=null}function Zet(n){return y_(n).length}function y_(n){var t=CR(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var $et=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.onclick=function(e,r){Yet(e),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(Ta);vo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});const Jet=$et;var Qet=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],qet=function(){function n(t,e,r){var i=this;this._targetInfoList=[];var a=MR(e,t);mt(tnt,function(o,s){(!r||!r.include||kn(r.include,s)>=0)&&o(a,i._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=S_[r.brushType](0,a,i);r.__rangeOffset={offset:PR[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,r){mt(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&mt(a.coordSyses,function(o){var s=S_[i.brushType](1,o,i.range,!0);r(i,s.values,o,e)})},this)},n.prototype.setInputRanges=function(t,e){mt(t,function(r){var i=this.findTargetInfo(r,e);if(r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=S_[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?PR[r.brushType](a.values,o.offset,ent(a.xyMinMax,o.xyMinMax)):a.values}},this)},n.prototype.makePanelOpts=function(t,e){return we(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:e?e(r):null,clipPath:uO(i),isTargetByCursor:dO(i,t,r.coordSysModel),getLinearBrushOtherExtent:cO(i)}})},n.prototype.controlSeries=function(t,e,r){var i=this.findTargetInfo(t,r);return i===!0||i&&kn(i.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var r=this._targetInfoList,i=MR(e,t),a=0;a<r.length;a++){var o=r[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<TR.length;l++)if(TR[l](i,o))return o}return!0},n}();function x_(n){return n[0]>n[1]&&n.reverse(),n}function MR(n,t){return wd(n,t,{includeMainTypes:Qet})}var tnt={grid:function(n,t){var e=n.xAxisModels,r=n.yAxisModels,i=n.gridModels,a=Ze(),o={},s={};!e&&!r&&!i||(mt(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),mt(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),mt(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];mt(u.getCartesians(),function(d,h){(kn(e,d.getAxis("x").model)>=0||kn(r,d.getAxis("y").model)>=0)&&c.push(d)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:DR.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){mt(n.geoModels,function(e){var r=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:r,coordSyses:[r],getPanelRect:DR.geo})})}},TR=[function(n,t){var e=n.xAxisModel,r=n.yAxisModel,i=n.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],DR={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(Ll(n)),t}},S_={lineX:xn(kR,0),lineY:xn(kR,1),rect:function(n,t,e,r){var i=n?t.pointToData([e[0][0],e[1][0]],r):t.dataToPoint([e[0][0],e[1][0]],r),a=n?t.pointToData([e[0][1],e[1][1]],r):t.dataToPoint([e[0][1],e[1][1]],r),o=[x_([i[0],a[0]]),x_([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(n,t,e,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=we(e,function(o){var s=n?t.pointToData(o,r):t.dataToPoint(o,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function kR(n,t,e,r){var i=e.getAxis(["x","y"][n]),a=x_(we([0,1],function(s){return t?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[n]=a,o[1-n]=[NaN,NaN],{values:a,xyMinMax:o}}var PR={lineX:xn(AR,0),lineY:xn(AR,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return we(n,function(r,i){return[r[0]-e[0]*t[i][0],r[1]-e[1]*t[i][1]]})}};function AR(n,t,e,r){return[t[0]-r[n]*e[0],t[1]-r[n]*e[1]]}function ent(n,t){var e=IR(n),r=IR(t),i=[e[0]/r[0],e[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function IR(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const w_=qet;var __=mt,nnt=_W("toolbox-dataZoom_"),Tht=null,rnt=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.render=function(e,r,i,a){this._brushController||(this._brushController=new jw(i.getZr()),this._brushController.on("brush",Ge(this._onBrush,this)).mount()),ont(e,r,this,a,i),ant(e,r)},t.prototype.onclick=function(e,r,i){int[i].call(this)},t.prototype.remove=function(e,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var r=e.areas;if(!e.isEnd||!r.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new w_(b_(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,function(u,c,d){if(d.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[h],d,c)}}),Ket(a,i),this._dispatchZoomAction(i);function s(u,c,d){var h=c.getAxis(u),f=h.model,p=l(u,f,a),g=p.findRepresentativeAxisProxy(f).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=au(0,d.slice(),h.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var h;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(f){var p=f.getAxisModel(u,c.componentIndex);p&&(h=f)}),h}},t.prototype._dispatchZoomAction=function(e){var r=[];__(e,function(i,a){r.push(on(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(e){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(Ta),int={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Xet(this.ecModel))}};function b_(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ant(n,t){n.setIconStatus("back",Zet(t)>1?"emphasis":"normal")}function ont(n,t,e,r,i){var a=e._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),e._isZoomActive=a,n.setIconStatus("zoom",a?"emphasis":"normal");var o=new w_(b_(n),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}w6("dataZoom",function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var r=t.getModel(e),i=[],a=b_(r),o=wd(n,a);__(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),__(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:nnt+u+d};h[c]=d,i.push(h)}return i});const snt=rnt;function lnt(n){n.registerComponentModel(Tet),n.registerComponentView(Pet),Bc("saveAsImage",Iet),Bc("magicType",Oet),Bc("dataView",Get),Bc("dataZoom",snt),Bc("restore",Jet),_n(Cet)}var unt=["rect","polygon","keep","clear"];function cnt(n,t){var e=cr(n?n.brush:[]);if(e.length){var r=[];mt(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=n&&n.toolbox;Se(i)&&(i=i[0]),i||(i={feature:{}},n.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),dnt(s),t&&!s.length&&s.push.apply(s,unt)}}function dnt(n){var t={};mt(n,function(e){t[e]=1}),n.length=0,mt(t,function(e,r){n.push(r)})}var ER=mt;function LR(n){if(n){for(var t in n)if(n.hasOwnProperty(t))return!0}}function C_(n,t,e){var r={};return ER(t,function(a){var o=r[a]=i();ER(n[a],function(s,l){if(fi.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new fi(u),l==="opacity"&&(u=on(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new fi(u))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function OR(n,t,e){var r;mt(e,function(i){t.hasOwnProperty(i)&&LR(t[i])&&(r=!0)}),r&&mt(e,function(i){t.hasOwnProperty(i)&&LR(t[i])?n[i]=on(t[i]):delete n[i]})}function hnt(n,t,e,r,i,a){var o={};mt(n,function(d){var h=fi.prepareVisualTypes(t[d]);o[d]=h});var s;function l(d){return Zy(e,s,d)}function u(d,h){xk(e,s,d,h)}a==null?e.each(c):e.each([a],c);function c(d,h){s=a==null?d:h;var f=e.getRawDataItem(s);if(!(f&&f.visualMap===!1))for(var p=r.call(i,d),g=t[p],v=o[p],y=0,x=v.length;y<x;y++){var S=v[y];g[S]&&g[S].applyVisual(d,l,u)}}}function fnt(n,t,e,r){var i={};return mt(n,function(a){var o=fi.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(D){return Zy(s,d,D)}function c(D,C){xk(s,d,D,C)}for(var d,h=s.getStore();(d=o.next())!=null;){var f=s.getRawDataItem(d);if(!(f&&f.visualMap===!1))for(var p=r!=null?h.get(l,d):d,g=e(p),v=t[g],y=i[g],x=0,S=y.length;x<S;x++){var _=y[x];v[_]&&v[_].applyVisual(p,u,c)}}}}}function pnt(n){var t=n.brushType,e={point:function(r){return RR[t].point(r,e,n)},rect:function(r){return RR[t].rect(r,e,n)}};return e}var RR={lineX:NR(0),lineY:NR(1),rect:{point:function(n,t,e){return n&&e.boundingRect.contain(n[0],n[1])},rect:function(n,t,e){return n&&e.boundingRect.intersect(n)}},polygon:{point:function(n,t,e){return n&&e.boundingRect.contain(n[0],n[1])&&$l(e.range,n[0],n[1])},rect:function(n,t,e){var r=e.range;if(!n||r.length<=1)return!1;var i=n.x,a=n.y,o=n.width,s=n.height,l=r[0];if($l(r,i,a)||$l(r,i+o,a)||$l(r,i,a+s)||$l(r,i+o,a+s)||wn.create(n).contain(l[0],l[1])||Zd(i,a,i+o,a,r)||Zd(i,a,i,a+s,r)||Zd(i+o,a,i+o,a+s,r)||Zd(i,a+s,i+o,a+s,r))return!0}}};function NR(n){var t=["x","y"],e=["width","height"];return{point:function(r,i,a){if(r){var o=a.range,s=r[n];return Gh(s,o)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[n]],r[t[n]]+r[e[n]]];return s[1]<s[0]&&s.reverse(),Gh(s[0],o)||Gh(s[1],o)||Gh(o[0],s)||Gh(o[1],s)}}}}function Gh(n,t){return t[0]<=n&&n<=t[1]}const Dht=null;var BR=["inBrush","outOfBrush"],M_="__ecBrushSelect",T_="__ecInBrushSelectEvent";function VR(n){n.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new w_(t.option,n);e.setInputRanges(t.areas,n)})}function gnt(n,t,e){var r=[],i,a;n.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),VR(n),n.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:on(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,d=[],h=[],f=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=we(o.areas,function(D){var C=xnt[D.brushType],N=nn({boundingRect:C?C(D):void 0},D);return N.selectors=pnt(N),N}),v=C_(o.option,BR,function(D){D.mappingMethod="fixed"});Se(c)&&mt(c,function(D){d[D]=1});function y(D){return c==="all"||!!d[D]}function x(D){return!!D.length}n.eachSeries(function(D,C){var N=f[C]=[];D.subType==="parallel"?S(D,C):_(D,C,N)});function S(D,C){var N=D.coordinateSystem;p=p||N.hasAxisBrushed(),y(C)&&N.eachActiveState(D.getData(),function(q,et){q==="active"&&(h[et]=1)})}function _(D,C,N){if(!(!D.brushSelector||ynt(o,C))&&(mt(g,function(et){o.brushTargetManager.controlSeries(et,D,n)&&N.push(et),p=p||x(N)}),y(C)&&x(N))){var q=D.getData();q.each(function(et){WR(D,N,q,et)&&(h[et]=1)})}}n.eachSeries(function(D,C){var N={seriesId:D.id,seriesIndex:C,seriesName:D.name,dataIndex:[]};l.selected.push(N);var q=f[C],et=D.getData(),lt=y(C)?function(ft){return h[ft]?(N.dataIndex.push(et.getRawIndex(ft)),"inBrush"):"outOfBrush"}:function(ft){return WR(D,q,et,ft)?(N.dataIndex.push(et.getRawIndex(ft)),"inBrush"):"outOfBrush"};(y(C)?p:x(q))&&hnt(BR,v,et,lt)})}),vnt(t,i,a,r,e)}function vnt(n,t,e,r,i){if(i){var a=n.getZr();if(!a[T_]){a[M_]||(a[M_]=mnt);var o=pc(a,M_,e,t);o(n,r)}}}function mnt(n,t){if(!n.isDisposed()){var e=n.getZr();e[T_]=!0,n.dispatchAction({type:"brushSelect",batch:t}),e[T_]=!1}}function WR(n,t,e,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(n.brushSelector(r,e,o.selectors,o))return!0}}function ynt(n,t){var e=n.option.seriesIndex;return e!=null&&e!=="all"&&(Se(e)?kn(e,t)<0:t!==e)}var xnt={rect:function(n){return FR(n.range)},polygon:function(n){for(var t,e=n.range,r=0,i=e.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=e[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&FR(t)}};function FR(n){return new wn(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Snt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){this.ecModel=e,this.api=r,this.model,(this._brushController=new jw(r.getZr())).on("brush",Ge(this._onBrush,this)).mount()},t.prototype.render=function(e,r,i,a){this.model=e,this._updateController(e,r,i,a)},t.prototype.updateTransform=function(e,r,i,a){VR(r),this._updateController(e,r,i,a)},t.prototype.updateVisual=function(e,r,i,a){this.updateTransform(e,r,i,a)},t.prototype.updateView=function(e,r,i,a){this._updateController(e,r,i,a)},t.prototype._updateController=function(e,r,i,a){(!a||a.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:on(i),$from:r}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:on(i),$from:r})},t.type="brush",t}(Lr);const wnt=Snt;var _nt="#ddd",bnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,r){var i=this.option;!r&&OR(i,e,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:_nt},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=we(e,function(r){return jR(this.option,r)},this))},t.prototype.setBrushOption=function(e){this.brushOption=jR(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Jn);function jR(n,t){return Mn({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new pr(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},t,!0)}const Cnt=bnt;var Mnt=["rect","polygon","lineX","lineY","keep","clear"],Tnt=function(n){Zt(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.render=function(e,r,i){var a,o,s;r.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,mt(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(e,r,i){this.render(e,r,i)},t.prototype.getIcons=function(){var e=this.model,r=e.get("icon",!0),i={};return mt(e.get("type",!0),function(a){r[a]&&(i[a]=r[a])}),i},t.prototype.onclick=function(e,r,i){var a=this._brushType,o=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var r={show:!0,type:Mnt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(Ta);const Dnt=Tnt;function knt(n){n.registerComponentView(wnt),n.registerComponentModel(Cnt),n.registerPreprocessor(cnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,gnt),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Fr),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Fr),Bc("brush",Dnt)}var Pnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Jn),Ant=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=pn(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Wn({style:mr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),h=e.get("subtext"),f=new Wn({style:mr(s,{text:h,fill:s.getTextColor(),y:d.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),g=e.get("sublink"),v=e.get("triggerEvent",!0);c.silent=!p&&!v,f.silent=!g&&!v,p&&c.on("click",function(){_p(p,"_"+e.get("target"))}),g&&f.on("click",function(){_p(g,"_"+e.get("subtarget"))}),hn(c).eventData=hn(f).eventData=v?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(c),h&&a.add(f);var y=a.getBoundingRect(),x=e.getBoxLayoutParams();x.width=y.width,x.height=y.height;var S=Xr(x,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),f.setStyle(_),y=a.getBoundingRect();var D=S.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var N=new jn({shape:{x:y.x-D[3],y:y.y-D[0],width:y.width+D[1]+D[3],height:y.height+D[0]+D[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});a.add(N)}},t.type="title",t}(Lr);function Int(n){n.registerComponentModel(Pnt),n.registerComponentView(Ant)}var Ent=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,r,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){n.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var r=this._data.count();this.option.loop?e=(e%r+r)%r:(e>=r&&(e=r-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,r=e.data||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],mt(r,function(u,c){var d=Zr(Uu(u),""),h;rn(u)?(h=on(u),h.value=c):h=c,o.push(h),a.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new hi([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Jn);const zR=Ent;var HR=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=_s(zR.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(zR);Wr(HR,Dy.prototype);const Lnt=HR;var Ont=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Lr);const Rnt=Ont;var Nnt=function(n){Zt(t,n);function t(e,r,i,a){var o=n.call(this,e,r,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ga);const Bnt=Nnt;var D_=Math.PI,UR=Kn(),Vnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){this.api=r},t.prototype.render=function(e,r,i){if(this.model=e,this.api=i,this.ecModel=r,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return qr("nameValue",{noName:!0,value:c})},mt(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,r){var i=e.get(["label","position"]),a=e.get("orient"),o=Fnt(e,r),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":je(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:D_/2},d=a==="vertical"?o.height:o.width,h=e.getModel("controlStyle"),f=h.get("show",!0),p=f?h.get("itemSize"):0,g=f?h.get("itemGap"):0,v=p+g,y=e.get(["label","rotate"])||0;y=y*D_/180;var x,S,_,D=h.get("position",!0),C=f&&h.get("showPlayBtn",!0),N=f&&h.get("showPrevBtn",!0),q=f&&h.get("showNextBtn",!0),et=0,lt=d;D==="left"||D==="bottom"?(C&&(x=[0,0],et+=v),N&&(S=[et,0],et+=v),q&&(_=[lt-p,0],lt-=v)):(C&&(x=[lt-p,0],lt-=v),N&&(S=[0,0],et+=v),q&&(_=[lt-p,0],lt-=v));var ft=[et,lt];return e.get("inverse")&&ft.reverse(),{viewRect:o,mainLength:d,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:x,prevBtnPosition:S,nextBtnPosition:_,axisExtent:ft,controlSize:p,controlGap:g}},t.prototype._position=function(e,r){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=ea(),l=o.x,u=o.y+o.height;no(s,s,[-l,-u]),qs(s,s,-D_/2),no(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=x(o),d=x(i.getBoundingRect()),h=x(a.getBoundingRect()),f=[i.x,i.y],p=[a.x,a.y];p[0]=f[0]=c[0][0];var g=e.labelPosOpt;if(g==null||je(g)){var v=g==="+"?0:1;S(f,d,c,1,v),S(p,h,c,1,1-v)}else{var v=g>=0?0:1;S(f,d,c,1,v),p[1]=f[1]+g}i.setPosition(f),a.setPosition(p),i.rotation=a.rotation=e.rotation,y(i),y(a);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function x(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function S(_,D,C,N,q){_[N]+=C[N][q]-D[N][q]}},t.prototype._createAxis=function(e,r){var i=r.getData(),a=r.get("axisType"),o=Wnt(r,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Bnt("value",o,e.axisExtent,a);return l.model=r,l},t.prototype._createGroup=function(e){var r=this[e]=new sn;return this.group.add(r),r},t.prototype._renderAxisLine=function(e,r,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new oi({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ye({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new oi({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:nn({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(e,r,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],mt(l,function(u){var c=i.dataToCoord(u.value),d=s.getItemModel(u.value),h=d.getModel("itemStyle"),f=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ge(o._changeTimeline,o,u.value)},v=GR(d,h,r,g);v.ensureState("emphasis").style=f.getItemStyle(),v.ensureState("progress").style=p.getItemStyle(),jo(v);var y=hn(v);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(v)})},t.prototype._renderAxisLabel=function(e,r,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],mt(u,function(c){var d=c.tickValue,h=l.getItemModel(d),f=h.getModel("label"),p=h.getModel(["emphasis","label"]),g=h.getModel(["progress","label"]),v=i.dataToCoord(c.tickValue),y=new Wn({x:v,y:0,rotation:e.labelRotation-e.rotation,onclick:Ge(o._changeTimeline,o,d),silent:!1,style:mr(f,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=mr(p),y.ensureState("progress").style=mr(g),r.add(y),jo(y),UR(y).dataIndex=d,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,r,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),d=a.get("inverse",!0);h(e.nextBtnPosition,"next",Ge(this._changeTimeline,this,d?"-":"+")),h(e.prevBtnPosition,"prev",Ge(this._changeTimeline,this,d?"+":"-")),h(e.playPosition,c?"stop":"play",Ge(this._handlePlayClick,this,!c),!0);function h(f,p,g,v){if(f){var y=Oa(pn(a.get(["controlStyle",p+"BtnSize"]),o),o),x=[0,-y/2,y,y],S=jnt(a,p+"Icon",x,{x:f[0],y:f[1],originX:o/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});S.ensureState("emphasis").style=u,r.add(S),jo(S)}}},t.prototype._renderCurrentPointer=function(e,r,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=Ge(u._handlePointerDrag,u),d.ondragend=Ge(u._handlePointerDragend,u),KR(d,u._progressLine,s,i,a,!0)},onUpdate:function(d){KR(d,u._progressLine,s,i,a)}};this._currentPointer=GR(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,r){var i=this._toAxisCoord(e)[0],a=this._axis,o=ha(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=e.model;e._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var r=this._mainGroup.getLocalTransform();return Fa(e,r,!0)},t.prototype._findNearestTick=function(e){var r=this.model.getData(),i=1/0,a,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-e);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var r=this.model.getCurrentIndex();e==="+"?e=r+1:e==="-"&&(e=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var a=0;a<r.length;a++)r&&r[a]&&r[a].toggleState("progress",a<e);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",UR(i[a]).dataIndex<=e)},t.type="timeline.slider",t}(Rnt);function Wnt(n,t){if(t=t||n.get("type"),t)switch(t){case"category":return new Mx({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new R2({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new Ps}}function Fnt(n,t){return Xr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},n.get("padding"))}function jnt(n,t,e,r){var i=r.style,a=Yd(n.get(["controlStyle",t]),r||{},new wn(e[0],e[1],e[2],e[3]));return i&&a.setStyle(i),a}function GR(n,t,e,r,i,a){var o=t.get("color");if(i)i.setColor(o),e.add(i),a&&a.onUpdate(i);else{var s=n.get("symbol");i=Rr(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),r=Mn({rectHover:!0,z2:100},r,!0);var u=vc(n.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Rl(n.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var d=n.get("symbolRotate");return r.rotation=(d||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function KR(n,t,e,r,i,a){if(!n.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",e));if(a||!o.get("animation",!0))n.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const znt=Vnt;function Hnt(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,r){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),nn({currentIndex:i.option.currentIndex},t)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var r=e.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function Unt(n){var t=n&&n.timeline;Se(t)||(t=t?[t]:[]),mt(t,function(e){e&&Gnt(e)})}function Gnt(n){var t=n.type,e={number:"value",time:"time"};if(e[t]&&(n.axisType=e[t],delete n.type),XR(n),uu(n,"controlPosition")){var r=n.controlStyle||(n.controlStyle={});uu(r,"position")||(r.position=n.controlPosition),r.position==="none"&&!uu(r,"show")&&(r.show=!1,delete r.position),delete n.controlPosition}mt(n.data||[],function(i){rn(i)&&!Se(i)&&(!uu(i,"value")&&uu(i,"name")&&(i.value=i.name),XR(i))})}function XR(n){var t=n.itemStyle||(n.itemStyle={}),e=t.emphasis||(t.emphasis={}),r=n.label||n.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};mt(r,function(o,s){!a[s]&&!uu(i,s)&&(i[s]=o)}),e.label&&!uu(r,"emphasis")&&(r.emphasis=e.label,delete e.label)}function uu(n,t){return n.hasOwnProperty(t)}function Knt(n){n.registerComponentModel(Lnt),n.registerComponentView(znt),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),Hnt(n),n.registerPreprocessor(Unt)}function k_(n,t){if(!n)return!1;for(var e=Se(n)?n:[n],r=0;r<e.length;r++)if(e[r]&&e[r][t])return!0;return!1}function gv(n){ll(n,"label",["show"])}var vv=Kn(),YR=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e}return t.prototype.init=function(e,r,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Zn.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,r){this._mergeOption(e,r,!1,!1)},t.prototype._mergeOption=function(e,r,i,a){var o=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=vv(s)[o];if(!l||!l.data){vv(s)[o]=null;return}u?u._mergeOption(l,r,!0):(a&&gv(l),mt(l.data,function(c){c instanceof Array?(gv(c[0]),gv(c[1])):gv(c)}),u=this.createMarkerModelFromSeries(l,this,r),ye(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),vv(s)[o]=u},this)},t.prototype.formatTooltip=function(e,r,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return qr("section",{header:this.name,blocks:[qr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,r){return vv(e)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Jn);Wr(YR,Dy.prototype);const Fs=YR;var Xnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,r,i){return new t(e,r,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Fs);const Ynt=Xnt;function P_(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function Znt(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function mv(n,t,e,r,i,a){var o=[],s=Ko(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=I_(t,l,n),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(e,c),o[a]=t.get(l,c);var d=t.get(r,c),h=oo(t.get(r,c));return h=Math.min(h,20),h>=0&&(o[a]=+o[a].toFixed(h)),[o,d]}var A_={min:xn(mv,"min"),max:xn(mv,"max"),average:xn(mv,"average"),median:xn(mv,"median")};function Kh(n,t){if(t){var e=n.getData(),r=n.coordinateSystem,i=r&&r.dimensions;if(!Znt(t)&&!Se(t.coord)&&Se(i)){var a=ZR(t,e,r,n);if(t=on(t),t.type&&A_[t.type]&&a.baseAxis&&a.valueAxis){var o=kn(i,a.baseAxis.dim),s=kn(i,a.valueAxis.dim),l=A_[t.type](e,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Se(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)A_[u[c]]&&(u[c]=I_(e,e.mapDimension(i[c]),u[c]));return t}}function ZR(n,t,e,r){var i={};return n.valueIndex!=null||n.valueDim!=null?(i.valueDataDim=n.valueIndex!=null?t.getDimension(n.valueIndex):n.valueDim,i.valueAxis=e.getAxis($nt(r,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function $nt(n,t){var e=n.getData().getDimensionInfo(t);return e&&e.coordDim}function Xh(n,t){return n&&n.containData&&t.coord&&!P_(t)?n.containData(t.coord):!0}function Jnt(n,t,e){return n&&n.containZone&&t.coord&&e.coord&&!P_(t)&&!P_(e)?n.containZone(t.coord,e.coord):!0}function $R(n,t){return n?function(e,r,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return Cs(o,t[a])}:function(e,r,i,a){return Cs(e.value,t[a])}}function I_(n,t,e){if(e==="average"){var r=0,i=0;return n.each(t,function(a,o){isNaN(a)||(r+=a,i++)}),r/i}else return e==="median"?n.getMedian(t):n.getDataExtent(t)[e==="max"?1:0]}var E_=Kn(),Qnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=Ze()},t.prototype.render=function(e,r,i){var a=this,o=this.markerGroupMap;o.each(function(s){E_(s).keep=!1}),r.eachSeries(function(s){var l=Fs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,r,i)}),o.each(function(s){!E_(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(e){E_(e).keep=!0},t.prototype.toggleBlurSeries=function(e,r){var i=this;mt(e,function(a){var o=Fs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?IM(l):X0(l))})}})},t.type="marker",t}(Lr);const L_=Qnt;function JR(n,t,e){var r=t.coordinateSystem;n.each(function(i){var a=n.getItemModel(i),o,s=Oe(a.get("x"),e.getWidth()),l=Oe(a.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(n.getValues(n.dimensions,i));else if(r){var u=n.get(r.dimensions[0],i),c=n.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(i,o)})}var qnt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,r,i){r.eachSeries(function(a){var o=Fs.getMarkerModelFromSeries(a,"markPoint");o&&(JR(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(e,r,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new xh),d=trt(o,e,r);r.setData(d),JR(r.getData(),e,a),d.each(function(h){var f=d.getItemModel(h),p=f.getShallow("symbol"),g=f.getShallow("symbolSize"),v=f.getShallow("symbolRotate"),y=f.getShallow("symbolOffset"),x=f.getShallow("symbolKeepAspect");if(qe(p)||qe(g)||qe(v)||qe(y)){var S=r.getRawValue(h),_=r.getDataParams(h);qe(p)&&(p=p(S,_)),qe(g)&&(g=g(S,_)),qe(v)&&(v=v(S,_)),qe(y)&&(y=y(S,_))}var D=f.getModel("itemStyle").getItemStyle(),C=qd(l,"color");D.fill||(D.fill=C),d.setItemVisual(h,{symbol:p,symbolSize:g,symbolRotate:v,symbolOffset:y,symbolKeepAspect:x,style:D})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(h){h.traverse(function(f){hn(f).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||e.get("silent")},t.type="markPoint",t}(L_);function trt(n,t,e){var r;n?r=we(n&&n.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return ye(ye({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new hi(r,e),a=we(e.get("data"),xn(Kh,t));n&&(a=sr(a,xn(Xh,n)));var o=$R(!!n,r);return i.initData(a,null,o),i}const ert=qnt;function nrt(n){n.registerComponentModel(Ynt),n.registerComponentView(ert),n.registerPreprocessor(function(t){k_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var rrt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,r,i){return new t(e,r,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Fs);const irt=rrt;var yv=Kn(),art=function(n,t,e,r){var i=n.getData(),a;if(Se(r))a=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=ii(r.yAxis,r.xAxis);else{var u=ZR(r,i,t,n);s=u.valueAxis;var c=Sx(i,u.valueDataDim);l=I_(i,c,o)}var d=s.dim==="x"?0:1,h=1-d,f=on(r),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var g=e.get("precision");g>=0&&$n(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[d]=p.coord[d]=l,a=[f,p,{type:o,valueIndex:r.valueIndex,value:l}]}else a=[]}var v=[Kh(n,a[0]),Kh(n,a[1]),ye({},a[2])];return v[2].type=v[2].type||null,Mn(v[2],v[0]),Mn(v[2],v[1]),v};function xv(n){return!isNaN(n)&&!isFinite(n)}function QR(n,t,e,r){var i=1-n,a=r.dimensions[n];return xv(t[i])&&xv(e[i])&&t[n]===e[n]&&r.getAxis(a).containData(t[n])}function ort(n,t){if(n.type==="cartesian2d"){var e=t[0].coord,r=t[1].coord;if(e&&r&&(QR(1,e,r,n)||QR(0,e,r,n)))return!0}return Xh(n,t[0])&&Xh(n,t[1])}function O_(n,t,e,r,i){var a=r.coordinateSystem,o=n.getItemModel(t),s,l=Oe(o.get("x"),i.getWidth()),u=Oe(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,t));else{var c=a.dimensions,d=n.get(c[0],t),h=n.get(c[1],t);s=a.dataToPoint([d,h])}if(Xl(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;xv(n.get(c[0],t))?s[0]=f.toGlobalCoord(f.getExtent()[e?0:1]):xv(n.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(t,s)}var srt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,r,i){r.eachSeries(function(a){var o=Fs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=yv(o).from,u=yv(o).to;l.each(function(c){O_(l,c,!0,a,i),O_(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,r,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new ww);this.group.add(c.group);var d=lrt(o,e,r),h=d.from,f=d.to,p=d.line;yv(r).from=h,yv(r).to=f,r.setData(p);var g=r.get("symbol"),v=r.get("symbolSize"),y=r.get("symbolRotate"),x=r.get("symbolOffset");Se(g)||(g=[g,g]),Se(v)||(v=[v,v]),Se(y)||(y=[y,y]),Se(x)||(x=[x,x]),d.from.each(function(_){S(h,_,!0),S(f,_,!1)}),p.each(function(_){var D=p.getItemModel(_).getModel("lineStyle").getLineStyle();p.setItemLayout(_,[h.getItemLayout(_),f.getItemLayout(_)]),D.stroke==null&&(D.stroke=h.getItemVisual(_,"style").fill),p.setItemVisual(_,{fromSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(_,"symbolOffset"),fromSymbolRotate:h.getItemVisual(_,"symbolRotate"),fromSymbolSize:h.getItemVisual(_,"symbolSize"),fromSymbol:h.getItemVisual(_,"symbol"),toSymbolKeepAspect:f.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(_,"symbolOffset"),toSymbolRotate:f.getItemVisual(_,"symbolRotate"),toSymbolSize:f.getItemVisual(_,"symbolSize"),toSymbol:f.getItemVisual(_,"symbol"),style:D})}),c.updateData(p),d.line.eachItemGraphicEl(function(_){hn(_).dataModel=r,_.traverse(function(D){hn(D).dataModel=r})});function S(_,D,C){var N=_.getItemModel(D);O_(_,D,C,e,a);var q=N.getModel("itemStyle").getItemStyle();q.fill==null&&(q.fill=qd(l,"color")),_.setItemVisual(D,{symbolKeepAspect:N.get("symbolKeepAspect"),symbolOffset:pn(N.get("symbolOffset",!0),x[C?0:1]),symbolRotate:pn(N.get("symbolRotate",!0),y[C?0:1]),symbolSize:pn(N.get("symbolSize"),v[C?0:1]),symbol:pn(N.get("symbol",!0),g[C?0:1]),style:q})}this.markKeep(c),c.group.silent=r.get("silent")||e.get("silent")},t.type="markLine",t}(L_);function lrt(n,t,e){var r;n?r=we(n&&n.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return ye(ye({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new hi(r,e),a=new hi(r,e),o=new hi([],e),s=we(e.get("data"),xn(art,t,n,e));n&&(s=sr(s,xn(ort,n)));var l=$R(!!n,r);return i.initData(we(s,function(u){return u[0]}),null,l),a.initData(we(s,function(u){return u[1]}),null,l),o.initData(we(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const urt=srt;function crt(n){n.registerComponentModel(irt),n.registerComponentView(urt),n.registerPreprocessor(function(t){k_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var drt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,r,i){return new t(e,r,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Fs);const hrt=drt;var Sv=Kn(),frt=function(n,t,e,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=Kh(n,i),s=Kh(n,a),l=o.coord,u=s.coord;l[0]=ii(l[0],-1/0),l[1]=ii(l[1],-1/0),u[0]=ii(u[0],1/0),u[1]=ii(u[1],1/0);var c=ym([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function wv(n){return!isNaN(n)&&!isFinite(n)}function qR(n,t,e,r){var i=1-n;return wv(t[i])&&wv(e[i])}function prt(n,t){var e=t.coord[0],r=t.coord[1],i={coord:e,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return Xl(n,"cartesian2d")?e&&r&&(qR(1,e,r,n)||qR(0,e,r,n))?!0:Jnt(n,i,a):Xh(n,i)||Xh(n,a)}function tN(n,t,e,r,i){var a=r.coordinateSystem,o=n.getItemModel(t),s,l=Oe(o.get(e[0]),i.getWidth()),u=Oe(o.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],t),d=n.getValues(["x1","y1"],t),h=a.clampData(c),f=a.clampData(d),p=[];e[0]==="x0"?p[0]=h[0]>f[0]?d[0]:c[0]:p[0]=h[0]>f[0]?c[0]:d[0],e[1]==="y0"?p[1]=h[1]>f[1]?d[1]:c[1]:p[1]=h[1]>f[1]?c[1]:d[1],s=r.getMarkerPosition(p,e,!0)}else{var g=n.get(e[0],t),v=n.get(e[1],t),y=[g,v];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Xl(a,"cartesian2d")){var x=a.getAxis("x"),S=a.getAxis("y"),g=n.get(e[0],t),v=n.get(e[1],t);wv(g)?s[0]=x.toGlobalCoord(x.getExtent()[e[0]==="x0"?0:1]):wv(v)&&(s[1]=S.toGlobalCoord(S.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var eN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],grt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,r,i){r.eachSeries(function(a){var o=Fs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=we(eN,function(d){return tN(s,l,d,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,r,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new sn});this.group.add(c.group),this.markKeep(c);var d=vrt(o,e,r);r.setData(d),d.each(function(h){var f=we(eN,function(q){return tN(d,h,q,e,a)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,v=p.getExtent(),y=g.getExtent(),x=[p.parse(d.get("x0",h)),p.parse(d.get("x1",h))],S=[g.parse(d.get("y0",h)),g.parse(d.get("y1",h))];ha(x),ha(S);var _=!(v[0]>x[1]||v[1]<x[0]||y[0]>S[1]||y[1]<S[0]),D=!_;d.setItemLayout(h,{points:f,allClipped:D});var C=d.getItemModel(h).getModel("itemStyle").getItemStyle(),N=qd(l,"color");C.fill||(C.fill=N,je(C.fill)&&(C.fill=Wf(C.fill,.4))),C.stroke||(C.stroke=N),d.setItemVisual(h,"style",C)}),d.diff(Sv(c).data).add(function(h){var f=d.getItemLayout(h);if(!f.allClipped){var p=new Ki({shape:{points:f.points}});d.setItemGraphicEl(h,p),c.group.add(p)}}).update(function(h,f){var p=Sv(c).data.getItemGraphicEl(f),g=d.getItemLayout(h);g.allClipped?p&&c.group.remove(p):(p?Hn(p,{shape:{points:g.points}},r,h):p=new Ki({shape:{points:g.points}}),d.setItemGraphicEl(h,p),c.group.add(p))}).remove(function(h){var f=Sv(c).data.getItemGraphicEl(h);c.group.remove(f)}).execute(),d.eachItemGraphicEl(function(h,f){var p=d.getItemModel(f),g=d.getItemVisual(f,"style");h.useStyle(d.getItemVisual(f,"style")),ci(h,Qr(p),{labelFetcher:r,labelDataIndex:f,defaultText:d.getName(f)||"",inheritColor:je(g.fill)?Wf(g.fill,1):"#000"}),ui(h,p),Er(h,null,null,p.get(["emphasis","disabled"])),hn(h).dataModel=r}),Sv(c).data=d,c.group.silent=r.get("silent")||e.get("silent")},t.type="markArea",t}(L_);function vrt(n,t,e){var r,i,a=["x0","y0","x1","y1"];if(n){var o=we(n&&n.dimensions,function(u){var c=t.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return ye(ye({},d),{name:u,ordinalMeta:null})});i=we(a,function(u,c){return{name:u,type:o[c%2].type}}),r=new hi(i,e)}else i=[{name:"value",type:"float"}],r=new hi(i,e);var s=we(e.get("data"),xn(frt,t,n,e));n&&(s=sr(s,xn(prt,n)));var l=n?function(u,c,d,h){var f=u.coord[Math.floor(h/2)][h%2];return Cs(f,i[h])}:function(u,c,d,h){return Cs(u.value,i[h])};return r.initData(s,null,l),r.hasItemOption=!0,r}const mrt=grt;function yrt(n){n.registerComponentModel(hrt),n.registerComponentView(mrt),n.registerPreprocessor(function(t){k_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var xrt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=_s(Uh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Uh);const Srt=xrt;var R_=Kn();function wrt(n,t,e){R_(n).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function _rt(n,t){for(var e=R_(n).coordSysRecordMap,r=e.keys(),i=0;i<r.length;i++){var a=r[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||nN(e,o))}}}function nN(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function brt(n,t){var e={model:t,containsPoint:xn(Mrt,t),dispatchAction:xn(Crt,n),dataZoomInfoMap:null,controller:null},r=e.controller=new Ch(n.getZr());return mt(["pan","zoom","scrollMove"],function(i){r.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function Crt(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Mrt(n,t,e,r){return n.coordinateSystem.containPoint([e,r])}function Trt(n){var t,e="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return n.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[e+s]>r[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Drt(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var r=R_(e),i=r.coordSysRecordMap||(r.coordSysRecordMap=Ze());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=gR(a);mt(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,brt(e,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Ze());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){nN(i,a);return}var c=Trt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),pc(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var krt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,r,i){if(n.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),wrt(i,e,{pan:Ge(N_.pan,this),zoom:Ge(N_.zoom,this),scrollMove:Ge(N_.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_rt(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(g_),N_={zoom:function(n,t,e,r){var i=this.range,a=i.slice(),o=n.axisModels[0];if(o){var s=B_[t](null,[r.originX,r.originY],o,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(au(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:rN(function(n,t,e,r,i,a){var o=B_[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:rN(function(n,t,e,r,i,a){var o=B_[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(n[1]-n[0])*a.scrollDelta})};function rN(n){return function(t,e,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=n(o,s,t,e,r,i);if(au(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var B_={grid:function(n,t,e,r,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return n=n||[0,0],a.dim==="x"?(o.pixel=t[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(n,t,e,r,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(n,t,e,r,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return n=n||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const Prt=krt;function iN(n){v_(n),n.registerComponentModel(Srt),n.registerComponentView(Prt),Drt(n)}var Art=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=_s(Uh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Uh);const Irt=Art;var Yh=jn,aN=7,Ert=1,V_=30,Lrt=7,Zh="horizontal",oN="vertical",Ort=5,Rrt=["line","bar","candlestick","scatter"],Nrt={easing:"cubicOut",duration:100,delay:0},Brt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,r){this.api=r,this._onBrush=Ge(this._onBrush,this),this._onBrushEnd=Ge(this._onBrushEnd,this)},t.prototype.render=function(e,r,i,a){if(n.prototype.render.apply(this,arguments),pc(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$d(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new sn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,r=this.api,i=e.get("brushSelect"),a=i?Lrt:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Zh?{right:s.width-o.x-o.width,top:s.height-V_-aN-a,width:o.width,height:V_}:{right:aN,top:o.y,width:V_,height:o.height},u=nc(e.option);mt(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=Xr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===oN&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Zh&&!o?{scaleY:l?1:-1,scaleX:1}:i===Zh&&o?{scaleY:l?1:-1,scaleX:-1}:i===oN&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=r.x-u.x,e.y=r.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Yh({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Yh({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ge(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var r=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var d=o.getDataExtent(l),h=(d[1]-d[0])*.3;d=[d[0]-h,d[1]+h];var f=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],v=[],y=p[1]/(o.count()-1),x=0,S=Math.round(o.count()/r[0]),_;o.each([l],function(et,lt){if(S>0&&lt%S){x+=y;return}var ft=et==null||isNaN(et)||et==="",_t=ft?0:nr(et,d,f,!0);ft&&!_&&lt?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!ft&&_&&(g.push([x,0]),v.push([x,0])),g.push([x,_t]),v.push([x,_t]),x+=y,_=ft}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=v}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var D=this.dataZoomModel;function C(et){var lt=D.getModel(et?"selectedDataBackground":"dataBackground"),ft=new sn,_t=new Ki({shape:{points:u},segmentIgnoreThreshold:1,style:lt.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Ct=new Xi({shape:{points:c},segmentIgnoreThreshold:1,style:lt.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return ft.add(_t),ft.add(Ct),ft}for(var N=0;N<3;N++){var q=C(N===1);this._displayables.sliderGroup.add(q),this._displayables.dataShadowSegs.push(q)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,r=e.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();mt(l,function(u){if(!i&&!(r!==!0&&kn(Rrt,u.get("type"))<0)){var c=a.getComponent(Ws(o),s).axis,d=Vrt(o),h,f=u.coordinateSystem;d!=null&&f.getOtherAxis&&(h=f.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),i={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),h=r.filler=new Yh({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Yh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Ert,fill:"rgba(0,0,0,0)"}})),mt([0,1],function(S){var _=l.get("handleIcon");!Zp[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var D=Rr(_,-1,0,2,2,null,!0);D.attr({cursor:sN(this._orient),draggable:!0,drift:Ge(this._onDragMove,this,S),ondragend:Ge(this._onDragEnd,this),onmouseover:Ge(this._showDataInfo,this,!0),onmouseout:Ge(this._showDataInfo,this,!1),z2:5});var C=D.getBoundingRect(),N=l.get("handleSize");this._handleHeight=Oe(N,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,D.setStyle(l.getModel("handleStyle").getItemStyle()),D.style.strokeNoScale=!0,D.rectHover=!0,D.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),jo(D);var q=l.get("handleColor");q!=null&&(D.style.fill=q),o.add(i[S]=D);var et=l.getModel("textStyle");e.add(a[S]=new Wn({silent:!0,invisible:!0,style:mr(et,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:et.getTextColor(),font:et.getFont()}),z2:10}))},this);var f=h;if(d){var p=Oe(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new jn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),v=p*.8,y=r.moveHandleIcon=Rr(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));f=r.moveZone=new jn({invisible:!0,shape:{y:s[1]-x,height:p+x}}),f.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(f)}f.attr({draggable:!0,cursor:sN(this._orient),drift:Ge(this._onDragMove,this,"all"),ondragstart:Ge(this._showDataInfo,this,!0),ondragend:Ge(this._onDragEnd,this),onmouseover:Ge(this._showDataInfo,this,!0),onmouseout:Ge(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[nr(e[0],[0,100],r,!0),nr(e[1],[0,100],r,!0)]},t.prototype._updateInterval=function(e,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];au(r,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?nr(s.minSpan,l,o,!0):null,s.maxSpan!=null?nr(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=ha([nr(a[0],o,l,!0),nr(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(e){var r=this._displayables,i=this._handleEnds,a=ha(i.slice()),o=this._size;mt([0,1],function(f){var p=r.handles[f],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:i[f]+(f?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var d=l[c],h=d.getClipPath();h||(h=new jn,d.setClipPath(h)),h.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var r=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,d=e?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(d[0],u),this._formatLabel(d[1],u)]}}var h=ha(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(p){var g=Ll(i.handles[p].parent,this.group),v=Up(p===0?"right":"left",g),y=this._handleWidth/2+Ort,x=Fa([h[p]+(p===0?-y:y),this._size[1]/2],g);a[p].setStyle({x:x[0],y:x[1],verticalAlign:o===Zh?"middle":v,align:o===Zh?v:"center",text:s[p]})}},t.prototype._formatLabel=function(e,r){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=e==null||isNaN(e)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return qe(a)?a(e,s):je(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),r.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(e,r,i,a){this._dragging=!0,Io(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Fa([r,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var r=e.offsetX,i=e.offsetY;this._brushStart=new Sn(r,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=ha([nr(i.x,o,s,!0),nr(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Io(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Yh({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},t.prototype._dispatchZoomAction=function(e){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Nrt:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var e,r=gR(this.dataZoomModel).infoList;if(!e&&r.length){var i=r[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(g_);function Vrt(n){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[n]}function sN(n){return n==="vertical"?"ns-resize":"ew-resize"}const Wrt=Brt;function lN(n){n.registerComponentModel(Irt),n.registerComponentView(Wrt),v_(n)}function Frt(n){_n(iN),_n(lN)}var jrt={get:function(n,t,e){var r=on((zrt[n]||{})[t]);return e&&Se(r)?r[r.length-1]:r}},zrt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const uN=jrt;var cN=fi.mapVisual,Hrt=fi.eachVisual,Urt=Se,dN=mt,Grt=ha,Krt=nr,Xrt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,r,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,r){var i=this.option;!r&&OR(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var r=this.stateList;e=Ge(e,this),this.controllerVisuals=C_(this.option.controller,r,e),this.targetVisuals=C_(this.option.target,r,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,r=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,a){r.push(a)}):r=cr(e),r},t.prototype.eachTargetSeries=function(e,r){mt(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(r,a)},this)},t.prototype.isTargetSeries=function(e){var r=!1;return this.eachTargetSeries(function(i){i===e&&(r=!0)}),r},t.prototype.formatValueText=function(e,r,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Se(e)&&(e=e.slice(),u=!0);var c=r?e:u?[d(e[0]),d(e[1])]:d(e);if(je(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(qe(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+c[1]:e[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,r=Grt([e.min,e.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(e){var r=this.option.dimension;if(r!=null)return e.getDimensionIndex(r);for(var i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),o=r.controller||(r.controller={});Mn(a,i),Mn(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(d){Urt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:e.get("gradientColor")}}function u(d,h,f){var p=d[h],g=d[f];p&&!g&&(g=d[f]={},dN(p,function(v,y){if(fi.isValidType(y)){var x=uN.get(y,"inactive",s);x!=null&&(g[y]=x,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var h=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,f=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";dN(this.stateList,function(y){var x=this.itemSize,S=d[y];S||(S=d[y]={color:s?p:[p]}),S.symbol==null&&(S.symbol=h&&on(h)||(s?v:[v])),S.symbolSize==null&&(S.symbolSize=f&&on(f)||(s?x[0]:[x[0],x[0]])),S.symbol=cN(S.symbol,function(C){return C==="none"?v:C});var _=S.symbolSize;if(_!=null){var D=-1/0;Hrt(_,function(C){C>D&&(D=C)}),S.symbolSize=cN(_,function(C){return Krt(C,[0,D],[0,x[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Jn);const _v=Xrt;var hN=[20,140],Yrt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=hN[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=hN[1])},t.prototype._resetRange=function(){var e=this.getExtent(),r=this.option.range;!r||r.auto?(e.auto=1,this.option.range=e):Se(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],e[0]),r[1]=Math.min(r[1],e[1]))},t.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),mt(this.stateList,function(e){var r=this.option.controller[e].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),r=ha((this.get("range")||[]).slice());return r[0]>e[1]&&(r[0]=e[1]),r[1]>e[1]&&(r[1]=e[1]),r[0]<e[0]&&(r[0]=e[0]),r[1]<e[0]&&(r[1]=e[0]),r},t.prototype.getValueState=function(e){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=e)&&(r[1]>=i[1]||e<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var r=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},t.prototype.getVisualMeta=function(e){var r=fN(this,"outOfRange",this.getExtent()),i=fN(this,"inRange",this.option.range.slice()),a=[];function o(f,p){a.push({value:f,color:e(f,p)})}for(var s=0,l=0,u=i.length,c=r.length;l<c&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&o(r[l],"outOfRange");for(var d=1;s<u;s++,d=0)d&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var d=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(d&&(a.length&&o(a[a.length-1].value,"outOfRange"),d=0),o(r[l],"outOfRange"));var h=a.length;return{stops:a,outerColors:[h?a[0].color:"transparent",h?a[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=_s(_v.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(_v);function fN(n,t,e){if(e[0]===e[1])return e.slice();for(var r=200,i=(e[1]-e[0])/r,a=e[0],o=[],s=0;s<=r&&a<e[1];s++)o.push(a),a+=i;return o.push(e[1]),o}const Zrt=Yrt;var $rt=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,r){this.ecModel=e,this.api=r},t.prototype.render=function(e,r,i,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,r,i,a)},t.prototype.renderBackground=function(e){var r=this.visualMapModel,i=ec(r.get("padding")||0),a=e.getBoundingRect();e.add(new jn({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,r,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(f){return s[f]}function c(f,p){s[f]=p}var d=o.controllerVisuals[a||o.getValueState(e)],h=fi.prepareVisualTypes(d);return mt(h,function(f){var p=d[f];i.convertOpacityToAlpha&&f==="opacity"&&(f="colorAlpha",p=d.__alphaForOpacity),fi.dependsOn(f,r)&&p&&p.applyVisual(e,u,c)}),s[r]},t.prototype.positionGroup=function(e){var r=this.visualMapModel,i=this.api;Cp(e,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,r,i,a){},t.type="visualMap",t}(Lr);const pN=$rt;var gN=[["left","right","width"],["top","bottom","height"]];function vN(n,t,e){var r=n.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=r.orient==="horizontal"?1:0,s=gN[o],l=[0,null,10],u={},c=0;c<3;c++)u[gN[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:r[s[c]];var d=[["x","width",3],["y","height",0]][o],h=Xr(u,a,r.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+h[d[1]]*.5<a[d[1]]*.5?0:1]}function bv(n,t){return mt(n||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),n}var Mo=nr,Jrt=mt,mN=Math.min,W_=Math.max,Qrt=12,qrt=6,tit=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,r){n.prototype.init.call(this,e,r),this._hoverLinkFromSeriesMouseOver=Ge(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ge(this._hideIndicator,this)},t.prototype.doRender=function(e,r,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,r=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(r);var i=e.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(e,r,i){if(r){var a=r[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),d=this._applyTransform(i===0?"bottom":"top",u),h=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new Wn({style:mr(f,{x:c[0],y:c[1],verticalAlign:h==="horizontal"?"middle":d,align:h==="horizontal"?d:"center",text:a})}))}},t.prototype._renderBar=function(e){var r=this.visualMapModel,i=this._shapes,a=r.itemSize,o=this._orient,s=this._useHandle,l=vN(r,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new sn;u.add(c),c.add(i.outOfRange=yN()),c.add(i.inRange=yN(null,s?SN(this._orient):null,Ge(this._dragHandle,this,"all",!1),Ge(this._dragHandle,this,"all",!0))),c.setClipPath(new jn({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var d=r.textStyleModel.getTextRect("\u56FD"),h=W_(d.width,d.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,a,h,o),this._createHandle(r,u,1,a,h,o)),this._createIndicator(r,u,a,h,o),e.add(u)},t.prototype._createHandle=function(e,r,i,a,o,s){var l=Ge(this._dragHandle,this,i,!1),u=Ge(this._dragHandle,this,i,!0),c=Oa(e.get("handleSize"),a[0]),d=Rr(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=SN(this._orient);d.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Io(y.event)}}),d.x=a[0]/2,d.useStyle(e.getModel("handleStyle").getItemStyle()),d.setStyle({strokeNoScale:!0,strokeFirst:!0}),d.style.lineWidth*=2,d.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),_l(d,!0),r.add(d);var f=this.visualMapModel.textStyleModel,p=new Wn({cursor:h,draggable:!0,drift:l,onmousemove:function(y){Io(y.event)},ondragend:u,style:mr(f,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var g=[c,0],v=this._shapes;v.handleThumbs[i]=d,v.handleLabelPoints[i]=g,v.handleLabels[i]=p},t.prototype._createIndicator=function(e,r,i,a,o){var s=Oa(e.get("indicatorSize"),i[0]),l=Rr(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof li){var c=l.style;l.useStyle(ye({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var d=this.visualMapModel.textStyleModel,h=new Wn({silent:!0,invisible:!0,style:mr(d,{x:0,y:0,text:""})});this.group.add(h);var f=[(o==="horizontal"?a/2:qrt)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,r,i,a){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():xN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,r=this._dataInterval=e.getSelected(),i=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[Mo(r[0],i,a,!0),Mo(r[1],i,a,!0)]},t.prototype._updateInterval=function(e,r){r=r||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];au(r,a,o,e,0);var s=i.getExtent();this._dataInterval=[Mo(a[0],o,s,!0),Mo(a[1],o,s,!0)]},t.prototype._updateView=function(e){var r=this.visualMapModel,i=r.getExtent(),a=this._shapes,o=[0,r.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,r,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Kd(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,r){var i=100,a=[],o=(e[1]-e[0])/i;a.push({color:this.getControllerVisual(e[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",r),offset:1}),a},t.prototype._createBarPoints=function(e,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-r[1],e[1]]]},t.prototype._createBarGroup=function(e){var r=this._orient,i=this.visualMapModel.get("inverse");return new sn(r==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,r){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();Jrt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=e[c];var h=Mo(e[c],[0,l[1]],u,!0),f=this.getControllerVisual(h,"symbolSize");d.scaleX=d.scaleY=f/l[0],d.x=l[0]-f/2;var p=Fa(i.handleLabelPoints[c],Ll(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,r,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var h={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),g=Mo(e,s,u,!0),v=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=v;var x=Fa(c.indicatorLabelPoint,Ll(d,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),D=this._orient,C=D==="horizontal";S.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:C?_:"middle",align:C?"center":_});var N={x:v,y:g,style:{fill:f}},q={style:{x:x[0],y:x[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var et={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(N,et),S.animateTo(q,et)}else d.attr(N),S.attr(q);this._firstShowIndicator=!1;var lt=this._shapes.handleLabels;if(lt)for(var ft=0;ft<lt.length;ft++)this.api.enterBlur(lt[ft])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(r){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,a=e._applyTransform([r.offsetX,r.offsetY],e._shapes.mainGroup,!0,!0);a[1]=mN(W_(0,a[1]),i[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,r){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();e=mN(W_(o[0],e),o[1]);var l=eit(i,s,o),u=[e-l,e+l],c=Mo(e,o,s,!0),d=[Mo(u[0],o,s,!0),Mo(u[1],o,s,!0)];u[0]<o[0]&&(d[0]=-1/0),u[1]>o[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var h=this._hoverLinkDataIndices,f=[];(r||xN(i))&&(f=this._hoverLinkDataIndices=i.findTargetDataIndices(d));var p=MW(h,f);this._dispatchHighDown("downplay",bv(p[0],i)),this._dispatchHighDown("highlight",bv(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var r;if(Ol(e.target,function(l){var u=hn(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",bv(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,r,i,a){var o=Ll(r,a?null:this.group);return Se(e)?Fa(e,o,i):Up(e,o,i)},t.prototype._dispatchHighDown=function(e,r){r&&r.length&&this.api.dispatchAction({type:e,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(pN);function yN(n,t,e,r){return new Ki({shape:{points:n},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){Io(i.event)},ondragend:r})}function eit(n,t,e){var r=Qrt/2,i=n.get("hoverLinkDataSize");return i&&(r=Mo(i,t,e,!0)/2),r}function xN(n){var t=n.get("hoverLinkOnHandle");return!!(t==null?n.get("realtime"):t)}function SN(n){return n==="vertical"?"ns-resize":"ew-resize"}const nit=tit;var rit={type:"selectDataRange",event:"dataRangeSelected",update:"update"},iit=function(n,t){t.eachComponent({mainType:"visualMap",query:n},function(e){e.setSelected(n.selected)})},ait=[{createOnAllSeries:!0,reset:function(n,t){var e=[];return t.eachComponent("visualMap",function(r){var i=n.pipelineContext;!r.isTargetSeries(n)||i&&i.large||e.push(fnt(r.stateList,r.targetVisuals,Ge(r.getValueState,r),r.getDataDimensionIndex(n.getData())))}),e}},{createOnAllSeries:!0,reset:function(n,t){var e=n.getData(),r=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(n)){var a=i.getVisualMeta(Ge(oit,null,n,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(a.dimension=o,r.push(a))}}),n.getData().setVisual("visualMeta",r)}}];function oit(n,t,e,r){for(var i=t.targetVisuals[r],a=fi.prepareVisualTypes(i),o={color:qd(n.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,d,h)}return o.color;function d(f){return o[f]}function h(f,p){o[f]=p}}var wN=mt;function sit(n){var t=n&&n.visualMap;Se(t)||(t=t?[t]:[]),wN(t,function(e){if(e){Wc(e,"splitList")&&!Wc(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var r=e.pieces;r&&Se(r)&&wN(r,function(i){rn(i)&&(Wc(i,"start")&&!Wc(i,"min")&&(i.min=i.start),Wc(i,"end")&&!Wc(i,"max")&&(i.max=i.end))})}})}function Wc(n,t){return n&&n.hasOwnProperty&&n.hasOwnProperty(t)}var _N=!1;function bN(n){_N||(_N=!0,n.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),n.registerAction(rit,iit),mt(ait,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(sit))}function CN(n){n.registerComponentModel(Zrt),n.registerComponentView(nit),bN(n)}var lit=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],uit[this._mode].call(this,this._pieceList),this._resetSelected(e,r);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=on(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=we(this._pieceList,function(l){return l=on(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,r={},i=fi.listVisualTypes(),a=this.isCategory();mt(e.pieces,function(s){mt(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),mt(r,function(s,l){var u=!1;mt(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&mt(this.stateList,function(c){(e[c]||(e[c]={}))[l]=uN.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,r){var i=this.option,a=this._pieceList,o=(r?i:e).selected||{};if(i.selected=o,mt(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;mt(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=on(e)},t.prototype.getValueState=function(e){var r=fi.findPieceIndex(e,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var r=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=fi.findPieceIndex(l,i);c===e&&o.push(u)},this),r.push({seriesId:a.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(e){var r;if(this.isCategory())r=e.value;else if(e.value!=null)r=e.value;else{var i=e.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var r=[],i=["",""],a=this;function o(c,d){var h=a.getRepresentValue({interval:c});d||(d=a.getValueState(h));var f=e(h,d);c[0]===-1/0?i[0]=f:c[1]===1/0?i[1]=f:r.push({value:c[0],color:f},{value:c[1],color:f})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return mt(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=_s(_v.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(_v),uit={splitNumber:function(n){var t=this.option,e=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var l=o===i-1?r[1]:s+a;n.push({interval:[s,l],close:[1,1]})}t.maxOpen&&n.push({interval:[r[1],1/0],close:[0,0]}),EC(n),mt(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var t=this.option;mt(t.categories,function(e){n.push({text:this.formatValueText(e,!0),value:e})},this),MN(t,n)},pieces:function(n){var t=this.option;mt(t.pieces,function(e,r){rn(e)||(e={value:e});var i={text:"",index:r};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],d=0;d<2;d++){for(var h=[["gte","gt","min"],["lte","lt","max"]][d],f=0;f<3&&o[d]==null;f++)o[d]=e[h[f]],s[d]=l[f],c[d]=f===2;o[d]==null&&(o[d]=u[d])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=fi.retrieveVisuals(e),n.push(i)},this),MN(t,n),EC(n),mt(n,function(e){var r=e.close,i=[["<","\u2264"][r[1]],[">","\u2265"][r[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function MN(n,t){var e=n.inverse;(n.orient==="vertical"?!e:e)&&t.reverse()}const cit=lit;var dit=function(n){Zt(t,n);function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,h=ii(r.get("showLabel",!0),!d);d&&this._renderEndsText(e,d[0],u,h,l),mt(c.viewPieceList,function(f){var p=f.piece,g=new sn;g.onclick=Ge(this._onItemClick,this,p),this._enableHoverLink(g,f.indexInModelPieceList);var v=r.getRepresentValue(p);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(v);g.add(new Wn({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(g)},this),d&&this._renderEndsText(e,d[1],u,h,l),Tl(r.get("orient"),e,r.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,r){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:bv(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,r=e.option;if(r.orient==="vertical")return vN(e,this.api,e.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,r,i,a,o){if(r){var s=new sn,l=this.visualMapModel.textStyleModel;s.add(new Wn({style:mr(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,r=we(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},t.prototype._createItemSymbol=function(e,r,i){e.add(Rr(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(e){var r=this.visualMapModel,i=r.option,a=i.selectedMode;if(a){var o=on(i.selected),s=r.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,mt(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(pN);const hit=dit;function TN(n){n.registerComponentModel(cit),n.registerComponentView(hit),bN(n)}function fit(n){_n(CN),_n(TN)}var pit={label:{enabled:!0},decal:{show:!1}},DN=Kn(),git={};function vit(n,t){var e=n.getModel("aria");if(!e.get("enabled"))return;var r=on(pit);Mn(r.label,n.getLocaleModel().get("aria"),!1),Mn(e.option,r,!1),i(),a();function i(){var u=e.getModel("decal"),c=u.get("show");if(c){var d=Ze();n.eachSeries(function(h){if(!h.isColorBySeries()){var f=d.get(h.type);f||(f={},d.set(h.type,f)),DN(h).scope=f}}),n.eachRawSeries(function(h){if(n.isSeriesFiltered(h))return;if(qe(h.enableAriaDecal)){h.enableAriaDecal();return}var f=h.getData();if(h.isColorBySeries()){var x=yy(h.ecModel,h.name,git,n.getSeriesCount()),S=f.getVisual("decal");f.setVisual("decal",_(S,x))}else{var p=h.getRawData(),g={},v=DN(h).scope;f.each(function(D){var C=f.getRawIndex(D);g[C]=D});var y=p.count();p.each(function(D){var C=g[D],N=p.getName(D)||D+"",q=yy(h.ecModel,N,v,y),et=f.getItemVisual(C,"decal");f.setItemVisual(C,"decal",_(et,q))})}function _(D,C){var N=D?ye(ye({},C),D):C;return N.dirty=!0,N}})}}function a(){var u=n.getLocaleModel().get("aria"),c=e.getModel("label");if(c.option=nn(c.option,u),!!c.get("enabled")){var d=t.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var h=n.getSeriesCount(),f=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(h,p),v;if(!(h<1)){var y=s();if(y){var x=c.get(["general","withTitle"]);v=o(x,{title:y})}else v=c.get(["general","withoutTitle"]);var S=[],_=h>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);v+=o(_,{seriesCount:h}),n.eachSeries(function(q,et){if(et<g){var lt=void 0,ft=q.get("name"),_t=ft?"withName":"withoutName";lt=h>1?c.get(["series","multiple",_t]):c.get(["series","single",_t]),lt=o(lt,{seriesId:q.seriesIndex,seriesName:q.get("name"),seriesType:l(q.subType)});var Ct=q.getData();if(Ct.count()>f){var kt=c.get(["data","partialData"]);lt+=o(kt,{displayCnt:f})}else lt+=c.get(["data","allData"]);for(var Ot=c.get(["data","separator","middle"]),Nt=c.get(["data","separator","end"]),Xt=[],Vt=0;Vt<Ct.count();Vt++)if(Vt<f){var Ut=Ct.getName(Vt),Yt=Ct.getValues(Vt),ue=c.get(["data",Ut?"withName":"withoutName"]);Xt.push(o(ue,{name:Ut,value:Yt.join(Ot)}))}lt+=Xt.join(Ot)+Nt,S.push(lt)}});var D=c.getModel(["series","multiple","separator"]),C=D.get("middle"),N=D.get("end");v+=S.join(C)+N,d.setAttribute("aria-label",v)}}}function o(u,c){if(!je(u))return u;var d=u;return mt(c,function(h,f){d=d.replace(new RegExp("\\{\\s*"+f+"\\s*\\}","g"),h)}),d}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=n.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function mit(n){if(!(!n||!n.aria)){var t=n.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},mt(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function yit(n){n.registerPreprocessor(mit),n.registerVisual(n.PRIORITY.VISUAL.ARIA,vit)}var kN={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},xit=function(){function n(t){var e=this._condVal=je(t)?new RegExp(t):O4(t)?t:null;if(e==null){var r="";er(r)}}return n.prototype.evaluate=function(t){var e=typeof t;return je(e)?this._condVal.test(t):$n(e)?this._condVal.test(t+""):!1},n}(),Sit=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),wit=function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},n}(),_it=function(){function n(){}return n.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},n}(),bit=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),Cit=function(){function n(){}return n.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,r=e(this.valueGetterParam),i=t?this.valueParser(r):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:r))return!1;return!0},n}();function F_(n,t){if(n===!0||n===!1){var e=new Sit;return e.value=n,e}var r="";return AN(n)||er(r),n.and?PN("and",n,t):n.or?PN("or",n,t):n.not?Mit(n,t):Tit(n,t)}function PN(n,t,e){var r=t[n],i="";Se(r)||er(i),r.length||er(i);var a=n==="and"?new wit:new _it;return a.children=we(r,function(o){return F_(o,e)}),a.children.length||er(i),a}function Mit(n,t){var e=n.not,r="";AN(e)||er(r);var i=new bit;return i.child=F_(e,t),i.child||er(r),i}function Tit(n,t){for(var e="",r=t.prepareGetValue(n),i=[],a=Nn(n),o=n.parser,s=o?eD(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Xe(kN,u)?kN[u]:u,d=n[u],h=s?s(d):d,f=uj(c,h)||c==="reg"&&new xit(h);f||er(e),i.push(f)}}i.length||er(e);var p=new Cit;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=i,p}function AN(n){return rn(n)&&!mi(n)}var Dit=function(){function n(t,e){this._cond=F_(t,e)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function kit(n,t){return new Dit(n,t)}var Pit={type:"echarts:filter",transform:function(n){for(var t=n.upstream,e,r=kit(n.config,{valueGetterAttrMap:Ze({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Xe(s,"dimension")||er(l);var c=t.getDimensionInfo(u);return c||er(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),r.evaluate()&&i.push(e);return{data:i}}},kht="",Ait={type:"echarts:sort",transform:function(n){var t=n.upstream,e=n.config,r="",i=cr(e);i.length||er(r);var a=[];mt(i,function(c){var d=c.dimension,h=c.order,f=c.parser,p=c.incomparable;if(d==null&&er(r),h!=="asc"&&h!=="desc"&&er(r),p&&p!=="min"&&p!=="max"){var g="";er(g)}if(h!=="asc"&&h!=="desc"){var v="";er(v)}var y=t.getDimensionInfo(d);y||er(r);var x=f?eD(f):null;f&&!x&&er(r),a.push({dimIdx:y.index,parser:x,comparator:new rD(h,p)})});var o=t.sourceFormat;o!==yi&&o!==ma&&er(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,d){for(var h=0;h<a.length;h++){var f=a[h],p=t.retrieveValueFromItem(c,f.dimIdx),g=t.retrieveValueFromItem(d,f.dimIdx);f.parser&&(p=f.parser(p),g=f.parser(g));var v=f.comparator.evaluate(p,g);if(v!==0)return v}return 0}),{data:s}}};function Iit(n){n.registerTransform(Pit),n.registerTransform(Ait)}var To=ho.CMD;function Fc(n,t){return Math.abs(n-t)<1e-5}function j_(n){var t=n.data,e=n.len(),r=[],i,a=0,o=0,s=0,l=0;function u(Ct,kt){i&&i.length>2&&r.push(i),i=[Ct,kt]}function c(Ct,kt,Ot,Nt){Fc(Ct,Ot)&&Fc(kt,Nt)||i.push(Ct,kt,Ot,Nt,Ot,Nt)}function d(Ct,kt,Ot,Nt,Xt,Vt){var Ut=Math.abs(kt-Ct),Yt=Math.tan(Ut/4)*4/3,ue=kt<Ct?-1:1,ie=Math.cos(Ct),Gt=Math.sin(Ct),Qt=Math.cos(kt),me=Math.sin(kt),De=ie*Xt+Ot,Pe=Gt*Vt+Nt,Ce=Qt*Xt+Ot,Ee=me*Vt+Nt,Ve=Xt*Yt*ue,Te=Vt*Yt*ue;i.push(De-Ve*Gt,Pe+Te*ie,Ce+Ve*me,Ee-Te*Qt,Ce,Ee)}for(var h,f,p,g,v=0;v<e;){var y=t[v++],x=v===1;switch(x&&(a=t[v],o=t[v+1],s=a,l=o,(y===To.L||y===To.C||y===To.Q)&&(i=[s,l])),y){case To.M:a=s=t[v++],o=l=t[v++],u(s,l);break;case To.L:h=t[v++],f=t[v++],c(a,o,h,f),a=h,o=f;break;case To.C:i.push(t[v++],t[v++],t[v++],t[v++],a=t[v++],o=t[v++]);break;case To.Q:h=t[v++],f=t[v++],p=t[v++],g=t[v++],i.push(a+2/3*(h-a),o+2/3*(f-o),p+2/3*(h-p),g+2/3*(f-g),p,g),a=p,o=g;break;case To.A:var S=t[v++],_=t[v++],D=t[v++],C=t[v++],N=t[v++],q=t[v++]+N;v+=1;var et=!t[v++];h=Math.cos(N)*D+S,f=Math.sin(N)*C+_,x?(s=h,l=f,u(s,l)):c(a,o,h,f),a=Math.cos(q)*D+S,o=Math.sin(q)*C+_;for(var lt=(et?-1:1)*Math.PI/2,ft=N;et?ft>q:ft<q;ft+=lt){var _t=et?Math.max(ft+lt,q):Math.min(ft+lt,q);d(ft,_t,S,_,D,C)}break;case To.R:s=a=t[v++],l=o=t[v++],h=s+t[v++],f=l+t[v++],u(h,l),c(h,l,h,f),c(h,f,s,f),c(s,f,s,l),c(s,l,h,l);break;case To.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&r.push(i),r}function z_(n,t,e,r,i,a,o,s,l,u){if(Fc(n,e)&&Fc(t,r)&&Fc(i,o)&&Fc(a,s)){l.push(o,s);return}var c=2/u,d=c*c,h=o-n,f=s-t,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var g=e-n,v=r-t,y=i-o,x=a-s,S=g*g+v*v,_=y*y+x*x;if(S<d&&_<d){l.push(o,s);return}var D=h*g+f*v,C=-h*y-f*x,N=S-D*D,q=_-C*C;if(N<d&&D>=0&&q<d&&C>=0){l.push(o,s);return}var et=[],lt=[];ps(n,e,i,o,.5,et),ps(t,r,a,s,.5,lt),z_(et[0],lt[0],et[1],lt[1],et[2],lt[2],et[3],lt[3],l,u),z_(et[4],lt[4],et[5],lt[5],et[6],lt[6],et[7],lt[7],l,u)}function Eit(n,t){var e=j_(n),r=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],d=a[u++],h=a[u++],f=a[u++],p=a[u++],g=a[u++];z_(s,l,c,d,h,f,p,g,o,t),s=p,l=g}r.push(o)}return r}function IN(n,t,e){var r=n[t],i=n[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,d=e-c;if(d>0)for(var u=0;u<d;u++)l[u%o]+=1;return l}function EN(n,t,e){for(var r=n.r0,i=n.r,a=n.startAngle,o=n.endAngle,s=Math.abs(o-a),l=s*i,u=i-r,c=l>Math.abs(u),d=IN([l,u],c?0:1,t),h=(c?s:u)/d.length,f=0;f<d.length;f++)for(var p=(c?u:s)/d[f],g=0;g<d[f];g++){var v={};c?(v.startAngle=a+h*f,v.endAngle=a+h*(f+1),v.r0=r+p*g,v.r=r+p*(g+1)):(v.startAngle=a+p*g,v.endAngle=a+p*(g+1),v.r0=r+h*f,v.r=r+h*(f+1)),v.clockwise=n.clockwise,v.cx=n.cx,v.cy=n.cy,e.push(v)}}function Lit(n,t,e){for(var r=n.width,i=n.height,a=r>i,o=IN([r,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",d=n[s]/o.length,h=0;h<o.length;h++)for(var f=n[l]/o[h],p=0;p<o[h];p++){var g={};g[u]=h*d,g[c]=p*f,g[s]=d,g[l]=f,g.x+=n.x,g.y+=n.y,e.push(g)}}function LN(n,t,e,r){return n*r-e*t}function Oit(n,t,e,r,i,a,o,s){var l=e-n,u=r-t,c=o-i,d=s-a,h=LN(c,d,l,u);if(Math.abs(h)<1e-6)return null;var f=n-i,p=t-a,g=LN(f,p,c,d)/h;return g<0||g>1?null:new Sn(g*l+n,g*u+t)}function Rit(n,t,e){var r=new Sn;Sn.sub(r,e,t),r.normalize();var i=new Sn;Sn.sub(i,n,t);var a=i.dot(r);return a}function jc(n,t){var e=n[n.length-1];e&&e[0]===t[0]&&e[1]===t[1]||n.push(t)}function Nit(n,t,e){for(var r=n.length,i=[],a=0;a<r;a++){var o=n[a],s=n[(a+1)%r],l=Oit(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:Rit(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:n},{points:n}];i.sort(function(v,y){return v.projPt-y.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var d=u;u=c,c=d}for(var h=[u.pt.x,u.pt.y],f=[c.pt.x,c.pt.y],p=[h],g=[f],a=u.idx+1;a<=c.idx;a++)jc(p,n[a].slice());jc(p,f),jc(p,h);for(var a=c.idx+1;a<=u.idx+r;a++)jc(g,n[a%r].slice());return jc(g,h),jc(g,f),[{points:p},{points:g}]}function ON(n){var t=n.points,e=[],r=[];ap(t,e,r);var i=new wn(e[0],e[1],r[0]-e[0],r[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Sn,c=new Sn;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Nit(t,u,c)}function Cv(n,t,e,r){if(e===1)r.push(t);else{var i=Math.floor(e/2),a=n(t);Cv(n,a[0],i,r),Cv(n,a[1],e-i,r)}return r}function Bit(n,t){for(var e=[],r=0;r<t;r++)e.push(Wy(n));return e}function Vit(n,t){t.setStyle(n.style),t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel}function Wit(n){for(var t=[],e=0;e<n.length;)t.push([n[e++],n[e++]]);return t}function Fit(n,t){var e=[],r=n.shape,i;switch(n.type){case"rect":Lit(r,t,e),i=jn;break;case"sector":EN(r,t,e),i=Gi;break;case"circle":EN({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,e),i=Gi;break;default:var a=n.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=we(Eit(n.getUpdatedPathProxy(),o),function(y){return Wit(y)}),l=s.length;if(l===0)Cv(ON,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var c=0,d=we(s,function(y){var x=[],S=[];ap(y,x,S);var _=(S[1]-x[1])*(S[0]-x[0]);return c+=_,{poly:y,area:_}});d.sort(function(y,x){return x.area-y.area});for(var h=t,u=0;u<l;u++){var f=d[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(f.area/c*t);p<0||(Cv(ON,{points:f.poly},p,e),h-=p)}}i=Ki;break}if(!i)return Bit(n,t);for(var g=[],u=0;u<e.length;u++){var v=new i;v.setShape(e[u]),Vit(n,v),g.push(v)}return g}function jit(n,t){var e=n.length,r=t.length;if(e===r)return[n,t];for(var i=[],a=[],o=e<r?n:t,s=Math.min(e,r),l=Math.abs(r-e)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,d=[o[0],o[1]],h=l,f=2;f<s;){var p=o[f-2],g=o[f-1],v=o[f++],y=o[f++],x=o[f++],S=o[f++],_=o[f++],D=o[f++];if(h<=0){d.push(v,y,x,S,_,D);continue}for(var C=Math.min(h,c-1)+1,N=1;N<=C;N++){var q=N/C;ps(p,v,x,_,q,i),ps(g,y,S,D,q,a),p=i[3],g=a[3],d.push(i[1],a[1],i[2],a[2],p,g),v=i[5],y=a[5],x=i[6],S=a[6]}h-=C-1}return o===n?[d,t]:[n,d]}function RN(n,t){for(var e=n.length,r=n[e-2],i=n[e-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function zit(n,t){for(var e,r,i,a=[],o=[],s=0;s<Math.max(n.length,t.length);s++){var l=n[s],u=t[s],c=void 0,d=void 0;l?u?(e=jit(l,u),c=e[0],d=e[1],r=c,i=d):(d=RN(i||l,l),c=l):(c=RN(r||u,u),d=u),a.push(c),o.push(d)}return[a,o]}function NN(n){for(var t=0,e=0,r=0,i=n.length,a=0,o=i-2;a<i;o=a,a+=2){var s=n[o],l=n[o+1],u=n[a],c=n[a+1],d=s*c-u*l;t+=d,e+=(s+u)*d,r+=(l+c)*d}return t===0?[n[0]||0,n[1]||0]:[e/t/3,r/t/3,t]}function Hit(n,t,e,r){for(var i=(n.length-2)/6,a=1/0,o=0,s=n.length,l=s-2,u=0;u<i;u++){for(var c=u*6,d=0,h=0;h<s;h+=2){var f=h===0?c:(c+h-2)%l+2,p=n[f]-e[0],g=n[f+1]-e[1],v=t[h]-r[0],y=t[h+1]-r[1],x=v-p,S=y-g;d+=x*x+S*S}d<a&&(a=d,o=u)}return o}function Uit(n){for(var t=[],e=n.length,r=0;r<e;r+=2)t[r]=n[e-r-2],t[r+1]=n[e-r-1];return t}function Git(n,t,e,r){for(var i=[],a,o=0;o<n.length;o++){var s=n[o],l=t[o],u=NN(s),c=NN(l);a==null&&(a=u[2]<0!=c[2]<0);var d=[],h=[],f=0,p=1/0,g=[],v=s.length;a&&(s=Uit(s));for(var y=Hit(s,l,u,c)*6,x=v-2,S=0;S<x;S+=2){var _=(y+S)%x+2;d[S+2]=s[_]-u[0],d[S+3]=s[_+1]-u[1]}if(d[0]=s[y]-u[0],d[1]=s[y+1]-u[1],e>0)for(var D=r/e,C=-r/2;C<=r/2;C+=D){for(var N=Math.sin(C),q=Math.cos(C),et=0,S=0;S<s.length;S+=2){var lt=d[S],ft=d[S+1],_t=l[S]-c[0],Ct=l[S+1]-c[1],kt=_t*q-Ct*N,Ot=_t*N+Ct*q;g[S]=kt,g[S+1]=Ot;var Nt=kt-lt,Xt=Ot-ft;et+=Nt*Nt+Xt*Xt}if(et<p){p=et,f=C;for(var Vt=0;Vt<g.length;Vt++)h[Vt]=g[Vt]}}else for(var Ut=0;Ut<v;Ut+=2)h[Ut]=l[Ut]-c[0],h[Ut+1]=l[Ut+1]-c[1];i.push({from:d,to:h,fromCp:u,toCp:c,rotation:-f})}return i}function Mv(n){return n.__isCombineMorphing}function Pht(n){return n.__morphT>=0}var BN="__mOriginal_";function Tv(n,t,e){var r=BN+t,i=n[r]||n[t];n[r]||(n[r]=n[t]);var a=e.replace,o=e.after,s=e.before;n[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function $h(n,t){var e=BN+t;n[e]&&(n[t]=n[e],n[e]=null)}function VN(n,t){for(var e=0;e<n.length;e++)for(var r=n[e],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function WN(n,t){var e=n.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=zit(j_(e),j_(r)),a=i[0],o=i[1],s=n.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&VN(a,s),l&&VN(o,l),Tv(t,"updateTransform",{replace:u}),t.transform=null;var c=Git(a,o,10,Math.PI),d=[];Tv(t,"buildPath",{replace:function(h){for(var f=t.__morphT,p=1-f,g=[],v=0;v<c.length;v++){var y=c[v],x=y.from,S=y.to,_=y.rotation*f,D=y.fromCp,C=y.toCp,N=Math.sin(_),q=Math.cos(_);kf(g,D,C,f);for(var et=0;et<x.length;et+=2){var lt=x[et],ft=x[et+1],_t=S[et],Ct=S[et+1],kt=lt*p+_t*f,Ot=ft*p+Ct*f;d[et]=kt*q-Ot*N+g[0],d[et+1]=kt*N+Ot*q+g[1]}var Nt=d[0],Xt=d[1];h.moveTo(Nt,Xt);for(var et=2;et<x.length;){var _t=d[et++],Ct=d[et++],Vt=d[et++],Ut=d[et++],Yt=d[et++],ue=d[et++];Nt===_t&&Xt===Ct&&Vt===Yt&&Ut===ue?h.lineTo(Yt,ue):h.bezierCurveTo(_t,Ct,Vt,Ut,Yt,ue),Nt=Yt,Xt=ue}}}})}function H_(n,t,e){if(!n||!t)return t;var r=e.done,i=e.during;WN(n,t),t.__morphT=0;function a(){$h(t,"buildPath"),$h(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},nn({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),r&&r()}},e)),t}function Kit(n,t,e,r,i,a){var o=16;n=i===e?0:Math.round(32767*(n-e)/(i-e)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(t&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,t=u-1-t),l=n,n=t,t=l)}return s}function Dv(n){var t=1/0,e=1/0,r=-1/0,i=-1/0,a=we(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),e=Math.min(d,e),r=Math.max(c,r),i=Math.max(d,i),[c,d]}),o=we(a,function(s,l){return{cp:s,z:Kit(s[0],s[1],t,e,r,i),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function FN(n){return Fit(n.path,n.count)}function U_(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Xit(n,t,e){var r=[];function i(D){for(var C=0;C<D.length;C++){var N=D[C];Mv(N)?i(N.childrenRef()):N instanceof In&&r.push(N)}}i(n);var a=r.length;if(!a)return U_();var o=e.dividePath||FN,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),U_();r=Dv(r),s=Dv(s);for(var l=e.done,u=e.during,c=e.individualDelay,d=new Oo,h=0;h<a;h++){var f=r[h],p=s[h];p.parent=t,p.copyTransform(d),c||WN(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(D){for(var C=0;C<s.length;C++)s[C].addSelfToZr(D)}Tv(t,"addSelfToZr",{after:function(D){g(D)}}),Tv(t,"removeSelfFromZr",{after:function(D){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(D)}});function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,$h(t,"addSelfToZr"),$h(t,"removeSelfFromZr")}var y=s.length;if(c)for(var x=y,S=function(){x--,x===0&&(v(),l&&l())},h=0;h<y;h++){var _=c?nn({delay:(e.delay||0)+c(h,y,r[h],s[h]),done:S},e):e;H_(r[h],s[h],_)}else t.__morphT=0,t.animateTo({__morphT:1},nn({during:function(D){for(var C=0;C<y;C++){var N=s[C];N.__morphT=t.__morphT,N.dirtyShape()}u&&u(D)},done:function(){v();for(var D=0;D<n.length;D++)$h(n[D],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function Yit(n,t,e){var r=t.length,i=[],a=e.dividePath||FN;function o(f){for(var p=0;p<f.length;p++){var g=f[p];Mv(g)?o(g.childrenRef()):g instanceof In&&i.push(g)}}if(Mv(n)){o(n.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(Wy(i[l++%s]));i.length=r}else{i=a({path:n,count:r});for(var c=n.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),U_()}i=Dv(i),t=Dv(t);for(var d=e.individualDelay,u=0;u<r;u++){var h=d?nn({delay:(e.delay||0)+d(u,r,i[u],t[u])},e):e;H_(i[u],t[u],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function jN(n){return Se(n[0])}function zN(n,t){for(var e=[],r=n.length,i=0;i<r;i++)e.push({one:n[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,u=Math.ceil(a/2);e[i].many=l.slice(u,a),e[s].many=l.slice(0,u),s++}return e}var Zit={clone:function(n){for(var t=[],e=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r<n.count;r++){var i=Wy(n.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function G_(n,t,e,r,i,a){if(!n.length||!t.length)return;var o=Yu("update",r,i);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;jN(n)&&(u=n,c=t),jN(t)&&(u=t,c=n);function d(y,x,S,_,D){var C=y.many,N=y.one;if(C.length===1&&!D){var q=x?C[0]:N,et=x?N:C[0];if(Mv(q))d({many:[q],one:et},!0,S,_,!0);else{var lt=s?nn({delay:s(S,_)},l):l;H_(q,et,lt),a(q,et,q,et,lt)}}else for(var ft=nn({dividePath:Zit[e],individualDelay:s&&function(Xt,Vt,Ut,Yt){return s(Xt+S,_)}},l),_t=x?Xit(C,N,ft):Yit(N,C,ft),Ct=_t.fromIndividuals,kt=_t.toIndividuals,Ot=Ct.length,Nt=0;Nt<Ot;Nt++){var lt=s?nn({delay:s(Nt,Ot)},l):l;a(Ct[Nt],kt[Nt],x?C[Nt]:y.one,x?y.one:C[Nt],lt)}}for(var h=u?u===n:n.length>t.length,f=u?zN(c,u):zN(h?t:n,[h?n:t]),p=0,g=0;g<f.length;g++)p+=f[g].many.length;for(var v=0,g=0;g<f.length;g++)d(f[g],h,v,p),v+=f[g].many.length}function cu(n){if(!n)return[];if(Se(n)){for(var t=[],e=0;e<n.length;e++)t.push(cu(n[e]));return t}var r=[];return n.traverse(function(i){i instanceof In&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var HN=1e4,$it=0,UN=1,GN=2,Jit=Kn();function Qit(n,t){for(var e=n.dimensions,r=0;r<e.length;r++){var i=n.getDimensionInfo(e[r]);if(i&&i.otherDims[t]===0)return e[r]}}function qit(n,t,e){var r=n.getDimensionInfo(e),i=r&&r.ordinalMeta;if(r){var a=n.get(r.name,t);return i&&i.categories[a]||a+""}}function KN(n,t,e,r){var i=r?"itemChildGroupId":"itemGroupId",a=Qit(n,i);if(a){var o=qit(n,t,a);return o}var s=n.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return e||n.getId(t)}function XN(n){var t=[];return mt(n,function(e){var r=e.data,i=e.dataGroupId;if(!(r.count()>HN))for(var a=r.getIndices(),o=0;o<a.length;o++)t.push({data:r,groupId:KN(r,o,i,!1),childGroupId:KN(r,o,i,!0),divide:e.divide,dataIndex:o})}),t}function K_(n,t,e){n.traverse(function(r){r instanceof In&&_r(r,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function X_(n){if(n.parent){var t=n.getComputedTransform();n.setLocalTransform(t),n.parent.remove(n)}}function zc(n){n.stopAnimation(),n.isGroup&&n.traverse(function(t){t.stopAnimation()})}function tat(n,t,e){var r=Yu("update",e,t);r&&n.traverse(function(i){if(i instanceof fa){var a=UF(i);a&&i.animateFrom({style:a},r)}})}function eat(n,t){var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++){var i=n[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function YN(n,t,e){var r=XN(n),i=XN(t);function a(S,_,D,C,N){(D||S)&&_.animateFrom({style:D&&D!==S?ye(ye({},D.style),S.style):S.style},N)}var o=!1,s=$it,l=Ze(),u=Ze();r.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var c=0;c<i.length;c++){var d=i[c].groupId;if(u.get(d)){s=UN;break}var h=i[c].childGroupId;if(h&&l.get(h)){s=GN;break}}function f(S,_){return function(D){var C=D.data,N=D.dataIndex;return _?C.getId(N):S?s===UN?D.childGroupId:D.groupId:s===GN?D.childGroupId:D.groupId}}var p=eat(r,i),g={};if(!p)for(var c=0;c<i.length;c++){var v=i[c],y=v.data.getItemGraphicEl(v.dataIndex);y&&(g[y.id]=!0)}function x(S,_){var D=r[_],C=i[S],N=C.data.hostModel,q=D.data.getItemGraphicEl(D.dataIndex),et=C.data.getItemGraphicEl(C.dataIndex);if(q===et){et&&tat(et,C.dataIndex,N);return}q&&g[q.id]||et&&(zc(et),q?(zc(q),X_(q),o=!0,G_(cu(q),cu(et),C.divide,N,S,a)):K_(et,N,S))}new Go(r,i,f(!0,p),f(!1,p),null,"multiple").update(x).updateManyToOne(function(S,_){var D=i[S],C=D.data,N=C.hostModel,q=C.getItemGraphicEl(D.dataIndex),et=sr(we(_,function(lt){return r[lt].data.getItemGraphicEl(r[lt].dataIndex)}),function(lt){return lt&&lt!==q&&!g[lt.id]});q&&(zc(q),et.length?(mt(et,function(lt){zc(lt),X_(lt)}),o=!0,G_(cu(et),cu(q),D.divide,N,S,a)):K_(q,N,D.dataIndex))}).updateOneToMany(function(S,_){var D=r[_],C=D.data.getItemGraphicEl(D.dataIndex);if(!(C&&g[C.id])){var N=sr(we(S,function(et){return i[et].data.getItemGraphicEl(i[et].dataIndex)}),function(et){return et&&et!==C}),q=i[S[0]].data.hostModel;N.length&&(mt(N,function(et){return zc(et)}),C?(zc(C),X_(C),o=!0,G_(cu(C),cu(N),D.divide,q,S[0],a)):mt(N,function(et){return K_(et,q,S[0])}))}}).updateManyToMany(function(S,_){new Go(_,S,function(D){return r[D].data.getId(r[D].dataIndex)},function(D){return i[D].data.getId(i[D].dataIndex)}).update(function(D,C){x(S[D],_[C])}).execute()}).execute(),o&&mt(t,function(S){var _=S.data,D=_.hostModel,C=D&&e.getViewOfSeriesModel(D),N=Yu("update",D,0);C&&D.isAnimationEnabled()&&N&&N.duration>0&&C.group.traverse(function(q){q instanceof In&&!q.animators.length&&q.animateFrom({style:{opacity:0}},N)})})}function ZN(n){var t=n.getModel("universalTransition").get("seriesKey");return t||n.id}function $N(n){return Se(n)?n.sort().join(","):n}function js(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function nat(n,t){var e=Ze(),r=Ze(),i=Ze();mt(n.oldSeries,function(o,s){var l=n.oldDataGroupIds[s],u=n.oldData[s],c=ZN(o),d=$N(c);r.set(d,{dataGroupId:l,data:u}),Se(c)&&mt(c,function(h){i.set(h,{key:d,dataGroupId:l,data:u})})});function a(o){e.get(o)&&aj("Duplicated seriesKey in universalTransition "+o)}return mt(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=ZN(o),c=$N(u),d=r.get(c);if(d)e.set(c,{oldSeries:[{dataGroupId:d.dataGroupId,divide:js(d.data),data:d.data}],newSeries:[{dataGroupId:s,divide:js(l),data:l}]});else if(Se(u)){var h=[];mt(u,function(g){var v=r.get(g);v.data&&h.push({dataGroupId:v.dataGroupId,divide:js(v.data),data:v.data})}),h.length&&e.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:js(l)}]})}else{var f=i.get(u);if(f){var p=e.get(f.key);p||(p={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:js(f.data)}],newSeries:[]},e.set(f.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:js(l)})}}}}),e}function JN(n,t){for(var e=0;e<n.length;e++){var r=t.seriesIndex!=null&&t.seriesIndex===n[e].seriesIndex||t.seriesId!=null&&t.seriesId===n[e].id;if(r)return e}}function rat(n,t,e,r){var i=[],a=[];mt(cr(n.from),function(o){var s=JN(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:js(t.oldData[s]),groupIdDim:o.dimension})}),mt(cr(n.to),function(o){var s=JN(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:js(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&YN(i,a,r)}function iat(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,r){mt(cr(r.seriesTransition),function(i){mt(cr(i.to),function(a){for(var o=r.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Ap]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(t,e,r){var i=Jit(e);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var a=r.seriesTransition;if(a)mt(cr(a),function(f){rat(f,i,r,e)});else{var o=nat(i,r);mt(o.keys(),function(f){var p=o.get(f);YN(p.oldSeries,p.newSeries,e)})}mt(r.updatedSeries,function(f){f[Ap]&&(f[Ap]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],d=0;d<s.length;d++){var h=s[d].getData();h.count()<HN&&(l.push(s[d]),u.push(s[d].get("dataGroupId")),c.push(h))}})}_n([q2]),_n([JE]),_n([UA,IA,$A,rI,qA,GI,s$,H$,gJ,eI,tI,xQ,pE,oE,WQ,KQ,cq,Sq,Lq,jq,eE,Ttt]),_n(ZP),_n(wE),_n(UI),_n(Utt),_n(hO),_n(Jtt),_n(oet),_n(lnt),_n(oA),_n(ph),_n(knt),_n(Int),_n(Knt),_n(nrt),_n(crt),_n(yrt),_n(pA),_n(Frt),_n(iN),_n(lN),_n(fit),_n(CN),_n(TN),_n(yit),_n(Iit),_n(tP),_n(iat),_n(Bx);function aat(n){var t;if(typeof n=="string"){var e=new DOMParser;t=e.parseFromString(n,"text/xml")}else t=n;if(!t||t.getElementsByTagName("parsererror").length)return null;var r=Ka(t,"gexf");if(!r)return null;for(var i=Ka(r,"graph"),a=oat(Ka(i,"attributes")),o={},s=0;s<a.length;s++)o[a[s].id]=a[s];return{nodes:sat(Ka(i,"nodes"),o),links:lat(Ka(i,"edges"))}}function oat(n){return n?we(kv(n,"attribute"),function(t){return{id:$r(t,"id"),title:$r(t,"title"),type:$r(t,"type")}}):[]}function sat(n,t){return n?we(kv(n,"node"),function(e){var r=$r(e,"id"),i=$r(e,"label"),a={id:r,name:i,itemStyle:{normal:{}}},o=Ka(e,"viz:size"),s=Ka(e,"viz:position"),l=Ka(e,"viz:color"),u=Ka(e,"attvalues");if(o&&(a.symbolSize=parseFloat($r(o,"value"))),s&&(a.x=parseFloat($r(s,"x")),a.y=parseFloat($r(s,"y"))),l&&(a.itemStyle.normal.color="rgb("+[$r(l,"r")|0,$r(l,"g")|0,$r(l,"b")|0].join(",")+")"),u){var c=kv(u,"attvalue");a.attributes={};for(var d=0;d<c.length;d++){var h=c[d],f=$r(h,"for"),p=$r(h,"value"),g=t[f];if(g){switch(g.type){case"integer":case"long":p=parseInt(p,10);break;case"float":case"double":p=parseFloat(p);break;case"boolean":p=p.toLowerCase()==="true";break;default:}a.attributes[f]=p}}}return a}):[]}function lat(n){return n?we(kv(n,"edge"),function(t){var e=$r(t,"id"),r=$r(t,"label"),i=$r(t,"source"),a=$r(t,"target"),o={id:e,name:r,source:i,target:a,lineStyle:{normal:{}}},s=o.lineStyle.normal,l=Ka(t,"viz:thickness"),u=Ka(t,"viz:color");return l&&(s.width=parseFloat(l.getAttribute("value"))),u&&(s.color="rgb("+[$r(u,"r")|0,$r(u,"g")|0,$r(u,"b")|0].join(",")+")"),o}):[]}function $r(n,t){return n.getAttribute(t)}function Ka(n,t){for(var e=n.firstChild;e;)if(e.nodeType!==1||e.nodeName.toLowerCase()!==t.toLowerCase())e=e.nextSibling;else return e;return null}function kv(n,t){for(var e=n.firstChild,r=[];e;)e.nodeName.toLowerCase()===t.toLowerCase()&&r.push(e),e=e.nextSibling;return r}function uat(n){return n.sort(function(t,e){return t-e}),n}function Y_(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],a=e-r;return a?i+a*(n[r]-i):i}function QN(n,t){t=t||{};for(var e=[],r=[],i=[],a=t.boundIQR,o=a==="none"||a===0,s=0;s<n.length;s++){i.push(s+"");var l=uat(n[s].slice()),u=Y_(l,.25),c=Y_(l,.5),d=Y_(l,.75),h=l[0],f=l[l.length-1],p=(a==null?1.5:a)*(d-u),g=o?h:Math.max(h,u-p),v=o?f:Math.min(f,d+p);e.push([g,u,c,d,v]);for(var y=0;y<l.length;y++){var x=l[y];if(x<g||x>v){var S=[s,x];t.layout==="vertical"&&S.reverse(),r.push(S)}}}return{boxData:e,outliers:r,axisData:i}}var cat="1.0.0";sg&&(sg.version=cat,sg.gexf=I,sg.prepareBoxplotData=QN);const dat=n=>{let{data:t,theme:e,boxWidth:r}=n;const i=t.map(s=>s.data),{boxData:a,outliers:o}=QN(i);return[{type:"boxplot",data:a,boxWidth:[0,r+"%"],itemStyle:{color:(0,dr.tp)({theme:e,color:t[0].color,index:0}),borderColor:"#101010"},emphasis:{itemStyle:{color:(0,dr.tp)({theme:e,color:t[0].color,index:0}),borderWidth:1,borderColor:"#101010"}}},{name:"outlier",type:"scatter",data:o,symbolSize:10,itemStyle:{color:(0,dr.tp)({theme:e,color:t[0].color,index:0})}}]},hat=n=>{const t={},e={},r=new Map;let i=!0;const a=[];n.forEach(u=>{const c=r.get(u.data[0]),d=r.get(u.data[1]);(!c||!d)&&(!c&&r.set(u.data[0],{color:u.color}),!d&&r.set(u.data[1],{color:u.targetColor}))});const o=Array.from(r.keys());(u=>{for(let c=0;c<u.length;c++){const d=u[c];t[d]={};for(let h=0;h<u.length;h++){const f=u[h];t[d][f]=0}}for(let c=0;c<n.length;c++){const d=n[c],[h,f]=d.data;t[h][f]=1}for(let c=0;c<u.length;c++)e[u[c]]=0})(o);const l=u=>{e[o[u]]=1;for(let c=0;c<o.length;c++)if(t[o[u]][o[c]]!==0)if(e[o[c]]===1){i=!1,a.push([o[u],o[c]]);continue}else{if(e[o[c]]===-1)continue;l(c)}e[o[u]]=-1};for(let u=0;u<o.length;u++)e[o[u]]!==-1&&l(u);return{isDAG:i,seriesMap:r,circleData:a}},fat=n=>{let{series:t,theme:e,labelText:r,labelNumber:i,prefixStr:a,suffixStr:o}=n;const s=t.filter(h=>!(!h.data[0]||!h.data[1]||Number(h.data[2])<=0||String(h.data[0])===String(h.data[1]))).map(h=>({...h,data:h.data.map((f,p)=>p===h.data.length-1?Number(f):String(f))})),{isDAG:l,seriesMap:u,circleData:c}=hat(s),d=!l&&c!=null&&c.length?s.filter(h=>{const f=[h.data[0],h.data[1]];return!c.find(g=>g[0]===f[0]&&g[1]===f[1])}):s;return{data:Array.from(u.keys()).map((h,f)=>({name:h,itemStyle:{color:(0,dr.tp)({theme:e,color:u.get(h).color,index:f})},label:{show:r.isVisible,...(0,dr.$y)(r.textStyle).textStyle}})),links:d.map(h=>({source:String(h.data[0]),target:String(h.data[1]),value:Number(h.data[2]),lineStyle:{color:"source",opacity:.1},edgeLabel:{show:i.isVisible,formatter:f=>{let{value:p}=f;return""+a+p+o},...(0,dr.$y)(i.textStyle).textStyle}}))}},pat=n=>{let{data:t,theme:e,labelText:r,labelNumber:i,unit:a}=n;const{prefixStr:o,suffixStr:s}=(0,_o.I)(a),{data:l,links:u}=fat({series:t,theme:e,labelText:r,labelNumber:i,prefixStr:o,suffixStr:s});return[{type:"sankey",layout:"none",emphasis:{focus:"adjacency"},nodeWidth:8,left:"center",top:"center",width:"80%",height:"80%",draggable:!1,data:l,links:u}]},gat=(n,t)=>{const e=t===We.N.bubble_chart,r=new Map;for(let i=0;i<n.length;i++){const a=n[i];if(e&&a.data[a.data.length-1]==="-")continue;const o=r.get(a.name);o!=null&&o.data?r.set(a.name,{...o,data:o.data.concat([a.data])}):r.set(a.name,{data:[a.data],color:a.color})}return Array.from(r.keys()).map(i=>({name:i,data:r.get(i).data,color:r.get(i).color}))},qN=(n,t)=>{const{chartData:{series:e},chartConfig:r}=n,{chartType:i,chartCategory:a,chartTheme:o,smooth:s,chartBorderRadius:l,chartInnerRadius:u,foregroundColor:c,backgroundColor:d,progress:h,legend:f,suffix:p,prefix:g,minNum:v,maxNum:y,chartAnimation:x,bubbleRadius:S,minBubbleRadius:_,maxBubbleRadius:D,label:C,labelText:N,labelNumber:q,minFontSize:et,maxFontSize:lt,boxWidth:ft,barCategoryGap:_t}=r,Ct=t&&x,kt=[We.N.scatter_chart,We.N.bubble_chart].includes(i),Ot=e.map(Yt=>{const ue=Yt.data.map(ie=>ie||(kt?"-":0));return{...Yt,data:ue}}),Nt=i==="radar_chart"||a==="normal"?[Ot[0]]:kt?gat(Ot,i):Ot,Xt=Ot.map(Yt=>({data:[Yt.data[0]],name:Yt.name,color:Yt.color})),Vt={suffix:p,prefix:g};let Ut;switch(i){case We.N.bar_chart:case We.N.horizontal_bar_chart:case We.N.line_chart:case We.N.line_area_chart:Ut=IZ({data:Nt,theme:o,type:i,category:a,smooth:s,label:C,unit:Vt,barCategoryGap:_t});break;case We.N.mixed_bar_line_chart:Ut=RZ({data:Nt,theme:o,type:i,category:a,smooth:s,label:C,unit:Vt,barCategoryGap:_t});break;case We.N.pie_chart:case We.N.ring_chart:case We.N.nightingale_chart:Ut=EZ({data:Xt,theme:o,type:i,legend:f,label:C,borderRadius:l,innerRadius:u,unit:Vt});break;case We.N.progress_chart:Ut=LZ({progress:h,innerRadius:u,foregroundColor:c,backgroundColor:d,label:C});break;case We.N.radar_chart:Ut=OZ({data:Ot,theme:o,type:i,label:C,unit:Vt});break;case We.N.waterfall_chart:Ut=MZ({data:e,theme:o,label:C,unit:Vt,barCategoryGap:_t});break;case We.N.scatter_chart:Ut=TZ({data:Nt,bubbleRadius:S,theme:o});break;case We.N.funnel_chart:Ut=DZ({data:Ot,label:C,theme:o});break;case We.N.gauge_chart:Ut=kZ({progress:h,unit:Vt,foregroundColor:c,backgroundColor:d,minNum:v,maxNum:y,canRunChartAnimation:Ct,label:C,labelText:N});break;case We.N.liquid_fill_gauge_chart:Ut=PZ({data:Ot,theme:o,label:C,canRunChartAnimation:Ct});break;case We.N.map_chart:Ut=AZ(n);break;case We.N.bubble_chart:Ut=NZ({data:Nt,theme:o,minBubbleRadius:_,maxBubbleRadius:D});break;case We.N.radial_polar_chart:Ut=BZ({data:Nt,theme:o,category:a,label:C,unit:Vt});break;case We.N.sunburst_chart:Ut=(0,VZ.q)({data:e,theme:o,borderRadius:l,labelText:N,labelNumber:q,unit:Vt});break;case We.N.word_cloud_chart:Ut=(0,WZ.L)({data:Nt,theme:o,minFontSize:et,maxFontSize:lt});break;case We.N.boxplot_chart:Ut=dat({data:Nt,theme:o,boxWidth:ft});break;case We.N.sankey_chart:Ut=pat({data:Nt,theme:o,labelText:N,labelNumber:q,unit:Vt});break}return{series:Ut}},vat=n=>{const t=[];return n.forEach(e=>t.push(e.data)),Math.max.apply(null,t.flat())},t5=n=>{let t={};const{chartData:{xAxis:e,series:r},chartConfig:i}=n,{chartType:a,legend:o,axis:s}=i,l=(0,bo.sG)(o),{textStyle:u}=(0,dr.$y)(s.textStyle),c=vat(r);return a==="radar_chart"&&(t={radar:{indicator:e.map(d=>({name:d,max:c})),center:l.isVisible?[""+Jg.x[l.x],""+Jg.y[l.y]]:["50%","50%"],axisName:{show:s.isVisible,...u},splitArea:{show:!1},splitLine:{lineStyle:{color:(0,_i.qy)("#E8E8E8")}},axisLine:{lineStyle:{color:"transparent"}}}}),{otherData:t}},mat=n=>{let{type:t,show:e,prefixStr:r,category:i,textStyle:a,suffixStr:o,gridObj:s,minNum:l,maxNum:u,interval:c}=n,d;if(t===We.N.mixed_bar_line_chart)d=[{type:"value",axisLabel:{show:e,formatter:h=>""+r+h+(i==="accPer"?"%":o),...a},splitLine:{show:s.bdrIsVisible,lineStyle:{color:[(0,P.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c},{type:"value",axisLabel:{show:e,formatter:h=>""+r+h+(i==="accPer"?"%":o),...a},splitLine:{show:!1,lineStyle:{color:[(0,P.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c}];else{const h=[We.N.scatter_chart,We.N.bubble_chart].includes(t),f=h&&!e?{axisTick:{show:!1},axisLine:{show:!1}}:{};d=[{type:"value",axisLabel:{show:e,formatter:p=>h?p:""+r+p+(i==="accPer"?"%":o),...a},splitLine:{show:s.bdrIsVisible,lineStyle:{color:[(0,P.t0)(s.bdrColor)],type:s.bdrStyle,width:s.bdrWidth}},min:l,max:u,interval:c,...f}]}return d},yat=n=>{let{type:t,show:e,textStyle:r,gridObj:i,xAxis:a,textAngle:o,prefixStr:s,suffixStr:l,isXAxisValue:u,minNum:c,maxNum:d,series:h}=n,f;if(u){const p=[We.N.scatter_chart,We.N.bubble_chart].includes(t);f={type:"value",axisLine:{show:e},axisLabel:{show:e,...r,interval:0,rotate:o,formatter:g=>p?g:""+s+g+l},axisTick:{show:e},splitLine:{show:i.bdrIsVisible,lineStyle:{color:[(0,P.t0)(i.bdrColor)],type:i.bdrStyle,width:i.bdrWidth}},min:c,max:d}}else{const p=t===We.N.boxplot_chart?{data:h.map(g=>g.name)}:{data:a};f={type:"category",axisLine:{show:e},axisLabel:{show:e,...r,interval:0,rotate:o},axisTick:{show:e},...p}}return f},xat=n=>{let{show:t,textStyle:e,gridObj:r,xAxis:i,prefixStr:a,suffixStr:o,category:s,legend:l,minNum:u,maxNum:c,interval:d,textAngle:h}=n;const f=(0,bo.sG)(l),g=!f.isVisible?[30,"85%"]:[30,"75%"];return{angleAxis:{type:"value",startAngle:75,axisLabel:{show:t,formatter:v=>""+a+v+(s==="accPer"?"%":o),...e},axisTick:{show:t},splitLine:{show:r.bdrIsVisible,lineStyle:{color:[(0,P.t0)(r.bdrColor)],type:r.bdrStyle,width:r.bdrWidth}},max:c,min:u,interval:d},radiusAxis:{type:"category",data:i,axisLabel:{show:t,...e,interval:0,rotate:h},axisTick:{show:t},z:10},polar:{radius:g,center:f.isVisible?[Jg.x[f.x],"50%"]:["50%","50%"]}}},e5=n=>[We.N.pie_chart,We.N.ring_chart,We.N.progress_chart,We.N.radar_chart,We.N.nightingale_chart,We.N.funnel_chart,We.N.gauge_chart,We.N.liquid_fill_gauge_chart,We.N.map_chart,We.N.sunburst_chart,We.N.word_cloud_chart,We.N.sankey_chart].includes(n),Sat=[We.N.scatter_chart,We.N.bubble_chart,We.N.radial_polar_chart],n5=n=>{const{chartData:{xAxis:t,series:e},chartConfig:r}=n,{grid:i,chartType:a,chartCategory:o,prefix:s,suffix:l,axis:u,legend:c}=r,d={prefix:s,suffix:l},{isVisible:h,xAxis:{minNum:f,maxNum:p},yAxis:{minNum:g,maxNum:v},textAngle:y,interval:x}=u;if(e5(a))return{};const S=Sat.includes(a),{textStyle:_}=(0,dr.$y)(u.textStyle),{prefixStr:D,suffixStr:C}=(0,_o.I)(d);if(a===We.N.radial_polar_chart)return xat({show:h,textStyle:_,gridObj:i,xAxis:t,prefixStr:D,suffixStr:C,category:o,legend:c,minNum:g,maxNum:v,interval:x,textAngle:y});const N=yat({type:a,show:h,textStyle:_,gridObj:i,xAxis:t,textAngle:y,prefixStr:D,suffixStr:C,isXAxisValue:S,minNum:f,maxNum:p,series:e}),q=mat({type:a,show:h,prefixStr:D,category:o,textStyle:_,suffixStr:C,gridObj:i,minNum:g,maxNum:v,interval:x});return{xAxis:a===We.N.horizontal_bar_chart?q:N,yAxis:a===We.N.horizontal_bar_chart?N:q}},wat=n=>[We.N.map_chart,We.N.sunburst_chart,We.N.word_cloud_chart,We.N.sankey_chart].includes(n),r5=n=>{const{chartConfig:t}=n,{legend:e,chartType:r}=t;if(wat(r))return{};const{textStyle:i}=(0,dr.$y)(e.textStyle),a=(0,bo.sG)(e),o={show:a.isVisible,orient:a.x==="center"?"horizontal":"vertical",x:a.x,y:a.y,textStyle:i};return{legend:o,grid:{show:!1,top:o.show&&a.y==="top"?"15%":"5%",left:o.show&&a.x==="left"?"20%":"5%",bottom:o.show&&a.y==="bottom"?"15%":"5%",right:o.show&&a.x==="right"?"20%":"5%",containLabel:!0}}},Z_=(n,t,e)=>{const{chartConfig:{chartAnimation:r}}=n,{tooltip:i}=QE(n,e),{series:a}=qN(n,t),o=n5(n),{legend:s,grid:l}=r5(n),{otherData:u}=t5(n);return{...o,series:a,legend:s,tooltip:i,grid:l,...u,animation:t&&r}};var $_=w(28565),_at=w(53485);const i5=R.Ay.div.withConfig({displayName:"styles__StyledCommonChart",componentId:"sc-d0n4dk-0"})(["position:relative;"]);_n([ZP,oA,pA,IA,UA,$A,qA,tI,eI,rI,GI,eE,oE,pE,JE]);const J_=n=>{const{chartConfig:t,chartData:e,textV0:r}=n,i={width:n.w,height:n.h,chartType:t.chartType,chartCategory:t.chartCategory,chartTheme:t.chartTheme,grid:t.grid,showToolTip:t.isShowToolTip,showAxis:t.isShowAxis,legend:t.legend,chartData:e,xAxis:e.xAxis,textV0:r,prefix:t.prefix,suffix:t.suffix,progress:t.progress,chartInnerRadius:t.chartInnerRadius,chartBorderRadius:t.chartBorderRadius,smooth:t.smooth,animation:t.animation,maxNum:t.maxNum,minNum:t.minNum,chartAnimation:t.chartAnimation,mapAdCode:t.mapAdCode,axis:t.axis,bubbleRadius:t.bubbleRadius,minBubbleRadius:t.minBubbleRadius,maxBubbleRadius:t.maxBubbleRadius,label:t.label,labelText:t.labelText,labelNumber:t.labelNumber,minFontSize:t.minFontSize,maxFontSize:t.maxFontSize,boxWidth:t.boxWidth,barCategoryGap:t.barCategoryGap,hoverStyle:t.hoverStyle,toolTipStyle:t.toolTipStyle,mapSolidColor:t.mapSolidColor,backgroundColor:t.backgroundColor,foregroundColor:t.foregroundColor},a=(f,p,g)=>{p.clear();const v=Z_(f,g,p);p.setOption(v)},o=(f,p)=>{let{width:g,height:v}=f;p.resize({width:g,height:v})},s=(f,p,g)=>{const v=qN(f,g);p.setOption(v,{replaceMerge:["series"]})},l=(f,p)=>{const g=n5(f);p.setOption(g,{replaceMerge:["xAxis","yAxis"]})},u=(f,p)=>{const g=QE(f,p);p.setOption(g,{replaceMerge:["tooltip"]})},c=(f,p)=>{const g=r5(f);p.setOption(g,{replaceMerge:["legend"]})},d=(f,p)=>{const{otherData:g}=t5(f);p.setOption({...g},{replaceMerge:["radar"]})},h=(f,p,g)=>{const{chartConfig:{chartAnimation:v}}=f;p.setOption({animation:g&&v})};return{mount:async(f,p)=>{const g=document.createElement("div");(0,_at.B)(g);const v=fx(g,null,{renderer:"svg",width:n.w,height:n.h});if(n.chartConfig.chartType===We.N.map_chart){const x=$_.h["Map"+n.chartConfig.mapAdCode];let S="";x.hasMLG()?S=x.getMLG():S=await x.loadMLG(),og("MAP_CHART",S)}const y=Z_(n,p,v);return v.setOption(y),f.appendChild(g),v},update:async(f,p,g)=>{var v,y,x,S;if(f.chartConfig.chartType===We.N.map_chart){const _=$_.h["Map"+f.chartConfig.mapAdCode];let D="";_.hasMLG()?D=_.getMLG():D=await _.loadMLG(),og("MAP_CHART",D);const C=!i.textV0&&f.textV0||f.textV0&&i.textV0&&(f.textV0.textColor!==i.textV0.textColor||f.textV0.fontSize!==i.textV0.fontSize);(f.chartConfig.mapAdCode!==i.mapAdCode||JSON.stringify(f.chartConfig.hoverStyle)!==JSON.stringify(i.hoverStyle)||!Ys()(f.chartConfig.grid,i.grid)||C||f.chartConfig.isShowAxis!==i.showAxis||f.chartConfig.mapSolidColor!==i.mapSolidColor)&&s(f,p,g)}else f.chartConfig.chartType===We.N.radar_chart&&(JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)||!Ys()(f.chartConfig.axis,i.axis))&&d(f,p);(f.width!==i.width||f.height!==i.height)&&o({width:f.width,height:f.height},p),f.chartConfig.chartType!==i.chartType&&a(f,p,g),(f.chartConfig.chartCategory!==i.chartCategory||f.chartConfig.chartTheme!==i.chartTheme||f.chartConfig.smooth!==i.smooth||JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||f.chartConfig.chartBorderRadius!==i.chartBorderRadius||f.chartConfig.chartInnerRadius!==i.chartInnerRadius||JSON.stringify(f.chartConfig.progress)!==JSON.stringify(i.progress)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&[We.N.pie_chart,We.N.ring_chart,We.N.nightingale_chart].includes(f.chartConfig.chartType)||f.chartConfig.bubbleRadius!==i.bubbleRadius||f.chartConfig.minBubbleRadius!==i.minBubbleRadius||f.chartConfig.maxBubbleRadius!==i.maxBubbleRadius||JSON.stringify(f.chartConfig.label)!==JSON.stringify(i.label)||JSON.stringify(f.chartConfig.labelText)!==JSON.stringify(i.labelText)||JSON.stringify(f.chartConfig.labelNumber)!==JSON.stringify(i.labelNumber)||f.chartConfig.minFontSize!==i.minFontSize||f.chartConfig.maxFontSize!==i.maxFontSize||f.chartConfig.boxWidth!==i.boxWidth||f.chartConfig.barCategoryGap!==i.barCategoryGap||f.chartConfig.backgroundColor!==i.backgroundColor||f.chartConfig.foregroundColor!==i.foregroundColor)&&(h(f,p,g),s(f,p,g)),(!Ys()(f.chartConfig.grid,i.grid)||!Ys()(f.chartData.xAxis,i.xAxis)||!Ys()(f.chartConfig.axis,i.axis)||f.chartConfig.maxNum!==i.maxNum||f.chartConfig.minNum!==i.minNum||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&f.chartConfig.chartType===We.N.radial_polar_chart||JSON.stringify(f.chartData)!==JSON.stringify(i.chartData)&&f.chartConfig.chartType===We.N.boxplot_chart||f.chartConfig.chartCategory!==i.chartCategory)&&(e5(f.chartConfig.chartType)||l(f,p)),(f.chartConfig.isShowToolTip!==i.showToolTip||f.chartConfig.chartCategory!==i.chartCategory||JSON.stringify(f.chartConfig.prefix)!==JSON.stringify(i.prefix)||JSON.stringify(f.chartConfig.suffix)!==JSON.stringify(i.suffix)||JSON.stringify(f.chartConfig.toolTipStyle)!==JSON.stringify(i.toolTipStyle)||f.chartConfig.chartType===We.N.boxplot_chart&&(v=f.chartData)!=null&&(v=v.series)!=null&&v.length&&(y=i.chartData)!=null&&(y=y.series)!=null&&y.length&&((x=f.chartData)==null||(x=x.series[0])==null?void 0:x.color)!==((S=i.chartData)==null||(S=S.series[0])==null?void 0:S.color)||f.chartConfig.chartType===We.N.liquid_fill_gauge_chart&&JSON.stringify(f.chartData)!==JSON.stringify(i.chartData))&&u(f,p),JSON.stringify(f.chartConfig.legend)!==JSON.stringify(i.legend)&&c(f,p),f.chartConfig.chartType===We.N.gauge_chart&&(f.chartConfig.maxNum!==i.maxNum||f.chartConfig.minNum!==i.minNum||f.chartConfig.backgroundColor!==i.backgroundColor||f.chartConfig.foregroundColor!==i.foregroundColor)&&s(f,p,g),f.chartConfig.chartAnimation!==i.chartAnimation&&(a(f,p,!0),f.chartConfig.chartType===We.N.liquid_fill_gauge_chart&&s(f,p,g))},updateAnimation:(f,p,g)=>{a(f,p,g)},destroy:()=>{}}};class bat extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{prevWidget:null}),(0,k.A)(this,"setWidgetRef",t=>this.widgetRef=t),(0,k.A)(this,"handleClickOutSide",t=>{const{editChartDataCid:e,widget:{key:r,chartConfig:{chartType:i}},mode:a}=this.props;a==="design"&&(e!==r||![We.N.progress_chart,We.N.gauge_chart].includes(i)||this.widgetRef.contains(t.target)||document.querySelector(".mb-right-panel")&&document.querySelector(".mb-right-panel").contains(t.target)||document.querySelector("[type=color-panel]")&&document.querySelector("[type=color-panel]").contains(t.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".--mb--color-picker").contains(t.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".SelectOption")||MB.action("entry:chart:out:edit"))})}async componentDidMount(){const{widget:t,editChartDataCid:e}=this.props,r=e===t.cid;this.chartsInstance=await J_(t).mount(this.widgetRef,r)}componentWillUnmount(){var t;(t=this.chartsInstance)==null||t.dispose()}async componentDidUpdate(t){var e,r,i,a,o,s,l,u,c,d,h,f,p,g;const v=this.props.editChartDataCid===this.props.widget.cid;(!Ys()((e=t.widget)==null?void 0:e.chartData,(r=this.props.widget)==null?void 0:r.chartData)||JSON.stringify((i=t.widget)==null?void 0:i.chartConfig)!==JSON.stringify((a=this.props.widget)==null?void 0:a.chartConfig)||JSON.stringify((o=t.widget)==null?void 0:o.textV0)!==JSON.stringify((s=this.props.widget)==null?void 0:s.textV0)||((l=t.widget)==null?void 0:l.w)!==((u=this.props.widget)==null?void 0:u.w)||((c=t.widget)==null?void 0:c.width)!==((d=this.props.widget)==null?void 0:d.width)||((h=t.widget)==null?void 0:h.h)!==((f=this.props.widget)==null?void 0:f.h)||((p=t.widget)==null?void 0:p.height)!==((g=this.props.widget)==null?void 0:g.height))&&await J_(t.widget).update(this.props.widget,this.chartsInstance,v),this.props.widget.chartConfig.chartType===We.N.liquid_fill_gauge_chart&&t.editChartDataCid!==this.props.editChartDataCid&&J_(this.props.widget).updateAnimation(this.props.widget,this.chartsInstance,v)}render(){const{widget:{w:t,h:e,key:r},editChartDataCid:i}=this.props,a={width:t,height:e,pointerEvents:i===r?"auto":"none"};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(i5,{style:a,ref:this.setWidgetRef}),(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(this.handleClickOutSide,{capture:!0})})]})}}const Cat=n=>({mount:t=>{const e=document.createElement("div"),r=fx(e,null,{renderer:"svg",width:n.w,height:n.h});if(n.chartConfig.chartType===We.N.map_chart){const a=$_.h["Map"+n.chartConfig.mapAdCode];a.hasMLG()&&og("MAP_CHART",a.getMLG())}t.appendChild(e);const i=Z_(n,!1,r);return r.setOption(i),r}});class Mat extends b.PureComponent{constructor(t){super(t),this.$element=document.createElement("div"),this.chartsInstance=Cat(t.widget).mount(this.$element),this.echartsHTML=this.chartsInstance.getDom().innerHTML}render(){const{widget:{w:t,h:e}}=this.props,r={w:t,h:e};return(0,m.jsx)(i5,{style:r,dangerouslySetInnerHTML:{__html:this.echartsHTML}})}}const Q_=(0,b.memo)(n=>{let{widget:t,editChartDataCid:e,treeData:r,mode:i,isSupMkt:a=!1}=n;return(0,m.jsx)(rt.cl,{treeData:r,widget:t,mode:i,isSupMkt:a,children:i==="snapshot"?(0,m.jsx)(Mat,{widget:t}):(0,m.jsx)(bat,{widget:t,editChartDataCid:e,mode:i})})});class Tat extends M.n{renderWidgetContent(t){return(0,m.jsx)(Q_,{widget:this.widget,treeData:this,editChartDataCid:t.editChartDataCid,mode:"design",isSupMkt:t.isSupMkt})}}class Dat extends W.f{renderWidgetContent(t){return(0,m.jsx)(Q_,{widget:this.widget,treeData:this,editChartDataCid:this.widget.cid,mode:"preview",isSupMkt:t.isSupMkt})}}class kat extends st.j{renderWidgetContent(t){return(0,m.jsx)(Q_,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Pat=[Tat,Dat,kat],Aat=n=>{const{w:t,h:e,fill:r}=n,{sliderSize:i,iconSize:a,iconColor:o}=n.digitalStepper,s={width:i+"px",height:e+"px",fontSize:a+"px",backgroundColor:r.fillIsVisible?(0,P.t0)(r.solidColor):"transparent",color:(0,P.t0)(o),...(0,K.Nb)(n),...(0,K.Um)(n)},l=t-2*i;return{style:s,inputWidth:l}},Iat=(n,t)=>{const{min:e,max:r,number:i}=n,a=Number(t);let o=i;return isNaN(a)||(a<e?o=e:a>r?o=r:o=a),o},Eat=n=>{const{textColor:t,fontSize:e}=n.digitalStepper;return{fontSize:e,color:(0,P.t0)(t)}},Lat=R.Ay.div.withConfig({displayName:"styles__StyledDigitalStepper",componentId:"sc-72xwbz-0"})(["width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;overflow:hidden;pointer-events:none;.digitalAction{display:inline-flex;justify-content:center;align-items:center;&.ban{opacity:0.4;}.action-icon{width:",";}}.digitalContent{width:","px;span{display:inline-block;width:100%;white-space:nowrap;display:flex;align-items:cnter;justify-content:center;}.input-number{font-size:inherit;font-family:inherit;color:inherit;text-align:center;pointer-events:auto !important;width:100%;height:100%;}}&.is-edit{cursor:pointer;pointer-events:auto;}"],n=>n.iconStyle.fontSize,n=>n.inputWidth);class Oat extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"createDigitalRef",e=>this.$digitalRef=e),(0,k.A)(this,"createInputRef",e=>this.$inputRef=e),(0,k.A)(this,"handleChangeText",e=>{const{widget:{digitalStepper:r},isEditing:i}=this.props,{min:a,max:o}=r;if(!i)return;const{text:s}=this.state,l=Number(s);if(isNaN(l)||e==="de"&&l<=a||e==="in"&&l>=o)return;const u=e==="de"?l-1:e==="in"?l+1:l;this.handleChangeInputTextValue(u)}),(0,k.A)(this,"handleChangeInputTextValue",e=>{const{onChangeTextValue:r}=this.props;this.setState({text:e,isFocus:!1}),r&&r(e)}),(0,k.A)(this,"handleChange",e=>{const{target:{value:r}}=e;this.setState({text:r.trim()})}),(0,k.A)(this,"handleFocus",()=>{this.setState({isFocus:!0})}),(0,k.A)(this,"handleClickOutSide",e=>{let{target:r}=e;this.$digitalRef&&(this.$digitalRef.contains(r)||(this.$inputRef?this.$inputRef.blur():this.handleBlur()))}),(0,k.A)(this,"handleBlur",()=>{const{text:e}=this.state,{widget:r}=this.props,i=Iat(r,e);this.handleChangeInputTextValue(i)}),this.state={text:t.widget.digitalStepper.value,isFocus:!1}}componentDidUpdate(t,e,r){this.props.widget.digitalStepper.value!==t.widget.digitalStepper.value&&this.setState({text:this.props.widget.digitalStepper.value})}render(){const{widget:t,isEditing:e}=this.props,{min:r,max:i}=t.digitalStepper,{text:a,isFocus:o}=this.state,{style:s,inputWidth:l}=Aat(t),u=Eat(t);return(0,m.jsxs)(Lat,{className:e?"is-edit":"",iconStyle:s,inputWidth:l,ref:this.createDigitalRef,children:[(0,m.jsx)("button",{style:s,className:E()("digitalAction canClickableHighWidget",{ban:a<=r}),onPointerDown:()=>this.handleChangeText("de"),children:(0,m.jsx)(Vr.C,{name:"design/digital/decrease",className:"action-icon"})}),(0,m.jsx)("div",{className:"digitalContent",style:u,children:e?(0,m.jsx)("form",{style:{width:"100%",height:"100%"},children:(0,m.jsx)("input",{value:a,className:"input-number",type:"text",ref:this.createInputRef,onFocus:this.handleFocus,onChange:this.handleChange,onBlur:this.handleBlur})}):(0,m.jsx)("span",{children:a})}),(0,m.jsx)("button",{style:s,className:E()("digitalAction canClickableHighWidget",{ban:a>=i}),onPointerDown:()=>this.handleChangeText("in"),children:(0,m.jsx)(Vr.C,{name:"design/digital/increase",className:"action-icon"})}),o&&(0,m.jsx)(mn.A,{target:document,onPointerDown:(0,mn.t)(this.handleClickOutSide,{capture:!0})})]})}}const q_=(0,b.memo)(n=>{let{widget:t,mode:e,treeData:r,isEditing:i,isSupMkt:a=!1}=n;const o=(0,b.useCallback)(s=>{MB.action("entry:digital-stepper:attr:set",{value:s,attr:"value"})},[]);return(0,m.jsx)(rt.cl,{treeData:r,widget:t,mode:e,isSupMkt:a,children:(0,m.jsx)(Oat,{widget:t,isEditing:i,onChangeTextValue:e==="design"?o:null})})});class Rat extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e}=t,{widget:r}=this,i=r.key===e;return(0,m.jsx)(q_,{widget:r,treeData:this,isEditing:i,mode:"design",isSupMkt:t.isSupMkt})}}class Nat extends W.f{renderWidgetContent(t){const{widget:e}=this;return(0,m.jsx)(q_,{widget:e,treeData:this,mode:"preview",isEditing:!0,isSupMkt:t.isSupMkt})}}class Bat extends st.j{renderWidgetContent(t){const{widget:e}=this;return(0,m.jsx)(q_,{widget:e,treeData:this,mode:"snapshot",isEditing:!1,isSupMkt:t.isSupMkt})}}const Vat=[Rat,Nat,Bat],Wat=R.Ay.div.withConfig({displayName:"styles__StyledPaginationWeb",componentId:"sc-wprvbq-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.prev,.next{display:inline-flex;align-items:center;justify-content:center;width:calc(80% / ",");height:","px;.icon{width:7px;}&.isDisabled{opacity:0.4;}}.next{svg{transform:rotate(180deg);}}.page{display:inline-flex;align-items:center;justify-content:center;width:calc(80% / ",");height:","px;white-space:nowrap;}&.isEditing{.page,.prev,.next{cursor:pointer;pointer-events:auto;}.prev,.next{&.isDisabled{cursor:not-allowed;}}}"],n=>n.itemNum+2,n=>n.height,n=>n.itemNum+2,n=>n.height);let Pv=function(n){return n.left="left",n.right="right",n}({});function Fat(n,t,e){e===void 0&&(e=1);let r=[];const i=5+e*2;if(t<=i){for(let u=1;u<=t;u++)r.push({value:u,id:u});return r}let a=Math.max(1,n-e),o=Math.min(n+e,t);const s=3+2*e,l=t-s+1;n<=e+3&&(o=Math.max(1+e*2,s)),t-n<e+3&&(a=Math.min(t-e*2,l));for(let u=a;u<=o;u++)r.push({value:u,id:u});return n-1>=e+2&&(n!==3+e?r.unshift({value:"...",id:Pv.left}):r.unshift({value:2,id:2})),t-n>=e+2&&(n!==t-2-e?r.push({value:"...",id:Pv.right}):r.push({value:t-1,id:t-1})),a!==1&&r.unshift({value:1,id:1}),o!==t&&r.push({value:t,id:t}),r}const jat={backgroundColor:"unset",borderRadius:0,borderWidth:0,borderColor:"unset",borderStyle:"unset"},Aht=n=>new Array(n).fill(0).map((t,e)=>e+1),zat=n=>{const{paginationMobile:t}=n,{textV0:e,checkedTextV0:r}=t,{fontFamily:i,...a}=(0,K.Zv)(e),{fontFamily:o,...s}=(0,K.Zv)(r),l={backgroundColor:(0,$.n7)(n),...a,...(0,K.Nb)(n)},{bdrColor:u,bdrWidth:c,bdrStyle:d,bdrIsVisible:h}=n.border;h?(l.borderColor=(0,P.t0)(u),l.borderWidth=c,l.borderStyle=d):l.border="none";const f={...s,...(0,K.Nb)(n)},p={...a};return{style:l,checkedStyle:f,spanStyle:p}},Hat=n=>{const{paginationWeb:t}=n,{checkedBorder:e,checkedBackgroundColor:r,isCheckedBackgroundVisible:i,checkedTextV0:a,textV0:o}=t,s=n.border,{fontFamily:l,...u}=(0,K.Zv)(o),{fontFamily:c,...d}=(0,K.Zv)(a),h={backgroundColor:(0,$.n7)(n),...u,...(0,K.Nb)(n)},{bdrColor:f,bdrWidth:p,bdrStyle:g,bdrIsVisible:v}=s;v?(h.borderColor=(0,P.t0)(f),h.borderWidth=p,h.borderStyle=g):h.border="none";const y={...d,...(0,K.Nb)(n)};y.backgroundColor=(0,K.Lt)(i,r);const{bdrColor:x,bdrWidth:S,bdrStyle:_,bdrIsVisible:D}=e;return D?(y.borderColor=(0,P.t0)(x),y.borderWidth=S+"px",y.borderStyle=_):y.border="none",{style:h,checkedStyle:y}},a5=3;class Uat extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"handlePrev",()=>{const{curPage:e}=this.state;e!==1&&this.handlePage(e-1)}),(0,k.A)(this,"handleNext",()=>{const{widget:{paginationWeb:{pagesNumber:e}}}=this.props,{curPage:r}=this.state;r!==e&&this.handlePage(r+1)}),(0,k.A)(this,"handlePage",e=>{const{curPage:r}=this.state,{isEditing:i,widget:{paginationWeb:{pagesNumber:a}},onSetPage:o}=this.props;if(!i)return;let s=e;if(Pv.right===e){const l=r+a5;s=l>a?a:l}if(Pv.left===e){const l=r-a5;s=l>1?l:1}this.setState({curPage:s}),o&&o(s)}),(0,k.A)(this,"getItemStyle",(e,r,i)=>{const{curPage:a}=this.state;return e.value===Number(a)?i:r}),this.state={curPage:t.widget.paginationWeb.curPage}}componentDidUpdate(t,e,r){const{onSetPage:i,widget:a}=this.props,{pagesNumber:o,curPage:s}=a.paginationWeb,{pagesNumber:l,curPage:u}=t.widget.paginationWeb;o!==l&&this.state.curPage>o&&(this.setState({curPage:1}),i==null||i(1)),s!==u&&this.setState({curPage:s})}render(){const{curPage:t}=this.state,{widget:e,isEditing:r}=this.props,{paginationWeb:i,h:a}=e,{pagesNumber:o}=i,{style:s,checkedStyle:l}=Hat(e),u=Fat(t,o);return(0,m.jsxs)(Wat,{className:r?"isEditing":"",height:a,itemNum:u.length,children:[(0,m.jsx)("span",{className:E()("prev canClickableHighWidget",Number(t)===1?"isDisabled":""),style:s,onPointerDown:this.handlePrev,children:(0,m.jsx)(Vr.C,{name:"design/pagination/left_arrow"})}),u.map(c=>(0,m.jsx)("span",{style:this.getItemStyle(c,s,l),className:"page canClickableHighWidget",onPointerDown:this.handlePage.bind(this,c.id),children:c.value},c.id)),(0,m.jsx)("span",{className:E()("next canClickableHighWidget",Number(t)===o?"isDisabled":""),style:s,onPointerDown:this.handleNext,children:(0,m.jsx)(Vr.C,{name:"design/pagination/left_arrow"})})]})}}const t1=(0,b.memo)(n=>{let{widget:t,treeData:e,isEditing:r,mode:i,isSupMkt:a=!1}=n;const o=s=>{i==="design"&&MB.action("entry:widget:change",{flatChgList:[{key:t.key,hotAttr:{paginationWeb:{...t.paginationWeb,curPage:s}}}]})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:i,isSupMkt:a,children:(0,m.jsx)(Uat,{widget:t,isEditing:r,onSetPage:o})})});class Gat extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e,onlyView:r}=t,i=this.widget.key===e&&!r;return(0,m.jsx)(t1,{widget:this.widget,treeData:this,isEditing:i,mode:"design",isSupMkt:t.isSupMkt})}}class Kat extends W.f{renderWidgetContent(t){return(0,m.jsx)(t1,{widget:this.widget,treeData:this,mode:"preview",isEditing:!0,isSupMkt:t.isSupMkt})}}class Xat extends st.j{renderWidgetContent(t){return(0,m.jsx)(t1,{widget:this.widget,treeData:this,mode:"snapshot",isEditing:!1,isSupMkt:t.isSupMkt})}}const Yat=[Gat,Kat,Xat],Zat=R.Ay.div.withConfig({displayName:"styles__StyledPaginationMobile",componentId:"sc-2bo3id-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.prev,.next{display:inline-flex;align-items:center;justify-content:center;width:64px;height:","px;white-space:nowrap;&.isDisabled{opacity:0.4;}}&.isEditing{.prev,.next{cursor:pointer;pointer-events:auto;}.prev,.next{&.isDisabled{cursor:not-allowed;}}}"],n=>n.height);class $at extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"handlePrev",()=>{const{curPage:e}=this.state;Number(e)!==1&&this.handlePage(Number(e)-1)}),(0,k.A)(this,"handleNext",()=>{const{widget:{paginationMobile:{pagesNumber:e}}}=this.props,{curPage:r}=this.state;Number(r)!==e&&this.handlePage(Number(r)+1)}),(0,k.A)(this,"handlePage",e=>{const{isEditing:r,onSetPage:i}=this.props;r&&(this.setState({curPage:e}),i&&i(e))}),this.state={curPage:this.props.widget.paginationMobile.curPage}}componentDidUpdate(t,e,r){const{onSetPage:i,widget:a}=this.props,{pagesNumber:o,curPage:s}=a.paginationMobile,{pagesNumber:l,curPage:u}=t.widget.paginationMobile;o!==l&&this.state.curPage>o&&(this.setState({curPage:1}),i==null||i(1)),s!==u&&this.setState({curPage:s})}render(){const{widget:t,isEditing:e}=this.props,{paginationMobile:{pagesNumber:r},h:i}=t,{style:a,checkedStyle:o,spanStyle:s}=zat(t),{curPage:l}=this.state;return(0,m.jsxs)(Zat,{className:e?"isEditing":"",height:i,children:[(0,m.jsx)("span",{className:E()("prev canClickableHighWidget",Number(l)===1?"isDisabled":""),style:a,onPointerDown:this.handlePrev,children:I18N.w.prev_page}),(0,m.jsxs)("div",{children:[(0,m.jsx)("span",{style:o,children:l}),(0,m.jsxs)("span",{style:s,children:["/",r]})]}),(0,m.jsx)("span",{className:E()("next canClickableHighWidget",Number(l)===r?"isDisabled":""),style:a,onPointerDown:this.handleNext,children:I18N.w.next_page})]})}}const e1=(0,b.memo)(n=>{let{widget:t,isEditing:e,treeData:r,mode:i,isSupMkt:a=!1}=n;const o=s=>{i==="design"&&e&&MB.action("entry:widget:change",{flatChgList:[{key:t.key,hotAttr:{paginationMobile:{...t.paginationMobile,curPage:s}}}]})};return(0,m.jsx)(rt.cl,{treeData:r,widget:t,mode:i,isSupMkt:a,style:jat,children:(0,m.jsx)($at,{widget:t,isEditing:e,onSetPage:o})})});class Jat extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e,onlyView:r}=t,{widget:i}=this,a=i.key===e&&!r;return(0,m.jsx)(e1,{widget:i,treeData:this,isEditing:a,mode:"design",isSupMkt:t.isSupMkt})}}class Qat extends W.f{renderWidgetContent(t){return(0,m.jsx)(e1,{widget:this.widget,treeData:this,mode:"preview",isEditing:!0,isSupMkt:t.isSupMkt})}}class qat extends st.j{renderWidgetContent(t){return(0,m.jsx)(e1,{widget:this.widget,treeData:this,mode:"snapshot",isEditing:!1,isSupMkt:t.isSupMkt})}}const tot=[Jat,Qat,qat],eot=R.Ay.input.withConfig({displayName:"style__StyledSlider",componentId:"sc-1jbp5ei-0"})(["-webkit-appearance:none;width:100%;height:",";position:relative;flex-grow:1;flex-shrink:1;align-self:center;justify-self:center;background-color:transparent;pointer-events:"," !important;&::before{position:absolute;height:100%;width:","%;content:'';background-color:",";border-radius:",";}&::-webkit-slider-runnable-track{height:","px;border-radius:",";background-color:",";box-shadow:",";}&::-webkit-slider-thumb{position:relative;-webkit-appearance:none;width:","px;height:","px;border-radius:",";border:",";background-color:",";box-shadow:",";margin-top:","px;opacity:1;cursor:pointer;}&::-moz-range-track{height:","px;border-radius:",";background-color:",";box-shadow:",";}&::-moz-range-progress{height:","px;background-color:",";border-radius:",";}&::-moz-range-thumb{position:relative;-webkit-appearance:none;width:","px;height:","px;border-radius:",";border:",";background-color:",";box-shadow:",";margin-top:","px;opacity:1;cursor:pointer;}&:focus{outline:none;}"],n=>n.height,n=>n.editable?"auto":"none",n=>n.value,n=>n.trackForeground,n=>n.trackBorderRadius,n=>n.trackSize,n=>n.trackBorderRadius,n=>n.trackBackground,n=>n.trackShadow,n=>n.thumbSize,n=>n.thumbSize,n=>n.thumbBorderRadius,n=>n.thumbBorder,n=>n.thumbBackground,n=>n.thumbShadow,n=>(n.trackSize-n.thumbSize)/2,n=>n.trackSize,n=>n.trackBorderRadius,n=>n.trackBackground,n=>n.trackShadow,n=>n.trackSize,n=>n.trackForeground,n=>n.trackBorderRadius,n=>n.thumbSize,n=>n.thumbSize,n=>n.thumbBorderRadius,n=>n.thumbBorder,n=>n.thumbBackground,n=>n.thumbShadow,n=>(n.trackSize-n.thumbSize)/2);class not extends b.PureComponent{constructor(t){super(t),(0,k.A)(this,"handleSliderValueChange",r=>{const{target:i}=r,{handleSliderValueChange:a}=this.props;this.setState({value:i.value},()=>{typeof a=="function"&&a(i.value)})});const{widget:e}=t;this.state={value:e.slider.thumbPosition}}componentDidUpdate(t){t.widget.slider.thumbPosition!==this.props.widget.slider.thumbPosition&&this.setState({value:this.props.widget.slider.thumbPosition})}render(){const{widget:t,editable:e}=this.props,{slider:r,w:i,h:a}=t,{value:o}=this.state,s=r.trackBorderRadius+"px",l=r.isTrackBackgroundVisible?(0,P.t0)(r.trackBackgroundColor):"#fff",u=r.isTrackForegroundVisible?(0,P.t0)(r.trackForegroundColor):"#fff",c=(0,K.Ps)(r.trackShadow),d=r.thumbBorderRadius+"px",h=r.isThumbBackgroundVisible?(0,P.t0)(r.thumbBackgroundColor):"#fff",f=(0,K.qA)(r.thumbBorder),p=(0,K.Ps)(r.thumbShadow);return(0,m.jsx)(eot,{width:i,height:a,trackBorderRadius:s,trackSize:r.trackSize,trackBackground:l,trackForeground:u,trackShadow:c,thumbBorderRadius:d,thumbSize:r.thumbSize,thumbBackground:h,thumbBorder:f,thumbShadow:p,editable:e,type:"range",value:o,onChange:this.handleSliderValueChange})}}const n1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const o=(0,b.useCallback)(s=>{MB.action("entry:set:slider:attr",{value:s,attr:"thumbPosition"})},[]);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:{display:"flex"},children:(0,m.jsx)(not,{widget:t,editable:i,handleSliderValueChange:r==="design"?o:null})})});class rot extends M.n{renderWidgetContent(t){const e=this.widget.key===t.editingEditableWidgetCid;return(0,m.jsx)(n1,{widget:this.widget,treeData:this,isEditing:e,mode:"design",isSupMkt:t.isSupMkt})}}class iot extends W.f{renderWidgetContent(t){return(0,m.jsx)(n1,{widget:this.widget,treeData:this,mode:"preview",isEditing:!0,isSupMkt:t.isSupMkt})}}class aot extends st.j{renderWidgetContent(t){return(0,m.jsx)(n1,{widget:this.widget,treeData:this,mode:"snapshot",isEditing:!1,isSupMkt:t.isSupMkt})}}const oot=[rot,iot,aot];var sot=w(63711),qn=w.n(sot),Av=w(9199),zr=w(21840);const o5=n=>({...(0,K.u6)(n),background:(0,$.n7)(n),...(0,K.Um)(n),overflow:"hidden",padding:0}),Jh=n=>{let{newOptionData:t}=n;(0,zr.sV)(t,e=>{e.data.designExpanded&&(e.data.designExpanded=!1)})},lot=n=>{let{newOptionData:t,onUpdate:e}=n,r=null;(0,zr.sV)(t,a=>{a.data.selected&&r===null&&(r=a),a.data.designExpanded&&(a.data.designExpanded=!1)});const i=uot(r,t);if(r!==null&&i){const a=i.split("-");if(a.length===1)t[a[0]].data={...r.data,designExpanded:!0};else{let o=t[a[0]];for(a.shift();a.length;){a.length&&(o.data.designExpanded=!0);const s=a.shift();o=o.children[s]}}}e(t)},uot=(n,t)=>{if(!n)return"";let e="";const r=(i,a,o)=>{const s=o?o+"-"+a:""+a;return i===n&&(e=s),s};return(0,zr.qS)(t,r,""),e},r1=n=>{let{option:t,path:e,newOptionData:r,onUpdate:i}=n;if(e.split("-").length===1)Jh({newOptionData:r}),r[e].data={...t.data,designExpanded:!0};else{const o=(s,l)=>{s.children.forEach((u,c)=>{parseInt(l)===c?u.data.designExpanded=!0:u.data.designExpanded=!1})};(0,zr.u2)({newOptionData:r,pathArr:e.split("-"),onUpdate:o})}i(r)},s5=n=>{let{option:t,isSelected:e,checked:r,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=n;o||(0,zr.sV)(a,c=>{c.data.selected&&(c.data={...c.data,selected:!1})});const l=o?{...t.data,selected:e,checked:r}:{...t.data,selected:e},u=i.split("-");if(u.length===1)a[i].data=l;else{const c=d=>{d.data=l};(0,zr.PM)({newOptionData:a,pathArr:u,onUpdate:c})}s(a)},i1=n=>{let{option:t,isSelected:e,checked:r,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=n;s5({option:t,isSelected:e,checked:r,path:i,newOptionData:a,isMultiple:o,onUpdate:s})},a1=n=>{let{option:t,isSelected:e,checked:r,path:i,newOptionData:a,isMultiple:o,onUpdate:s}=n;r1({option:t,path:i,newOptionData:a,onUpdate:()=>{}}),s5({option:t,isSelected:e,checked:r,path:i,newOptionData:a,isMultiple:o,onUpdate:s})},cot=n=>{let{newOptionData:t,text:e,onUpdate:r}=n;if(!e)return;const i=e.split("-");if(i.length<1)return;const a=i[0],o=d5(a);if(o.length<1)return;const s=Hc(t,o.join("-"));s.children.length<1?(s.data.selected=!1,s.data.checked&&(s.data.checked=!1)):(0,zr.sV)(s.children,l=>{l.data.selected=!1,l.data.checked&&(l.data.checked=!1)}),r(t)},dot=n=>{let{newOptionData:t,texts:e,onUpdate:r}=n;!e||e.length===0||(e.forEach(i=>{const a=i.split("-");if(a.length<1)return;const o=a[0],s=d5(o);if(s.length<1)return;const l=Hc(t,s.join("-"));l.children.length<1?(l.data.selected=!1,l.data.checked&&(l.data.checked=!1)):(0,zr.sV)(l.children,u=>{u.data.selected=!1,u.data.checked&&(u.data.checked=!1)})}),r(t))},l5=n=>{let{option:t,path:e,selectStatus:r,newOptionData:i}=n;const a=e.split("-");let o=null;if(a.length===1)o=i[e];else{const s=l=>{o=l};(0,zr.PM)({newOptionData:i,pathArr:e.split("-"),onUpdate:s})}o&&(t.children.length?r==="select"||r==="half"?(0,zr.sV)(o.children,s=>{s.children.length<1?(s.data.checked=!1,s.data.selected=!1):s.data.checked=!1}):(0,zr.sV)(o.children,s=>{s.children.length<1?(s.data.checked=!0,s.data.selected=!0):s.data.checked=!0}):r==="select"?(o.data.checked=!1,o.data.selected=!1):(o.data.checked=!0,o.data.selected=!0))},hot=(n,t)=>{const e=[],r=[],i=[],a=o=>{o.forEach((s,l)=>{r.push(l);const u=r.join("-"),c=s.data.selected===!0,d=t?c:!1;i.push(u),c&&e.push(u),t&&(s.data.checked=d),s.children&&a(s.children),r.pop()})};return a(n),{selectedPaths:e,allPaths:i}},Hc=(n,t,e)=>{const r=t.split("-").map(Number),i=[];let a=null;return r.forEach(o=>{var s;const l=a?a.children:n;if(!l||!l[o]){a=null;return}a=l[o],i.push((s=a.data)==null?void 0:s.name)}),e?{node:a,nodePath:i}:a},Iv=(n,t)=>{const{selectedPaths:e,allPaths:r}=hot(n,t);let i="",a=[],o=[];return e.length<1?{defaultText:i,multipleTexts:a,formatMultipleTexts:o}:(i=fot(n,e[0])||"",o=got(n,r,e),a=pot(n,e),{defaultText:i,multipleTexts:a,formatMultipleTexts:o})},fot=(n,t)=>{if(t.length<1)return"";const{nodePath:e=[]}=Hc(n,t,!0);return e.join("/")},pot=(n,t)=>{if(n.length<1)return[];const e=[];for(let i=0;i<t.length;i++){var r;const a=Hc(n,t[i]);e.push(a?Qh(a==null||(r=a.data)==null?void 0:r.name,t[i]):"")}return e},got=(n,t,e)=>{if(n.length<1)return[];const r=[],i=new Map,a=(o,s)=>{const{children:l,data:u}=o;if(l&&l.length>0){let c=!0;return l.forEach((d,h)=>{const f=s+"-"+h,p=a(d,f);c=c&&p,i.set(s,c)}),c}else{const c=u.selected===!0;return i.set(s,c),c}};return t.forEach(o=>{const s=Hc(n,o);s&&a(s,o)}),t.forEach(o=>{const s=o.split("-"),l=Hc(n,o);if(s.length>1){const u=s.slice(0,-1).join("-");i.get(o)&&!i.get(u)&&r.push(Qh(l==null?void 0:l.data.name,o))}else i.get(o)&&r.push(Qh(l==null?void 0:l.data.name,o))}),r},vot=8,mot=8,yot=n=>vot*(n/100),o1=n=>mot*(n/100),xot=34,u5=10,Sot=n=>Math.ceil(65*(n/100)),c5=(n,t,e,r)=>{var i;if(!t||t.length===0||!n)return[];const a=(((i=e.get(t[0]))==null?void 0:i.height)||0)+yot(r),{width:o=0,height:s=0}=n,l=(o-u5-xot)*(r/100),u=(s-u5)*(r/100);if(a===0||l===0||u===0)return[];const c=Math.floor(u/a),d=c===0?1:c;let h=l,f=0,p=t[f],g=!1;const v=[];for(let S=1;S<=d;S++){var y;if(f>=t.length)break;let _=e.get(p),D=(((y=_)==null?void 0:y.width)||0)+o1(r);if(h<D&&(h=l),S===d&&!g){const C=t.slice(f).reduce((N,q)=>{const et=e.get(q),lt=((et==null?void 0:et.width)||0)+o1(r);return N+lt},0);!(f===t.length-1&&D<h)&&C>h&&(h-=Sot(r),g=!0)}for(;h>=D&&f<t.length;)if(h=h-D,v.push(p),f++,f<t.length){var x;p=t[f],_=e.get(p),D=(((x=_)==null?void 0:x.width)||0)+o1(r)}}return v},Qh=(n,t)=>{const e=t.split("-").join(",");return""+e+(e?"-":"")+n},wot=n=>{if(!n)return n;const t=n.split("-");return t.length<=1?n:t.slice(1).join("")||n},d5=n=>n===""?[]:n.split(",")||[],s1="dropmenu-snapshot-preload",_ot="#"+s1,h5=()=>{let n=document.querySelector(_ot);if(!n){const t=document.createElement("style");t.textContent="\n #"+s1+" {\n position: absolute;\n top: -10000px;\n left: -10000px;\n font-size: 12px;\n pointer-events: none;\n }\n ",document.head.appendChild(t),n=document.createElement("div"),n.id=s1,document.body.appendChild(n)}return n};var f5=w(60185),bot=w(30108),p5=w.n(bot),oa=w(9376);const Cot=R.Ay.div.withConfig({displayName:"styles__StyledMultipleItem",componentId:"sc-1xhcbko-0"})(["display:inline-flex;align-items:center;justify-content:space-between;padding:3px 5px;border:1px solid rgb(187,187,187);border-radius:4px;margin:3px;height:28px;white-space:pre;.close{cursor:pointer;margin-left:6px;circle{fill:#00122626;}}.close:hover{circle{fill:#0012264D;}}"]),Mot=R.Ay.div.withConfig({displayName:"styles__StyledDropMenuContainer",componentId:"sc-1xhcbko-1"})([".drop-box{position:absolute;display:flex;pointer-events:auto;}ul.dropMenuWidgetContent{padding-top:4px;height:182px;border-radius:6px;font-weight:400;box-shadow:rgba(0,18,38,0.10) 0px 4px 10px 0px;z-index:999999;overflow-y:auto;overflow-x:hidden;background-color:",";color:",";li{display:flex;align-items:center;position:relative;padding:6px 10px;height:32px;line-height:initial;min-width:140px;max-width:330px;transition:background-color 0.1s ease;&:hover,&.isExpanded,&.isHalfChecked{background-color:",";}&.isSelected,&.isChecked{color:",";}.checkbox_selected{width:16px;margin-right:8px;}.select > :first-child,.half > :first-child{fill:rgba(22,132,252,1);}.no > :first-child{fill:rgba(204,204,204,1);}.svg-icon.expand{width:24px;transform:rotate(-90deg);margin-left:auto;&.ro{transform:rotate(-90deg);}}.name{font-size:14px;max-width:252px;white-space:pre;overflow:hidden;text-overflow:ellipsis;margin-right:10px;}&.is-multiple-selected{margin-bottom:2px;span.name{flex:1;}}}::-webkit-scrollbar-thumb{background-color:rgb(222,224,226);border-radius:4px;&:hover{background-color:rgba(0,18,38,0.3);}}}.children-box{padding-top:4px;background-color:#fff;border-radius:6px;height:182px;overflow-y:auto;overflow-x:hidden;font-weight:400;box-shadow:0 9px 28px 8px rgba(0,0,0,0.05),0 6px 16px rgba(0,0,0,0.08),0 3px 6px -4px rgba(0,0,0,0.12);ul.children-box{width:100%;height:100%;}}"],n=>n.optionBgColor,n=>n.optionSelectTextColor,n=>n.optionHoverBgColor,n=>n.optionSelectedColor),g5=R.Ay.div.withConfig({displayName:"styles__StyledDropMenu",componentId:"sc-1xhcbko-2"})(["overflow:hidden;.dropMenuHeader{display:flex;height:100%;pointer-events:auto;padding:3px;div.text{white-space:pre;margin-right:8px;overflow:hidden;line-height:100%;display:flex;}.multiple-text{max-width:100%;max-height:100%;display:flex;flex-wrap:wrap;}.text{flex:1;}.header-dropmenu{width:24px;margin-right:10px;}}"]),du={SELECT:"select",HALF:"half",NO:"no"},Tot=n=>{var t,e,r,i;const{option:a,isRenderSlected:o,panelCid:s,fontSize:l,isMultiple:u,showLinkTag:c,widget:d,path:h,onToggle:f,onClick:p,handleCheckNode:g,onExpandItem:v,linkQueryArray:y}=n,{hasInteractiveIta:x,firstInteractiveIta:S,interactiveCids:_,firstUiInteractiveIta:D,itaClassName:C}=(0,Pa.HW)(y,a.data.linkCids),[N,q]=(0,b.useState)(!0),[et,lt]=(0,b.useState)(du.NO),ft=(0,b.useRef)(null),_t=(0,b.useCallback)(Gt=>{ft.current&&clearTimeout(ft.current),MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),Gt(),ft.current=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400)},[]);(0,b.useEffect)(()=>{if(u){var Gt;if(!((Gt=a.children)!=null&&Gt.length))lt(a.data.checked?du.SELECT:du.NO);else{let Qt=0,me=0;(0,zr.qS)(a.children,(De,Pe,Ce)=>{var Ee;const Ve=Ce+"-"+Pe;if(!((Ee=De.children)!=null&&Ee.length)){var Te;Qt+=1,(Te=De.data)!=null&&Te.checked&&(me+=1)}return Ve},h),Qt===me?lt(du.SELECT):me>0&&me<Qt?lt(du.HALF):lt(du.NO)}}},[u,a.children,a.data.checked,h]);const Ct=Gt=>{var Qt;Gt.stopPropagation(),Gt.preventDefault(),p&&p(Gt,a,h,et),S&&((Qt=MB)==null||(Qt=Qt.runnerController)==null||Qt.prepareJump(Gt,["tap","click"])),(0,oa.Fr)()||f&&f(Gt,u?void 0:!1,a)},kt=()=>{q(!0)},Ot=()=>{q(!1)},Nt=Gt=>{if(N){var Qt;Gt!=null&&(Qt=Gt.target)!=null&&(Qt=Qt.closest("svg"))!=null&&(Qt=Qt.className)!=null&&(Qt=Qt.baseVal)!=null&&(Qt=Qt.split(" "))!=null&&Qt.includes("prevent_toggle_in_checkbox")?(Gt.stopPropagation(),Gt.preventDefault(),_t(()=>{g({option:a,path:h,selectStatus:et})})):Ct(Gt)}},Xt=Gt=>{(0,oa.Fr)()||Ct(Gt)},Vt=(Gt,Qt)=>{(0,oa.Fr)()||(Gt.stopPropagation(),q(!1),_t(()=>{g({option:a,path:h,selectStatus:Qt})}))},Ut=()=>{v&&v({option:a,path:h})},{designExpanded:Yt}=a.data||{},ue=a.children.length>0,ie=E()("item",C,{isSelected:(a==null||(t=a.data)==null?void 0:t.selected)&&o&&!((a==null||(e=a.children)==null?void 0:e.length)>0),isExpanded:(a==null||(r=a.children)==null?void 0:r.length)>0&&(a==null||(i=a.data)==null?void 0:i.designExpanded),isChecked:u&&et===du.SELECT});return(0,m.jsxs)("li",{"data-cid":d==null?void 0:d.cid,"data-container-cid":d==null?void 0:d.cid,"data-link_cid":_,"data-panel_cid":s,className:ie,onTouchStart:kt,onTouchMove:Ot,onTouchEnd:Nt,onPointerDown:Xt,onMouseEnter:Ut,children:[u&&(0,m.jsx)(Vr.C,{isColorPure:!0,className:E()("checkbox_selected","prevent_toggle_in_checkbox",et),onClick:Gt=>Vt(Gt,et),name:"tree_node/checkbox_"+et}),(0,m.jsx)("span",{className:"name",style:{fontSize:l},children:a.data.name}),D&&c&&(0,m.jsx)(qa.LX,{interactionKey:D.key}),x&&(0,m.jsx)("div",{className:"gesture"}),ue&&(0,m.jsx)(Vr.C,{className:E()("expand",{ro:!Yt}),name:"design/dropMenu/dropDown"})]})},Dot=5,kot=n=>{const{x:t,y:e,optionData:r,optionColor:i,panelCid:a,widget:o,onToggle:s,handleCloseAllFirstLevel:l,handleCheckNode:u,mode:c}=n,d=(0,b.useRef)(null),h=(0,P.t0)(i.optionBgColor),f=(0,P.t0)(i.optionHoverBgColor),p=(0,P.t0)(i.optionSelectTextColor),g=(0,P.t0)(i.optionSelectedColor),v=(0,b.useCallback)(N=>{const et=N.target.closest("ul");et&&(et.clientHeight<et.scrollHeight||et.clientWidth<et.scrollWidth)&&N.stopPropagation()},[]);(0,b.useEffect)(()=>{const N=d.current;return N&&N.addEventListener("wheel",v,{passive:!1,capture:!0}),()=>{N&&N.removeEventListener("wheel",v,{capture:!0})}},[v]),(0,b.useEffect)(()=>{if(c==="preview"){const N=document.querySelector(".design-widget-portal-menu");N&&MB.runnerController.initMouseEventHandler(N)}},[]);const y=(0,b.useCallback)(N=>{d.current&&!d.current.contains(N.target)&&!n.parentElement.contains(N.target)&&(l&&l(),s(N,!1))},[l,s,n.parentElement]);let x=!1;const S=function(N,q){q===void 0&&(q="");const{multipleTexts:et,linkQueryArray:lt,isEdit:ft,fontSize:_t,text:Ct,isMultiple:kt,showLinkTag:Ot,onClick:Nt,onExpandItem:Xt}=n;return N.map((Vt,Ut)=>{const Yt=""+q+Ut;let ue=!0;return!kt&&Vt.data.selected&&(x?ue=!1:x=!0),(0,m.jsx)(Tot,{path:Yt,widget:o,isRenderSlected:ue,linkQueryArray:lt,isEdit:ft,option:Vt,panelCid:a,fontSize:_t,text:Ct,isMultiple:kt,multipleTexts:et,showLinkTag:Ot,onToggle:s,onClick:Nt,onExpandItem:Xt,handleCloseAllFirstLevel:l,handleCheckNode:u},Yt)})},_=function(N,q,et){return q===void 0&&(q=1),et===void 0&&(et=""),q>Dot?[]:N.flatMap((lt,ft)=>{const _t=""+et+ft;return lt.data.designExpanded&&lt.children?[(0,m.jsx)("ul",{className:E()("dropMenuWidgetContent",{panel:a,pstate:a,pcanvas:!a,"children-box":q>0}),"data-cid":sdkStore.locUpColdCanvasKey(o.cid),children:S(lt.children,_t+"-")},"ul-"+q+"-"+_t),..._(lt.children,q+1,_t+"-")]:[]})},D={left:t,top:e},C=sdkStore.locUpColdCanvasKey(o.cid);return(0,m.jsxs)(Mot,{className:"tree-node design-widget-portal-menu","data-cid":a,optionBgColor:h,optionHoverBgColor:f,optionSelectedColor:g,optionSelectTextColor:p,children:[(0,m.jsxs)("div",{className:"drop-box",style:D,ref:d,children:[(0,m.jsx)("ul",{className:E()("dropMenuWidgetContent",{panel:a,pstate:a,pcanvas:!a}),"data-cid":C,children:S(r)}),_(r)]}),(0,m.jsx)(mn.A,{target:document,onPointerDown:(0,mn.t)(y,{capture:!0})})]})},Ev=n=>{let{text:t,scale:e,onClick:r,onUpdate:i}=n;const a=wot(t),o=(0,b.useRef)(null),s=l=>{l.stopPropagation(),l.preventDefault(),r(t)};return(0,b.useEffect)(()=>{if(o.current){const l=o.current.getBoundingClientRect(),u={width:l.width,height:l.height};i&&i(t,u)}},[e]),(0,m.jsxs)(Cot,{ref:o,children:[(0,m.jsx)("span",{children:a}),(0,m.jsx)(Vr.C,{className:"close prevent_toggle_in_drop_menu",size:15,name:"art_board/dropdown_menu/close",isColorPure:!0,onClick:s})]})};class v5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"isClearExpandStatusInPreview",!1),(0,k.A)(this,"state",{text:this.props.widget.textV0.text,multipleTexts:[],formatMultipleTexts:[],renderMultipleItemRectMap:new Map,containerRect:{width:0,height:0},prevProps:{activeCid:this.props.activeCid,stateCid:this.props.stateCid,multipleTexts:"",formatMultipleTexts:"",text:""},isShowDropMenu:!1,x:0,y:0,panelCid:""}),(0,k.A)(this,"$portalElem",document.createElement("div")),(0,k.A)(this,"setElementRef",t=>this.element=t),(0,k.A)(this,"handleAppendPortal",()=>{const{portalParent:t}=this.props;t&&t.appendChild(this.$portalElem)}),(0,k.A)(this,"handleRemovePortal",()=>{const{portalParent:t}=this.props;t!=null&&t.contains(this.$portalElem)&&t.removeChild(this.$portalElem)}),(0,k.A)(this,"handleCalcPortalPosition",()=>{const{treeNode:t,isPreviewNoCanvas:e,getPanelInfo:r,widget:{h:i},scrollTop:a,scrollLeft:o,activeCid:s}=this.props,l=(0,Av.rX)({isPreviewNoCanvas:e,activePageKey:s,h:i,sdkStore:t.widgetStore.sdkStore,scrollTop:a,scrollLeft:o,treeNode:t,getPanelInfo:r});this.setState({x:l.x,y:l.y})}),(0,k.A)(this,"handleToggle",(t,e,r)=>{var i,a,o;if(t!=null&&(i=t.target)!=null&&(i=i.closest("svg"))!=null&&(i=i.className)!=null&&(i=i.baseVal)!=null&&(i=i.split(" "))!=null&&i.includes("prevent_toggle_in_drop_menu")){if((0,oa.Fr)()){var s;!((s=MB)==null||(s=s.runnerController)==null)&&s.toggleScrollBar&&MB.runnerController.toggleScrollBar(!1)}return}const{isEdit:l,runnerOptionData:u,onToggleWidgetMaskModal:c,onUpdate:d,widget:{dropMenu:{isMultiple:h,dropMenuEcho:f}}}=this.props;if(!l)return;const p=u?qn()(u):qn()(this.props.widget.optionData),g=p5()(e)?e:!this.state.isShowDropMenu;if(g)this.handleAppendPortal(),this.handleCalcPortalPosition(t),!h&&this.props.mode==="preview"&&lot({newOptionData:p,onUpdate:d}),!this.isClearExpandStatusInPreview&&h&&this.props.mode==="preview"&&(this.clearExpanded(p),this.isClearExpandStatusInPreview=!0);else if(!h){var v;f||this.setState({text:this.props.widget.textV0.text}),!(r!=null&&(v=r.children)!=null&&v.length)&&this.handleRemovePortal()}if(c&&c(g),!(h&&e===void 0)){if(r!=null&&(a=r.data)!=null&&a.designExpanded&&r!=null&&(o=r.children)!=null&&o.length){this.setState({isShowDropMenu:!0});return}this.setState({isShowDropMenu:g})}}),(0,k.A)(this,"handleHover",(t,e)=>{if(!(0,oa.Fr)()&&(t.stopPropagation(),t.preventDefault(),this.handleToggle(t,e),!e&&this.props.mode!=="preview")){const{runnerOptionData:r}=this.props,i=r?qn()(r):qn()(this.props.widget.optionData);this.clearExpanded(i)}}),(0,k.A)(this,"handleItemClick",(t,e,r,i)=>{var a;const{widget:{dropMenu:{dropMenuEcho:o,isMultiple:s}},runnerOptionData:l,onUpdate:u,onExpandItem:c}=this.props;if(s&&t!=null&&(a=t.target)!=null&&(a=a.closest("svg"))!=null&&(a=a.className)!=null&&(a=a.baseVal)!=null&&(a=a.split(" "))!=null&&a.includes("prevent_toggle_in_checkbox"))return;o||this.setState({isShowDropMenu:!1});const d=l?qn()(l):qn()(this.props.widget.optionData);if((0,oa.Fr)())if(s){var v;if((e==null||(v=e.children)==null?void 0:v.length)<1){const y=Qh(e.data.name,r);this.state.multipleTexts.includes(y)?(this.setState({multipleTexts:this.state.multipleTexts.filter(x=>x!==y)}),a1({option:e,isSelected:!1,checked:!1,path:r,newOptionData:d,isMultiple:s,onUpdate:u})):(this.setState({multipleTexts:[...this.state.multipleTexts,y]}),a1({option:e,isSelected:!0,checked:!0,path:r,newOptionData:d,isMultiple:s,onUpdate:u}))}else c({option:e,path:r,designExpanded:!0})}else{var g;(e==null||(g=e.children)==null?void 0:g.length)>=1?(this.setState({isShowDropMenu:!0}),c({option:e,path:r,designExpanded:!0})):(this.setState({text:e.data.name,isShowDropMenu:!1}),this.props.mode!=="preview"&&Jh({newOptionData:d}),a1({option:e,isSelected:!0,path:r,newOptionData:d,isMultiple:s,onUpdate:u}))}else if(s){var p;if((e==null||(p=e.children)==null?void 0:p.length)<1){const y=Qh(e.data.name,r);this.state.multipleTexts.includes(y)?(this.setState({multipleTexts:this.state.multipleTexts.filter(x=>x!==y)}),i1({option:e,isSelected:!1,checked:!1,path:r,newOptionData:d,isMultiple:s,onUpdate:u})):(this.setState({multipleTexts:[...this.state.multipleTexts,y]}),i1({option:e,isSelected:!0,checked:!0,path:r,newOptionData:d,isMultiple:s,onUpdate:u}))}}else{var h,f;e!=null&&(h=e.data)!=null&&h.designExpanded&&e!=null&&(f=e.children)!=null&&f.length?this.setState({isShowDropMenu:!0}):(this.setState({text:e.data.name,isShowDropMenu:!1}),this.props.mode!=="preview"&&Jh({newOptionData:d}),i1({option:e,isSelected:!0,path:r,newOptionData:d,isMultiple:s,onUpdate:u}))}}),(0,k.A)(this,"clearExpanded",t=>{const{onUpdate:e}=this.props;Jh({newOptionData:t}),e(t)}),(0,k.A)(this,"handleRemoveMultipleItem",t=>{const{isEdit:e,runnerOptionData:r,onUpdate:i}=this.props;if(!e)return;this.setState({multipleTexts:this.state.multipleTexts.filter(o=>o!==t)});const a=r?qn()(r):qn()(this.props.widget.optionData);cot({newOptionData:a,text:t,onUpdate:i})}),(0,k.A)(this,"handleUpdateMultipleItemRectMap",(t,e)=>{this.setState(r=>{const i=new Map(r.renderMultipleItemRectMap);return i.set(t,e),{renderMultipleItemRectMap:i}})}),(0,k.A)(this,"handleRemoveAllMultipleItem",t=>{const{isEdit:e,runnerOptionData:r,onUpdate:i}=this.props;if(!e||t.length<1)return;this.setState({multipleTexts:this.state.multipleTexts.filter(o=>!t.includes(o))});const a=r?qn()(r):qn()(this.props.widget.optionData);dot({newOptionData:a,texts:t,onUpdate:i})})}static getDerivedStateFromProps(t,e){var r,i;let{prevProps:a}=e;const o={prevProps:{...a}};let s=!1;(a.activeCid!==t.activeCid||a.stateCid!==t.stateCid)&&(s=!0,o.isShowDropMenu=!1,o.prevProps.activeCid=t.activeCid,o.prevProps.stateCid=t.stateCid);const{defaultText:l,multipleTexts:u,formatMultipleTexts:c}=Iv(t.runnerOptionData||t.widget.optionData,(r=t.widget)==null?void 0:r.dropMenu.isMultiple);if((i=t.widget)!=null&&i.dropMenu.isMultiple)u.join(",")!==a.multipleTexts&&(s=!0,o.multipleTexts=u,o.prevProps.multipleTexts=u.join(",")),c.join(",")!==a.formatMultipleTexts&&(s=!0,o.formatMultipleTexts=c,o.prevProps.formatMultipleTexts=c.join(","));else{var d;const h=(d=t.widget)!=null&&d.dropMenu.dropMenuEcho&&l||t.widget.textV0.text;h!==a.text&&(s=!0,o.text=h,o.prevProps.text=h)}return s?o:null}componentDidMount(){var t,e;const r={width:((t=this.element)==null?void 0:t.offsetWidth)||0,height:((e=this.element)==null?void 0:e.offsetHeight)||0};this.setState({containerRect:r})}componentDidUpdate(t,e,r){var i,a,o,s;if(t.isEdit!==this.props.isEdit&&!this.props.isEdit){var l;const{defaultText:c,multipleTexts:d,formatMultipleTexts:h}=Iv(this.props.runnerOptionData||this.props.widget.optionData);this.setState({text:(l=this.props.widget)!=null&&l.dropMenu.dropMenuEcho?c||this.props.widget.textV0.text:this.props.widget.textV0.text,multipleTexts:d,formatMultipleTexts:h})}if(this.props.mode!=="preview"&&this.state.isShowDropMenu&&e.isShowDropMenu!==this.state.isShowDropMenu){const{runnerOptionData:c}=this.props,d=c?qn()(c):qn()(this.props.widget.optionData);this.clearExpanded(d)}const u={width:((i=this.element)==null?void 0:i.offsetWidth)||0,height:((a=this.element)==null?void 0:a.offsetHeight)||0};(u.width!==((o=e.containerRect)==null?void 0:o.width)||u.height!==((s=e.containerRect)==null?void 0:s.height))&&this.setState({containerRect:u})}render(){const{isShowDropMenu:t,x:e,y:r,panelCid:i,text:a}=this.state,{widget:o,treeNode:s,runnerOptionData:l,isEdit:u,showLinkTag:c,onExpandItem:d,handleCloseAllFirstLevel:h,handleCheckNode:f,mode:p}=this.props,{w:g,h:v,textV0:y,dropMenu:x,optionData:S}=o,_=l||S,{fontSize:D,verticalAlign:C,horizontalAlign:N,text:q}=y,{dropMenuEcho:et,mutualWay:lt,isMultiple:ft}=x,Ct={...{width:g,height:v},cursor:u?"pointer":""},kt=s?(0,ri.DS)(s.widgetStore.sdkStore,s.key,s.runningIsEditingCombo,s.editingBDanliKey):[],Ot=c5(this.state.containerRect,this.state.formatMultipleTexts,this.state.renderMultipleItemRectMap,this.props.scale),Nt=this.state.formatMultipleTexts.length-Ot.length;return(0,m.jsxs)(g5,{ref:this.setElementRef,style:Ct,onMouseEnter:lt==="hover"?Xt=>this.handleHover(Xt,!0):void 0,onMouseLeave:lt==="hover"?Xt=>this.handleHover(Xt,!1):void 0,children:[(0,m.jsxs)("header",{style:{alignItems:C},className:E()("dropMenuHeader canClickableHighWidget",{isShowDropMenu:t}),onPointerDown:lt==="click"?Xt=>this.handleToggle(Xt,null):void 0,children:[(0,m.jsx)("div",{className:"text "+(ft?"multiple-text":""),style:{justifyContent:N},children:(0,m.jsxs)(m.Fragment,{children:[ft?this.state.formatMultipleTexts.length===0?q:Ot.map(Xt=>(0,m.jsx)(Ev,{text:Xt,scale:this.props.scale,onClick:this.handleRemoveMultipleItem,onUpdate:this.handleUpdateMultipleItemRectMap},Xt)):u?et?a:q:a,ft&&Nt>0&&this.state.multipleTexts.length!==0&&this.state.renderMultipleItemRectMap.size!==0&&(0,m.jsx)(Ev,{text:Nt<10?"+"+Nt+"...":Nt<100?"+"+Nt+"..":"+"+Nt,onClick:()=>this.handleRemoveAllMultipleItem(this.state.formatMultipleTexts.slice(-Nt))})]})}),(0,m.jsx)(Vr.C,{className:"header-dropmenu",name:"design/dropMenu/dropDown"})]}),t&&u&&(0,f5.createPortal)((0,m.jsx)(m.Fragment,{children:(0,m.jsx)(kot,{mode:p,widget:o,x:e,y:r,width:g,isEdit:u,isShowDropMenu:t,optionData:_,optionColor:o.optionColor,linkQueryArray:kt,parentElement:this.element,panelCid:i,fontSize:D,text:this.state.text,isMultiple:ft,showLinkTag:c,onClick:this.handleItemClick,onToggle:this.handleToggle,onExpandItem:d,handleCloseAllFirstLevel:h,handleCheckNode:f})}),this.$portalElem)]})}}const Pot=(n,t)=>{var e;const r=(e=sdkStore.getHotItem(n))==null?void 0:e.hotAttr;if(!r)return 100;const{isMobile:i}=t;if(i){const a=window.innerWidth;return Math.round(a/r.w*100)}return 100},Aot=(0,b.memo)(n=>{let{widget:t,treeData:e,runnerOptionData:r,mode:i,activeCid:a,stateCid:o,scrollTop:s,scrollLeft:l,isPreviewNoCanvas:u,scale:c,previewOptions:d,isWithinHeader:h,isWithinFooter:f}=n;const p=(0,J.wA)(),g=()=>document.querySelector(".preview-modal-portal-root #simulator")||document.querySelector("#simulator"),v=C=>{const{widget:{key:N,optionData:q}}=e;p({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:N,status:C,defaultStatus:q}})},y=()=>{var C;return(0,Av.GS)({sdkStore:(C=e.widgetStore)==null?void 0:C.sdkStore,key:t.key,isWithinHeader:h,isWithinFooter:f})},x=C=>{MB.runnerController.toggleScrollBar(!C)},S=C=>{let{option:N,path:q}=C;const et=r||t.optionData,lt=qn()(et);r1({option:N,path:q,newOptionData:lt,onUpdate:v})},_=C=>{let{option:N,path:q,selectStatus:et}=C;const lt=r||t.optionData,ft=qn()(lt);l5({newOptionData:ft,option:N,path:q,selectStatus:et}),v(ft)},D=Pot(o,d);return(0,m.jsx)(v5,{widget:t,isEdit:!0,mode:i,portalParent:g(),treeNode:e,runnerOptionData:r,activeCid:a,stateCid:o,scrollTop:s,scrollLeft:l,isPreviewNoCanvas:u,scale:(0,oa.Fr)()?D:c,getPanelInfo:y,onToggleWidgetMaskModal:x,handleCloseAllFirstLevel:()=>{},onExpandItem:S,handleCheckNode:_,onUpdate:v})}),Iot=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t,{activePageKey:a,activeCanvasKey:o,screenScrollTopMap:s,screenScrollLeftMap:l,overlayStack:u}=(0,pt.mf)(n),c=u[u.length-1],d=c?c.overlayRelativePosY:s[o],h=c?c.overlayRelativePosX:l[o],f=(0,pt.ub)(n),p=(0,pt.hM)(n),g=f||p,v=(0,pt.X_)(n),y=(0,pt.bF)(n);return{runnerOptionData:(e=r[i])==null?void 0:e.status,activeCid:a,stateCid:o,scrollTop:d,scrollLeft:h,isPreviewNoCanvas:g,scale:v,previewOptions:y}},Eot=(0,J.Ng)(Iot)(Aot);var m5=w(12592);class Lot extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getDropMenuHeaderHTMLContent",()=>{if(typeof document>"u"||typeof window>"u")return{width:0,height:0};try{var t;const e=m5.renderToString((0,m.jsx)(y5,{widget:this.props.widget,treeData:this.props.treeNode,otherProps:this.props})),r=h5();if(!r)return{width:0,height:0};const i=document.createElement("div");i.innerHTML=e,r.appendChild(i);const a=((t=i.querySelector(".wDropMenu"))==null?void 0:t.getBoundingClientRect())||{width:0,height:0};return r.removeChild(i),{width:a.width,height:a.height}}catch(e){return console.error("Error in getDropMenuHeaderHTMLContent:",e),{width:0,height:0}}}),(0,k.A)(this,"getMultipleItemContent",()=>{if(typeof document>"u"||typeof window>"u")return new Map;try{var t,e;const{formatMultipleTexts:r}=Iv(this.props.widget.optionData,(t=this.props.widget)==null?void 0:t.dropMenu.isMultiple),i=m5.renderToString((0,m.jsx)(y5,{snapShotFormatMultipleTexts:r,widget:this.props.widget,treeData:this.props.treeNode,otherProps:this.props})),a=h5();if(!a)return new Map;const o=document.createElement("div");o.innerHTML=i,a.appendChild(o);const s=((e=o.querySelector(".multiple-text"))==null?void 0:e.querySelectorAll("div"))||[],l=new Map;return s.forEach((u,c)=>{if(c>=r.length)return;const d=u.getBoundingClientRect();l.set(r[c],{width:d.width,height:d.height})}),a.removeChild(o),l}catch(r){return console.error("Error in getMultipleItemContent:",r),new Map}})}render(){const t=this.getDropMenuHeaderHTMLContent(),e=this.getMultipleItemContent();return(0,m.jsx)(x5,{snapshotContainerRect:t,snapshotRenderMultipleItemRectMap:e,snapshotScale:100,...this.props})}}const y5=n=>{let{widget:t,treeData:e,snapShotFormatMultipleTexts:r=[],otherProps:i}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:"snapshot",style:{...o5(t)},children:(0,m.jsx)(x5,{snapShotFormatMultipleTexts:r,...i})})};class x5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{text:this.props.widget.textV0.text,multipleTexts:[],formatMultipleTexts:[],renderMultipleItemRectMap:new Map,containerRect:{width:0,height:0},prevProps:{activeCid:this.props.activeCid,stateCid:this.props.stateCid,multipleTexts:"",formatMultipleTexts:"",text:""},isShowDropMenu:!1,x:0,y:0,panelCid:""}),(0,k.A)(this,"$portalElem",document.createElement("div")),(0,k.A)(this,"setElementRef",t=>this.element=t)}static getDerivedStateFromProps(t,e){var r,i;let{prevProps:a}=e;const o={prevProps:{...a}};let s=!1;(a.activeCid!==t.activeCid||a.stateCid!==t.stateCid)&&(s=!0,o.isShowDropMenu=!1,o.prevProps.activeCid=t.activeCid,o.prevProps.stateCid=t.stateCid);const{defaultText:l,multipleTexts:u,formatMultipleTexts:c}=Iv(t.runnerOptionData||t.widget.optionData,(r=t.widget)==null?void 0:r.dropMenu.isMultiple);if((i=t.widget)!=null&&i.dropMenu.isMultiple)u.join(",")!==a.multipleTexts&&(s=!0,o.multipleTexts=u,o.prevProps.multipleTexts=u.join(",")),c.join(",")!==a.formatMultipleTexts&&(s=!0,o.formatMultipleTexts=c,o.prevProps.formatMultipleTexts=c.join(","));else{var d;const h=(d=t.widget)!=null&&d.dropMenu.dropMenuEcho&&l||t.widget.textV0.text;h!==a.text&&(s=!0,o.text=h,o.prevProps.text=h)}return s?o:null}componentDidMount(){var t,e;const r={width:((t=this.element)==null?void 0:t.offsetWidth)||0,height:((e=this.element)==null?void 0:e.offsetHeight)||0};this.setState({containerRect:r})}render(){const{isShowDropMenu:t,text:e}=this.state,{widget:r,isEdit:i,snapshotContainerRect:a,snapshotRenderMultipleItemRectMap:o,snapshotScale:s,snapShotFormatMultipleTexts:l=[]}=this.props,{w:u,h:c,textV0:d,dropMenu:h}=r,{verticalAlign:f,horizontalAlign:p,text:g}=d,{dropMenuEcho:v,isMultiple:y}=h,x={width:u,height:c,cursor:i?"pointer":""},S=c5(a||this.state.containerRect,this.state.formatMultipleTexts,o||this.state.renderMultipleItemRectMap,s||100),_=this.state.formatMultipleTexts.length-S.length;return(0,m.jsx)(g5,{ref:this.setElementRef,style:x,children:(0,m.jsxs)("header",{style:{alignItems:f},className:E()("dropMenuHeader canClickableHighWidget",{isShowDropMenu:t}),children:[(0,m.jsx)("div",{className:"text "+(y?"multiple-text":""),style:{justifyContent:p},children:(0,m.jsxs)(m.Fragment,{children:[y?this.state.formatMultipleTexts.length===0?g:(l.length>0?l:S).map(D=>(0,m.jsx)(Ev,{className:"temp-multiple-item",text:D,scale:this.props.scale,onClick:()=>{},onUpdate:()=>{}},D)):i?v?e:g:e,y&&_>0&&this.state.multipleTexts.length!==0&&((o==null?void 0:o.size)!==0||this.state.renderMultipleItemRectMap.size!==0)&&(0,m.jsx)(Ev,{text:_<10?"+"+_+"...":_<100?"+"+_+"..":"+"+_,onClick:()=>{}})]})}),(0,m.jsx)(Vr.C,{className:"header-dropmenu",name:"design/dropMenu/dropDown"})]})})}}var l1=w(47143);const Oot=n=>({scale:(0,l1.X_)(n)}),Rot=(0,J.Ng)(Oot)(n=>{var t;let{widget:e,isEdit:r,mode:i,treeNode:a,showLinkTag:o,scale:s,...l}=n;const u=()=>i==="design"?document.querySelector("#canvas"):null,c=v=>{MB.action("entry:widget:change",{flatChgList:[{key:e.key,hotAttr:{optionData:v}}]})},d=e==null||(t=e.dropMenu)==null?void 0:t.isMultiple,h=(0,b.useRef)();(0,b.useEffect)(()=>{if(h.current===!0&&d===!1){const v=e.optionData,y=qn()(v);let x=!1;(0,zr.sV)(y,S=>{S.data.selected===!0&&(x?S.data.selected=!1:x=!0)}),c(y)}return h.current=d,()=>{}},[d]);const f=()=>{const v=e.optionData,y=qn()(v);Jh({newOptionData:y}),c(y)},p=v=>{let{option:y,path:x}=v;const S=e.optionData,_=qn()(S);r1({option:y,path:x,newOptionData:_,onUpdate:c})},g=v=>{let{option:y,path:x,selectStatus:S}=v;const _=e.optionData,D=qn()(_);l5({newOptionData:D,option:y,path:x,selectStatus:S}),c(D)};return(0,m.jsx)(v5,{widget:e,isEdit:r,mode:i,portalParent:u(),treeNode:a,showLinkTag:o,handleCloseAllFirstLevel:f,onExpandItem:p,handleCheckNode:g,onUpdate:c,scale:s,...l})}),u1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isWithinHeader:a,isWithinFooter:o,isSupMkt:s=!1}=n;const l=()=>{if(r==="design")return(0,m.jsx)(Rot,{widget:t,isEdit:i,mode:r,treeNode:e,showLinkTag:!0});if(r==="snapshot")return(0,m.jsx)(Lot,{widget:t,isEdit:!0,mode:r,treeNode:e,showLinkTag:!1});if(r==="preview")return(0,m.jsx)(Eot,{widget:t,treeData:e,mode:"preview",isWithinHeader:a,isWithinFooter:o})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:s,style:{...o5(t)},children:l()})});class Not extends M.n{renderWidgetContent(t){const e=t.editingEditableWidgetCid===this.widget.key;return(0,m.jsx)(u1,{widget:this.widget,treeData:this,mode:"design",isEditing:e,isSupMkt:t.isSupMkt})}}class Bot extends W.f{renderWidgetContent(t){const{isWithinHeader:e,isWithinFooter:r}=t;return(0,m.jsx)(u1,{widget:this.widget,treeData:this,mode:"preview",isWithinHeader:e,isWithinFooter:r,isSupMkt:t.isSupMkt})}}class Vot extends st.j{renderWidgetContent(t){return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(u1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})})}}const Wot=[Not,Bot,Vot];var Da=w(96708),c1=w(59742);class S5 extends b.PureComponent{componentDidMount(){if(this.props.isPreview){const t=document.querySelector(".preview-content-container .design-widget-portal-menu");t&&MB.runnerController.initMouseEventHandler(t)}}render(){const{navigationMenuKey:t,expandBackground:e,firstLevel:r,onMouseEnterExpand:i,path:a,node:o,level:s,isShowIcon:l,canExpandOneMenu:u,isEdit:c,onExpandItem:d,onSelectedItem:h,onUpdate:f,onRemoveFirstOptionPortal:p,canEditText:g,navigationMenuType:v,portalParent:y,isCreatePortalList:x,treeNode:S,panelCid:_,showLinkTag:D,isPreviewNoCanvas:C,renderMode:N,onlyView:q,navigationMenu:et,optionDataSelected:lt,optionDataDesignUnExpanded:ft,isPreview:_t}=this.props,Ct={backgroundColor:v===Da.ue.navigationMenu&&s>1?"transparent":e};return(0,m.jsx)("div",{className:E()("childrenListWrap",{firstLevel:r}),style:Ct,onMouseEnter:(0,oa.Fr)()?void 0:()=>i(!0),onMouseLeave:(0,oa.Fr)()?void 0:()=>i(!1),onPointerDown:v!==Da.ue.navigationMenu?p:void 0,children:(0,m.jsx)("ul",{className:E()("childrenList",{pcanvas:x}),children:o.children.map((kt,Ot)=>(0,m.jsx)(C5,{navigationMenuKey:t,path:a+"-"+Ot,node:kt,parent:o,level:s+1,isShowIcon:l,canExpandOneMenu:u,isEdit:c,onSelectedItem:h,onExpandItem:d,onUpdate:f,canEditText:g,navigationMenuType:v,portalParent:y,treeNode:S,panelCid:_,showLinkTag:D,isPreviewNoCanvas:C,renderMode:N,onlyView:q,navigationMenu:et,optionDataSelected:lt,optionDataDesignUnExpanded:ft,isPreview:_t},a+"-"+Ot))})})}}const w5=R.Ay.div.withConfig({displayName:"styles__StyledNavigationMenu",componentId:"sc-k7ggi-0"})(["ul.navigationMenuList{width:100%;height:100%;list-style:none;overflow-x:hidden;overflow-y:auto;}li.menuItem{list-style:none;margin-bottom:4px;margin-top:4px;&.renderMode2{margin:0;}.content{display:flex;justify-content:space-between;align-items:center;position:relative;width:100%;min-width:24px;.svg-icon.expand{transform:rotate(180deg);margin-left:8px;min-width:1em;margin-right:16px;&.ro{transform:rotate(0deg);}}.leftContent{display:flex;align-items:center;overflow:hidden;flex:1;.editable-span-wrap{flex:1;}.icon-wrap{display:flex;width:1em;min-width:1em;height:1em;margin-right:9px;svg{width:100%;height:100%;}}.editable-span-wrap .editable-span{white-space:pre;}}.selectedRight{position:absolute;right:0;width:3px;height:100%;}}}"]),_5=(0,R.Ay)(w5).withConfig({displayName:"styles__StyledNavigationMenuV",componentId:"sc-k7ggi-1"})(["position:absolute;ul.navigationMenuList{position:absolute;}li.menuItem{position:relative;.content{padding-left:16px !important;.selectedRight{display:none;}.svg-icon.expand{transform:rotate(-90deg);&.ro{transform:rotate(-90deg);}}}}.childrenListWrap{position:absolute;top:0;right:-4px;transform:translateX(100%);box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;z-index:",';min-width:160px;max-width:280px;&::before{position:absolute;top:0;right:0;bottom:0;left:-7px;z-index:99999999;width:10px;height:100%;opacity:.0001;content:" ";display:table;}ul.childrenList{width:100%;height:100%;}}'],n=>n.zIndex),Fot=(0,R.Ay)(_5).withConfig({displayName:"styles__StyledNavigationMenuH",componentId:"sc-k7ggi-2"})(["border-right:none !important;width:100%;height:100%;ul.navigationMenuList{overflow:hidden;display:flex;align-items:center;justify-content:",";}li.menuItem{height:100%;display:flex;align-items:center;.content{min-width:unset;&.firstLevel{height:100% !important;padding:0 20px;.selectedRight{display:inline-block;background-color:#1684fc;bottom:0;width:100%;height:3px;left:0;}.expand.svg-icon{display:none;}}}}.childrenListWrap{&.firstLevel{top:4px;right:auto;left:0;transform:translateX(0);&::before{top:-7px;width:100%;height:10px;}}}"],n=>n.align);class b5 extends b.PureComponent{render(){const{navigationMenuType:t,children:e,style:r,className:i,align:a}=this.props;return t===1?(0,m.jsx)(_5,{className:i,style:r,zIndex:O.Q.STICKY_Z,children:e}):t===2?(0,m.jsx)(Fot,{className:i,style:r,zIndex:O.Q.STICKY_Z,align:a,children:e}):(0,m.jsx)(w5,{className:i,style:r,children:e})}}var d1=w(70226);class Lv extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{isEditing:!1}),(0,k.A)(this,"setInputEditRef",t=>this.$editInput=t),(0,k.A)(this,"handleToggleIsEditText",t=>{const{canEditText:e,hiKey:r}=this.props;e&&(0,d1.RC)(r)&&this.setState({isEditing:p5()(t)?t:!this.state.isEditing},()=>{this.$editInput&&this.$editInput.select()})}),(0,k.A)(this,"handleBlurInput",t=>{const{key:e}=t;e===an._.Enter&&this.handleToggleIsEditText(!1)}),(0,k.A)(this,"handleFocus",t=>{t.preventDefault(),t.stopPropagation(),t.target.select(),t.target.scrollLeft=0}),(0,k.A)(this,"handleStopPropagation",t=>{const{canEditText:e}=this.props;e&&t.stopPropagation()})}render(){const{value:t,onChangeValue:e,inputStyle:r,canEditText:i}=this.props,{isEditing:a}=this.state;return(0,m.jsxs)(jot,{className:E()("editable-span-wrap",{"is-editing":a&&i}),children:[(0,m.jsx)("span",{className:E()("editable-span",{"can-edit":i}),onDoubleClick:()=>this.handleToggleIsEditText(!0),onPointerDown:this.handleStopPropagation,onMouseEnter:this.handleStopPropagation,children:t}),(0,m.jsx)("input",{style:r,className:"editable-input",onChange:e,onBlur:()=>this.handleToggleIsEditText(!1),value:t,ref:this.setInputEditRef,onPointerDown:o=>o.stopPropagation(),onKeyDown:this.handleBlurInput,onFocus:this.handleFocus})]})}}const jot=R.Ay.div.withConfig({displayName:"AdvancedEditableSpan__StyledEditableSpan",componentId:"sc-1ezclo0-0"})(["&.editable-span-wrap{position:relative;display:flex;overflow:hidden;line-height:1.4;&.is-editing{.editable-input{border:1px dashed #1684FC;display:inline-block;}.editable-span{visibility:hidden;}}.editable-span{border:1px solid transparent;white-space:nowrap;cursor:pointer;&.can-edit{&:hover{border:1px dashed #1684FC;}}}.editable-input{position:absolute;left:0;width:100%;height:100%;display:none;pointer-events:auto;border:1px solid transparent;}}"]);var h1=w(56812),Hr=w(51944);class C5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"$portalElem",document.createElement("div")),(0,k.A)(this,"createItemLiRef",t=>this.$itemLi=t),(0,k.A)(this,"preventTimer",null),(0,k.A)(this,"state",{isShowPortal:!1,x:0,y:0,hoverOptionCid:"",prevProps:{activeCid:this.props.activeCid,stateCid:this.props.stateCid}}),(0,k.A)(this,"findChildrenSelected",t=>{const{node:{children:e},treeNode:{widget:r},optionDataSelected:i}=this.props;return(t||e).find(o=>o.children.length>0?this.findChildrenSelected(o.children):(0,Hr.lt)({optionData:o,optionDataSelected:i,widgetVersion:r["!version"]}))}),(0,k.A)(this,"handleUpdateHoverOptionCid",t=>this.setState({hoverOptionCid:t})),(0,k.A)(this,"handleRemoveFirstOptionPortal",()=>{this.handleUpdateHoverOptionCid(""),this.handleRemovePortal()}),(0,k.A)(this,"handleClickExpand",async t=>{if(this.props.onlyView)return;this.preventTimer&&clearTimeout(this.preventTimer),MB.runnerController&&MB.runnerController.setIsPreventEvent(!1),t.preventDefault();const{onExpandItem:e,onSelectedItem:r,path:i,node:a,level:o,navigationMenuType:s}=this.props;if(!a.children.length){const l=(0,ri.DS)(this.props.treeNode.widgetStore.sdkStore,this.props.treeNode.key,this.props.treeNode.runningIsEditingCombo,this.props.treeNode.editingBDanliKey),{firstInteractiveIta:u}=(0,Pa.HW)(l,a.data.linkCids);u&&s!==Da.ue.navigationMenu&&o!==1&&(MB.runnerController&&MB.runnerController.prepareJump(t,["tap","click","moveIn"]),this.handleRemovePortal()),await r({node:a,path:i}),this.handleRemoveFirstOptionPortal();return}s===Da.ue.navigationMenu&&(MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),e({node:a,path:i}),this.preventTimer=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400))}),(0,k.A)(this,"handleCalcPortalPosition",()=>{var t;const{treeNode:e,treeNode:{widget:{height:r}},scrollTop:i,scrollLeft:a,getPanelInfo:o,isPreviewNoCanvas:s,activeCid:l}=this.props,u=(0,Av.rX)({isPreviewNoCanvas:s,activePageKey:l,getPanelInfo:o,scrollTop:i,scrollLeft:a,sdkStore:(t=e.widgetStore)==null?void 0:t.sdkStore,treeNode:e,fixedOnBottomDiffY:-r});this.setState({x:u.x,y:u.y})}),(0,k.A)(this,"handleAppendPortal",()=>{const{portalParent:t}=this.props;t.appendChild(this.$portalElem),this.setState({isShowPortal:!0})}),(0,k.A)(this,"handleRemovePortal",()=>{const{portalParent:t}=this.props;t.contains(this.$portalElem)&&(t.removeChild(this.$portalElem),this.setState({isShowPortal:!1}))}),(0,k.A)(this,"handleMouseEnterExpand",t=>{const{onlyView:e,navigationMenuType:r,node:i}=this.props;e||r===Da.ue.navigationMenu||!i.children.length||(t?(this.handleUpdateHoverOptionCid(i.data.cid),this.handleAppendPortal(),this.handleCalcPortalPosition()):(this.handleUpdateHoverOptionCid(""),this.handleRemovePortal()))}),(0,k.A)(this,"handleChangeName",t=>{t.stopPropagation();const{node:e,onUpdate:r,parent:i,path:a}=this.props,o={...e.data,name:t.target.value};r({data:o,path:a,parent:i})}),(0,k.A)(this,"handleClickOutSide",t=>{this.$portalElem.contains(t.target)||this.setState({isShowPortal:!1})}),(0,k.A)(this,"getOtherStyle",()=>{const{navigationMenu:t,level:e,node:r,treeNode:{widget:i},optionDataSelected:a}=this.props,{isMenuBackgroundVisible:o,menuBackground:s,navigationMenuType:l,menuHeight:u,isSubMenuBackground:c,subMenuBackground:d,activeMenuItemBackground:h,subMenuHeight:f,isActiveMenuItemBackgroundVisible:p,menuText:g,subMenuText:v,activeMenuText:y}=t||{},x=(0,Hr.lt)({optionData:r,optionDataSelected:a,widgetVersion:i["!version"]}),S=e===1,_=S?g==null?void 0:g.textV0:v==null?void 0:v.textV0,D=(0,P.t0)(y.textV0.textColor),C=c?(0,P.t0)(d):"transparent",N=p?(0,P.t0)(h):"transparent",q=o?(0,P.t0)(s):"transparent",et={...(0,K.Zv)(_),height:u+"px"},lt={...(0,K.Zv)(_),color:D,height:S?u+"px":f+"px",backgroundColor:S?l===Da.ue.navigationMenuH?N:q:"transparent"},ft={...(0,K.Zv)(y==null?void 0:y.textV0),height:S?u+"px":f+"px",backgroundColor:N||C},_t={...(0,K.Zv)(_),height:f+"px",backgroundColor:C},Ct=!!this.findChildrenSelected(null),kt=x?ft:Ct?lt:S?et:_t;return{paddingLeft:16+(e-1)*24+"px",...kt}})}componentDidMount(){const{parent:t,treeNode:e,optionDataSelected:r,onSelectedItem:i}=this.props;(0,c1.OO)(e.key)&&e.widget["!version"]===2&&t&&t.children.length>0&&r!=null&&r.includes(t.data.cid)&&setTimeout(()=>{typeof i=="function"&&i({node:t.children[0]})},16)}static getDerivedStateFromProps(t,e){let{prevProps:r}=e;return r.activeCid!==t.activeCid||r.stateCid!==t.stateCid?{isShowPortal:!1,prevProps:{activeCid:t.activeCid,stateCid:t.stateCid}}:null}render(){const{navigationMenuKey:t,canEditText:e,node:r,node:{children:i,data:{cid:a,name:o,icon:s,linkCids:l}},level:u,navigationMenu:c,path:d,treeNode:h,panelCid:f,showLinkTag:p,renderMode:g,navVerScrollTop:v,showScrollBar:y,optionDataSelected:x,optionDataDesignUnExpanded:S}=this.props,{navigationMenuType:_,isShowIcon:D,isSubMenuBackground:C,subMenuBackground:N,activeMenuItemTextColor:q}=c||{},{isShowPortal:et,hoverOptionCid:lt}=this.state,ft=(0,ri.DS)(h.widgetStore.sdkStore,h.key,h.runningIsEditingCombo,h.editingBDanliKey),_t=i.length>0,Ct=u===1,kt=h.widget["!version"],Ot=(0,Hr.XZ)({optionData:r,optionDataDesignUnExpanded:S,widgetVersion:kt}),Nt=(0,Hr.lt)({optionData:r,optionDataSelected:x,widgetVersion:kt}),Xt=_===Da.ue.navigationMenu?Ot&&_t:lt===r.data.cid,Vt=s&&D&&Ct,Ut=(0,P.t0)(q),Yt=C?(0,P.t0)(N):"transparent",ue=this.getOtherStyle(),{height:ie,paddingLeft:Gt,...Qt}=ue,me={backgroundColor:Ut},{hasInteractiveIta:De,interactiveCids:Pe,firstUiInteractiveIta:Ce,hasUiInteractiveIta:Ee,itaClassName:Ve}=(0,Pa.HW)(ft,l),Te=p&&!_t&&Ee,Be=!!this.findChildrenSelected(null),tn=_===Da.ue.navigationMenuH&&Be||Nt,Je=_!==Da.ue.navigationMenu&&Ct;let An={};if(Je&&et){var En,Cr;const{x:Mr,y:ir}=this.state;An={position:"absolute",top:_===Da.ue.navigationMenuH?ir+h.widget.h+"px":ir+(((En=this.$itemLi)==null?void 0:En.offsetTop)||0)-(v||0)+"px",left:_===Da.ue.navigationMenuH?Mr+((Cr=this.$itemLi)==null?void 0:Cr.offsetLeft)+"px":h.widget.w+Mr-(y?5:0)+"px"}}return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("li",{className:E()("menuItem canClickableHighWidget",{selected:Nt,renderMode2:g===2}),ref:this.createItemLiRef,children:[(0,m.jsxs)("div",{className:E()("content",Ve,{firstLevel:Ct}),style:ue,onPointerDown:(0,oa.Fr)()&&_!==Da.ue.navigationMenu&&_t?()=>this.handleMouseEnterExpand(!0):this.handleClickExpand,onMouseEnter:(0,oa.Fr)()?void 0:()=>this.handleMouseEnterExpand(!0),onMouseLeave:(0,oa.Fr)()?void 0:()=>this.handleMouseEnterExpand(!1),"data-container-cid":t,"data-link_cid":_t?"":Pe,"data-panel_cid":f,children:[(0,m.jsxs)("div",{className:"leftContent",children:[Vt&&(0,m.jsx)("span",{className:"icon-wrap",children:(0,m.jsx)(h1.F,{cid:a,className:"svg-icon fill",path:s.path,viewBox:s.viewBox})}),(0,m.jsx)(Lv,{hiKey:t,canEditText:e,value:o,onChangeValue:this.handleChangeName,inputStyle:Qt})]}),_t&&(0,m.jsx)(Vr.C,{className:E()("expand",{ro:!Ot}),name:"angle_up"}),!!tn&&(0,m.jsx)("div",{className:"selectedRight",style:me}),Te&&Ce&&(0,m.jsx)(qa.LX,{interactionKey:Ce.key}),!_t&&De&&(0,m.jsx)("div",{className:"region gesture"})]}),Xt&&(Je?et?(0,f5.createPortal)((0,m.jsx)(b5,{style:{cursor:"pointer",...An},navigationMenuType:_,className:"design-widget-portal-menu",children:(0,m.jsx)(S5,{navigationMenuKey:t,expandBackground:Yt,firstLevel:Ct,onMouseEnterExpand:this.handleMouseEnterExpand,onRemoveFirstOptionPortal:this.handleRemoveFirstOptionPortal,path:d,node:r,level:u,isCreatePortalList:Je,showLinkTag:p,...this.props})}),this.$portalElem):null:(0,m.jsx)(S5,{navigationMenuKey:t,expandBackground:Yt,firstLevel:Ct,onMouseEnterExpand:this.handleMouseEnterExpand,path:d,node:r,level:u,showLinkTag:p,...this.props})),(0,oa.Fr)()&&(0,m.jsx)(mn.A,{target:document,onPointerDown:(0,mn.t)(this.handleClickOutSide,{capture:!0})})]})})}}class f1 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setScrollElement",t=>this.$scrollElement=t),(0,k.A)(this,"handleWheel",t=>{this.$scrollElement.clientHeight===this.$scrollElement.scrollHeight&&this.$scrollElement.clientWidth===this.$scrollElement.scrollWidth||t.stopPropagation()})}componentDidMount(){this.$scrollElement.addEventListener("wheel",this.handleWheel,{capture:!0});const{treeNode:{widget:t},onlyView:e}=this.props;e||t["!version"]!==2&&(0,dm.Tx)()&&setTimeout(()=>{MB.action&&MB.action("entry:navigationMenu:migrate",{key:t.key})},30)}componentDidUpdate(t){const{optionData:e,treeNode:{widget:{w:r,h:i}}}=t,{optionData:a,isEditing:o,treeNode:{widget:{key:s,navigationMenu:l,w:u,h:c}},isPreview:d}=this.props;d||l.align!=="flex-start"||(o||!Ys()(e,a)||r!==u||i!==c)&&MB.action("entry:widget:change",{flatChgList:[{key:s,hotAttr:{navigationMenu:{...l,align:"space-between"}}}]})}componentWillUnmount(){this.$scrollElement.removeEventListener("wheel",this.handleWheel,{capture:!0})}render(){var t,e,r;const{optionData:i,canEditText:a,onExpandItem:o,onSelectedItem:s,onUpdate:l,getPanelInfo:u,showLinkTag:c,isPreviewNoCanvas:d,onlyView:h,isPreview:f}=this.props,{panelCid:p,treeNode:g,treeNode:{widget:{w:v,h:y,cid:x,navigationMenu:S,renderMode:_}},isEditing:D,portalParent:C,scrollTop:N,scrollLeft:q,activeCid:et,stateCid:lt,optionDataSelected:ft,optionDataDesignUnExpanded:_t}=this.props,{align:Ct,isMenuBackgroundVisible:kt,menuBackground:Ot,menuBorder:Nt,navigationMenuType:Xt,canExpandOneMenu:Vt,isShowIcon:Ut,menuShadow:Yt}=S,ie={...{width:v,height:y},pointerEvents:D?"auto":"none",cursor:D?"pointer":"",backgroundColor:kt?(0,P.t0)(Ot):"transparent",borderRight:Nt.bdrIsVisible?Nt.bdrWidth+"px "+Nt.bdrStyle+" "+(0,P.t0)(Nt.bdrColor):"none",boxShadow:(0,K.Ps)(Yt)},Gt=((t=this.$scrollElement)==null?void 0:t.scrollTop)||0,Qt=((e=this.$scrollElement)==null?void 0:e.scrollHeight)>((r=this.$scrollElement)==null?void 0:r.clientHeight);return(0,m.jsx)(b5,{style:ie,align:Ct,navigationMenuType:Xt,children:(0,m.jsx)("ul",{className:"navigationMenuList",ref:this.setScrollElement,children:i.map((me,De)=>(0,m.jsx)(C5,{navigationMenuKey:x,path:""+De,navigationMenu:S,canExpandOneMenu:Vt,isShowIcon:Ut,node:me,parent:null,level:1,isEdit:D,onExpandItem:o,onSelectedItem:s,onUpdate:l,canEditText:a,navigationMenuType:Xt,portalParent:C,treeNode:g,getPanelInfo:u,scrollTop:N,scrollLeft:q,panelCid:p,stateCid:lt,activeCid:et,showLinkTag:c,isPreviewNoCanvas:d,renderMode:_,navVerScrollTop:Gt,showScrollBar:Qt,onlyView:h,optionDataSelected:ft,optionDataDesignUnExpanded:_t,isPreview:f},""+De))})})}}class zot extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onUpdate",t=>{MB.action("entry:widget:change",{flatChgList:[{key:this.props.treeNode.key,hotAttr:t}]})}),(0,k.A)(this,"handleExpandItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a,navigationMenu:o,optionDataDesignUnExpanded:s}}}=this.props,{canExpandOneMenu:l}=o,u=qn()(a);i["!version"]===2?(0,Hr.E3)({node:e,widget:i,optionDataDesignUnExpanded:s,onUpdate:this.onUpdate}):(0,Hr.eh)({node:e,path:r,newOptionData:u,canExpandOneMenu:l,onUpdate:this.onUpdate})}),(0,k.A)(this,"handleSelectedItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i}}=this.props,a=qn()(i.optionData);i["!version"]===2?(0,Hr.hZ)({node:e,optionDataSelected:i.optionDataSelected,onUpdate:this.onUpdate}):(0,Hr.Bf)({node:e,path:r,newOptionData:a,onUpdate:this.onUpdate})}),(0,k.A)(this,"handleUpdate",t=>{let{data:e,path:r,parent:i}=t;const{treeNode:{widget:{optionData:a}}}=this.props,o=r.split("-"),s=o[o.length-1],l=qn()(a);if(!i)l[s].data=e;else{const u=c=>{c.data=e};(0,zr.PM)({newOptionData:l,pathArr:o,onUpdate:u})}this.onUpdate({optionData:l})}),(0,k.A)(this,"getPortalParent",()=>document.querySelector("#canvas"))}render(){const{treeNode:{widget:t},isEditing:e,treeNode:r,showLinkTag:i,onlyView:a}=this.props,o=this.getPortalParent();return(0,m.jsx)(f1,{optionData:t.optionData,treeNode:r,isEditing:e,onExpandItem:this.handleExpandItem,onSelectedItem:this.handleSelectedItem,onUpdate:this.handleUpdate,canEditText:!a,portalParent:o,showLinkTag:i,onlyView:a,optionDataSelected:t.optionDataSelected,optionDataDesignUnExpanded:t.optionDataDesignUnExpanded})}}class Hot extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onUpdate",t=>{const{dispatch:e,treeNode:{widget:{key:r,optionData:i,optionDataDesignUnExpanded:a,optionDataSelected:o}},runnerNavigationData:s}=this.props,l={optionData:i,optionDataDesignUnExpanded:a,optionDataSelected:o},u={...s,...t};e({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:r,status:u,defaultStatus:l}})}),(0,k.A)(this,"handleExpandItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a,navigationMenu:{canExpandOneMenu:o,navigationMenuType:s}}},runnerNavigationData:l}=this.props,u=l!=null&&l.optionData?qn()(l.optionData):qn()(a),c=(l==null?void 0:l.optionDataDesignUnExpanded)||(i==null?void 0:i.optionDataDesignUnExpanded);i["!version"]===2?(0,Hr.E3)({node:e,widget:i,optionDataDesignUnExpanded:c,onUpdate:this.onUpdate}):(0,Hr.eh)({node:e,path:r,newOptionData:u,canExpandOneMenu:o,onUpdate:this.onUpdate})}),(0,k.A)(this,"handleSelectedItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a}},runnerNavigationData:o}=this.props,s=o!=null&&o.optionData?qn()(o.optionData):qn()(a),l=(o==null?void 0:o.optionDataSelected)||(i==null?void 0:i.optionDataSelected);i["!version"]===2?(0,Hr.hZ)({node:e,optionDataSelected:l,onUpdate:this.onUpdate}):(0,Hr.Bf)({node:e,path:r,newOptionData:s,onUpdate:this.onUpdate})}),(0,k.A)(this,"getPortalParent",()=>document.querySelector(".preview-modal-portal-root #simulator")||document.querySelector("#simulator")),(0,k.A)(this,"getPanelInfo",()=>{const{treeNode:t,isWithinHeader:e,isWithinFooter:r}=this.props;return(0,Av.GS)({sdkStore:t.widgetStore.sdkStore,key:t.key,isWithinHeader:e,isWithinFooter:r})})}componentDidUpdate(t,e,r){(0,zr.a9)(t.runnerNavigationData,this.props.runnerNavigationData,this.props.treeNode.widget.key)}render(){const{linkQueryArray:t,runnerNavigationData:e,treeNode:r,treeNode:{widget:i},scrollTop:a,scrollLeft:o,panelCid:s,activeCid:l,stateCid:u,isPreviewNoCanvas:c}=this.props,d=(e==null?void 0:e.optionData)||i.optionData,h=this.getPortalParent();return(0,m.jsx)(f1,{isEditing:!0,linkQueryArray:t,onExpandItem:this.handleExpandItem,onSelectedItem:this.handleSelectedItem,optionData:d,canEditText:!1,treeNode:r,portalParent:h,scrollTop:a,scrollLeft:o,panelCid:s,getPanelInfo:this.getPanelInfo,activeCid:l,stateCid:u,isPreviewNoCanvas:c,isPreview:!0,optionDataDesignUnExpanded:(e==null?void 0:e.optionDataDesignUnExpanded)||i.optionDataDesignUnExpanded,optionDataSelected:(e==null?void 0:e.optionDataSelected)||i.optionDataSelected})}}const Uot=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{treeNode:{widget:{key:i}}}=t,{activePageKey:a,activeCanvasKey:o,screenScrollTopMap:s,screenScrollLeftMap:l,overlayStack:u}=(0,pt.mf)(n),c=u[u.length-1],d=c?c.overlayRelativePosY:s[o],h=c?c.overlayRelativePosX:l[o],f=(0,pt.ub)(n),p=(0,pt.hM)(n),g=f||p;return{runnerNavigationData:(e=r[i])==null?void 0:e.status,activeCid:a,stateCid:o,scrollTop:d,scrollLeft:h,isPreviewNoCanvas:g}},Got=(0,J.Ng)(Uot)(Hot),p1=(0,b.memo)(n=>{let{widget:t,treeData:e,isEditing:r,panelCid:i,mode:a,onlyView:o,isWithinHeader:s,isWithinFooter:l,isSupMkt:u=!1}=n;const c=()=>{if(a==="design")return(0,m.jsx)(zot,{treeNode:e,isEditing:r,showLinkTag:!0,onlyView:o});if(a==="preview"){const d=(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return(0,m.jsx)(Got,{panelCid:i,linkQueryArray:d,treeNode:e,isWithinHeader:s,isWithinFooter:l})}if(a==="snapshot")return(0,m.jsx)(f1,{optionData:t.optionData,treeNode:e,optionDataSelected:t==null?void 0:t.optionDataSelected,optionDataDesignUnExpanded:t==null?void 0:t.optionDataDesignUnExpanded})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:a,isSupMkt:u,children:c()})});class Kot extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e,onlyView:r}=t,i=e===this.widget.key;return(0,m.jsx)(p1,{widget:this.widget,treeData:this,isEditing:i,onlyView:r,mode:"design",isSupMkt:t.isSupMkt})}}class Xot extends W.f{renderWidgetContent(t){const{isWithinHeader:e,isWithinFooter:r}=t;return(0,m.jsx)(p1,{widget:this.widget,treeData:this,panelCid:t.panelCid,mode:"preview",isWithinHeader:e,isWithinFooter:r,isSupMkt:t.isSupMkt})}}class Yot extends st.j{renderWidgetContent(t){return(0,m.jsx)(p1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const g1=[Kot,Xot,Yot],Zot=R.Ay.section.withConfig({displayName:"style__StyledCollapse",componentId:"sc-bvnv1d-0"})(["height:100%;overflow:hidden auto;pointer-events:",";"],n=>n.isInteractive?"auto":"none"),$ot=R.Ay.details.withConfig({displayName:"style__StyledDetails",componentId:"sc-bvnv1d-1"})(["overflow:hidden;border-left:",";border-right:",";&:first-child{border-top-left-radius:",";border-top-right-radius:",";border-top:",";}&:last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";border-bottom:",";}summary{list-style:none;.summary{display:flex;width:auto;height:46px;align-items:center;text-align:center;border-bottom:",";cursor:pointer;span{overflow:hidden;white-space:pre;text-overflow:ellipsis;&:hover{outline:1px dashed #1648fc;}}input{outline:1px dashed #1648fc;width:100%;}}::-webkit-details-marker{display:none;}::marker{display:none;}}&:last-child{summary{height:","px;}}div.content-wrapper{display:flex;position:relative;align-items:center;padding:16px;height:auto;border-bottom:",";text-align:left;.content{padding:0;width:100%;white-space:pre-wrap;word-break:break-word;line-height:normal;-webkit-user-select:text;user-select:text;&:focus{outline:none;}&[contenteditable=true],&:hover{outline:1px dashed #1684fc;}}}&.left{.summary::before{font-size:14px;flex-shrink:0;width:40px;height:16px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'%3E%3Cpath d='M6.39777 5.66281L0.360269 0.947189C0.344493 0.934768 0.325533 0.92705 0.305568 0.924919C0.285603 0.922788 0.265441 0.926332 0.247399 0.935143C0.229357 0.943955 0.214166 0.957676 0.203571 0.974732C0.192976 0.991787 0.187406 1.01149 0.187501 1.03156V2.06683C0.187501 2.13246 0.218305 2.1954 0.269198 2.23558L5.09063 6.00031L0.269198 9.76505C0.216966 9.80522 0.187501 9.86817 0.187501 9.9338V10.9691C0.187501 11.0588 0.290626 11.1083 0.360269 11.0534L6.39777 6.33781C6.44908 6.29779 6.4906 6.24658 6.51915 6.1881C6.5477 6.12962 6.56254 6.06539 6.56254 6.00031C6.56254 5.93523 6.5477 5.87101 6.51915 5.81253C6.4906 5.75404 6.44908 5.70284 6.39777 5.66281Z' fill='%23","'/%3E%3C/svg%3E\");}}&.right{summary{.summary{padding-left:16px;}}summary{.summary::after{font-size:14px;flex-shrink:0;margin-left:auto;width:40px;height:20px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M10.982 0.571533H9.97754C9.90924 0.571533 9.84495 0.605015 9.80478 0.659926L5.99986 5.90457L2.19495 0.659926C2.15477 0.605015 2.09049 0.571533 2.02218 0.571533H1.01772C0.930667 0.571533 0.879774 0.670641 0.930667 0.741623L5.65299 7.25189C5.82442 7.48761 6.17531 7.48761 6.3454 7.25189L11.0677 0.741623C11.12 0.670641 11.0691 0.571533 10.982 0.571533Z' fill='%23","'/%3E%3C/svg%3E\");}}}&[open]{&.left{summary{.summary::before{font-size:14px;flex-shrink:0;width:40px;height:18px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M10.982 0.571533H9.97754C9.90924 0.571533 9.84495 0.605015 9.80478 0.659926L5.99986 5.90457L2.19495 0.659926C2.15477 0.605015 2.09049 0.571533 2.02218 0.571533H1.01772C0.930667 0.571533 0.879774 0.670641 0.930667 0.741623L5.65299 7.25189C5.82442 7.48761 6.17531 7.48761 6.3454 7.25189L11.0677 0.741623C11.12 0.670641 11.0691 0.571533 10.982 0.571533Z' fill='%23","'/%3E%3C/svg%3E\");}}}&.right{summary{.summary::after{font-size:14px;flex-shrink:0;margin-left:auto;width:40px;height:20px;content:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.018 7.42847L2.02246 7.42847C2.09077 7.42847 2.15505 7.39499 2.19523 7.34007L6.00014 2.09543L9.80506 7.34007C9.84523 7.39498 9.90952 7.42847 9.97782 7.42847L10.9823 7.42847C11.0693 7.42847 11.1202 7.32936 11.0693 7.25838L6.34702 0.748109C6.17559 0.512394 5.8247 0.512394 5.65461 0.748109L0.932285 7.25838C0.880054 7.32936 0.930946 7.42847 1.018 7.42847Z' fill='%23","'/%3E%3C/svg%3E\")}}}&:last-child{summary{height:46px;}div.content-wrapper:last-child{border-bottom:none;}}}&:not([open]):last-child{summary{border-bottom:none;}}"],n=>n.border,n=>n.border,n=>n.borderRadius[0]+"px",n=>n.borderRadius.length===1?n.borderRadius[0]+"px":n.borderRadius[1]+"px",n=>n.border,n=>n.borderRadius.length===1?n.borderRadius[0]+"px":n.borderRadius[3]+"px",n=>n.borderRadius.length===1?n.borderRadius[0]+"px":n.borderRadius[2]+"px",n=>n.border,n=>n.border,n=>46-n.borderWidth,n=>n.border,n=>n.arrowColor,n=>n.arrowColor,n=>n.arrowColor,n=>n.arrowColor);function M5(n,t,e,r){const i=qn()(n);t&&i.forEach((o,s)=>{Number(r)!==s&&Object.assign(o,{data:{...o.data,designExpanded:!1}})});const a={...e.data,designExpanded:!e.data.designExpanded};return i[r]={...e,data:a},i}const Jot=n=>{const{borderRadius:t}=n;return typeof t=="object"?Object.values(t).map(e=>""+(parseInt(e)||0)):[""+t]},Qot=n=>{const[t,e]=(0,b.useState)(!1),r=(0,b.useRef)(null),i=(0,b.useRef)(null),{index:a,title:o,titleStyle:s,isInteractive:l,editable:u,onSummaryClick:c,onTitleChange:d,collapseKey:h}=n,f=v=>{r.current&&r.current.contains(v.target)||!t||e(!1)},p=v=>{v.preventDefault(),!(r.current&&r.current.contains(v.target))&&(i.current&&i.current.contains(v.target)||c(v,o,a))},g=()=>{(0,d1.RC)(h)&&e(!0)};return(0,m.jsxs)("summary",{onPointerDown:p,children:[(0,m.jsx)("span",{"data-path":a,style:s,className:"summary canClickableHighWidget",children:t?(0,m.jsx)("input",{ref:r,style:{...s,pointerEvents:u&&l?"auto":"none"},defaultValue:o.data.name,onChange:v=>d(v.currentTarget.value,a)}):(0,m.jsx)("span",{ref:i,style:{pointerEvents:u&&l?"auto":"none"},onDoubleClick:g,children:o.data.name})}),(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(f,{capture:!0})})]})},qot=(0,b.memo)(n=>{const[t,e]=(0,b.useState)(!1),r=(0,b.useRef)(null),{index:i,collapseKey:a,title:o,content:{data:{linkCids:s,name:l}},contentStyle:u,isInteractive:c,editable:d,links:h,handleContentChange:f,showLinkTag:p}=n,{hasInteractiveIta:g,interactiveCids:v,firstUiInteractiveIta:y,itaClassName:x}=(0,Pa.HW)(h,s),S=()=>{var et;const lt=(et=r.current)==null?void 0:et.textContent;e(!1),f(o,lt,i)},_=et=>{const{key:lt,shiftKey:ft}=et,_t=lt===" ";lt===an._.Enter&&!ft&&t&&S(),_t&&(0,gf.kI)(et)},D=et=>{r.current&&r.current.contains(et.target)||!t||t&&S()},C=et=>{et.stopPropagation(),et.preventDefault();let lt="";et.clipboardData&&et.clipboardData.getData&&(lt=et.clipboardData.getData("text/plain")),document.execCommand("insertText",!1,lt)},N=et=>{r.current.textContent=et.currentTarget.textContent},q=et=>{et.preventDefault(),et.stopPropagation(),(0,d1.RC)(a)&&d&&e(!0)};return(0,b.useLayoutEffect)(()=>{if(t&&r.current&&r.current.childNodes[0]){const et=document.createRange();et.setStart(r.current.childNodes[0],r.current.childNodes[0].length);const lt=document.getSelection();lt.removeAllRanges(),lt.addRange(et)}},[t]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{"data-container-cid":a,"data-link_cid":v,className:E()("content-wrapper",x),onDoubleClick:q,style:u,children:(0,m.jsxs)("div",{ref:r,className:E()("content",x),onKeyDown:_,onInput:N,contentEditable:t,onPaste:C,style:{...u,pointerEvents:d&&c?"auto":"none",cursor:t&&"text"},suppressContentEditableWarning:!0,children:[l,y&&p&&(0,m.jsx)(qa.LX,{interactionKey:y.key},y.key),g&&(0,m.jsx)("div",{className:"region gesture"})]})}),(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(D,{capture:!0})})]})});class T5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setScrollElement",t=>this.$scrollElement=t),(0,k.A)(this,"handleWheel",t=>{this.$scrollElement.clientHeight===this.$scrollElement.scrollHeight&&this.$scrollElement.clientWidth===this.$scrollElement.scrollWidth||t.stopPropagation()})}componentDidMount(){this.$scrollElement.addEventListener("wheel",this.handleWheel,{capture:!0})}componentWillUnmount(){this.$scrollElement.removeEventListener("wheel",this.handleWheel,{capture:!0})}render(){const{widget:t,editable:e,isInteractive:r,optionData:i,onContentChange:a,onTitleChange:o,onSummaryClick:s,showLinkTag:l,links:u}=this.props,{border:c,collapse:d}=t,{titleBackground:h,isTitleBackgroundVisible:f,isContentBackgroundVisible:p,isContentBackground:g,markerPosition:v,titleText:y,contentText:x}=d,S=Jot(t),_=c.bdrIsVisible?c.bdrWidth+"px "+c.bdrStyle+" "+(0,P.t0)(c.bdrColor):void 0,D=f?(0,P.t0)(h):"transparent",C=p?(0,P.t0)(g):"transparent",N={backgroundColor:D,...(0,K.Zv)(y.textV0),justifyContent:""},q=(0,P.Sd)(N.color).toString(16).padStart(8,"0").slice(0,-2),et={backgroundColor:C,...(0,K.Zv)(x.textV0),lineHeight:"normal"};return(0,m.jsx)(Zot,{isInteractive:r,ref:this.setScrollElement,children:i.map((lt,ft)=>{var _t;return(0,m.jsxs)($ot,{open:lt.data.designExpanded,className:v,border:_,borderRadius:S,borderWidth:c.bdrWidth,color:N.color,arrowColor:q,children:[(0,m.jsx)(Qot,{collapseKey:t.cid,index:ft,title:lt,isInteractive:r,editable:e,titleStyle:N,onSummaryClick:s,onTitleChange:o}),(_t=lt.children)==null?void 0:_t.map((Ct,kt)=>(0,m.jsx)(qot,{collapseKey:t.cid,index:kt,title:lt,editable:e,content:Ct,isInteractive:r,contentStyle:et,links:u,handleContentChange:a,showLinkTag:l},""+kt+Ct.data.name))]},""+ft+lt.data.designExpanded)})})}}class tst extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleSummaryClick",(t,e,r)=>{var i;t.preventDefault(),t.stopPropagation();const{widget:{key:a,collapse:{canExpandOneMenu:o}},dispatch:s}=this.props,l=M5((i=this.props.optionData)!=null?i:this.props.widget.optionData,o,e,r);s({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:a,status:l,defaultStatus:this.props.widget.optionData}})})}componentDidUpdate(t,e,r){(0,zr.a9)({optionData:t.optionData},{optionData:this.props.optionData},this.props.widget.key)}render(){const{widget:t,links:e}=this.props,r=this.props.optionData||this.props.widget.optionData;return(0,m.jsx)(T5,{links:e,optionData:r,widget:t,onSummaryClick:this.handleSummaryClick,isInteractive:!0,editable:!1})}}const est=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t;return{optionData:(e=r[i])==null?void 0:e.status}},nst=(0,J.Ng)(est)(tst),rst={borderWidth:0,borderStyle:"none",borderColor:"none",boxShadow:"none",borderRadius:"none"},v1=(0,b.memo)(n=>{let{widget:t,treeData:e,isEditing:r,mode:i,onlyView:a,isSupMkt:o=!1}=n;const s=(0,b.useCallback)((d,h,f)=>{if(i!=="design"||a)return;const{optionData:p,key:g}=t;d.children[f].data.name=h,MB.action("entry:widget:change",{flatChgList:[{key:g,hotAttr:{optionData:p}}]})},[i,t]),l=(0,b.useCallback)((d,h)=>{if(i!=="design"||a)return;const{optionData:f,key:p}=t;f[h].data.name=d,MB.action("entry:widget:change",{flatChgList:[{key:p,hotAttr:{optionData:f}}]})},[i,t]),u=(0,b.useCallback)((d,h,f)=>{if(i!=="design"||a)return;d.preventDefault(),d.stopPropagation();const{optionData:p,collapse:{canExpandOneMenu:g},key:v}=t,y=M5(p,g,h,f);MB.action("entry:widget:change",{flatChgList:[{key:v,hotAttr:{optionData:y}}]})},[i,t]),c=(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:i,isSupMkt:o,style:{...rst},children:i==="preview"?(0,m.jsx)(nst,{widget:t,links:c}):(0,m.jsx)(T5,{widget:t,editable:i==="design",isInteractive:r,optionData:t.optionData,showLinkTag:i==="design",links:c,onContentChange:s,onTitleChange:l,onSummaryClick:u})})});class ist extends M.n{renderWidgetContent(t){const e=t.editingEditableWidgetCid===this.widget.key;return(0,m.jsx)(v1,{widget:this.widget,treeData:this,isEditing:e,mode:"design",onlyView:t.onlyView,isSupMkt:t.isSupMkt})}}class ast extends W.f{renderWidgetContent(t){return(0,m.jsx)(v1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class ost extends st.j{renderWidgetContent(t){return(0,m.jsx)(v1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const sst=[ist,ast,ost],lst=R.Ay.section.withConfig({displayName:"style__StyledSegmentedControl",componentId:"sc-z7pg5o-0"})(["display:flex;align-items:center;overflow:hidden;"]),ust=R.Ay.button.withConfig({displayName:"style__StyledControlButton",componentId:"sc-z7pg5o-1"})(["flex-basis:100%;position:relative;display:flex;justify-content:center;align-items:center;height:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:pre;min-width:fit-content;"]);function D5(n,t){return n.map((e,r)=>r===t?{...e,data:{...e.data,selected:!0}}:{...e,data:{...e.data,selected:!1}})}class k5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getButtonStyle",(t,e)=>{var r;const{widget:i,widget:{segmentedControl:a}}=this.props,{text:o,checkedText:s,backgroundColor:l,checkedBackgroundColor:u,isCheckedBackgroundVisible:c,isBackgroundVisible:d}=a||{},h=(0,K.Um)(i),f=(r=i.border)!=null&&r.bdrIsVisible?i.border.bdrWidth+"px "+h.borderStyle+" "+h.borderColor:"none",p=t?(0,K.Zv)(s.textV0):(0,K.Zv)(o.textV0),g=t?(0,K.Lt)(c,u):(0,K.Lt)(d,l);return e===0?{...p,backgroundColor:g}:{...p,borderLeft:f,backgroundColor:g}})}render(){const{widget:t,editable:e,optionData:r,handleButtonClick:i,innerLinks:a,showLinkTag:o}=this.props,{w:s,h:l}=t,u=(0,K.Um)(t),c={pointerEvents:e?"auto":"none",width:s,height:l,...u,...(0,K.Nb)(t)};return(0,m.jsx)(lst,{style:c,children:r.map((d,h)=>{const{hasInteractiveIta:f,hasUiInteractiveIta:p,interactiveCids:g,firstUiInteractiveIta:v,itaClassName:y}=(0,Pa.HW)(a,d.data.linkCids);return(0,m.jsxs)(ust,{"data-container-cid":t.cid,"data-cid":d.data.cid,className:E()("canClickableHighWidget",y),"data-link_cid":g,style:this.getButtonStyle(d.data.selected,h),onClick:()=>i(h),children:[d.data.name,p&&o&&(0,m.jsx)(qa.LX,{interactionKey:v.key}),f&&(0,m.jsx)("div",{className:"region gesture"})]},h)})})}}class cst extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleButtonClick",t=>{const{widget:{optionData:e,key:r},optionData:i,dispatch:a}=this.props,o=D5(i!=null?i:e,t);a({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:r,status:o,defaultStatus:e}})})}render(){var t;const{widget:e,innerLinks:r}=this.props,i=((t=this.props)==null?void 0:t.optionData)||e.optionData;return(0,m.jsx)(k5,{widget:e,optionData:i,handleButtonClick:this.handleButtonClick,editable:!0,innerLinks:r})}}const dst=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t;return{optionData:(e=r[i])==null?void 0:e.status}},hst=(0,J.Ng)(dst)(cst),m1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const o=l=>{if(r!=="design"||!i)return;const u=D5(t.optionData,l);MB.action("entry:widget:change",{flatChgList:[{key:t.key,hotAttr:{optionData:u}}]})},s=r==="snapshot"?[]:(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,children:r==="preview"?(0,m.jsx)(hst,{widget:t,editable:!0,innerLinks:s}):(0,m.jsx)(k5,{widget:t,optionData:t.optionData,editable:r==="design"?i:!0,innerLinks:s,showLinkTag:r==="design",handleButtonClick:o})})});class fst extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e,onlyView:r}=t,i=this.widget.key===e&&!r;return(0,m.jsx)(m1,{widget:this.widget,treeData:this,mode:"design",isEditing:i,isSupMkt:t.isSupMkt})}}class pst extends W.f{renderWidgetContent(t){return(0,m.jsx)(m1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class gst extends st.j{renderWidgetContent(t){return(0,m.jsx)(m1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const vst=[fst,pst,gst],mst=R.Ay.section.withConfig({displayName:"styles__StyledSelectionControlGroup",componentId:"sc-1mrjet-0"})(["position:relative;width:","px;height:","px;display:flex;flex-flow:row wrap;align-items:flex-start;align-content:space-between;overflow:hidden;div.radio,div.checkbox{display:flex;overflow:hidden;position:relative;align-items:center;white-space:nowrap;cursor:pointer;&.editable{input{pointer-events:auto;}}&:not(.label-editable){input{pointer-events:none;}}&.disabled:not(.label-editable){input{cursor:not-allowed !important;}}input[type=radio],input[type=checkbox]{min-width:","px;min-height:","px;margin-right:8px;& + div{color:",";font-size:","px;}&.checked + div{color:",";}&.disabled{color:#ccc;& + div{color:#ccc;}}}span{user-select:none;}.editable-span-wrap .editable-span{white-space:pre;}}"],n=>n.width,n=>n.height,n=>n.fontSize,n=>n.fontSize,n=>n.textColor,n=>n.fontSize,n=>n.checkedTextColor),yst=R.Ay.input.attrs({type:"radio"}).withConfig({displayName:"styles__StyledRadio",componentId:"sc-1mrjet-1"})(["appearance:none;border-radius:50%;border:1px solid ",";background-clip:content-box;cursor:pointer;&.disabled{border:1px solid #ccc;background-color:#f5f5f5;}&.checked{border:1px solid ",";background-color:",";padding:calc(1em / 5.3);&.disabled{border:1px solid #ccc;box-shadow:inset 0 0 0 calc(1em / 5) #f5f5f5;background-color:#ccc;}}"],n=>n.borderColor,n=>n.checkedBgColor,n=>n.checkedBgColor),xst=R.Ay.input.attrs({type:"checkbox"}).withConfig({displayName:"styles__StyledCheckbox",componentId:"sc-1mrjet-2"})(["appearance:none;border-radius:12.5%;border:1px solid ",";background-clip:border-box;cursor:pointer;&.disabled{border:1px solid #ccc;background-color:#f5f5f5;}&.checked{border:1px solid ",";background-color:",";background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.60536 12.2219L6.58774 12.2396L3.1879 8.8397L4.62057 7.40703L6.60542 9.39188L11.3794 4.61786L12.8121 6.05054L6.62304 12.2396L6.60536 12.2219Z' fill='white'/%3E%3C/svg%3E%0A\");background-size:contain;background-repeat:no-repeat;&.disabled{border:1px solid #ccc;background-image:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.60536 12.2219L6.58774 12.2396L3.1879 8.8397L4.62057 7.40703L6.60542 9.39188L11.3794 4.61786L12.8121 6.05054L6.62304 12.2396L6.60536 12.2219Z' fill='%23CCCCCC'/%3E%3C/svg%3E%0A\");background-color:#f5f5f5;}}"],n=>n.borderColor,n=>n.checkedBgColor,n=>n.checkedBgColor),Sst={radio:yst,checkbox:xst};function P5(n,t,e){return qn()(n).map((i,a)=>a===t?{...i,data:{...i.data,selected:e==="radio"?!0:!i.data.selected}}:e==="radio"?{...i,data:{...i.data,selected:!1}}:{...i})}class y1 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleOptionClick",(t,e)=>{const{widget:{selectionControl:r},labelEditable:i,editable:a,handleChange:o,dispatch:s}=this.props;!r.isDisabled&&a&&!i&&o(t,e,s)})}render(){const{widget:t,optionData:e,editable:r,labelEditable:i,handleChange:a,handleLabelInput:o,showLinkTag:s,innerLinks:l,dispatch:u}=this.props,{cid:c,w:d,h,selectionControl:f,optionData:p}=t,{type:g,layout:v,textColor:y,checkedTextColor:x,gap:S,isDisabled:_,fontSize:D,borderColor:C,checkedBorderColor:N,isBorderVisible:q,isCheckedBorderVisible:et,isTextVisible:lt,isCheckedTextVisible:ft}=f,_t=lt?(0,P.t0)(y):"transparent",Ct=ft?(0,P.t0)(x):"transparent",kt=q?(0,P.t0)(C):"transparent",Ot=et?(0,P.t0)(N):"transparent",Nt=Sst[g],Xt=v==="column"?{flex:"0 0 "+S+"px"}:{},Vt={pointerEvents:r?"auto":"none",columnGap:v==="row"?S+"px":void 0};return(0,m.jsx)(mst,{layout:v,gap:S,width:d,height:h,fontSize:D,style:Vt,textColor:_t,checkedTextColor:Ct,children:(e||p).map((Ut,Yt)=>{const{hasInteractiveIta:ue,interactiveCids:ie,firstUiInteractiveIta:Gt,itaClassName:Qt}=(0,Pa.HW)(l,Ut.data.linkCids),me=_?"":Qt;return(0,m.jsxs)("div",{"data-cid":c,"data-link_cid":ie,"data-index":Yt,className:E()(g,"canClickableHighWidget",me,{"label-editable":i,disabled:_,editable:r}),onClick:De=>this.handleOptionClick(De,e||p),style:Xt,children:[(0,m.jsx)(Nt,{"data-index":Yt,className:E()({disabled:_,checked:Ut.data.selected}),onClick:De=>De.stopPropagation(),borderColor:kt,checkedBgColor:Ot,disabled:!i&&_,onChange:De=>a(De,e||p,u)},Ut.data.selected),(0,m.jsx)(Lv,{hiKey:c,value:Ut.data.name,onChangeValue:De=>o(De,Yt,u),canEditText:i}),Gt&&s&&(0,m.jsx)(qa.LX,{interactionKey:Gt.key}),ue&&(0,m.jsx)("div",{className:"region gesture"})]},Yt)})})}}const wst=(0,J.Ng)()(y1),_st=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t;return{optionData:(e=r[i])==null?void 0:e.status}},bst=(0,J.Ng)(_st)(y1),x1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const o=(u,c,d)=>{if(r==="design"){u.preventDefault();const h=Number(u.target.dataset.index),{selectionControl:{type:f}}=t,p=P5(c,h,f);d({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{optionData:[...p]}}]}})}if(r==="preview"){u.preventDefault();const h=Number(u.currentTarget.dataset.index),{key:f,selectionControl:{type:p}}=t,g=P5(c,h,p);d({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:f,status:g,defaultStatus:t.optionData}})}},s=(u,c,d)=>{if(r!=="design")return;const h=u.currentTarget.value,f=qn()(t.optionData).map((p,g)=>c===g?{...p,data:{...p.data,name:h}}:p);d({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{optionData:[...f]}}]}})},l=()=>{const u=(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);if(r==="design")return(0,m.jsx)(wst,{widget:t,labelEditable:!0,editable:i,innerLinks:u,handleChange:o,handleLabelInput:s,showLinkTag:!0});if(r==="preview")return(0,m.jsx)(bst,{innerLinks:u,widget:t,editable:!0,handleChange:o});if(r==="snapshot")return(0,m.jsx)(y1,{widget:t,innerLinks:[]})};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,children:l()})});class Cst extends M.n{renderWidgetContent(t){const e=this.widget.key===t.editingEditableWidgetCid;return(0,m.jsx)(x1,{widget:this.widget,treeData:this,isEditing:e,mode:"design",isSupMkt:t.isSupMkt})}}class Mst extends W.f{renderWidgetContent(t){return(0,m.jsx)(x1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Tst extends st.j{renderWidgetContent(t){return(0,m.jsx)(x1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Dst=[Cst,Mst,Tst],A5=n=>{const{checkedFontSize:t,checkedTextColor:e,checkedBorder:r,checkedBoldType:i,checkedFontStyle:a,checkedTextDecoration:o,textColor:s,fontSize:l,text:u,checkedText:c}=n.tabs,d=(0,K.Zv)(u.textV0),h=(0,K.Zv)(c.textV0),f={},{bdrColor:p,bdrWidth:g,bdrStyle:v,bdrIsVisible:y}=r;return y?(f.borderTopColor=(0,P.t0)(p),f.borderTopWidth=g+"px",f.borderTopStyle=v):f.border="none",{normalStyle:d,selectedStyle:h,switchLineStyle:f}},Oht=n=>{const{checkedBorder:t}=n.tabs,e={},{bdrColor:r,bdrWidth:i,bdrStyle:a,bdrIsVisible:o}=t;return o?(e.borderTopColor=toRGBACSS(r),e.borderTopWidth=i+"px",e.borderTopStyle=a):e.border="none",e},I5=R.Ay.ul.withConfig({displayName:"styles__StyledTabs",componentId:"sc-1rnoq99-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;list-style-type:none;pointer-events:none;&.is-edit{pointer-events:auto;cursor:pointer;}li{white-space:pre;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative;height:100%;min-width:fit-content;&.selected{&::after{content:'';display:inline-block;position:absolute;bottom:0;left:0;width:100%;height:0;border-left:none;border-bottom:none;border-right:none;border-top-color:",";border-top-width:",";border-top-style:",";}}}&.tdunderline{li:not(.selected){text-decoration:underline;}}&.tdoverline{li:not(.selected){text-decoration:overline;}}&.tdline-through{li:not(.selected){text-decoration:line-through;}}"],n=>n.switchLineStyle.borderTopColor,n=>n.switchLineStyle.borderTopWidth,n=>n.switchLineStyle.borderTopStyle);class kst extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleSwitch",t=>{const{isEditing:e}=this.props;if(!e)return;const r={index:t};MB.action("entry:set:tabs:selected:optionData",r)})}render(){const{widget:t,isEditing:e,innerLinks:r,showLinkTag:i}=this.props,{optionData:a}=t,{normalStyle:o,selectedStyle:s,switchLineStyle:l}=A5(t);return(0,m.jsx)(I5,{switchLineStyle:l,className:e?"is-edit":"",children:a.map((u,c)=>{let{data:{name:d,linkCids:h,selected:f}}=u;const{firstUiInteractiveIta:p}=(0,Pa.HW)(r,h);return(0,m.jsxs)("li",{className:E()("canClickableHighWidget",{selected:f}),style:f?s:o,onPointerDown:()=>this.handleSwitch(c),children:[d,i&&p&&(0,m.jsx)(qa.LX,{interactionKey:p.key})]},c)})})}}class Pst extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getNewOptionDataOnSwitch",(t,e)=>t.map((r,i)=>i===e?{...r,data:{...r.data,selected:!0}}:{...r,data:{...r.data,selected:!1}})),(0,k.A)(this,"handleSwitch",t=>{const{widget:{key:e,optionData:r},optionData:i,dispatch:a}=this.props,o=this.getNewOptionDataOnSwitch(i!=null?i:r,t);a({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:e,status:o,defaultStatus:r}})})}render(){const{widget:t,linkQueryArray:e}=this.props,r=this.props.optionData||t.optionData,{selectedStyle:i,switchLineStyle:a,normalStyle:o}=A5(t);return(0,m.jsx)(I5,{style:{cursor:"pointer",pointerEvents:t.isVisible?"auto":"none"},switchLineStyle:a,children:r.map((s,l)=>{let{data:{name:u,linkCids:c,selected:d}}=s;const{hasInteractiveIta:h,interactiveCids:f,itaClassName:p}=(0,Pa.HW)(e,c);return(0,m.jsxs)("li",{"data-container-cid":t.cid,"data-link_cid":f,className:E()("canClickableHighWidget",p,{selected:d}),style:d?i:o,onPointerDown:()=>this.handleSwitch(l),children:[u,h&&(0,m.jsx)("div",{className:"region gesture"})]},l)})})}}const Ast=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t;return{optionData:(e=r[i])==null?void 0:e.status}},Ist=(0,J.Ng)(Ast)(Pst),Est={backgroundColor:"unset"},S1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const o=r==="snapshot"?[]:(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:Est,children:r==="preview"?(0,m.jsx)(Ist,{widget:t,linkQueryArray:o}):(0,m.jsx)(kst,{widget:t,isEditing:i,showLinkTag:r==="design",innerLinks:o})})});class Lst extends M.n{renderWidgetContent(t){const e=t.editingEditableWidgetCid===this.widget.key;return(0,m.jsx)(S1,{widget:this.widget,treeData:this,isEditing:e,mode:"design",isSupMkt:t.isSupMkt})}}class Ost extends W.f{renderWidgetContent(t){return(0,m.jsx)(S1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Rst extends st.j{renderWidgetContent(t){return(0,m.jsx)(S1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Nst=[Lst,Ost,Rst];var Bst=w(15335);const Vst=R.Ay.ul.withConfig({displayName:"styles__StyledMobileTabBars",componentId:"sc-tnnvdx-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-around;list-style-type:none;li{white-space:nowrap;display:inline-flex;align-items:center;flex-direction:column;justify-content:center;overflow:hidden;position:relative;height:100%;width:calc(100% + 2px);min-width:fit-content;.editable-span,.editable-input{color:",";font-size:","px;font-style:",";letter-spacing:","px;text-decoration:",";font-family:",";font-weight:",";}.editable-span-wrap .editable-span{white-space:pre;}.icon-wrap{color:",";font-size:",";.svg-icon{",";width:1em;}}&.selected{.editable-span,.editable-input{color:",";}.icon-wrap{color:",";}}}"],n=>n.textV0Style.color,n=>n.textV0Style.fontSize,n=>n.textV0Style.fontStyle,n=>n.textV0Style.letterSpacing,n=>n.textV0Style.textDecoration,n=>n.textV0Style.fontFamily,n=>n.textV0Style.fontWeight,n=>n.styleProps.iconColor,n=>n.styleProps.iconSize,Bst.s,n=>n.styleProps.selectedTextColor,n=>n.styleProps.selectedIconColor);class w1 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"handleSwitch",t=>{const{isEditing:e}=this.props;if(!e)return;const r={index:t};MB.action("entry:set:tabs:selected:optionData",r)}),(0,k.A)(this,"getNewOptionDataOnSwitch",(t,e)=>t.map((r,i)=>i===e?{...r,data:{...r.data,selected:!0}}:{...r,data:{...r.data,selected:!1}})),(0,k.A)(this,"handleSwitchForPreview",t=>{const{widget:{key:e,optionData:r},optionData:i,dispatch:a}=this.props,o=this.getNewOptionDataOnSwitch(r!=null?r:i,t);a({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:e,status:o,defaultStatus:r}})})}render(){const{widget:t,onNameChange:e,isPreview:r,isEditing:i,linkQueryArray:a}=this.props,o=this.props.optionData||t.optionData,{mobileTabBars:s,textV0:l}=t,{checkedTextColor:u,checkedIconColor:c,isShowSelectedText:d,isShowSelectedIcon:h,iconColor:f,iconSize:p,fontSize:g,textColor:v,isShowText:y,isShowIcon:x}=s,S={textColor:(0,P.t0)(v),fontSize:g+"px",iconSize:p+"px",iconColor:(0,P.t0)(f),selectedTextColor:d?(0,P.t0)(u):"rgba(0, 0, 0, 0)",selectedIconColor:h?(0,P.t0)(c):"rgba(0, 0, 0, 0)",...(0,K.Um)(t),isEdit:i},_={pointerEvents:r||i?"auto":"none",cursor:r||i?"pointer":"",background:(0,$.n7)(t)},D=r?this.handleSwitchForPreview:this.handleSwitch;return(0,m.jsx)(Vst,{style:_,styleProps:S,textV0Style:(0,K.Zv)(l),children:o.map((C,N)=>{let{data:{name:q,linkCids:et,selected:lt,icon:ft}}=C;const{hasInteractiveIta:_t,interactiveCids:Ct,firstUiInteractiveIta:kt,itaClassName:Ot}=(0,Pa.HW)(a,et),Nt=ft&&x;return(0,m.jsxs)("li",{"data-container-cid":t.cid,"data-link_cid":Ct,className:E()("canClickableHighWidget",Ot,{selected:lt}),onPointerDown:()=>D(N),children:[Nt&&(0,m.jsx)("span",{className:"icon-wrap",children:(0,m.jsx)(h1.F,{className:"svg-icon",cid:t.cid+"-"+N,path:ft.path,viewBox:ft.viewBox},N)}),y&&(0,m.jsx)(Lv,{hiKey:t.cid,value:q,canEditText:!r,onChangeValue:Xt=>e(Xt.currentTarget.value,N)}),kt&&!r&&(0,m.jsx)(qa.LX,{interactionKey:kt}),_t&&(0,m.jsx)("div",{className:"region gesture"})]},N)})})}}(0,k.A)(w1,"defaultProps",{isPreview:!1});const Wst=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{widget:{key:i}}=t;return{optionData:(e=r[i])==null?void 0:e.status}},Fst=(0,J.Ng)(Wst)(w1),_1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isEditing:i,isSupMkt:a=!1}=n;const o=(l,u)=>{if(r!=="design")return;const{optionData:c}=t,d=qn()(c);d[u].data.name=l,MB.action("entry:widget:change",{flatChgList:[{key:t.key,hotAttr:{optionData:d}}]})},s=r==="snapshot"?[]:(0,ri.DS)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,style:{...(0,K.Um)(t)},children:r==="preview"?(0,m.jsx)(Fst,{widget:t,isPreview:!0,linkQueryArray:s}):(0,m.jsx)(w1,{widget:t,isEditing:i,linkQueryArray:s,onNameChange:o})})});class jst extends M.n{renderWidgetContent(t){const e=this.widget.key===t.editingEditableWidgetCid;return(0,m.jsx)(_1,{widget:this.widget,treeData:this,mode:"design",isEditing:e,isSupMkt:t.isSupMkt})}}class zst extends W.f{renderWidgetContent(t){return(0,m.jsx)(_1,{widget:this.widget,treeData:this,isEditing:!0,mode:"preview",isSupMkt:t.isSupMkt})}}class Hst extends st.j{renderWidgetContent(t){return(0,m.jsx)(_1,{widget:this.widget,treeData:this,isEditing:!1,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Ust=[jst,zst,Hst];var es=w(95230);const Gst=R.Ay.div.withConfig({displayName:"styles__StyledChildrenWrap",componentId:"sc-ibk0hb-0"})(["position:absolute;width:100%;height:100%;background-color:transparent;&.isClipContent{overflow:hidden;}"]),E5=R.Ay.div.withConfig({displayName:"styles__StyledLayout",componentId:"sc-ibk0hb-1"})(["pointer-events:none;position:absolute;bottom:0;right:0;z-index:2;"]),Kst="rgba(207, 207, 207, 0.3)",Xst="rgba(186, 186, 186, 0.5)",Yst=b.memo(n=>{let{widget:t}=n;const{w:e,layoutGrid:{isRowLayout:r,rowHeight:i,rowGutter:a,isColLayout:o,colCount:s,colGutter:l},zIndex:u}=t,c=i,d=Math.round((e-2*es.nt.h-(s-1)*l)/s),h={backgroundImage:"repeating-linear-gradient(\n to bottom,\n "+es.bG+", "+es.bG+" "+c+"px,\n transparent "+c+"px, transparent "+(c+a)+"px)",width:"100%",height:"calc(100% - "+es.nt.v+"px)",top:es.nt.v+"px",zIndex:u+2},f={backgroundImage:"repeating-linear-gradient(\n to right,\n "+es.bG+", "+es.bG+" "+d+"px,\n transparent "+d+"px, transparent "+(d+l)+"px)",height:"100%",width:"calc(100% - "+es.nt.h+"px)",left:es.nt.h+"px",zIndex:u+2};return(0,m.jsxs)(m.Fragment,{children:[r&&(0,m.jsx)(E5,{style:h}),o&&(0,m.jsx)(E5,{style:f})]})}),Zst=b.memo(n=>{let{widget:t}=n;const{layoutGrid:{isGridLayout:e,gridSize:r}}=t;if(!e)return null;const i="M "+r+" 0 L 0 0 0 "+r,a="M "+r*5+" 0 L 0 0 0 "+r*5;return(0,m.jsxs)("svg",{width:"100%",height:"100%",style:{position:"absolute",verticalAlign:"top",zIndex:2},xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsxs)("defs",{children:[(0,m.jsx)("pattern",{id:"smallGrid",width:r,height:r,patternUnits:"userSpaceOnUse",children:(0,m.jsx)("path",{d:i,fill:"none",stroke:Kst,strokeWidth:"1"})}),(0,m.jsxs)("pattern",{id:"grid",width:r*5,height:r*5,patternUnits:"userSpaceOnUse",children:[(0,m.jsx)("rect",{width:r*5,height:r*5,fill:"url(#smallGrid)"}),(0,m.jsx)("path",{d:a,fill:"none",stroke:Xst,strokeWidth:"1"})]})]}),(0,m.jsx)("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),b1=b.memo(n=>{let{widget:t,treeData:e,mode:r,...i}=n;const{width:a,height:o,fill:s}=t,{editingPanelCid:l,editingPanelRefPage:u,isSupMkt:c=!1}=i,d=(0,b.useMemo)(()=>{const p=(0,K.Nb)(t);if(r==="design"){var g;return{boxShadow:!t.asOverlay&&(l||u||((g=e.widgetStore.sdkStore.getHotItem(e==null?void 0:e.parentRef))==null||(g=g.hotAttr)==null?void 0:g.type)!==O.x.WBasket)?"0px 1px 2px rgba(0, 0, 0, 0.2)":(0,K.Ps)(t.shadow),...t.asOverlay&&(0,K.Nb)(t),background:!t.asOverlay&&t.fill.fill!=="solid"?"transparent":(0,$.n7)(t)}}if(r==="preview"){const{width:v,height:y,fill:{fillIsVisible:x}}=t,S=(0,ri.Xr)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return{left:0,top:0,width:v,height:y,...e.widgetStore.sdkStore.locUpHotBasketKey(t.key)&&(!x&&S.filter(_=>_.interactive).length===0?{pointerEvents:"none"}:{pointerEvents:"auto"}),overflow:"hidden",zIndex:"auto",...t.asOverlay&&{boxShadow:(0,K.Ps)(t.shadow),...(0,K.Nb)(t),background:(0,$.n7)(t)}}}if(r==="snapshot")return{...t.asOverlay&&{boxShadow:(0,K.Ps)(t.shadow),...p},background:!t.asOverlay&&t.fill.fill!=="solid"?"transparent":(0,$.n7)(t)}},[r,l,u,e.widgetStore.sdkStore,e==null?void 0:e.parentRef,e.runningIsEditingCombo,e.editingBDanliKey,t,s.fillIsVisible,s.solidColor]),h=()=>{const{isClipContent:p,zIndex:g,asOverlay:v}=t;let y;if(v){const _=(0,K.Nb)(t);y={..._,maskImage:r==="design"&&p&&_.borderRadius!==void 0?"-webkit-radial-gradient(center center, circle cover, white, black)":void 0}}else y={};const x=r==="preview"?void 0:g+1,S=(0,cm.tZ)({widget:t,treeData:e,isSupMkt:c,mode:r});return(0,m.jsx)(Gst,{className:E()({isClipContent:p}),style:{zIndex:x,...y},children:(0,rt.XI)({treeData:e,props:{...i,isSupMkt:S||c},mode:r})})},f=()=>{if(r==="design")return(0,m.jsxs)(m.Fragment,{children:[(l||u)&&!(0,c1.OO)(t.key)&&(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("svg",{style:{position:"absolute",width:a,height:o,verticalAlign:"top",zIndex:1},children:[(0,m.jsxs)("defs",{children:[(0,m.jsx)($st,{size:5}),(0,m.jsxs)("mask",{id:"mask",x:"0",y:"0",children:[(0,m.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,m.jsx)("rect",{x:0,y:0,height:o,width:a,fill:"black"})]})]}),(0,m.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(31,41,46,.3)",mask:"url(#mask)"}),(0,m.jsxs)("g",{children:[(0,m.jsx)("rect",{width:a,height:o,display:"inline",fill:"url(#transparent)",style:{opacity:.95}}),(0,m.jsx)("rect",{width:a,height:o,fill:s.fillIsVisible?(0,P.t0)(s.solidColor):"transparent"})]})]})}),(0,m.jsx)(Zst,{widget:t}),(0,m.jsx)(Yst,{widget:t})]})};return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:c,style:d,children:[f(),t.asOverlay&&t.border.bdrIsVisible&&(0,m.jsx)("div",{style:{position:"absolute",width:"100%",height:"100%",...(0,K.Nb)(t),...(0,K.Um)(t),zIndex:t.zIndex+2,pointerEvents:"none"}}),h()]})}),$st=b.memo(function(t){let{size:e}=t;return(0,m.jsxs)("pattern",{x:"0",y:"0",width:""+e*2,height:""+e*2,patternUnits:"userSpaceOnUse",id:"transparent",viewBox:"0 -"+e*2+" "+e*2+" "+e*2,overflow:"visible",children:[(0,m.jsx)("polygon",{fill:"#FFFFFF",points:"0,-"+e*2+" "+e*2+",-"+e*2+" "+e*2+",0 0,0"}),(0,m.jsx)("polygon",{fill:"#F2F2F2",points:e+",-"+e+" 0,-"+e+" 0,-"+e*2+" "+e+",-"+e*2}),(0,m.jsx)("polygon",{fill:"#FFFFFF",points:e*2+",-"+e+" "+e+",-"+e+" "+e+",-"+e*2+" "+e*2+",-"+e*2}),(0,m.jsx)("polygon",{fill:"#F2F2F2",points:e+",0 "+e*2+",0 "+e*2+",-"+e+" "+e+",-"+e}),(0,m.jsx)("polygon",{fill:"#FFFFFF",points:"0,0 "+e+",0 "+e+",-"+e+" 0,-"+e})]})});class Jst extends M.n{renderWidgetContent(t){return(0,m.jsx)(b1,{treeData:this,widget:this.widget,mode:"design",...t})}}class Qst extends W.f{renderWidgetContent(t){return(0,m.jsx)(b1,{treeData:this,widget:this.widget,mode:"preview",...t})}}class qst extends st.j{renderWidgetContent(t){return(0,m.jsx)(b1,{treeData:this,widget:this.widget,mode:"snapshot",...t})}}const tlt=[Jst,Qst,qst];var L5=w(74964),elt=w(29288),nlt=w(70594);const rlt=(n,t)=>{var e,r;const{basketCanvasMap:i}=(0,pt.mf)(n),{isHTMLZip:a}=(0,pt.bF)(n),o=(0,pt.KR)(n),s=(0,pt.ub)(n),l=(0,pt.hM)(n),{basketKey:u}=t,c=(e=i.get(u))==null?void 0:e.activeCanvas;return{transition:(r=i.get(u))==null?void 0:r.transition,basketKey:u,activeBasketCanvasKey:c,isHTMLZip:a,isPanelPreviewMode:o,isEditingCombo:s||l}},ilt=(0,J.Ng)(rlt)(L5.z),alt=(0,b.memo)(n=>{let{widget:t}=n;const{zIndex:e,scroll:r}=t;return!r||r===bo.Ci.hide?null:(0,m.jsxs)(nlt.D,{z:e,children:[(r===bo.Ci.horizontal||r===bo.Ci.auto)&&(0,m.jsx)("div",{"data-axis":"x",className:"track x-track",children:(0,m.jsx)("div",{className:"handler","data-axis":"x",children:(0,m.jsx)("div",{className:"thumb"})})}),(r===bo.Ci.vertical||r===bo.Ci.auto)&&(0,m.jsx)("div",{"data-axis":"y",className:"track y-track",children:(0,m.jsx)("div",{className:"handler y-handler","data-axis":"y",children:(0,m.jsx)("div",{className:"thumb"})})})]})}),C1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,...i}=n;const{editingPanelCid:a,isWithinPanelEditor:o,isWithinHeader:s,isWithinFooter:l,isSupMkt:u=!1}=i;if(r==="design"&&a===t.key&&!o)return null;const c=(0,b.useMemo)(()=>{if(r==="design"||r==="snapshot")return t._isInValid||e.children.length===0?{}:{backgroundColor:e.children[0].widget.bgcolor,overflow:"hidden"};if(r==="preview"){var f;const p=(f=e.children[0])==null?void 0:f.widget.fill.fillIsVisible,g=(0,ri.Xr)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey);return!p&&g.filter(v=>v.interactive).length===0?{pointerEvents:"none",overflow:"hidden"}:{overflow:"hidden"}}},[r,e,t]),d=()=>{if(r==="snapshot")return null;if(r==="design"){const{_isInValid:f}=t;return f&&elt.A,(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(alt,{widget:t})})}if(r==="preview"){const f=(0,ri.Xr)(e.widgetStore.sdkStore,t.key,e.runningIsEditingCombo,e.editingBDanliKey),p={position:"absolute",width:"100%",height:"100%",boxShadow:(0,K.Ps)(t.shadow)},{scroll:g}=t;let v="widget "+t.type+" "+L5.M[g]+" panel";return g||(v=(0,rt.I2)({treeData:e,widget:t,mode:r})+" overFlowHide panel"),(0,m.jsx)(ilt,{basketKey:t.key,links:f,className:v,style:p,isWithinHeader:s,isWithinFooter:l})}},h=()=>{if(r==="preview")return null;const f=(0,cm.tZ)({widget:t,treeData:e,isSupMkt:u,mode:r});return(0,rt.XI)({treeData:e,props:{...i,isSupMkt:f||u},mode:r})};return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:u,style:c,isNeedAssembly:!0,children:[d(),h()]})});class olt extends M.n{renderWidgetContent(t){return(0,m.jsx)(C1,{widget:this.widget,treeData:this,mode:"design",...t})}}class slt extends W.f{renderWidgetContent(t){return(0,m.jsx)(C1,{widget:this.widget,treeData:this,mode:"preview",...t})}}class llt extends st.j{renderWidgetContent(t){return(0,m.jsx)(C1,{widget:this.widget,treeData:this,mode:"snapshot",...t})}}const ult=[olt,slt,llt];var clt=w(37401);const dlt=R.Ay.div.withConfig({displayName:"styles__StyledElbow",componentId:"sc-1ih9v5z-0"})(["&.aboard-line{position:absolute;top:0;left:0;pointer-events:none;.line-wrap{position:absolute;top:0;left:0;overflow:visible !important;.line-path-ghost{stroke:transparent;fill:none;pointer-events:auto !important;}.line-path{fill:none;pointer-events:auto;}.line-path-hover{fill:none;stroke:transparent;pointer-events:auto !important;}}.marker-wrap{.marker-wrap-ghost1,.marker-wrap-ghost2{circle,path{fill:",";}&.hollow{circle,path{stroke:",";}}}}&.is-hover-or-edit{.line-path{stroke:rgba(0,119,255,1);}.marker-wrap{.marker-wrap-ghost1,.marker-wrap-ghost2{circle,path{fill:rgba(0,119,255,1);}&.hollow{circle,path{stroke:rgba(0,119,255,1);}}}}}}"],n=>n.stroke,n=>n.stroke),M1=R.Ay.div.withConfig({displayName:"styles__StylesVectorContainer",componentId:"sc-wss9rh-0"})(["width:100%;height:100%;&:not(.no-position){position:relative;}svg.vector{width:100%;height:100%;overflow:unset;position:absolute;top:0;left:0;}.rich-text{position:absolute;top:0;left:0;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;a{pointer-events:auto;cursor:inherit;color:",";}}&.wTriangle{display:flex;align-items:center;justify-content:center;svg.vector{position:relative;}}.is-hover-or-edit{path{stroke:",";}}"],n=>n.color,n=>n.theme.color_proto);var T1=w(89104),hlt=w(95487);const flt=["widget"];class plt extends b.Component{shouldComponentUpdate(t,e){return(0,hlt.N)(flt).call(this,t,e)}render(){const{widget:{key:t,elbow:{dPathList:e,arrowStroke:{bdrColor:r,bdrWidth:i,bdrStyle:a,bdrIsVisible:o},startAnchor:s,endAnchor:l}},mode:u}=this.props,c=(0,T1.Ig)({points:e,closed:!1}),d=(0,P.t0)(r),h=(0,T1.Mx)(a,i),f=(0,T1.tE)({points:c,closed:!1});return o?(0,m.jsx)("path",{id:t,d:f,stroke:d,strokeWidth:i,strokeDasharray:h,fill:"none",clipPath:"url(#"+t+"-clip-path)",markerStart:"url(#"+s+"-"+t+"-start-"+u+")",markerEnd:"url(#"+l+"-"+t+"-end-"+u+")"}):null}}const glt=n=>{let{widget:t,isHoverOrEditState:e,mode:r}=n;const i=e?"vector is-hover-or-edit":"vector";return(0,m.jsx)(M1,{className:"no-position",children:(0,m.jsx)("svg",{className:E()(i,"elbow-line-svg-"+t.key),children:(0,m.jsx)(plt,{widget:t,mode:r})})})},vlt=b.memo(glt);var mlt=w(4643);class O5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getIsHoverOrEditState",()=>{const{widget:t,isHover:e,isSelected:r,isDraggingElbow:i,isActive:a,mode:o}=this.props;if(o!=="design")return;const{key:s,isLock:l}=t;return!l&&(e||r||i&&a)})}render(){const{widget:t,hasInteraction:e,mode:r,textPosition:i}=this.props,{elbow:a,w:o,h:s,key:l}=t,{arrowStroke:u,dPathList:c,startAnchor:d,endAnchor:h,elbowType:f}=a,p=(0,mlt.X)(c,f),g=(0,P.t0)(u.bdrColor),v=ylt(u.bdrStyle,u.bdrWidth),y=(0,K.xc)(t),x=this.getIsHoverOrEditState();return(0,m.jsxs)(dlt,{className:E()("aboard-line","aboard-line-v2",x&&"is-hover-or-edit"),stroke:g,children:[(0,m.jsx)(clt.Ay,{mode:r,elbowKey:l,markerStart:d,markerEnd:h,w:o,h:s,isShowText:y,textPosition:i,strokeWidth:u.bdrWidth}),a.elbowType==="curve"?(0,m.jsx)(vlt,{widget:t,isHoverOrEditState:x,mode:r}):(0,m.jsxs)("svg",{className:"line-wrap line-drop-shadow styled-line-wrap-svg-"+l+" elbow-line-svg-"+l,width:o||1,height:s||1,viewBox:"0 0 "+(o||1)+" "+(s||1),xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{className:"line-path",d:p,markerStart:"url(#"+d+"-"+l+"-start-"+r+")",markerEnd:"url(#"+h+"-"+l+"-end-"+r+")",clipPath:"url(#"+l+"-clip-path)",strokeWidth:u.bdrWidth,strokeDasharray:v,stroke:g,filter:""}),e&&(0,m.jsx)("path",{className:"line-path-ghost",d:p,strokeWidth:u.bdrWidth+3,clipPath:"url(#"+l+"-clip-path)"})]})]})}}const ylt=(n,t)=>{if(n==="solid")return"";if(n==="dotted")return t+" "+t;if(n==="dashed"){if(t===1)return"3 2";if(t===2)return"6 4";if(t>2)return t*2+" "+t}};var D1=w(70351),xlt=w(61535);const Slt=R.Ay.div.withConfig({displayName:"styles__StyledElbowLineText",componentId:"sc-qabti5-0"})(["width:max-content;position:absolute;box-sizing:border-box;padding:4px 8px;border-radius:2px;background:transparent;outline:none;border:none;&.isSelected{border:1px solid rgba(0,119,255,1);}&:hover{border:1px solid rgba(0,119,255,1);}.rich-text{background-color:transparent;width:max-content !important;height:auto !important;}.pre{margin:0;box-sizing:border-box;width:100%;white-space:pre-wrap;word-wrap:break-word;visibility:hidden;font-family:PingFangSC,helvetica,arial,sans-serif;}.line-comment-textarea{width:100%;height:100%;display:block;border:none;top:0;left:0;padding:4px 6px;box-sizing:border-box;white-space:pre-wrap;word-wrap:break-word;resize:none;font-family:PingFangSC,helvetica,arial,sans-serif;outline:none;overflow:hidden;text-align:center;user-select:none;}&.can-editing{pointer-events:auto;}"]);var k1=w(35473);const wlt=(n,t,e)=>{const{x:r,y:i}=(0,k1.xd)(n,t,e);return{backgroundColor:"transparent",left:r,top:i,transform:"translateX(-50%) translateY(-50%)",border:"",borderRadius:6}};class R5 extends b.PureComponent{render(){const{onMouseDownText:t,onlyView:e,widget:r,isSelected:i,widget:{key:a,elbow:{dPathList:o,elbowType:s,textPositionProportion:l}}}=this.props;return(0,K.xc)(r)?(0,m.jsx)(Slt,{"data-cid":a,id:"elbow-text-dom-"+a,className:E()("line-edit-text-input line-comment-textarea",{"can-editing":!e,isSelected:!e&&i}),style:{...wlt(o,s,l)},onMouseDown:t,"data-elbow-key":a,children:(0,m.jsx)(H.HY,{widget:r})}):null}}const N5=5,_lt=n=>{const t=[],e=n.getTotalLength();let r=0,i=n.getPointAtLength(0);for(;r<e;){r+=N5,r>e&&(r=e);const a=n.getPointAtLength(r);if(t.push({start:{x:i.x,y:i.y},end:{x:a.x,y:a.y},length:N5,totalLength:r}),i=a,r===e)break}return t},blt=(n,t)=>{const{start:e,end:r}=t,i=r.x-e.x,a=r.y-e.y,o=n.x-e.x,s=n.y-e.y,l=i*i+a*a;if(l===0)return e;let u=(o*i+s*a)/l;return u=Math.max(0,Math.min(1,u)),{x:e.x+u*i,y:e.y+u*a,t:u,segment:t}},Clt=(n,t,e)=>{let r=1/0,i;return n.forEach(a=>{const o=blt({x:t,y:e},a),s=Math.sqrt(Math.pow(t-o.x,2)+Math.pow(e-o.y,2));s<r&&(r=s,i=o)}),i},Mlt=(n,t)=>{const e=n.getTotalLength(),i=(t.segment.totalLength-t.segment.length*(1-t.t))/e;return Number(i.toFixed(2))},Tlt=n=>{let{widget:t}=n;const[e,r]=(0,b.useState)([]),{elbow:{dPathList:i}}=t;return(0,b.useEffect)(()=>{var a;const s="elbow-line-svg-"+(t!=null&&t.key?CSS.escape(t.key):""),l=(a=document)==null?void 0:a.querySelector("."+s),u=l==null?void 0:l.querySelector("path");if(!l||!u)return;const c=_lt(u);r(c)},[i,t.key]),{pathSegments:e}},Dlt=n=>{let{pathSegments:t,widget:e,onlyView:r,onUpdateTextPositionProportion:i,onUpdateElbow:a}=n;const o=(0,b.useRef)(!1),s=c=>{r||(c.preventDefault(),o.current=!0,document.addEventListener("mousemove",l),document.addEventListener("mouseup",u),sdkStore.combineMergeMark("elbow-text-move"))},l=c=>{if(!o.current)return;const d=e.key.split("/"),f="elbow-line-svg-"+(d.length>1?d.join("\\/"):d.join("")),p=document.querySelector("."+f),g=p.querySelector("path");if(!p||!g)return;const v=p.getBoundingClientRect(),y=MB.getScale()/100,x=(c.clientX-v.left)/y,S=(c.clientY-v.top)/y,_=Clt(t,x,S);if(_){const D=Mlt(g,_);i({key:e.key,textPositionProportion:D})}},u=()=>{o.current=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u),a({isDraggingElbowText:!1,activeElbowKey:""}),sdkStore.combineMerge("elbow-text-move")};return{handleTextDragStart:s}},klt=(n,t)=>{const e=(0,Ci.IL)(n),r=(0,xlt.VH)(n),i=(0,D1.rP)(n),a=(0,D1.CP)(n),o=(0,D1.Zn)(n),s=(0,mf.p$)(n),l=(0,l1.lh)(n),u=t.widget.cid;return{hoverItemKey:e,isDraggingElbow:i,isDraggingElbowText:a,isEditing:l===u,isActive:o===u,isHover:(e||r)===u,isSelected:s.includes(u)}},Plt=(0,b.memo)(n=>{let{isEditing:t,textPosition:e,widget:r,onlyView:i,isSelected:a,isActive:o,isHover:s,isDraggingElbow:l,isDraggingElbowText:u,mode:c,dispatch:d}=n;const{pathSegments:h}=Tlt({widget:r}),f=v=>{d({type:"entry:elbow:update:textPositionProportion",payload:v})},p=v=>{d({type:"elbow:update",payload:v})},{handleTextDragStart:g}=Dlt({pathSegments:h,widget:r,onlyView:i,onUpdateTextPositionProportion:f,onUpdateElbow:p});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(O5,{widget:r,isSelected:a,isActive:o,isHover:s,textPosition:t?null:e,isDraggingElbow:l,mode:c}),(0,m.jsx)(R5,{onlyView:i,widget:r,isSelected:a,onMouseDownText:g})]})}),Alt=(0,J.Ng)(klt)(Plt),P1=(0,b.memo)(n=>{let{widget:t,mode:e,treeData:r,onlyView:i,isSupMkt:a=!1}=n,o=!1;e==="preview"&&(0,ri.Xr)(r.widgetStore.sdkStore,t.key,r.runningIsEditingCombo,r.editingBDanliKey).filter(c=>c.interactive).length!==0&&(o=!0);const[s,l]=b.useState(null);return(0,b.useEffect)(()=>{const u=(0,Dt.ux)(t.cid);if(u&&ResizeObserver){const c=new ResizeObserver(()=>{const d=(0,k1.R3)(t);l(d)});return c.observe(u),()=>c.disconnect()}else setTimeout(()=>{const c=(0,k1.R3)(t);l(c)},0)},[t]),(0,m.jsx)(rt.cl,{treeData:r,widget:t,mode:e,isSupMkt:a,style:{pointerEvents:"none"},children:e==="design"?(0,m.jsx)(Alt,{widget:t,onlyView:i,mode:e,textPosition:s}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(O5,{widget:t,textPosition:s,onlyView:i,hasInteraction:o,mode:e}),(0,m.jsx)(R5,{onlyView:i,widget:t})]})})});class Ilt extends M.n{renderWidgetContent(t){return(0,m.jsx)(P1,{widget:this.widget,treeData:this,mode:"design",onlyView:t.onlyView,isSupMkt:t.isSupMkt})}}class Elt extends W.f{renderWidgetContent(t){return(0,m.jsx)(P1,{widget:this.widget,treeData:this,mode:"preview",onlyView:!0,isSupMkt:t.isSupMkt})}}class Llt extends st.j{renderWidgetContent(t){return(0,m.jsx)(P1,{widget:this.widget,treeData:this,mode:"snapshot",onlyView:!0,isSupMkt:t.isSupMkt})}}const Olt=[Ilt,Elt,Llt];var Rlt=w(7595),A1=w(72868);const Nlt={background:"unset",boxShadow:"none",overflow:"unset",border:"none"};class Blt extends b.PureComponent{render(){const{widget:t}=this.props,{shadow:{shadowIsVisible:e,offsetX:r,offsetY:i,blurRadius:a,shadowColor:o},richTextV1:{isClipText:s}}=t,l=e?"drop-shadow("+r+"px "+i+"px "+a+"px "+(0,P.t0)(o)+")":"none",u={overflow:s?"hidden":"visible"};return(0,m.jsxs)(M1,{children:[(0,m.jsx)("svg",{className:"vector",style:{filter:l},children:(0,m.jsx)(A1.qz,{widget:t})}),(0,m.jsx)(H.HY,{widget:t,styles:u})]})}}const I1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:Nlt,children:(0,m.jsx)(Blt,{widget:t})})});class Vlt extends M.n{renderWidgetContent(t){return(0,m.jsx)(I1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Wlt extends W.f{renderWidgetContent(t){return(0,m.jsx)(I1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Flt extends st.j{renderWidgetContent(t){return(0,m.jsx)(I1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const jlt=[Vlt,Wlt,Flt];var zlt=w(54574);const Hlt={background:"unset",boxShadow:"none",overflow:"unset",border:"none"};class Ult extends b.PureComponent{render(){const{widget:t}=this.props,{shadow:{shadowIsVisible:e,offsetX:r,offsetY:i,blurRadius:a,shadowColor:o},borderRadius:s,width:l,height:u,key:c,richTextV1:{isClipText:d}}=t,h=e?"drop-shadow("+r+"px "+i+"px "+a+"px "+(0,P.t0)(o)+")":"none",f={overflow:d?"hidden":"visible"},g={points:(0,zlt.S)({width:l,height:u,borderRadius:s}),closed:!0},{w:v,h:y}=(0,A1.rj)(g);return(0,m.jsxs)(M1,{className:"wTriangle",color:f.color,children:[(0,m.jsx)("svg",{className:"vector",style:{filter:h,width:v,height:y},children:(0,m.jsx)(A1.qz,{widget:t,vector:g})}),(0,m.jsx)(H.HY,{widget:t,styles:f})]})}}const E1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:Hlt,children:(0,m.jsx)(Ult,{widget:t})})});class Glt extends M.n{renderWidgetContent(t){return(0,m.jsx)(E1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Klt extends W.f{renderWidgetContent(t){return(0,m.jsx)(E1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Xlt extends st.j{renderWidgetContent(t){return(0,m.jsx)(E1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Ylt=[Glt,Klt,Xlt];var B5=w(18001),V5=w(14672),Nr=w(15400),W5=w(78081);const Zlt=(0,Xn.Mz)([Nr.X.query.getSelectedCellsInfo],n=>({selectedCellsInfo:n})),$lt=n=>{let{database:t,swimConfig:e,swimlaneType:r}=n;const{selectedCellsInfo:i}=(0,J.d4)(Zlt),{isShowBigTitle:a}=e,o={selectedCellsInfo:i,isShowBigTitle:a};let s;r==="topBottom"?s=F5.calcSelectRange4topBottom(o,t):s=F5.calcSelectRange(o,t);const l=Qlt(s);return(0,m.jsx)(Jlt,{className:"database-select-border",style:l,children:(0,m.jsx)("div",{className:"firstCell"})})},Jlt=R.Ay.div.withConfig({displayName:"SelectHandle__StyledSwimlaneSelectHandle",componentId:"sc-qtp8c0-0"})(["&.database-select-border{position:absolute;border:2px solid #298DF8;pointer-events:none;}"]),Qlt=n=>{let{top:t=0,left:e=0,width:r=0,height:i=0}=n;return{top:t,left:e,width:r,height:i}},F5={calcSelectRange:(n,t)=>{const{heightList:e,widthList:r}=t,{selectedCellsInfo:i,isShowBigTitle:a}=n,{x:o,y:s}=i.tl,{x:l,y:u}=i.br;let[c,d,h,f]=[0,0,0,0];if(a){if(o===0&&s===0)h=(0,W5.PM)(r),d=0;else{for(let p=1;p<=o;p++)d+=r[p-1];for(let p=o;p<=l;p++)h+=r[p]}for(let p=1;p<=s;p++)c+=e[p-1];for(let p=s;p<=u;p++)f+=e[p]}else{for(let p=0;p<o;p++)d+=r[p];for(let p=o;p<=l;p++)h+=r[p];for(let p=1;p<s;p++)c+=e[p];for(let p=s;p<=u;p++)f+=e[p]}return{top:c,left:d,width:h,height:f}},calcSelectRange4topBottom:(n,t)=>{const{heightList:e,widthList:r}=t,{selectedCellsInfo:i,isShowBigTitle:a}=n,{x:o,y:s}=i.tl,{x:l,y:u}=i.br;let[c,d,h,f]=[0,0,0,0],[p,g]=[1,0];if(a)if(p=0,g=1,o===0&&s===0)if(f=(0,W5.PM)(e),o===l&&s===u)h+=r[0];else for(let v=o;v<=l+1;v++)h+=r[v];else{for(let v=p;v<=o;v++)d+=r[v];for(let v=g;v<s;v++)c+=e[v-1];for(let v=o;v<=l;v++)h+=r[v+1];for(let v=s-1;v<u;v++)f+=e[v]}else{for(let v=p;v<=o;v++)d+=r[v];for(let v=1;v<s;v++)c+=e[v-1];for(let v=o;v<=l;v++)h+=r[v+1];for(let v=s-1;v<u;v++)f+=e[v]}return{top:c,left:d,width:h,height:f}}};var j5=w(93869);const qlt=n=>{let{richTextV1:t}=n;const{fontSize:e,textColor:r,lineHeight:i,padding:a,fontDirection:o,underline:s,strikethrough:l,italic:u,bold:c,verticalAlign:d,horizontalAlign:h,letterSpacing:f}=t;let p="";return s&&(p="underline"),l&&(p+=(p?" ":"")+"line-through"),p===""&&(p="none"),{display:"flex",fontSize:e+"px",fontWeight:c?700:400,fontStyle:u?"italic":"normal",letterSpacing:f+"px",justifyContent:d,alignItems:(0,H.xC)(h),textAlign:h,boxShadow:"none",color:r,lineHeight:i+"px",...a,textDecoration:p,flexDirection:"column",wordBreak:"break-word",whiteSpace:"break-spaces",overflow:"hidden",writingMode:o}},qh=n=>{const{swimlaneCell:t,x:e,y:r,w:i,h:a,border:o,rightPos:s="normal",bottomPos:l="normal",editingInfo:u}=n,{cellKey:c,textV1:d,fill:h,richTextV1:f}=t,[p,g]=(0,b.useState)((0,Dt.d0)({textV1:d,richTextV1:{paraSpacing:5}})),v=h.fillIsVisible?(0,P.t0)(h.solidColor):"transparent",{bdrColor:y,bdrStyle:x,bdrWidth:S,bdrIsVisible:_}=o,D=_?{borderColor:(0,P.t0)(y),borderWidth:S+"px "+(s==="last"?S:0)+"px "+(l==="last"?S:0)+"px "+S+"px",borderStyle:x}:{border:"none"},{isEditing:C,editingPos:N}=u,q=C&&N.x===e&&N.y===r,et={...qlt({richTextV1:f})},lt={width:i,height:a,background:v,...D,...et};return(0,b.useEffect)(()=>{g((0,Dt.d0)({textV1:d,richTextV1:{paraSpacing:5}}))},[d.blocks]),(0,m.jsx)(tut,{isNotShowContent:q,className:"database-cell","data-x":e,"data-y":r,"data-cell-key":c,style:lt,dangerouslySetInnerHTML:{__html:p}})},tut=R.Ay.div.withConfig({displayName:"Databasecell__StyledCell",componentId:"sc-1yo8p5m-0"})(["p{display:",";margin:0 !important;}"],n=>n.isNotShowContent?"none":""),eut=R.Ay.div.withConfig({displayName:"style__StyledSwimlane",componentId:"sc-nnkvdz-0"})(["display:",";.swimlane-big-title-container,.swimlane-title-container,.swimlane-content-container{display:flex;}.swimlane-left-right-container{display:flex;flex-direction:column;.swimlane-row-container{display:flex;}}"],n=>n.swimlaneType==="topBottom"?"flex":"unset"),z5=n=>{const{widget:t,editingInfo:e}=n,{w:r,h:i,database:a,swimConfig:o,swimlaneType:s,border:l}=t,{cells:u,table:c,widthList:d,heightList:h}=a,{isShowBigTitle:f}=o;return(0,m.jsxs)(eut,{swimlaneType:s,children:[(0,m.jsx)("div",{className:"swimlane-big-title-container",children:f&&c[0].map((p,g)=>{const v={...u[p],cellKey:p};return s==="topBottom"?(0,m.jsx)(qh,{x:g,y:0,cellType:"big-title",w:d[0],h:i,swimlaneCell:v,border:l,bottomPos:"last",editingInfo:e},g):(0,m.jsx)(qh,{x:g,y:0,cellType:"big-title",w:r,h:h[0],swimlaneCell:v,border:l,rightPos:"last",editingInfo:e},g)})}),(0,m.jsx)("div",{className:"swimlane-table-container",children:s==="leftRight"?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"swimlane-title-container",children:c[1].map((p,g)=>{const v={...u[p],cellKey:p},y=g===c[1].length-1?"last":"normal";return(0,m.jsx)(qh,{x:g,y:1,cellType:"title",w:d[g],h:h[1],swimlaneCell:v,border:l,rightPos:y,editingInfo:e},g)})}),(0,m.jsx)("div",{className:"swimlane-content-container",children:c[2].map((p,g)=>{const v={...u[p],cellKey:p},y=g===c[1].length-1?"last":"normal";return(0,m.jsx)(qh,{x:g,y:2,cellType:"content",w:d[g],h:h[2],swimlaneCell:v,bottomPos:"last",border:l,rightPos:y,editingInfo:e},g)})})]}):(0,m.jsx)("div",{className:"swimlane-left-right-container",children:c.map((p,g)=>g===0?null:(0,m.jsx)("div",{className:"swimlane-row-container","data-row-index":g,children:p.map((v,y)=>{const x={...u[v],cellKey:v},S=y===c[g].length-1?"last":"normal",_=g===c.length-1?"last":"normal",D=y+1,C=g-1;return(0,m.jsx)(qh,{x:y,y:g,cellType:"title",w:d[D],h:h[C],swimlaneCell:x,border:l,rightPos:S,bottomPos:_,editingInfo:e},y)})},g))})})]})};var L1=w(23340);const nut=(0,Xn.Mz)([Nr.X.query.getIsDeepEditing,Nr.X.query.getIsShallowEditing,Nr.X.query.getSelectedCellsInfo,mf.p$,l1.lh,Ci.IL],(n,t,e,r,i,a)=>({isDeepEditing:n,isShallowEditing:t,selectedCellsInfo:e,selection:r,editingCid:i,hoverItemKey:a})),rut=(0,b.memo)(n=>{const{widget:t}=n,{database:e,swimConfig:r,swimlaneType:i}=t,{isDeepEditing:a,isShallowEditing:o,selection:s,selectedCellsInfo:l,editingCid:u,hoverItemKey:c}=(0,J.d4)(nut),d=(0,J.wA)();(0,b.useEffect)(()=>{if(s.length===1&&s[0]===t.key){const y=async x=>{const{type:S,content:_}=(0,L1.V3)(x);if(await(0,L1.$H)({hasNotice:!1}))d({type:Nr.X.entryKey["entry:flow:swimlane:paste"],payload:{pasteType:S,content:_}});else{const D={pasteType:S,content:_};S==="html"&&await(0,L1.EU)("swimlane")&&(D.pasteType="cell",D.content=_),d({type:Nr.X.entryKey["entry:flow:swimlane:paste"],payload:D})}};return document.addEventListener("paste",y),()=>{document.removeEventListener("paste",y)}}},[o,s]);const h=y=>{if(a)return;if(c!==s[0]){d({type:"flow:flow:update:clear"});return}let x=JSON.parse(JSON.stringify(l));if(o){const D=y.target.closest(".database-cell");if(!D)return;const C=parseInt(D.getAttribute("data-x")),N=parseInt(D.getAttribute("data-y"));if(y.shiftKey){const q={x:C,y:N};x.br=q,d({type:Nr.X.entryKey["entry:flow:selectedCellsInfo:br:update"],payload:{target:q,startSelectedCellsInfo:x}})}else{const q={tl:{x:C,y:N},br:{x:C,y:N}};x={...q},d({type:Nr.X.entryKey["entry:flow:selectedCellsInfo:update"],payload:{selectedCellsInfo:q}})}}const S=D=>{const C=D.target.closest(".database-cell");if(!C)return;const N=parseInt(C.getAttribute("data-x")),q=parseInt(C.getAttribute("data-y")),et={x:N,y:q};d({type:Nr.X.entryKey["entry:flow:selectedCellsInfo:br:update"],payload:{target:et,startSelectedCellsInfo:x}})},_=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",_)},f=y=>{o&&(d({type:"flow:update:state",payload:{isDeepEditing:!0}}),d({type:"set:editing:cid",payload:{cid:t.key}}))},p=u===t.key,g=l.tl,v={isEditing:p,editingPos:g};return(0,m.jsxs)("div",{onMouseDown:h,onDoubleClick:f,children:[o&&(0,m.jsx)(B5.NH,{sheet:iut}),(0,m.jsx)(z5,{widget:t,editingInfo:v}),(0,m.jsx)("div",{children:s.length===1&&o&&s[0]===t.key&&(0,m.jsx)($lt,{database:e,swimConfig:r,swimlaneType:i})})]})}),iut={keys:{up:()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"up"})},down:()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"down"})},left:()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"left"})},right:()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"right"})},tab:()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"tab"})},"shift+tab":()=>{MB.action(Nr.X.entryKey["entry:flow:shallow:move"],{direction:"shift+tab"})},"ctrl+c":()=>{MB.action(Nr.X.entryKey["entry:flow:copy:cell:self"],{isOnlyPasteText:!1}),(0,j5.$)(V5.o)},"ctrl+x":()=>{MB.action(Nr.X.entryKey["entry:flow:cut:cell:self"],{isOnlyPasteText:!0})},"command+c":()=>{MB.action(Nr.X.entryKey["entry:flow:copy:cell:self"],{isOnlyPasteText:!1}),(0,j5.$)(V5.o)},"command+x":()=>{MB.action(Nr.X.entryKey["entry:flow:cut:cell:self"],{isOnlyPasteText:!0})},"ctrl+alt+v":()=>{MB.action(Nr.X.entryKey["entry:flow:paste:cell:properties"])},"command+alt+v":()=>{MB.action(Nr.X.entryKey["entry:flow:paste:cell:properties"])},del:()=>{MB.action(Nr.X.entryKey["entry:flow:paste:del:blocks"])},backspace:()=>{MB.action(Nr.X.entryKey["entry:flow:paste:del:blocks"])}},priority:B5.zu.FloatingPanel,isGlobal:!1},aut=n=>{const{widget:t}=n,e={isEditing:!1,editingPos:{}};return(0,m.jsx)(z5,{widget:t,editingInfo:e})},O1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:r==="design"?(0,m.jsx)(rut,{widget:t}):(0,m.jsx)(aut,{widget:t})})});class out extends M.n{renderWidgetContent(t){return(0,m.jsx)(O1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class sut extends W.f{renderWidgetContent(t){return(0,m.jsx)(O1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class lut extends st.j{renderWidgetContent(t){return(0,m.jsx)(O1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const uut=[out,sut,lut],H5=(n,t)=>{if(n==="solid")return"";if(n==="dotted")return t+" "+t;if(n==="dashed"){if(t===1)return"3 2";if(t===2)return"6 4";if(t>2)return t*2+" "+t}},U5=R.Ay.div.withConfig({displayName:"styles__StyledClosedFlow",componentId:"sc-1hwa4j5-0"})(["position:relative;width:100%;height:100%;overflow:hidden;.rich-text{position:absolute;overflow:visible;white-space:nowrap;top:50%;left:50%;width:100%;height:100%;transform:translate(-50%,-50%);}"]),cut=R.Ay.div.withConfig({displayName:"styles__StyledNonClosedFlow",componentId:"sc-1hwa4j5-1"})(["position:relative;width:100%;height:100%;overflow:hidden;.non-closed-flow-svg{height:100%;}.rich-text{width:100% !important;white-space:nowrap;overflow:visible !important;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}"]),dut=(0,b.memo)(n=>{const{subType:t,fill:e,border:r,key:i,w:a,h:o}=n.widget,{bdrStyle:s,bdrWidth:l,bdrColor:u,bdrIsVisible:c}=r,d=H5(s,l),h=(0,P.t0)(u),f=c?l:0,p=e.fillIsVisible?(0,P.t0)(e.solidColor):"transparent",[g,v,y]=gut({subType:t,fill:p,stroke:h,strokeWidth:f,strokeDasharray:d,w:a,h:o,key:i});let x={};return t==="subProcess"&&(x={width:a*.7}),t==="process"?(0,m.jsxs)(U5,{children:[(0,m.jsxs)("svg",{preserveAspectRatio:"none",width:"100%",height:"100%",viewBox:"0 0 "+g+" "+v,fill:"none",children:[(0,m.jsxs)("defs",{children:[y,(0,m.jsx)("clipPath",{id:"clip-"+i,children:(0,m.jsx)("use",{xlinkHref:"#"+i})})]}),(0,m.jsx)("use",{xlinkHref:"#"+i,clipPath:"url(#clip-"+i+")",fill:p,stroke:h,strokeWidth:f*2,strokeDasharray:d})]}),(0,m.jsx)(H.HY,{widget:n.widget,styles:x})]}):(0,m.jsxs)(U5,{children:[(0,m.jsx)("svg",{preserveAspectRatio:"none",width:"100%",height:"100%",viewBox:"0 0 "+g+" "+v,fill:"none",children:y}),(0,m.jsx)(H.HY,{widget:n.widget,styles:x})]})}),R1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(dut,{widget:t})})});class hut extends M.n{renderWidgetContent(t){return(0,m.jsx)(R1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class fut extends W.f{renderWidgetContent(t){return(0,m.jsx)(R1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class put extends st.j{renderWidgetContent(t){return(0,m.jsx)(R1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const gut=n=>{let{subType:t,stroke:e,fill:r,strokeWidth:i,strokeDasharray:a,w:o,h:s,key:l}=n;const u={stroke:e,fill:r,strokeWidth:i,strokeDasharray:a,vectorEffect:"non-scaling-stroke"};switch(t){case"process":return[o,s,(0,m.jsx)("rect",{id:l,width:o,height:s,rx:".5",ry:".5"})];case"decision":return[100,60,(0,m.jsx)("path",{...u,d:"M 1 30 L 50 1,99 30,50 59 Z"})];case"startEnd":return[100,40,(0,m.jsx)("rect",{...u,width:"99",height:"39",x:".5",y:".5",rx:"19.5"})];case"doc":return[100,67,(0,m.jsx)("path",{...u,d:"M1 .5h98c.28 0 .5.22.5.5v58.12a48.74 48.74 0 0 0-49.37-.27l-.81.47A49.35 49.35 0 0 1 .5 59.7V1C.5.72.72.5 1 .5Z"})];case"data":return[100,60,(0,m.jsx)("path",{...u,d:"M25.67.5H98.5c.36 0 .6.36.46.7l-24.17 58a.5.5 0 0 1-.46.3H1.5a.5.5 0 0 1-.46-.7L25.2.8a.5.5 0 0 1 .46-.3Z"})];case"subProcess":return[100,60,(0,m.jsx)("path",{...u,strokeLinejoin:"round",d:"M1 1 h98 v58 H1 Z M14 1 v58 M86 1 v58"})];case"outerData":return[100,60,(0,m.jsx)("path",{...u,d:"M12.5.5h86.57l-.43.66a52.62 52.62 0 0 0 .42 58.34H12.4a4.03 4.03 0 0 1-3.33-1.77 49.36 49.36 0 0 1-.42-54.76l.4-.6A4.13 4.13 0 0 1 12.5.5Z"})];case"innerData":return[100,60,(0,m.jsx)("path",{...u,strokeLinejoin:"round",d:"M1 1 h98 v58 H1 Z M14 1 v58 M1 14 h98"})];case"queueData":return[61,60,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("rect",{width:"59",height:"59",x:".5",y:".5",...u,rx:"29.5"}),(0,m.jsx)("path",{...u,strokeLinecap:"round",d:"M60 59.5H29"})]})];case"database1":return[101,62,(0,m.jsx)("path",{...u,strokeMiterlimit:"10",d:"M91.5 61h-82c-4.97 0-9-13.43-9-30s4.03-30 9-30h82m0 60c-4.97 0-9-13.43-9-30m9 30c4.97 0 9-13.43 9-30s-4.03-30-9-30m0 60c-4.97 0-9-13.43-9-30m9-30c-4.97 0-9 13.43-9 30m9-30c-4.97 0-9 13.43-9 30"})];case"database2":return[62,62,(0,m.jsx)("path",{...u,d:"M61 10v41.67c0 4.97-13.43 9-30 9s-30-4.03-30-9V10c0 4.97 13.43 9 30 9s30-4.03 30-9Zm-30 9c16.57 0 30-4.03 30-9S47.57 1 31 1 1 5.03 1 10s13.43 9 30 9Z"})];case"humanInput":return[100,60,(0,m.jsx)("path",{...u,d:"m.93 14.87 98-14.2a.5.5 0 0 1 .57.49V59a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V15.37a.5.5 0 0 1 .43-.5Z"})];case"card":return[100,60,(0,m.jsx)("path",{...u,d:"M99.5 1v58a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V24.41a.5.5 0 0 1 .15-.35L24.06.65a.5.5 0 0 1 .35-.15H99c.28 0 .5.22.5.5Z"})];case"strip":return[100,74,(0,m.jsx)("path",{...u,d:"M99.5 7.34v58.78a48.74 48.74 0 0 0-49.37-.27l-.81.47A49.35 49.35 0 0 1 .5 66.7V7.95l.03-.02h.05a48.26 48.26 0 0 0 49.04.37l1.14-.66a49.18 49.18 0 0 1 48.7-.37c.02.01.04.04.04.07Z"})];case"show":return[100,61,(0,m.jsx)("path",{...u,d:"M87.5 1H21.53a.5.5 0 0 0-.42.22L.61 31l20.5 28.79c.1.13.24.21.4.21H87.6c1.33 0 2.58-.66 3.33-1.77a49.36 49.36 0 0 0 .42-54.76l-.4-.6A4.13 4.13 0 0 0 87.5 1Z"})];case"humanOp":return[100,60,(0,m.jsx)("path",{...u,d:"M1.39.5H98.6a.5.5 0 0 1 .48.66l-19.34 58a.5.5 0 0 1-.47.34H20.72a.5.5 0 0 1-.47-.34L.9 1.16A.5.5 0 0 1 1.4.5Z"})];case"prepare":return[100,60,(0,m.jsx)("path",{...u,d:"M20.54.5h58.92a.5.5 0 0 1 .42.22l19.33 29a.5.5 0 0 1 0 .56l-19.33 29a.5.5 0 0 1-.42.22H20.54a.5.5 0 0 1-.42-.22l-19.33-29a.5.5 0 0 1 0-.56l19.33-29a.5.5 0 0 1 .42-.22Z"})];case"loop":return[100,60,(0,m.jsx)("path",{...u,d:"M1 59.5h98a.5.5 0 0 0 .5-.5V20.41a.5.5 0 0 0-.15-.35L79.94.65a.5.5 0 0 0-.35-.15H20.4a.5.5 0 0 0-.35.15L.65 20.06a.5.5 0 0 0-.15.35V59c0 .28.22.5.5.5Z"})];case"refInPage":return[60,60,(0,m.jsx)("rect",{width:"59",height:"59",x:".5",y:".5",...u,rx:"29.5"})];case"or":return[60,60,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("circle",{cx:"30",cy:"30",r:"29",...u}),(0,m.jsx)("path",{...u,d:"M 30 1 v58 M 1 30 h58"})]})];case"sum":return[60,60,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("circle",{cx:"30",cy:"30",r:"29",...u}),(0,m.jsx)("path",{...u,transform:"rotate(45,30,30)",d:"M 31 1 v58 M 1 31 h58"})]})];case"refCrossPage":return[100,60,(0,m.jsx)("path",{...u,d:"M1 .5h98c.28 0 .5.22.5.5v38.32a.5.5 0 0 1-.31.47l-49 19.6a.5.5 0 0 1-.38 0l-49-19.6a.5.5 0 0 1-.31-.47V1C.5.72.72.5 1 .5Z"})];case"sort":return[60,60,(0,m.jsx)("path",{...u,d:"M 1 30 L 30 1,59 30,30 59 Z M 1 30 L 59 30"})];case"union":return[60,40,(0,m.jsx)("path",{...u,strokeLinecap:"round",d:"M2 .5h56a.5.5 0 0 1 .4.8l-28 37.33a.5.5 0 0 1-.8 0L1.6 1.3A.5.5 0 0 1 2 .5Z"})]}},vut=[hut,fut,put],mut=(0,b.memo)(n=>{const{subType:t,border:e}=n.widget,{bdrStyle:r,bdrWidth:i,bdrColor:a,bdrIsVisible:o}=e,s=H5(r,i),l=(0,P.t0)(a),u=o?i:0,[c,d,h]=wut({subType:t,stroke:l,strokeWidth:u,strokeDasharray:s});let f={};t!=="concurrent"&&(f={display:"flex",flexDirection:(t==="commentRight"||t==="noteRight"?"right":"left")==="left"?"row":"row-reverse"});let p={};t==="concurrent"&&(p={...p,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"});const g={width:t==="concurrent"?"100%":"20%"};return(0,m.jsx)(cut,{style:f,children:t!=="concurrent"?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"80%"},children:(0,m.jsx)(H.HY,{widget:n.widget,styles:p})}),(0,m.jsx)("svg",{preserveAspectRatio:"none",className:"non-closed-flow-svg",style:g,viewBox:"0 0 "+c+" "+d,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("svg",{preserveAspectRatio:"none",className:"non-closed-flow-svg",style:g,viewBox:"0 0 "+c+" "+d,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h}),(0,m.jsx)(H.HY,{widget:n.widget,styles:p})]})})}),N1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(mut,{widget:t})})});class yut extends M.n{renderWidgetContent(t){return(0,m.jsx)(N1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class xut extends W.f{renderWidgetContent(t){return(0,m.jsx)(N1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Sut extends st.j{renderWidgetContent(t){return(0,m.jsx)(N1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const wut=n=>{let{subType:t,stroke:e,strokeWidth:r,strokeDasharray:i}=n;const a={stroke:e,strokeWidth:r,strokeDasharray:i,vectorEffect:"non-scaling-stroke"};switch(t){case"concurrent":return[100,62,(0,m.jsx)("path",{...a,d:"M0 1h100m0 60H0"})];case"commentRight":return[12,62,(0,m.jsx)("path",{...a,strokeLinecap:"round",d:"M11 1H2a1 1 0 0 0-1 1v58a1 1 0 0 0 1 1h9"})];case"commentLeft":return[12,62,(0,m.jsx)("path",{...a,strokeLinecap:"round",d:"M1 1h9a1 1 0 0 1 1 1v58a1 1 0 0 1-1 1H1"})];case"noteRight":return[14,64,(0,m.jsx)("path",{...a,strokeLinecap:"round",strokeLinejoin:"round",d:"M1 1v0a5 5 0 0 1 5 5v19.8a6 6 0 0 0 5.15 5.94L13 32l-1.85.26A6 6 0 0 0 6 38.2V58a5 5 0 0 1-5 5v0"})];case"noteLeft":return[14,64,(0,m.jsx)("path",{...a,strokeLinecap:"round",strokeLinejoin:"round",d:"M13 1v0a5 5 0 0 0-5 5v19.8a6 6 0 0 1-5.15 5.94L1 32l1.85.26A6 6 0 0 1 8 38.2V58a5 5 0 0 0 5 5v0"})]}},_ut=[yut,xut,Sut];var but=w(1694),hr=w(38422);const G5=(n,t,e)=>{var r;const i=t.widget.placement==="right",a={x:n.mindNodePosition.x+e.x,y:n.mindNodePosition.y+e.y},o={x:t.mindNodePosition.x+e.x,y:t.mindNodePosition.y+e.y},s={x:i?a.x+n.mindNodeSize.w:a.x,y:a.y+n.mindNodeSize.h/2,w:n.mindNodeSize.w,h:n.mindNodeSize.h},l={x:i?o.x:o.x+t.mindNodeSize.w,y:o.y+t.mindNodeSize.h/2,width:t.mindNodeSize.w,height:t.mindNodeSize.h};let u=[];return(r=n.widget)!=null&&r.isRoot?(s.x=i?a.x+n.mindNodeSize.w*.75:a.x+n.mindNodeSize.w*.25,u=["M",s.x,s.y,"C",s.x,s.y+(l.y-s.y)*.67,s.x+(l.x-s.x)*.67,l.y,l.x,l.y]):u=["M",s.x,s.y,"L",s.x+(l.x-s.x)*.3,s.y,"C",s.x+(l.x-s.x)*.3,s.y+(l.y-s.y)*1.2,s.x+(l.x-s.x)*.3+(l.x-s.x),l.y,l.x,l.y],(t.children||[]).length>0&&!t.widget.expand&&u.push("M",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y,"L",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y),u},Cut=(n,t,e)=>{var r;const i=t.widget.placement==="right",a={x:n.mindNodePosition.x+e.x,y:n.mindNodePosition.y+e.y},o={x:t.mindNodePosition.x+e.x,y:t.mindNodePosition.y+e.y},s={x:i?a.x+n.mindNodeSize.w:a.x,y:a.y+n.mindNodeSize.h/2,w:n.mindNodeSize.w,h:n.mindNodeSize.h},l={x:i?o.x:o.x+t.mindNodeSize.w,y:o.y+t.mindNodeSize.h/2,width:t.mindNodeSize.w,height:t.mindNodeSize.h};let u;return(r=n.widget)!=null&&r.isRoot?(s.x=i?a.x+n.mindNodeSize.w*.75:a.x+n.mindNodeSize.w*.25,u=["M",s.x,s.y,"C",s.x,s.y+(l.y-s.y)*.67,s.x+(l.x-s.x)*.67,l.y,l.x,l.y]):u=["M",s.x,s.y,"L",s.x+(l.x-s.x)*.3,s.y,"L",s.x+(l.x-s.x)*.3,(s.y+l.y)*.5,"C",s.x+(l.x-s.x)*.3,l.y,s.x+(l.x-s.x)*.3,l.y,l.x,l.y],(t.children||[]).length>0&&!t.widget.expand&&u.push("M",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y,"L",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y),u},Mut=(n,t,e)=>{var r;const i=t.widget.placement==="right",a={x:n.mindNodePosition.x+e.x,y:n.mindNodePosition.y+e.y},o={x:t.mindNodePosition.x+e.x,y:t.mindNodePosition.y+e.y},s={x:i?a.x+n.mindNodeSize.w:a.x,y:a.y+n.mindNodeSize.h/2,w:n.mindNodeSize.w,h:n.mindNodeSize.h},l={x:i?o.x:o.x+t.mindNodeSize.w,y:o.y+t.mindNodeSize.h/2,width:t.mindNodeSize.w,height:t.mindNodeSize.h};return(r=n.widget)!=null&&r.isRoot?(s.x=i?a.x+n.mindNodeSize.w*.75:a.x+n.mindNodeSize.w*.25,l.y=o.y+t.mindNodeSize.h,["M",s.x+7,s.y,"C",s.x,s.y+(l.y-s.y)*.67,s.x+(l.x-s.x)*.67,l.y,l.x,l.y,"L",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y,"L",l.x,l.y,"C",s.x+(l.x-s.x)*.67,l.y,s.x,s.y+(l.y-s.y)*.75,s.x,s.y,"L",s.x+7,s.y]):(s.y=a.y+n.mindNodeSize.h,l.y=o.y+t.mindNodeSize.h,["M",s.x,s.y,"L",s.x+(i?5:-5),s.y,"C",s.x+(l.x-s.x)*.35,s.y,s.x+(l.x-s.x)*.51,l.y,l.x,l.y,"L",i?l.x+t.mindNodeSize.w:l.x-t.mindNodeSize.w,l.y])},Tut=(n,t,e)=>{const r=t.widget.placement==="right",i={x:n.mindNodePosition.x+e.x,y:n.mindNodePosition.y+e.y},a={x:t.mindNodePosition.x+e.x,y:t.mindNodePosition.y+e.y},o={x:r?i.x+n.mindNodeSize.w:i.x,y:i.y+n.mindNodeSize.h/2,w:n.mindNodeSize.w,h:n.mindNodeSize.h},s={x:a.x,y:a.y+t.mindNodeSize.h/2,width:t.mindNodeSize.w,height:t.mindNodeSize.h};let l=[];return n.widget.isRoot?(s.x=r?a.x:a.x+t.mindNodeSize.w,l=["M",o.x,o.y,"L",o.x+(s.x-o.x)*.5,o.y,"L",o.x+(s.x-o.x)*.5,o.y+(s.y-o.y)*.75,"C",o.x+(s.x-o.x)*.5,s.y,o.x+(s.x-o.x)*.5,s.y,o.x+(s.x-o.x)*.75,s.y,"L",s.x,s.y]):(n.isMindFirstDepth||(o.y=i.y+n.mindNodeSize.h),s.x=r?a.x+t.mindNodeSize.w:a.x,s.y=a.y+t.mindNodeSize.h,l=["M",o.x,o.y,"L",o.x+(r?20:-20),o.y,"L",o.x+(r?20:-20),o.y+(s.y-o.y)*.75,"C",o.x+(r?20:-20),s.y,o.x+(r?20:-20),s.y,o.x+(r?28:-28),s.y,"L",o.x+(r?28:-28),s.y,"L",s.x,s.y]),(t.children||[]).length>0&&!t.widget.expand&&l.push("L",r?s.x+(t.widget.isRoot?t.mindNodeSize.w:0)+12:s.x-(t.widget.isRoot?t.mindNodeSize.w:0)-12,s.y),l},K5=n=>{switch(n){case hr.d.DEFAULT:case hr.d.CLASSICAL:return G5;case hr.d.YOUTH:case hr.d.DARK:return Cut;case hr.d.RAINBOW:return Mut;case hr.d.RETRO:return Tut;default:return G5}},Dut=["#EB5E5B","#F2B74B","#4AABEE","#EA8F49","#54B7AF","#8DB75B","#E86069","#CC559A","#B055BE","#6E4FBE","#3780BF","#4260BC","#377A81"],kut={[hr.d.DEFAULT]:2,[hr.d.RAINBOW]:2,[hr.d.RETRO]:3,[hr.d.YOUTH]:3,[hr.d.CLASSICAL]:3,[hr.d.DARK]:3},Put={[hr.d.DEFAULT]:2,[hr.d.RAINBOW]:2,[hr.d.RETRO]:2,[hr.d.YOUTH]:2,[hr.d.CLASSICAL]:2,[hr.d.DARK]:2},X5=n=>n.isMindFirstDepth?Dut[(n.widget.order-1)%6]:"none",Aut=n=>{let{node:t,theme:e}=n;const r={fill:"none",stroke:"#666666",strokeWidth:t.isMindFirstDepth?kut[e]:Put[e]};switch(e){case hr.d.RAINBOW:r.fill=X5(t);break}return r},Iut=(n,t,e,r)=>{const i={x:t.mindNodePosition.x+r.x},a={x:e.mindNodePosition.x+r.x},o=e.widget.placement==="right",s={x:o?i.x+t.mindNodeSize.w:i.x},l={x:o?a.x:a.x+e.mindNodeSize.w};switch(n){case hr.d.DEFAULT:case hr.d.CLASSICAL:case hr.d.YOUTH:case hr.d.DARK:return(o?s.x-l.x:l.x-s.x)*.3;case hr.d.RAINBOW:return-5;case hr.d.RETRO:return-20}},Eut=(n,t)=>t.widget.isRoot?"50%":[hr.d.DEFAULT,hr.d.CLASSICAL,hr.d.YOUTH,hr.d.DARK,hr.d.RETRO].includes(n)?n===hr.d.RETRO&&!t.isMindFirstDepth?"100%":"50%":"100%";var B1=w(20141);class Ov extends b.PureComponent{render(){const{current:t,theme:e,rootNode:r,strokeColor:i}=this.props;if(t.widget.isRoot)return null;const a=Aut({node:t,theme:e}),o=K5(e),s=(0,B1.AT)(r),l=o(t==null?void 0:t.parent,t,s);return a.stroke=i||a.stroke,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("path",{...a,d:l.join(" ")}),t.widget.expand&&t.children.map(u=>(0,m.jsx)(Ov,{current:u,theme:e,strokeColor:i,rootNode:r},u.key))]})}}var Lut=w(87382),Out=w(5575),hu=w(54599),Rut=w(852),V1=w(14586);const Nut=R.Ay.div.withConfig({displayName:"styles__StyledImageContainer",componentId:"sc-e78li9-0"})(["width:100%;margin-bottom:","px;display:flex;align-items:center;justify-content:center;.image-container{width:","px;height:","px;position:relative;img{width:100%;height:100%;border-radius:2px;}.image-frame{position:absolute;border-radius:2px;pointer-events:none;inset:-2px;}.resize-image-container{width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,0.15);}}&.is-edit:not(.is-select){.image-container:hover{.image-frame{box-shadow:#1684fc 0 0 0 2px inset;}}}"],V1.ck,n=>n.imageRectWidth,n=>n.imageRectHeight);class But extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onResize",t=>{const{node:{key:e,widget:{image:{imageRef:r,imageRectWidth:i,imageRectHeight:a}}},dispatch:o}=this.props,{clientX:s,clientY:l}=t,{direction:u}=t.currentTarget.dataset,c=MB.getScale()/100,d=i/a,h=gi.$W*d,f=gi.P3*d;sdkStore.combineMergeMark("mindNode-image-resize-drag");const p=v=>{const y={x:(v.clientX-s)/c,y:(v.clientY-l)/c},x={x:0,y:0,w:i,h:a,r:0},S=(0,Rut.AL)(x,y.x,y.y,u,d),_={imageRef:r,imageRectWidth:Math.min(Math.max(h,S.w),f),imageRectHeight:Math.min(Math.max(gi.$W,S.h),gi.P3)};o({type:"entry:widget:change",payload:{flatChgList:[{key:e,hotAttr:{image:_}}],shouldReBuildTree:!0,isCombineChange:!1}}),o({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}})},g=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g),sdkStore.combineMerge("mindNode-image-resize-drag")};document.addEventListener("mousemove",p),document.addEventListener("mouseup",g)}),(0,k.A)(this,"renderResizeContainer",t=>{if(!t)return null;const{node:{widget:{image:{imageRectWidth:e,imageRectHeight:r}}}}=this.props,i=MB.getScale()/100,{isHotCornerCriticalPoint:a,isNoHotZone:o,anchorHotZone:s,lineHotZone:l}=(0,Out.Pv)({w:e,h:r,ratio:i}),u=hu.eT.split(",").map(d=>d.trim()).filter(d=>d),c=u.filter(d=>hu.Y$[d]);return(0,m.jsx)(Lut._,{className:"resize-image-container",anchorHotZone:s,lineHotZone:l,children:o?null:(0,m.jsxs)(m.Fragment,{children:[u.map(d=>{const h=hu.ZA[d],f=hu.PN.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+h);return(0,m.jsx)("div",{style:{cursor:f},"data-direction":hu.oJ[d],className:E()(hu.oJ[d]+" resizable-handler",{isHotCornerCriticalPoint:a}),onMouseDown:this.onResize},d)}),c.map(d=>(0,m.jsx)("div",{className:E()(hu.oJ[d]+" square")},d))]})})})}render(){const{isEdit:t,node:{key:e,widget:{image:{imageRef:r,imageRectWidth:i,imageRectHeight:a}}},selectedMindNodeImageKey:o,onSelectImage:s,onImageView:l,onMouseEnter:u,onMouseLeave:c}=this.props,d=(0,gi.Kf)(r);if(!d)return null;const h=e===o;return(0,m.jsx)(Nut,{className:E()({"is-edit":t,"is-select":h}),imageRectWidth:i,imageRectHeight:a,children:(0,m.jsxs)("div",{className:"image-container",onClick:s,onDoubleClick:f=>l(f,d),onMouseEnter:u,onMouseLeave:c,children:[(0,m.jsx)("span",{className:"image-frame"}),(0,m.jsx)("img",{src:d,alt:"",draggable:!1}),this.renderResizeContainer(h)]})})}}var W1=w(19722);const Vut=b.memo(n=>{let{mindNodeToAttach:t,theme:e,attachPosition:r,attachToSelf:i,rootNode:a}=n;const o=V1.dg,s=(0,b.useMemo)(()=>(0,B1.AT)(a),[a]),[l,u,c]=(0,b.useMemo)(()=>{const d=(0,V1.Cv)(t.widget.isRoot)/3,{mindNodePosition:h,mindNodeSize:f}=t;let p={},g=!1;const v=e===1||e===2&&!t.widget.isRoot;switch(r){case"left":g=v,p={left:h.x-o-36,top:h.y+f.h/2-9};break;case"right":g=v,p={left:h.x+f.w+o,top:h.y+f.h/2-9};break;case"above":p={left:t.widget.placement==="right"?h.x:h.x+f.w-36,top:h.y-d-18};break;case"below":p={left:t.widget.placement==="right"?h.x:h.x+f.w-36,top:h.y+d+f.h};break}g&&(p.top=p.top+(f.h-18)/2),v&&(p.marginTop="9px");const y={isRoot:!1,widget:{placement:t.widget.placement},mindNodePosition:{x:p.left,y:p.top},mindNodeSize:{w:36,h:18}},x=i?t:t.parent,S=K5(e)(x,y,s);return p.left=p.left+s.x,p.top=p.top+s.y,[p,S.join(" "),x.widget.isRoot]},[t,e,r,i,s,o]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("svg",{className:"mind-node-anchor-line",children:(0,m.jsx)("path",{fill:e===1&&c?"#1685fc":"none",d:u,strokeWidth:2})}),(0,m.jsx)("div",{className:"mind-node-anchor",style:l})]})});var zs=w(39562),Wut=w(73807),Fut=w(91344),Y5=w(53436),F1=w(5585),jut=w(89099),zut=w(7233);const Hut=R.Ay.div.withConfig({displayName:"style__StyledDesignWMindComponent",componentId:"sc-13gsy3r-0"})(["position:absolute;width:100%;height:100%;.cover{position:absolute;width:100%;height:100%;z-index:11;top:0;left:0;}"]),Uut=R.Ay.div.withConfig({displayName:"style__StyledWMindNodeComponent",componentId:"sc-13gsy3r-1"})(["&.mind-node{position:absolute;display:flex;align-items:center;justify-content:center;padding-left:","px;padding-right:","px;padding-top:","px;padding-bottom:","px;border-radius:6px;&.is-being-dragged{opacity:40%;}&.is-text-editing{.rich-text,.text,input,textarea,.label p{opacity:0 !important;}}.mind-container-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center;.flag-icon{flex:0 0 24px;margin-right:10px;border-radius:4px;height:24px;display:flex;align-items:center;justify-content:center;&.is-edit:not(.is-select):hover{border:2px solid #9cc4ff;}&.is-select{border:2px solid #1684fc;}}.content-right{flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;}}.select-wrap{display:flex;position:absolute;.icon-box{position:absolute;top:calc(50% - 10px);width:20px;height:20px;border-radius:50%;color:#1685fc;border:1px solid #1684fc;background-color:#fff;display:none;&.add-icon{color:#ffffff;background-color:",";border:none;&.left{left:-20px;}}&.subtract-icon{width:16px;height:16px;top:calc(50% - 8px);display:block;opacity:0;&.left{left:-8px;}&.right{left:-8px;}&:hover{opacity:1;}}&.nums{display:flex;align-items:center;justify-content:center;text-align:center;background-color:#1685fc;color:#fff;cursor:pointer;&.left{left:-10px;}&.right{left:-10px;}}.svg-icon{width:100%;height:100%;}&:hover{background-color:",";color:#fff;}}&.has-neighbor{.icon-box.add-icon{&.add-icon{&.right{margin-left:15px;}&.left{margin-left:-35px;left:0;}}}}&.is-single-select{.icon-box{display:flex;&.subtract-icon{opacity:1;}}}}.frame{position:absolute;border-radius:9px;pointer-events:none;inset:-","px;&.is-select-child{box-shadow:#9cc4ff 0 0 0 2px inset;}&.is-select:not(.is-select-child){box-shadow:#1684fc 0 0 0 2px inset;}}&.isEdit.can-hover:hover{.frame:not(.is-select){box-shadow:#80bcff 0 0 0 2px inset;}}}"],n=>n.paddingHorizontal,n=>n.paddingHorizontal,n=>n.paddingVertical,n=>n.paddingVertical,n=>n.theme.color_bg_border_02,n=>n.theme.color_proto,n=>n.frameInsert),Gut=R.Ay.div.withConfig({displayName:"style__StyledWMindComponent",componentId:"sc-13gsy3r-2"})(["position:absolute;width:100%;height:100%;.minNode-children,.minLine-children{position:absolute;width:100%;height:100%;}.select-wrap{pointer-events:",";}"],n=>n.$unClickable&&"none"),Kut=R.Ay.div.withConfig({displayName:"style__StyledMindNodeAnchorWrapper",componentId:"sc-13gsy3r-3"})(["position:absolute;width:100%;height:100%;svg.mind-node-anchor-line{position:absolute;width:calc(100% + 100px);height:calc(100% + 100px);top:-50px;left:-50px;z-index:-1;path{stroke:#1684fc;transform:translate(50px,50px);}}div.mind-node-anchor{position:absolute;z-index:5;width:36px;height:18px;background-color:#9cc4ff;border-radius:6px;}"]);var Xut=w(5063);class Rv extends b.PureComponent{constructor(){var t;super(...arguments),t=this,(0,k.A)(this,"state",{canHover:!0}),(0,k.A)(this,"handleClick",e=>{const{node:r,selectedMindNodeKeys:i,dispatch:a}=this.props,{shiftKey:o}=e;let s=[r.key];o&&(i.includes(r.key)?s=i.filter(l=>l!==r.key):s=[...i,r.key]),a({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:s}})}),(0,k.A)(this,"handleDbClick",()=>{const{dispatch:e}=this.props;e({type:"entry:mind:enter:text:editing",payload:{isSelectAll:!0}})}),(0,k.A)(this,"handleAddMindNode",function(e,r){r===void 0&&(r={placement:"right"}),e.stopPropagation();const{node:i,addMindNode:a}=t.props;a(i,r)}),(0,k.A)(this,"handleToggleExpand",(e,r)=>{e.stopPropagation();const{node:i,updateMindSize:a,onlyView:o,selectedMindNodeKeys:s,dispatch:l}=this.props;if(!o&&(sdkStore.combineMergeMark("toggle-mindNode"),sdkStore.updateHotAttrKV(i.key,"expand",r),a(!0),sdkStore.combineMerge("toggle-mindNode"),!r)){const u=(0,zut.$)(i.key,sdkStore),c=s.filter(d=>!u.includes(d));l({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:c}})}}),(0,k.A)(this,"handleRenderIcon",()=>{const{node:{widget:{icon:e}}}=this.props;return(0,jut.s)(e)}),(0,k.A)(this,"handleClickFlagIcon",e=>{const{selectedMindNodeFlagIconKey:r,node:i,dispatch:a}=this.props;e.stopPropagation();const o=r===i.key?"":i.key;a({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:o,selectedMindNodeKeys:[i.key],selectedMindNodeImageKey:""}})}),(0,k.A)(this,"handleClickImage",e=>{const{isEdit:r,node:i,dispatch:a}=this.props;r&&(e.preventDefault(),e.stopPropagation(),a({type:"mind:update:state",payload:{selectedMindNodeImageKey:i.key,selectedMindNodeKeys:[i.key],selectedMindNodeFlagIconKey:""}}))}),(0,k.A)(this,"handleImageView",(e,r)=>{const{isEdit:i,dispatch:a}=this.props;i&&(e.preventDefault(),e.stopPropagation(),a({type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:r,alt:""}}}))}),(0,k.A)(this,"handleMouseDown",e=>{if(this.props.onlyView)return;e.stopPropagation();const{dispatch:r,openContextMenu:i,node:a,selectedMindNodeKeys:o}=this.props;e.button===2?i&&(i({left:e.clientX,top:e.clientY}),o.includes(a.key)||r({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[a.key]}})):this.props.onStartDrag(e,a.key)}),(0,k.A)(this,"handMouseEnter",e=>{this.props.onlyView||e.buttons===0&&this.setState({canHover:!1})}),(0,k.A)(this,"handMouseLeave",()=>{this.setState({canHover:!0})})}render(){const{node:t,rootNode:e,selectedMindNodeKeys:r=[],editMindNodeKey:i="",isEdit:a,theme:o,selectedMindNodeFlagIconKey:s,isBeingDragged:l,isDragging:u,selectedMindNodeImageKey:c,findReplaceWMindNodeKeys:d=[],findSelectWidgetCid:h,dispatch:f}=this.props,{key:p,widget:{icon:g,border:{bdrIsVisible:v,bdrWidth:y},placement:x}}=t,{canHover:S}=this.state,_=r.includes(t.key),D=r.length===1&&_,C=s===t.key,N=c===t.key,q=(0,F1.ss)({theme:o,node:t}),et=(0,B1.AT)(e),lt={...q,width:t.mindNodeSize.w,height:t.mindNodeSize.h,left:t.mindNodePosition.x+et.x,top:t.mindNodePosition.y+et.y},ft=t.children.length>0&&t.widget.expand&&!t.widget.isRoot,_t=t.children.length>0&&!t.widget.expand&&!t.widget.isRoot,Ct=v?y:0,kt=t.widget.isRoot||!ft?Ct+27:Ct+50,{w:Ot,h:Nt}=t.getMindNodeTextSize(),Xt={x:!t.widget.isRoot&&t.children.length?Iut(o,t,t.children[0],et):-10,y:Eut(o,t)},Vt=d.includes(p),Ut=h===p;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(Uut,{style:lt,className:E()("mind-node",{isEdit:a,"is-being-dragged":l},{"is-text-editing":i===t.key},{"can-hover":S}),"data-cid":t.key,paddingHorizontal:t.paddingHorizontal,paddingVertical:t.paddingVertical,borderWidth:Ct,frameInsert:Ct+3,operationDistance:kt,onClick:a?this.handleClick:null,onDoubleClick:a?this.handleDbClick:null,onMouseDown:a?this.handleMouseDown:null,children:[(0,m.jsx)("span",{className:E()("frame",{"is-select":_},{"is-select-child":C||N})}),(0,m.jsxs)("div",{className:E()("select-wrap",{"has-neighbor":ft},{"is-single-select":D}),style:{[x||"right"]:Xt.x,top:Xt.y},children:[t.widget.isRoot&&(0,m.jsx)(W1.A,{name:"common/add_plus",className:"icon-box add-icon left-root",onClick:Yt=>this.handleAddMindNode(Yt,{placement:"left"}),style:{left:"-"+(t.mindNodeSize.w+40)+"px"}}),t.widget.expand&&(0,m.jsx)(W1.A,{name:"common/add_plus",className:E()("icon-box add-icon "+x),onClick:Yt=>this.handleAddMindNode(Yt,{placement:t.widget.placement})}),ft&&a&&(0,m.jsx)(W1.A,{name:"common/subtract",className:"icon-box subtract-icon "+x,onClick:Yt=>this.handleToggleExpand(Yt,!1)}),_t&&(0,m.jsx)("span",{className:"icon-box nums "+t.widget.placement,onClick:Yt=>this.handleToggleExpand(Yt,!0),children:t.subCount})]}),(0,m.jsxs)("div",{className:"mind-container-content",children:[g&&(0,m.jsx)("div",{className:E()("flag-icon",{"is-select":C,"is-edit":a}),onClick:Yt=>a?this.handleClickFlagIcon(Yt):null,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:this.handleRenderIcon()}),(0,m.jsxs)("div",{className:"content-right",children:[(0,m.jsx)(But,{node:t,isEdit:a,selectedMindNodeImageKey:c,onSelectImage:this.handleClickImage,onImageView:this.handleImageView,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,dispatch:f}),(0,m.jsx)(H.HY,{widget:{...t==null?void 0:t.widget,w:Ot,h:Nt,richTextV1:{...t.widget.richTextV1,...q}}})]})]}),Vt&&(0,m.jsx)(Xut.o,{scale:MB.getScale(),className:E()({selected:Ut})})]}),t.widget.expand&&!t.widget.isRoot&&t.children.map(Yt=>(0,m.jsx)(Rv,{node:Yt,theme:o,rootNode:e,selectedMindNodeKeys:r,isBeingDragged:l!=null?l:r.includes(Yt.key)?u:void 0,isDragging:u,editMindNodeKey:i,isEdit:a,findReplaceWMindNodeKeys:d,findSelectWidgetCid:h,selectedMindNodeFlagIconKey:s,selectedMindNodeImageKey:c,updateMindSize:this.props.updateMindSize,addMindNode:this.props.addMindNode,openContextMenu:this.props.openContextMenu,onStartDrag:this.props.onStartDrag,dispatch:f},Yt.key))]})}}class Z5 extends b.PureComponent{render(){const{rootNode:t,widget:e,selectedMindNodeKeys:r=[],editMindNodeKey:i,isEdit:a,selectedMindNodeFlagIconKey:o,selectedMindNodeImageKey:s,findReplaceWMindNodeKeys:l,findSelectWidgetCid:u,updateMindSize:c,addMindNode:d,openContextMenu:h,isDragging:f,onlyView:p,unClickable:g,onStartDrag:v,dispatch:y}=this.props;return t?(0,m.jsxs)(Gut,{$unClickable:g,children:[(0,m.jsxs)("svg",{className:"minLine-children",children:[(0,m.jsx)(Ov,{current:t,theme:e.theme,rootNode:t}),t.widget.expand&&t.children.map(x=>(0,m.jsx)(Ov,{current:x,rootNode:t,strokeColor:e.theme===hr.d.RAINBOW?X5(x):null,theme:e.theme},x.key))]}),(0,m.jsxs)("div",{className:"minNode-children",children:[(0,m.jsx)(Rv,{node:t,rootNode:t,theme:e.theme,selectedMindNodeKeys:r,selectedMindNodeFlagIconKey:o,selectedMindNodeImageKey:s,editMindNodeKey:i,isEdit:a,isDragging:f,findReplaceWMindNodeKeys:l,findSelectWidgetCid:u,onlyView:p,updateMindSize:c,addMindNode:d,openContextMenu:h,onStartDrag:v,dispatch:y}),t.widget.expand&&t.children.map(x=>(0,m.jsx)(Rv,{node:x,rootNode:t,theme:e.theme,selectedMindNodeKeys:r,isBeingDragged:r.includes(x.key)?f:void 0,isDragging:f,editMindNodeKey:i,isEdit:a,selectedMindNodeFlagIconKey:o,selectedMindNodeImageKey:s,findReplaceWMindNodeKeys:l,findSelectWidgetCid:u,onlyView:p,updateMindSize:c,addMindNode:d,openContextMenu:h,onStartDrag:v,dispatch:y},x.key))]})]}):null}}const $5=n=>{let{widget:t,onlyView:e}=n;return!e&&!t.isLock&&!(0,c1.OO)(t.key)};class Yut extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"state",{isEdit:!1}),(0,k.A)(this,"handleClickCover",t=>{const{widget:e,isSelected:r,onlyView:i}=this.props;if(!r||!$5({widget:e,onlyView:i}))return;t.stopPropagation();const{metaKey:a,ctrlKey:o,clientX:s,clientY:l}=t;(a||o)&&this.enterEditMode(s,l)}),(0,k.A)(this,"handleDbClickCover",t=>{const{isSelected:e,onlyView:r,widget:i}=this.props;if($5({widget:i,onlyView:r})&&e){const{clientX:a,clientY:o}=t;this.enterEditMode(a,o)}}),(0,k.A)(this,"enterEditMode",(t,e)=>{const{widget:r,dispatch:i}=this.props;i({type:"mind:update:state",payload:{editMindKey:r.key}}),this.setState({isEdit:!0},()=>{const a=document.elementFromPoint(t,e);let o="";if(a){const s=a.closest(".mind-node");s&&(o=s.getAttribute("data-cid")||"")}i({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:o?[o]:[]}})})}),(0,k.A)(this,"canExitEditMind",t=>{const{isShowMindNodeMenu:e}=this.props;return!(t.target.closest(".--mb--color-picker")||t.target.closest(".draft-inline-toolbar")||t.target.closest(".WorkspaceSelectMenu")||t.target.closest(".image-panel-container")||t.target.closest(".draft-link-toast")||t.target.closest(".image-preview-modal")||t.target.closest(".draft-rich-text-editor")||e&&t.target.closest("#mind-node-menu")||e&&t.target.closest(".context-menu-mask"))}),(0,k.A)(this,"handleDocDown",t=>{const{editMindNodeKey:e,isLinkToastShow:r,isShallowEditText:i,dispatch:a}=this.props;if(this.canExitEditMind(t)){if(!t.target.closest(".draft-link-toast")&&r){["INPUT","LABEL","TEXTAREA"].includes(t.target.tagName)||(t.preventDefault(),t.stopPropagation()),Fut.A.emit("draft:link-toast:quit");return}if(e&&!i&&!t.target.closest(".draft-rich-text-editor")&&a({type:"quit:rich:text:editing"}),t.target.closest(".designMind.isEditing")){t.target.closest(".mind-node")||a({type:"mind:clear:edit:state"});return}this.setState({isEdit:!1}),a({type:"mind:exit:edit:state"})}}),(0,k.A)(this,"handleUpdateMindSize",async t=>{t&&this.props.dispatch({type:"entry:rebuild:screen-widget-tree"}),this.props.dispatch({type:"entry:mind:update:mind-size"})}),(0,k.A)(this,"handleAddMindNode",(t,e)=>{this.props.dispatch({type:"entry:mind:add:node-mind",payload:{node:t,attr:e,type:F1.eB.CHILD_LEVEL}})}),(0,k.A)(this,"handleOpenMindNodeContextmenu",t=>{let{left:e,top:r}=t;const{dispatch:i}=this.props;i({type:"entry:contextmenu:withtype",payload:{position:{top:r,left:e}}}),i({type:"mind:update:state",payload:{isShowMindNodeMenu:!0}})}),(0,k.A)(this,"handleStartDrag",(t,e)=>{this.props.dispatch({type:"entry:mind:start:drag:mind-node",payload:{e:t,mindNodeKey:e}})})}render(){const{onlyView:t,rootNode:e,widget:r,editMindKey:i,selectedMindNodeKeys:a,mindDraggingState:o,editMindNodeKey:s,selectedMindNodeFlagIconKey:l,selectedMindNodeImageKey:u,findReplaceWMindNodeKeys:c,findSelectWidgetCid:d,dispatch:h}=this.props,{isEdit:f}=this.state,{isDragging:p,mindNodeToAttach:g,attachToSelf:v,attachPosition:y}=o;return(0,m.jsxs)(Hut,{className:E()("designMind",{isEditing:i===r.key}),children:[f?(0,m.jsx)(mn.A,{target:document.body,onMouseDown:(0,mn.t)(this.handleDocDown,{capture:!0})}):t?null:(0,m.jsx)("div",{className:"cover",onClick:this.handleClickCover,onDoubleClick:this.handleDbClickCover}),(0,m.jsx)(Z5,{rootNode:e,widget:r,isDragging:p,selectedMindNodeKeys:a,editMindNodeKey:s,isEdit:i===r.key,selectedMindNodeFlagIconKey:l,selectedMindNodeImageKey:u,findReplaceWMindNodeKeys:c,findSelectWidgetCid:d,updateMindSize:this.handleUpdateMindSize,addMindNode:this.handleAddMindNode,openContextMenu:this.handleOpenMindNodeContextmenu,onStartDrag:this.handleStartDrag,onlyView:t,unClickable:t,dispatch:h}),p&&g&&i===r.key&&(0,m.jsx)(Kut,{children:(0,m.jsx)(Vut,{rootNode:e,mindNodeToAttach:g,attachPosition:y,theme:r.theme,attachToSelf:v})}),a.length>0&&(0,m.jsx)(but.NH,{sheet:(0,F1.iv)(this.props.dispatch)})]})}}const Zut=(0,J.Ng)((n,t)=>{const e=(0,mf.p$)(n),r=(0,zs.WH)(n),i=(0,zs.ul)(n),a=(0,zs.A6)(n),o=(0,zs.UN)(n),s=(0,zs.g0)(n),l=(0,zs.H_)(n),u=(0,Ci.jx)(n),{findReplaceWMindNodeKeys:c}=(0,Y5.W)(n),d=(0,Y5.gP)(n),h=(0,zs.jZ)(n),f=(0,zs.aJ)(n),p=u===Vi.qi.OnlyView,g=Wut.k.Query.getLinkToastShow(n),v=e.includes(t.widget.cid);return{editMindKey:r,selectedMindNodeKeys:i,editMindNodeKey:a,selectedMindNodeFlagIconKey:o,selectedMindNodeImageKey:s,onlyView:p,mindDraggingState:l,findReplaceWMindNodeKeys:c,findSelectWidgetCid:d,isShowMindNodeMenu:h,isLinkToastShow:g,isShallowEditText:f,isSelected:v}})(Yut),$ut=n=>({...(0,K.u6)(n),...(0,K.Um)(n),background:(0,$.n7)(n),color:"#101010"}),j1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;const a=()=>{if(r==="design"){var o;return(0,m.jsx)(Zut,{widget:t,rootNode:(o=e.children[0])==null?void 0:o.children.find(l=>l.widget.isRoot)})}if(r==="preview"||r==="snapshot"){var s;return(0,m.jsx)(Z5,{widget:t,rootNode:(s=e.children[0])==null?void 0:s.children.find(u=>u.widget.isRoot),unClickable:!0})}};return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,style:{...$ut(t)},children:a()})});class Jut extends M.n{renderWidgetContent(t){return(0,m.jsx)(j1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Qut extends W.f{renderWidgetContent(t){return(0,m.jsx)(j1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class qut extends st.j{renderWidgetContent(t){return(0,m.jsx)(j1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const tct=[Jut,Qut,qut];class ect extends M.t{renderWidgetContent(){return null}}class nct extends W.H{renderWidgetContent(){return null}}class rct extends st.X{renderWidgetContent(){return null}}const ict=[ect,nct,rct];class act extends b.PureComponent{render(){const{firstLevel:t,path:e,node:r,level:i,isShowIcon:a,selectNodeStyle:o,nodeStyle:s,onExpandItem:l,onSelectedItem:u,onUpdate:c,canEditText:d,isCreatePortalList:h,treeNode:f,panelCid:p,showLinkTag:g,tree:v,handleCheckNode:y,linkQueryArray:x,treeKey:S,optionDataSelected:_,optionDataDesignUnExpanded:D}=this.props;return(0,m.jsx)("div",{className:E()("childrenListWrap",{firstLevel:t}),children:(0,m.jsx)("ul",{className:E()("childrenList",{pcanvas:h}),children:r.children.map((C,N)=>(0,m.jsx)(Q5,{path:e+"-"+N,node:C,parent:r,level:i+1,selectNodeStyle:o,nodeStyle:s,isShowIcon:a,onSelectedItem:u,onExpandItem:l,handleCheckNode:y,onUpdate:c,canEditText:d,treeNode:f,panelCid:p,showLinkTag:g,tree:v,linkQueryArray:x,treeKey:S,optionDataSelected:_,optionDataDesignUnExpanded:D},e+"-"+N))})})}}var J5=w(72254);class Q5 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"preventTimer",null),(0,k.A)(this,"interactionWrapper",t=>{this.preventTimer&&clearTimeout(this.preventTimer),MB.runnerController&&MB.runnerController.setIsPreventEvent(!0),t(),this.preventTimer=setTimeout(()=>{MB.runnerController&&MB.runnerController.setIsPreventEvent(!1)},400)}),(0,k.A)(this,"handleSelecteItem",t=>{t.stopPropagation();const{onSelectedItem:e,path:r,node:i}=this.props;e({node:i,path:r})}),(0,k.A)(this,"handleClickExpand",t=>{t.stopPropagation(),this.interactionWrapper(()=>{const{onExpandItem:e,path:r,node:i}=this.props;e({node:i,path:r})})}),(0,k.A)(this,"handleChangeName",t=>{t.stopPropagation();const{node:e,onUpdate:r,parent:i,path:a}=this.props,o={...e.data,name:t.target.value};r({data:o,path:a,parent:i})}),(0,k.A)(this,"hanldeNodeChangeCheck",(t,e)=>{t.stopPropagation(),this.interactionWrapper(()=>{const{node:r,path:i,handleCheckNode:a}=this.props;a({node:r,path:i,selectStatus:e})})})}render(){const{canEditText:t,node:e,node:{children:r,data:{cid:i,name:a,icon:o,linkCids:s}},level:l,nodeStyle:u,selectNodeStyle:c,path:d,panelCid:h,showLinkTag:f,tree:p,linkQueryArray:g,treeKey:v,treeNode:y,optionDataSelected:x,optionDataDesignUnExpanded:S}=this.props,_=y.widget["!version"],D=(0,Hr.XZ)({optionData:e,optionDataDesignUnExpanded:S,widgetVersion:_}),C=(0,Hr.lt)({optionData:e,optionDataSelected:x,widgetVersion:_}),N=r.length>0,q=l===1,et=D&&N,lt=p.isShowNodeIcon,_t={...C?c:u,paddingLeft:16+(l-1)*p.nodeIndent+"px"},{hasUiInteractiveIta:Ct,hasInteractiveIta:kt,interactiveCids:Ot,firstUiInteractiveIta:Nt,itaClassName:Xt}=(0,Pa.HW)(g,s),Vt=f&&Ct,Ut=D?"expand":"fold";let Yt=0,ue=0,ie="no";if(p.isShowCheckbox){var Gt;(Gt=e.children)!=null&&Gt.length?((0,zr.qS)(e.children,(me,De,Pe)=>{var Ce;const Ee=Pe+"-"+De;return(Ce=me.children)!=null&&Ce.length||(Yt+=1,me.data.checked&&(ue+=1)),Ee},d),Yt===ue?ie="select":ue>0&&ue<Yt?ie="half":ie="no"):ie=e.data.checked?"select":"no"}const Qt=o||(l===1?J5.zS:J5.bS);return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("li",{className:E()("node canClickableHighWidget",{selected:C}),children:[(0,m.jsxs)("div",{className:E()("content",Xt,{firstLevel:q}),style:_t,onClick:this.handleSelecteItem,"data-container-cid":v,"data-link_cid":Ot,"data-panel_cid":h,children:[(0,m.jsxs)("div",{className:"leftContent",children:[p.isShowFoldSymbol&&(0,m.jsx)(Vr.C,{onClick:this.handleClickExpand,className:N?"visible":"hidden",name:"tree_node/"+p.foldSymbol+"_"+Ut}),p.isShowCheckbox&&(0,m.jsx)(Vr.C,{isColorPure:!0,className:""+ie,onClick:me=>this.hanldeNodeChangeCheck(me,ie),name:"tree_node/checkbox_"+ie}),lt&&(0,m.jsx)("span",{className:"iconWrap",children:(0,m.jsx)(h1.F,{cid:i,className:"svg-icon fill",path:Qt.path,viewBox:Qt.viewBox})}),(0,m.jsx)(Lv,{hiKey:v,canEditText:t,value:a,onChangeValue:this.handleChangeName,inputStyle:{color:_t.color}})]}),Vt&&Nt&&(0,m.jsx)(qa.LX,{interactionKey:Nt.key}),kt&&(0,m.jsx)("div",{className:"region gesture"})]}),et&&(0,m.jsx)(act,{firstLevel:q,path:d,node:e,level:l,showLinkTag:f,...this.props})]})})}}const oct=R.Ay.div.withConfig({displayName:"styles__StyledTreeContainer",componentId:"sc-1mbp6jh-0"})(["ul.tree-root{width:100%;height:100%;list-style:none;overflow-x:hidden;overflow-y:auto;}li.node{list-style:none;.content{display:flex;justify-content:space-between;align-items:center;padding:0 16px;position:relative;width:100%;min-width:160px;.leftContent > *{margin-right:8px;}.leftContent{display:flex;align-items:center;overflow:hidden;flex:1;.editable-span-wrap{flex:1;.editable-span{white-space:pre;}}.iconWrap{display:flex;width:1.2em;height:1.2em;svg{width:100%;height:100%;}}.hidden{visibility:hidden;}.select > :first-child,.half > :first-child{fill:",";}.no > :first-child{fill:",";}}}}"],n=>n.$checkboxSelectColor,n=>n.$checkboxNoColor);class z1 extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"setScrollElement",t=>this.$scrollElement=t),(0,k.A)(this,"handleWheel",t=>{this.$scrollElement.clientHeight===this.$scrollElement.scrollHeight&&this.$scrollElement.clientWidth===this.$scrollElement.scrollWidth||t.stopPropagation()})}componentDidMount(){this.$scrollElement.addEventListener("wheel",this.handleWheel,{capture:!0});const{treeNode:{widget:t},onlyView:e}=this.props;e||t["!version"]!==2&&(0,dm.Tx)()&&setTimeout(()=>{MB.action&&MB.action("entry:navigationMenu:migrate",{key:t.key})},30)}componentWillUnmount(){this.$scrollElement.removeEventListener("wheel",this.handleWheel,{capture:!0})}render(){const{optionData:t,canEditText:e,onExpandItem:r,onSelectedItem:i,onUpdate:a,showLinkTag:o,handleCheckNode:s}=this.props,{panelCid:l,treeNode:u,treeNode:{widget:{w:c,h:d,cid:h,tree:f,textV0:p,border:g,borderVisibility:v,fill:y,selectNode:x}},isEditing:S,optionDataDesignUnExpanded:_,optionDataSelected:D}=this.props,{isShowNodeIcon:C,nodeHeight:N}=f,{fontSize:q,textColor:et}=p,{isSelectNodeBackgroundVisible:lt,selectNodeBackground:ft,fontSize:_t}=x,Ct={width:c,height:d,...(0,K.Zv)(p),pointerEvents:S?"auto":"none",cursor:S?"pointer":"",backgroundColor:y.fillIsVisible?(0,P.t0)(y.solidColor):"transparent",...(0,K.Um)({border:g,borderVisibility:v})},kt={fontSize:q,color:(0,P.t0)(et),height:N+"px",textDecoration:(0,K.RL)(p),fontWeight:(0,K.Cz)(p),fontStyle:(0,K.lI)(p)},Ot={...(0,K.Zv)(x),background:lt?(0,P.t0)(ft):"transparent",fontSize:_t,height:N+"px"},Nt=(0,P.t0)(f.checkboxSelectColor),Xt=(0,P.t0)(f.checkboxNoColor),Vt=(0,ri.DS)(this.props.treeNode.widgetStore.sdkStore,this.props.treeNode.key,this.props.treeNode.runningIsEditingCombo,this.props.treeNode.editingBDanliKey);return(0,m.jsx)(oct,{style:Ct,$checkboxSelectColor:Nt,$checkboxNoColor:Xt,children:(0,m.jsx)("ul",{className:"tree-root",ref:this.setScrollElement,children:t.map((Ut,Yt)=>(0,m.jsx)(Q5,{path:""+Yt,isShowIcon:C,node:Ut,parent:null,level:1,selectNodeStyle:Ot,nodeStyle:kt,onExpandItem:r,onSelectedItem:i,onUpdate:a,handleCheckNode:s,canEditText:e,treeNode:u,panelCid:l,showLinkTag:o,tree:f,linkQueryArray:Vt,treeKey:h,optionDataDesignUnExpanded:_,optionDataSelected:D},""+Yt))})})}}const q5=n=>{let{node:t,path:e,selectStatus:r,newOptionData:i}=n;const a=e.split("-");let o=null;if(a.length===1)o=i[e];else{const s=l=>{o=l};(0,zr.PM)({newOptionData:i,pathArr:e.split("-"),onUpdate:s})}t.children.length?r==="select"||r==="half"?(0,zr.sV)(o.children,s=>{s.children.length<1&&(s.data.checked=!1)}):(0,zr.sV)(o.children,s=>{s.children.length<1&&(s.data.checked=!0)}):r==="select"?o.data.checked=!1:o.data.checked=!0};class sct extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onUpdate",t=>{MB.action("entry:widget:change",{flatChgList:[{key:this.props.treeNode.key,hotAttr:t}]})}),(0,k.A)(this,"handleExpandItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a,optionDataDesignUnExpanded:o}}}=this.props,s=qn()(a);i["!version"]===2?(0,Hr.E3)({node:e,widget:i,optionDataDesignUnExpanded:o,onUpdate:this.onUpdate}):(0,Hr.eh)({node:e,path:r,newOptionData:s,canExpandOneMenu:!1,onUpdate:this.onUpdate,widgetType:"wTree"})}),(0,k.A)(this,"handleSelectedItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a,optionDataSelected:o}},isEditing:s}=this.props;if(!s)return;const l=qn()(a);i["!version"]===2?(0,Hr.hZ)({node:e,optionDataSelected:o,onUpdate:this.onUpdate}):(0,Hr.Bf)({node:e,path:r,newOptionData:l,onUpdate:this.onUpdate})}),(0,k.A)(this,"handleCheckNode",t=>{let{node:e,path:r,selectStatus:i}=t;const{treeNode:{widget:{optionData:a}}}=this.props,o=qn()(a);q5({newOptionData:o,node:e,path:r,selectStatus:i}),this.onUpdate({optionData:o})}),(0,k.A)(this,"handleUpdate",t=>{let{data:e,path:r,parent:i}=t;const{treeNode:{widget:{optionData:a}}}=this.props,o=r.split("-"),s=o[o.length-1],l=qn()(a);if(!i)l[s].data=e;else{const u=c=>{c.data=e};(0,zr.PM)({newOptionData:l,pathArr:o,onUpdate:u})}this.onUpdate({optionData:l})})}render(){const{treeNode:{widget:t},isEditing:e,treeNode:r,showLinkTag:i,onlyView:a}=this.props;return(0,m.jsx)(z1,{optionData:t.optionData,treeNode:r,onExpandItem:this.handleExpandItem,onSelectedItem:this.handleSelectedItem,handleCheckNode:this.handleCheckNode,onUpdate:this.handleUpdate,canEditText:e,isEditing:e,showLinkTag:i,onlyView:a,optionDataSelected:t.optionDataSelected,optionDataDesignUnExpanded:t.optionDataDesignUnExpanded})}}class lct extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"onUpdate",t=>{const{dispatch:e,treeNode:{widget:{key:r,optionData:i,optionDataDesignUnExpanded:a,optionDataSelected:o}},runnerTreeData:s}=this.props,l={optionData:i,optionDataDesignUnExpanded:a,optionDataSelected:o},u={...s,...t};e({type:"entry:runner:updateOrAppend:widgetStatus",payload:{key:r,status:u,defaultStatus:l}})}),(0,k.A)(this,"handleExpandItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a}},runnerTreeData:o}=this.props,s=o!=null&&o.optionData?qn()(o.optionData):qn()(a),l=(o==null?void 0:o.optionDataDesignUnExpanded)||(i==null?void 0:i.optionDataDesignUnExpanded);i["!version"]===2?(0,Hr.E3)({node:e,widget:i,optionDataDesignUnExpanded:l,onUpdate:this.onUpdate}):(0,Hr.eh)({node:e,path:r,newOptionData:s,canExpandOneMenu:!1,onUpdate:this.onUpdate,widgetType:"wTree"})}),(0,k.A)(this,"handleSelectedItem",t=>{let{node:e,path:r}=t;const{treeNode:{widget:i,widget:{optionData:a}},runnerTreeData:o}=this.props,s=o!=null&&o.optionData?qn()(o.optionData):qn()(a),l=(o==null?void 0:o.optionDataSelected)||(i==null?void 0:i.optionDataSelected);i["!version"]===2?(0,Hr.hZ)({node:e,optionDataSelected:l,onUpdate:this.onUpdate}):(0,Hr.Bf)({node:e,path:r,newOptionData:s,onUpdate:this.onUpdate})}),(0,k.A)(this,"handleCheckNode",t=>{let{node:e,path:r,selectStatus:i}=t;const{treeNode:{widget:{optionData:a}},runnerTreeData:o}=this.props,s=o!=null&&o.optionData?qn()(o.optionData):qn()(a);q5({newOptionData:s,node:e,path:r,selectStatus:i}),this.onUpdate({optionData:s})})}componentDidUpdate(t,e,r){(0,zr.a9)(t.runnerTreeData,this.props.runnerTreeData,this.props.treeNode.widget.key)}render(){const{runnerTreeData:t,treeNode:e,treeNode:{widget:r},panelCid:i}=this.props,a=(t==null?void 0:t.optionData)||r.optionData;return(0,m.jsx)(z1,{isEditing:!0,onExpandItem:this.handleExpandItem,onSelectedItem:this.handleSelectedItem,handleCheckNode:this.handleCheckNode,optionData:a,optionDataDesignUnExpanded:(t==null?void 0:t.optionDataDesignUnExpanded)||r.optionDataDesignUnExpanded,optionDataSelected:(t==null?void 0:t.optionDataSelected)||r.optionDataSelected,canEditText:!1,treeNode:e,panelCid:i})}}const uct=(n,t)=>{var e;const{widgetStatusMap:r}=(0,pt.mf)(n),{treeNode:{widget:{key:i}}}=t;return{runnerTreeData:(e=r[i])==null?void 0:e.status}},cct=(0,J.Ng)(uct)(lct),H1=(0,b.memo)(n=>{let{treeNode:t,mode:e,panelCid:r,isEditing:i,onlyView:a,isSupMkt:o=!1}=n;const{widget:s}=t,l=()=>{if(e==="design")return(0,m.jsx)(sct,{treeNode:t,isEditing:i,showLinkTag:!0,onlyView:a});if(e==="preview")return(0,m.jsx)(cct,{treeNode:t,panelCid:r});if(e==="snapshot")return(0,m.jsx)(z1,{treeNode:t,optionData:s.optionData,optionDataSelected:s==null?void 0:s.optionDataSelected,optionDataDesignUnExpanded:s==null?void 0:s.optionDataDesignUnExpanded})};return(0,m.jsx)(rt.cl,{treeData:t,widget:s,mode:e,isSupMkt:o,children:l()})});class dct extends M.n{renderWidgetContent(t){const{editingEditableWidgetCid:e,onlyView:r}=t,i=this.widget.key===e&&!r;return(0,m.jsx)(H1,{treeNode:this,isEditing:i,mode:"design",isSupMkt:t.isSupMkt,onlyView:r})}}class hct extends W.f{renderWidgetContent(t){const{panelCid:e}=t;return(0,m.jsx)(H1,{treeNode:this,panelCid:e,mode:"preview",isSupMkt:t.isSupMkt})}}class fct extends st.j{renderWidgetContent(t){return(0,m.jsx)(H1,{treeNode:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const pct=[dct,hct,fct];var tB=w(99895),eB=w(99388);const nB=R.Ay.div.withConfig({displayName:"styles__StyledCode",componentId:"sc-3f1q4l-0"})(["display:flex;justify-content:inherit;align-items:inherit;position:absolute;height:100%;width:100%;pointer-events:none;&.is-allow{pointer-events:auto;}&.code-wrapper{iframe{width:100%;height:100%;border:none;}}"]),gct=R.Ay.div.withConfig({displayName:"styles__StyledCodePlaceHolder",componentId:"sc-3f1q4l-1"})(["width:100%;height:100%;background:",";display:flex;flex-direction:column;justify-content:center;align-items:center;.name{font-size:14px;font-weight:500px;margin-top:14px;}"],n=>n.theme.color_bg_card);var vct=w(17084);const rB="\n <style>\n html, body {\n margin: 0;\n width: 100%;\n height: 100%;\n user-select: none;\n }\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n \n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: rgb(219, 219, 219);\n border-radius: 4px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n </style>\n <script>\n // \u8BBE\u7F6Eiframe\u7684\u5BBD\u9AD8\u4E3A100%\n document.addEventListener('DOMContentLoaded', () => {\n document.documentElement.style.setProperty('--uiWidth', `100%`);\n document.documentElement.style.setProperty('--uiHeight', `100%`);\n }, true);\n <\/script>\n",mct="\n <style>\n * {\n cursor: "+vct.M.default+" !important;\n }\n </style>\n",yct="\n <script>\n // \u7981\u7528 event \u4E8B\u4EF6\n const events = ['contextmenu', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'keydown', 'keyup', 'keypress' ]\n events.forEach(event => {\n document.addEventListener(event, (e) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n }, true);\n })\n // \u7981\u7528\u5C4F\u5E55\u7F29\u653E\n document.addEventListener('wheel', function (e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation()\n }\n }, { passive: false })\n <\/script>\n",xct="\n<script>\nconst selectedElementSet = new Set()\nconst elementOutlineMap = new WeakMap()\nconst HOVER_OUTLINE = '2px solid rgba(128, 188, 255, 1)'\nconst SELECT_OUTLINE = '2px solid rgba(22, 132, 252, 1)'\n\nfunction stopPropagation(e) {\n e.stopPropagation()\n e.preventDefault()\n e.stopImmediatePropagation()\n}\n\nfunction setOutline(targetElement, outline) {\n const originOutline = targetElement.style.outline\n const originOutlineOffset = targetElement.style.outlineOffset\n \n // \u53EA\u6709\u7B2C\u4E00\u6B21\u8BBE\u7F6Eoutline\u65F6\u624D\u8BB0\u5F55\u539F\u59CBoutline\n if(!elementOutlineMap.has(targetElement)) elementOutlineMap.set(targetElement, { originOutline, originOutlineOffset })\n\n targetElement.style.outline = outline\n targetElement.style.outlineOffset = '-2px'\n}\n\nfunction restoringOutline(targetElement) {\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(targetElement) || { originOutline: '', originOutlineOffset: ''}\n targetElement.style.outline = originOutline\n targetElement.style.outlineOffset = originOutlineOffset\n}\n\nfunction mouseOverHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, HOVER_OUTLINE)\n}\n\nfunction mouseOutHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n restoringOutline(targetElement)\n}\n\nfunction clickHandler(event) {\n stopPropagation(event)\n if(event.shiftKey) {\n shiftKeySelectElement(event)\n } else {\n commonSelectElement(event)\n } \n const selectedElementList = Array.from(selectedElementSet).map(element => {\n const cloneElement = element.cloneNode(true)\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(element) || { originOutline: '', originOutlineOffset: ''}\n cloneElement.style.outline = originOutline\n cloneElement.style.outlineOffset = originOutlineOffset\n return cloneElement.outerHTML\n })\n window.parent.postMessage({type: 'updateSelectedElement', selectedElementList}, '*')\n}\n\nfunction clearSelectedElement() {\n selectedElementSet.forEach(element => { restoringOutline(element) })\n selectedElementSet.clear()\n}\n\nfunction commonSelectElement(event) {\n clearSelectedElement()\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n}\n\nfunction shiftKeySelectElement(event) {\n const targetElement = event.target\n if(!selectedElementSet.has(targetElement)) {\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n } else {\n restoringOutline(targetElement)\n selectedElementSet.delete(targetElement)\n }\n}\n\n\ndocument.addEventListener('mouseover', mouseOverHandler, true);\ndocument.addEventListener('mouseout', mouseOutHandler, true);\ndocument.addEventListener('click', clickHandler, true);\n\nwindow.addEventListener('message', (e) => {\n if(e.data.type === 'clearSelectedElement') {\n clearSelectedElement();\n }\n});\n<\/script>\n",Sct="\n<script>\n window.addEventListener('message', function (e) {\n if (e.data.type === 'reloadWidget') {\n window.location.reload()\n }\n })\n<\/script>\n",wct=b.memo(n=>{let{iframeRef:t,renderHTML:e}=n;return(0,m.jsx)("iframe",{ref:t,srcDoc:e,sandbox:"allow-scripts",loading:"lazy"})});class _ct extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"iframeRef",b.createRef()),(0,k.A)(this,"getIsCanQuitEdit",t=>!(t.target.closest(".draft-inline-toolbar")||t.target.closest("#ai-component-input-container")||t.target.closest(".context-menu-mask"))),(0,k.A)(this,"handleDocDown",t=>{this.getIsCanQuitEdit(t)&&this.props.dispatch({type:"entry:aiComponent:quit:edit"})}),(0,k.A)(this,"handleMessage",t=>{if(t.data.type!=="updateSelectedElement")return;const{selectedElementList:e}=t.data;this.props.dispatch({type:"ai-component:update:selectedElementList",payload:{selectedElementList:e}})}),(0,k.A)(this,"clearSelectedElement",()=>{var t;(t=this.iframeRef.current)==null||(t=t.contentWindow)==null||t.postMessage({type:"clearSelectedElement"},"*")})}async componentDidMount(){window.addEventListener("message",this.handleMessage);const{selectedElementList:t,mode:e}=this.props;e==="design"&&(t==null?void 0:t.length)===0&&this.clearSelectedElement()}async componentDidUpdate(t,e,r){const{selectedElementList:i,mode:a}=this.props;a==="design"&&t.selectedElementList.length!==i.length&&i.length===0&&this.clearSelectedElement()}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{widget:t,treeData:e,mode:r,editingAIComponentKey:i,isSupMkt:a=!1}=this.props,o=r==="design"&&i===t.cid,s=(0,eB.f)(t.injection).replace("<head>",rB+mct+yct+"<head>").replace("</body>",xct+"</body>");return(0,m.jsxs)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:a,children:[o&&(0,m.jsx)(mn.A,{target:document,onMouseDown:(0,mn.t)(this.handleDocDown,{capture:!0})}),(0,m.jsx)(nB,{className:E()("code-wrapper",{"is-allow":o}),children:s&&(0,m.jsx)(wct,{iframeRef:this.iframeRef,renderHTML:s})})]})}}const bct=(0,J.Ng)(n=>{const t=(0,tB.Bq)(n),e=(0,tB.PU)(n);return{editingAIComponentKey:t,selectedElementList:e}})(_ct);class Cct extends b.PureComponent{render(){const{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=this.props,a=(0,eB.f)(t.injection).replace("<head>",rB+"<head>").replace("</body>",Sct+"</body>");return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsx)(nB,{className:E()("code-wrapper",{"is-allow":!0}),children:a&&(0,m.jsx)("iframe",{sandbox:"allow-scripts",srcDoc:a},t.key+"-"+a)})})}}class Mct extends b.PureComponent{constructor(){super(...arguments),(0,k.A)(this,"getPlaceHolderStatus",(t,e)=>{const r=Math.min(t,e);return r<96?{imgWidth:Math.floor(r/2),isShowName:!1}:{imgWidth:Math.floor(r/3),isShowName:!0}})}render(){const{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=this.props,{w:a,h:o}=t,{imgWidth:s,isShowName:l}=this.getPlaceHolderStatus(a,o);return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:(0,m.jsxs)(gct,{children:[(0,m.jsx)("img",{style:{width:s},src:"/mb-proto2/images/widget/code_widget_placeholder.png",alt:"code-widget-placeholder"}),l&&(0,m.jsx)("div",{className:"name",children:t.display_name})]})})}}class Tct extends M.n{renderWidgetContent(t){return(0,m.jsx)(bct,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Dct extends W.f{renderWidgetContent(t){return(0,m.jsx)(Cct,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class kct extends st.j{renderWidgetContent(t){return(0,m.jsx)(Mct,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Pct=[Tct,Dct,kct],Act=R.Ay.img.withConfig({displayName:"styles__StyledGraph",componentId:"sc-hia7pw-0"})(["width:100%;height:100%;pointer-events:none;"]),Ict=n=>{let{widget:t}=n;const{imgWidth:e,isShowName:r}=(0,b.useMemo)(()=>{const{w:i,h:a}=t,o=Math.min(i,a);return o<96?{imgWidth:Math.floor(o/2),isShowName:!1}:{imgWidth:Math.floor(o/3),isShowName:!0}},[t.w,t.h]);return(0,m.jsxs)(Ect,{children:[(0,m.jsx)("img",{style:{width:e},className:"placeholder-image",src:"/mb-proto2/images/widget/graph_widget_placeholder.png",alt:"code-widget-placeholder"}),r&&(0,m.jsx)("div",{className:"name",children:"\u6682\u65E0\u5185\u5BB9"})]})},U1=(0,b.memo)(n=>{let{widget:t,treeData:e,mode:r,isSupMkt:i=!1}=n;return(0,m.jsx)(rt.cl,{treeData:e,widget:t,mode:r,isSupMkt:i,children:t.xmlData?(0,m.jsx)(Act,{src:t.xmlData}):(0,m.jsx)(Ict,{widget:t})})}),Ect=R.Ay.div.withConfig({displayName:"render__StyledGraphPlaceHolder",componentId:"sc-1xrcv07-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;.name{font-size:14px;font-weight:500px;margin-top:14px;color:",";}.placeholder-image{pointer-events:none;}"],n=>n.theme.color_text_L3);class Lct extends M.n{renderWidgetContent(t){return(0,m.jsx)(U1,{widget:this.widget,treeData:this,mode:"design",isSupMkt:t.isSupMkt})}}class Oct extends W.f{renderWidgetContent(t){return(0,m.jsx)(U1,{widget:this.widget,treeData:this,mode:"preview",isSupMkt:t.isSupMkt})}}class Rct extends st.j{renderWidgetContent(t){return(0,m.jsx)(U1,{widget:this.widget,treeData:this,mode:"snapshot",isSupMkt:t.isSupMkt})}}const Nct=[Lct,Oct,Rct];let Nv=function(n){return n[n.design=0]="design",n[n.preview=1]="preview",n[n.snapshot=2]="snapshot",n}({});function Bct(n){const t=[Nv.design,Nv.preview,Nv.snapshot].indexOf(n),e={[O.x.WMTooltip]:F[t],[O.x.WIOSSwitch]:It[t],[O.x.WIphoneXSB]:bn[t],[O.x.WIphoneSB]:Qe[t],[O.x.WAndroidSB]:On[t],[O.x.WMTextInput]:xe[t],[O.x.WMTextArea]:Sr[t],[O.x.WMFileInput]:Gr[t],[O.x.WMSelect]:Ft[t],[O.x.WButton]:Dr[t],[O.x.WButtonSolid]:Dr[t],[O.x.WAndroidSwitch]:vu[t],[O.x.WSticky]:Fv[t],[O.x.WMapView]:DB[t],[O.x.WAndroidCB]:ta[t],[O.x.WAndroidRadio]:lB[t],[O.x.WWebpage]:pB[t],[O.x.WTabItem]:HB[t],[O.x.WIconButton]:xB[t],[O.x.WIcon]:NB[t],[O.x.WVideo]:H3[t],[O.x.WQRCode]:J3[t],[O.x.WChart]:Pat[t],[O.x.WCarousel]:n3[t],[O.x.WTable]:M3[t],[O.x.WVe]:Tu[t],[O.x.WIosCB]:ze[t],[O.x.WSearchBar]:Yc[t],[O.x.WRichText]:H.Ay[t],[O.x.WDigitalStepper]:Vat[t],[O.x.WPaginationMobile]:tot[t],[O.x.WPaginationWeb]:Yat[t],[O.x.WSlider]:oot[t],[O.x.WDropMenu]:Wot[t],[O.x.WNavigationMenu]:g1[t],[O.x.WNavigationMenuV]:g1[t],[O.x.WNavigationMenuH]:g1[t],[O.x.WCollapse]:sst[t],[O.x.WSegmentedControl]:vst[t],[O.x.WTabs]:Nst[t],[O.x.WMobileTabBars]:Ust[t],[O.x.WSelectionControl]:Dst[t],[O.x.RbPage]:Y[t],[O.x.Canvas]:tlt[t],[O.x.WBasket]:ult[t],[O.x.WRect]:he[t],[O.x.WWrap]:p4[t],[O.x.WOval]:he[t],[O.x.WAudio]:O3[t],[O.x.WImage]:c3[t],[O.x.WPolygon]:r4[t],[O.x.WStar]:c4[t],[O.x.WLine]:Qi.Ay[t],[O.x.WArrow]:$c[t],[O.x.WTriangleB]:rf[t],[O.x.WTriangleTL]:rf[t],[O.x.WPlaceholder]:$B[t],[O.x.WLR]:de[t],[O.x.WElbow]:Olt[t],[O.x.WTear]:Rlt.A[t],[O.x.WUnifiedKeyboard]:nt[t],[O.x.WVector]:jlt[t],[O.x.WTriangle]:Ylt[t],[O.x.WSwimlane]:uut[t],[O.x.wFlowClosed]:vut[t],[O.x.WFlowOpened]:_ut[t],[O.x.WMind]:tct[t],[O.x.WMindNode]:ict[t],[O.x.WTree]:pct[t],[O.x.WCode]:Pct[t],[O.x.WGraph]:Nct[t]};return(r,i,a,o,s,l)=>e[r]?new e[r](i,a,o,s,l):null}},7997:($t,wt,w)=>{"use strict";w.d(wt,{G:()=>st,Z:()=>W});var Z=w(86998),I=w(92021),O=w(61269),b=w(40829),M=w(90176);const W=rt=>{let{widget:m,x1:U,y1:A,x2:j,y2:it,isDragSelected:Y=!1}=rt;U=Number(U),A=Number(A),j=Number(j),it=Number(it),U<j&&A>it?[A,it]=[it,A]:U>j&&A<it?[U,j]=[j,U]:(U>j||A>it)&&([U,j,A,it]=[j,U,it,A]);const{mergeCells:P}=m.tableData;if(!Y){let ot=U,G=A,z=j,F=it;for(let k=U;k<=j;k++)for(let ut=A;ut<=it;ut++)if(P[k+"-"+ut]){const[E,J]=P[k+"-"+ut],[dt,pt]=[k,ut],[T,ht]=[k+Number(E)-1,ut+Number(J)-1];ot=Math.min(ot,dt),G=Math.min(G,pt),z=Math.max(z,T),F=Math.max(F,ht)}[U,j,A,it]=[ot,z,G,F]}U=U<0?0:U,j=j<0?0:j,A=A<0?0:A,it=it<0?0:it;const R=Z.A.getColumnNameFromId([U,A]),at=Z.A.getColumnNameFromId([j,it]),$={x:Number(U),y:Number(A)},K={x:Number(j),y:Number(it)};let H=!1;if(!I.a.tableHandle)return;const B={key:U+"-"+A,value:[j-U+1,it-A+1]};P[B.key]&&P[B.key].join()===B.value.join()&&(H=!0);const X={selectionLeftTopInfo:{x:U,y:A},selectionRightBottomInfo:{x:j,y:it}};(0,M.HU)({widget:m,selectTableCellInfo:X}).length>0&&(H=!0),(!I.a.tableHandle||I.a.tableHandle&&!I.a.tableHandle.selectedCell)&&(I.a.tableHandle.selectedCell=[U,A,j,it]);const V={selectionLeftTopName:R,selectionRightBottomName:at,selectionLeftTopInfo:$,selectionRightBottomInfo:K,isCanRemoveMerge:H};(0,O.t0)({selectTableCellInfo:V,widget:m});const L=(0,b.SS)(m)?(0,O.J5)(m,V):(0,O.zO)(m,V);Array.isArray(L)?MB.action("links:active:link",{cid:[...L]}):MB.action("links:active:link",{cid:[]})},st=rt=>{let{x:m,y:U,widget:A,selectTableCellInfo:j}=rt;if(j){const{selectionLeftTopInfo:{x:it,y:Y},selectionRightBottomInfo:{x:P,y:R}}=j;if(m>=it&&m<=P&&U>=Y&&U<=R)return}W({widget:A,x1:m,y1:U,x2:m,y2:U})}},21840:($t,wt,w)=>{"use strict";w.d(wt,{PM:()=>M,a9:()=>U,qL:()=>rt,qS:()=>O,sV:()=>I,u2:()=>W,vA:()=>b});var Z=w(88223);const I=(A,j)=>{A.forEach(it=>{j(it),I(it.children,j)})},O=(A,j,it)=>{A.forEach((Y,P)=>{const R=j(Y,P,it);Y.children&&O(Y.children,j,R)})},b=A=>{let j=0;return I(A,()=>{j++}),j},M=A=>{let{newOptionData:j,pathArr:it,onUpdate:Y}=A,P=j[it[0]];for(it.shift();it.length;){const R=it.shift();P=P.children[R],it.length||Y(P)}},W=A=>{let{newOptionData:j,pathArr:it,onUpdate:Y}=A,P=j[it[0]];for(it.shift();it.length;){const R=it.shift();it.length?P=P.children[R]:Y(P,R)}},st=A=>A.split("-").length,rt=(A,j,it,Y)=>{const P=document.querySelector(".setting-drag-menu-container"),R=document.querySelector(".widget-settings"),at=Array.from(P.querySelectorAll(".setting-drag-menu-item")),$=P.getBoundingClientRect(),K=[],H={};return at.forEach(B=>{const{path:X}=B.dataset,V=st(X),L=B.getBoundingClientRect(),ot=(0,Z.yB)(B),G=B.getBoundingClientRect(),z={top:L.top-$.top+R.scrollTop,left:L.left-$.left,width:L.width,height:L.height},F={top:ot.top-$.top,left:ot.left-$.left+V*18,width:ot.width,height:ot.height},k={top:G.top-$.top,left:F.left,width:F.width,height:G.height};H[X]={rect:z,contentRect:F,treeRect:k};const{left:ut,top:E,width:J,height:dt}=z,pt=ut+J,T=E+dt,ht=E+dt/2;if(A.path===X){K.push({cid:X,type:null,min:{x:ut,y:E},max:{x:pt,y:T},isValid:!1});return}if(V===Y&&st(X)===st(A.path)){const yt=st(X),ct=X.split("-")[yt-2],gt=A.path.split("-")[yt-2];ct===gt&&(K.push({cid:X,parent:it,type:"prevSibling",min:{x:ut,y:E},max:{x:pt,y:ht},isValid:!0}),K.push({cid:X,parent:it,type:"nextSibling",min:{x:ut,y:ht},max:{x:pt,y:T},isValid:!0}))}}),{matchDataList:K,containerRect:$,rectQueryMap:H}},m=A=>{const j=[];return I(A,it=>{it.data.designExpanded&&j.push(1)}),j},U=(A,j,it)=>{const Y=A!=null&&A.optionData?m(A.optionData):[],P=j!=null&&j.optionData?m(j.optionData):[];if(Y.length!==P.length){const R=document.querySelector('.preview-content-container .widget-identify-key [data-cid="'+it+'"]');R&&MB.runnerController.initMouseEventHandler(R)}}},68696:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>m});var Z=w(74059),I=w(51044),O=w(66748),b=w.n(O),M=w(7290),W=w(21676);const st=W.Ay.div.withConfig({displayName:"styles__StyledImageWrapper",componentId:"sc-gyu0a7-0"})(["&.image-wrapper{width:100%;height:100%;border-radius:inherit;transition:inherit;transition-property:filter;span{height:100%;width:100%;display:flex;justify-content:center;align-items:center;border-radius:inherit;i{font-size:26px;}.icon{color:#8d9ea7;}}.wrapper{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;border-radius:inherit;transition:inherit;img{width:100%;border-radius:inherit;transition:inherit;pointer-events:none;}}}"]);var rt=w(57464);class m extends I.PureComponent{render(){const{src:A="",stretchToFill:j,filter:it,backgroundColor:Y,dataContainerCid:P,link_cid:R,className:at,style:$,fillType:K}=this.props,H={display:A?"none":"flex",backgroundColor:Y},B={display:A?"block":"none",height:j||K==="fill"?"100%":"auto",filter:it.trim(),objectFit:K==="fill"?"cover":null};return(0,rt.jsxs)(st,{className:"image-wrapper "+at,"data-container-cid":P,"data-link_cid":R,style:$,children:[(0,rt.jsx)("span",{style:H,children:(0,rt.jsx)(M.C,{name:"right_panel/image/place_holder"})}),(0,rt.jsx)("div",{className:"wrapper",children:(0,rt.jsx)("img",{src:A,draggable:!1,style:B})})]})}}(0,Z.A)(m,"defaultProps",{stretchToFill:!1,filter:"",backgroundColor:"#e8e8e8",style:{},fillType:"default"}),(0,Z.A)(m,"propTypes",{src:b().string,stretchToFill:b().bool,filter:b().string,link_cid:b().string,className:b().string,backgroundColor:b().string,style:b().object,fillType:b().string})},87954:($t,wt,w)=>{"use strict";w.d(wt,{W:()=>b});var Z=w(21676),I=w(54909);const O="17px",b=Z.Ay.div.withConfig({displayName:"styles__StyledScrollBar",componentId:"sc-1h8q4j3-0"})(["pointer-events:none;.track{position:absolute;background:transparent;pointer-events:auto;.handler{position:absolute;cursor:pointer;.thumb{position:absolute;pointer-events:none;border-radius:4px;border:1px solid ",";background:",";transition:background 0.2s ease-in-out;}}}.x-track{left:",";right:11px;bottom:0;height:12px;.handler{bottom:2px;height:10px;.thumb{bottom:0;width:100%;height:6px;}}}.y-track{top:",";bottom:11px;right:0;width:12px;.handler{right:2px;width:10px;.thumb{right:0;height:100%;width:6px;}}}"],I.f.color_text_L3.value_dark,I.f.color_slider_hover.value_light,O,O)},62931:($t,wt,w)=>{"use strict";w.d(wt,{Y:()=>P});var Z=w(74059),I=w(51044),O=w(21676),b=w(7233),M=w(48310),W=w(83728),st=w(63555),rt=w(98236),m=w.n(rt),U=w(59742),A=w(103),j=w(33386),it=w(57464);const Y=at=>{let{createAnimatingSdkStore:$,transitionState:K,canvasKey:H,isEditingCombo:B}=at;const X=$(K),V=(0,M.v)(M.K.preview),L=new b.c(V,X);return X.isTrashed(H)?null:(L.buildWidgetTree({folderKey:H,isEditingCombo:B}),L.getNode(H))};class P extends I.PureComponent{static getDerivedStateFromProps($,K){const{canvasKey:H,transition:{name:B,duration:X}}=$,{currentCanvasKey:V}=K;return H!==V?{transitionState:B==="auto"&&!!X?W.qu.prepare:W.qu.finish,prevCanvasKey:V,currentCanvasKey:H,createAnimatingSdkStore:(0,W.BF)(sdkStore,V,H)}:null}constructor($){super($),(0,Z.A)(this,"refreshCanvasTree",()=>{const{canvasKey:X,isEditingCombo:V}=this.props,{transitionState:L,createAnimatingSdkStore:ot}=this.state;return Y({createAnimatingSdkStore:ot,transitionState:L,canvasKey:X,isEditingCombo:V})}),(0,Z.A)(this,"subscribe",X=>{let{type:V,payload:L}=X;V===A.a&&this.repaint(L.changedKeyList)}),(0,Z.A)(this,"repaint",X=>{var V;if(!(X!=null&&X.length))return;const{canvasKey:L,onRefresh:ot,onResetStickyWidgetList:G,onRefreshStickyWidgetList:z,onUpdateMouseEventHandler:F}=this.props,{canvasNode:k}=this.state;if(!k)return;if(X[0]===L&&sdkStore.isTrashed(L)){this.setState({canvasNode:null});return}if(X.some(bt=>{var Tt;return((Tt=sdkStore.getHotItem(bt))==null||(Tt=Tt.hotAttr)==null?void 0:Tt.type)===st.x.WMindNode})){setTimeout(()=>{this.setState({canvasNode:this.refreshCanvasTree()}),F&&F()});return}if((0,U.OO)(L)&&(0,U.QL)(L).includes(X[0])){z&&z(),ot&&ot(),this.setState({canvasNode:this.refreshCanvasTree()}),F&&F();return}const ut=(0,U.OO)(L)?(0,U.QL)(L).pop():L,E=(0,U.OO)(L)?(0,U.QL)(L).slice(0,((V=(0,U.QL)(L))==null?void 0:V.length)-1):[],J=[],dt=X.filter(bt=>{const Tt=(0,U.OO)(L)?(0,U.iK)(E,bt):bt,Pt=k.widgetStore.getNode(Tt),It=sdkStore.getHotItem(Tt);if(!It)return!1;const Dt=It.hotAttr.type===st.x.Canvas?bt:sdkStore.locUpColdCanvasKey(bt),jt=ut===Dt;return!jt&&Pt&&J.push(Tt),jt});if(!(dt!=null&&dt.length)&&!(J!=null&&J.length))return;const pt=[],T=[...J],ht=[],yt=[];let ct=!1;dt.forEach(bt=>{const Tt=(0,U.OO)(L)?(0,U.iK)(E,bt):bt,Pt=k.widgetStore.getNode(Tt),It=sdkStore.getHotItem(Tt);if(Pt)if(sdkStore.isTrashed(Tt))T.push(Tt);else{var Dt,jt,Mt,Q,vt,Lt,Rt,Bt,Ht,zt,Kt,ce,oe;ht.push(It),((Pt==null||(Dt=Pt.hotAttr)==null?void 0:Dt.fixPosTo)==="sticky"&&(It==null||(jt=It.hotAttr)==null?void 0:jt.fixPosTo)!=="sticky"||(Pt==null||(Mt=Pt.hotAttr)==null?void 0:Mt.fixPosTo)!=="sticky"&&(It==null||(Q=It.hotAttr)==null?void 0:Q.fixPosTo)==="sticky"||(Pt==null||(vt=Pt.hotAttr)==null?void 0:vt.stickyOffset)!==(It==null||(Lt=It.hotAttr)==null?void 0:Lt.stickyOffset)||(It==null||(Rt=It.hotAttr)==null?void 0:Rt.fixPosTo)==="sticky"&&(Pt==null||(Bt=Pt.hotAttr)==null?void 0:Bt.y)!==(It==null||(Ht=It.hotAttr)==null?void 0:Ht.y))&&(ct=!0),(!m()(Pt==null||(zt=Pt.hotAttr)==null?void 0:zt.optionData,It==null||(Kt=It.hotAttr)==null?void 0:Kt.optionData)||(Pt==null||(ce=Pt.hotAttr)==null||(ce=ce.switch)==null?void 0:ce.checked)!==(It==null||(oe=It.hotAttr)==null||(oe=oe.switch)==null?void 0:oe.checked))&&yt.push(bt)}else{var he;It&&pt.push(It),(It==null||(he=It.hotAttr)==null?void 0:he.fixPosTo)==="sticky"&&(ct=!0)}});const gt=(0,W.ik)({canvasNode:k,creates:pt,updates:ht,deletes:T});ct&&(G?G():MB.runnerController.scrollHandler.resetStickyBehavior(L)),this.setState({canvasNode:gt},()=>{ct&&(z?z():(MB.runnerController.scrollHandler.updateStickyWidgetList(L),MB.runnerController.scrollHandler.updateStickyBehavior(L))),F&&F(),MB.webpackInterface.store.dispatch({type:"entry:runner:reset:widgetStatus",payload:{keys:yt}})})});const{canvasKey:K}=this.props,H=W.qu.finish,B=(0,W.BF)(sdkStore,K,K);this.state={transitionState:H,prevCanvasKey:K,currentCanvasKey:K,createAnimatingSdkStore:B,canvasNode:Y({createAnimatingSdkStore:B,transitionState:H,canvasKey:K,isEditingCombo:$.isEditingCombo})},this.timer=null}componentDidMount(){this.setState({canvasNode:this.refreshCanvasTree()}),sdkStore.subscribe(this.subscribe)}componentDidUpdate($,K){const{transition:{name:H,duration:B,callback:X}}=this.props,{transitionState:V,currentCanvasKey:L}=this.state;if(!(V===K.transitionState&&L===K.currentCanvasKey)){switch(clearTimeout(this.timer),V){case W.qu.prepare:this.timer=setTimeout(()=>{this.setState({transitionState:W.qu.animate})},0);break;case W.qu.animate:this.timer=setTimeout(()=>{this.setState({transitionState:W.qu.finish})},B);break;case W.qu.finish:(H==="auto"||H==="none")&&X&&X();break}this.setState({canvasNode:this.refreshCanvasTree()})}}componentWillUnmount(){clearTimeout(this.timer),sdkStore.unsubscribe(this.subscribe)}render(){const{children:$,canvasKey:K,transition:{duration:H}}=this.props,{transitionState:B,canvasNode:X}=this.state;return X?X.render?(0,it.jsxs)(it.Fragment,{children:[$(X),B<W.qu.finish&&H&&(0,it.jsx)(R,{canvasKey:K,duration:H})]}):((0,j.p)("canvasNode.render is not a function",void 0,{canvasNode:X}),null):null}}const R=(0,O.DU)(['.pcanvas,.pstate{&[data-cid="','"]{.tree-node,.widget,.group,.panel{transition:all ',"ms linear,z-index 0s linear;}}}"],at=>at.canvasKey,at=>at.duration)},83728:($t,wt,w)=>{"use strict";w.d(wt,{BF:()=>O,ik:()=>b,qu:()=>I});var Z=w(72866);const I={prepare:0,animate:1,finish:2},O=(M,W,st)=>{const rt=(U,A,j)=>{j.set(A,U);const it=new Map;M.getSubHotItemList(U).sort((Y,P)=>Y.hotAttr.zIndex-P.hotAttr.zIndex).forEach(Y=>{const P=Y.hotAttr.type+"-"+Y.hotAttr.name;it.has(P)?it.set(P,[...it.get(P),Y.key]):it.set(P,[Y.key])}),M.getSubHotItemList(A).sort((Y,P)=>Y.hotAttr.zIndex-P.hotAttr.zIndex).forEach(Y=>{const P=Y.hotAttr.type+"-"+Y.hotAttr.name;if(it.has(P)){const R=[...it.get(P)];R.length>0&&!["wBasket","wMind"].includes(Y.hotAttr.type)&&(it.set(P,R.slice(1,R.length)),rt(R.shift(),Y.key,j))}})},m=new Map;return rt(W,st,m),U=>{const A=(it,Y)=>{let P=M.getHotItem(Y);if(P){switch(it){case I.prepare:{if(m.has(Y)){const R=M.getHotItem(m.get(Y));P={...P,sub:[...P.sub,...R.sub].filter(at=>!Array.from(m.values()).includes(at)),hotAttr:{...P.hotAttr,...R.hotAttr,...P.hotAttr.type!=="rResBunch"&&P.hotAttr.type!=="rResExt"&&{interactions:P.hotAttr.interactions},...MB.runnerController.widgetVisibilityRecords.has(R.key)&&{isVisible:MB.runnerController.widgetVisibilityRecords.get(R.key)},...MB.runnerController.widgetVisibilityRecords.has(R.key)&&!MB.runnerController.widgetVisibilityRecords.get(R.key)&&{opacity:0},zIndex:P.hotAttr.zIndex}}}else M.locUpHotCanvasKey(Y)===st&&(P={...P,hotAttr:{...P.hotAttr,opacity:0}}),P={...P,hotAttr:{...P.hotAttr,...MB.runnerController.widgetVisibilityRecords.has(P.key)&&{isVisible:MB.runnerController.widgetVisibilityRecords.get(P.key)},...MB.runnerController.widgetVisibilityRecords.has(P.key)&&!MB.runnerController.widgetVisibilityRecords.get(P.key)&&{opacity:0}}};break}case I.animate:{if(m.has(Y)){const R=M.getHotItem(m.get(Y));P={...P,sub:[...P.sub,...R.sub].filter(at=>!Array.from(m.values()).includes(at))}}else M.locUpHotCanvasKey(Y)===W&&(P={...P,hotAttr:{...P.hotAttr,opacity:0}});break}case I.finish:{P={...P,hotAttr:{...P.hotAttr,...MB.runnerController.widgetVisibilityRecords.has(P.key)&&{isVisible:MB.runnerController.widgetVisibilityRecords.get(P.key)},...MB.runnerController.widgetVisibilityRecords.has(P.key)&&!MB.runnerController.widgetVisibilityRecords.get(P.key)&&{opacity:0}}};break}}return P}},j=(it,Y)=>{let P=M.getCCSBound2308(Y);switch(it){case I.prepare:{m.has(Y)&&(P=M.getCCSBound2308(m.get(Y)));break}case I.animate:break;case I.finish:break}return P};return{...M,getHotItem:it=>A(U,it),getCCSBound2308:it=>j(U,it)}}},b=M=>{let{canvasNode:W,creates:st,updates:rt,deletes:m,runningData:U}=M,A=W;if(st!=null&&st.length&&st.forEach(j=>{const it={cid:j.key,...(0,Z.Op)(j.key),...j.hotAttr,sup:j.sup};A=A.widgetStore.newWidgets([it],j.sup,U)}),rt!=null&&rt.length){const j=[];for(const{key:it,hotAttr:Y,sup:P}of rt)j.push({cid:it,...(0,Z.Op)(it),...Y,sup:P});A=A.widgetStore.updateWidgets(j,U)}return m!=null&&m.length&&(A=A.widgetStore.deleteWidgets(m)),A}},43859:($t,wt,w)=>{"use strict";w.d(wt,{$n:()=>Y,Am:()=>O,CZ:()=>at,KB:()=>P,X6:()=>U,a$:()=>A,d0:()=>R,v2:()=>I});var Z=w(94433);const I=Object.entries(Z).reduce(($,K)=>{let[H,B]=K;return Object.assign($,Object.entries(B).reduce((X,V)=>{let[L,{name:ot,width:G,height:z}]=V;return Object.assign(X,{[L]:{name:ot,width:G,height:z,device:H}})},{Android:{name:"Android",width:360,height:640,device:"android"}}))},{}),O={iphone:["iphone_16_pro_max","iphone_16_pro","iphone_16_plus","iphone_16","iphone_15_pro_max","iphone_15_pro","iphone_15_plus","iphone_15","iphone_13_pro_max","iphone_13_pro","iphone_13_mini","iphone_11_pro_max","iphone_se"],android:["Huawei_mate70","Huawei_mate70_pro","Huawei_mate70_pro_plus","Huawei_mate60","Huawei_mate60_pro","Huawei_mateXT_one_screen","Huawei_mateXT_two_screen","Huawei_mateXT_three_screen","Huawei_mateX5_expand","Huawei_mateX5_fold","Xiaomi_15","samsung_galaxy_s23"],web:["desktop_1920","desktop","mac_book_pro_16","mac_book_pro_14","mac_book_pro","mac_book_air_13","imac_2023","Huawei_mate_book_16s","Huawei_mate_book_14s"],ipad:["ipad_pro_11","ipad_pro_12","ipad_2023","Huawei_mate_pad_pro_13_2","Huawei_mate_pad_pro_11"],display_screen:["display_screen_16_9","display_screen_2_1"],apple_watch:["apple_watch_ultra_2_49","apple_watch_9_45","apple_watch_9_41","apple_watch_se_44","apple_watch_se_40","Huawei_watch_gt5_46","Huawei_watch_gt5_41","Huawei_wristband_9","Xiaomi_wristband_9"],hmi:["industrial_hmi_16_9","industrial_hmi_16_10","tesla_car_play_hmi"],smart_tv:["smart_tv"],slide:["slide_16_9","slide_4_3"],media_shop:[],customize:["customize","none"]},b={...O,media_shop:["wx_cover_pic","wx_small_pic","wx_big_pic","wx_hyper_pic","shop_main_pic","shop_banner","shop_sign","shop_detail"],customize:["customize"]},M=Object.keys(O).reduce(($,K,H)=>Object.assign($,{[K]:H+1}),{}),W={iphone:[["iphone_15_pro_max","iphone_15_plus"],["iphone_15_pro","iphone_15"]],web:[["Huawei_mate_book_16s","Huawei_mate_book_14s"]],apple_watch:[["Huawei_watch_gt5_46","Huawei_watch_gt5_41"]]},st=Object.values(W).flat().map($=>$[0]),rt=Object.values(W).flat().map($=>$.slice(1)).flat(),m=function($,K){return K===void 0&&(K=!1),Object.entries($).map(H=>{var B;let[X,V]=H;if(!Array.isArray(V)||!V.length)return null;const L=Z[X]||Z[(B=I[X])==null?void 0:B.device];return L?{device:X,modelList:V.map(ot=>{if(K&&rt.includes(ot))return null;const G=L[ot];if(!G||!(G!=null&&G.width)||!(G!=null&&G.height))return null;const{name:z,width:F,height:k}=G;return{name:z,width:F,height:k,key:ot}}).filter(ot=>!!ot)}:null}).filter(H=>!!H).sort((H,B)=>M[H.device]-M[B.device])},U=m(O),A=m(b,!0),it=Object.entries(Z).map($=>{let[K,H]=$;return{device:K,modelList:Object.entries(H).map(B=>{let[X,{name:V}]=B;return{name:V,key:X}})}}).filter($=>["ipad","iphone","android"].includes($.device)).reduce(($,K)=>[...$,...K.modelList],[]).map($=>$.key),Y=$=>it.includes($),P=$=>{let{device:K}=$;try{return I18N.SettingPanel.devicesC[K]||R({model:K})}catch(H){return K}},R=$=>{let{model:K,device:H,isPageSize:B}=$;try{var X,V;let L=H||((X=I[K])==null?void 0:X.device);if(H&&!Z[H]&&I[H]&&(L=(V=I[H])==null?void 0:V.device),!L)return K;let ot=K;return B&&st.includes(K)&&(ot=K+"_size"),I18N.SettingPanel.devices[L][ot]}catch(L){return K}},at=w.j!=183?["desktop","desktop_1920"]:null},52611:($t,wt,w)=>{"use strict";w.d(wt,{$2:()=>I,BF:()=>O,YV:()=>Z,sz:()=>b});const Z=w.j!=183?["mp3","ogg","wav","aac"]:null,I=["mp4","webm","ogg"],O=w.j!=183?["https:","http:"]:null,b=["https:"]},47946:($t,wt,w)=>{"use strict";w.d(wt,{Bq:()=>O,Bs:()=>Z,Qt:()=>b});const Z=/^((https)?:\/\/)[^\s]+/,I=/^\d+(\.\d+)?$/,O=/<svg[\s\S]*<\/svg>$/,b=/^\s+|\n+|\s+$/g},7233:($t,wt,w)=>{"use strict";w.d(wt,{$:()=>b,c:()=>A});var Z=w(2937),I=w(63555);const O=j=>{var it,Y;const P=j.display_name===""?"":j.display_name||j.name;return{...j,display_name:P,name:j.type,width:(it=j.w)!=null?it:360,height:(Y=j.h)!=null?Y:800,ro:j.r||0}},b=(j,it)=>{const Y=[];return M(it.getHotItem(j),P=>{P&&Y.push(P.sub)}),Y.flat()},M=(j,it)=>{var Y;const P=[],R=it(j);return R&&P.push(R),j==null||(Y=j.sub)==null||Y.forEach(at=>{P.push(...M(sdkStore.getHotItem(at),it))}),P},W=(j,it)=>{var Y,P,R,at,$;return((Y=j.widget)==null?void 0:Y.type)===I.x.WMindNode?((P=j.widget)==null?void 0:P.order)-((R=it.widget)==null?void 0:R.order):((at=it.widget)==null?void 0:at.zIndex)-(($=j.widget)==null?void 0:$.zIndex)},st=j=>!(j.type===I.x.WWrap&&j.children.length===0),rt=(j,it)=>{const Y=it.getHotItem(j);if(!Y)return!1;const{bunch:P,type:R,refRBPageKey:at="",refContentKey:$=""}=Y.hotAttr;if(P===I.x.RbPage)return!1;if(R===I.x.WBasket){if(it.isTrashed(at)||it.isTrashed($))return!1;const K=it.getHotItem(at),H=it.getHotItem($);if(!(K!=null&&K.sub.includes($))||(H==null?void 0:H.hotAttr.type)!==I.x.Canvas)return!1}return!0},m=["wElbow","wSticky","wTear"],U={wElbow:["refFromKey","refToKey"],wSticky:["refWCKey"],wTear:["refWCKey"]};class A{constructor(it,Y){this._nodeFactory=it,this.sdkStore=Y,this.nodeMap=new Map,this.fontsInUse=new Set,this.cacheMap={},this.relatedTypeNodeMap=new Map}updateNodeMap(it){const{cid:Y,type:P}=it;if(this.nodeMap.set(Y,it),m.includes(P)){const R=P;let at=this.relatedTypeNodeMap.get(R);at||(at=new Set,this.relatedTypeNodeMap.set(R,at)),at.add(Y)}}deleteNode(it){const Y=this.getNode(it);if(!Y)return;const{type:P,children:R}=Y;if(R.forEach(at=>this.deleteNode(at.cid)),this.nodeMap.delete(it),m.includes(P)){const at=this.relatedTypeNodeMap.get(P);at&&at.delete(it)}}getRelatedTypeWidgetKeys(it,Y,P){Y===void 0&&(Y=this.widgetNode.cid);const R=this.relatedTypeNodeMap.get(it);if(!(R!=null&&R.size))return[];let at;P?at=(H,B)=>{const X=this.getNode(H);return X!=null&&X.sup?B.includes(X.sup)?!0:at(X.sup,B):!1}:at=(H,B)=>{var X;const V=this.getNode(H);return V!=null&&(X=V.sub)!=null&&X.length?V.sub.some(L=>B.includes(L))?!0:V.sub.some(L=>at(L,B)):!1};const $=new Set,K=U[it];return R.forEach(H=>{const B=this.getNode(H);if(!B)return;const{sup:X,hotAttr:V}=B,L=[X,...K.map(ot=>V[ot])].filter(ot=>ot);if(L.length){if(L.includes(Y)){sdkStore.isTrashed(H)?R.delete(H):$.add(H);return}at(Y,L)&&(sdkStore.isTrashed(H)?R.delete(H):$.add(H))}}),Array.from($)}buildWidgetTree(it){let{folderKey:Y,useCache:P=!1,isEditingCombo:R=!1,editingBasketRefPage:at="",editingBDanliKey:$=""}=it;P&&this.cacheMap[""+Y]||(this.widgetNode=this.build(Y,null,!1,R,Y,at,$),this.cacheMap[""+Y]=!0)}build(it,Y,P,R,at,$,K){var H,B;if(P===void 0&&(P=!1),P&&this.nodeMap.get(it))return this.nodeMap.get(it);const X=this.sdkStore.getHotItem(it);if(!X)return null;const{sub:V,sup:L,hotAttr:ot}=X;let G=V;const z={...ot,cid:it,key:it},F=(H=z.bunch)!=null?H:z.type;if(F===I.x.Canvas){var k;const J=this.sdkStore.getHotItem(L);(J==null||(k=J.hotAttr)==null?void 0:k.type)===I.x.WMind&&(it=J.hotAttr.refContentKey,G=b(it,this.sdkStore))}const ut=this._nodeFactory(F,this,R,at,$,K);if(!ut)return null;ut.ref=ut.cid=ut.key=it,ut.type=F,ut.sub=G,ut.sup=L,ut.parentRef=Y,ut.hotAttr=z,ut.widget=O(z),this.updateNodeMap(ut);const E=[];return(B=G)!=null&&B.length&&(G.forEach(J=>{if(rt(J,this.sdkStore)){const dt=this.build(J,ut.ref,P,R,at,$,K);dt&&st(dt)&&E.push(dt)}}),E.sort(W)),ut.children=E,ut}getNode(it){return this.nodeMap.get(it)}getWidget(it){var Y;return(Y=this.nodeMap.get(it))==null?void 0:Y.widget}getAllWidget(){return this.nodeMap}newWidgets(it,Y,P){let R=this.widgetNode.dup();const at=this.nodeMap.get(Y);if(!at)return this.widgetNode=R;let $=at.dup();const{folderKey:K,isEditingCombo:H,editingBasketRefPage:B,editingBDanliKey:X}=P||{folderKey:$.parentRef,isEditingCombo:!1,editingBasketRefPage:"",editingBDanliKey:""};for(this.updateNodeMap($),it.forEach(V=>{$.children=(0,Z.sq)($.children,L=>L.cid===V.key,this.build(V.key,$.ref,!0,H,K,B,X)).filter(L=>!!L).sort(W)});$.parent;){const V=$.parent.dup();V.children=(0,Z.sq)(V.children,L=>L.cid===$.cid,$).filter(L=>!!L).sort(W),this.updateNodeMap(V),$=V}return R=$,this.widgetNode=R}newWidgetsV2(it,Y){let P=this.widgetNode.dup();const R=new Map;it.forEach(at=>{let{key:$,sup:K}=at;R.has(K)?R.set(K,R.get(K).concat([$])):R.set(K,[$])});for(const[at,$]of R.entries()){const K=this.nodeMap.get(at);if(!K)continue;let H=K.dup();const{folderKey:B,isEditingCombo:X,editingBasketRefPage:V,editingBDanliKey:L}=Y||{folderKey:H.parentRef,isEditingCombo:!1,editingBasketRefPage:"",editingBDanliKey:""};this.updateNodeMap(H);for(const ot of $)H.children=(0,Z.sq)(H.children,G=>G.cid===ot,this.build(ot,H.ref,!0,X,B,V,L)).filter(G=>!!G).sort(W),H.sub=(0,Z.sq)(H.sub,G=>G===ot,ot);for(;H.parent;){const ot=H.parent.dup();ot.children=(0,Z.sq)(ot.children,G=>G.cid===H.cid,H).filter(G=>!!G).sort(W),ot.sub=(0,Z.sq)(ot.sub,G=>G===H.cid,H.cid),this.updateNodeMap(ot),H=ot}P=H}return this.widgetNode=P}updateWidgets(it,Y,P){P===void 0&&(P=!1);let R=this.widgetNode.dup();const{folderKey:at,isEditingCombo:$,editingBasketRefPage:K,editingBDanliKey:H}=Y||{};return it.forEach(B=>{var X;const V=this.nodeMap.get(B.cid),L=this.sdkStore.getHotItem(B.cid);if(!V||!L)return;const ot=B.sup&&B.sup!==V.sup&&B.type!=="rResCanvas";let G=V.dup();if(this.updateNodeMap(G),G.hotAttr={...L.hotAttr,cid:B.cid,key:B.cid},G.widget=O(G.hotAttr),G.type!==((X=G.hotAttr.bunch)!=null?X:G.hotAttr.type)&&(G=this.build(B.cid,G.parentRef,!1,$,at,K,H)),P){const z=[];B.sub.forEach(F=>{if(rt(F,this.sdkStore)){const k=this.build(F,G.cid,!1,$,at,K,H);k&&st(k)&&z.push(k)}}),G.children=z.sort(W)}for(;G.parent;){const z=G.parent.dup();this.updateNodeMap(z),ot&&V.parent.key===z.key?(z.children=(0,Z.Op)(z.children,F=>F.cid===G.cid).filter(F=>!!F).sort(W),z.sub=(0,Z.Op)(z.sub,F=>F===G.cid)):z.children=(0,Z.$G)(z.children,F=>F.cid===G.cid,G).filter(F=>!!F).sort(W),G=z}R=G}),it.forEach(B=>{const X=this.nodeMap.get(B.cid);if(!X||!(B.sup&&B.sup!==X.sup&&B.type!=="rResCanvas"))return;const L=B.sup,ot=this.nodeMap.get(L);if(!ot)return;let G=ot.dup();this.updateNodeMap(G);const z=X.dup();for(this.updateNodeMap(z),z.parentRef=G.ref,z.sup=L,G.sub.includes(z.cid)?G.children=(0,Z.u5)(G.children.filter(F=>F.cid!==z.cid),z).filter(F=>!!F).sort(W):(G.children=(0,Z.u5)(G.children,z).filter(F=>!!F).sort(W),G.sub=[...G.sub,z.cid]);G.parent;){const F=G.parent.dup();this.updateNodeMap(F),F.children=(0,Z.$G)(F.children,k=>k.cid===G.cid,G).filter(k=>!!k).sort(W),G=F}R=G}),this.widgetNode=R}updateWidgets2(it){let Y=this.widgetNode.dup();return it.forEach(P=>{var R;const at=this.nodeMap.get(P.key),$=this.sdkStore.getHotItem(P.key);if(!at||!$)return;const K=P.sup&&P.sup!==at.sup&&P.type!=="rResCanvas";let H=at.dup();for(this.updateNodeMap(H),H.hotAttr={...$.hotAttr,...P.hotAttr,cid:P.key,key:P.key},H.widget=O(H.hotAttr),H.type!==((R=H.hotAttr.bunch)!=null?R:H.hotAttr.type)&&(H=this.build(P.key,H.parentRef,!1,!1,void 0,void 0,void 0));H.parent;){const B=H.parent.dup();this.updateNodeMap(B),K&&at.parent.key===B.key?(B.children=(0,Z.Op)(B.children,X=>X.cid===H.cid).filter(X=>!!X).sort(W),B.sub=(0,Z.Op)(B.sub,X=>X===H.cid)):B.children=(0,Z.$G)(B.children,X=>X.cid===H.cid,H).filter(X=>!!X).sort(W),H=B}Y=H}),it.forEach(P=>{const R=this.nodeMap.get(P.key);if(!R||!(P.sup&&P.sup!==R.sup&&P.type!=="rResCanvas"))return;const $=P.sup,K=this.nodeMap.get($);if(!K)return;let H=K.dup();this.updateNodeMap(H);const B=R.dup();for(this.updateNodeMap(B),B.parentRef=H.ref,B.sup=$,H.sub.includes(B.cid)?H.children=(0,Z.u5)(H.children.filter(X=>X.cid!==B.cid),B).filter(X=>!!X).sort(W):(H.children=(0,Z.u5)(H.children,B).filter(X=>!!X).sort(W),H.sub=[...H.sub,B.cid]);H.parent;){const X=H.parent.dup();this.updateNodeMap(X),X.children=(0,Z.$G)(X.children,V=>V.cid===H.cid,H).filter(V=>!!V).sort(W),H=X}Y=H}),this.widgetNode=Y}deleteWidgets(it){let Y=this.widgetNode.dup();return it.forEach(P=>{const R=this.nodeMap.get(P);if(!R)return;const at=R;if(this.deleteNode(P),!at.parent)return;let $=at.parent.dup();for($.children=(0,Z.Op)($.children,K=>K.cid===P).filter(K=>!!K).sort(W),$.sub=(0,Z.Op)($.sub,K=>K===P),this.updateNodeMap($);$.parent;){const K=$.parent.dup();this.updateNodeMap(K),K.children=(0,Z.$G)(K.children,H=>H.cid===$.cid,$).filter(H=>H?st(H):!1).sort(W),$=K}Y=$}),this.widgetNode=Y}}},14586:($t,wt,w)=>{"use strict";w.d(wt,{Cv:()=>P,DX:()=>R,Ls:()=>A,Z6:()=>U,ck:()=>Y,dg:()=>st});var Z=w(66554),I=w(7283),O=w(63555),b=w(98310);const M=at=>{const{widget:{border:{bdrIsVisible:$,bdrWidth:K},icon:H,image:{imageRef:B,imageRectWidth:X,imageRectHeight:V}}}=at,{w:L,h:ot}=at.getMindNodeTextSize(),G=H?it:0,z=H?j:0,F=$?K*2:0,k=(0,b.Kf)(B),ut=k?X:0,E=k?V+Y:0,J=Math.max(L,ut),dt=Math.max(E+ot,z),pt=J+2*at.paddingHorizontal+F+G,T=dt+2*at.paddingVertical+F;return{w:pt,h:T}},W=at=>{let{children:$,mindNodeSize:K}=at,H=0,B=0;for(let X=0;X<$.length;X++){const V=$[X];V.mindNodeSize.w>B&&(B=V.mindNodeSize.w),X>0&&(H+=P(V.isMindFirstDepth)),H+=V.mindNodeTreeSize.h}return{w:B,h:Math.max(H,K.h)}},st=60,rt=36,m=12,U=10,A=40,j=24,it=j+10,Y=10,P=at=>at?rt:m;class R extends Z.B{constructor($){super($),this.cacheSizeMap=new Map,this.cachePositionMap=new Map,this.cacheTreeSizeMap=new Map,this.cacheTextSizeMap=new Map,this.cacheTextPositionMap=new Map,this.useMindCache=!0}get isMindFirstDepth(){var $;return($=this.parent.widget)==null?void 0:$.isRoot}get paddingHorizontal(){return this.widget.isRoot?20:this.isMindFirstDepth?18:10}get paddingVertical(){return this.widget.isRoot?16:this.isMindFirstDepth?10:5}get mindNodeSize(){if(this.cacheSizeMap.get(this.key)&&this.useMindCache)return this.cacheSizeMap.get(this.key);const $=M(this);return this.cacheSizeMap.set(this.key,$),$}get mindNodeTreeSize(){if(this.cacheTreeSizeMap.get(this.key)&&this.useMindCache)return this.cacheTreeSizeMap.get(this.key);if(this.children.length===0||!this.widget.expand)return this.mindNodeSize;const{w:$,h:K}=W({children:this.children,mindNodeSize:this.mindNodeSize});return this.cacheTreeSizeMap.set(this.key,{w:$,h:K}),{w:$,h:K}}getRootMindNodeTreeSize($){if($===void 0&&($="right"),this.cacheTreeSizeMap.get(this.key+"-"+$)&&this.useMindCache)return this.cacheTreeSizeMap.get(this.key+"-"+$);const K=this.children.filter(X=>X.widget.placement===$),{w:H,h:B}=W({children:K,mindNodeSize:this.mindNodeSize});return this.cacheTreeSizeMap.set(this.key+"-"+$,{w:H,h:B}),{w:H,h:B}}get mindNodePosition(){var $;if(this.cachePositionMap.get(this.key)&&this.useMindCache)return this.cachePositionMap.get(this.key);if(($=this.widget)!=null&&$.isRoot||this.parent.type!==O.x.WMindNode){const{widget:{border:{bdrIsVisible:ot,bdrWidth:G}}}=this.parent.parent;return ot?{x:-G,y:-G}:{x:0,y:0}}const K=this.parent;let B=-(this.isMindFirstDepth?K.getRootMindNodeTreeSize(this.widget.placement).h:K.mindNodeTreeSize.h)/2,X=!1;this.parent.children.some((ot,G,z)=>{const F=ot;if(X=F.key===this.key,F.widget.placement!==this.widget.placement)return!1;if(X)F.widget.expand&&z.length===1&&this.children.length<2||z.length===1?B+=(K.mindNodeTreeSize.h-F.mindNodeSize.h)/2:B+=(F.mindNodeTreeSize.h-F.mindNodeSize.h)/2;else{const k=P(this.isMindFirstDepth);B+=F.mindNodeTreeSize.h+k}return X});const L={x:this.widget.placement==="left"?K.mindNodePosition.x-this.mindNodeSize.w-st:K.mindNodePosition.x+K.mindNodeSize.w+st,y:K.mindNodePosition.y+K.mindNodeSize.h/2+B};return this.cachePositionMap.set(this.key,L),L}get subCount(){var $;return($=this.children)==null?void 0:$.reduce((K,H)=>K+H.subCount,this.children.length)}getMindNodeTextSize(){if(this.cacheTextSizeMap.get(this.key)&&this.useMindCache)return this.cacheTextSizeMap.get(this.key);const{width:$,height:K}=(0,I.F7)(this.widget),H={w:$,h:K};return this.cacheTextSizeMap.set(this.key,H),H}getMindNodeTextPosition(){if(this.cacheTextPositionMap.get(this.key)&&this.useMindCache)return this.cacheTextPositionMap.get(this.key);const{icon:$,image:{imageRef:K,imageRectHeight:H}}=this.widget,{h:B}=this.getMindNodeTextSize(),V=(0,b.Kf)(K)?H+Y:0,L=V+B,ot=$?j:0,G=L<ot?(ot-L)/2:0,z=($?it:0)+this.paddingHorizontal,F=V+this.paddingVertical+G,k={x:z,y:F};return this.cacheTextPositionMap.set(this.key,k),k}}},66554:($t,wt,w)=>{"use strict";w.d(wt,{B:()=>I});var Z=w(59742);class I{constructor(b,M,W,st,rt){this.widgetStore=b,this.runningIsEditingCombo=M,this.runningFolderKey=W,this.runningBasketRefPage=st,this.editingBDanliKey=rt}dup(){const b=this.constructor,M=new b(this.widgetStore,this.runningIsEditingCombo,this.runningFolderKey,this.runningBasketRefPage,this.editingBDanliKey);return M.cid=this.cid,M.key=this.key,M.ref=this.ref,M.type=this.type,M.parentRef=this.parentRef,M.hotAttr=this.hotAttr,M.sub=this.sub,M.sup=this.sup,M.widget=this.widget,M.children=this.children,M}get parent(){return this.sup?this.widgetStore.getNode(this.sup):null}get keyToAccessIntAct(){return this.editingBDanliKey?(0,Z.j_)([this.editingBDanliKey,this.key]):this.key}}},87383:($t,wt,w)=>{"use strict";w.d(wt,{h1:()=>K,Ie:()=>R,$O:()=>at,bp:()=>P});var Z=w(83053);if(w.j!=183)var I=w(88080);var O=w(4098);const b=(X,V,L)=>{const ot=V.x,G=V.y,z=(0,Z.EQ)(L-X.r),F=Math.sin(z),k=Math.cos(z),ut=X.x-ot,E=X.y-G,J=ot+ut*k-E*F,dt=G+ut*F+E*k;return{x:J,y:dt,r:(0,Z.wj)(L)}};var M=w(90515),W=w(67305),st=w(93284),rt=w(7283),m=w(63555),U=w(72868),A=w(78081);if(w.j!=183)var j=w(87812);var it=w(40829),Y=w(45309);const P=function(X,V,L,ot){ot===void 0&&(ot=!1),L=(0,Z.wj)(L);const G=sdkStore.getHotItem(V).hotAttr;switch(G.type){case"wWrap":{X.push({key:V,hotAttr:b(G,sdkStore.getLocalBound(V),L)});break}case"wLine":case"wArrow":{X.push({key:V,hotAttr:(ot?M.fp:M.Yl)(G,L)});break}default:{X.push({key:V,hotAttr:{r:L}});break}}},R=function(X,V){V===void 0&&(V={});const{sup:L,sub:ot,hotAttr:G}=sdkStore.getHotItem(X),z=sdkStore.getHotBound(X),F=sdkStore.getLocalBound(X),{r:k,x:ut,y:E}=F;switch(G.type){case m.x.WWrap:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sub:ot,sup:L,type:m.x.WWrap};for(const J of ot)R(J,V);break}case m.x.WImage:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sup:L,image:G.image};break}case m.x.WVector:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sup:L,vector:G.vector};break}case m.x.WElbow:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sup:L,oldWElbowHi:sdkStore.getHotItem(X)};break}case m.x.Canvas:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sup:L};for(const J of ot)R(J,V);break}default:{V[X]={hb:z,lb:F,lbR:k,wasoX:G.x-ut,wasoY:G.y-E,zIndex:G.zIndex,sup:L};break}}return V},at=function(X,V,L,ot,G,z){ot===void 0&&(ot={});const{hotAttr:F,sub:k}=sdkStore.getHotItem(V);switch(F.type){case m.x.WWrap:{for(const ut of k){const E=z?K(V,ut,L,ot,""):$(V,ut,L,ot);at(X,ut,E,ot,G,z)}break}case m.x.WImage:{const{hb:ut,image:E}=ot[V],{imageRectWidth:J,imageRectHeight:dt,imageRectOriginalWidth:pt,imageRectOriginalHeight:T}=E,{x:ht,y:yt}=sdkStore.toAttrXY(L,V),ct=Math.max(L.w,1),gt=Math.max(L.h,1);let bt=ct/ut.w*J;const Tt=(0,j.v)(E);let Pt=Tt==="default"?dt/J*bt:gt/ut.h*dt,It=E.imageRectCenterX*bt/J,Dt=E.imageRectCenterY*Pt/dt;if(Tt==="fill"){const jt=(0,j.Z)({w:ct,h:gt,imageRectOriginalWidth:pt,imageRectOriginalHeight:T});It=jt.imageRectCenterX,Dt=jt.imageRectCenterY,bt=jt.imageRectWidth,Pt=jt.imageRectHeight}X.push({key:V,hotAttr:{x:ht,y:yt,w:ct,h:gt,image:{...E,imageRectCenterX:It,imageRectCenterY:Dt,imageRectWidth:bt,imageRectHeight:Pt}}});break}case m.x.WVector:{const{hb:ut,vector:E}=ot[V],J=L.w/ut.w,dt=L.h/ut.h,pt=Math.max(J,dt),T=G?{x:pt,y:pt}:{x:J,y:dt},ht=U.Mi.scale(E,T),{x:yt,y:ct}=sdkStore.toAttrXY(L,V),{w:gt,h:bt}=(0,U.rj)(ht);X.push({key:V,hotAttr:{x:yt,y:ct,w:gt,h:bt,vector:ht,...F.richTextV1.isClipText&&{richTextMetric:(0,Y.Ro)({...F,x:yt,y:ct,w:gt,h:bt})}}});break}case m.x.WElbow:{const{hb:ut,oldWElbowHi:E}=ot[V],{dPathList:J}=E.hotAttr.elbow,dt=Math.max(L.w,1),pt=Math.max(L.h,1),T=dt-ut.w,ht=pt-ut.h,{x:yt,y:ct}=sdkStore.toAttrXY(L,V);if(T===0&&ht===0)X.push({key:V,hotAttr:{x:yt,y:ct}});else{const gt=L.w/ut.w,bt=L.h/ut.h,Tt=Math.max(gt,bt),Pt=G?{x:Tt,y:Tt}:{x:gt,y:bt};if(E.hotAttr.elbow.elbowType==="curve"){const It=U.Mi.scale({points:J,closed:!1},Pt),{x:Dt,y:jt}=sdkStore.toAttrXY(L,V),{w:Mt,h:Q}=(0,U.rj)(It);X.push({key:V,hotAttr:{elbow:{...E.hotAttr.elbow,dPathList:It.points},x:Dt,y:jt,w:Mt,h:Q}})}else{const It=J.map(Dt=>({x:Dt.x*gt,y:Dt.y*bt}));X.push({key:V,hotAttr:{elbow:{...E.hotAttr.elbow,dPathList:It},x:yt,y:ct,w:dt,h:pt}})}}break}default:{const{x:ut,y:E}=sdkStore.toAttrXY(L,V),J=Math.max(L.w,1),dt=Math.max(L.h,1);let pt={x:ut,y:E,w:J,h:dt};switch(F.type){case m.x.WLine:case m.x.WArrow:pt={...pt,...(0,M.__)({...F,...pt})};break;case m.x.WIcon:pt.iconData={...F.iconData,iconSize:Math.min(J,dt)};break;case m.x.WTable:{const{hb:T}=ot[V],ht=(0,W.LN)(F),yt=(0,W.Ky)(F),ct=Math.max(J,ht),gt=Math.max(dt,yt);if(!(ct===T.w&&gt===T.h)){const bt=ct!==T.w,Tt=gt!==T.h;if((0,it.SS)(F)){const{newHeightList:Pt,newWidthList:It}=(0,A.vy)({newW:ct,newH:gt,database:(0,A.Nf)(F)});pt.heightList=Pt,pt.widthList=It}else pt.tableData=(0,W.nD)({...F,...pt,width:ct,height:gt},bt,Tt).tableData}pt.w=ct,pt.h=gt;break}case m.x.WMTooltip:{const T=(0,rt.He)(F),ht=(0,rt.m1)(F);pt.w=Math.max(T,J),pt.h=Math.max(ht,dt);break}case m.x.WSwimlane:{const{newHeightList:T,newWidthList:ht}=(0,A.lT)({newW:pt.w,newH:pt.h,hotAttr:F});pt.database={...F.database,heightList:T,widthList:ht};break}case m.x.WRichText:{const{hb:T}=ot[V];if(F.richTextV1.fontDirection==="horizontal-tb"){if(dt!==T.h)pt.richTextV1={...F.richTextV1,sizeType:1};else if(J!==T.w&&F.richTextV1.sizeType!==1){pt.richTextV1={...F.richTextV1,sizeType:2};const ht=(0,st.bo)({...F,...pt,width:J,height:dt,cid:V});dt!==ht&&(pt.h=ht,pt.y=E+(ht-dt)*.5)}}else if(J!==T.w)pt.richTextV1={...F.richTextV1,sizeType:1};else if(F.richTextV1.sizeType!==1){pt.richTextV1={...F.richTextV1,sizeType:2};const ht=(0,st.GW)({...F,...pt,width:J,height:dt,cid:V});dt!==ht&&(pt.w=ht,pt.x=ut+(ht-J)*.5)}F.richTextV1.isClipText||(pt.richTextMetric=(0,Y.Ro)({...F,...pt}));break}case"wRect":case"wOval":case"wPolygon":case"wStar":case"wTriangle":case"wButton":case"wPlaceholder":{F.richTextV1.isClipText||(pt.richTextMetric=(0,Y.Ro)({...F,...pt}));break}case m.x.WSticky:{const T=(0,rt.He)(F),ht=(0,rt.m1)(F);pt.w=Math.max(T,J),pt.h=Math.max(ht,dt);const yt=(T-J)*.5,ct=(ht-dt)*.5;z?z&&typeof z=="string"&&(z.includes("t")&&dt<ht&&(pt.y=E-ct),z.includes("r")&&J<T&&(pt.x=ut+yt),z.includes("b")&&dt<ht&&(pt.y=E+ct),z.includes("l")&&J<T&&(pt.x=ut-yt)):(J<T&&(pt.x=ut+yt),dt<ht&&(pt.y=E+ct));break}case m.x.WTear:pt.w=20,pt.h=20;break;case m.x.Canvas:{const{hb:T}=ot[V];(T.w!==J||T.h!==dt)&&(pt={...pt,device:"customize"});const{stickyFooterHeight:ht,stickyHeaderHeight:yt}=F;ht>0&&dt-ht>yt&&H(X,k,{canvasStickyTop:T.y+T.h/2-ht,canvasStickyBottom:T.y+T.h/2,deltaH:dt-T.h},ot,G);break}case m.x.WMind:{const{hb:T}=ot[V];pt=z?{w:T.w,h:T.h}:{...pt,w:T.w,h:T.h}}}X.push({key:V,hotAttr:pt});break}}},$=function(X,V,L,ot){ot===void 0&&(ot={});const{hb:G}=ot[X],z=L.w/G.w,F=L.h/G.h,k=(0,Z.EQ)(G.r),{hb:ut,lbR:E}=ot[V];(0,I.$)(B,{x:ut.x-G.x,y:ut.y-G.y},-k),B.x*=z,B.y*=F,(0,I.$)(B,B,k);const J={x:L.x+B.x,y:L.y+B.y,w:ut.w*z,h:ut.h*F};if(E!==0){const dt=Math.min(z,F);J.w=ut.w*dt,J.h=ut.h*dt}return J},K=function(X,V,L,ot,G){ot===void 0&&(ot={});const{hb:z}=ot[X],F=L.w/z.w,k=L.h/z.h,ut=(0,Z.EQ)(z.r),{hb:E,lbR:J}=ot[V];(0,I.$)(B,{x:E.x-z.x,y:E.y-z.y},-ut),B.x*=F,B.y*=k,(0,I.$)(B,B,ut);const dt=(0,O.Pb)(z),pt=(0,O.Pb)(E),[T,ht,yt,ct]=dt,[gt,bt,Tt,Pt]=pt;let It;if(J!==0)It={x:L.x+B.x,y:L.y+B.y,w:E.w*F,h:E.h*k};else switch(G){case"se":{const Dt=Math.abs(T-gt)<=1,jt=Math.abs(ht-bt)<=1;It={x:Dt?T+Math.round(E.w*F)/2:L.x+Math.round(B.x),y:jt?ht+Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"sw":{const Dt=Math.abs(yt-Tt)<=1,jt=Math.abs(ht-bt)<=1;It={x:Dt?yt-Math.round(E.w*F)/2:L.x+Math.round(B.x),y:jt?ht+Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"nw":{const Dt=Math.abs(yt-Tt)<=1,jt=Math.abs(ct-Pt)<=1;It={x:Dt?yt-Math.round(E.w*F)/2:L.x+Math.round(B.x),y:jt?ct-Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"ne":{const Dt=Math.abs(T-gt)<=1,jt=Math.abs(ct-Pt)<=1;It={x:Dt?T+Math.round(E.w*F)/2:L.x+Math.round(B.x),y:jt?ct-Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"n":{const Dt=Math.abs(ct-Pt)<=1;It={x:L.x+Math.round(B.x),y:Dt?ct-Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"e":{It={x:Math.abs(T-gt)<=1?T+Math.round(E.w*F)/2:L.x+Math.round(B.x),y:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"s":{const Dt=Math.abs(ht-bt)<=1;It={x:L.x+Math.round(B.x),y:Dt?ht+Math.round(E.h*k)/2:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}case"w":{It={x:Math.abs(yt-Tt)<=1?yt-Math.round(E.w*F)/2:L.x+Math.round(B.x),y:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)};break}default:It={x:L.x+Math.round(B.x),y:L.y+Math.round(B.y),w:Math.round(E.w*F),h:Math.round(E.h*k)}}if(J!==0){const Dt=Math.min(F,k);It.w=E.w*Dt,It.h=E.h*Dt}return It},H=function(X,V,L,ot,G){ot===void 0&&(ot={});const{canvasStickyTop:z,canvasStickyBottom:F,deltaH:k}=L;for(const ut of V){const E=ot[ut];if(E){const{hb:J,lb:dt,sub:pt,type:T}=E,ht=J.y-J.h/2;if(ht>=z&&ht<=F){const{x:yt,y:ct,w:gt,h:bt}=dt,{x:Tt,y:Pt}=sdkStore.fromAttrXY({x:yt,y:ct+k},ut);at(X,ut,{x:Tt,y:Pt,w:gt,h:bt},ot,G)}else T===m.x.WWrap&&pt&&pt.length>1&&H(X,pt,L,ot,G)}}},B={x:0,y:0}},90515:($t,wt,w)=>{"use strict";w.d(wt,{Yl:()=>b,__:()=>A,fp:()=>M,wh:()=>W});var Z=w(83053);const I=3,O=2,b=function(j,it){it===void 0&&(it=j.r+st(j));let Y=Math.hypot(j.w,j.h);(0,Z.DG)(Y)<I&&(Y=I);const P=rt(Y,it);return m(j,P)},M=(j,it)=>{let Y=Math.hypot(j.w,j.h);(0,Z.DG)(Y)<I&&(Y=I);const P=j.r+st(j),R=rt(Y,P),at=rt(Y,it);return m(j,at,R)},W=(j,it)=>{(0,Z.DG)(it)<I&&(it=I);let Y=Math.hypot(j.w,j.h);(0,Z.DG)(Y)<I&&(Y=I);const P=j.r+st(j),R=rt(Y,P),at=rt(it,P);return m(j,at,R)},st=j=>{let it,Y;if(!j)return 0;j.type==="wArrow"?(it=j.arrow.arrowPointFrom,Y=j.arrow.arrowPointTo):(it=j.line.linePointFrom,Y=j.line.linePointTo);const P=j.w*(Y.x-it.x),R=j.h*(Y.y-it.y);return(0,Z.Ui)(Math.atan2(R,P))},rt=(j,it)=>{let Y=(0,Z.DG)(j*Math.cos((0,Z.EQ)(it))),P=(0,Z.DG)(j*Math.sin((0,Z.EQ)(it)));return Y===0&&P===0&&(Y=O,P=0),{x:Y,y:P}},m=function(j,it,Y){Y===void 0&&(Y=it);const P={r:0,w:Math.max(Math.abs(it.x),1),h:Math.max(Math.abs(it.y),1),x:j.x+(it.x-Y.x)*.5,y:j.y+(it.y-Y.y)*.5};return j.type==="wArrow"?P.arrow={...j.arrow,arrowPointFrom:U(-it.x,-it.y),arrowPointTo:U(it.x,it.y)}:P.line={...j.line,linePointFrom:U(-it.x,-it.y),linePointTo:U(it.x,it.y)},P},U=(j,it)=>{const Y=j<0?0:j===0?.5:1,P=it<0?0:it===0?.5:1;return{x:Y,y:P}},A=j=>{if(j.type==="wArrow"){if(j.arrow.arrowPointFrom.x===.5)return{w:1};if(j.arrow.arrowPointFrom.y===.5)return{h:1}}else{if(j.line.linePointFrom.x===.5)return{w:1};if(j.line.linePointFrom.y===.5)return{h:1}}return{}}},96731:($t,wt,w)=>{"use strict";w.d(wt,{H4:()=>b,Pb:()=>M,hC:()=>O});var Z=w(83650),I=w(39870);let O=function(W){return W[W.OrgMaxProto2PageCount=Z.hC.OrgMaxProto2PageCount]="OrgMaxProto2PageCount",W[W.OrgMaxProto2CanvasCount=Z.hC.OrgMaxProto2CanvasCount]="OrgMaxProto2CanvasCount",W[W.OrgMaxProto2WidgetCount=Z.hC.OrgMaxProto2WidgetCount]="OrgMaxProto2WidgetCount",W[W.OrgMaxVersionCount=Z.hC.OrgMaxVersionCount]="OrgMaxVersionCount",W[W.OrgMaxPicSize=Z.hC.OrgMaxPicSize]="OrgMaxPicSize",W[W.SoloMaxProto2PageCount=Z.hC.SoloMaxProto2PageCount]="SoloMaxProto2PageCount",W[W.SoloMaxProto2CanvasCount=Z.hC.SoloMaxProto2CanvasCount]="SoloMaxProto2CanvasCount",W[W.SoloMaxProto2WidgetCount=Z.hC.SoloMaxProto2WidgetCount]="SoloMaxProto2WidgetCount",W[W.SoloMaxPicSize=Z.hC.SoloMaxPicSize]="SoloMaxPicSize",W[W.ProjectVersionFromCount=Z.hC.ProjectVersionFromCount]="ProjectVersionFromCount",W[W.ProjectVersionFromTime=Z.hC.ProjectVersionFromTime]="ProjectVersionFromTime",W[W.SoloToOrgVersionFeature=Z.hC.SoloToOrgVersionFeature]="SoloToOrgVersionFeature",W[W.MaxSharingCount=Z.hC.MaxSharingCount]="MaxSharingCount",W}({});const b={[O.OrgMaxProto2PageCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u753B\u5E03\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_org_page_limit_popup"},[O.OrgMaxProto2CanvasCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u9875\u9762\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_org_canvas_limit_popup"},[O.OrgMaxProto2WidgetCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u5143\u7D20\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_org_widget_limit_popup"},[O.OrgMaxVersionCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u7248\u672C\u8D85\u9650_\u5347\u7EA7",checkoutPlace:"workspace-v8_fileversion_org_upgrade"},[O.OrgMaxPicSize]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u4E0A\u4F20\u56FE\u7247\u5BB9\u91CF\u8D85\u9650",checkoutPlace:"workspace-v8_upload_pic_limit"},[O.SoloMaxPicSize]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u4E0A\u4F20\u56FE\u7247\u5BB9\u91CF\u8D85\u9650",checkoutPlace:"workspace-v8_upload_pic_limit"},[O.SoloMaxProto2PageCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u753B\u5E03\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_solo_page_limit_popup"},[O.SoloMaxProto2CanvasCount]:{payEntrance:"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u9875\u9762\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_solo_canvas_limit_popup"},[O.SoloMaxProto2WidgetCount]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5143\u7D20\u8D85\u9650_\u5F39\u7A97",checkoutPlace:"workspace-v8_solo_widget_limit_popup"},[O.ProjectVersionFromTime]:{payEntrance:"\u7F16\u8F91\u533A-\u7248\u672C\u8BB0\u5F55_\u5347\u7EA7\u7248\u672C",checkoutPlace:"workspace-v8_fileversion_org_upgrade"},[O.ProjectVersionFromCount]:{payEntrance:"\u7F16\u8F91\u533A-\u7248\u672C\u8BB0\u5F55_\u5347\u7EA7\u7248\u672C",checkoutPlace:"workspace-v8_fileversion_org_upgrade"},[O.SoloToOrgVersionFeature]:{payEntrance:"\u7F16\u8F91\u533A-\u7248\u672C\u8BB0\u5F55_\u5347\u7EA7\u7248\u672C",checkoutPlace:"workspace-v8_fileversion_org_upgrade"},[O.MaxSharingCount]:{payEntrance:"\u7F16\u8F91\u533A-\u591A\u94FE\u63A5\u5206\u4EAB_\u5347\u7EA7\u7248\u672C",checkoutPlace:"workspace-linkshare_limit"}},M=W=>{let{limitType:st,user:rt,org:m,from:U}=W;const{maxV8ScreenCount:A,maxProjectVersionCount:j,maxPicBytes:it,maxSharingCount:Y,maxCanvasCount:P,maxWidgetCount:R}=(0,I.xR)(U,rt,m);switch(st){case O.MaxSharingCount:return"\u539F\u578B\u5185\u9AD8\u7EA7\u5206\u4EAB>"+Y+"\u4E2A";case O.OrgMaxVersionCount:return"\u539F\u578B\u7F16\u8F91\u533A\u65B0\u5EFA>"+j+"\u4E2A\u7248\u672C";case O.OrgMaxProto2PageCount:case O.SoloMaxProto2PageCount:return"\u65B0\u5EFA\u8D85"+A+"\u753B\u5E03";case O.OrgMaxProto2CanvasCount:case O.SoloMaxProto2CanvasCount:return"\u65B0\u5EFA\u8D85"+P+"\u9875\u9762";case O.OrgMaxProto2WidgetCount:case O.SoloMaxProto2WidgetCount:return"\u65B0\u5EFA\u8D85"+R+"\u5143\u7D20";case O.OrgMaxPicSize:return"\u4E0A\u4F20>"+it/1024/1024+"MB\u7684\u56FE\u7247";case O.SoloMaxPicSize:return"\u4E0A\u4F20>"+it+"MB\u7684\u56FE\u7247";case O.ProjectVersionFromTime:case O.ProjectVersionFromCount:return"\u539F\u578B\u5185\u70B9\u51FB\u7248\u672C\u8BB0\u5F55";case O.SoloToOrgVersionFeature:return"\u539F\u578B\u5185\u70B9\u51FB\u7248\u672C\u8BB0\u5F55"}}},99895:($t,wt,w)=>{"use strict";w.d(wt,{Bq:()=>A,F6:()=>st,J_:()=>V,L2:()=>P,L4:()=>at,Lu:()=>$,OX:()=>M,PU:()=>H,eU:()=>R,fN:()=>B,i8:()=>G,iB:()=>X,iM:()=>rt,l3:()=>F,m7:()=>W,m9:()=>j,qY:()=>it,sA:()=>b,ul:()=>K,wk:()=>L,xn:()=>U,y1:()=>z,ys:()=>ot});var Z=w(54606),I=w(30797),O=w(63686);const b=k=>k.aiComponent.isInAIComponentCreateMode,M=k=>k.aiComponent.isInAIComponentSnapshotMode,W=k=>k.aiComponent.createStartPoint,st=k=>k.aiComponent.createEndPoint,rt=k=>k.aiComponent.isDraggingMouse,m=k=>k.aiComponent.snapshotBase64Url,U=k=>k.aiComponent.isOptimumLoading,A=k=>k.aiComponent.editingAIComponentKey,j=k=>k.aiComponent.isShowAIComponentTextCursor,it=k=>k.aiComponent.floatBarOperation,Y=k=>k.aiComponent.floatBarOperation.type,P=k=>k.aiComponent.floatBarOperation.key,R=k=>k.aiComponent.floatBarOperation.isLoading,at=k=>k.aiComponent.requestLoading,$=k=>k.aiComponent.requestLoading.isLoading,K=k=>k.aiComponent.requestLoading.key,H=k=>k.aiComponent.selectedElementList,B=k=>k.aiComponent.feedbackStatus,X=k=>k.aiComponent.isShowInputContainer,V=k=>k.aiComponent.generatedTmpList,L=(0,O.Mz)(V,P,(k,ut)=>{var E;return((E=k.find(J=>J.key===ut))==null?void 0:E.list)||[]}),ot=(0,O.Mz)(V,P,(k,ut)=>{var E;return(E=k.find(J=>J.key===ut))==null?void 0:E.activeIndex}),G=(0,O.Mz)(Y,P,I.p$,Z.r,(k,ut,E,J)=>{let{isEditingUserCombo:dt,isEditingOrgCombo:pt}=J;return E.length>1||dt||pt?!1:k!==""&&ut===E[0]}),z=(0,O.Mz)(b,M,U,Z.r,(k,ut,E,J)=>{let{isEditingUserCombo:dt,isEditingOrgCombo:pt}=J;return dt||pt?!1:k&&ut&&!E}),F=(0,O.Mz)(Z.r,k=>{let{isEditingUserCombo:ut,isEditingOrgCombo:E}=k;return!ut&&!E})},48358:($t,wt,w)=>{"use strict";w.d(wt,{xb:()=>ht,p$:()=>T,ay:()=>gt});var Z=w(98620),I=w(47143),O=w(78570);const b=w.j!=183?["top","bottom","left","right"]:null,M={onV:["top","bottom"],onH:["left","right"]},W=(Mt,Q,vt)=>{const Lt={top:new Map,bottom:new Map,left:new Map,right:new Map};return Lt.bottom=m({dirPositionObj:Q,target:Mt,currentRectGap:Lt,rects:vt}),Lt.top=A({dirPositionObj:Q,target:Mt,currentRectGap:Lt,rects:vt}),Lt.left=j({dirPositionObj:Q,target:Mt,currentRectGap:Lt,rects:vt}),Lt.right=it({dirPositionObj:Q,target:Mt,currentRectGap:Lt,rects:vt}),Lt},st=(Mt,Q,vt)=>{const Lt=Mt.get(Q)||[];Lt.push(vt),Mt.set(Q,Lt)},rt=Mt=>{const Q={top:{map:new Map,positionArr:[]},bottom:{map:new Map,positionArr:[]},left:{map:new Map,positionArr:[]},right:{map:new Map,positionArr:[]}};Mt.forEach((Lt,Rt)=>{b.forEach(Bt=>{st(Q[Bt].map,Lt[Bt],Rt)})}),b.forEach(Lt=>{Q[Lt].positionArr=[...Q[Lt].map.keys()].sort((Rt,Bt)=>Rt-Bt)});const vt=[];return Mt.forEach(Lt=>{const Rt=W(Lt,Q,Mt);vt.push(Rt)}),{systemGapArr:vt,dirPositionObj:Q}},m=Mt=>{let{dirPositionObj:Q,target:vt,currentRectGap:Lt,rects:Rt}=Mt;const Bt=Y(Q.top.positionArr,vt.bottom);if(Bt!==-1){const Ht=Q.top.positionArr.length;let zt=!1;for(let Kt=Bt;Kt<Ht&&!zt;Kt++){const ce=Q.top.positionArr[Kt];Q.top.map.get(ce).forEach(he=>{const _e=Rt[he];!(_e.right<vt.left||_e.left>vt.right)&&!U(_e,vt)&&(zt=!0,Lt.bottom.set(ce-vt.bottom,[he]))})}}return Lt.bottom},U=(Mt,Q)=>Mt.top===Q.top&&Mt.left===Q.left&&Mt.right===Q.right&&Mt.bottom===Q.bottom,A=Mt=>{let{dirPositionObj:Q,target:vt,currentRectGap:Lt,rects:Rt}=Mt;const Bt=P(Q.bottom.positionArr,vt.top);if(Bt!==-1){let Ht=!1;for(let zt=Bt;zt>=0&&!Ht;zt--){const Kt=Q.bottom.positionArr[zt];Q.bottom.map.get(Kt).forEach(oe=>{const he=Rt[oe];!(he.right<vt.left||he.left>vt.right)&&!U(he,vt)&&(Ht=!0,Lt.top.set(vt.top-Kt,[oe]))})}}return Lt.top},j=Mt=>{let{dirPositionObj:Q,target:vt,currentRectGap:Lt,rects:Rt}=Mt;const Bt=P(Q.right.positionArr,vt.left);if(Bt!==-1){let Ht=!1;for(let zt=Bt;zt>=0&&!Ht;zt--){const Kt=Q.right.positionArr[zt];Q.right.map.get(Kt).forEach(oe=>{const he=Rt[oe];!(he.bottom<vt.top||he.top>vt.bottom)&&!U(he,vt)&&(Ht=!0,Lt.left.set(vt.left-Kt,[oe]))})}}return Lt.left},it=Mt=>{let{dirPositionObj:Q,target:vt,currentRectGap:Lt,rects:Rt}=Mt;const Bt=Y(Q.left.positionArr,vt.right);if(Bt!==-1){const Ht=Q.left.positionArr.length;let zt=!1;for(let Kt=Bt;Kt<Ht&&!zt;Kt++){const ce=Q.left.positionArr[Kt];Q.left.map.get(ce).forEach(he=>{const _e=Rt[he];!(_e.bottom<vt.top||_e.top>vt.bottom)&&!U(_e,vt)&&(zt=!0,Lt.right.set(ce-vt.right,[he]))})}}return Lt.right},Y=(Mt,Q)=>{const vt=Mt.length;if(vt<=0||Mt[vt-1]<Q)return-1;let Lt=0,Rt=vt-1,Bt=vt-1;for(;Lt<Rt;){let Ht=(Lt+Rt)/2;if(!Number.isInteger(Ht)){const zt=Math.ceil(Ht),Kt=Math.floor(Ht);Mt[Kt]>=Q?Ht=Kt:Ht=zt}Mt[Ht]>=Q?(Rt=Ht-1,Bt=Ht):Lt=Ht+1}return Bt>0&&Mt[Bt-1]>=Q&&(Bt=Bt-1),Bt},P=(Mt,Q)=>{const vt=Mt.length;if(vt<=0||Mt[0]>Q)return-1;let Lt=0,Rt=vt-1,Bt=0;for(;Lt<Rt;){let Ht=(Lt+Rt)/2;if(!Number.isInteger(Ht)){const zt=Math.ceil(Ht),Kt=Math.floor(Ht);Mt[Kt]>=Q?Ht=Kt:Ht=zt}Mt[Ht]<=Q?(Lt=Ht+1,Bt=Ht):Rt=Ht-1}return Bt!==vt&&Mt[Bt+1]<=Q&&(Bt=Bt+1),Bt},R=Mt=>{const Q={onV:new Map,onH:new Map},vt=new Map;return Mt.forEach((Lt,Rt)=>{const{top:Bt,bottom:Ht,left:zt,right:Kt}=Lt;vt.set(Rt,Lt),st(Q.onH,Bt,Rt),st(Q.onH,Math.floor((Bt+Ht)/2),Rt),st(Q.onH,Ht,Rt),st(Q.onV,zt,Rt),st(Q.onV,Math.floor((zt+Kt)/2),Rt),st(Q.onV,Kt,Rt)}),{systemRefMap:Q,systemRectSizeMap:vt}},at=function(Mt,Q,vt,Lt,Rt){vt===void 0&&(vt=[]),Rt===void 0&&(Rt=15);const Bt=$(Mt,vt),Ht={onV:{offset:0,lines:new Map},onH:{offset:0,lines:new Map}};let zt=!1,Kt=!1;for(let ce=0;ce<Math.round(Rt/Lt)+1&&!zt;ce++)Bt.onV.forEach((oe,he)=>{if(typeof oe!="number"||!Number.isInteger(oe))return;const _e=Math.pow(-1,ce)*ce/2>>0,Fe=oe+_e;if(Q.onV.has(Fe)){const Re=vt.includes("left")||vt.includes("right"),ee=he===2&&Re?_e*2:_e;Ht.onV.offset=ee,Ht.onV.lines.set(Fe,Q.onV.get(Fe)),zt=!0}});for(let ce=0;ce<Math.round(Rt/Lt)+1&&!Kt;ce++)Bt.onH.forEach((oe,he)=>{if(typeof oe!="number"||!Number.isInteger(oe))return;const _e=Math.pow(-1,ce)*ce/2>>0,Fe=oe+_e;if(Q.onH.has(Fe)){const Re=vt.includes("top")||vt.includes("bottom"),ee=he===2&&Re?_e*2:_e;Ht.onH.offset=ee,Ht.onH.lines.set(Fe,Q.onH.get(Fe)),Kt=!0}});return Ht},$=function(Mt,Q){Q===void 0&&(Q=[]);const vt=Q.length>0,{left:Lt,right:Rt,top:Bt,bottom:Ht,width:zt,height:Kt}=Mt;return{onV:[vt&&!Q.includes("right")?null:zt===1?Lt:Rt,vt&&!Q.includes("left")?null:Lt,vt?null:Math.floor((Lt+Rt)/2)],onH:[vt&&!Q.includes("bottom")?null:Kt===1?Bt:Ht,vt&&!Q.includes("top")?null:Bt,vt?null:Math.floor((Bt+Ht)/2)]}},K=function(Mt,Q,vt,Lt,Rt,Bt,Ht){Lt===void 0&&(Lt=[]),Ht===void 0&&(Ht=5);const zt=W(Mt,Rt,Q),Kt=Lt.length>0,ce={onV:{offset:0,adjustedGap:1/0,rects:{top:[],bottom:[]}},onH:{offset:0,adjustedGap:1/0,rects:{left:[],right:[]}}},oe={v:null,h:null},he=Math.round(Ht/Bt)+1;return Kt?((F(Lt,"bottom")||F(Lt,"top"))&&(oe.v=L(he,zt,vt,Lt)),(F(Lt,"left")||F(Lt,"right"))&&(oe.h=ot(he,zt,vt,Lt))):(oe.v=L(he,zt,vt,Lt),oe.h=ot(he,zt,vt,Lt)),oe.v&&oe.v.gap<1e3/3&&(oe.v.rects=oe.v&&Array.from(new Set(oe.v.rects.map(_e=>String(_e)))).map(_e=>_e.split(",")),oe.v.rects.length>1&&(ce.onV.rects=[...oe.v.rects],ce.onV.offset=oe.v.offset,ce.onV.adjustedGap=oe.v.gap)),oe.h&&oe.h.gap<1e3/3&&(oe.h.rects=oe.h&&Array.from(new Set(oe.h.rects.map(_e=>String(_e)))).map(_e=>_e.split(",")),oe.h.rects.length>1&&(ce.onH.rects=[...oe.h.rects],ce.onH.offset=oe.h.offset,ce.onH.adjustedGap=oe.h.gap)),ce},H=(Mt,Q,vt)=>Mt.filter(Lt=>Lt.startRect!=="target"&&Lt.endRect!=="target"?!0:B(Lt,Q,vt)).map(Lt=>[Lt.endRect,Lt.startRect].sort()),B=(Mt,Q,vt)=>{let{startRect:Lt,endRect:Rt,dir:Bt}=Mt,Ht=Lt;Rt!=="target"&&(Ht=Rt);const zt=V(vt[Number(Ht)][X(Bt)]);return!zt||zt>Q},X=Mt=>{let Q=Mt;switch(Mt){case"top":Q="bottom";break;case"bottom":Q="top";break;case"left":Q="right";break;case"right":Q="left";break;default:}return Q},V=Mt=>Mt.size?[...Mt.keys()][0]:!1,L=(Mt,Q,vt,Lt)=>{const Rt={offset:null,gap:null,top:[],bottom:[]},Bt=M.onV,Ht=Lt.length>0;let zt=null,Kt=null;return Ht?(F(Lt,"top")&&(zt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"top",directions:Bt})),F(Lt,"bottom")&&(zt&&zt.offset!==null?Kt=z({offset:zt.offset,existLength:zt.gap,targetGapMap:Q,systemGapArr:vt,dir:"bottom",directions:Bt}):Kt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"bottom",directions:Bt}))):(zt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"top",directions:Bt}),zt&&zt.offset!==null?Kt=z({offset:zt.offset,existLength:zt.gap,targetGapMap:Q,systemGapArr:vt,dir:"bottom",directions:Bt}):Kt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"bottom",directions:Bt})),zt&&zt.offset!==null&&(Rt.offset=zt.offset,Rt.gap=zt.gap),Kt&&Kt.offset!==null&&(Rt.offset=Kt.offset,Rt.gap=Kt.gap),Rt.rects=[],zt&&zt.rects&&zt.rects.length&&(Rt.rects=Rt.rects.concat(H(zt.rects,Rt.gap,vt))),Kt&&Kt.rects&&Kt.rects.length&&(Rt.rects=Rt.rects.concat(H(Kt.rects,Rt.gap,vt))),Rt},ot=(Mt,Q,vt,Lt)=>{const Rt={offset:null,gap:null,rects:[]},Bt=M.onH,Ht=Lt.length>0;let zt=null,Kt=null;return Ht?(F(Lt,"left")&&(Kt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"left",directions:Bt})),F(Lt,"right")&&(Kt&&Kt.offset!==null?zt=z({offset:Kt.offset,existLength:Kt.gap,targetGapMap:Q,systemGapArr:vt,dir:"right",directions:Bt}):zt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"right",directions:Bt}))):(Kt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"left",directions:Bt}),Kt&&Kt.offset!==null?zt=z({offset:Kt.offset,existLength:Kt.gap,targetGapMap:Q,systemGapArr:vt,dir:"right",directions:Bt}):zt=G({range:Mt,targetGapMap:Q,systemGapArr:vt,dir:"right",directions:Bt})),Kt&&Kt.offset!==null&&(Rt.offset=Kt.offset,Rt.gap=Kt.gap),zt&&zt.offset!==null&&(Rt.offset=zt.offset,Rt.gap=zt.gap),Rt.rects=[],Kt&&Kt.rects&&(Rt.rects=Rt.rects.concat(H(Kt.rects,Rt.gap,vt))),zt&&zt.rects&&(Rt.rects=Rt.rects.concat(H(zt.rects,Rt.gap,vt))),Rt},G=Mt=>{let{range:Q,targetGapMap:vt,systemGapArr:Lt,dir:Rt,directions:Bt}=Mt;const Ht={offset:null,gap:null,rects:[]},zt=vt[Rt];if(!zt.size)return Ht;const Kt=V(zt);let ce=!1;for(let oe=0;oe<Q&&!ce;oe++){const he=Math.pow(-1,oe)*oe/2>>0,_e=Kt+he;Lt.forEach((Fe,Re)=>{Bt.forEach(le=>{const ee=Fe[le];if(!ee.size)return;const ge=[...ee.keys()][0];ge===_e&&(ce=!0,Rt==="right"||Rt==="bottom"?Ht.offset=-he:Ht.offset=he,Ht.gap=_e,Ht.rects.push({startRect:Re,endRect:ee.get(ge)[0],dir:le}),Ht.rects.push({endRect:zt.get(Kt)[0],startRect:"target",dir:Rt}))})}),Bt.forEach(Fe=>{if(Fe===Rt)return;const Re=vt[Fe];if(!Re.size)return;const le=V(Re);le===_e&&(ce=!0,Rt==="right"||Rt==="bottom"?Ht.offset=-he:Ht.offset=he,Ht.gap=_e,Ht.rects.push({startRect:"target",endRect:Re.get(le)[0],dir:Fe}),Ht.rects.push({endRect:zt.get(Kt)[0],startRect:"target",dir:Rt}))})}return Ht},z=Mt=>{let{offset:Q,existLength:vt,targetGapMap:Lt,systemGapArr:Rt,dir:Bt,directions:Ht}=Mt;const zt={offset:null,gap:null,rects:[]},Kt=Lt[Bt];if(!Kt.size)return zt;const ce=V(Kt),oe=-Q;return Rt.forEach((he,_e)=>{Ht.forEach(Fe=>{const Re=he[Fe];if(!Re.size)return;const le=[...Re.keys()][0];le===vt&&(Bt==="right"||Bt==="bottom"?zt.offset=-oe:zt.offset=oe,zt.gap=vt,zt.rects.push({startRect:_e,endRect:Re.get(le)[0],dir:Fe}),ce===vt&&zt.rects.push({endRect:Kt.get(ce)[0],startRect:"target",dir:Bt}))})}),Ht.forEach(he=>{if(he===Bt)return;const _e=Lt[he];if(!_e.size)return;const Fe=V(_e);Fe-oe===vt&&(Bt==="right"||Bt==="bottom"?zt.offset=-oe:zt.offset=oe,zt.gap=vt,zt.rects.push({startRect:"target",endRect:_e.get(Fe)[0],dir:he}),ce===vt&&zt.rects.push({endRect:Kt.get(ce)[0],startRect:"target",dir:Bt}))}),zt},F=(Mt,Q)=>Mt.includes(Q),k=function(Mt,Q,vt,Lt,Rt){vt===void 0&&(vt=[]),Rt===void 0&&(Rt=3);const{width:Bt,height:Ht}=Mt,zt={onV:{offset:0,sameLengthMap:new Map},onH:{offset:0,sameLengthMap:new Map}};let Kt=!1,ce=!1;for(let oe=0;oe<Math.round(Rt/Lt)+1&&!(Kt&&ce);oe++){const he=Math.pow(-1,oe)*oe/2>>0;let _e,Fe;vt.includes("left")&&(_e=Bt-he),vt.includes("right")&&(_e=Bt+he),vt.includes("bottom")&&(Fe=Ht+he),vt.includes("top")&&(Fe=Ht-he),Q.forEach(Re=>{const{top:le,left:ee,width:ge,height:de}=Re;!Kt&&(vt.includes("left")||vt.includes("right"))&&ge&&ge===_e&&st(zt.onH.sameLengthMap,_e,[ee,le]),!ce&&(vt.includes("bottom")||vt.includes("top"))&&de&&de===Fe&&st(zt.onV.sameLengthMap,Fe,[ee,le])}),zt.onH.sameLengthMap.size>0&&!Kt&&(zt.onH.offset=he,Kt=!0),zt.onV.sameLengthMap.size>0&&!ce&&(zt.onV.offset=he,ce=!0)}return zt},ut=(Mt,Q,vt)=>{const Lt={onV:new Map,onH:new Map},Rt=Mt.h,Bt=Mt.v;Rt.forEach(oe=>{st(Lt.onH,oe,"ruler")}),Bt.forEach(oe=>{st(Lt.onV,oe,"ruler")});const{h:Ht,v:zt}=vt;Ht.forEach(oe=>{st(Lt.onH,oe,"ruler")}),zt.forEach(oe=>{st(Lt.onV,oe,"ruler")});const Kt=Q?Q.h:[],ce=Q?Q.v:[];return Kt.forEach(oe=>{st(Lt.onV,oe,"ruler")}),ce.forEach(oe=>{st(Lt.onH,oe,"ruler")}),Lt},E=function(Mt,Q,vt,Lt){Lt===void 0&&(Lt=10);const Rt=$(Mt,vt),Bt={onV:{offset:0,isHave:!1},onH:{offset:0,isHave:!1}};let Ht=!1,zt=!1;for(let Kt=0;Kt<2*Lt+1&&!Ht;Kt++)Rt.onV.forEach((ce,oe)=>{if(typeof ce!="number")return;const he=Math.pow(-1,Kt)*Kt/2>>0,_e=ce+he;if(Q.onV.has(_e)){const Fe=vt.includes("left")||vt.includes("right"),le=oe===2&&Fe?he*2:he;Bt.onV={offset:le,isHave:!0},Ht=!0}});for(let Kt=0;Kt<2*Lt+1&&!zt;Kt++)Rt.onH.forEach((ce,oe)=>{if(typeof ce!="number")return;const he=Math.pow(-1,Kt)*Kt/2>>0,_e=ce+he;if(Q.onH.has(_e)){const Fe=vt.includes("top")||vt.includes("bottom"),le=oe===2&&Fe?he*2:he;Bt.onH={offset:le,isHave:!0},zt=!0}});return Bt};var J=w(2079),dt=w(63555),pt=w(72866);const T={v:[],h:[]},ht=()=>[],yt=()=>{var Mt,Q;const vt=MB.__store__.getState(),Lt=(0,O.k3)(vt),Rt=(0,I.eo)(vt);if(!Lt||!Rt)return T;const Bt=sdkStore.getHotItem(Rt);return{v:(Bt==null||(Mt=Bt.hotAttr)==null?void 0:Mt.alignV)||[],h:(Bt==null||(Q=Bt.hotAttr)==null?void 0:Q.alignH)||[]}},ct=(Mt,Q)=>{var vt;const Lt=MB.__store__.getState();if(!(0,O.k3)(Lt))return T;const Bt=(Q==null?void 0:Q.length)===1&&((vt=Q[0])==null?void 0:vt.hotAttr.type)===dt.x.Canvas;let Ht=null;if(Bt){var zt;Ht=sdkStore.getHotItem((zt=Q[0])==null?void 0:zt.key)}if(!Mt&&!Ht)return T;const Kt=[],ce=[],oe=he=>{if(!he)return;const{hotAttr:{alignH:_e,alignV:Fe}}=he,{x:Re,y:le}=Z.o.axisAligned((0,pt.Oj)(he.key));Kt.push(...Fe.map(ee=>ee+Re)||[]),ce.push(..._e.map(ee=>ee+le)||[])};return oe(Mt),oe(Ht),{v:Kt,h:ce}},gt=Mt=>{let{viewport:Q={scale:1},movableItems:vt=[],isRuleLine:Lt=!1,refTolerance:Rt=15,referenceTolerance:Bt=10,sameSizeTolerance:Ht=3,distributedTolerance:zt=5,createSnapper:Kt=(Ae,te,Ie)=>[],getCurrentLayout:ce=Ae=>T,getCurrentScreenAlign:oe=Ae=>yt(),getCommonParentAlign:he=(Ae,te)=>ct(Ae,te)}=Mt,_e=(0,J.ZZ)(vt);const Fe=Ae=>{const te=oe(vt),Ie=ce(vt),cn=Kt(Lt,vt,Ae),ln=he(_e,vt),Qe=ut(te,Ie,ln),dn=rt(cn),fn=R(cn);return{rectList:cn,refMap:fn,systemRulerAndLayoutMap:Qe,systemGap:dn}};let{rectList:Re,refMap:le,systemRulerAndLayoutMap:ee,systemGap:ge}=Fe();const de=Ae=>{({rectList:Re,refMap:le,systemRulerAndLayoutMap:ee,systemGap:ge}=Fe(Ae))};let fe;return function(Ae){let{_rect:te,resizing:Ie=[],altKey:cn=!1,originAspectRatio:ln=void 0,sup:Qe}=Ae;if(fe!==Qe&&Qe){var dn;const Xn=(0,J.ZZ)(vt,Qe);((dn=_e)==null?void 0:dn.key)!==(Xn==null?void 0:Xn.key)&&(_e=Xn,de(Qe))}fe=Qe;const{systemRefMap:fn,systemRectSizeMap:Tn}=le,{systemGapArr:un,dirPositionObj:gn}=ge,ne={...te,bottom:te.top+te.height,right:te.left+te.width},bn=Ie.length!==0,{onV:en,onH:Bn}=at(ne,fn,Ie,Q.scale,Rt),{onV:Ln,onH:vn}=K(ne,Re,un,Ie,gn,Q.scale,zt),{onV:Fn,onH:zn}=E(ne,ee,Ie,Bt);let On;bn&&(On=k(ne,Re,Ie,Q.scale,Ht));const an=Tt({refOnV:en,refOnH:Bn,distributedOnV:Ln,distributedOnH:vn,sameSizeOri:On,referenceLineV:Fn,referenceLineH:zn}),[mn,rr,Un]=Dt(ne,an,Ie,cn,ln);Tn.set("target",mn);let fr={},lr={},yr={};if(rr&&rr.refOnVLines){const Xn=[];en.lines.forEach((Pr,Ar)=>{const Yn=Pr.map(Tr=>Re[Tr]);Yn&&Xn.push({x:Ar,refRects:Yn,refTotalRect:jt(Yn)})}),fr.onV=Xn,fr.showNumber=!bn}if(rr&&rr.sameSizeOnH&&(yr.onH=rr.sameSizeOnH.sameLengthMap),Un&&Un.refOnHLines){const Xn=[];Bn.lines.forEach((Pr,Ar)=>{const Yn=Pr.map(Tr=>Re[Tr]);Yn&&Xn.push({y:Ar,refRects:Yn,refTotalRect:jt(Yn)})}),fr.onH=Xn,fr.showNumber=!bn}if(Un&&Un.sameSizeOnV&&(yr.onV=Un.sameSizeOnV.sameLengthMap),It(yr)?yr=null:yr.target=mn,It(fr)?fr=null:fr.target=mn,Un&&Un.distributedOnV){const Pr=Array.from(new Set(Array.prototype.concat.apply([],Un.distributedOnV.rects))).filter(Yn=>Yn==="target"?!1:!bt(mn,Tn.get(Number(Yn)),"onV")),Ar=Un.distributedOnV.rects.filter(Yn=>!Yn.some(Tr=>Pr.includes(Tr))).map(Yn=>Yn.map(Tr=>Tn.get(Tr==="target"?"target":Number(Tr))));Ar.length>1&&(lr.onV={gap:Un.distributedOnV.adjustedGap,offset:Un.distributedOnV.offset,rects:Ar})}if(!lr.onV&&rr&&rr.distributedOnH){const Pr=Array.from(new Set(Array.prototype.concat.apply([],rr.distributedOnH.rects))).filter(Yn=>Yn==="target"?!1:!bt(mn,Tn.get(Number(Yn)),"onH")),Ar=rr.distributedOnH.rects.filter(Yn=>!Yn.some(Tr=>Pr.includes(Tr))).map(Yn=>Yn.map(Tr=>Tn.get(Tr==="target"?"target":Number(Tr))));Ar.length>1&&(lr.onH={gap:rr.distributedOnH.adjustedGap,offset:rr.distributedOnH.offset,rects:Ar})}return It(lr)?lr=null:lr.target=mn,{...mn,alignment:fr,distributed:lr,sameSize:yr}}},bt=(Mt,Q,vt)=>vt==="onV"?!(Mt.right<=Q.left||Mt.left>=Q.right):vt==="onH"?!(Mt.bottom<=Q.top||Mt.top>=Q.bottom):!1,Tt=Mt=>{let{refOnV:Q,refOnH:vt,distributedOnV:Lt,distributedOnH:Rt,sameSizeOri:Bt,referenceLineV:Ht,referenceLineH:zt}=Mt;const Kt=new Map,ce=new Map;return Rt.adjustedGap!==1/0&&Rt.adjustedGap!==null&&Pt(Kt,Rt.offset,{distributedOnH:Rt}),Q.lines.size>0&&Pt(Kt,Q.offset,{refOnVLines:Q.lines}),Bt&&Bt.onH.sameLengthMap.size>0&&Pt(Kt,Bt.onH.offset,{sameSizeOnH:Bt.onH}),Lt.adjustedGap!==1/0&&Lt.adjustedGap!==null&&Pt(ce,Lt.offset,{distributedOnV:Lt}),vt.lines.size>0&&Pt(ce,vt.offset,{refOnHLines:vt.lines}),Bt&&Bt.onV.sameLengthMap.size>0&&Pt(ce,Bt.onV.offset,{sameSizeOnV:Bt.onV}),Ht.isHave&&Pt(Kt,Ht.offset,{referenceLineV:Ht}),zt.isHave&&Pt(ce,zt.offset,{referenceLineH:zt}),{offsetXMap:Kt,offsetYMap:ce}},Pt=(Mt,Q,vt)=>{const Lt=Mt.get(Q)||{};Mt.set(Q,{...Lt,...vt})},It=Mt=>Object.keys(Mt).length===0,Dt=(Mt,Q,vt,Lt,Rt)=>{let Bt=null,Ht=null;const{offsetXMap:zt,offsetYMap:Kt}=Q,ce={x:0,y:0};if(zt.size!==0){const fe=Math.min(...Array.from(zt.keys()));ce.x=fe,Bt=zt.get(fe)}if(Kt.size!==0){const fe=Math.min(...Array.from(Kt.keys()));ce.y=fe,Ht=Kt.get(fe)}const{left:oe,width:he,right:_e,top:Fe,height:Re,bottom:le}=Mt,{x:ee,y:ge}=ce,de=vt.length!==0;if(Lt)if(Rt!==void 0&&de){const fe=!!Bt,Ae=!!Ht,te={...Mt},Ie={x:(Mt.left+Mt.right)/2,y:(Mt.top+Mt.bottom)/2};return fe&&Ae||fe&&!Ae?(vt.includes("left")?(te.left=oe+ee,te.right=_e-ee,te.width=he-2*ee,te.height=Math.floor(te.width/Rt),te.top=Math.floor(Ie.y-te.width/Rt/2),te.bottom=Math.floor(Ie.y+te.width/Rt/2)):vt.includes("right")&&(te.right=_e+ee,te.left=oe-ee,te.width=he+2*ee,te.height=Math.floor(te.width/Rt),te.top=Math.floor(Ie.y-te.width/Rt/2),te.bottom=Math.floor(Ie.y+te.width/Rt/2)),Ht=null):Ae&&!fe&&(vt.includes("top")?(te.top=Fe+ge,te.bottom=le-ge,te.height=Re-2*ge,te.width=Math.floor(te.height*Rt),te.left=Math.floor(Ie.x-te.height*Rt/2),te.right=Math.floor(Ie.x+te.height*Rt/2)):vt.includes("bottom")&&(te.bottom=le+ge,te.top=Fe-ge,te.height=Re+2*ge,te.width=Math.floor(te.height*Rt),te.left=Math.floor(Ie.x-te.height*Rt/2),te.right=Math.floor(Ie.x+te.height*Rt/2))),[te,Bt,Ht]}else{const fe={...Mt};return vt.includes("left")?(fe.left=oe+ee,fe.right=_e-ee,fe.width=he-2*ee):vt.includes("right")?(fe.right=_e+ee,fe.left=oe-ee,fe.width=he+2*ee):de||(fe.left=oe+ee,fe.right=_e+ee),vt.includes("top")?(fe.top=Fe+ge,fe.bottom=le-ge,fe.height=Re-2*ge):vt.includes("bottom")?(fe.bottom=le+ge,fe.top=Fe-ge,fe.height=Re+2*ge):de||(fe.top=Fe+ge,fe.bottom=le+ge),[fe,Bt,Ht]}else if(Rt!==void 0&&de){const fe=!!Bt,Ae=!!Ht,te={...Mt};if(fe&&Ae||fe&&!Ae){if(vt.includes("left"))if(te.left=oe+ee,te.width=he-ee,te.height=Math.floor(te.width/Rt),vt.includes("top"))te.top=te.bottom-te.height;else if(vt.includes("bottom"))te.bottom=te.top+te.height;else{const Ie=te.height-Mt.height;te.bottom=Math.floor(te.bottom+Ie/2),te.top=Math.floor(te.top-Ie/2)}else if(vt.includes("right"))if(te.right=_e+ee,te.width=he+ee,te.height=Math.floor(te.width/Rt),vt.includes("top"))te.top=te.bottom-te.height;else if(vt.includes("bottom"))te.bottom=te.top+te.height;else{const Ie=te.height-Mt.height;te.bottom=Math.floor(te.bottom+Ie/2),te.top=Math.floor(te.top-Ie/2)}Ht=null}else if(Ae&&!fe){if(vt.includes("top"))if(te.top=Fe+ge,te.height=Re-ge,te.width=Math.floor(te.height*Rt),vt.includes("left"))te.left=te.right-te.width;else if(vt.includes("right"))te.right=te.left+te.width;else{const Ie=te.width-Mt.width;te.right=Math.floor(te.right+Ie/2),te.left=Math.floor(te.left-Ie/2)}else if(vt.includes("bottom"))if(te.bottom=le+ge,te.height=Re+ge,te.width=Math.floor(te.height*Rt),vt.includes("left"))te.left=te.right-te.width;else if(vt.includes("right"))te.right=te.left+te.width;else{const Ie=te.width-Mt.width;te.right=Math.floor(te.right+Ie/2),te.left=Math.floor(te.left-Ie/2)}}return[te,Bt,Ht]}else{const fe={...Mt};return vt.includes("left")?(fe.left=oe+ee,fe.width=he-ee):vt.includes("right")?(fe.right=_e+ee,fe.width=he+ee):de||(fe.left=oe+ee,fe.right=_e+ee),vt.includes("top")?(fe.top=Fe+ge,fe.height=Re-ge):vt.includes("bottom")?(fe.bottom=le+ge,fe.height=Re+ge):de||(fe.top=Fe+ge,fe.bottom=le+ge),[fe,Bt,Ht]}};function jt(Mt){let Q=1/0,vt=1/0,Lt=-1/0,Rt=-1/0;return Mt.forEach(Bt=>{Q=Math.min(Bt==null?void 0:Bt.top,Q),vt=Math.min(Bt==null?void 0:Bt.left,vt),Lt=Math.max((Bt==null?void 0:Bt.left)+(Bt==null?void 0:Bt.width),Lt),Rt=Math.max((Bt==null?void 0:Bt.top)+(Bt==null?void 0:Bt.height),Rt)}),{top:Q,left:vt,right:Lt,bottom:Rt,width:Lt-vt,height:Rt-Q}}},8723:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>U});var Z=w(51044),I=w(91416),O=w(63555),b=w(21676);const M=b.Ay.div.withConfig({displayName:"styles__StyledStickyShellDiv",componentId:"sc-f82b4x-0"})(["display:flex;flex-direction:column;border-radius:4px;border:1px solid ",";overflow:hidden;.header{flex-shrink:0;width:100%;height:20px;padding:0 12px;position:relative;line-height:20px;color:#333333;font-size:12px;font-weight:500;background-color:",";}.footer{margin-top:-1px;font-size:12px;line-height:16px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;padding:0px 12px 12px 12px;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"],A=>A.bgColor,A=>A.bgColor);var W=w(76713),st=w.n(W),rt=w(57464);class m extends Z.PureComponent{render(){const{widget:j,children:it,isEditingArea:Y,hasPositionStyle:P=!0}=this.props,R=(0,I.n7)(j),{w:at,h:$,order:K,type:H,info:B}=j,{showAuthor:X,showTime:V,author:L,time:ot}=B,G=ot?st()(Number(ot)).format("YYYY.MM.DD"):"",z=H===O.x.WTear||Y,F=H===O.x.WSticky&&Y,ut={...P?{position:"absolute",top:0,left:0}:{},width:at+"px",height:z?void 0:$+"px",minHeight:F?$+"px":void 0,boxShadow:H===O.x.WTear?"0px 2.4162309169769287px 4.832461833953857px 0px rgba(0, 0, 0, 0.2)":"",fontFamily:"PingFangSC"};return(0,rt.jsxs)(M,{style:ut,bgColor:R,children:[(0,rt.jsx)("header",{className:"header",children:H!==O.x.WTear?K:""}),it,(X||V)&&(0,rt.jsxs)("div",{className:"footer",children:[X&&(0,rt.jsx)("span",{className:"username",children:L}),V&&(0,rt.jsx)("span",{children:G})]})]})}}const U=m},3732:($t,wt,w)=>{"use strict";w.d(wt,{M:()=>L,a:()=>G});var Z=w(74059),I=w(51044),O=w(72605),b=w(63686),M=w(78869),W=w.n(M),st=w(86634),rt=w.n(st),m=w(94947),U=w(39709),A=w(62543),j=w(8907),it=w(47143),Y=w(20029),P=w(30797),R=w(81962),at=w(76445),$=w(73807),K=w(57465),H=w(23092),B=w(57464);class X extends I.PureComponent{constructor(F){super(F),(0,Z.A)(this,"editorRef",null),(0,Z.A)(this,"setStickyHeight",W()(()=>{const{widget:{key:E,textV0:{padding:J},h:dt},dispatch:pt}=this.props;let T=!1,ht=dt;this.editorRef&&this.editorRef.editor&&this.editorRef.editor.editorContainer&&(ht=this.editorRef.editor.editorContainer.offsetHeight||0,ht=ht+(J||0)*2,ht<100&&(ht=100),ht!==dt&&ht>dt&&(T=!0)),T&&pt({type:$.k.EntryKey["entry:draft:sticky:update"],payload:{key:E,h:ht}})},500,{leading:!1,trailing:!0})),(0,Z.A)(this,"_showPlaceholder",E=>E&&!this.state.editorState.isInCompositionMode()&&!this.state.editorState.getCurrentContent().hasText()),(0,Z.A)(this,"onDoubleClick",E=>{const{isPreview:J,dispatch:dt}=this.props,pt=document.elementFromPoint(E.clientX,E.clientY);pt.tagName==="IMG"&&dt(J?{type:"previewModal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:pt.src}}}:{type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:pt.src}}})});const{widget:{textV1:k}}=F,ut=(0,j.mx)(k);this.state={editorState:(0,A.n)(ut)}}componentDidUpdate(F){const{widget:{textV1:k,w:ut,h:E}}=F,{widget:{textV1:J,cid:dt,w:pt,h:T},newSelection:ht,editingCid:yt}=this.props;if(!(0,U.eI)(J,k)){const ct=(0,j.mx)(J);this.setState({editorState:(0,A.n)(ct)})}!ht||!ht.length||ht.includes(dt)&&dt!==yt&&(pt!==ut||T!==E)&&this.setStickyHeight()}render(){var F;const{widget:k,viewType:ut,activeEntityKey:E,editingCid:J,placeHolderColor:dt,onCopy:pt,is4Tear:T,placeHolder:ht,isContentCanSelect:yt}=this.props,{cid:ct}=k,{editorState:gt}=this.state,bt=(0,R.Ot)(gt),Tt=this._showPlaceholder(bt);let Pt=yt!==void 0?yt:ut==="only_view";!(0,m.FM)()&&!((F=MB)!=null&&(F=F.user)!=null&&F.cid)&&(Pt=!1);const It=k["!haVersion"]===3&&!bt?k.textV0.horizontalAlign:void 0,Dt=rt()("draft-editor-div",T&&"wTear",ut!==at.qi.OnlyView&&"text",ct===J&&"active",E&&"active-"+E,Tt&&"show-placeholder",Pt&&"contentSelect","h-"+It);let jt="";try{jt=(0,K.d0)(k)}catch(Mt){}return(0,B.jsx)(H.w,{className:Dt,activeKey:E,placeHolderColor:dt,onCopy:pt,onDoubleClick:this.onDoubleClick,children:(0,B.jsx)("div",{className:"draft-common-editor-wrapper",children:(0,B.jsx)("div",{className:"draft-common-editor",children:(0,B.jsx)("div",{className:rt()("public-DraftEditor-content is-preview",{empty:bt}),"data-content":bt?ht||I18N.SettingPanel.design.input_annotations:"",dangerouslySetInnerHTML:{__html:jt}})})})})}}const V=(0,b.Mz)([$.k.Query.getActiveEntityKey,P.p$,it.lh,Y.jx],(z,F,k,ut)=>({activeEntityKey:z,newSelection:F,editingCid:k,viewType:ut})),L=(0,O.Ng)(z=>V(z))(X),ot=(0,b.Mz)([$.k.Query.getActiveEntityKey,$.k.Query.getIsCreatingLink],(z,F)=>({activeEntityKey:z,isCreatingLink:F,viewType:"only_view"})),G=(0,O.Ng)(z=>ot(z))(X)},5358:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>A});var Z=w(51044),I=w(86634),O=w.n(I),b=w(62543),M=w(8907),W=w(81962),st=w(57465),rt=w(23092),m=w(57464);const U=j=>{const{widget:it,placeHolderColor:Y,onCopy:P}=j,{textV1:R}=it,at=(0,Z.useMemo)(()=>{const X=(0,M.mx)(R);return(0,b.n)(X)},[R]),$=(0,W.Ot)(at);let K="";try{K=(0,st.d0)(it)}catch(X){}const B="text h-"+(it["!haVersion"]===3&&!$?it.textV0.horizontalAlign:void 0);return(0,m.jsx)(rt.w,{className:B,placeHolderColor:Y,onCopy:P,children:(0,m.jsx)("div",{className:"draft-common-editor-wrapper",children:(0,m.jsx)("div",{className:"draft-common-editor",children:(0,m.jsx)("div",{className:O()("public-DraftEditor-content",{empty:$}),"data-content":$?I18N.SettingPanel.design.input_annotations:"",dangerouslySetInnerHTML:{__html:K}})})})})},A=(0,Z.memo)(U)},23092:($t,wt,w)=>{"use strict";w.d(wt,{w:()=>I});var Z=w(21676);const I=Z.Ay.div.withConfig({displayName:"styles__StyledDraftCommonEditorDiv",componentId:"sc-m6rvfo-0"})(["flex:1;position:relative;border:1px solid #ffffff;padding:12px;background-color:#ffffff;font-size:14px!important;color:rgba(25,25,25,1)!important;&.h-right{ul,ol{&.listRTL{li.listRTL{justify-content:flex-end;}}}.public-DraftEditor-content{text-align:right;}}&.h-center{ul,ol{&.listRTL{li.listRTL{justify-content:center;}}}.public-DraftEditor-content{text-align:center;}}&.h-left,&.h-justify{ul,ol{&.listRTL{li.listRTL{justify-content:flex-start;}}}.public-DraftEditor-content{text-align:left;}}&.wTear{padding:12px 6px 12px 12px;.draft-common-editor-wrapper{.draft-common-editor{min-height:84px;max-height:252px;overflow:auto;}}}&.editing{cursor:text;a{cursor:text;}}&.text{&.active{display:none !important;}}&.contentSelect{.draft-common-editor-wrapper{.draft-common-editor{.public-DraftEditor-content{&[contenteditable=false],&.is-preview{user-select:text !important;cursor:text;*{user-select:text !important;}}}}}}&.","{.draft-common-editor{.draft-link-decorator-a.","{background-color:#BAD7FB !important;}}}.draft-common-editor-wrapper{width:100%;word-break:break-word;white-space:break-spaces;.draft-common-editor{width:100%;&::-webkit-scrollbar-thumb{background-color:#dbdbdb;&:hover{background-color:#cccccc;}}.DraftEditor-editorContainer{height:initial;border:none;}.public-DraftEditorPlaceholder-inner{line-height:1.5;color:","}.public-DraftEditor-content{line-height:1.5;&[contenteditable=false]{user-select:none !important;*{user-select:none !important;}}h1{font-size:26px;span{font-size:26px !important;}}h2{font-size:22px;span{font-size:22px !important;}}h3{font-size:18px;span{font-size:18px !important;}}}.public-DraftStyleDefault-block{margin:0;}.rdw-left-aligned-block{.public-DraftStyleDefault-block{text-align:left;&::before{white-space:nowrap;}}}.rdw-center-aligned-block{.public-DraftStyleDefault-block{text-align:center;&::before{white-space:nowrap;}}}.rdw-right-aligned-block{.public-DraftStyleDefault-block{text-align:right;&::before{white-space:nowrap;right:0;}}}.rdw-justify-aligned-block{.public-DraftStyleDefault-block{text-align:justify;&::before{white-space:nowrap;}}}.rdw-indent-0{margin-left:0;}.rdw-indent-2{margin-left:2rem;}.rdw-indent-4{margin-left:4rem;}.rdw-indent-6{margin-left:6rem;}.draft-image-atomic{cursor:pointer;border-radius:2px;outline:none;margin-top:10px;margin-bottom:10px;&.unfocused:hover{outline:3px solid #accef7;}&.focused{outline:3px solid #accef7;}&.has-margin-top{margin-top:10px;}&.has-margin-bottom{margin-bottom:10px;}}}}.draft-common-editor-wrapper{.draft-common-editor{.public-DraftEditor-content{p{margin:initial;}.link-highlight{background:#BAD7FB;}a{color:rgba(25,25,25,1);> span{}}&.empty{position:relative;&::before{content:attr(data-content);color:",";}}.image-no-font-size{font-size:0px;}}}}"],O=>"active-"+O.activeKey,O=>"active-"+O.activeKey,O=>O.placeHolderColor,O=>O.placeHolderColor)},23854:($t,wt,w)=>{"use strict";w.d(wt,{F:()=>Z,a:()=>I});const Z=[{label:"Normal",style:"unstyled"},{label:"H1",style:"header-one"},{label:"H2",style:"header-two"},{label:"H3",style:"header-three"},{label:"H4",style:"header-four"},{label:"H5",style:"header-five"},{label:"H6",style:"header-six"},{label:"Blockquote",style:"blockquote"}],I={COMMON:0,TEXT:1,BASIC:2}},47483:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>bt});var Z=w(52098),I=w(82571),O=w.n(I),b=w(6312);const M=Pt=>{let It,Dt=null;return document.implementation&&document.implementation.createHTMLDocument&&(It=document.implementation.createHTMLDocument("foo"),It.documentElement.innerHTML=Pt,Dt=It.getElementsByTagName("body")[0]),Dt},W=" ",st=4,rt=new RegExp("\\n","g"),m=new RegExp("^\\n","g"),U=(Pt,It,Dt,jt)=>{const Mt=Pt.textContent.replace(m,"").replace(rt,jt?W:"");return{chunk:{text:Mt,inlines:Array(Mt.length).fill(It),entities:Array(Mt.length).fill(Dt),blocks:[]}}},A=()=>({text:"",inlines:[],entities:[],blocks:[]}),j=()=>({text:"\r",inlines:[],entities:[],blocks:[]}),it=(Pt,It)=>({text:"",inlines:[],entities:[],blocks:[{type:Pt,depth:0,data:It||(0,b.T5)({})}]}),Y=(Pt,It,Dt)=>({text:"\r",inlines:[],entities:[],blocks:[{type:Pt,depth:Math.max(0,Math.min(st,It)),data:Dt||(0,b.T5)({})}]}),P=Pt=>({text:"\r ",inlines:[(0,b.CD)()],entities:[Pt],blocks:[{type:"atomic",depth:0,data:(0,b.T5)({})}]}),R=Pt=>({text:" ",inlines:[(0,b.CD)()],entities:[Pt],blocks:[{type:"atomic",depth:0,data:(0,b.T5)({})}]}),at=(Pt,It)=>({text:Pt.text+It.text,inlines:Pt.inlines.concat(It.inlines),entities:Pt.entities.concat(It.entities),blocks:Pt.blocks.concat(It.blocks)});var $=w(23854);const K=(0,b.T5)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},unstyled:{element:"p",aliasedElements:["div"]}}),H=(Pt,It,Dt)=>{const jt=K.filter(Mt=>Mt.element===It&&(!Mt.wrapper||Mt.wrapper===Dt)||Mt.wrapper===It||Mt.aliasedElements&&Mt.aliasedElements.indexOf(It)>-1).keySeq().toSet().toArray();if(jt.length===1){let Mt=jt[0];return[$.a.BASIC].includes(Pt)&&Mt!=="unstyled"&&(Mt="unstyled"),Mt}},B=["left","center","right","justify"],X=["0","2em","2rem"],V=(Pt,It)=>{if(!It.style)return;const{textAlign:Dt,marginLeft:jt,marginBottom:Mt}=It.style;let Q=(0,b.T5)();if([$.a.COMMON].includes(Pt)&&(Dt&&B.includes(Dt)&&(Q=Q.set("textAlign",Dt)),jt)){let vt;X.includes(jt)&&(vt=Number(jt.replace("em","").replace("rem","")));const Lt=It.classList;if(Lt&&Lt.length)for(let Rt=0;Rt<Lt.length;Rt+=1){const Bt=Lt[Rt];if(Bt.includes("rdw-indent-")){vt=Number(Bt.split("rdw-indent-")[1]);break}}vt&&(Q=Q.set("textIndent",vt))}if([$.a.TEXT].includes(Pt)&&Mt){const vt=It.getAttribute("style");if(vt&&vt.includes("margin-bottom")){const Lt=Mt.replace("px","");Number(Lt)+""===Lt&&(Q=Q.set("paraSpacing",Number(Mt.replace("px",""))))}}return Q.size?Q:void 0},L=Pt=>{let It;if(Pt instanceof HTMLAnchorElement){const Dt={};Pt.dataset&&Pt.dataset.mention!==void 0?(Dt.url=Pt.href,Dt.text=Pt.innerHTML,Dt.value=Pt.dataset.value,It=Z.wC.__create("MENTION","IMMUTABLE",Dt)):(Dt.url=Pt.getAttribute&&(Pt.getAttribute("href")||Pt.getAttribute("data-href"))||Pt.href,Dt.title=Pt.innerHTML,Dt.targetOption=Pt.target,It=Z.wC.__create("LINK","MUTABLE",Dt))}return It};var ot=w(59956);const G={sub:"SUBSCRIPT",sup:"SUPERSCRIPT",strike:"STRIKETHROUGH",s:"STRIKETHROUGH",del:"STRIKETHROUGH",i:"ITALIC",em:"ITALIC",b:"fontweight-700",strong:"fontweight-700",u:"UNDERLINE",ins:"UNDERLINE"},z=Pt=>{let{componentType:It,tag:Dt,node:jt,currentStyle:Mt,inlineProcessType:Q}=Pt,vt=G[Dt];Q==="plain"&&(vt=void 0);let Lt;if(Q==="plain")return Mt;if(vt)Lt=Mt.add(vt).toOrderedSet();else if(jt instanceof HTMLElement){Lt=Mt;const Rt=jt;Lt=Lt.withMutations(Bt=>{const Ht=Rt.style.color,zt=Rt.style.fontSize,Kt=Rt.style.fontFamily.replace(/^"|"$/g,""),ce=Rt.style.fontWeight,oe=Rt.style.textDecoration||"",he=Rt.style.fontStyle,_e=Rt.style.lineHeight,Fe=Rt.style.letterSpacing;if(ce&&(["bold"].includes(ce)?Bt.add("fontweight-700"):["light","lighter","normal"].includes(ce),["100","200","300","400","500","600","700","800","900","1000"].includes(ce))){const Re=Number(ce);(["700"].includes(ce)||Q==="total")&&Bt.add("fontweight-"+Re)}if(he==="italic"?Bt.add("ITALIC"):he==="normal"&&Bt.remove("ITALIC"),oe.includes("underline")&&Bt.add("UNDERLINE"),oe.includes("line-through")&&Bt.add("STRIKETHROUGH"),oe==="none"&&(Bt.remove("UNDERLINE"),Bt.remove("STRIKETHROUGH")),Q==="total"){if(Ht&&(Ht.startsWith("rgba")?Bt.add("color-"+Ht.replace(/ /g,"")):Bt.add("color-"+Ht.replace(/ /g,"").replace(/\)/g,",1)").replace("rgb","rgba"))),zt){const Re=zt.replace(/px$/g,"");ot.mQ.includes(Re)&&Bt.add("fontsize-"+Re)}if([$.a.TEXT].includes(It)){if(_e){const Re=_e.includes("px")?_e:_e+"px";ot.$M.includes(Re)&&Bt.add("lineheight-"+Re)}if([$.a.TEXT].includes(It)&&(Kt&&ot.d1.includes(Kt)&&Bt.add("fontfamily-"+Kt),Fe)){const Re=Fe.includes("px")?Fe:Fe+"px",le=parseFloat(Re).toFixed(1);ot.Nk[le]&&Bt.add("letterspacing-"+le+"px")}}}}).toOrderedSet()}return Lt};var F=w(23340);const k="&nbsp;",ut=" ",E=new RegExp("\\r","g"),J=new RegExp(k,"g"),dt=new RegExp("&#13;","g"),pt=new RegExp("&#8203;?","g"),T=["unordered-list-item","ordered-list-item"],ht={"public-DraftStyleDefault-depth0":0,"public-DraftStyleDefault-depth1":1,"public-DraftStyleDefault-depth2":2,"public-DraftStyleDefault-depth3":3,"public-DraftStyleDefault-depth4":4};let yt=!0;const ct=Pt=>{let{componentType:It,node:Dt,inlineStyle:jt,depth:Mt,lastList:Q,inEntity:vt,isFromFeishu:Lt,inlineProcessType:Rt,isSearchReplace:Bt}=Pt;const Ht=Dt.nodeName.toLowerCase();let zt=Mt;if(Ht==="#text")return U(Dt,jt,vt,Lt);if(Ht==="br"){const he=Dt.nextSibling,_e=he&&(he.nodeName||"").toLowerCase();return _e==="#text"||_e==="br"?{chunk:j()}:{chunk:A()}}if(It===$.a.COMMON&&Ht==="img"&&Dt instanceof HTMLImageElement){const he={};he.src=Dt.getAttribute&&Dt.getAttribute("src")||Dt.src,he.alt=Dt.alt,he.height=Dt.style.height,he.width=parseFloat(Dt.style.width),Dt.style.float&&(he.alignment=Dt.style.float),Dt.style.textAlign&&(he.alignment=Dt.style.textAlign),he.alignment||(he.alignment="center");const _e=Z.wC.__create("IMAGE","MUTABLE",he);return{chunk:Bt?R(_e):P(_e)}}if(Ht==="video"&&Dt instanceof HTMLVideoElement)return{chunk:A()};if(Ht==="iframe"&&Dt instanceof HTMLIFrameElement)return{chunk:A()};const Kt=H(It,Ht,Q);let ce;if(Kt)if(Ht==="ul"||Ht==="ol")Q=Ht,zt+=1;else{const he=Dt.parentNode,_e=he&&he.nodeName&&["div","p","ol","ul"].includes(he.nodeName.toLowerCase()),Fe=he.childNodes;let Re=!1;_e&&Fe&&Fe.length&&(Re=O()(Fe,fe=>fe.nodeName.toLowerCase()!=="#text"));const le=Dt&&Dt.nodeName&&["div","p","ol","ul"].includes(Dt.nodeName.toLowerCase()),ee=Dt.childNodes;let ge=!1;le&&ee&&ee.length&&(ge=O()(ee,fe=>fe.nodeName.toLowerCase()!=="#text"));const de=Re&&ge;if(!T.includes(Kt))de||(Q="",zt=-1);else{const fe=Dt.classList;T.includes(Kt)&&fe&&fe.length&&O()(fe,Ae=>{if(Ae&&Ae.startsWith("public-DraftStyleDefault-depth")){const te=ht[Ae];if(typeof te=="number")return zt=te,!1}return!0})}yt?(ce=it(Kt,V(It,Dt)),yt=!1):de||he&&he.nodeName&&!["li","h1","h2","h3"].includes(he.nodeName.toLowerCase())&&(ce=Y(Kt,zt,V(It,Dt)))}ce||(ce=A()),jt=z({componentType:It,tag:Ht,node:Dt,currentStyle:jt,inlineProcessType:Rt});let oe=Dt.firstChild;for(;oe;){const he=L(oe),{chunk:_e}=ct({componentType:It,node:oe,inlineStyle:jt,depth:zt,lastList:Q,inEntity:he||vt,isFromFeishu:Lt,inlineProcessType:Rt,isSearchReplace:Bt});ce=at(ce,_e),oe=oe.nextSibling}return{chunk:ce}},gt=(Pt,It,Dt,jt)=>{let Mt=Pt.trim().replace(E,"").replace(J,ut).replace(dt,"").replace(pt,"");const Q=(0,F.NW)(Pt);Mt=Mt.replace(/<br[^>]*>/g,"<br>").replace(/<meta[^>]*>/g,"").replace(/<figure[^>]*>/g,"").replace(/<\/figure>/g,"").replace(/<!--[^-->]*-->/g,"").replace(/<([ou]l)[^>]*\s+(style="[^"]*?(font-size|color)[^;"]*?;?[^"]*?")[^>]*>/g,"<$1>").replace(/<style[^>]*>[^]*?<\/style>/g,""),jt||(Mt=Mt.replace(/<img[^>]*>/g,"")),It===$.a.BASIC&&(Mt=Mt.replace(/<a[^>]*>/g,"").replace(/<\/a>/g,""),Mt=Mt.replace(/<ul/g,"<div").replace(/<\/ul>/g,"</div>").replace(/<li/g,"<div").replace(/<\/li>/g,"</div>").replace(/public-DraftStyleDefault-depth[0-4]/g,""));const vt=M(Mt);if(!vt)return null;let Lt=!1;if(!Q){const Bt=vt.querySelector(".lark-record-clipboard");Bt&&Bt.remove(),Lt=!!Bt;const Ht=vt.children,zt=vt.children[0];if(Ht.length===1&&Ht[0].tagName==="DIV"&&zt.children.length>=1){const Kt=zt.children;for(;Kt.length>0;)vt.appendChild(Kt[0])}Lt&&vt.querySelectorAll("[data-page-id]").forEach(ce=>{ce.remove()})}yt=!0;const{chunk:Rt}=ct({componentType:It,node:vt,inlineStyle:(0,b.CD)(),depth:-1,lastList:"",inEntity:void 0,isFromFeishu:Lt,inlineProcessType:Dt,isSearchReplace:jt});return{chunk:Rt}},bt=Pt=>{let{html:It,componentType:Dt=0,inlineProcessType:jt="total",isSearchReplace:Mt=!1}=Pt;const Q=gt(It,Dt,jt,Mt);if(Q){const{chunk:vt}=Q;let Lt=(0,b.uY)({});vt.entities&&vt.entities.forEach(Bt=>{Bt&&(Lt=Lt.set(Bt,Z.wC.__get(Bt)))});let Rt=0;if(Dt===$.a.COMMON&&Mt){const Bt=vt.blocks.reduce((ce,oe,he)=>{if(oe.type==="atomic"){if(he>0){const _e=ce.pop();ce.push({..._e,type:"atomic"})}}else ce.push(oe);return ce},[]),Ht={...vt,blocks:Bt};return{contentBlocks:Ht.text.split("\r").map((ce,oe)=>{const he=Rt+ce.length,_e=Ht&&Ht.inlines.slice(Rt,he),Fe=Ht&&Ht.entities.slice(Rt,he),Re=Tt(_e,Fe);return Rt=he,new Z.$G({key:(0,Z.Se)(),type:Ht&&Ht.blocks[oe]&&Ht.blocks[oe].type||"unstyled",depth:Ht&&Ht.blocks[oe]&&Ht.blocks[oe].depth,data:Ht&&Ht.blocks[oe]&&Ht.blocks[oe].data||(0,b.T5)({}),text:ce,characterList:Re})}),entityMap:Lt}}else return{contentBlocks:vt.text.split("\r").map((zt,Kt)=>{const ce=Rt+zt.length,oe=vt&&vt.inlines.slice(Rt,ce),he=vt&&vt.entities.slice(Rt,ce),_e=Tt(oe,he);return Rt=ce,new Z.$G({key:(0,Z.Se)(),type:vt&&vt.blocks[Kt]&&vt.blocks[Kt].type||"unstyled",depth:vt&&vt.blocks[Kt]&&vt.blocks[Kt].depth,data:vt&&vt.blocks[Kt]&&vt.blocks[Kt].data||(0,b.T5)({}),text:zt,characterList:_e})}),entityMap:Lt}}return null},Tt=(Pt,It)=>(0,b.B8)(Pt.map((Dt,jt)=>{const Mt={style:Dt,entity:null};return It[jt]&&(Mt.entity=It[jt]),Z.z5.create(Mt)}))},79183:($t,wt,w)=>{"use strict";w.d(wt,{H:()=>O});const Z=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,I=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function O(b){return String(b).replace(Z,"").match(I)?b:"#"}},96834:($t,wt,w)=>{"use strict";w.d(wt,{Q7:()=>A,Sn:()=>m,w9:()=>rt});var Z=w(51044),I=w(21676),O=w(72605),b=w(86310),M=w(57464);const W=j=>{const it=j.map(at=>"\n @font-face {\n font-family: "+at.key+";\n src: url("+at.hotAttr.extData+");\n }\n ").join(""),Y=document.getElementById("font-face-loader");if(Y){Y.innerHTML=it;return}const P=document.getElementsByTagName("head")[0],R=document.createElement("style");R.id="font-face-loader",R.innerHTML=it,P.appendChild(R)};let st=!1;const rt=()=>{const j=(0,O.wA)(),it=(0,O.d4)(b.y.query.getCloudFontExtList);return(0,Z.useEffect)(()=>{W(it)},[it]),(0,Z.useEffect)(()=>{st||(st=!0,j({type:b.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!1}}))},[]),null},m=()=>{const j=sdkStore.getSubHotItemList("B@ext");return(0,Z.useEffect)(()=>{W(j)},[j]),null},U=(0,I.DU)(["",""],j=>j.cloudFontExtList.map(it=>"\n @font-face {\n font-family: "+it.key+";\n src: url("+it.hotAttr.extData+");\n }\n ")),A=j=>(0,M.jsx)(U,{cloudFontExtList:j})},585:($t,wt,w)=>{"use strict";w.d(wt,{Hy:()=>j,Ut:()=>U,W7:()=>st,Xg:()=>it,iI:()=>m,xt:()=>A});var Z=w(28497),I=w(44864),O=w(63555),b=w(25399),M=w(19216),W=w(71604);function st(Y){return Y&&typeof Y=="number"||typeof Y=="string"&&Y.endsWith("s")?parseFloat(Y)*1e3:Y}const rt=Y=>Y?sdkStore.getSubHotItemList(Y).filter(P=>{let{key:R,hotAttr:at}=P;return at.type===WidgetType.Canvas&&!at.asOverlay}).sort((P,R)=>P.hotAttr.order-R.hotAttr.order):[],m=(Y,P)=>{try{if(Y.isTargetWidgetValid){if(Y.data.targetWidgetKey===b.rE)return I18N.SettingPanel.current_widget;if(Y.data.targetWidgetKey===b.VZ){const R=sdkStore.locTopRBActiveKey(Y.triggerItemKey)===I.fW?(0,M.JC)(sdkStore,Y.triggerItemKey)||P:(0,M.JC)(sdkStore,Y.triggerItemKey);if(R)return(0,W.KD)(R)}return(0,W.KD)(Y.data.targetWidgetKey)}return I18N.SettingPanel.please_select}catch(R){return I18N.SettingPanel.please_select}},U=Y=>{switch(Y.data.interactionType){case Z.O2.LinkToCanvas:return Y.isTargetValid?sdkStore.getHotItem(Y.data.targetResCanvasKey).hotAttr.name:I18N.SettingPanel.select_artboard;case Z.O2.OpenOverlay:case Z.O2.SwapOverlay:return Y.isTargetValid?sdkStore.getHotItem(Y.data.targetOverlayKey).hotAttr.name:I18N.SettingPanel.select_overlay;default:return I18N.SettingPanel.select_artboard}},A=(Y,P)=>{const R=Y.data.targetBasketKey===b.VZ?(0,M.Ik)(sdkStore,Y.triggerItemKey)||P:Y.data.targetBasketKey;return R&&(Y.isTargetCanvasSupValid||!Y.dataIntegrity)?sdkStore.getHotItem(R).hotAttr.name:Y.data.targetBasketKey},j=(Y,P)=>{const R=sdkStore.getHotItem(Y);if(!R||R.hotAttr.bunch!=="rbPage")return null;const at=sdkStore.getHotItem(P);if(!at)return null;const $=R.hotAttr.device!=="none"?R.hotAttr.deviceOrientation==="portrait"?R.hotAttr.deviceW:R.hotAttr.deviceH:at.hotAttr.w,K=R.hotAttr.device!=="none"?R.hotAttr.deviceOrientation==="portrait"?R.hotAttr.deviceH:R.hotAttr.deviceW:at.hotAttr.h;return{top:0,left:0,right:$,bottom:K}},it=Y=>{var P,R,at;let{ita:$,editingPanelRefPage:K,targetResCanvasKey:H}=Y;if([b.L8,b.Gp,b.Oh,b.Hg].includes(H)){var B;return(B=[{label:I18N.SettingPanel.first_state,value:b.L8},{label:I18N.SettingPanel.pre_state,value:b.Gp},{label:I18N.SettingPanel.next_state,value:b.Oh},{label:I18N.SettingPanel.last_state,value:b.Hg}].find(V=>V.value===H))==null?void 0:B.label}const X=$.data.targetBasketKey===b.VZ?((P=sdkStore.getHotItem((0,M.Ik)(sdkStore,$.triggerItemKey)))==null||(P=P.hotAttr)==null?void 0:P.refRBPageKey)||K:$.data.targetBasketKey?(R=sdkStore.getHotItem($.data.targetBasketKey))==null||(R=R.hotAttr)==null?void 0:R.refRBPageKey:"";return X?(at=sdkStore.findAllTypeUnder(X,"rResCanvas").find(V=>V.key===H))==null?void 0:at.hotAttr.name:""}},50167:($t,wt,w)=>{"use strict";w.d(wt,{cM:()=>A,ju:()=>m,wN:()=>U});var Z=w(8508),I=w(5115),O=w(30797);if(w.j!=183)var b=w(61724);var M=w(97788),W=w(47813),st=w(28497),rt=w(78570);const m=(j,it)=>{const Y=(0,Z.vy)(j),P=(0,I.w_)(j),R=(0,I.Yg)(j),at=(0,O.Z9)(j),$=(0,b.zX)(j);return(0,M.LE)({activeLinkCid:Y,selectOptionNode:P,selectCarouselImage:R,items:at,selectTableCellInfo:$,uiFrom:it})},U=j=>{const{isCanvasSetting:it}=(0,W.y)(j);return it},A=j=>{let{ita:it,state:Y,preserveData:P}=j;const R=(0,rt.EK)(Y),at=(0,rt.Bl)(Y),$=(0,rt.D9)(Y),K=(0,rt.KV)(Y),H=Object.keys(P||{}).length>0;switch(it.interactionType){case st.O2.LinkToCanvas:{H||(it.transition=R===1?"auto":"none",it.transitionDuration=R===1?"0.2s":"");break}case st.O2.LinkToSourceCanvas:{H||(it.transition=R===1?"auto":"none",it.transitionDuration=R===1?"0.2s":"");break}case st.O2.SetBasketCanvas:{H||(it.transition=at===1?"auto":"none",it.transitionDuration=at===1?"0.2s":"");break}case st.O2.OpenOverlay:{H||(it.transition=$===1?"auto":"none",it.transitionDuration=$===1?"0.2s":"");break}case st.O2.SwapOverlay:{H||(it.transition=K===1?"auto":"none",it.transitionDuration=K===1?"0.2s":"");break}}}},97788:($t,wt,w)=>{"use strict";w.d(wt,{AQ:()=>Re,BX:()=>Bn,Bj:()=>Xn,CS:()=>an,D8:()=>pt,DL:()=>ln,Es:()=>z,FE:()=>Dt,GE:()=>Kt,Ge:()=>V,H4:()=>Ie,HW:()=>Tr,In:()=>fn,JT:()=>lr,LE:()=>jt,Mc:()=>Ji,Md:()=>vt,OT:()=>un,Oz:()=>Rt,P8:()=>bt,PP:()=>Tn,Pk:()=>_e,Qe:()=>yt,RO:()=>H,TK:()=>k,W4:()=>F,Wv:()=>zt,X2:()=>mn,Yj:()=>J,Yw:()=>G,ZE:()=>ot,Z_:()=>On,_6:()=>he,_k:()=>Fn,aW:()=>fe,bH:()=>en,cF:()=>oe,db:()=>ut,e4:()=>le,e7:()=>Qe,g:()=>bn,gB:()=>gt,gk:()=>yr,gu:()=>Tt,he:()=>te,iA:()=>ct,is:()=>zn,j$:()=>Bt,ky:()=>T,ow:()=>L,qL:()=>Ht,sJ:()=>Lt,tu:()=>dt,vc:()=>ht,xx:()=>ge,zS:()=>vn,zd:()=>de});var Z=w(74059);if(w.j!=183)var I=w(2937);var O=w(28497),b=w(19216),M=w(25399),W=w(35332),st=w(63555),rt=w(40829),m=w(21840),U=w(585);if(w.j!=183)var A=w(34637);var j=w(54606),it=w(44864),Y=w(5115),P=w(62065),R=w(61269),at=w(50167);if(w.j!=183)var $=w(61724);if(w.j!=183)var K=w(32460);const H=qt=>qt.map((Jt,se)=>({...Jt,order:se+1})),B=qt=>{const Jt={};for(const se of qt)se.triggerDisable&&(Jt[se.interactionTrigger]=!0);return Jt},X=qt=>{let{newIta:Jt,triggerDisableKV:se}=qt;const xe=se[Jt.interactionTrigger];xe!==void 0?Jt.triggerDisable=xe:Jt.triggerDisable=!1},V=qt=>{let{clipboardItas:Jt,editingBasketKey:se,isEditingBasket:xe,hasSubKey:ke,targetInteraction:Ne,prevItas:$e}=qt;const Le=B($e);let He=Jt.map(Ye=>{switch(Ye.interactionType){case 3:{let yn=Ye.targetBasketKey;xe&&(yn=se===Ye.targetBasketKey?M.VZ:Ye.targetBasketKey),Ye.targetBasketKey=yn;break}default:break}const Ke={...Ye,key:(0,W.cF)("ita"),subKey:ke?(0,W.cF)("ita"):void 0,"!validVersion":2};if(Ne)Ke.interactionTrigger=Ne.interactionTrigger,Ke.triggerDisable=Ne.triggerDisable;else{const yn=Le[Ke.interactionTrigger];yn!==void 0&&(Ke.triggerDisable=yn)}return Ke});return He.length>1&&(He=He.filter(Ye=>Ye.interactionType!==O.O2.TriggerPlaceHolder)),He},L=qt=>{let{bePastedItas:Jt,nextItas0:se,insertPos:xe}=qt;return H([...se.slice(0,xe),...Jt,...se.slice(xe)])},ot=qt=>{const Jt=(0,K.W)([...qt]),se=(0,b.$e)(Jt);return Object.values(se).flatMap(ke=>ke,[])},G=qt=>"DUMMY_"+qt,z=qt=>qt.startsWith("DUMMY"),F=qt=>qt.split("_")[1],k=qt=>{let{key:Jt,trigger:se,sub:xe,triggerDisable:ke}=qt;return{type:"trigger",attr:{key:Jt,trigger:se,disabled:ke},sub:xe,level:1,isLast:!1,sup:"root"}},ut=qt=>{let{attr:Jt,supKey:se}=qt;return{type:"action",attr:Jt,sub:[],sup:se,level:2}},E=qt=>{let{trigger:Jt,supKey:se}=qt;return{type:"action",attr:{key:G(Jt),interactionType:"dummy",isTargetValid:!0,isUiValid:!0,interactive:!0,actionDisable:!1,triggerDisable:!1},sub:[],level:2,sup:se,isLast:!0}},J=qt=>{let{interactions:Jt}=qt;const se=(0,b.$e)(Jt),xe=Object.entries(se),ke=xe.map($e=>$e[0]),Ne={type:"root",attr:{key:"root"},level:0,sub:[]};for(const[$e,Le]of xe){const He=vt($e),Ye=Le.map(Ke=>ut({attr:Ke,supKey:He}));Ye.push(E({trigger:$e,supKey:He})),Ne.sub.push(k({key:He,trigger:$e,triggerDisable:Ye[0].attr.triggerDisable,sub:Ye}))}return{itaTree:Ne,triggerList:ke}},dt=qt=>{let{sdk:Jt,interactions:se,itemKey:xe,vMode:ke,selectInteractionKey:Ne}=qt;const $e=(0,P.G$)(se),Le=(0,b.I3)(Jt,$e,xe,ke),{itaTree:He,triggerList:Ye}=J({interactions:Le});if(Ne&&z(Ne)){const Ke=F(Ne),yn=vt(Ke);if(!Ye.includes(Ke)){const Qn=[E({trigger:Ke,supKey:yn})];He.sub.push(k({key:yn,trigger:Ke,triggerDisable:!1,sub:Qn}))}}return He.sub[He.sub.length-1].isLast=!0,{runTimeInteraction:Le,itaTree:He}},pt=qt=>{let{actionDummyKey:Jt}=qt;const se={type:"root",level:0,sub:[],attr:{key:"root"}},xe=F(Jt),ke=vt(xe),Ne=[E({trigger:xe,supKey:ke})];return se.sub.push(k({key:ke,sub:Ne,triggerDisable:!1,trigger:xe})),{itaTree:se,runTimeInteraction:[]}},T=()=>({itaTree:{type:"root",level:0,sub:[],attr:{key:"root"}},runTimeInteraction:[]}),ht=qt=>I18N.Interaction.trigger[qt]||"",yt=qt=>{switch(qt){case O.O2.LinkToCanvas:return I18N.SettingPanel.link_screen_jump;case O.O2.LinkToSourceCanvas:return I18N.SettingPanel.link_to_prev;case O.O2.OpenExternalUrl:return I18N.SettingPanel.open_hyperlink;case O.O2.SetBasketCanvas:return I18N.SettingPanel.link_widget_change;case O.O2.ScrollTo:return I18N.SettingPanel.roll_to;case O.O2.SetVisibility:return I18N.SettingPanel.show_hide;case O.O2.OpenOverlay:return I18N.SettingPanel.open_overlay;case O.O2.CloseOverlay:return I18N.SettingPanel.close_overlay;case O.O2.SwapOverlay:return I18N.SettingPanel.swap_overlay;case"dummy":return I18N.Interaction.header_title1;default:return""}},ct=qt=>{switch(qt.interactionType){case O.O2.LinkToCanvas:return I18N.SettingPanel.link_screen_jump;case O.O2.LinkToSourceCanvas:return I18N.SettingPanel.link_to_prev;case O.O2.OpenExternalUrl:return I18N.SettingPanel.open_hyperlink;case O.O2.SetBasketCanvas:return I18N.SettingPanel.link_widget_change;case O.O2.ScrollTo:return qt.scrollToDir==="vertical"?I18N.Interaction.scroll.to_vertical:qt.scrollToDir==="horizontal"?I18N.Interaction.scroll.to_horizontal:(qt.scrollToDir==="both",I18N.SettingPanel.roll_to);case O.O2.SetVisibility:return qt.actionType==="setVisible"?I18N.SettingPanel.show:qt.actionType==="setHidden"?I18N.SettingPanel.hide:qt.actionType==="toggleVisibility"?""+I18N.SettingPanel.switch+I18N.SettingPanel.show_hide:I18N.SettingPanel.show_hide;case O.O2.OpenOverlay:return I18N.SettingPanel.open_overlay;case O.O2.CloseOverlay:return I18N.SettingPanel.close_overlay;case O.O2.SwapOverlay:return I18N.SettingPanel.swap_overlay;case"dummy":return I18N.Interaction.header_title1;default:return""}},gt=(qt,Jt)=>{var se;let{activeLinkCid:xe,selectCarouselImage:ke,selectSubItaType:Ne,currentPath:$e}=Jt;const Le=((se=qt.widgetStore.sdkStore.getHotItem(qt.keyToAccessIntAct))==null?void 0:se.hotAttr.interactions)||[],He=qt.widgetStore.sdkStore.getInteractionsOf(qt.keyToAccessIntAct);if(Ne==="optionData"&&$e){const Ye=It(qt.widget.optionData,$e);return Ye?He.reduce((Ke,yn)=>{var Qn;return(Qn=Ye.data.linkCids)!=null&&Qn.includes(yn.subKey)&&Ke.push({...yn,data:Le.find(tr=>tr.key===yn.key)||yn,triggerItemKey:qt.keyToAccessIntAct}),Ke},[]):[]}else if(Ne==="carouselImage"){const{carousel:{slides:Ye}}=qt.widget,Ke=Ye[ke];return Ke?He.reduce((yn,Qn)=>{var tr;return(tr=Ke.linkCids)!=null&&tr.includes(Qn.subKey)&&yn.push({...Qn,data:Le.find(Sr=>Sr.key===Qn.key)||Qn,triggerItemKey:qt.keyToAccessIntAct}),yn},[]):[]}else if(Ne==="tableCell")return He.reduce((Ye,Ke)=>(xe.includes(Ke.key)&&Ye.push({...Ke,data:Le.find(yn=>yn.key===Ke.key)||Ke,triggerItemKey:qt.keyToAccessIntAct}),Ye),[]);return He.reduce((Ye,Ke)=>(Ke.subKey||Ye.push({...Ke,data:Le.find(yn=>yn.key===Ke.key)||Ke,triggerItemKey:qt.keyToAccessIntAct}),Ye),[])},bt=qt=>{switch(qt){case O.O2.LinkToCanvas:return(0,O.wG)();case O.O2.LinkToSourceCanvas:return(0,O.NH)();case O.O2.SetBasketCanvas:return(0,O.FT)();case O.O2.OpenExternalUrl:return(0,O.Lf)();case O.O2.ScrollTo:return(0,O.ZX)();case O.O2.SetVisibility:return(0,O.JI)();case O.O2.OpenOverlay:return(0,O.nX)();case O.O2.CloseOverlay:return(0,O.L2)();case O.O2.SwapOverlay:return(0,O.__)();case O.O2.TriggerPlaceHolder:return(0,O.SL)();default:return}},Tt=()=>[{label:I18N.SettingPanel.link_screen_jump,value:O.O2.LinkToCanvas},{label:I18N.SettingPanel.link_to_prev,value:O.O2.LinkToSourceCanvas},{label:I18N.SettingPanel.open_hyperlink,value:O.O2.OpenExternalUrl},{type:"divider"},{label:I18N.SettingPanel.link_widget_change,value:O.O2.SetBasketCanvas},{label:I18N.SettingPanel.roll_to,value:O.O2.ScrollTo},{label:I18N.SettingPanel.show_hide,value:O.O2.SetVisibility},{type:"divider"},{label:I18N.SettingPanel.open_overlay,value:O.O2.OpenOverlay},{label:I18N.SettingPanel.close_overlay,value:O.O2.CloseOverlay},{label:I18N.SettingPanel.swap_overlay,value:O.O2.SwapOverlay}],Pt=qt=>{let{getNewLinkCids:Jt,oldOptionData:se,currentPath:xe}=qt;const ke=JSON.parse(JSON.stringify(se)),Ne=xe.split("-");let $e;if(Ne.length===1){const Le=ke[xe];Le.data={...Le.data,linkCids:Jt(Le.data.linkCids)},$e=Le}else{const Le=He=>{He.data={...He.data,linkCids:Jt(He.data.linkCids)},$e=He};(0,m.PM)({newOptionData:ke,pathArr:Ne,onUpdate:Le})}return{newOptionData:ke,updateNode:$e}},It=(qt,Jt)=>{const se=Jt.split("-");let xe;if(se.length===1)xe=qt[Jt];else{const ke=Ne=>{xe=Ne};(0,m.PM)({newOptionData:qt,pathArr:se,onUpdate:ke})}return xe},Dt=[st.x.WCollapse,st.x.WTabs,st.x.WDropMenu,st.x.WMobileTabBars,st.x.WNavigationMenu,st.x.WNavigationMenuV,st.x.WNavigationMenuH,st.x.WSegmentedControl,st.x.WSelectionControl,st.x.WTree],jt=qt=>{let{activeLinkCid:Jt,selectOptionNode:se,selectCarouselImage:xe,items:ke,selectTableCellInfo:Ne,uiFrom:$e}=qt,Le=!1,He=!1,Ye=!1,Ke=!1,yn="empty";if(ke.length===1){const Qn=ke[0];Le=Qn.type===st.x.WTable&&Ne&&Jt,Ye=Qn.type===st.x.WCarousel&&xe!==void 0&&xe!==null,Ke=Dt.includes(Qn.type)&&se,$e==="treePanelFloat"?Ye?yn="carouselImage":Ke&&(yn="optionData"):Le&&(yn="tableCell"),He=yn!=="empty"}return{hasSubKey:He,selectSubItaType:yn}},Mt=(qt,Jt)=>{const se=Jt.map(xe=>xe.subKey).join(",");return qt?qt+","+se:se},Q=(qt,Jt)=>(qt?qt.split(","):[]).filter(xe=>Jt.find(ke=>ke.subKey===xe)).join(","),vt=qt=>"TRIGGER_"+qt,Lt=qt=>qt.startsWith("TRIGGER_"),Rt=qt=>qt.split("_")[1],Bt=(qt,Jt)=>{let{editingPanelRefPage:se}=Jt;switch(qt.attr.interactionType){case"dummy":return"";case O.O2.ScrollTo:case O.O2.SetVisibility:return(0,U.iI)(qt.attr,se);case O.O2.LinkToCanvas:case O.O2.OpenOverlay:case O.O2.SwapOverlay:return(0,U.Ut)(qt.attr);case O.O2.SetBasketCanvas:return(0,U.xt)(qt.attr,se);case O.O2.OpenExternalUrl:return qt.attr.interactionExternalUrl;default:return""}},Ht=qt=>{const Jt={selectInteractionKeyList:qt};if(qt.length===0)Jt.selectItaInfo={type:"empty",keyList:[]};else{const se=qt[0];z(se)?Jt.selectItaInfo={type:"action",keyList:qt}:Lt(se)?Jt.selectItaInfo={type:"trigger",keyList:qt}:Jt.selectItaInfo={type:"normal",keyList:qt}}return Jt};class zt{static getData(Jt,se){const xe=this.dataMap.get(this.composeFunc(Jt,se));return xe||{}}static setData(Jt,se,xe){this.dataMap.set(this.composeFunc(Jt,se),xe)}static clear(){this.dataMap.clear()}}(0,Z.A)(zt,"dataMap",new Map),(0,Z.A)(zt,"composeFunc",(qt,Jt)=>qt+"-"+Jt);const Kt=qt=>{let{link:Jt,attr:se,v:xe,state:ke,attrInteraction:Ne}=qt;const{isEditingMuban:$e}=(0,j.r)(ke);let Le=xe;["timerDuration","transitionDuration","transitionDelay","setVisibleTransitionDuration","setHiddenTransitionDuration"].includes(se)&&(Le=parseFloat(Le)/1e3+"s");let He={...Ne,[se]:Le,order:Jt.order};if(se==="interactionType"){zt.setData(Jt.key,Jt.interactionType,Ne);const yn=zt.getData(Jt.key,Le);He={...bt(Le),...Ne,...yn,[se]:Le,order:Jt.order},Jt.data.transitionDelay===void 0&&(He.transitionDelay=0),(0,at.cM)({ita:He,state:ke,preserveData:yn})}if(se==="interactionTrigger"&&Le==="timer"&&Jt.timerDuration===void 0&&(He.timerDuration="0.1s"),se==="transition"&&(Le!=="none"&&!Jt.transitionDuration&&(He.transitionDuration="0.2s"),A.F.includes(Le)&&Jt.menuOrDrawerOffset===void 0&&(He.menuOrDrawerOffset=75)),se==="targetBasketKey"&&He.interactionType===O.O2.SetBasketCanvas&&Le!==Jt.targetBasketKey&&(He.targetResCanvasKey=M.L8),se==="actionType"&&(Le!=="setHidden"&&!Jt.setVisibleTransition&&(He.setVisibleTransition="auto",He.setVisibleTransitionDuration="0.2s"),Le!=="setVisible"&&!Jt.setHiddenTransition&&(He.setHiddenTransition="auto",He.setHiddenTransitionDuration="0.2s")),$e&&se==="interactionType"&&Le===O.O2.SetBasketCanvas&&(He.targetBasketKey=M.VZ),se==="overlayRelativePos"&&Le==="manual"&&(Jt.overlayRelativePosX===.42||Jt.overlayRelativePosY===.42)){var Ke;const yn=sdkStore.locTopRBActiveKey(Jt.triggerItemKey),Qn=sdkStore.locUpRBPageKey(Jt.triggerItemKey),tr=sdkStore.locUpColdCanvasKey(Jt.triggerItemKey)||"",Sr=sdkStore.getHotItem(Jt.targetOverlayKey||"");if(!Sr||yn===it.fW||tr===""||(Ke=sdkStore.getHotItem(tr))!=null&&Ke.hotAttr.asOverlay)He.overlayRelativePosX=0,He.overlayRelativePosY=0;else{const ur=(0,U.Hy)(Qn,tr);Sr&&ur&&(He.overlayRelativePosX=ur.left+ur.right/2-Sr.hotAttr.w/2,He.overlayRelativePosY=ur.top+ur.bottom/2-Sr.hotAttr.h/2)}}return He},ce=qt=>{qt.style.setProperty("background","#0077FF26"),qt.style.setProperty("border-radius","6px"),setTimeout(()=>{qt.style.setProperty("background",""),qt.style.setProperty("border-radius","")},750)},oe=qt=>{let{itaKey:Jt}=qt;const se=document.querySelector('#interaction-tree-list .rn-content-item[data-key="'+Jt+'"]');se&&ce(se)},he=qt=>{let{itaKey:Jt,callback:se}=qt;const xe=document.querySelector("#interaction-tree-container"),ke=document.querySelector('#interaction-tree-list .rn-content-item[data-key="'+Jt+'"]');if(ke===null||xe===null)return;const Ne=xe.getBoundingClientRect().height;(ke.offsetTop<=xe.scrollTop||ke.offsetTop>=xe.scrollTop+Ne)&&(xe.scrollTop=ke.offsetTop-Ne+ke.offsetHeight),se==null||se()},_e=qt=>qt.type==="trigger"?qt.attr.disabled||!1:qt.attr.actionDisable,Fe=(qt,Jt)=>Jt.sub.find(se=>se.attr.trigger===qt).sub.map(se=>se.attr),Re={empty_panel_light:"/mb-proto2/images/interaction/panel_empty_light.png",empty_panel_dark:"/mb-proto2/images/interaction/panel_empty_dark.png",canvas_outer_light:"/mb-proto2/images/interaction/canvas_outer_light.png",canvas_outer_dark:"/mb-proto2/images/interaction/canvas_outer_dark.png"};class le{static getSelection(Jt){return this.hiKeyItaSelectionMap.get(Jt)}static setSelection(Jt,se){this.hiKeyItaSelectionMap.set(Jt,se)}}(0,Z.A)(le,"hiKeyItaSelectionMap",new Map);const ee=[O.O2.TriggerPlaceHolder,"dummy"],ge=qt=>qt.filter(Jt=>!ee.includes(Jt.attr.interactionType)),de=qt=>qt.filter(Jt=>Jt.attr.interactionType!=="dummy"),fe=qt=>qt.filter(Jt=>Jt.attr.interactionType!==O.O2.TriggerPlaceHolder),Ae=qt=>qt.filter(Jt=>Jt.interactionType!==INTERACTION_TYPE.TriggerPlaceHolder),te=qt=>{let{selectNode:Jt,interactionTree:se}=qt;if(Jt.type==="trigger"){if(se.sub.length===1)return[];{const xe=se.sub,ke=xe.findIndex(Le=>Le.attr.key===Jt.attr.key),Ne=cn(ke,xe.length);if(Ne===-1)return[];const $e=fe(xe[Ne].sub);return ke===xe.length-1?[$e.at(-1).attr.key]:[$e[0].attr.key]}}else{const xe=Jt.attr.interactionTrigger,ke=se.sub.find(He=>He.attr.trigger===xe).sub,Ne=fe(ke),$e=Ne.findIndex(He=>He.attr.key===Jt.attr.key),Le=cn($e,Ne.length);return Le===-1?[ke[ke.length-1].attr.key]:[Ne[Le].attr.key]}},Ie=qt=>{let Jt="empty",se="";if(qt.sub.length===0)Jt="empty";else if((qt==null?void 0:qt.sub.length)===1){const xe=de(qt.sub[0].sub);xe.length<=1?xe.length===1?(Jt="single",se=xe[0].attr.key):(Jt="empty",se=qt.sub[0].sub.at(-1).attr.key):Jt="multiple"}else Jt="multiple";return{renderContentType:Jt,nextKey:se}},cn=(qt,Jt)=>{const se=qt;let xe=-1;return se===Jt-1?xe=se-1:xe=(se+1)%Jt,xe===se||xe===-1?-1:xe},ln=qt=>{let{type:Jt,state:se,optionData:xe,interactionList:ke,mergePair:Ne}=qt;const $e=(0,Y._S)(se),{newOptionData:Le,updateNode:He}=Pt({getNewLinkCids:Ye=>Jt==="delete"?Q(Ye,ke):Mt(Ye,ke),oldOptionData:xe,currentPath:$e});return Ne.hotAttr.optionData=Le,{updateNode:He}},Qe=qt=>{let{state:Jt,type:se,carousel:xe,interactionList:ke,mergePair:Ne}=qt;const $e=(0,Y.Yg)(Jt),Le=JSON.parse(JSON.stringify(xe)),He=Le.slides[$e].linkCids;return se==="create"?Le.slides[$e].linkCids=Mt(He,ke):Le.slides[$e].linkCids=Q(He,ke),Ne.hotAttr.carousel=Le,{nextCarousel:Le}},dn=(qt,Jt)=>{if(qt.length!==Jt.length)return!0;for(let se=0;se<qt.length;se++)if(qt[se]!==Jt[se])return!1;return!1},fn=(qt,Jt)=>{let{x1:se,x2:xe,y1:ke,y2:Ne}=qt;for(let $e=se;$e<=xe;$e++)for(let Le=ke;Le<=Ne;Le++)Jt($e,Le)},Tn=qt=>{const{selectionLeftTopInfo:{x:Jt,y:se},selectionRightBottomInfo:{x:xe,y:ke}}=qt;let Ne=0;return fn({x1:Jt,x2:xe,y1:se,y2:ke},()=>{Ne++}),Ne},un=qt=>{let{item:Jt,selectTableCellInfo:se,newInteraction:xe}=qt;const{table:ke,cells:Ne,tableData:$e}=Jt.hotAttr,Le=JSON.parse(JSON.stringify(Ne)),{selectionLeftTopInfo:{x:He,y:Ye},selectionRightBottomInfo:{x:Ke,y:yn}}=se;let Qn=[...Jt.hotAttr.interactions];const tr=[],Sr=[];let ur=0,ar=[];return fn({x1:He,x2:Ke,y1:Ye,y2:yn},(Ir,Ur)=>{const Gr=(0,rt.j)(Le,ke,Ur,Ir);if(!Gr)return"CONTINUE";const{oldCellItas:sa,oldCellItaKeys:Ya}=(0,P.iL)({cells:Ne,table:ke,interactions:Jt.hotAttr.interactions,j:Ur,i:Ir});for(const tt of Ya)Qn=Qn.filter(St=>St.subKey!==tt);const Ni={...xe,key:(0,W.cF)("ita"),subKey:(0,W.cF)("ita")},rs=B(sa);X({newIta:Ni,triggerDisableKV:rs});const Za=L({bePastedItas:[Ni],nextItas0:sa,insertPos:sa.length});tr.push(...Za),Sr.push(Ni.key);const ko=[...Ya,Ni.subKey];Gr.link=ko.join(","),ur===0&&(ar=[Ni.key]),ur++}),{newHi:{...Jt,hotAttr:{...Jt.hotAttr,cells:Le,interactions:[...Qn,...tr]}},selectKeyList:Sr.length>=1?Sr:[],activeLinkList:ar}},gn=qt=>{let{item:Jt,selectTableCellInfo:se,newItaList:xe,mergePair:ke}=qt;const{table:Ne,cells:$e}=Jt.hotAttr,Le=JSON.parse(JSON.stringify($e)),{selectionLeftTopInfo:{x:He,y:Ye},selectionRightBottomInfo:{x:Ke,y:yn}}=se;let Qn=0,tr=[];return fn({x1:He,x2:Ke,y1:Ye,y2:yn},(Sr,ur)=>{const ar=(0,rt.j)(Le,Ne,ur,Sr);if(!ar||Qn>0)return"CONTINUE";const{oldCellItas:bi,oldCellItaKeys:Ir}=(0,P.iL)({cells:$e,table:Ne,interactions:Jt.hotAttr.interactions,j:ur,i:Sr}),Ur=[...Ir,xe.map(Gr=>Gr.subKey)];tr=[...bi.map(Gr=>Gr.key),...xe.map(Gr=>Gr.key)],ar.link=Ur.join(","),Qn++}),ke.hotAttr.cells=Le,{activeCidList:tr}},ne=qt=>{let{oldHi:Jt,selectTableCellInfo:se,interactionTree:xe,selectTreeNode:ke}=qt;const{selectionLeftTopInfo:{x:Ne,y:$e},selectionRightBottomInfo:{x:Le,y:He}}=se,{nextItaList:Ye,deleteItaList:Ke}=Ln({prevInteractionList:Jt.hotAttr.interactions,selectTreeNode:ke,interactionTree:xe}),{table:yn,cells:Qn}=Jt.hotAttr,tr=JSON.parse(JSON.stringify(Qn)),Sr=Ne===Le&&$e===He;fn({x1:Ne,x2:Le,y1:$e,y2:He},(ar,bi)=>{const Ir=getCellData(tr,yn,bi,ar);if(!Ir)return"CONTINUE";Ir.link=(getLinkCidArr(Ir.link).filter(Boolean)||[]).filter(Ur=>!Ke.find(Gr=>Gr.subKey===Ur)).join(",")});const ur={...Jt,hotAttr:{...Jt.hotAttr,cells:tr,interactions:Ye}};return{newHi:ur,activeLinkList:Sr?getCellCommonLinks2(ur.hotAttr,se):[]}},bn=qt=>{let{type:Jt,oldHi:se,selectTableCellInfo:xe,mergePair:ke,interactionList:Ne}=qt;const{selectionLeftTopInfo:{x:$e,y:Le},selectionRightBottomInfo:{x:He,y:Ye}}=xe,{table:Ke,cells:yn}=se.hotAttr,Qn=JSON.parse(JSON.stringify(yn)),tr=$e===He&&Le===Ye;return fn({x1:$e,x2:He,y1:Le,y2:Ye},(Sr,ur)=>{const ar=(0,rt.j)(Qn,Ke,ur,Sr);if(!ar)return"CONTINUE";Jt==="create"?ar.link=Mt(ar.link||"",Ne):ar.link=Q(ar.link||"",Ne)}),ke.hotAttr.cells=Qn,{activeLinkList:tr?(0,R.J5)({...se.hotAttr,cells:Qn},xe):[]}},en=(qt,Jt)=>{const se=(0,K.W)([...qt.interactions]),xe=se.find(Ye=>Ye.key===Jt.key),ke=Jt;let Ne;xe?Ne=se.map(Ye=>Ye.key===Jt.key?ke:Ye):Ne=[...se,ke];const $e=(0,K.W)([...Ne]);return{newInteractions:H($e).filter(Ye=>{for(const Ke of Ne)if(Ke.key===Ye.key)return!0;return!1}),newLink:ke}},Bn=qt=>{let{prevInteractionList:Jt,deleteKeyList:se}=qt;const xe=Jt.filter(Ye=>!Ye.subKey),{itaTree:ke}=J({interactions:xe}),Ne=vn(se[0],ke);if(!Ne)return{nextItaList:Jt,deleteItaList:[]};const $e=Ji({interactionTree:ke,trigger:Ne.attr.interactionTrigger});let Le=[];return ge($e.sub).length===1?Le=de($e.sub).map(Ye=>Ye.attr.key):Le=[Ne.attr.key],{nextItaList:Jt.filter(Ye=>!Le.includes(Ye.key)).map(Ye=>Ye.subKey?Ye:Ye.interactionTrigger===$e.attr.trigger?{...Ye,"!validVersion":2}:Ye)}},Ln=qt=>{let{prevInteractionList:Jt,selectTreeNode:se,interactionTree:xe}=qt;const ke=se;let Ne=[];if(ke.type==="trigger"){const $e=ke.sub.map(Le=>Le.attr.key);Ne=Jt.filter(Le=>!$e.includes(Le.key))}else{const $e=xe.sub.find(Le=>Le.attr.trigger===ke.attr.interactionTrigger);if($e.sub.length===2){const Le=newInteractionTriggerPlaceHolder();Le.order=ke.attr.order,Le.subKey=ke.attr.subKey,Le.interactionTrigger=ke.attr.interactionTrigger;const He=Jt.findIndex(Ye=>Ye.key===$e.sub[0].attr.key);Ne=[...Jt],Ne[He]=Le}else Ne=Jt.filter(Le=>ke.attr.key!==Le.key)}return{nextItaList:Ne,deleteItaList:ke.sub}},vn=(qt,Jt)=>{const se=[...Jt.sub];for(;se.length!==0;){const xe=se.shift();if(!xe)return;if(xe.attr.key===qt)return xe;xe.sub&&se.push(...xe.sub)}},Fn=(qt,Jt)=>{const se=[...qt.sub];for(;se.length!==0;){const xe=se.shift();if(!xe)return;Jt(xe),xe.sub&&se.push(...xe.sub)}},zn=(qt,Jt)=>{const se=[...qt.sub];for(;se.length!==0;){const xe=se.shift();if(!xe)return;if(xe.sub.find(ke=>ke.attr.key===Jt.attr.key)){xe.sub=xe.sub.filter(ke=>ke.attr.key!==Jt.attr.key);return}xe.sub&&se.push(...xe.sub)}},On=(qt,Jt,se)=>{const xe=[...qt.sub],ke=Jt.attr.trigger;for(;xe.length!==0;){const Ne=xe.shift();if(!Ne)return;Ne.attr.interactionTrigger===ke&&se.push(Ne.attr.key),Ne.sub&&xe.push(...Ne.sub)}},an={[O.O2.LinkToCanvas]:346,[O.O2.LinkToSourceCanvas]:282,[O.O2.OpenExternalUrl]:348,[O.O2.SetBasketCanvas]:350,[O.O2.ScrollTo]:411,[O.O2.SetVisibility]:510,setVisible:348,setHidden:348,toggleVisibility:510,[O.O2.OpenOverlay]:459,[O.O2.CloseOverlay]:188,[O.O2.SwapOverlay]:411,dummy:164},mn=qt=>{let{top:Jt,left:se,height:xe}=qt,ke=Jt;const Ne=se;return Jt+xe-window.innerHeight>0&&(ke=window.innerHeight-xe-12),{finalTop:ke,finalLeft:Ne}},rr="font-preload2";let Un=null;const fr=()=>(Un||(Un=document.createElement("span"),Un.id=rr,Un.style.visibility="hidden",document.body.appendChild(Un)),Un),lr=qt=>{const se=fr();return se.innerHTML=qt,se.getBoundingClientRect().width},yr=qt=>{let{hi:Jt,selectSubItaType:se,newIta:xe,interactionTrigger:ke,state:Ne,preserveOrder:$e}=qt,Le,He,Ye;const Ke={...xe};se!=="empty"&&(Ke.subKey=(0,W.cF)("sub"));const yn=(0,$.zX)(Ne);if(Jt.hotAttr.type==="wTable"&&yn){if((0,rt.SS)(Jt.hotAttr)){const{newHi:tr,selectKeyList:Sr,activeLinkList:ur}=un({item:Jt,selectTableCellInfo:yn,newInteraction:Ke});Le=tr,Ye={selectKeyList:Sr,activeLinkList:ur}}}else{const tr=ot(Jt.hotAttr.interactions),Sr=B(tr);X({newIta:Ke,triggerDisableKV:Sr});const ur=tr.findLast(Ir=>Ir.interactionTrigger===ke);let ar;if(ur){ar=[];for(let Ir=0,Ur=1;Ir<tr.length;Ir++,Ur++){const Gr=tr[Ir];ar.push({...Gr,order:Ur}),Gr.key===ur.key&&(Ur++,ar.push({...Ke,order:Ur}))}}else if($e)ar=H((0,I.nK)(tr,$e-1,Ke));else{var Qn;Ke.order=(((Qn=tr.at(-1))==null?void 0:Qn.order)||0)+1,ar=[...tr,Ke]}const bi={key:Jt.key,hotAttr:{interactions:ar}};Le=bi,se==="optionData"?He=ln({type:"create",interactionList:[Ke],optionData:Jt.hotAttr.optionData,state:Ne,mergePair:bi}):se==="carouselImage"&&(He=Qe({type:"create",interactionList:[Ke],carousel:Jt.hotAttr.carousel,state:Ne,mergePair:bi}))}return{newFlatChg:Le,tableMisc:Ye,subMisc:He}},Xn=qt=>{let{hi:Jt,selectSubItaType:se,state:xe,newItaList:ke}=qt,Ne;const $e={key:Jt.key,hotAttr:{}},Le=(0,$.zX)(xe);if(Jt.hotAttr.type==="wTable"&&Le){if((0,rt.SS)(Jt.hotAttr)){const{activeCidList:He}=gn({item:Jt,selectTableCellInfo:Le,newItaList:ke,mergePair:$e});Ne={activeCidList:He}}}else se==="optionData"?ln({type:"create",interactionList:ke,optionData:Jt.hotAttr.optionData,state:xe,mergePair:$e}):se==="carouselImage"&&Qe({type:"create",interactionList:ke,carousel:Jt.hotAttr.carousel,state:xe,mergePair:$e});return{mergePair:$e,tableMisc:Ne}},Pr=qt=>{let{interactionTree:Jt,updateInteraction:se,attr:xe,value:ke,state:Ne}=qt;const $e=JSON.parse(JSON.stringify(Jt)),Le=$e.sub.find(Ke=>Ke.attr.trigger===se.interactionTrigger);let He=$e.sub.find(Ke=>Ke.attr.trigger===ke);const Ye=Le.sub.find(Ke=>Ke.attr.key===se.key);if(Ye.attr.data=Kt({link:Ye.attr,attr:xe,v:ke,state:Ne,attrInteraction:Ye.attr.data}),Le.sub=Le.sub.filter(Ke=>Ke.attr.key!==Ye.attr.key),He){const Ke=de(He.sub);Ke.length===0?Ye.attr.data.triggerDisable=!1:Ye.attr.data.triggerDisable=Ke[0].attr.triggerDisable}else He=k({key:vt(ke),trigger:ke,triggerDisable:!1,sub:[]}),$e.sub.push(He);return He.sub.push(Ye),Ar($e)},Ar=qt=>{const Jt=[],se=qt.sub;for(const xe of se)for(const ke of xe.sub)ke.attr.interactionType!=="dummy"&&Jt.push(ke.attr.data);return H(Jt)},Yn=(qt,Jt)=>qt.map(se=>Jt.includes(se.interactionTrigger)?{...se,"!validVersion":2}:se),Tr=(qt,Jt)=>{if(!qt||!Jt)return{hasEffectiveLink:!1,newLink:void 0,interactiveCids:"",interactiveItaList:[],itaClassName:""};const se=qt.filter(yn=>Jt.includes(yn.subKey)),xe=se.filter(yn=>yn.interactive),ke=se.filter(yn=>yn.isUiValid),Ne=ke.length>0,$e=xe.length>0,Le=xe.map(yn=>yn.key).join(",")||"",He=xe[0],Ye=ke[0],Ke=(0,P.t$)(xe,$e);return{hasInteractiveIta:$e,hasUiInteractiveIta:Ne,interactiveItaList:xe,interactiveCids:Le,firstInteractiveIta:He,firstUiInteractiveIta:Ye,itaClassName:Ke}},Ji=qt=>{let{interactionTree:Jt,trigger:se}=qt;return Jt.sub.find(xe=>xe.attr.trigger===(0,b.oS)(se))}},32460:($t,wt,w)=>{"use strict";w.d(wt,{W:()=>Z});const Z=I=>I.find(b=>b.order===0)?I.sort((b,M)=>{const W=b.key;return M.key>W?-1:1}):I.sort((b,M)=>{const W=b.order;return M.order>W?-1:1})},15139:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>U});var Z=w(74059),I=w(28497),O=w(59742),b=w(91560),M=w(25399),W=w(63555),st=w(62065),rt=w(19216),m=w(75391);class U{constructor(){}static deviceOrient(){return window.innerWidth>window.innerHeight?"landscape":"portrait"}static getCurrentScreen(j){const it=j.getState(),Y=(0,b.pW)(it);return(0,b.He)(it)[Y]}static getInteractionTypeToClearTimersList(j){const it=j.getState(),Y=(0,b.KR)(it);return[I.O2.LinkToSourceCanvas,I.O2.LinkToCanvas,...Y?[I.O2.SetBasketCanvas]:[]]}static getCanvasKeyByAlias(j,it,Y){var P,R;const at=sdkStore.getHotItem(j);let $=[];(at==null||(P=at.hotAttr)==null?void 0:P.type)===W.x.WBasket?$=sdkStore.getSubHotItemList(at.hotAttr.refRBPageKey).filter(B=>B.hotAttr.type===W.x.Canvas).sort((B,X)=>B.hotAttr.order-X.hotAttr.order).map(B=>(0,O.iK)((0,O.OO)(j)?(0,O.QL)(j):[j],B.key)):(at==null||(R=at.hotAttr)==null?void 0:R.bunch)===W.x.RbPage&&($=sdkStore.getSubHotItemList(j).filter(B=>B.hotAttr.type===W.x.Canvas).sort((B,X)=>B.hotAttr.order-X.hotAttr.order).map(B=>B.key));const K=0,H=$.length-1;switch(it){case M.Gp:{const B=$.indexOf(Y);return $.at(B===K?H:B-1)}case M.Oh:{const B=$.indexOf(Y);return $.at(B===H?K:B+1)}case M.L8:return $.at(0);case M.Hg:return $.at(-1);default:return it}}static checkIfSkipInteraction(j,it){const Y=j.getState(),{activePageKey:P,activeCanvasKey:R,history:at,basketCanvasMap:$}=(0,b.mf)(Y);let K=null;switch(it.interactionType){case I.O2.SetBasketCanvas:{var H;const{targetBasketKey:V,targetResCanvasKey:L}=it,ot=(H=sdkStore.getHotItem(V))==null||(H=H.hotAttr)==null?void 0:H.refRBPageKey;if($.get(V)){var B,X;K=this.getCanvasKeyByAlias(V,L,P===ot||((B=sdkStore.getHotItem(V))==null?void 0:B.sup)==="B@ref-muban"?R:(X=$.get(V))==null?void 0:X.activeCanvas)}break}default:break}return K===R}static getScreenScrollTop(j,it){const Y=j.getState(),{screenScrollTopMap:P}=(0,b.mf)(Y);return P[it]}static getInteractionsOnWidgetByTrigger(j,it,Y,P){const R=j.getState(),at=(0,b.ub)(R),K=(0,b.hM)(R)||at,H=(0,st.G$)(sdkStore.getInteractionsOf(it).filter(B=>P.includes(B.key)&&Y.includes(B.interactionTrigger)));return(0,rt.I3)(sdkStore,H,it,K?"combo":"non-combo")}static getTimerItaOnHiByTrigger(j,it,Y){Y===void 0&&(Y="timer");const P=j.getState(),R=(0,b.ub)(P),$=(0,b.hM)(P)||R,K=(0,st.G$)(sdkStore.getInteractionsOf(it).filter(H=>H.interactionTrigger===Y));return(0,rt.I3)(sdkStore,K,it,$?"combo":"non-combo").filter(H=>H.interactive)}static getInteractionsOnCanvasByTrigger(j,it){const Y=(0,st.G$)(sdkStore.getInteractionsOf(j).filter(P=>it.includes(P.interactionTrigger)));return(0,rt.I3)(sdkStore,Y,j,"non-combo").filter(P=>P.interactive)}static isWidgetInBasketCanvas(j,it){if(!(0,O.OO)(j))return!1;const Y=(0,O.QL)(j).slice(0,-1),P=(0,O.QL)(it).slice(0,-1);return Y.length===P.length?sdkStore.locUpHotCanvasKey(j)===it:sdkStore.locUpHotCanvasKey((0,O.iK)(Y.slice(0,P.length),Y[P.length]))===it}static findAllAVUnder(j,it){if((0,O.OO)(j)){const[Y,...P]=(0,O.QL)(j).reverse();return sdkStore.findAllTypeUnder(Y,it).map(R=>sdkStore.getHotItem((0,O.iK)(P.reverse(),R.key)))}else return sdkStore.findAllTypeUnder(j,it)}static findAllBasketsUnder(j){const it=Y=>sdkStore.getSubHotItemList(Y).reduce((P,R)=>{if(R.hotAttr.type==="wBasket"&&sdkStore.isActiveKey(R.key)&&sdkStore.isActiveKey(R.hotAttr.refRBPageKey)&&sdkStore.isActiveKey(R.hotAttr.refContentKey)&&sdkStore.getHotItem(R.hotAttr.refContentKey).sup===R.hotAttr.refRBPageKey){if(R.hotAttr.basket==="bDanli"){const at=sdkStore.getSubHotItemList(R.hotAttr.refRBPageKey).reduce(($,K)=>K.hotAttr.type==="rResCanvas"?[...$,(0,O.iK)((0,O.OO)(R.key)?(0,O.QL)(R.key):[R.key],K.key)]:$,[]);return[...P,...at.flatMap($=>it($)),R]}if(R.hotAttr.basket==="bMuban"){const at=sdkStore.getSubHotItemList(R.hotAttr.refRBPageKey).reduce(($,K)=>K.hotAttr.type==="rResCanvas"?[...$,(0,O.iK)((0,O.OO)(R.key)?(0,O.QL)(R.key):[R.key],K.key)]:$,[]);return[...P,...at.flatMap($=>it($)),R]}}else if(R.hotAttr.type==="wWrap")return[...P,...it(R.key)];return P},[]);return it(j)}static getOverlayRelativePosXY(j,it,Y,P,R,at){const $={overlayRelativePosX:R,overlayRelativePosY:at},K=sdkStore.getHotItem(Y);if(!K)return $;const H=this.getOverlayRunnerViewport(j,it);if(!H)return $;switch(P){case"ce":return{overlayRelativePosX:H.left+H.right/2-K.hotAttr.w/2,overlayRelativePosY:H.top+H.bottom/2-K.hotAttr.h/2};case"tl":return{overlayRelativePosX:H.left,overlayRelativePosY:H.top};case"tc":return{overlayRelativePosX:H.left+H.right/2-K.hotAttr.w/2,overlayRelativePosY:H.top};case"tr":return{overlayRelativePosX:H.right-K.hotAttr.w,overlayRelativePosY:H.top};case"bl":return{overlayRelativePosX:H.left,overlayRelativePosY:H.bottom-K.hotAttr.h};case"bc":return{overlayRelativePosX:H.left+H.right/2-K.hotAttr.w/2,overlayRelativePosY:H.bottom-K.hotAttr.h};case"br":return{overlayRelativePosX:H.right-K.hotAttr.w,overlayRelativePosY:H.bottom-K.hotAttr.h};case"manual":return $;default:return console.warn("invalid overlay relative position "+P),$}}}(0,Z.A)(U,"getCurrentWidgetOpacity",A=>{var j;return(j=document.querySelector('.scontainer [data-cid="'+A+'"]'))==null?void 0:j.style.opacity}),(0,Z.A)(U,"getTargetElemList",A=>{const j=Array.from(document.querySelectorAll('.screen-header [data-cid="'+A+'"]')),it=Array.from(document.querySelectorAll('.screen-content [data-cid="'+A+'"]')),Y=Array.from(document.querySelectorAll('.screen-footer [data-cid="'+A+'"]'));return[...j,...it,...Y].filter(Boolean)}),(0,Z.A)(U,"getSTElement",A=>{let j;if(A.mubanBasketKey)j=document.querySelector('#sticky-container [data-cid="'+A.key+'"][data-basket-key="'+A.mubanBasketKey+'"]');else if(j=document.querySelector('#sticky-container [data-cid="'+A.key+'"]'),j){const it=j.getAttribute("data-basketcanvas-key");it&&(document.querySelector('[data-cid="'+it+'"]')||(j=null))}return j}),(0,Z.A)(U,"validateAndTryCorrectPGAndCVKey",(A,j,it,Y)=>{const P=!sdkStore.isTrashed(A||""),R=!sdkStore.isTrashed(j||"");if(P){if(R){if(sdkStore.getHotItem(A).sub.includes(j))return{pageKey:A,canvasKey:j}}else if(!Y){var at;const X=(at=sdkStore.getSubHotItemList(A).sort((V,L)=>V.hotAttr.zIndex-L.hotAttr.zIndex).find(V=>V.hotAttr.type==="rResCanvas"&&!V.hotAttr.asOverlay))==null?void 0:at.key;if(X)return{pageKey:A,canvasKey:X};var $;return($=MB)==null||$.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"}),{pageKey:A,canvasKey:X}}}else{if(it!=null&&it.canvas_begin&&!sdkStore.isTrashed(it.canvas_begin))return{pageKey:sdkStore.getHotItem(it.canvas_begin).sup,canvasKey:it.canvas_begin};if(R)return{pageKey:sdkStore.getHotItem(j).sup,canvasKey:j}}const K=sdkStore.getSubHotItemList("B@main").sort((X,V)=>X.hotAttr.zIndex-V.hotAttr.zIndex).find(X=>X.hotAttr.type==="rResBunch"&&X.hotAttr.bunch==="rbPage"&&!X.hotAttr.asFolder);if(K){var H;const X=(H=sdkStore.getSubHotItemList(K.key).sort((V,L)=>V.hotAttr.zIndex-L.hotAttr.zIndex).find(V=>V.hotAttr.type==="rResCanvas"&&!V.hotAttr.asOverlay))==null?void 0:H.key;if(X)return{pageKey:K.key,canvasKey:X};if(!Y){var B;(B=MB)==null||B.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}}return{pageKey:"",canvasKey:""}}),(0,Z.A)(U,"tryStashGlobalPreviewRelated",A=>{var j,it,Y;let{runnerController:P,messageBucket:R,webpackInterface:at}=A;const $=(j=MB)==null?void 0:j.runnerController,K=(it=MB)==null?void 0:it.messageBucket,H=(Y=MB)==null?void 0:Y.webpackInterface;return Object.assign(MB,{runnerController:P,messageBucket:R,webpackInterface:at}),Object.assign(MB,{prevRunnerController:$,prevMessageBucket:K,prevWebpackInterface:H}),()=>{MB&&Object.assign(MB,{runnerController:$,messageBucket:K,webpackInterface:H})}}),(0,Z.A)(U,"canOverlayBeOpened",(A,j)=>{const it=sdkStore.getHotItem(A);return!(!it||!it.hotAttr.isVisible||j&&j.type==="advanced"&&j.screen_visible_switch&&!j.screen_visible_list.some(Y=>sdkStore.isActiveKey(Y)&&sdkStore.getHotItem(Y).sub.includes(A)))}),(0,Z.A)(U,"getOverlayRunnerViewport",(A,j)=>(0,m.Hy)(A,j)),(0,Z.A)(U,"isOpeningUniqueOverlay",(A,j)=>A.filter(it=>it.targetOverlayKey===j).length===0),(0,Z.A)(U,"isClosingUniqueOverlay",(A,j)=>A.filter(it=>it.targetOverlayKey===j).length===1)},2079:($t,wt,w)=>{"use strict";w.d(wt,{WY:()=>R,ZZ:()=>it});var Z=w(98620),I=w(47143);if(w.j!=183)var O=w(61535);var b=w(20029),M=w(63555),W=w(98521),st=w(29673),rt=w(64211),m=w(12298),U=w(20592),A=w(72866);const j=at=>{const{x:$,y:K,h:H,w:B}=Z.o.axisAligned((0,A.Oj)(at.key));return{left:Math.round($),top:Math.round(K),right:Math.round($+B),bottom:Math.round(K+H),width:Math.round(B),height:Math.round(H)}},it=(at,$)=>{if($)return $=sdkStore.locUpColdCanvasKey($),$&&sdkStore.getHotItem($);{const K=at.map(X=>{let{key:V}=X;return V}),H=(0,W.vR)(K),B=(0,W.zB)(K);if(H&&B.size===1)return[...B.values()][0]}return null},Y=at=>{var $;const K=it(at),H=($=MB.getCurrentScreen())==null?void 0:$.cid;return(K==null?void 0:K.key)||H},P=(at,$,K)=>{var H,B;const X=MB.__store__.getState(),V=(0,O.UV)(X),L=(0,I.$S)(X),ot=(0,I.ER)(X),G=(0,I.X_)(X),z={scale:G/100,size:{w:L.width,h:L.height},offset:ot},F=K||Y($),k=F===((H=MB.getCurrentScreen())==null?void 0:H.cid),ut=at&&k,E=new Set($.map(gt=>gt.key)),J=V.getNode(F),dt=[];if(!J)return[];const pt=[];if($.forEach(gt=>{gt.hotAttr.type===M.x.WWrap&&pt.push(gt.key)}),J.children.forEach(gt=>{if(pt.includes(gt.key))return;const bt=(0,st.U5)(gt,!1,ut);dt.push(...bt)}),$.length===1&&((B=$[0])==null?void 0:B.hotAttr.type)===M.x.Canvas){const gt=V.getNode($[0].key);gt&&gt.children.forEach(bt=>{const Tt=(0,st.U5)(bt);dt.push(...Tt)})}J.type!==M.x.RbPage&&dt.push(J);const ht=(0,m.WO)(z,L.left),yt=[];dt.forEach(gt=>{const{type:bt,key:Tt,cid:Pt,widget:{isVisible:It,opacity:Dt}}=gt;if(bt!==M.x.WWrap&&!E.has(Pt)&&Dt!==0&&It){const jt=sdkStore.getHotAABB(Tt);if(!(0,U.cj)(ht,jt))return;const Q=j(gt);yt.push(Q)}});const ct=(0,b.jI)(X)||(0,b.bt)(X);if(ct){const gt=[];let bt=[];k?bt=J.children.filter(Tt=>Tt.type===M.x.Canvas):bt=[J],bt.forEach(Tt=>{const Pt=sdkStore.getHotAABB(Tt.key);if(!(0,U.cj)(ht,Pt))return;const Dt=(0,rt.lG)({node:Tt,basketKey:ct,scale:G});gt.push(Dt)}),yt.push(...gt)}return yt},R=(at,$,K)=>P(at,$,K)},32010:($t,wt,w)=>{"use strict";w.d(wt,{bB:()=>W,tZ:()=>st});var Z=w(53955),I=w(44580),O=w(15915),b=w(45411);const M=(rt,m)=>{let{mdWMMktList:U,mtWMMktList:A,noWMMktList:j,mode:it}=m;const Y=rt.mktCid;return!(0,O._5)()||!Y?!0:j.has(Y)?(it==="design"&&(0,b.G4)(rt.key),!0):U.has(Y)||A.has(Y)?!1:((0,I.uT)([Y]),!0)},W=(rt,m)=>{let{mdWMMktList:U,mtWMMktList:A,noWMMktList:j}=m;return!!(!(0,O._5)()||!rt||j.has(rt))},st=rt=>{let{widget:m,treeData:U,isSupMkt:A,mode:j}=rt;if(!(0,O._5)()||A)return!1;const it=(0,Z.fV)();if(!it)return!1;const{mdWMMktList:Y,mtWMMktList:P,noWMMktList:R}=it,at=(K,H)=>M(K,{mdWMMktList:Y,mtWMMktList:P,noWMMktList:R,mode:j})?K.type!=="wWrap"?!1:H.children.every(B=>at(B.hotAttr,B)):!0,$=at(m,U);return!A&&$}},87382:($t,wt,w)=>{"use strict";w.d(wt,{_:()=>I});var Z=w(21676);const I=Z.Ay.div.withConfig({displayName:"styles__StyledResizer",componentId:"sc-1clp9ej-0"})(["position:absolute;transform-origin:0 0;border:1px solid ",";&.is-dy-widget:not(.is-locked){border:1px solid ",";.square{border-color:",";}}&.is-master:not(.is-locked){border:1px solid #7146FE;.square{border-color:#7146FE;}}& > *{pointer-events:auto;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:2px;}.resizable-handler{position:absolute;width:","px;height:","px;cursor:pointer;z-index:1;&.t,&.b{height:","px;width:100%;left:3px;}&.l,&.r{width:","px;height:100%;top:3px;}&:not(.is-hotCorner-critical-point){&.tl,&.tr{top:-8.5px;}&.tl,&.bl{left:-8.5px;}&.bl,&.br{bottom:-8.5px;}&.br,&.tr{right:-8.5px;}&.r{right:-8.5px;}&.l{left:-8.5px;}&.t{top:-8.5px;}&.b{bottom:-8.5px;}}&.is-table{&.t{height:","px;}&.l{width:","px;}&:not(.is-hotCorner-critical-point){&.t{top:0;}&.l{left:0;}}}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;path{fill:",";}}.t,.tl,.tr{top:-4.5px;}.b,.bl,.br{bottom:-4.5px;}.r,.tr,.br{right:-4.5px;}.tl,.l,.bl{left:-4.5px;}.l,.r{top:50%;margin-top:-4px;}.t,.b{left:50%;margin-left:-4px;}.ai-semantic{position:absolute;width:16px;height:16px;top:-24px;right:-8px;cursor:pointer;svg{width:100%;height:100%;}}"],O=>O.theme.color_proto,O=>O.theme.color_comments,O=>O.theme.color_comments,O=>O.theme.color_proto,O=>O.anchorHotZone,O=>O.anchorHotZone,O=>O.lineHotZone,O=>O.lineHotZone,O=>O.lineTableZone,O=>O.lineTableZone,O=>O.theme.color_proto)},5575:($t,wt,w)=>{"use strict";w.d(wt,{C4:()=>st,Pv:()=>Y,_H:()=>rt,kO:()=>m});var Z=w(58197),I=w(2302),O=w(63555);if(w.j!=183)var b=w(24207);var M=w(54599),W=w(72866);const st=(P,R)=>{let at=Math.round(R+P);return at>=360?at-=360:at<0&&(at+=360),at>356||at<4?at=0:at>86&&at<94?at=90:at>176&&at<184?at=180:at>266&&at<274&&(at=270),at},rt=(P,R)=>(I.Z.radian(P,R)/Math.PI*180+360)%360,m=(P,R)=>{const{w:at,h:$}=(0,W.NO)(P.key),{type:K,isLockAspect:H}=P.widget,B=R||H?(0,b.K)(at,$):-1,X=K===O.x.WUnifiedKeyboard,V=K===O.x.WQRCode;return X?A(K):V?1:B===-1?!1:B},U={ipad:{portrait:[1536,526],landscape:[2048,704]},iphone:{portrait:[640,348],landscape:[1136,252]},android:{portrait:[574,354],landscape:[956,278]}},A=P=>{const R=P.includes("iphone")?"iphone":P.includes("ipad")?"ipad":P.includes("android")?"android":"iphone",at=P.includes("landscape")?"landscape":"portrait",[$,K]=U[R][at];return $/K},j=P=>{var R;const{rect:at,transform:$}=getWorldBoundingBox(P.key),K=$.clone().apply(Rect.center(at)),H=$.decompose().ro,B=[],X=[];return(R=P.children)==null||R.forEach(V=>{if(V.type===WidgetType.WWrap){const{centerNodeList:L,changedItems:ot}=j(V);B.push(...L),X.push(...ot)}else{const{transform:L,rect:ot}=getWorldBoundingBox(V.key),G=L.clone().apply(Rect.center(ot)),z=Vec2.rotate(K,-H,G),F=L.decompose().ro,k=0,ut=0,E={x:(z.x-K.x)/at.w,y:(z.y-K.y)/at.h,w:ot.w/at.w,h:ot.h/at.h},J={w:ot.w,h:ot.h};B.push({cid:V.cid,center:G,ro:F,delta:E,size:J,minWidth:k,minHeight:ut}),X.push(V)}}),{centerNodeList:B,changedItems:X}},it=(P,R,at)=>{const $=[],K=[];return P.forEach(H=>{if(!H.widget.isLock)if(H.type===WidgetType.WWrap&&H.children&&H.children.length>0){const{centerNodeList:B,changedItems:X}=it(H.children,R,at);$.push(...B),K.push(...X)}else{const{transform:B,rect:X}=getWorldBoundingBox(H.key),V=B.clone().apply(Rect.center(X)),L=B.decompose().ro,ot=0,G=0,z={x:(V.x-R.x)/at.w,y:(V.y-R.y)/at.h,w:X.w/at.w,h:X.h/at.h},F={w:X.w,h:X.h};$.push({cid:H.cid,center:V,ro:L,delta:z,size:F,minWidth:ot,minHeight:G}),K.push(H)}}),{centerNodeList:$,changedItems:K}},Y=P=>{let{w:R,h:at,ratio:$,isTable:K=!1}=P;const H=R*$,B=at*$,X=H<M.mc||B<M.mc,V=K?H<M.tc||B<M.tc:H<M.S8&&B<M.S8,L=X?M.Jl:M.$p,ot=X?M.mG:M.$p,G=X?M.mG:M.sJ;return{isHotCornerCriticalPoint:X,isNoHotZone:V,anchorHotZone:L,lineHotZone:ot,lineTableZone:G}}},54599:($t,wt,w)=>{"use strict";w.d(wt,{$p:()=>rt,Jl:()=>m,PN:()=>W,S8:()=>j,Y$:()=>b,ZA:()=>O,eT:()=>M,mG:()=>U,mc:()=>A,oJ:()=>Z,sJ:()=>Y,tc:()=>it});const Z={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},I={t:"n",b:"s",r:"e",l:"w",tr:"ne",tl:"nw",br:"se",bl:"sw"},O={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},b={ne:"tr",nw:"tl",se:"br",sw:"bl"},M="n,s,e,w,ne,sw,se,nw",W={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},st={hr:"w,e,n",ve:"n,s,w",ios_switch:" ",android_switch:" ",rectangle:"n,s",search_bar:"w,e",status_bar:" ",tab_item:"w,e",tab_bar:"n",pg:" "},rt=14,m=8,U=5,A=20,j=10,it=20,Y=6},5063:($t,wt,w)=>{"use strict";w.d(wt,{O:()=>I,o:()=>O});var Z=w(21676);const I=Z.Ay.div.withConfig({displayName:"styles__StyledFindReplaceHighLightArea",componentId:"sc-5q5h3l-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),O=Z.Ay.div.withConfig({displayName:"styles__StyledHighLight",componentId:"sc-5q5h3l-1"})(["position:absolute;transform-origin:0 0;width:100%;height:100%;background:",";border:2px solid #ffd500;&.selected{background:rgba(22,132,252,0.2);border:2px solid #1684fc;}"],b=>b.theme.color_feedback_highlight_bg)},27420:($t,wt,w)=>{"use strict";w.d(wt,{PB:()=>m,TJ:()=>st,oh:()=>W,ol:()=>rt,wx:()=>M});var Z=w(59742),I=w(63555);if(w.j!=183)var O=w(70999);var b=w(87383);function M(U){return function(A){for(var j=arguments.length,it=new Array(j>1?j-1:0),Y=1;Y<j;Y++)it[Y-1]=arguments[Y];return U(...it,A)}}const W=function(U,A,j){return A===void 0&&(A=!1),j===void 0&&(j=!1),U.filter(it=>!(0,Z.OO)(it)).reduce((it,Y)=>{const P=sdkStore.getHotItem(Y);if(!A&&P.hotAttr.isLock)return it;if(P.hotAttr.type===I.x.WElbow){const{refFromKey:R,refToKey:at}=P.hotAttr,{isRefFromExist:$,isRefToExist:K}=(0,O.v)(Y,R,at);return $||K?it:[...it,Y]}else if(P.hotAttr.type===I.x.WTear&&!j)return[...it];return[...it,Y]},[])},st=(U,A,j)=>{const it=new Map;for(const Y of A){const P=MB.getWidgetStore().getRelatedTypeWidgetKeys("wTear",Y);it.set(Y,P);for(const R of P)(0,b.Ie)(R,j)}return it},rt=(U,A,j,it)=>!U||!(U!=null&&U.length)?[]:U.map(Y=>{const{hb:P,wasoX:R,wasoY:at}=it[Y],{x:$,y:K}=sdkStore.toAttrXY({x:P.x+A,y:P.y+j},Y);return{key:Y,hotAttr:{x:$+R,y:K+at}}}),m=(U,A,j,it,Y)=>{var P,R;const at=Y[A];if(!at)return;const $=it.get(A),K=j.x-(at==null||(P=at.hb)==null?void 0:P.x),H=j.y-(at==null||(R=at.hb)==null?void 0:R.y),B=rt($,K,H,Y);U.push(...B)}},80504:($t,wt,w)=>{"use strict";w.d(wt,{rA:()=>pt,GP:()=>T,zs:()=>E,PQ:()=>ut});var Z=w(63711),I=w.n(Z),O=w(68496),b=w(27420),M=w(93284),W=w(63555),st=w(46927),rt=w(45309),m=w(99786),U=w(57465),A=w(86803),j=w(17383),it=w(19542);const Y=ct=>{let{arrayLength:gt,excludedIntervals:bt,appendStyle:Tt}=ct;const Pt=[];let It=0;bt.sort((Dt,jt)=>Dt.offset-jt.offset);for(const Dt of bt)Dt.offset>It&&Pt.push({offset:It,length:Dt.offset-It,style:Tt}),It=Dt.offset+Dt.length;return It<gt&&Pt.push({offset:It,length:gt-It,style:Tt}),Pt},P=ct=>{let{richTextV1:gt,block:bt}=ct;return gt.underline?draftBlockUpdateBoolStyle({block:bt,attr:"UNDERLINE",mode:"apply"}):bt},R=ct=>{let{richTextV1:gt,block:bt}=ct;return gt.italic?(0,A.B8)({block:bt,attr:"ITALIC",mode:"apply"}):bt},at=ct=>{let{richTextV1:gt,block:bt}=ct;return gt.strikethrough?(0,A.B8)({block:bt,attr:"STRIKETHROUGH",mode:"apply"}):bt},$=ct=>{let{richTextV1:gt,textV1:bt}=ct;const Tt={};for(const[Pt,It]of Object.entries(bt.blocks)){const Dt=P({richTextV1:gt,block:It}),jt=R({richTextV1:gt,block:Dt});Tt[Pt]=at({richTextV1:gt,block:jt})}return Tt},K=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="fontsize-"+Tt.fontSize;return processIntervals({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("fontsize")),appendStyle:It})},H=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="color-"+Tt.textColor;return processIntervals({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("color")),appendStyle:It})},B=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="fontfamily-"+Tt.fontFamily;return processIntervals({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("fontfamily")),appendStyle:It})},X=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="letterspacing-"+Tt.letterSpacing+"px";return processIntervals({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("letterspacing")),appendStyle:It})},V=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="lineheight-"+Tt.lineHeight+"px";return processIntervals({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("lineheight")),appendStyle:It})},L=ct=>{let{arrayLength:gt,originalISR:bt,richTextV1:Tt}=ct;const It="fontweight-"+(0,j._y)(Tt.fontWeight,Tt.bold);return Y({arrayLength:gt,excludedIntervals:bt.filter(Dt=>Dt.style.includes("fontweight")),appendStyle:It})},ot=ct=>{let{richTextV1:gt,textV1:bt}=ct;const Tt={};for(const[Pt,It]of Object.entries(bt.blocks)){const Dt=It.text.length,Mt=It.inlineStyleRanges.map(ce=>ce.style==="BOLD"?{...ce,style:"fontweight-700"}:ce),Q=K({arrayLength:Dt,originalISR:Mt,richTextV1:gt}),vt=H({arrayLength:Dt,originalISR:Mt,richTextV1:gt}),Lt=B({arrayLength:Dt,originalISR:Mt,richTextV1:gt}),Rt=X({arrayLength:Dt,originalISR:Mt,richTextV1:gt}),Bt=V({arrayLength:Dt,originalISR:Mt,richTextV1:gt}),Ht=L({arrayLength:Dt,originalISR:Mt,richTextV1:gt});let zt;const Kt=[...Mt,...Q,...vt,...Lt,...Rt,...Bt,...Ht];isBlockListType(It.type)||gt.fontDirection==="vertical-lr"?zt={...It,inlineStyleRanges:Kt,data:{...It.data,paraSpacing:void 0}}:zt={...It,inlineStyleRanges:Kt,data:{...It.data,paraSpacing:gt.paraSpacing}},Tt[Pt]=zt}return Tt},G=ct=>{let{richTextV1:gt,blocks:bt,attr:Tt}=ct;const Pt={};if(Tt==="bold")for(const[It,Dt]of Object.entries(bt)){const jt=Dt.text.length,Mt=Dt.inlineStyleRanges;let Q=Mt;const vt=[...Q];switch(Tt){case"bold":{Q=Mt.map(Lt=>Lt.style==="BOLD"?{...Lt,style:"fontweight-700"}:Lt),vt.push(...L({arrayLength:jt,originalISR:Q,richTextV1:gt}));break}}Pt[It]={...Dt,inlineStyleRanges:vt}}else if(Tt==="italic")for(const[It,Dt]of Object.entries(bt))Pt[It]=at({richTextV1:gt,block:R({richTextV1:gt,block:Dt})});return Pt},z=ct=>{const gt=ct.hotAttr.richTextV1,bt=$(ct.hotAttr),Tt=ot({richTextV1:ct.hotAttr.richTextV1,textV1:{...ct.hotAttr.textV1,blocks:bt}});return{richTextV1:{...newRichTextV1(),paraSpacing:gt.paraSpacing,verticalAlign:gt.verticalAlign,horizontalAlign:gt.horizontalAlign,sizeType:gt.sizeType},textV1:{...ct.hotAttr.textV1,blocks:Tt}}};var F=w(47442);const k=["color"],ut=ct=>{var gt;const{richTextV1:{sizeType:bt,horizontalAlign:Tt,fontDirection:Pt}}=ct,{x:It,y:Dt,w:jt,h:Mt}=ct.cid&&((gt=sdkStore.getHotItem(ct.cid))==null?void 0:gt.hotAttr)||ct,Q=It-jt/2,vt=Dt-Mt/2;if(bt===0){const Lt=(0,M.Dp)(ct);if(ct.w=Lt.width,ct.h=Lt.height,Tt==="center"){ct.y=vt+Lt.height/2;return}if(Tt==="right"){const Rt=Q+jt;ct.y=vt+Lt.height/2,ct.x=Rt-Lt.width/2;return}ct.y=vt+Lt.height/2,ct.x=Q+Lt.width/2;return}if(bt===2){if(Pt==="vertical-lr"){const Rt=(0,M.GW)(ct),Bt=J(ct.width,Rt,ct.richTextV1.horizontalAlign);ct.x=ct.x-ct.w/2+Bt+Rt/2,ct.w=Rt;return}const Lt=(0,M.x1)(ct);ct.y=vt+Lt/2,ct.h=Lt}},E=(ct,gt,bt,Tt)=>{const Pt=[];return ct.forEach(It=>{let Dt;if((0,st.AG)(It)){if(Dt=I()(It),gt==="textV1")Dt.textV1=bt,Dt.richTextV1.fontSize=(0,M.Zm)(Dt),(0,M.fF)(Dt,Dt.richTextV1.fontSize);else{const Mt={...Dt.textV1};let Q=Mt.blocks;if(gt==="fontFamily"&&(Dt.richTextV1.fontFamily=bt,Q=(0,A.RG)({blocks:Q,attr:"fontfamily",value:bt})),gt==="fontSize"){const vt=Dt.richTextV1.fontFamily,Lt=(0,U.qp)(vt,Dt.richTextV1.fontSize),Rt=(0,U.qp)(vt,bt);let Bt=!1;Lt===(0,M.sn)(Dt)&&(Dt.richTextV1.lineHeight=Rt,Bt=!0),Q=(0,A.RG)({blocks:Q,attr:"fontsize",value:bt}),Bt&&(Q=(0,A.RG)({blocks:Q,attr:"lineheight",value:Dt.richTextV1.lineHeight})),Dt.textV1.blocks=Q,Dt.richTextV1.fontSize=bt}if(gt==="fontWeight"){const vt=(0,j._y)(bt,!1);(0,A.SD)(Mt.blocks)?Dt.richTextV1.fontWeight=bt:Dt.richTextV1.fontWeight="regular",Q=(0,A.RG)({blocks:Q,attr:"BOLD",value:!1}),Q=(0,A.RG)({blocks:Q,attr:"fontweight",value:vt}),Dt.richTextV1.bold=!1,Tt!=="bold"&&(Dt.richTextV1.italic=!1),Dt.richTextV1["!wbiVersion"]===1&&(Dt.richTextV1["!wbiVersion"]=3,Q=G({richTextV1:Dt.richTextV1,blocks:Q,attr:"italic"}))}if(gt==="boldType"){(0,A.SD)(Mt.blocks)?Dt.richTextV1.bold=!!bt:Dt.richTextV1.bold=!1;const vt=bt?700:400;Q=(0,A.RG)({blocks:Q,attr:"BOLD",value:!1}),Q=(0,A.RG)({blocks:Q,attr:"fontweight",value:vt}),Dt.richTextV1["!wbiVersion"]===1&&(Dt.richTextV1["!wbiVersion"]=3,Q=G({richTextV1:Dt.richTextV1,blocks:Q,attr:"italic"}))}if(gt==="fontStyle"&&((0,A.SD)(Mt.blocks)?Dt.richTextV1.italic=bt==="italic":Dt.richTextV1.italic=!1,Q=(0,A.RG)({blocks:Q,attr:"ITALIC",value:bt==="italic"}),Dt.richTextV1["!wbiVersion"]===1)){Dt.richTextV1["!wbiVersion"]=3;const{bold:vt}=(0,F.mj)({baseItem:Dt,isEditing:!1});vt?Dt.richTextV1.fontWeight="bold":Dt.richTextV1.fontWeight="regular",Q=(0,A.RG)({blocks:Q,attr:"BOLD",value:vt}),Q=(0,A.RG)({blocks:Q,attr:"fontweight",value:(0,j._y)(Dt.richTextV1.fontWeight,!1)})}gt==="underline"&&((0,A.SD)(Mt.blocks)?Dt.richTextV1.underline=bt:Dt.richTextV1.underline=!1,Q=(0,A.RG)({blocks:Q,attr:"UNDERLINE",value:bt})),gt==="line-through"&&((0,A.SD)(Mt.blocks)?Dt.richTextV1.strikethrough=bt:Dt.richTextV1.strikethrough=!1,Q=(0,A.RG)({blocks:Q,attr:"STRIKETHROUGH",value:bt})),gt==="textColor"&&(Dt.richTextV1.textColor=bt,Q=(0,A.RG)({blocks:Q,attr:"color",value:bt})),gt==="lineHeight"&&(Dt.richTextV1.lineHeight=bt,Q=(0,A.RG)({blocks:Q,attr:"lineheight",value:bt}),Dt.richTextV1["!lhVersion"]===1&&(Dt.richTextV1["!lhVersion"]=3)),gt==="letterSpacing"&&(Dt.richTextV1.letterSpacing=bt,Q=(0,A.RG)({blocks:Q,attr:"letterspacing",value:bt})),gt==="paddingTuple"&&(Dt.richTextV1.paddingTuple=bt),gt==="paraSpacing"&&(Dt.richTextV1.paraSpacing=bt,Q=(0,A.RG)({blocks:Q,attr:"paraSpacing",value:bt}),Dt["!psVersion"]===1&&(Dt["!psVersion"]=3)),gt!=="fontSize"&&(Dt.textV1.blocks=Q)}if(JSON.stringify(Dt.textV1)===JSON.stringify(It.textV1)&&k.includes(gt))return;!k.includes(gt)&&Dt.type===W.x.WRichText&&ut(Dt)}if(W.Q.USE_CLIP_TEXT.includes(It.type)&&!It.richTextV1.isClipText){const Mt=(0,rt.Ro)(Dt);Dt.richTextMetric=Mt}Pt.push(Dt)}),Pt},J=(ct,gt,bt)=>{switch(bt){case"center":return Math.round((ct-gt)/4);case"right":return Math.round((ct-gt)/2);default:return 0}},dt=ct=>{if(ct.richTextV1.sizeType===0){const gt=(0,M.Dp)(ct),bt=J(ct.w,gt.width,ct.richTextV1.horizontalAlign);ct.x=ct.x-ct.w/2+bt+gt.width/2,ct.y=ct.y-ct.h/2+gt.height/2,ct.w=gt.width,ct.h=gt.height}else if(ct.richTextV1.sizeType===2)if(ct.richTextV1.fontDirection==="vertical-lr"){const gt=(0,M.GW)(ct),bt=J(ct.width,gt,ct.richTextV1.horizontalAlign);ct.x=ct.x-ct.w/2+bt+gt/2,ct.w=gt}else{const gt=(0,M.bo)(ct);ct.y=ct.y-ct.h/2+gt/2,ct.h=gt}},pt=(ct,gt)=>{const bt=[];return gt.forEach(Tt=>{if(!W.Q.USE_TEXT_FONT_DIRECTION.includes(Tt.type))return;const Pt={...Tt,richTextV1:{...Tt.richTextV1,fontDirection:ct}};dt(Pt),bt.push({key:Pt.key,hotAttr:{richTextV1:Pt.richTextV1,x:Pt.x,y:Pt.y,w:Pt.w,h:Pt.h}})}),bt},T=(ct,gt)=>{const bt=[];return gt.forEach(Tt=>{if(Tt.type!==W.x.WRichText)return;let Pt={};const It={...Tt};if(ct===0){const{width:Dt,height:jt}=(0,M.Dp)(Tt),{x:Mt,y:Q}=(0,m.p)({key:Tt.key,width:Dt,height:jt});Pt={w:Dt,h:jt,x:Mt,y:Q,richTextV1:{...It.richTextV1,sizeType:0}}}else if(ct===2){const Dt=(0,M.bo)(Tt),{x:jt,y:Mt}=(0,m.p)({key:Tt.key,width:Tt.width,height:Dt});Pt={h:Dt,x:jt,y:Mt,richTextV1:{...It.richTextV1,sizeType:ct}}}else ct===1&&(Pt={richTextV1:{...It.richTextV1,sizeType:ct}});bt.push({key:Tt.key,hotAttr:Pt})}),bt},ht=(0,b.wx)(pt),yt=(ct,gt,bt,Tt)=>{if(!RICH_TEXT_WIDGET_NAMES.concat([WidgetType.WButton,WidgetType.WButtonSolid]).includes(ct.type)){if(gt==="bold")document.execCommand("bold");else if(gt==="italic")document.execCommand("italic");else if(gt==="textDecoration")bt==="line-through"?(Tt.underline&&document.execCommand("underline"),document.execCommand("strikeThrough")):bt==="underline"?(Tt.lineThrough&&document.execCommand("strikeThrough"),document.execCommand("underline")):bt==="normal"&&(Tt.underline?document.execCommand("underline"):Tt.lineThrough&&document.execCommand("strikeThrough"));else if(gt==="textColor"){const Pt=gt==="background"?"backColor":"foreColor",It=toRGBACSS(bt);document.execCommand(Pt,!1,It)}}}},73807:($t,wt,w)=>{"use strict";w.d(wt,{k:()=>U});var Z=w(23848),I=w(15336),O=w(30797),b=w(47143),M=w(91344),W=w(9376),st=w(63555);const rt=()=>{let A=[];const j=at=>{A=at,A.forEach($=>$==null?void 0:$.classList.add("link-highlight"))},it=()=>{A.forEach(at=>at==null?void 0:at.classList.remove("link-highlight"))},Y={"entry:draft:screen:mousemove":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:{event:B,from:X}}=$;const V=K();if(R.getIsCreatingLink(V))return;if(X==="design"){const E=(0,b.pO)(V),J=(0,b.Jv)(V),dt=(0,b.lh)(V);if(E||J||dt)return}const ot=R.getActiveEntityKey(V);if(B.target&&B.target.closest&&!B.target.closest(".draft-common-editor")&&!B.target.closest(".draft-link-toast")&&!(B.target.closest(".wSticky")||B.target.closest(".mind-node")||B.target.closest(".wRichText")||B.target.closest(".widget"))){ot&&H({type:P["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),U.Query.getLinkToastShow(V)&&M.A.emit("draft:link-toast:hide"),it();return}const G=document.elementFromPoint(B.clientX,B.clientY),z=G==null?void 0:G.closest(".draft-common-editor-wrapper"),F=G==null?void 0:G.closest(".draft-basic-text-editor-wrapper"),k=G==null?void 0:G.closest(".draft-link-toast"),ut=G==null?void 0:G.closest("a");if(ut!=null&&ut.getAttribute("data-block-key")){const E=ut.getAttribute("data-entity-key");if(E===ot)return;const J=ut.getAttribute("data-entity-start"),dt=ut.getAttribute("data-entity-end"),pt=ut.getAttribute("data-widget-key"),T=ut.getAttribute("data-block-key"),ht=decodeURIComponent(ut.getAttribute("data-link-title")||""),yt=ut.getAttribute("data-href"),ct=ut.getBoundingClientRect();if(!ct)return;let{top:gt,left:bt}=ct;const Tt=ut.closest(".preview-modal-portal-root .simulator-container");if(Tt){const Mt=Tt.getBoundingClientRect();Mt&&(gt=gt-Mt.top,bt=bt-Mt.left)}const Pt={top:gt-28-5,left:bt},It=sdkStore.getHotItem(pt);H({type:U.EntryKey["entry:draft:batch:update"],payload:{activeEntityKey:E}}),M.A.emit("draft:link-toast:view",{widget:It,linkTitle:ht,linkTarget:yt,style:Pt,blockKey:T,start:J,end:dt,fromType:"settingPanel",canEditLink:!Tt,isPreviewModal:!!Tt}),it();const Dt=new URLSearchParams(location.search),jt=(Tt||Dt.get("view_mode")==="device"?".simulator-container":".screen-container")+' a[data-entity-key="'+E+'"][data-widget-key="'+pt+'"]';j(document.querySelectorAll(jt));return}if(!z&&!F&&!k){ot&&H({type:P["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),U.Query.getLinkToastShow(V)&&M.A.emit("draft:link-toast:hide"),it();return}if((z||F)&&!k){const{isLink:E}=m(B.target);E||(ot&&H({type:P["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),U.Query.getLinkToastShow(V)&&M.A.emit("draft:link-toast:hide"),it())}},"entry:draft:open:hyperlink":(at,$)=>{let{dispatch:K}=at,{payload:{hyperlink:H,transition:B,isPreviewModal:X}}=$;const V=(0,W.Fr)(),L=(0,W.vq)();let ot,G;try{const ut=new URL(H);ot=ut.href,G=ut.hostname.split(".").slice(-2).join(".")}catch(ut){ot="https://"+H,G=""}const z=()=>{switch(B){case"inPage":(0,I.JW)(ot,"_self");break;case"newTab":window.ReactNativeWebView?MB.messageBucket.send("openLinkByBrowser",{link:H}):(0,I.JW)(ot,"_blank","noreferrer");break}},k=new URLSearchParams(location.search).get("view_mode")==="device"||X?"previewModal:update:state":"modal:update:state";["wondershare.com","modao.cc"].includes(G)?L&&B==="newTab"?K({type:k,payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:H,isMobile:V,displayWeChatNewTabInternalUrlTip:!0,confirmText:I18N.Common.confirm,onConfirm:z}}}):z():K({type:k,payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:H,isMobile:V,displayWeChatNewTabExternalUrlTip:L&&B==="newTab",confirmText:I18N.SettingPanel.continue,onConfirm:z}}})},"entry:draft:sticky:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:B}=$;const X=K(),{key:V,textV1:L,h:ot,stickyH:G,isNeedMigrateLinkItalic:z}=B,k=(0,O.QA)(X).filter(E=>E.key===V);if(!k||k.length!==1)return;const ut=k.map(E=>{let J={type:E.type,textV1:E.textV1};if(ot&&E.type!==st.x.WTear){const pt=E.y-E.h/2;J={...J,y:pt+ot/2,h:ot}}L&&(J.textV1=L),G&&(J.stickyH=G),z&&(J["!liVersion"]=3);const dt=(0,Z.$b)(J,!0);return{key:E.key,hotAttr:dt}});H({type:"entry:widget:change",payload:{flatChgList:ut}})},"entry:draft:linkToastShow:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:{linkToastShow:B}}=$;H({type:"draft:update:state",payload:{linkToastShow:B}})},"entry:draft:activeEntityKey:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:{activeEntityKey:B}}=$;H({type:"draft:update:state",payload:{activeEntityKey:B}})},"entry:draft:alignmentToolbarShow:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:{alignmentToolbarShow:B}}=$;H({type:"draft:update:state",payload:{alignmentToolbarShow:B}})},"entry:draft:isCreatingLink:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:{isCreatingLink:B}}=$;H({type:"draft:update:state",payload:{isCreatingLink:B}})},"entry:draft:batch:update":(at,$)=>{let{getState:K,dispatch:H}=at,{payload:B}=$;H({type:"draft:update:state",payload:B})}},P=Object.keys(Y).reduce((at,$)=>({...at,[$]:$}),{}),R={getLinkToastShow:at=>at.container?at.container.draft.linkToastShow:at.editor.state.draft.linkToastShow,getActiveEntityKey:at=>at.container?at.container.draft.activeEntityKey:at.editor.state.draft.activeEntityKey,getAlignmentToolbarShow:at=>at.container?at.container.draft.alignmentToolbarShow:at.editor.state.draft.alignmentToolbarShow,getIsCreatingLink:at=>at.container?at.container.draft.isCreatingLink:at.editor.state.draft.isCreatingLink,isStopAutoSave:at=>at.container?at.container.draft.isStopAutoSave:at.editor.state.draft.isStopAutoSave};return{__entry:Y,Query:R,EntryKey:P}};function m(A){let j=!1;if(A.tagName.toLowerCase()==="p")return{isLink:j,target:A};if(A.tagName.toLowerCase()==="a")return j=!0,{isLink:j,target:A};let it=A.offsetParent;for(;it&&!(it.tagName.toLowerCase()==="p"||it.tagName.toLowerCase()==="div");){if(it.tagName.toLowerCase()==="a"){j=!0;break}it=it.offsetParent}return{isLink:j,target:it}}const U=rt()},15400:($t,wt,w)=>{"use strict";w.d(wt,{X:()=>K});var Z=w(39557),I=w(70226),O=w(38755),b=w(68496),M=w(30797),W=w(80504),st=w(30939),rt=w(14672),m=w(78081),U=w(47946),A=w(47483),j=w(52098),it=w(8907),Y=w(95206),P=w(23340),R=w(47442);const at={strikethrough:"line-through",italic:"fontStyle",bold:"boldType",fontsize:"fontSize",underline:"underline",color:"textColor"},K=(()=>{const H={"entry:flow:selectedCellsInfo:update":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:z}=L;G({type:"flow:update:state",payload:z})},"entry:flow:text-edit:prepare":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{event:z}}=L;const F=z.target.closest(".database-cell")||document.elementsFromPoint(z.clientX,z.clientY).find(dt=>dt.className==="database-cell");if(!F)return;const k=parseInt(F.getAttribute("data-x")),ut=parseInt(F.getAttribute("data-y"));G({type:"flow:update:state",payload:{isShallowEditing:!0,editingPos:{x:k,y:ut},selectedCellsInfo:{tl:{x:k,y:ut},br:{x:k,y:ut}}}})},"entry:flow:selectedCellsInfo:tl:update":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{tl:z}}=L;const k={...B.getSelectedCellsInfo(ot()),tl:z};G({type:"flow:update:state",payload:{selectedCellsInfo:k}})},"entry:flow:selectedCellsInfo:br:update":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{target:z,startSelectedCellsInfo:F}}=L;const{tl:{x:k,y:ut}}=F,E=JSON.parse(JSON.stringify(F));z.x<k?(E.tl.x=z.x,E.br.x=k):z.x>k?(E.tl.x=k,E.br.x=z.x):z.x===k&&(E.tl.x=k,E.br.x=k),z.y<ut?(E.tl.y=z.y,E.br.y=ut):z.y>ut?(E.tl.y=ut,E.br.y=z.y):(E.tl.y=ut,E.br.y=ut),G({type:"flow:update:state",payload:{selectedCellsInfo:E}})},"entry:flow:shallow:move":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{direction:z}}=L;const F=ot(),{tl:{x:k,y:ut}}=B.getSelectedCellsInfo(F),E=(0,M.p$)(F)[0],J=sdkStore.getHotItem(E),{table:dt}=J.hotAttr.database,pt=J.hotAttr.swimlaneType,{isShowBigTitle:T}=J.hotAttr.swimConfig;let ht=k,yt=ut;const ct=dt[ut].length,gt=dt.length;switch(z){case"up":{ut-1>0?yt=ut-1:ut-1===0&&T&&pt==="leftRight"&&(yt=0,ht=0);break}case"down":{ut+1<gt&&(yt=ut+1);break}case"right":{k===0&&ut===0&&pt==="topBottom"?(ht=0,yt=1):k+1<ct&&(ht=k+1);break}case"left":{k===0&&T&&pt==="topBottom"?(ht=0,yt=0):k-1>=0&&(ht=k-1);break}case"tab":{k+1<ct?ht=k+1:k+1===ct&&ut+1<gt&&(yt=ut+1,ht=0);break}case"shift+tab":{k-1>=0?ht=k-1:k-1<0&&ut-1>=0&&(yt=ut-1,ht=ct-1);break}}const bt={x:ht,y:yt},Tt={tl:{...bt},br:{...bt}};G({type:"flow:update:state",payload:{editingPos:bt,selectedCellsInfo:Tt}})},"entry:flow:col:add-del":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{changeType:z,pos:F,handleType:k}}=L;const ut=sdkStore.getHotItem((0,M.p$)(ot())[0]),{database:E}=ut.hotAttr;let J;z==="add"?J=(0,m.po)({pos:F,handleType:k,database:E,widgetType:"wSwimlane"}):J=(0,m.Ft)({pos:F,handleType:k,database:E,widgetType:"wSwimlane"});const dt={key:ut.key,hotAttr:{...ut.hotAttr,database:{...J.newDatabase}}};if(k==="bottom"){const T=ut.hotAttr.y-ut.hotAttr.h*.5;dt.hotAttr.h=J.newH,dt.hotAttr.y=T+J.newH*.5}else{const T=ut.hotAttr.x-ut.hotAttr.w*.5;dt.hotAttr.w=J.newW,dt.hotAttr.x=T+J.newW*.5}G({type:"entry:widget:change",payload:{flatChgList:[dt]}})},"entry:flow:contextMenu:col:add-del":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{changeType:z,handleType:F,opDirection:k}}=L;const ut=ot();if(z==="del"){const ct=sdkStore.getHotItem((0,M.p$)(ot())[0]);if(F==="right"){if(ct.hotAttr.database.widthList.length===1){MB.notice({text:I18N.flow.remain_swimlane,type:"warning"});return}}else if(ct.hotAttr.database.heightList.length===1){MB.notice({text:I18N.flow.remain_swimlane,type:"warning"});return}}const E=sdkStore.getHotItem((0,M.p$)(ut)[0]),{database:J}=E.hotAttr,{tl:dt}=B.getSelectedCellsInfo(ut),pt=dt.x===0&&dt.y===0;let T=0;const ht={...dt};F==="right"?k==="right"?pt?T=J.widthList.length:T=dt.x+1:T=dt.x:k==="bottom"?pt?T=J.heightList.length+1:T=dt.y+1:pt?T=1:T=dt.y,G({type:X["entry:flow:col:add-del"],payload:{changeType:z,handleType:F,pos:T}}),F==="right"?z==="del"?T===0?ht.x=0:ht.x=T-1:k==="left"&&(ht.x=T+1):z==="del"?T===1?ht.y=1:ht.y=T-1:k==="top"&&(ht.y=T+1),pt&&(ht.x=0,ht.y=0),G({type:"flow:update:state",payload:{selectedCellsInfo:{tl:ht,br:ht}}})},"entry:flow:col:add-del:batch":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{newColLength:z,handleType:F}}=L;const k=ot(),ut=(0,M.p$)(k)[0],E=sdkStore.getHotItem(ut),{database:J}=E.hotAttr,{widthList:dt,heightList:pt}=J;let T=0;if(F==="right"?T=dt.length:T=pt.length,T===z)return;const ht={key:E.key,hotAttr:{...E.hotAttr}};let yt;if(T>z){const gt=z,bt=T;yt=(0,m.dz)({posBegin:gt,posEnd:bt,database:J,handleType:F,widgetType:"wSwimlane",changeType:"del"})}else if(T<z){const gt=T,bt=z;yt=(0,m.dz)({posBegin:gt,posEnd:bt,database:J,handleType:F,widgetType:"wSwimlane",changeType:"add"})}if(yt.newH){ht.hotAttr.h=yt.newH;const gt=E.hotAttr.y-E.hotAttr.h*.5;ht.hotAttr.h=yt.newH,ht.hotAttr.y=gt+yt.newH*.5}else{ht.hotAttr.w=yt.newW;const gt=E.hotAttr.x-E.hotAttr.w*.5;ht.hotAttr.w=yt.newW,ht.hotAttr.x=gt+yt.newW*.5}ht.hotAttr.database=yt.newDatabase,G({type:"entry:widget:change",payload:{flatChgList:[ht]}})},"entry:flow:isHideBigTilte:toggle":V=>{let{getState:L,dispatch:ot}=V;const G=sdkStore.getHotItem((0,M.p$)(L())[0]),z=G.hotAttr.swimConfig,F=!z.isShowBigTitle,k=G.hotAttr.swimlaneType,ut={key:G.key,hotAttr:{...G.hotAttr,swimConfig:{...z,isShowBigTitle:F}}};if(k==="leftRight"){const J=G.hotAttr.y+G.hotAttr.h*.5;let dt=0;const{heightList:pt}=ut.hotAttr.database;if(F)for(let T=0;T<pt.length;T++)dt+=pt[T];else for(let T=1;T<pt.length;T++)dt+=pt[T];ut.hotAttr.h=dt,ut.hotAttr.y=J-dt*.5}else{const J=G.hotAttr.x+G.hotAttr.w*.5;let dt=0;const{widthList:pt}=ut.hotAttr.database;if(F)for(let T=0;T<pt.length;T++)dt+=pt[T];else for(let T=1;T<pt.length;T++)dt+=pt[T];ut.hotAttr.w=dt,ut.hotAttr.x=J-dt*.5}ot({type:"entry:widget:change",payload:{flatChgList:[ut]}})},"entry:flow:cell:attr:set":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{sup:z,attr:F,value:k}}=L;const ut=E=>{if(z==="textV1"){const J=E[z],dt=E.richTextV1,pt=at[F];let T=k;pt==="fontStyle"&&(T=k===!0?"italic":"normal");const ht={type:"wSwimlane",textV1:J,richTextV1:dt},yt=(0,W.zs)([ht],pt,T)[0];E.textV1=yt.textV1,E.richTextV1=yt.richTextV1}else z==="fill"&&(E.fill=k);return E};G({type:X["entry:flow:selectCells:update"],payload:{updateFunc:ut}})},"entry:flow:copy:cell:self":async(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{isOnlyPasteText:z=!1}}=L;const F=ot(),k=(0,M.p$)(F),ut=sdkStore.getHotItem(k[0]),{table:E,cells:J}=ut.hotAttr.database,{tl:dt,br:pt}=B.getSelectedCellsInfo(F),T={},ht=[],yt=[];for(let bt=dt.y;bt<=pt.y;bt++){const Tt=[],Pt=[];for(let It=dt.x;It<=pt.x;It++){const Dt=E[bt][It];T[Dt]=J[Dt],Tt.push(Dt);const jt=[];for(const Q of Object.values(J[Dt].textV1.blocks))jt.push(Q.text);const Mt=jt.join("\n");Pt.push(Mt)}yt.push(Pt.join(" ")),ht.push(Tt)}const ct=yt.join("\n"),gt={cells:T,table:ht,isOnlyPasteText:z};await(0,P.$H)({hasNotice:!1})&&(0,P.Rh)({value:ct}),await(0,rt.c2)(gt),G({type:X["entry:flow:copy:cell:properties"]})},"entry:flow:cut:cell:self":V=>{let{dispatch:L}=V;L({type:"entry:flow:copy:cell:self",payload:{isOnlyPasteText:!0}});const ot=G=>{const z=(0,O.Y8)();return z.fill=G.fill,z};L({type:X["entry:flow:selectCells:update"],payload:{updateFunc:ot}})},"entry:flow:paste:cell:self":async(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{textInClipboard:z}}=L;const F=ot(),k=await(0,rt.cW)({isShowPrompt:!1}),ut=(0,M.p$)(F),{tl:E,br:J}=B.getSelectedCellsInfo(F);let dt=!0;k!=null&&k.clipCells&&Object.keys(k.clipCells).length>1&&(dt=!1);const pt=sdkStore.getHotItem(ut[0]),T={...pt.hotAttr.database},ht=pt.hotAttr.swimlaneType,{table:yt,cells:ct,widthList:gt,heightList:bt}=T,Tt={...ct};let Pt;z.type==="textV1"?Pt="fromTextV1":z.type==="contextMenu"?Pt="fromCell":Pt="fromPlainText";const It=Ht=>zt=>{let{cellKey:Kt,copiedCell:ce}=zt;Pt==="fromTextV1"?Tt[Kt]={...(0,O.Y8)(),textV1:z.content,fill:Tt[Kt].fill}:Pt==="fromCell"?k.isOnlyPasteText?Tt[Kt]={...ce,fill:Tt[Kt].fill}:Tt[Kt]={...ce}:(Tt[Kt]={...(0,O.Y8)(),fill:Tt[Kt].fill},Tt[Kt].textV1.blocks["#000000"].text=z.content)},Dt=Tt[yt[E.y][E.x]],jt=It(Dt);let[Mt,Q]=[J.x,J.y];E.x===0&&E.y===0&&!(J.x===0&&J.y===0)&&(ht==="leftRight"?Mt=gt.length-1:Q=bt.length);let vt=[],Lt=[];if(Pt==="fromCell"){const{table:Ht,cells:zt}=k;vt=Ht,Lt=zt}if(dt)for(let Ht=E.y;Ht<=Q&&!(Ht>=yt.length);Ht++)for(let zt=E.x;zt<=Mt&&!(zt>=yt[Ht].length);zt++){const Kt=yt[Ht][zt];if(Pt==="fromCell"){const ce=Lt[vt[0][0]];jt({cellKey:Kt,copiedCell:ce})}else jt({cellKey:Kt,copiedCell:void 0})}else for(let Ht=E.y,zt=0;Ht<E.y+vt.length&&!(Ht>=yt.length);Ht++,zt++)for(let Kt=E.x,ce=0;Kt<E.x+vt[zt].length;Kt++,ce++){const oe=yt[Ht][Kt];if(Pt==="fromCell"){const he=vt[zt][ce],_e=Lt[he];jt({cellKey:oe,copiedCell:_e})}else jt({cellKey:oe,copiedCell:void 0})}const Bt=[{key:pt.key,hotAttr:{...pt.hotAttr,database:{...T,cells:Tt}}}];G({type:"entry:widget:change",payload:{flatChgList:Bt}})},"entry:flow:copy:cell:properties":V=>{let{getState:L}=V;const ot=L(),{tl:G}=B.getSelectedCellsInfo(ot),z=(0,M.p$)(ot)[0],F=sdkStore.getHotItem(z),{cells:k,table:ut}=F.hotAttr.database,E=k[ut[G.y][G.x]],{fontSize:J,color:dt,italic:pt,underline:T,strikethrough:ht,bold:yt}=(0,R.xH)({baseItem:{...E,type:"wSwimlane"},returnType:"textV1"});let ct="";T&&(ct+="underline"),ht&&(ct+="line-through"),ct===""&&(ct="none");const gt={animation:{},appearance:{fill:E.fill},text:{fontSize:J,fontStyle:pt?"italic":"normal",textColor:typeof dt=="number"?dt:(0,Z.K8)(dt),textDecoration:ct,lineHeight:E.richTextV1.lineHeight,boldType:Number(yt)}};(0,rt.Sl)(gt)},"entry:flow:paste:cell:properties":async V=>{let{dispatch:L}=V;const ot=await(0,rt._d)({isShowPrompt:!1}),G=z=>{const F={...z,...ot.appearance},k={};for(const[ut,E]of Object.entries(ot.text))ut==="fontSize"?k.fontSize=E:ut==="fontStyle"?E==="italic"?k.italic=!0:k.italic=!1:ut==="textColor"?k.textColor=typeof E=="number"?(0,b.t0)(E):E:ut==="textDecoration"?(E.includes("underline")?k.underline=!0:k.underline=!1,E.includes("line-through")?k.strikethrough=!0:k.strikethrough=!1):ut==="lineHeight"?k.lineHeight=E:ut==="boldType"&&(k.bold=!!E);return F.richTextV1={...F.richTextV1,...k},(0,I.jv)(F,k),F};L({type:X["entry:flow:selectCells:update"],payload:{updateFunc:G}})},"entry:flow:paste:del:blocks":V=>{let{dispatch:L}=V;const ot=G=>({...G,textV1:(0,O.Y8)().textV1});L({type:X["entry:flow:selectCells:update"],payload:{updateFunc:ot}})},"entry:flow:change:width-height":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{value:z,attr:F}}=L;const k=ot(),ut=(0,M.p$)(k)[0],E=sdkStore.getHotItem(ut),{tl:J,br:dt}=B.getSelectedCellsInfo(k),{swimConfig:{isShowBigTitle:pt},swimlaneType:T}=E.hotAttr,{widthList:ht,heightList:yt}=E.hotAttr.database,ct={...E.hotAttr.database},gt={key:E.key,hotAttr:{...E.hotAttr}};if(F==="height"){const Tt=[...yt];for(let Dt=J.y;Dt<=dt.y;Dt++)Tt[Dt]=z;ct.heightList=Tt;let Pt=(0,m.PM)(Tt);pt||T==="leftRight"&&(Pt-=Tt[0]);const It=E.hotAttr.y-E.hotAttr.h*.5;gt.hotAttr.h=Pt,gt.hotAttr.y=It+Pt*.5}else{const Tt=[...ht];for(let Dt=J.x;Dt<=dt.x;Dt++)Tt[Dt]=z;ct.widthList=Tt;let Pt=(0,m.PM)(Tt);pt||T==="topBottom"&&(Pt-=Tt[0]);const It=E.hotAttr.x-E.hotAttr.w*.5;gt.hotAttr.w=Pt,gt.hotAttr.x=It+Pt*.5}gt.hotAttr.database=ct,G({type:"entry:widget:change",payload:{flatChgList:[gt]}})},"entry:flow:selectCells:update":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{updateFunc:z}}=L;const F=ot(),k=(0,M.p$)(F);if(k.length!==1)return;const{tl:ut,br:E}=B.getSelectedCellsInfo(F),J=sdkStore.getHotItem(k[0]),dt=J.hotAttr.swimlaneType,pt={...J.hotAttr.database},{table:T,cells:ht,widthList:yt,heightList:ct}=pt,gt={...ht};let bt=E.x,Tt=E.y;ut.x===0&&ut.y===0&&!(E.x===0&&E.y===0)&&(dt==="leftRight"?bt=yt.length-1:Tt=ct.length);for(let Dt=ut.y;Dt<=Tt&&!(Dt>=T.length);Dt++)for(let jt=ut.x;jt<=bt&&!(jt>=T[Dt].length);jt++){const Mt=T[Dt][jt],Q={...ht[Mt]};gt[Mt]=z(Q)}const It=[{key:J.key,hotAttr:{...J.hotAttr,database:{...pt,cells:gt}}}];G({type:"entry:widget:change",payload:{flatChgList:It}})},"entry:flow:swimlane:paste":(V,L)=>{let{getState:ot,dispatch:G}=V,{payload:{pasteType:z,content:F}}=L,k;if(z==="plain"){const ut=F;if(/COPIED__MB__WIDGET_V7/.test(ut))return;if(/COPIED__MB__WIDGET/.test(ut))return}if(z==="html"){const ut=F,E=(0,A.A)({html:ut,componentType:2}),J=j.z6.createFromBlockArray(E.contentBlocks,E.entityMap),dt=j.$t.createWithContent(J),pt=(0,j.dM)(dt.getCurrentContent());k={type:"textV1",content:(0,it.qn)(pt)}}else if(z==="plain"){const ut=F;ut.includes(rt.o)?k={type:"contextMenu"}:k={type:"text",content:ut.replace(U.Qt,"")}}else k={type:"contextMenu"};G({type:K.entryKey["entry:flow:paste:cell:self"],payload:{textInClipboard:k}})}},B=st.B.genQuery(Y.a,{getStateFn:V=>V.editor.state.swimlane}),X=st.B.genEntryKey(H);return{__initialState:Y.a,__reducer:Y.F,__entry:H,entryKey:X,query:B}})()},95206:($t,wt,w)=>{"use strict";w.d(wt,{F:()=>I,a:()=>Z});const Z={selectedCellsInfo:{tl:{x:0,y:0},br:{x:0,y:0}},editingPos:{x:-1,y:-1},isShallowEditing:!1,isDeepEditing:!1},I=function(O,b){O===void 0&&(O=Z);let{type:M="flow:update:state",payload:W=Z}=b;switch(M){case"flow:update:state":return{...O,...W};case"flow:update:clear":return{...Z};default:return O}}},76445:($t,wt,w)=>{"use strict";w.d(wt,{GO:()=>rt,qi:()=>M,yl:()=>st});var Z=w(30108),I=w.n(Z),O=w(36521);const b="basket_state_panel_position";let M=function(m){return m.Edit="edit",m.OnlyView="only_view",m}({});const W={selections:[],hover:{item:"",panel:""},basketEditor:{key:"",hotItem:null,refPage:"",prevPopupPanel:"",prevSelection:[],statePanelPosition:(0,O.Yt)(b,{top:0,left:0},O.qW.Object)},seniorEditor:{},textEditor:{selectionAttrs:{},defaultAttrs:{}},handMode:!1,pencilMode:!1,inspectMode:!1,fullScreenMode:!1,viewType:M.Edit,isCommunityPreview:!1,isEmbedV2Preview:!1,isHtmlZipPreview:!1,isVersionPreview:!1,editingUserComboMode:!1,editingOrgComboMode:!1,enabledRangeSelection:0,isHitVectorPath:!1,transformVector:null,isShowFloatingToolbar:!0,isEditChartDataCid:"",isEditingEditableWidgetCid:"",isFocusStickyOffset:!1,previewViewMode:"read_only"};function st(m,U){m===void 0&&(m=W);let{type:A,payload:j}=U;switch(A){case"mode:update:state":return{...m,...j};case"mode:update:selections":return{...m,selections:j};case"mode:update:selections:unselect:items":{const it=m.selections.filter(Y=>!j.includes(Y));return{...m,newSelection:it}}case"mode:update:hover:item":return{...m,hover:{...m.hover,item:j}};case"mode:update:basketEditor:key":return{...m,basketEditor:{...m.basketEditor,key:j}};case"mode:update:basketEditor:hotItem":return{...m,basketEditor:{...m.basketEditor,hotItem:j}};case"mode:update:basketEditor:refPage":return{...m,basketEditor:{...m.basketEditor,refPage:j}};case"mode:update:basketEditor:prevPopupPanel":return{...m,basketEditor:{...m.basketEditor,prevPopupPanel:j}};case"mode:update:basketEditor:statePanelPosition":return(0,O.a0)(b,j,O.qW.Object),{...m,basketEditor:{...m.basketEditor,statePanelPosition:j}};case"mode:update:toggle:handMode":return{...m,handMode:I()(j)?j:!m.handMode};case"mode:update:toggle:pencilMode":return{...m,pencilMode:I()(j)?j:!m.pencilMode};case"mode:update:viewType":return{...m,viewType:j};case"mode:update:toggle:fullScreenMode":return{...m,fullScreenMode:I()(j)?j:!m.fullScreenMode};case"mode:update:basketEditor:prevSelection":return{...m,basketEditor:{...m.basketEditor,prevSelection:j}};case"mode:update:toggle:inspectMode":return{...m,inspectMode:I()(j)?j:!m.inspectMode};case"mode:update:communityPreview":return{...m,isCommunityPreview:j};case"mode:update:embedV2Preview":return{...m,isEmbedV2Preview:j};case"mode:update:htmlZipPreview":return{...m,isHtmlZipPreview:j};case"mode:update:isVersionPreview":return{...m,isVersionPreview:j};case"mode:update:toggle:editingUserComboMode":return{...m,editingUserComboMode:I()(j)?j:!m.editingUserComboMode};case"mode:update:toggle:editingOrgComboMode":return{...m,editingOrgComboMode:I()(j)?j:!m.editingOrgComboMode};case"mode:update:toggle:isShowFloatingToolbar":return{...m,isShowFloatingToolbar:I()(j)?j:!m.isShowFloatingToolbar};case"mode:update:textEditor:defaultAttrs":return{...m,textEditor:{...m.textEditor,defaultAttrs:j}};case"mode:update:previewViewMode":return{...m,previewViewMode:j.previewViewMode};default:return m}}let rt;(function(m){function U(T){return{type:"mode:update:state",payload:{...T}}}m.update=U;function A(T){return{type:"mode:update:selections",payload:T}}m.select=A;function j(T){return{type:"mode:update:selections:unselect:items",payload:T}}m.unSelect=j;function it(T){return{type:"mode:update:hover:item",payload:T}}m.hoverItem=it;function Y(T){return{type:"mode:update:basketEditor:key",payload:T}}m.editBasketItemKey=Y;function P(T){return{type:"mode:update:basketEditor:hotItem",payload:T}}m.editBasketHotItem=P;function R(T){return{type:"mode:update:basketEditor:refPage",payload:T}}m.editBasketRefPage=R;function at(T){return{type:"mode:update:basketEditor:prevSelection",payload:T}}m.updateBasketPrevSelection=at;function $(T){return{type:"mode:update:basketEditor:prevPopupPanel",payload:T}}m.updateBasketPrevPopupPanel=$;function K(T){return{type:"mode:update:basketEditor:statePanelPosition",payload:T}}m.updateBasketStatePanelPosition=K;function H(T){return{type:"mode:update:toggle:handMode",payload:T}}m.toggleHandMode=H;function B(T){return{type:"mode:update:toggle:pencilMode",payload:T}}m.togglePencilMode=B;function X(){return{type:"mode:update:viewType",payload:M.OnlyView}}m.setOnlyViewMode=X;function V(){return{type:"mode:update:viewType",payload:M.Edit}}m.setEditMode=V;function L(T){return{type:"mode:update:toggle:fullScreenMode",payload:T}}m.toggleFullScreenMode=L;function ot(T){return{type:"mode:update:toggle:inspectMode",payload:T}}m.toggleInspectMode=ot;function G(T){return{type:"mode:update:communityPreview",payload:T}}m.setCommunityPreview=G;function z(T){return{type:"mode:update:embedV2Preview",payload:T}}m.setEmbedV2Preview=z;function F(T){return{type:"mode:update:htmlZipPreview",payload:T}}m.setHtmlZipPreview=F;function k(T){return{type:"mode:update:isVersionPreview",payload:T}}m.setIsVersionPreview=k;function ut(T){return{type:"mode:update:toggle:editingUserComboMode",payload:T}}m.toggleEditingUserComboMode=ut;function E(T){return{type:"mode:update:toggle:editingOrgComboMode",payload:T}}m.toggleEditingOrgComboMode=E;function J(T){return{type:"mode:update:toggle:isShowFloatingToolbar",payload:T}}m.toggleIsShowFloatingToolbar=J;function dt(T){return{type:"mode:update:textEditor:defaultAttrs",payload:T}}m.updateTextEditorDefaultAttrs=dt;function pt(T){return{type:"mode:update:previewViewMode",payload:{previewViewMode:T}}}m.updatePreviewViewMode=pt})(rt||(rt={}))},70351:($t,wt,w)=>{"use strict";w.d(wt,{CP:()=>I,Fc:()=>M,Q1:()=>b,Zn:()=>W,e8:()=>O,rP:()=>Z});const Z=st=>st.editor.state.elbow.isDraggingElbow,I=st=>st.editor.state.elbow.isDraggingElbowText,O=st=>st.editor.state.elbow.highlightAnchor,b=st=>st.editor.state.elbow.isInElbowMode,M=st=>st.editor.state.elbow.popupWorldPos,W=st=>st.editor.state.elbow.activeElbowKey},39562:($t,wt,w)=>{"use strict";w.d(wt,{A6:()=>j,GP:()=>R,H_:()=>rt,OX:()=>P,UN:()=>M,WH:()=>O,aJ:()=>m,ah:()=>A,fo:()=>Y,g0:()=>W,jZ:()=>st,oi:()=>it,uA:()=>U,ul:()=>b,ux:()=>at});var Z=w(63686),I=w(61535);const O=$=>$.editor.state.mind.editMindKey,b=$=>$.editor.state.mind.selectedMindNodeKeys,M=$=>$.editor.state.mind.selectedMindNodeFlagIconKey,W=$=>$.editor.state.mind.selectedMindNodeImageKey,st=$=>$.editor.state.mind.isShowMindNodeMenu,rt=$=>$.editor.state.mind.draggingState,m=$=>$.editor.state.mind.isShallowEditText,U=$=>$.editor.state.mind.isEditingSelectAll,A=$=>$.editor.state.mind.isEditingMoveToEnd,j=(0,Z.Mz)([b,M,W],($,K,H)=>!K&&!H&&$[$.length-1]),it=(0,Z.Mz)([O,j,I.RX],($,K,H)=>{const B=H.widgetStore.getNode($);if(B&&K){const X=H.widgetStore.getNode(K);if(X)return{mindNode:B,richTextNode:X}}return null}),Y=(0,Z.Mz)([b,I.RX,I.UV],($,K,H)=>{const B=[];return $.forEach(X=>{const V=H.getNode(X);V&&B.push(V)}),B}),P=(0,Z.Mz)([Y],$=>$.map(K=>K.widget)),R=(0,Z.Mz)([j,I.RX,I.UV],($,K,H)=>{var B;return(B=H.getNode($))==null?void 0:B.widget}),at=(0,Z.Mz)([j,I.RX,I.UV],($,K,H)=>{var B;return(B=H.getNode($))==null?void 0:B.widget})},30797:($t,wt,w)=>{"use strict";w.d(wt,{QA:()=>W,Z9:()=>st,p$:()=>b,sK:()=>rt,x$:()=>M});var Z=w(63686),I=w(61535),O=w(72866);const b=m=>m.editor.state.mode.selections,M=(0,Z.Mz)([b,I.RX,I.UV],(m,U,A)=>{const j=[];return m.forEach(it=>{const Y=A.getNode(it);Y&&j.push(Y)}),j}),W=(0,Z.Mz)([M],m=>m.map(U=>U.widget)),st=(0,Z.Mz)([b,I.RX],(m,U)=>{const A=[];return m.forEach(j=>{j&&A.push((0,O.Op)(j))}),A}),rt=(0,Z.Mz)([b],m=>{const U=[];return m.forEach(A=>{A&&U.push((0,O.Op)(A))}),U})},35709:($t,wt,w)=>{"use strict";w.d(wt,{Hr:()=>O,LS:()=>st,Lc:()=>Z,MS:()=>W,SF:()=>m,jy:()=>I,sL:()=>rt,tI:()=>M,yc:()=>b});const Z=U=>U.editor.state.ST.STMode,I=U=>U.editor.state.ST.isDraggingWTear,O=U=>U.editor.state.ST.isDraggingTearSticky,b=U=>U.editor.state.ST.tearOffset,M=U=>U.editor.state.ST.isShowTearSticky,W=U=>U.editor.state.ST.isLeftDown,st=U=>U.editor.state.ST.fakeBindingInfo,rt=U=>U.editor.state.ST.fakePointToDir,m=U=>U.editor.state.ST.prevBindingCanvasKey},61724:($t,wt,w)=>{"use strict";w.d(wt,{CY:()=>j,Eb:()=>rt,Xf:()=>W,bC:()=>U,fv:()=>b,g8:()=>I,nH:()=>A,nh:()=>O,p$:()=>st,sx:()=>it,tS:()=>M,zX:()=>Z,zg:()=>m});const Z=Y=>Y.editor.state.table.selectTableCellInfo,I=Y=>Y.editor.state.table.selectCopyCell,O=Y=>Y.editor.state.table.widget,b=Y=>Y.editor.state.table.isResizeCell,M=Y=>Y.editor.state.table.isEditTable,W=Y=>Y.editor.state.table.isShowTableMenu,st=Y=>Y.editor.state.table.isMouseDownInTable,rt=Y=>Y.editor.state.table.tableCopyInfo,m=Y=>Y.editor.state.table.inspectTableInfo,U=Y=>Y.editor.state.table.isShowTableDragMenu,A=Y=>Y.editor.state.table.tableRightClickDragInfo,j=Y=>Y.editor.state.table.isMovingInDrag,it=Y=>Y.editor.state.table.isDragging},99191:($t,wt,w)=>{"use strict";w.d(wt,{Gq:()=>K,Pf:()=>z,Yp:()=>G,tG:()=>F});var Z=w(51044),I=w(12592),O=w(21676),b=w(83053),M=w(20592),W=w(4098),st=w(85797),rt=w(68496),m=w(63555),U=w(95230),A=w(43859),j=w(13808),it=w(21011),Y=w(58912),P=w(45309),R=w(66976),at=w(57464);const $=Math.pow(2,31)-1,K=(k,ut,E,J)=>{const dt=k.getHotItem(ut),pt=V(k,ut,J),{shadow:T}=dt.hotAttr,ht=Tt=>J==="local"?k.getCCSBound2308(Tt):k.getHotBound(Tt);switch(dt.hotAttr.type){case"rResBunch":{const Tt=(0,M.F1)();return dt.hotAttr.bunch==="rbPage"&&F({hotItem:dt,isExportSticky:E}).sub.forEach(It=>{var Dt;return((Dt=k.getHotItem(It||""))==null?void 0:Dt.hotAttr.type)!=="rResBunch"&&(0,M.il)(Tt,K(k,It,!1,J))}),Tt}case"rResCanvas":{const Tt=ht(ut);if(dt.hotAttr.isClipContent)return(0,W.Pb)(Tt);{const Pt=(0,M.F1)();dt.sub.forEach(Ht=>(0,M.il)(Pt,K(k,Ht,!1,J)));let It=1/0,Dt=1/0,jt=-1/0,Mt=-1/0;const Q=(Ht,zt)=>{It=Math.min(It,Ht),Dt=Math.min(Dt,zt),jt=Math.max(jt,Ht),Mt=Math.max(Mt,zt)},vt=Tt.x-Tt.w/2+Math.min(0,Pt[0]),Lt=Tt.y-Tt.h/2+Math.min(0,Pt[1]),Rt=Math.max(Pt[2]-Pt[0],Tt.w),Bt=Math.max(Pt[3]-Pt[1],Tt.h);return Q(vt,Lt),Q(vt,Lt+Bt),Q(vt+Rt,Lt),Q(vt+Rt,Lt+Bt),[It,Dt,jt,Mt]}}case"wWrap":{const Tt=ht(ut);if(dt.hotAttr.isAutoSize){const Pt=(0,M.F1)();if(dt.sub.length===0)return pt;dt.sub.forEach(Bt=>{const Ht=K(k,Bt,!1,"local");(0,M.il)(Pt,Ht)});const It=(0,st.bj)();(0,st.a6)(It,-Tt.x,-Tt.y),(0,st.$P)(It,(0,b.EQ)(Tt.r)),(0,st.a6)(It,Tt.x,Tt.y);let Dt=1/0,jt=1/0,Mt=-1/0,Q=-1/0;const vt=(Bt,Ht)=>{const zt=(0,st.Bb)(It,Bt,Ht);Dt=Math.min(Dt,zt.x),jt=Math.min(jt,zt.y),Mt=Math.max(Mt,zt.x),Q=Math.max(Q,zt.y)},Lt=Tt.x-Tt.w/2+Math.min(0,Pt[0]),Rt=Tt.y-Tt.h/2+Math.min(0,Pt[1]);return vt(Lt,Rt),vt(Lt,Rt+Pt[3]-Pt[1]),vt(Lt+Pt[2]-Pt[0],Rt),vt(Lt+Pt[2]-Pt[0],Rt+Pt[3]-Pt[1]),[Dt,jt,Mt,Q]}return pt}case"wLine":{var yt;const Tt=ht(ut);if(!(T!=null&&T.shadowIsVisible))return pt;const{border:{bdrWidth:Pt},line:{linePointFrom:It,linePointTo:Dt}}=dt.hotAttr,jt=T.offsetX,Mt=T.offsetY,Q=T.blurRadius,vt=(yt=T.spreadRadius)!=null?yt:0,Lt=(0,it.W8)(Tt.w,Tt.h,[[It.x,It.y],[Dt.x,Dt.y]]),Rt={x:Tt.x+jt,y:Tt.y+Mt};return(0,M.il)(pt,(0,W.Pb)({...Rt,r:Lt,w:Math.round(Math.sqrt(Tt.w*Tt.w+Tt.h*Tt.h))+Q*2+vt*2,h:Pt+Q*2+vt*2}))}case"wArrow":{var ct;const Tt=ht(ut);if(!(T!=null&&T.shadowIsVisible))return pt;const{arrow:{arrowPointFrom:Pt,arrowPointTo:It,arrowPointFromType:Dt,arrowPointToType:jt,arrowStroke:{bdrWidth:Mt}}}=dt.hotAttr,Q=Dt!==0?(0,j.Lv)(Dt,Mt):{w:Mt,h:Mt},vt=jt!==0?(0,j.Lv)(jt,Mt):{w:Mt,h:Mt},Lt=T.offsetX,Rt=T.offsetY,Bt=T.blurRadius,Ht=(ct=T.spreadRadius)!=null?ct:0,zt=(0,it.W8)(Tt.w,Tt.h,[[Pt.x,Pt.y],[It.x,It.y]]),Kt={x:Tt.x+Lt,y:Tt.y+Rt};return(0,M.il)(pt,(0,W.Pb)({...Kt,r:zt,w:Math.round(Math.sqrt(Tt.w*Tt.w+Tt.h*Tt.h))+Bt*2+Ht*2,h:Math.max(Q.w,Q.h,vt.w,vt.h)+Bt*2+Ht*2}))}case"wRichText":{let Tt=pt;const It=ht(ut).r,Dt=(0,b.EQ)(It),jt=Math.sin(Dt),Mt=Math.cos(Dt),Q=J==="local"?(0,P.HN)(ut,k):(0,P.VU)(ut,k);if(Q===null)return pt;if(Tt=(0,M.il)(Tt,(0,W.Pb)(Q)),!T.shadowIsVisible||T.type!=="text_shadow")return Tt;const vt=T.offsetX,Lt=T.offsetY,Rt=T.blurRadius,Bt={x:Q.x+vt*Mt-Lt*jt,y:Q.y+vt*jt+Lt*Mt,r:It,w:Q.w+Rt*2,h:Q.h+Rt*2};return(0,M.il)(pt,(0,W.Pb)(Bt))}case"wRect":case"wOval":case"wPolygon":case"wStar":case"wTriangle":case"wVector":case"wButton":case"wPlaceholder":{var gt;let Tt=pt;const Pt=ht(ut),It=Pt.r,Dt=(0,b.EQ)(It),jt=Math.sin(Dt),Mt=Math.cos(Dt),Q=J==="local"?(0,P.HN)(ut,k):(0,P.VU)(ut,k);if(Q===null)return pt;if(Tt=(0,M.il)(Tt,(0,W.Pb)(Q)),!(T!=null&&T.shadowIsVisible))return Tt;const vt=T.offsetX,Lt=T.offsetY,Rt=T.blurRadius,Bt=(gt=T.spreadRadius)!=null?gt:0,Ht={x:Pt.x+vt*Mt-Lt*jt,y:Pt.y+vt*jt+Lt*Mt,r:It,w:Pt.w+Rt*2+Bt*2,h:Pt.h+Rt*2+Bt*2};return(0,M.il)(pt,(0,W.Pb)(Ht))}default:{var bt;const Tt=ht(ut);if(!(T!=null&&T.shadowIsVisible))return pt;const Pt=T.offsetX,It=T.offsetY,Dt=T.blurRadius,jt=(bt=T.spreadRadius)!=null?bt:0,Mt=Tt.r,Q=(0,b.EQ)(Mt),vt=Math.sin(Q),Lt=Math.cos(Q),Bt={...{x:Tt.x+Pt*Lt-It*vt,y:Tt.y+Pt*vt+It*Lt},r:Mt,w:Tt.w+Dt*2+jt*2,h:Tt.h+Dt*2+jt*2};return(0,M.il)(pt,(0,W.Pb)(Bt))}}},H=O.Ay.div.withConfig({displayName:"utilswNodeToHTMLStr__WatermarkMask",componentId:"sc-1ob8kf9-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;z-index:",";background:repeat url(/mb-proto2/images/water_mark_new",".png);"],$,ENV.IS_WONDER_SHARE?"_en":""),B=k=>{let{scale:ut,children:E,itemScalerStyle:J}=k;const dt={position:"absolute",top:0,left:0,transform:"scale("+ut+")",transformOrigin:"top left",...J};return(0,at.jsx)("div",{style:dt,children:E})},X=k=>{var ut,E;let{item:J,children:dt,sdk:pt}=k;const T=pt.getHotItem(pt.locUpRBPageKey(J.key)),ht=T==null||(ut=T.hotAttr)==null?void 0:ut.device,yt=(T==null||(E=T.hotAttr)==null?void 0:E.deviceOrientation)==="landscape",ct=(0,Y.MR)(ht),gt=A.v2[ht];if(ct&&gt&&J.type==="rResCanvas"){const{shellStyle:bt,topOffset:Tt,leftOffset:Pt,imageUrl:It}=(0,Y.eC)(ct,yt),Dt=yt?gt.height:gt.width,jt=yt?gt.width:gt.height,Mt={...bt,backgroundImage:"url("+It+")",backgroundSize:"cover",zIndex:1},Q={position:"absolute",width:Dt+"px",height:jt+"px",top:Tt+"px",left:Pt+"px",overflow:"hidden",zIndex:-1},vt=(0,Y.uQ)(ht);return(0,at.jsxs)("div",{style:{position:"relative"},children:[(0,at.jsx)("div",{style:Mt}),(0,at.jsx)("div",{style:{...Q,...vt},children:dt})]})}else return(0,at.jsx)(Z.Fragment,{children:dt})},V=(k,ut,E)=>{const J=k.getHotItem(ut).hotAttr;let dt;const pt=T=>E==="local"?k.getCCSBound2308(T):k.getHotBound(T);if(J.bunch==="rbPage")dt=(0,M.F1)(),F({hotItem:k.getHotItem(ut),isExportSticky:!1}).sub.forEach(ht=>k.getHotItem(ht).hotAttr.type!=="rResBunch"&&(0,M.il)(dt,k.getHotKeyAABB(ht)));else switch(J.type){case"rResCanvas":{dt=k.getHotKeyAABB(ut);break}case"wTear":{const T=(0,W.Pb)(pt(ut)),ht=T[0],yt=T[1],ct=ht+280,gt=yt+J.stickyH;dt=[ht,yt,ct,gt];break}case"wLine":{const{border:{bdrWidth:T},line:{linePointFrom:ht,linePointTo:yt}}=J,ct=pt(ut);dt=(0,W.Pb)({...ct,r:(0,it.W8)(ct.w,ct.h,[[ht.x,ht.y],[yt.x,yt.y]]),w:Math.round(Math.sqrt(ct.w*ct.w+ct.h*ct.h)),h:T});break}case"wArrow":{const{arrow:{arrowPointFrom:T,arrowPointTo:ht,arrowPointFromType:yt,arrowPointToType:ct,arrowStroke:{bdrWidth:gt}}}=J,bt=pt(ut),Tt=yt!==0?(0,j.Lv)(yt,gt):{w:gt,h:gt},Pt=ct!==0?(0,j.Lv)(ct,gt):{w:gt,h:gt},It={...bt,r:(0,it.W8)(bt.w,bt.h,[[T.x,T.y],[ht.x,ht.y]]),w:Math.round(Math.sqrt(bt.w*bt.w+bt.h*bt.h)),h:Math.max(Tt.w,Tt.h,Pt.w,Pt.h)};dt=(0,W.Pb)(It);break}case"wElbow":{dt=(0,W.Pb)(pt(ut)),(0,M.il)(dt,(0,R.af)(dt,J));break}default:dt=(0,W.Pb)(pt(ut))}return dt},L=k=>{let{item:ut,scale:E,isWithDeviceFrame:J,hasWatermark:dt,isExportSticky:pt,isIncludeCanvasName:T,sdk:ht}=k;const yt=K(ht,ut.key,!!pt,"local"),ct=yt[2]-yt[0],gt=yt[3]-yt[1],bt=T?G(ut,yt):0,Tt={position:"relative",top:-yt[1]+"px",left:-yt[0]+"px",width:ct+"px",height:gt+bt+"px"},Pt=J&&ut.hotAttr.type===m.x.Canvas&&!ut.hotAttr.asOverlay?X:jt=>{let{children:Mt}=jt;return(0,at.jsx)(at.Fragment,{children:Mt})},Dt={backgroundColor:ut.type===m.x.RbPage?(0,rt.t0)((0,U.t6)(U.Sx.LIGHT,ut.widget)):"unset"};return(0,at.jsxs)(B,{scale:E,itemScalerStyle:Dt,children:[T&&ot(yt,ut,E),dt&&(0,at.jsx)(H,{}),(0,at.jsx)(Pt,{item:ut,sdk:ht,children:(0,at.jsx)("div",{style:Tt,children:ut.render()})})]})},ot=(k,ut,E)=>{const J=ut.children.filter(ht=>{let{type:yt,hotAttr:ct}=ht;return yt===m.x.Canvas&&!ct.asOverlay}),dt=G(ut,k),pt=10+E*2,T={position:"relative",zIndex:$-1,height:dt+"px",overflow:"visible"};return J.length?(0,at.jsx)("div",{style:T,children:J.map(ht=>{if(!ht.widget.isVisible)return null;const yt=ht.widgetStore.sdkStore.getHotAABB(ht.key),ct={position:"absolute",width:yt[2]-yt[0]+"px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",backgroundColor:"rgba(255, 255, 255, 0)",transform:"translate("+(yt[0]-k[0])+"px,"+(yt[1]-k[1]-20+dt)+"px)",fontSize:pt+"px",lineHeight:"20px",height:"20px"};return(0,at.jsx)("div",{style:ct,children:(0,at.jsx)("span",{children:ht.widget.display_name})},ht.widget.cid)})}):null},G=(k,ut)=>{const J=k.children.filter(pt=>{let{type:T,hotAttr:ht}=pt;return T===m.x.Canvas&&!ht.asOverlay}).map(pt=>pt.widgetStore.sdkStore.getHotAABB(pt.key));let dt=0;return J.forEach(pt=>{const T=pt[1]-ut[1];T<20&&(dt=Math.max(dt,20-T))}),dt},z=k=>{let{item:ut,scale:E,isWithDeviceFrame:J,hasWatermark:dt,isExportSticky:pt,isIncludeCanvasName:T,sdk:ht}=k;return I.renderToString((0,at.jsx)(L,{item:ut,isWithDeviceFrame:J,scale:E,hasWatermark:dt,isExportSticky:pt,isIncludeCanvasName:T,sdk:ht}))},F=k=>{let{hotItem:ut,isExportSticky:E=!1}=k;return{...ut,sub:E?ut==null?void 0:ut.sub.filter(J=>{var dt,pt;return((dt=sdkStore.getHotItem(J))==null||(dt=dt.hotAttr)==null?void 0:dt.type)!==m.x.WTear&&((pt=sdkStore.getHotItem(J))==null||(pt=pt.hotAttr)==null?void 0:pt.type)!==m.x.WLR}):ut==null?void 0:ut.sub.filter(J=>{var dt,pt,T;return((dt=sdkStore.getHotItem(J))==null||(dt=dt.hotAttr)==null?void 0:dt.type)!==m.x.WSticky&&((pt=sdkStore.getHotItem(J))==null||(pt=pt.hotAttr)==null?void 0:pt.type)!==m.x.WTear&&((T=sdkStore.getHotItem(J))==null||(T=T.hotAttr)==null?void 0:T.type)!==m.x.WLR})}}},38047:($t,wt,w)=>{"use strict";w.d(wt,{RT:()=>W,Z7:()=>O,e2:()=>M,nF:()=>Z,tC:()=>I,xM:()=>b});const Z=st=>st.ui.artboard.isDragLink,I=st=>st.ui.artboard.isDragAnnotationBindingPoint,O=st=>st.ui.artboard.showShortCutArtBoard,b=st=>st.ui.artboard.isShowNps,M=st=>st.ui.artboard.basketPathCacheTag,W=st=>st.ui.artboard.isAdjustOverlayRelPos},53436:($t,wt,w)=>{"use strict";w.d(wt,{Gh:()=>m,W:()=>U,gP:()=>W,jQ:()=>b,sI:()=>M,u7:()=>rt});var Z=w(63686),I=w(47143),O=w(63555);const b=A=>A.ui.fixedLayout.findReplacePanel.show,M=A=>A.ui.fixedLayout.findReplacePanel.findWidgetList,W=A=>A.ui.fixedLayout.findReplacePanel.findSelectWidgetCid,st=A=>A.ui.fixedLayout.findReplacePanel.findWidgetPanelList,rt=A=>A.ui.fixedLayout.findReplacePanel.isFocusPanel,m=A=>A.ui.fixedLayout.findReplacePanel,U=(0,Z.Mz)([M,st,I.eo],(A,j,it)=>{const Y=[],P=[];return A.concat(j).forEach(at=>{let{pageKey:$,widget:{key:K,hotAttr:{type:H}}}=at;it===$&&(H===O.x.WMindNode?Y.push(K):P.push(K))}),{findReplaceWMindNodeKeys:Array.from(new Set(Y)),findReplaceKeys:Array.from(new Set(P))}})},8508:($t,wt,w)=>{"use strict";w.d(wt,{$_:()=>st,B0:()=>m,GP:()=>rt,V5:()=>it,gQ:()=>A,vy:()=>M,yk:()=>W});var Z=w(63686),I=w(30797),O=w(20029);const b=Y=>Y.ui.fixedLayout.linklist.linkMap,M=Y=>Y.ui.fixedLayout.linklist.activeLinkCid,W=Y=>Y.ui.fixedLayout.linklist.selectLinkItem,st=Y=>Y.ui.fixedLayout.linklist.linkNodeList,rt=Y=>Y.ui.fixedLayout.linklist.allLinkNodeList,m=Y=>Y.ui.fixedLayout.linklist.selectOptionLinkItem,U=Y=>Y.ui.fixedLayout.linklist.clickedLink,A=Y=>Y.ui.fixedLayout.linklist.singleSelectLink,j=(0,Z.Mz)([st,M,I.x$,O.jI,O.bt],(Y,P,R,at,$)=>Y.filter(H=>P.includes(H==null?void 0:H.key)).reverse()),it=(0,Z.Mz)([I.x$,M],(Y,P)=>{if(Y.length===1){var R;const $=Y[0];if(Array.isArray(P)&&P.length>0){var at;const H=((at=$.widgetStore.sdkStore.getHotItem($.keyToAccessIntAct))==null?void 0:at.hotAttr.interactions)||[];return $.widgetStore.sdkStore.getInteractionsOf($.keyToAccessIntAct).reduce((B,X)=>(P.includes(X.key)&&B.push({...X,data:H.find(V=>V.key===X.key)||X,triggerItemKey:$.keyToAccessIntAct}),B),[])}const K=((R=$.widgetStore.sdkStore.getHotItem($.keyToAccessIntAct))==null?void 0:R.hotAttr.interactions)||[];return $.widgetStore.sdkStore.getInteractionsOf($.keyToAccessIntAct).reduce((H,B)=>(B.subKey||H.push({...B,data:K.find(X=>X.key===B.key)||B,triggerItemKey:$.keyToAccessIntAct}),H),[])}return[]})},75391:($t,wt,w)=>{"use strict";w.d(wt,{Hy:()=>m,Y2:()=>st});var Z=w(44864),I=w(63555),O=w(25399),b=w(19216),M=w(71604);function W(U){return U&&typeof U=="number"||typeof U=="string"&&U.endsWith("s")?parseFloat(U)*1e3:U}const st=U=>U?sdkStore.getSubHotItemList(U).filter(A=>{let{key:j,hotAttr:it}=A;return it.type===I.x.Canvas&&!it.asOverlay}).sort((A,j)=>A.hotAttr.order-j.hotAttr.order):[],rt=(U,A)=>{try{if(U.isTargetWidgetValid){if(U.data.targetWidgetKey===CURRENT_WIDGET)return I18N.SettingPanel.current_widget;if(U.data.targetWidgetKey===CURRENT_BASKET_REF){const j=sdkStore.locTopRBActiveKey(U.triggerItemKey)===KEY_RB_REF_MUBAN?findNearestBMubanKeyOf(sdkStore,U.triggerItemKey)||A:findNearestBMubanKeyOf(sdkStore,U.triggerItemKey);if(j)return getHotItemDisplayName(j)}return getHotItemDisplayName(U.data.targetWidgetKey)}return I18N.SettingPanel.please_select}catch(j){return I18N.SettingPanel.please_select}},m=(U,A)=>{const j=sdkStore.getHotItem(U);if(!j||j.hotAttr.bunch!=="rbPage")return null;const it=sdkStore.getHotItem(A);if(!it)return null;const Y=j.hotAttr.device!=="none"?j.hotAttr.deviceOrientation==="portrait"?j.hotAttr.deviceW:j.hotAttr.deviceH:it.hotAttr.w,P=j.hotAttr.device!=="none"?j.hotAttr.deviceOrientation==="portrait"?j.hotAttr.deviceH:j.hotAttr.deviceW:it.hotAttr.h;return{top:0,left:0,right:Y,bottom:P}}},5115:($t,wt,w)=>{"use strict";w.d(wt,{BR:()=>P,HC:()=>b,Jg:()=>j,TW:()=>O,UI:()=>I,Yg:()=>st,_S:()=>rt,cS:()=>M,gX:()=>R,ju:()=>Y,vr:()=>W,w_:()=>m,zM:()=>it});var Z=w(63686);const I=at=>at.ui.rightLayout.rightPanel.show,O=at=>at.ui.rightLayout.rightPanel.resizedWidth,b=at=>at.ui.rightLayout.rightPanel.resizeMaxWidth,M=at=>at.ui.rightLayout.versions,W=at=>at.ui.rightLayout.versions.isVersionManagementPaneShow,st=at=>at.ui.rightLayout.settingPanel.selectCarouselImageIndex,rt=at=>{var $;return($=at.ui.rightLayout.settingPanel.option)==null?void 0:$.path},m=at=>{var $;return($=at.ui.rightLayout.settingPanel.option)==null?void 0:$.node},U=at=>at.ui.rightLayout.settingPanel.autoTabIndex,A=at=>at.ui.rightLayout.settingPanel.activeIndex,j=(0,Z.Mz)([U,A],(at,$)=>(typeof at=="number"&&($=at),$)),it=at=>at.ui.rightLayout.STPanel.expandKeySet,Y=at=>at.ui.rightLayout.STPanel.alreadyExpandKeySet,P=at=>at.ui.rightLayout.newbieVideoPanel.show,R=at=>at.ui.rightLayout.settingPanel.isShowLinkPanel},47813:($t,wt,w)=>{"use strict";w.d(wt,{y:()=>st});var Z=w(63686),I=w(63555),O=w(47143),b=w(54606),M=w(20029),W=w(30797);const st=(0,Z.Mz)([W.x$,O.wq,M.pq,M.jI,M.bt,b.r,M.lY],(rt,m,U,A,j,it,Y)=>{let{isEditingCombo:P}=it;const R=rt.length>0,at=R&&rt.every(z=>z.type===I.x.Canvas),$=R&&!at,K=R&&rt.every(z=>z.type===I.x.WSticky||z.type===I.x.WTear);let H,B;const X=(m==null?void 0:m.type)===I.x.Canvas,V=U,L=at&&!X&&!V,ot=$&&!X&&!K&&!V,G=P&&!R;return A||j?(H=!1,B=!R||K):(H=!at&&!$&&!L&&!X&&!G&&!Y&&!V||K,B=!1),{isGlobalSetting:H,isQuickCreateCanvasSetting:X,isPencilSetting:V,isWidgetSetting:ot,isCanvasSetting:L,isBasketSetting:B,isEditingComboSetting:G}})},37401:($t,wt,w)=>{"use strict";w.d(wt,{Ay:()=>j,EL:()=>m,nF:()=>W,pt:()=>st,qs:()=>U});var Z=w(51044),I=w(86634),O=w.n(I),b=w(57464);const M={none:{w:8,h:8,d:"M0 0 L0 0"},"start-solid-triangle":{w:8,h:8,d:"M1 4 L7 7 L7 1 L1 4"},"start-hollow-triangle":{w:8,h:8,d:"M1.5 4 L6.5 6.5 L6.5 1.5 L1.5 4 L6.5 6.5"},"start-arrow":{w:8,h:8,d:"M1 4 L7 8 L4 4 L7 0 L1 4"},"start-solid-circle":{w:8,h:8},"start-hollow-circle":{w:8,h:8},"start-solid-rect":{w:8,h:8,d:"M1 1 L7 1 L7 7 L1 7 L1 1"},"start-hollow-rect":{w:8,h:8,d:"M1.6 1.5 L6.5 1.5 L6.5 6.5 L1.5 6.5 L1.5 1.5 L6.5 1.5"},"start-solid-diamond":{w:8,h:8,d:"M1 4 L4 7 L7 4 L4 1 L1 4 L4 7"},"start-hollow-diamond":{w:8,h:8,d:"M1.5 4 L4 6.5 L6.5 4 L4 1.5 L1.5 4 L4 6.5"}},W={none:0,"start-solid-triangle":1,"start-hollow-triangle":1,"start-arrow":3,"start-solid-circle":4,"start-hollow-circle":4,"start-solid-rect":6,"start-hollow-rect":6,"start-solid-diamond":8,"start-hollow-diamond":8},st={0:"none",1:"start-solid-triangle",2:"start-solid-triangle",3:"start-arrow",4:"start-solid-circle",5:"start-solid-circle",6:"start-solid-rect",7:"start-solid-rect",8:"start-solid-diamond",9:"start-solid-diamond"},rt={none:{w:8,h:8,d:"M0,0 L0,0"},"end-solid-triangle":{w:8,h:8,d:"M1 1 L1 7 L7 4 L1 1"},"end-hollow-triangle":{w:8,h:8,d:"M1.5 1.5 L1.5 6.5 L6.5 4 L1.5 1.5 L1.5 6.5"},"end-arrow":{w:8,h:8,d:"M1 0 L7 4 L1 8 L4 4 L1 0"},"end-solid-circle":{w:8,h:8},"end-hollow-circle":{w:8,h:8},"end-solid-rect":{w:8,h:8,d:"M1 1 L7 1 L7 7 L1 7 L1 1"},"end-hollow-rect":{w:8,h:8,d:"M1.6 1.5 L6.5 1.5 L6.5 6.5 L1.5 6.5 L1.5 1.5 L6.5 1.5"},"end-solid-diamond":{w:8,h:8,d:"M1 4 L4 7 L7 4 L4 1 L1 4 L4 7"},"end-hollow-diamond":{w:8,h:8,d:"M1.5 4 L4 6.5 L6.5 4 L4 1.5 L1.5 4 L4 6.5"}},m={none:0,"end-solid-triangle":1,"end-hollow-triangle":1,"end-arrow":3,"end-solid-circle":4,"end-hollow-circle":4,"end-solid-rect":6,"end-hollow-rect":6,"end-solid-diamond":8,"end-hollow-diamond":8},U={0:"none",1:"end-solid-triangle",2:"end-solid-triangle",3:"end-arrow",4:"end-solid-circle",5:"end-solid-circle",6:"end-solid-rect",7:"end-solid-rect",8:"end-solid-diamond",9:"end-solid-diamond"},A=it=>{const{elbowKey:Y,markerStart:P,markerEnd:R,isShowText:at,textPosition:$,w:K,h:H,strokeWidth:B,mode:X}=it,V=M[P],L=rt[R],ot=B*8,G=P.includes("hollow"),z=R.includes("hollow");return(0,b.jsx)("svg",{className:"marker-wrap",children:(0,b.jsxs)("defs",{className:"",children:[at&&$&&(0,b.jsxs)("clipPath",{id:Y+"-clip-path",children:[$.t+ot>0&&(0,b.jsx)("rect",{x:-ot,y:-ot,width:K+ot*2,height:$.t+ot}),H-$.t-$.h+ot>0&&(0,b.jsx)("rect",{x:-ot,y:$.t+$.h,width:K+ot*2,height:H-$.t-$.h+ot}),$.l+ot>0&&(0,b.jsx)("rect",{x:-ot,y:$.t,width:$.l+ot,height:$.h}),K-$.l-$.w+ot>0&&(0,b.jsx)("rect",{x:$.l+$.w,y:$.t,width:K-$.l-$.w+ot,height:$.h})]}),V&&(0,b.jsxs)("marker",{className:O()("marker-wrap-ghost1",{hollow:G}),id:P+"-"+Y+"-start-"+X,markerUnits:"strokeWidth",markerWidth:V.w,markerHeight:V.h,viewBox:"0 0 "+V.w+" "+V.h,refX:V.w/2-(L.w/2-2),refY:V.h/2,orient:"auto",children:[P.includes("circle")&&(0,b.jsx)("circle",{cx:V.w/2,cy:V.h/2,r:V.w/2-(G?1.5:1)}),!P.includes("circle")&&(0,b.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:V.d})]}),L&&(0,b.jsxs)("marker",{className:O()("marker-wrap-ghost2",{hollow:z}),id:R+"-"+Y+"-end-"+X,markerUnits:"strokeWidth",markerWidth:L.w,markerHeight:L.h,viewBox:"0 0 "+L.w+" "+L.h,refX:L.w/2+(L.w/2-2),refY:L.h/2,orient:"auto",children:[R.includes("circle")&&(0,b.jsx)("circle",{cx:L.w/2,cy:L.h/2,r:L.w/2-(z?1.5:1)}),!R.includes("circle")&&(0,b.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:L.d})]})]})})},j=(0,Z.memo)(A)},1163:($t,wt,w)=>{"use strict";w.d(wt,{Mg:()=>I,Pv:()=>O,Q7:()=>b,bl:()=>Z});let Z=function(M){return M.slicing="slicing",M.cutting="cutting",M.flipH="flipH",M.flipV="flipV",M}({}),I=function(M){return M.square="square",M.circular="circular",M}({}),O=function(M){return M.cross="cross",M.horizontal="horizontal",M.vertical="vertical",M}({}),b=function(M){return M.cutFrame="cutFrame",M.img="img",M}({})},38537:($t,wt,w)=>{"use strict";w.d(wt,{cg:()=>b,mm:()=>M,qn:()=>st});var Z=w(4098),I=w(63555),O=w(45309);const b=(rt,m)=>{const U=rt.children.filter(j=>{if(j.widget.fixPosTo!=="none"||!rt.widget.isVisible)return!1;const it=I.Q.USE_CLIP_TEXT.includes(j.widget.type)?(0,O.HN)(j.key,j.widgetStore.sdkStore):j.widget.type==="wWrap"?(0,O.PH)(j.key,j.widgetStore.sdkStore):j.widgetStore.sdkStore.getLocalBound(j.key);return(0,Z.Pb)(it)[1]<m}),A=rt.dup();return A.children=U,A},M=(rt,m,U)=>{const A=rt.children.filter(it=>{if(it.widget.fixPosTo!=="none"||!rt.widget.isVisible)return!1;const Y=I.Q.USE_CLIP_TEXT.includes(it.widget.type)?(0,O.HN)(it.key,it.widgetStore.sdkStore):it.widget.type==="wWrap"?(0,O.PH)(it.key,it.widgetStore.sdkStore):it.widgetStore.sdkStore.getLocalBound(it.key),P=(0,Z.Pb)(Y);return m<P[3]+U}),j=rt.dup();return j.children=A,j},W=(rt,m)=>{if(!rt||!m||sdkStore.isTrashed(m))return{};const U=sdkStore.getHotItem(m),{hotAttr:{stickyHeaderHeight:A,stickyFooterHeight:j,h:it}}=U,Y=(0,Z.Pb)(rt),P=A>0&&Y[1]<A,R=j>0&&it<Y[3]+j;return{isFixedOnHeader:P,isFixedOnFooter:R}},st=(rt,m)=>!rt||!m||sdkStore.isTrashed(rt)||sdkStore.isTrashed(m)?{}:W(sdkStore.getRelocateLocalBound(rt,m),m)},82081:($t,wt,w)=>{"use strict";w.d(wt,{L:()=>Z});let Z=function(I){return I[I.canvas=0]="canvas",I[I.nonCanvas=1]="nonCanvas",I[I.code=2]="code",I}({})},56207:($t,wt,w)=>{"use strict";w.d(wt,{$y:()=>Z,CN:()=>b,YK:()=>O});const Z="preview",I="inspect",O="comment",b=111,M=1e3},91560:($t,wt,w)=>{"use strict";w.d(wt,{A3:()=>dn,B3:()=>Tt,Br:()=>vt,Cb:()=>ee,De:()=>It,E1:()=>K,ER:()=>R,H5:()=>Kt,H9:()=>P,HA:()=>Ae,HW:()=>m,He:()=>fe,J8:()=>k,KR:()=>ht,Kv:()=>de,M2:()=>G,Mh:()=>Mt,Mo:()=>ct,Nz:()=>fn,O4:()=>X,PL:()=>z,PN:()=>dt,Pf:()=>Ht,Ph:()=>ce,Qv:()=>Ie,Re:()=>Rt,St:()=>U,Sy:()=>E,U4:()=>zt,UB:()=>ut,UR:()=>V,Ur:()=>T,X_:()=>Qe,ZR:()=>j,Zr:()=>oe,_v:()=>B,a9:()=>Fe,bF:()=>it,bm:()=>cn,dK:()=>$,hM:()=>gt,hm:()=>Y,jm:()=>A,k6:()=>bt,kM:()=>L,ks:()=>Pt,lB:()=>jt,lQ:()=>Lt,lR:()=>ge,m5:()=>he,mf:()=>_e,oJ:()=>te,p$:()=>at,pW:()=>Re,sU:()=>J,t$:()=>Bt,tp:()=>Dt,ts:()=>Q,ub:()=>yt,wA:()=>pt,wS:()=>gn,x:()=>ot,y3:()=>Tn,zo:()=>H});var Z=w(63686),I=w(56207),O=w(44622),b=w(35078),M=w(63555),W=w(40778),st=w(78013),rt=w(82081);const m=ne=>ne.model.user,U=ne=>ne.container.common.scale,A=ne=>ne.container.common.screenCommentThreadCountMap,j=ne=>ne.container.previewSetting,it=ne=>ne.container.common.previewOptions,Y=ne=>ne.container.common.designOptions,P=ne=>ne.container.common.guideOptions,R=ne=>ne.container.common.offset,at=ne=>ne.container.common.keyFlags.isSpaceDown,$=ne=>ne.container.common.keyFlags.isShiftDown,K=ne=>ne.container.common.leftPaneWidth,H=ne=>ne.container.common.rightPaneWidth,B=ne=>ne.container.common.shellContainer,X=ne=>ne.container.previewSetting.theme,V=ne=>ne.container.common.panelHeight,L=ne=>ne.container.common.isHiddenToolBar,ot=ne=>ne.container.common.isWidgetBeingExported,G=ne=>ne.container.common.collapsedRBPageKeySet,z=ne=>ne.container.current.rootProject,F=ne=>ne.container.current.projectMeta,k=ne=>ne.container.current.screenGlue,ut=ne=>ne.container.current.projectShare,E=ne=>ne.container.current.previewCommonGuidesHasShown,J=ne=>ne.container.current.previewCommonGuidesToBeShown,dt=ne=>ne.container.current.STRenderArea,pt=ne=>ne.container.current.org,T=ne=>ne.container.current.screenMeta,ht=ne=>ne.container.current.isPanelPreviewMode,yt=ne=>ne.container.current.isCommunityComboPreview,ct=ne=>ne.container.current.panelPreviewBasketKey,gt=ne=>ne.container.current.isPreviewCombo,bt=ne=>ne.container.current.isQuickPreview,Tt=ne=>ne.container.current.quickPreviewSize,Pt=ne=>ne.container.current.isPreviewAIComponent,It=ne=>ne.container.current.folderTreeData,Dt=ne=>ne.container.current.previewViewMode,jt=ne=>ne.container.previewSetting.simulatorType,Mt=ne=>ne.container.previewSetting.isShowShell,Q=ne=>ne.container.previewSetting.isDummyApk,vt=ne=>ne.container.previewSetting.toolbarActiveItem,Lt=ne=>ne.container.previewSetting.isStickyShow,Rt=ne=>ne.container.previewSetting.isHighlight,Bt=ne=>ne.container.previewSetting.isStatePanelShow,Ht=ne=>ne.container.previewSetting.isMinimized,zt=ne=>ne.container.previewSetting.isShowRightPane,Kt=ne=>ne.container.sharingManager.isShowSharingManager,ce=ne=>ne.container.previewSetting.isFullScreenMode,oe=ne=>ne.container.previewSetting.isFromAbar,he=ne=>ne.container.previewSetting.theme,_e=ne=>ne.container.runner,Fe=ne=>ne.container.runner.activeCanvasKey,Re=ne=>ne.container.runner.activeCid,le=ne=>ne.container.runner.activePageKey,ee=ne=>ne.container.runner.activeWidgetKey,ge=(0,Z.Mz)([le,It],ne=>(0,st.BZ)(ne).filter(bn=>!bn.hotAttr.asOverlay).map(bn=>bn.key)),de=(0,Z.Mz)([vt],ne=>ne===I.YK),fe=ne=>ne.container.current.screenDataMap,Ae=ne=>ne.container.current.screenTreeData,te=(0,Z.Mz)([ut],ne=>{if((0,W.St)()){const{screen_visible_list:en,screen_visible_switch:Bn}=ne;if(Bn){const{screenTreeData:Ln}=(0,b.wb)(en);return Ln}}const{screenTreeData:bn}=(0,b.tb)();return bn}),Ie=(0,Z.Mz)([te],ne=>(0,O.YU)(ne).filter(bn=>bn.bunch===M.x.RbPage)),cn=(0,Z.Mz)([Ie],ne=>ne.filter(bn=>!(0,O.Mo)(bn))),ln=ne=>ne.container.common.viewport,Qe=ne=>ne.container.common.scale,dn=ne=>ne.container.common.offset,fn=ne=>ne.container.common.currentScreenOriginOffset,Tn=ne=>ne.container.common.hasChangedScaleManually,un=(0,Z.Mz)([T,ln,Qe,dn,k],(ne,bn,en,Bn,Ln)=>{if(!bn)return{canvasTop:0,canvasLeft:0};const[vn,Fn]=[ne.width,ne.orientation==="portrait"?Ln.height:Ln.width],zn=Math.round(Bn.x),On=Math.round(Bn.y);return{canvasTop:bn.top+Math.floor((bn.height-Fn*en/100)/2)+On,canvasLeft:Math.floor((window.innerWidth-vn*en/100)/2)+zn}}),gn=(0,Z.Mz)([yt,gt,Pt],(ne,bn,en)=>en?rt.L.code:bn||ne?rt.L.nonCanvas:rt.L.canvas)},97381:($t,wt,w)=>{"use strict";w.r(wt);var Z=w(66545);window.MB=window.MB||{},(0,Z.sH)(!0),MB.f={inSharing:!1},MB.isEditing=function(I){var O;if(!I)return!1;const b=(I.target||I.srcElement).tagName;return b==="INPUT"||b==="SELECT"||b==="TEXTAREA"||((O=I.target)==null?void 0:O.getAttribute("contenteditable"))==="true"||MB.f.editing}},12075:($t,wt,w)=>{"use strict";w.d(wt,{k:()=>Z});function Z(I,O){const b=[I,O];let M,W,st,rt,m,U,A,j;for(rt=0;rt<b.length;rt++){const it=b[rt];for(m=0;m<it.length;m++){const Y=(m+1)%it.length,P=it[m],R=it[Y],at={x:R.y-P.y,y:P.x-R.x};for(M=W=void 0,U=0;U<I.length;U++)st=at.x*I[U].x+at.y*I[U].y,(M===void 0||st<M)&&(M=st),(W===void 0||st>W)&&(W=st);for(A=j=void 0,U=0;U<O.length;U++)st=at.x*O[U].x+at.y*O[U].y,(A===void 0||st<A)&&(A=st),(j===void 0||st>j)&&(j=st);if(W<A||j<M)return!1}}return!0}},15335:($t,wt,w)=>{"use strict";w.d(wt,{T:()=>I,s:()=>O});var Z=w(21676);const I=(0,Z.AH)(["&.svg-icon-path-icon.fill{[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}[fill='none']{fill:none;}[fill='none'][stroke]{stroke:currentColor;}[stroke='none']{stroke:none;}[stroke='none'][fill]{fill:currentColor;}&:not([fill]),&:not([stroke]){fill:currentColor;}}"]),O=(0,Z.AH)(['[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}[fill="none"]{fill:none;}[fill="none"][stroke]{stroke:currentColor;}[stroke="none"]{stroke:none;}[stroke="none"][fill]{fill:currentColor;}&:not([fill]),&:not([stroke]){fill:currentColor;}'])},67122:($t,wt,w)=>{"use strict";w.d(wt,{M2:()=>st,RY:()=>it,XI:()=>W,kP:()=>j,lK:()=>rt,rD:()=>A});var Z=w(59305),I=w(96731);const O=/^image\/(png|jpg|jpeg|gif|svg|svg\+xml)$/i,b=2,M=5,W=(Y,P,R,at,$)=>{var K;if(!O.test(Y.type))throw Object.assign(new Error(I18N.dUtils.damaged_file),{desc:I18N.dUtils.support_file_type,asset:Y});const H=(0,Z.xR)(R,at),{maxPicBytes:B}=H,X=(0,Z.Wq)((K=MB)==null?void 0:K.currentOrg);if(Y.size>B)throw P==="library"?(ModalHelper&&ModalHelper.libraryNotice&&ModalHelper.libraryNotice("\u4E0A\u4F20\u56FE\u7247\u5BB9\u91CF\u8FC7\u5927","error"),new Error("dashboard upload failed")):at?(X&&(X===I18N.Common.business_plan||X===I18N.Common.business_trial_plan)?MB.action("modal:update:state",{orgFullBeyondNotice:{isOpen:!0,beyondType:"picSize"}}):MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:I.hC.OrgMaxPicSize}}),new Error("NoErrorTips")):(MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:I.hC.SoloMaxPicSize}}),new Error("NoErrorTips"))},st=async Y=>{const P=await new Promise((at,$)=>{const K=new FileReader;K.onerror=()=>$(new Error(I18N.dUtils.unsupported)),K.onload=H=>at(H.target.result),K.readAsDataURL(Y)}),R=await new Promise((at,$)=>{const K=new Image;K.onerror=()=>$(new Error(I18N.dUtils.unsupported)),K.onload=()=>at(K),K.src=P});return{data:P,width:R.width,height:R.height}},rt=Y=>{Y.payload&&Y.payload.status===401?MB.global.popupHelper.alertAsync({title:I18N.dUtils.err_info_modal.INVALID_COOKIE.title,desc:I18N.dUtils.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dUtils.confirm}).then(()=>{location.href=location.origin+"/signin"}):MB.global.popupHelper.alertAsync({title:Y.message,desc:Y.desc,isHTML:Y.isHTML,confirmText:Y.confirmText}).then(()=>{Y.type==="free"&&MB.global.popupHelper.chargeAsync({mode:"solo",productId:8988,hours:"yearly",payEntrance:"\u56FE\u7247\u9650\u5236-\u5347\u7EA7\u4E2A\u4EBA"})})},m=(Y,P)=>Y.endsWith(P)?Y:Y+("-"+P),U=(Y,P)=>Y.startsWith("#")?"#"+m(Y.slice(1),P):null,A=(Y,P,R)=>{if(Y.attributes){const at=Y.getAttribute("id");at&&at.length>0&&(Y.setAttribute("id",m(at,P)),R&&R.id&&R.id.push(at));const $=Y.getAttribute("class");if($&&$.length>0){const H=$.split(/\s+/).map(B=>m(B,P)).join(" ");Y.setAttribute("class",H),R&&R.class&&R.class.push($)}for(const H of["href","xlink:href"]){const B=Y.getAttribute(H);if(B&&B.length>0){const X=U(B,P);X&&Y.setAttribute(H,X)}}const K=["clip-path","color-profile","fill","filter","marker-start","marker-mid","marker-end","mask","stroke","style"];for(const H of K){const B=Y.getAttribute(H);if(B&&B.length>0){const X=B.replace(/url\((.*?)\)/gi,(V,L)=>{const ot=U(L,P);return ot==null?V:"url("+ot+")"});X&&Y.setAttribute(H,X)}}for(const H of["begin","end"]){const B=Y.getAttribute(H);if(B&&B.length>0){const X=B.split(/\s*;\s+/).map(V=>{if(V.endsWith(".end")||V.endsWith(".start")){const[L,ot]=V.split(".");return m(L,P)+"."+ot}return V});Y.setAttribute(H,X.join("; "))}}if(Y.childNodes)for(const H of Y.childNodes)A(H,P,R)}},j=(Y,P,R)=>{const at=Y?Y.querySelectorAll("style"):[];R.id=[...new Set(R.id)],R.class=[...new Set(R.class)];for(const $ of at)$&&!$.textContent.includes(P)&&(R.id.forEach(K=>{$.textContent=$.textContent.replace(new RegExp("\\b"+K+"\\b","g"),K+"-"+P)}),R.class.forEach(K=>{$.textContent=$.textContent.replace(new RegExp("\\b"+K+"\\b","g"),K+"-"+P)}))},it=Y=>{const{path:P}=Y==null?void 0:Y.iconData,R=new DOMParser,at='<svg xmlns="http://www.w3.org/2000/svg">'+P+"</svg>",K=R.parseFromString(at,"text/html").querySelector("svg"),H={id:[],class:[]},B=(Y==null?void 0:Y.key)||"",X=B.includes("/")?B.split("/").join(""):B;return A(K,X,H),j(K,X,H),K}},29107:($t,wt,w)=>{"use strict";w.d(wt,{$Q:()=>P,Iz:()=>X,N:()=>k,Rk:()=>L,UU:()=>F,Uu:()=>Y,X9:()=>ot,_c:()=>B,x7:()=>z,z5:()=>G});var Z=w(59305);if(w.j!=183)var I=w(53955);var O=w(47143),b=w(44864),M=w(63555),W=w(96828),st=w(77885),rt=w(78463),m=w(35332),U=w(96731),A=w(66451),j=w(53867),it=w(54606);const Y=()=>rootSdk.sdkStore.findAllTypeUnder(b.$k,"rResBunch").filter(ut=>ut.hotAttr.bunch==="rbPage"&&!ut.hotAttr.asFolder).length,P=()=>rootSdk.sdkStore.findAllTypeUnder(b.$k,"rResCanvas").filter(ut=>!ut.hotAttr.asOverlay).length,R=()=>{const ut=(0,I.dP)(),E=(0,O.HW)(ut),J=(0,O.wA)(ut);return(0,Z.xR)(E,J)},at=()=>{var ut,E,J;let dt="";const pt=(0,I.dP)();let T=!1;if(pt){var ht;T=(ht=(0,it.r)(pt))==null?void 0:ht.isEditingCombo}if((ut=MB)!=null&&ut.user)dt=MB.user.cid;else if(pt!=null&&(E=pt.current)!=null&&E.currentUser){var yt;dt=(yt=pt.current)==null?void 0:yt.currentUser.cid}const ct=!!dt,{isExperience:gt,isLoggedExperience:bt}=(J=MB.global)==null?void 0:J.designOptions;return!!(!ct||ENV.IS_ON_PREMISES||gt&&!bt||T)},$=ut=>{if(at())return!1;const E=R().maxScreenCount;return Y()+ut>E},K=ut=>{if(at())return!1;const E=R().maxCanvasCount;return P()+ut>E},H=ut=>{if(at())return!1;const E=R().maxWidgetCount;return k(E)?!1:F({})+ut>E},B=function(ut,E){let{type:J,count:dt=1}=ut;if(E===void 0&&(E=!0),dt===0||ENV.IS_ON_PREMISES)return!0;const pt=J!==M.x.Canvas&&J!==M.x.RbPage,T=()=>{if(!E)return!1;const ht=(0,I.dP)(),yt=(0,O.wA)(ht);let ct;return yt?ct=J===M.x.RbPage?U.hC.OrgMaxProto2PageCount:J===M.x.Canvas?U.hC.OrgMaxProto2CanvasCount:U.hC.OrgMaxProto2WidgetCount:ct=J===M.x.RbPage?U.hC.SoloMaxProto2PageCount:J===M.x.Canvas?U.hC.SoloMaxProto2CanvasCount:U.hC.SoloMaxProto2WidgetCount,MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:ct,widgetCreateLimit:pt}}),!1};return J==="rbPage"&&$(dt)||J==="rResCanvas"&&K(dt)||pt&&H(dt)?T():!0},X=()=>!(!B({type:M.x.RbPage,count:1})||!B({type:M.x.Canvas,count:1})),V=(ut,E)=>{const J=[],dt=ut.hotAttr.bunch===M.x.RbPage&&ut.hotAttr.asFolder;let pt=dt?0:1,T=0;if(!E&&!dt){var ht;T=((ht=ut.sub)==null||(ht=ht.filter(yt=>{const ct=rootSdk.sdkStore.getHotItem(yt);return(ct==null?void 0:ct.hotAttr.type)===M.x.Canvas&&!(ct!=null&&ct.hotAttr.asOverlay)}))==null?void 0:ht.length)||0,J.push(ut.key)}else{const yt=ct=>{var gt;(gt=ct.sub)==null||gt.forEach(bt=>{const Tt=rootSdk.sdkStore.getHotItem(bt);Tt.hotAttr.bunch===M.x.RbPage?(Tt.hotAttr.asFolder||(pt+=1,J.push(Tt.key)),yt(Tt)):Tt.hotAttr.type===M.x.Canvas&&!Tt.hotAttr.asOverlay&&(T+=1)})};yt(ut)}return{subPageCount:pt,subCanvasCount:T,pageKeyList:J}},L=(ut,E)=>{try{const{subPageCount:J,subCanvasCount:dt,pageKeyList:pt}=V(ut,E);return!(!B({type:M.x.RbPage,count:J})||!B({type:M.x.Canvas,count:dt})||!B({type:"widget",count:F({initKeyList:pt})}))}catch(J){return!0}},ot=(ut,E)=>{try{let J=0,dt=0;return ut.forEach(pt=>{const T=rootSdk.sdkStore.getHotItem(pt);if(!T)return;const{subPageCount:ht,subCanvasCount:yt}=V(T,E);J+=ht,dt+=yt}),!(!B({type:M.x.RbPage,count:J})||!B({type:M.x.Canvas,count:dt})||!B({type:"widget",count:F({initKeyList:ut})}))}catch(J){return console.error("checkLimitCanBatchDupScreen:",J),!0}},G=ut=>{try{var E;const J=(0,A.aw)((0,j.b8)(),(0,st.aF)({})),dt=(0,rt.uq)(J),pt={key:(0,m.cF)("rbp"),hotAttr:(0,b.gO)("",9,10,10,"",0,0,""),sup:b.$k,sub:[]};dt.updateHotItem(pt);const T=dt.loadSubtreeTL(ut,pt.key,0,0),ht=((E=dt.findAllTypeUnder(b.$k,"rResCanvas"))==null?void 0:E.filter(ct=>!ct.hotAttr.asOverlay).length)||0;if(!B({type:"rResCanvas",count:ht}))return!1;const yt=F({initKeyList:T,sdk:dt});return!!B({type:"widget",count:yt})}catch(J){return console.warn("checkLimitCanPasteItems error:",J),!0}},z=ut=>{try{const E=[],J=[];for(const dt of ut)dt.hotAttr.type==="rResCanvas"&&!dt.hotAttr.asOverlay?E.push(dt):J.push(dt.key);return!(!B({type:"rResCanvas",count:E.length})||!B({type:"widget",count:F({initKeyList:J})}))}catch(E){return!0}},F=ut=>{let{initKeyList:E=[b.$k,b.fW],sdk:J=sdkStore,isKeepInnerSkip:dt=!0}=ut;const pt=[...E],T=R().maxWidgetCount;if(dt&&k(T))return 0;let ht=0;for(const yt of pt)J.walkHotItemSubtree2(yt,ct=>{const{hotAttr:gt}=ct;if(["wMindNode","rResBunch","wWrap"].includes(gt.type)?gt.type==="rResBunch"&&yt===b.fW&&gt.bunch!=="rbRefMuban"&&(ht+=1):(ht+=1,gt.type==="rResCanvas"&&!gt.asOverlay&&(ht-=1)),gt.type==="wBasket")return gt.basket==="bDanli"&&pt.push(gt.refRBPageKey),W.NU});return ht},k=ut=>ut===65535},23340:($t,wt,w)=>{"use strict";w.d(wt,{$H:()=>M,AU:()=>W,EU:()=>j,NW:()=>H,Rh:()=>P,Tq:()=>$,U$:()=>K,V3:()=>I,Xy:()=>at,ZC:()=>R,dV:()=>st,fw:()=>it,oV:()=>m,qG:()=>Y,v:()=>Z,yh:()=>O,ze:()=>B});const Z=async()=>{try{const X=await navigator.clipboard.read();for(const V of X)try{return{type:"html",content:await(await V.getType("text/html")).text()}}catch(L){try{return{type:"plain",content:await(await V.getType("text/plain")).text()}}catch(ot){return{type:"none"}}}}catch(X){return{type:"none"}}},I=X=>{let V,L;return X.clipboardData.getData("text/html")?(V="html",L=X.clipboardData.getData("text/html")):X.clipboardData.getData("text/plain")?(V="plain",L=X.clipboardData.getData("text/plain")):V="none",{type:V,content:L}},O=function(X,V,L){return L===void 0&&(L=!0),X.replace(/\r\n$/,V?"\r\n":"").split("\r\n").map(ot=>ot.split(" ").map(G=>/\n/g.test(G)?G.replace(/^"|"$/g,"").replace(/""/g,'"').replace(/\n/g,L?"<br/>":""):G))},b=async()=>{let X;try{X=(await navigator.permissions.query({name:"clipboard-read"})).state}catch(V){return"denied"}return X},M=async X=>{let{hasNotice:V=!0}=X;if(!navigator.clipboard)return!0;const L=await b();return L==="denied"||L==="prompt"?(V&&MB.notice({text:I18N.ContextMenu.clipboard_limit,type:"error"}),!0):!1},W=async()=>await b()==="denied"?(MB.notice({text:I18N.ContextMenu.copy_png_faild_right,type:"error"}),!0):!1,st=async()=>await b()==="prompt",rt=()=>new DOMParser().parseFromString('\n <meta charset="utf-8" data-mb-meta="9">\n <span style="white-space:pre-wrap"></span>\n ',"text/html"),m=async X=>{let{itemType:V}=X;try{const L=await navigator.clipboard.read();let ot;for(const G of L)if(G.types.includes(V)){switch(V){case"text/plain":{ot=await(await G.getType("text/plain")).text();break}case"text/html":{ot=await(await G.getType("text/html")).text();break}case"image/png":{ot=await G.getType(V);break}}break}return ot}catch(L){return}},U="data-mb-type",A="data-mb-type-data",j=async X=>{const V=await m({itemType:"text/html"}),ot=new DOMParser().parseFromString(V,"text/html"),G=ot==null?void 0:ot.querySelector("["+U+"="+X+"]"),z=(G==null?void 0:G.getAttribute(A))||null;return JSON.parse(JSON.parse(z))},it=async X=>{let V;try{const k=await m({itemType:"text/html"});V=new DOMParser().parseFromString(k,"text/html")}catch(k){V=rt()}let L;K(V)?L=V:L=rt();let ot=L.querySelector("["+U+'="'+X.type+'"]'),G=!1;ot||(G=!0,ot=document.createElement("meta")),ot.setAttribute(U,X.type),ot.setAttribute(A,JSON.stringify(X.data)),G&&L.body.appendChild(ot);const z=L.head.innerHTML+L.body.innerHTML,F=new Blob([z],{type:"text/html"});await navigator.clipboard.write([new ClipboardItem({"text/html":F})])},Y=async X=>{let{html:V,selectionText:L}=X;const ot=new Blob([V],{type:"text/html"}),G=new Blob([L],{type:"text/plain"});await navigator.clipboard.write([new ClipboardItem({"text/html":ot,"text/plain":G})])},P=X=>{let{value:V}=X;const L=document.createElement("input");L.value=V,document.body.append(L),L.select(),L.setSelectionRange(0,V.length),document.execCommand("copy"),L.remove()},R=async X=>{const V=new Blob([X],{type:"text/plain"});await navigator.clipboard.write([new ClipboardItem({"text/plain":V})])},at=async()=>await m({itemType:"text/html"}),$=async()=>{const X=await m({itemType:"text/html"}),V=new DOMParser().parseFromString(X,"text/html");if(!K(V))return X},K=X=>{let V=!1;return X.querySelectorAll("meta").forEach(L=>{L.getAttribute("data-mb-meta")==="9"&&(V=!0)}),V},H=X=>{const V=new DOMParser().parseFromString(X,"text/html");return V?V.querySelector("[data-mb-text-flag]")!==null:!1},B="<meta data-mb-text-flag=1>"},95487:($t,wt,w)=>{"use strict";w.d(wt,{N:()=>I});var Z=w(62884);const I=O=>function(b,M){const W=this;if(!(0,Z.gq)(W.state,M))return!0;for(const st of O)if(typeof W.props[st]!="function"&&W.props[st]!==b[st])return!0;return!1}},58912:($t,wt,w)=>{"use strict";w.d(wt,{MR:()=>I,eC:()=>O,uQ:()=>b});const Z=JSON.parse('{"iphone_se":{"device":"iphone_se","bg":"iphone_se","width":370,"height":750,"top":92,"left":25},"iphone_5":{"device":"iphone_5","bg":"iphone_se","width":370,"height":750,"top":91,"left":25},"iphone_6":{"device":"iphone_6","bg":"iphone_7","width":435,"height":888,"top":114,"left":30},"iphone_8":{"device":"iphone_8","bg":"iphone_7","width":435,"height":888,"top":114,"left":30},"iphone_6_plus":{"device":"iphone_6_plus","bg":"iphone_7_plus","width":482,"height":983,"top":127,"left":34},"iphone_8_plus":{"device":"iphone_8_plus","bg":"iphone_7_plus","width":482,"height":983,"top":127,"left":34},"iphone_x":{"device":"iphone_x","bg":"iphone_x","width":435,"height":864,"top":26,"left":30},"iphone_xs_max":{"device":"iphone_xs_max","bg":"iphone_xs_max","width":475,"height":950,"top":28,"left":31},"iphone_11_pro":{"device":"iphone_x","bg":"iphone_x","width":435,"height":864,"top":26,"left":30},"iphone_11_pro_max":{"device":"iphone_11_pro_max","bg":"iphone_11","width":502,"height":975,"top":40,"left":44},"iphone_12_pro":{"device":"iphone_12_pro","bg":"iphone_12","width":438,"height":884,"top":20,"left":24},"iphone_12_pro_max":{"device":"iphone_12_pro_max","bg":"iphone_12_pro_max","width":478,"height":967,"top":20,"left":25},"iphone_13_pro":{"device":"iphone_13_pro","bg":"iphone_14","width":458,"height":910,"top":33,"left":34},"iphone_13_pro_max":{"device":"iphone_13_pro_max","bg":"iphone_14_plus","width":488,"height":992,"top":33,"left":30},"iphone_13_mini":{"device":"iphone_13_mini","bg":"iphone_13_mini","width":430,"height":866,"top":27,"left":27,"right":28},"iphone_14_pro":{"device":"iphone_14_pro","bg":"iphone_14","width":458,"height":910,"top":33,"left":34},"iphone_14_pro_max":{"device":"iphone_14_pro_max","bg":"iphone_14_pro_max","width":482,"height":977,"top":22,"left":26},"iphone_15_pro_max":{"device":"iphone_15_pro_max","bg":"iphone_15_pro_max","width":494,"height":1009,"top":40,"left":32},"iphone_15_pro":{"device":"iphone_15_pro","bg":"iphone_15_pro","width":476,"height":933,"top":41,"left":41.5,"right":41.5},"iphone_15_plus":{"device":"iphone_15_plus","bg":"iphone_15_plus","width":508,"height":1010,"top":39,"left":39},"iphone_15":{"device":"iphone_15","bg":"iphone_15","width":472,"height":930,"top":40,"left":40,"right":39},"iphone_16_pro_max":{"device":"iphone_16_pro_max","bg":"iphone_16_pro_max","width":521,"height":1030,"top":38.5,"left":41},"iphone_16_pro":{"device":"iphone_16_pro","bg":"iphone_16_pro","width":484,"height":950,"top":38.5,"left":41},"iphone_16_plus":{"device":"iphone_16_plus","bg":"iphone_16_plus","width":521,"height":1016,"top":43.5,"left":46},"iphone_16":{"device":"iphone_16","bg":"iphone_16","width":485,"height":938,"top":43.5,"left":46},"Huawei":{"device":"huawei","bg":"huawei_p9","width":400,"height":800,"top":77,"left":20},"Huawei_p8":{"device":"Huawei_p8","bg":"huawei_p9","width":400,"height":800,"top":77,"left":20},"Huawei_p40":{"device":"Huawei_p40","bg":"huawei_p40_v2","width":429,"height":880,"top":15,"left":16,"right":18},"Huawei_p40_error":{"device":"Huawei_p40","bg":"huawei_p40","width":392,"height":805,"top":15,"left":15},"Huawei_mate60":{"device":"Huawei_mate60","bg":"Huawei_mate60","width":432,"height":914,"top":14,"left":15,"right":12},"Huawei_mate60_pro":{"device":"Huawei_mate60_pro","bg":"Huawei_mate60_pro","width":452,"height":935,"top":14,"left":16},"Huawei_mate70":{"device":"Huawei_mate70","bg":"Huawei_mate70","width":486,"height":946,"top":31,"left":40},"Huawei_mate70_pro":{"device":"Huawei_mate70_pro","bg":"Huawei_mate70_pro","width":523,"height":1022,"top":39,"left":39.5},"Huawei_mate70_pro_plus":{"device":"Huawei_mate70_pro_plus","bg":"Huawei_mate70_pro_plus","width":523,"height":1022,"top":39,"left":39.5},"Huawei_mateX5_expand":{"device":"Huawei_mateX5_expand","bg":"Huawei_mateX5_expand","width":786,"height":870,"top":18.5,"left":21,"right":24},"Huawei_mateX5_fold":{"device":"Huawei_mateX5_fold","bg":"Huawei_mateX5_fold","width":400,"height":870,"top":17,"left":21,"right":19},"Huawei_mateXT_one_screen":{"device":"Huawei_mateXT_one_screen","bg":"Huawei_mateXT_one_screen","width":408,"height":823,"top":39.5,"left":36},"Huawei_mateXT_two_screen":{"device":"Huawei_mateXT_two_screen","bg":"Huawei_mateXT_two_screen","width":754,"height":827,"top":41.5,"left":27},"Huawei_mateXT_three_screen":{"device":"Huawei_mateXT_three_screen","bg":"Huawei_mateXT_three_screen","width":1148,"height":834,"top":45,"left":39},"samsung":{"device":"samsung","bg":"samsung_s7","width":398,"height":804,"top":85,"left":19},"samsung_galaxy_s23":{"device":"samsung_galaxy_s23","bg":"samsung_galaxy_s23","width":393,"height":810,"top":14,"left":14,"right":19},"google_nexus":{"device":"android","bg":"nexus_5","width":402,"height":798,"top":70,"left":21},"google_pixel_2":{"device":"google_pixel_2","bg":"google_pixel_2","width":481,"height":956,"top":112,"left":35},"google_pixel_2_xl":{"device":"google_pixel_2_xl","bg":"google_pixel_2_xl","width":509,"height":955,"top":70,"left":49},"Xiaomi_14":{"device":"Xiaomi_14","bg":"Xiaomi_14","width":426,"height":917,"top":12,"left":13,"right":12},"Xiaomi_15":{"device":"Xiaomi_15","bg":"Xiaomi_15","width":476,"height":962,"top":36,"left":36},"smart_tv":{"device":"web","bg":"sony_w850c","width":2038,"height":1244,"top":21,"left":36},"car_play":{"device":"web","bg":"car_play","width":1810,"height":1396,"top":86,"left":255},"car_play_hmi":{"device":"web","bg":"car_play","width":1810,"height":1396,"top":86,"left":255},"Xiaomi":{"device":"android","bg":"nexus_5","width":402,"height":798,"top":70,"left":21},"ipad_3_4":{"device":"ipad","bg":"ipad","width":881,"height":1247,"top":111,"left":56.5},"ipad_pro":{"device":"ipad","bg":"ipad_pro","width":1224,"height":1716,"top":175,"left":100},"ipad_mini":{"device":"ipad_mini","bg":"ipad_mini","width":864,"height":1304,"top":140,"left":48},"ipad_pro_11":{"device":"ipad_pro_11","bg":"ipad_pro_11","width":944,"height":1304,"top":55,"left":55},"ipad_pro_12":{"device":"ipad_pro_12","bg":"ipad_pro_12","width":1146,"height":1482,"top":59,"left":61},"ipad_2023":{"device":"ipad_2023","bg":"ipad_2023","width":944,"height":1304,"top":64,"left":62},"Huawei_mate_pad_pro_13_2":{"device":"Huawei_mate_pad_pro_13_2","bg":"Huawei_mate_pad_pro_13_2","width":1010,"height":1492,"top":24,"left":23.5,"bottom":29,"landscape":"clockwise"},"Huawei_mate_pad_pro_11":{"device":"Huawei_mate_pad_pro_11","bg":"Huawei_mate_pad_pro_11","width":891,"height":1375,"top":50,"left":45,"right":45},"apple_watch_38":{"device":"apple_watch","bg":"apple_watch_38","width":224,"height":400,"top":115,"left":38},"apple_watch_40":{"device":"apple_watch","bg":"apple_watch_40","width":230,"height":399,"top":101,"left":29},"apple_watch_se_40":{"device":"apple_watch","bg":"apple_watch_se_40","width":256,"height":438,"top":121,"left":47},"apple_watch_42":{"device":"apple_watch","bg":"apple_watch_42","width":244,"height":438,"top":121,"left":38},"apple_watch_44":{"device":"apple_watch","bg":"apple_watch_44","width":251,"height":430,"top":103,"left":28},"apple_watch_se_44":{"device":"apple_watch","bg":"apple_watch_se_44","width":274,"height":448,"top":112.5,"left":45},"apple_watch_ultra_2_49":{"device":"apple_watch_ultra_2_49","bg":"apple_watch_ultra_2_49","width":300,"height":470,"top":109.5,"left":48},"apple_watch_9_45":{"device":"apple_watch_9_45","bg":"apple_watch_9_45","width":270,"height":430,"top":94,"left":36},"apple_watch_9_41":{"device":"apple_watch_9_41","bg":"apple_watch_9_41","width":238,"height":376,"top":81,"left":30,"right":32},"Huawei_watch_gt4_46":{"device":"Huawei_watch_gt4_46","bg":"Huawei_watch_gt4_46","width":300,"height":480,"top":124,"left":33.5},"Huawei_watch_gt4_41":{"device":"Huawei_watch_gt4_41","bg":"Huawei_watch_gt4_41","width":276,"height":482,"top":123,"left":21.5},"Huawei_watch_gt5_46":{"device":"Huawei_watch_gt5_46","bg":"Huawei_watch_gt5_46","width":317,"height":489,"top":128,"left":42},"Huawei_watch_gt5_41":{"device":"Huawei_watch_gt5_41","bg":"Huawei_watch_gt5_41","width":334,"height":605,"top":186,"left":51},"Huawei_wristband_8":{"device":"Huawei_wristband_8","bg":"Huawei_wristband_8","width":117,"height":304,"top":61,"left":9.5},"Huawei_wristband_9":{"device":"Huawei_wristband_9","bg":"Huawei_wristband_9","width":176.5,"height":359,"top":82,"left":36.5},"Xiaomi_wristband_8":{"device":"Xiaomi_wristband_8","bg":"Xiaomi_wristband_8","width":144,"height":442,"top":94,"left":24},"Xiaomi_wristband_9":{"device":"Xiaomi_wristband_9","bg":"Xiaomi_wristband_9","width":212,"height":503,"top":120.5,"left":59},"desktop_1920":{"device":"desktop_1920","bg":"desktop_1920","width":2060,"height":1743,"top":72,"left":70},"desktop":{"device":"desktop","bg":"desktop","width":2034,"height":1276,"top":87,"left":302},"imac":{"device":"imac","bg":"imac","width":1393,"height":1151,"top":60,"left":56.5},"imac_2023":{"device":"imac_2023","bg":"imac_2023","width":2378,"height":2018,"top":78.5,"left":69},"mac_book_pro":{"device":"mac_book_pro","bg":"mac_book_pro","width":1882,"height":1098,"top":71,"left":221},"mac_book_pro_16":{"device":"mac_book_pro_16","bg":"mac_book_pro_16","width":2170,"height":1430,"top":156.5,"left":221},"mac_book_pro_14":{"device":"mac_book_pro_14","bg":"mac_book_pro_14","width":1972,"height":1282,"top":150,"left":230},"mac_book_air_13":{"device":"mac_book_air_13","bg":"mac_book_air_13","width":1612,"height":1052,"top":110,"left":167},"Huawei_mate_book_16s":{"device":"Huawei_mate_book_16s","bg":"Huawei_mate_book_16s","width":1804,"height":944,"top":21,"left":272},"Huawei_mate_book_14s":{"device":"Huawei_mate_book_14s","bg":"Huawei_mate_book_14s","width":1702,"height":952,"top":30.5,"left":222},"tesla_car_play_hmi":{"device":"tesla_car_play_hmi","bg":"tesla_car_play_hmi","width":2002,"height":1328,"top":43,"left":40.5,"right":41.5}}'),I=M=>{if(M==="none")return null;const W=Z[M];return W!=null&&W.bg?W:null},O=(M,W)=>{if(!(M!=null&&M.bg))return null;const{width:st,height:rt,bg:m,top:U,left:A,right:j,bottom:it,landscape:Y}=M;let P=W?"rotate(-90deg) translateX(-100%)":"none",R=W?j||A:U,at=W?U:A;return W&&Y==="clockwise"&&(P="rotate(90deg) translateY(-100%)",R=A,at=it||U),{shellStyle:{width:st,height:rt,transformOrigin:"top left",transform:P},topOffset:R,leftOffset:at,imageUrl:"/mb-proto2/images/devices/"+m+".png?version=20231205"}},b=M=>{if(!I(M))return null;let W=null;return["iphone_14_pro_max","iphone_14_pro","iphone_13_pro_max","iphone_15_pro_max","iphone_15_pro","iphone_15_plus","iphone_15","iphone_16_plus","iphone_16","Huawei_mate60_pro","Huawei_mate70","Huawei_mate70_pro","Huawei_mate70_pro_plus","Xiaomi_14","Xiaomi_15","samsung_galaxy_s23","apple_watch_9_41","apple_watch_9_45"].includes(M)&&(W="25px"),["Huawei_watch_gt4_46","Huawei_watch_gt4_41","Huawei_watch_gt5_46","Huawei_watch_gt5_41"].includes(M)&&(W="30%"),["iphone_16_pro_max","iphone_16_pro","Huawei_mate60"].includes(M)&&(W="40px"),W?{borderRadius:W}:null}},35078:($t,wt,w)=>{"use strict";w.d(wt,{ON:()=>Y,UG:()=>R,eO:()=>W,tb:()=>st,u1:()=>P,wb:()=>m});var Z=w(44622),I=w(20571),O=w(63555),b=w(75391),M=w(44864);const W=at=>""+((0,Z.Mo)(at)?I.L7:I.KL)+I.wv+0,st=function(at,$){at===void 0&&(at=M.$k),$===void 0&&($=sdkStore);const K={},H={};return{screenTreeData:rt(at,K,H,$),screenTreeMap:K,screenDataMap:H}},rt=function(at,$,K,H){var B;at===void 0&&(at=M.$k),$===void 0&&($={}),K===void 0&&(K={}),H===void 0&&(H=sdkStore);const X=H.getHotItem(at),{sub:V,hotAttr:L,key:ot,sup:G}=X,z=V.map(F=>{const k=H.getHotItem(F),{hotAttr:ut,key:E}=k;if(ut.bunch===O.x.RbPage)return K[E]=k,rt(E,$,K,H)}).filter(F=>F).sort((F,k)=>F.data.zIndex-k.data.zIndex);return((B=X.hotAttr)==null?void 0:B.bunch)===O.x.RbPage&&(K[ot]=X),z!=null&&z.length&&($[ot]=z),{cid:at,data:{cid:ot,...L,sup:G,sub:V,icon:L.icon||W(L)},children:z}},m=at=>{const $={},K={},H=at.filter(F=>!sdkStore.isTrashed(F));H.forEach(F=>{$[F]=sdkStore.getHotItem(F)});const B=H.map(F=>({key:F,...it(F,H)})),X=B.filter(F=>F.level===0),V=M.$k,L=sdkStore.getHotItem(V),ot=Array.from(new Set([...X.map(F=>F.key)])),G=ot.map(F=>j(F,H,B,K)).map(F=>{const k=A(F.cid);return{...F,data:{...F.data,zIndex:k}}}).sort((F,k)=>U(F.data.zIndex,k.data.zIndex));return K[V]=G,{screenTreeData:{cid:V,data:{cid:V,key:V,sub:ot,...L,icon:L.hotAttr.icon||W(L.hotAttr)},children:G},screenDataMap:$,screenTreeMap:K}},U=(at,$)=>{const K=at.split("-").slice(1),H=$.split("-").slice(1);let B=0;const X=H.length>K.length?K.length:H.length;for(let V=0;V<X;V++){const L=parseInt(H[V]),ot=parseInt(K[V]);if(L>ot){B=-1;break}else if(L<ot){B=1;break}else V===X-1&&B===0&&(H.length>K.length?B=-1:B=1)}return B},A=at=>{const $=H=>{if(H===M.$k)return"";const B=sdkStore.getHotItem(H);if(!B)return"1";const X=String(B.hotAttr.zIndex||1);return $(B.sup)+"-"+X};return $(at)},j=(at,$,K,H)=>{const B=sdkStore.getHotItem(at),X=K.filter(L=>L.level!==0&&L.supKey===at).map(L=>L.key),V=X.map(L=>j(L,$,K,H)).sort((L,ot)=>L.data.zIndex-ot.data.zIndex);return H[at]=V,{cid:B.key,data:{...B.hotAttr,cid:B.key,sub:[X],sup:B.sup},children:V}},it=(at,$)=>{var K;const B=((K=sdkStore.findUpHotItemList(at))!=null?K:[]).map(L=>L==null?void 0:L.key).filter(L=>L!==at).reverse();let X=0,V=at;return B.forEach((L,ot)=>{if($.includes(L)){X=ot,V=L;return}}),{supKey:V,level:X}},Y=at=>{const{key:$,sup:K,sub:H,hotAttr:B}=at;return{cid:$,sup:K,sub:H,...B}},P=at=>{var $;const K=(0,Z.YU)(at).filter(X=>X.bunch===O.x.RbPage&&!(0,Z.Mo)(X));let H="";const B=K.find(X=>{const V=(0,b.Y2)(X.cid);return V&&(V==null?void 0:V.length)>0?(H=V[0].key,!0):!1});return{activePageKey:(B==null?void 0:B.cid)||(($=K[0])==null?void 0:$.cid),activeCanvasKey:H}},R=at=>{if(!rootSdk.sdkStore.isActiveKey(at))return[];const $=rootSdk.sdkStore.getHotItem(at),{hotAttr:K}=$;let H=[at];return K.bunch===O.x.RbPage&&K.asFolder&&(H=rootSdk.sdkStore.findAllTypeUnder(at,"rResBunch").map(B=>B.key)),H}},98521:($t,wt,w)=>{"use strict";w.d(wt,{vR:()=>O,zB:()=>I});var Z=w(63555);const I=M=>{const W=new Map;if(M!=null&&M.length)for(let st=0;st<M.length;st++){const rt=M[st],m=sdkStore.locUpHotCanvasKey(rt);if(m!==rt&&m){const U=sdkStore.getHotItem(m);U&&!W.get(U.key)&&W.set(U.key,U)}}return W},O=M=>new Set(M.map(W=>sdkStore.locUpHotCanvasKey(W)||sdkStore.locUpRBPageKey(W))).size===1,b=function(M,W){var st;W===void 0&&(W=sdkStore);const rt=[],m=W.getHotItem(M),{hotAttr:U,sub:A}=m,j=(st=U.bunch)!=null?st:U.type;return j!==WidgetType.RbPage&&rt.push(m),[WidgetType.RbPage,WidgetType.WWrap].includes(j)&&A.forEach(it=>rt.push(...b(it,W))),rt}},99388:($t,wt,w)=>{"use strict";w.d(wt,{f:()=>b,o:()=>O});var Z=w(42259),I=w(43105);const O=function(M){M===void 0&&(M="");const W=new TextEncoder().encode(M),st=(0,Z.ZI)(W);return(0,I.l)(st)},b=M=>{if(!M)return"";const W=(0,I.D)(M),st=(0,Z.Aq)(W);return new TextDecoder().decode(st)}},84044:($t,wt,w)=>{"use strict";w.d(wt,{L:()=>b});var Z=w(36820),I=w(73518),O=w.n(I);const b=O()(M=>{M&&(0,Z.kH)("Shortcut_key_use_V8",{type:M})},5e3)},43109:($t,wt,w)=>{"use strict";w.d(wt,{Je:()=>O,dB:()=>b});var Z=w(52611);const I=M=>Z.$2.includes(M.href.split(".").slice(-1).join()),O=M=>["v.qq.com","vimeo.com","youtu.be","www.youtube.com","www.bilibili.com","v.youku.com"].includes(M.hostname),b=M=>{try{const W=new URL(M);if(!(I(W)||O(W))||!Z.sz.includes(W.protocol))return!1}catch(W){return!1}return!0}},76347:($t,wt,w)=>{"use strict";w.d(wt,{pv:()=>_e,lc:()=>Kt,ow:()=>ce,QI:()=>he,WP:()=>oe,ob:()=>vt,Su:()=>Q,UL:()=>Mt,PK:()=>jt,Q7:()=>Ht,dD:()=>zt,lY:()=>gt,g:()=>yt,xy:()=>Re,F6:()=>Fe,ZZ:()=>dt});var Z=w(12592),I=w(17534);let O=function(le){return le.landscape="landscape",le.portrait="portrait",le}({});const b="dummy-screen-meta-cid";var M=w(48358),W=w(2079),st=w(79700),rt=w(63555);const m=le=>{const ee=sdkStore.getHotItem(le.cid).hotAttr,ge=MB.getNextWidgetZ();return{...st.N[rt.x.WBasket]("bMuban",le.cid,ee.defaultCanvasKey,ee.name,ge,ee.w/2,ee.h/2,ee.w,ee.h,ee.scroll,ee.scrollWay,ee.layout),left:0,top:0}};if(w.j!=183)var U=w(2313);var A=w(48310),j=w(7233),it=w(47143);if(w.j!=183)var Y=w(61535);var P=w(30797),R=w(96851),at=w(72428),$=w(4098),K=w(6637),H=w(13780),B=w(2302),X=w(66976),V=w(20592);if(w.j!=183)var L=w(40684);if(w.j!=183)var ot=w(53955);var G=w(29107),z=w(72866),F=w(93284);const k={dragging:"RrZKprPGiEqkxEELaP57","dragging-template":"WVRqDWvrnmzMpK3ZflPA"};var ut=w(4210),E=w(86310),J=w(44580);const dt=le=>{var ee;if(!(le!=null&&le.length))return"";const ge=le.sort((fe,Ae)=>sdkStore.findUpHotItemList(fe).length-sdkStore.findUpHotItemList(Ae).length)[0],de=sdkStore.getHotItem(ge);return de!=null&&de.sup&&((ee=sdkStore.getHotItem(de==null?void 0:de.sup))==null||(ee=ee.hotAttr)==null?void 0:ee.type)===rt.x.WWrap?de.sup:""},pt=(le,ee,ge)=>[rt.x.WCarousel,rt.x.WMapView].includes(le)?{width:200,height:100}:le===rt.x.WImage&&(ee>109||ge>109)?{width:109,height:109}:{width:ee,height:ge},T=function(le,ee,ge,de,fe){fe===void 0&&(fe={});const{device:Ae,model:te}=de,Ie=document.createElement("div");Ie.className=k.dragging+" "+Ae+" "+te,Ie.style.width=ee+"px",Ie.style.height=ge+"px",Ie.style.transformOrigin="top left",Ie.style.transition="all 0.2s ease-in-out;",Ie.style.transform="translateZ(0)",Ie.style.willChange="transform";const cn=le.map(un=>{const gn={hotAttr:{...un},key:(0,I.kt)(),sup:b};return un.type===rt.x.WTear&&(gn.hotAttr.tearMode=!0),gn}),ln=new Map;ln.set(b,{key:b,hotAttr:{bunch:"rbPage"},sub:cn.map(un=>un.key)}),cn.forEach(un=>ln.set(un.key,un));const Qe={};Qe.getHotItem=un=>ln.get(un),Qe.getHotItemTL=un=>{const gn=ln.get(un);return{...gn,hotAttr:{...gn.hotAttr,xTL:gn.hotAttr.x-gn.hotAttr.w/2,yTL:gn.hotAttr.y-gn.hotAttr.h/2}}},Qe.getHotAABB=un=>{const{w:gn,h:ne}=ln.get(un).hotAttr;return(0,V.CD)((0,V.F1)(),gn,ne)},Qe.getInteractionsOf=()=>[],Qe.getCCSBound2308=un=>{const{x:gn,y:ne,r:bn,w:en,h:Bn}=ln.get(un).hotAttr;return{x:gn,y:ne,r:bn,w:en,h:Bn}};const dn=(0,A.v)(A.K.snapshot),fn=new j.c(dn,Qe);fn.buildWidgetTree({folderKey:b});const Tn=fn.widgetNode;return Ie.innerHTML+=Z.renderToString(Tn.children.map(un=>un.render(fe))),Ie},ht=le=>{let{width:ee,height:ge}=le;const de=document.createElement("div");return de.className=k["dragging-template"],de.style.width=ee+"px",de.style.height=ge+"px",de.style.transition="all 0.2s ease-in-out;",de},yt=le=>{var ee;const ge=(0,ot.PV)(le);return(ee=document.getElementById(ge))==null?void 0:ee.getBoundingClientRect()},ct=(le,ee,ge,de)=>{const fe=document.createElement("div");fe.className=""+k.dragging,fe.style.width=ge+"px",fe.style.height=de+"px",fe.style.transformOrigin="top left",fe.style.transition="all 0.2s ease-in-out;",fe.style.transform="translateZ(0)",fe.style.willChange="transform";const Ae={...ee};Ae.getHotItem=ln=>{const Qe=ee.getHotItem(ln);return Qe.hotAttr.type===rt.x.WTear&&(Qe.hotAttr.tearMode=!0),Qe};const te=(0,A.v)(A.K.snapshot),Ie=new j.c(te,Ae);Ie.buildWidgetTree({folderKey:le.key});const cn=Ie.widgetNode;return fe.innerHTML+=Z.renderToString(cn.children.map(ln=>ln.render())),fe},gt=function(le,ee,ge){ge===void 0&&(ge=!1);const{sub:de}=le,fe=de.filter(dn=>{var fn;return((fn=sdkStore.getHotItem(dn))==null||(fn=fn.hotAttr)==null?void 0:fn.bunch)!==rt.x.RbPage}),Ae=ge?fe.filter(dn=>{var fn;return![rt.x.WSticky,rt.x.WTear].includes((fn=ee.getHotItem(dn))==null||(fn=fn.hotAttr)==null?void 0:fn.type)}):fe,te=ee.getHotKeyListAABB(Ae),[Ie,cn]=te,{w:ln,h:Qe}=(0,$.T3)(te);return{x:Ie,y:cn,w:ln,h:Qe}},bt=le=>{if(!le.length)return!0;const ee=ge=>{var de;return ge.name||((de=ge.hotAttr)==null?void 0:de.type)};return le.length===1?ee(le[0])!==rt.x.WSticky:!le.every(ge=>[rt.x.WSticky,rt.x.WTear].includes(ee(ge)))},Tt=le=>{let{scale:ee,start:ge,drag:de,end:fe,canvasRect:Ae,showDragMode:te,isAdsorbentReferenceLine:Ie}=le;const cn=Pt({...ge,scale:ee,showDragMode:te,isAdsorbentReferenceLine:Ie});if(!cn)return;const{alignUtil:ln}=cn,{onMoveHandler:Qe,alignedPosition:dn}=It({alignUtil:ln,...ge,...de,scale:ee,canvasRect:Ae,showDragMode:te,isAdsorbentReferenceLine:Ie}),fn=Dt({scale:ee,onMoveHandler:Qe,alignedPosition:dn,...ge,...fe});document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",fn)},Pt=le=>{let{scale:ee,e:ge,$draggingPuppet:de,showDragMode:fe,isAdsorbentReferenceLine:Ae}=le;if(ge.button!==0)return null;ge.preventDefault(),MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!0}),document.body.appendChild(de);let Ie=null;return(fe||Ae)&&(Ie=(0,M.ay)({movableItems:[],createSnapper:fe?W.WY:M.xb,viewport:{scale:ee/100}})),{alignUtil:Ie}},It=le=>{let{scale:ee,$draggingPuppet:ge,alignUtil:de,hideChecker:fe,itemSize:Ae,isTemplate:te=!0,isTear:Ie=!1,canHover:cn=!1,moveCallback:ln,isToolbarCreate:Qe=!1,showDragMode:dn,isAdsorbentReferenceLine:fn,comboPos:Tn={x:0,y:0}}=le;const un={},gn=ee/100,ne=en=>{en.preventDefault();const Bn=!!(fe&&fe(en));if(Qe&&Bn)return;Qe&&!Bn&&MB.action("set:quick-create-widget",{widget:null});let Ln={width:Ae.width,height:Ae.height};const vn=MB.__store__.getState(),Fn=(0,it.ER)(vn),zn=(0,it.$S)(vn),On=(0,it.Ur)(vn),an=(0,P.p$)(vn),mn=(0,R.mG)(en,{scale:ee,offset:Fn,viewportRect:zn}),rr=B.Z.xy(mn.x-Ae.width/2,mn.y-Ae.height/2);Ln={...Ln,left:Math.round(rr.x),top:Math.round(rr.y)};let{top:Un,left:fr}=Ln;if(!Bn&&(dn||fn)){const yr=(0,Y.RX)(vn),Xn=(0,X.Tg)(mn,yr.key),Pr=de({_rect:Ln,sup:Xn||yr.key});({top:Un,left:fr}=Pr),MB.action("set:alignment",{alignment:Pr.alignment}),MB.action("set:sameSize",{alignment:Pr.sameSize}),MB.action("set:distributed",{distributed:Pr.distributed})}if(bn({e:en,dataDoNotCreateValue:Bn,viewport:{scale:gn,size:zn,offset:Fn},left:fr,top:Un,comboPos:Tn}),un.top=Un,un.left=fr,!Bn){const yr=en.ctrlKey||en.metaKey;let Xn="";cn&&(Xn=(0,R.nS)({isTear:Ie,world:mn,scale:ee,newSelection:an,currentPageKey:On.cid,isCtrlDown:yr}),MB.action("mode:update:hover:item",Xn)),ln&&ln({left:fr,top:Un,hoverItem:Xn})}},bn=en=>{let{e:Bn,dataDoNotCreateValue:Ln,viewport:vn,left:Fn,top:zn,comboPos:On}=en;ge.setAttribute("data-do-not-create",Ln);const an=H.L.apply(vn,B.Z.xy(Fn,zn)),{top:mn,height:rr}=vn.size,{x:Un,y:fr}=B.Z.add(an,B.Z.xy(window.innerWidth/2,mn+rr/2));ge.style.display="block",ge.style.top=fr-On.y*vn.scale+"px",ge.style.left=Un-On.x*vn.scale+"px";const lr=Ln;ge.style.width=Ae.width*(lr?1:gn)+"px",ge.style.height=Ae.height*(lr?1:gn)+"px",te||(ge.style.transform="scale("+(lr?1:gn)+")")};return{onMoveHandler:ne,alignedPosition:un}},Dt=le=>{let{scale:ee,onMoveHandler:ge,alignedPosition:de,$draggingPuppet:fe,fetchData:Ae,createItemDispatcher:te,handleCancel:Ie,callback:cn,successTip:ln}=le;const Qe=MB.__store__.getState(),dn=(0,Y.RX)(Qe),fn=(0,it.ER)(Qe),Tn=(0,it.$S)(Qe),un=(0,P.p$)(Qe),gn=dt(un),ne=async bn=>{document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",ne);const en=fe.getAttribute("data-do-not-create"),Bn=fe.style.display==="block"&&!JSON.parse(en);if(MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!1}),MB.action("ST:update",{isLeftDown:!0}),fe.remove(),MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}),MB.action("elbow:update",{isDraggingElbow:!1}),!Bn){Ie&&Ie();return}if(!(0,U.El)(bn.pageX,bn.pageY,Tn)){Ie&&Ie();return}const vn={...de};if(gn)vn.sup=gn;else{const Fn=(0,R.mG)(bn,{scale:ee,offset:fn,viewportRect:Tn}),zn=(0,X.Tg)(Fn,dn.key);zn&&(0,z.Op)(zn)&&(vn.sup=zn)}Ae&&await Ae(),te(vn),cn&&cn(),ln&&MB.notice({text:ln})};return ne},jt=le=>{let{e:ee,template:ge,thumbnailRect:de,canvasRect:fe,scale:Ae,showDragMode:te,isAdsorbentReferenceLine:Ie}=le;const cn=sdkStore.getHotItem(ge.cid).hotAttr,ln=ht({width:cn.w,height:cn.h});Tt({scale:Ae,canvasRect:fe,showDragMode:te,isAdsorbentReferenceLine:Ie,start:{e:ee,$draggingPuppet:ln},drag:{itemSize:{width:cn.w,height:cn.h},hideChecker:Qe=>(0,U.El)(Qe.clientX,Qe.clientY,de)},end:{fetchData:null,createItemDispatcher:Qe=>{let{top:dn,left:fn,sup:Tn}=Qe;if(!(0,G._c)({type:"basket",count:1}))return;const un=m(ge);MB.action("entry:batch:create:items",{data:[{items:[un]}],offset:{top:dn,left:fn},sup:Tn}),MB.action(E.y.entryKey["font:missFontKeyMap:update"])}}})},Mt=le=>{if(!(0,G._c)({type:"basket",count:1}))return;const ee=m(le),ge=[{items:[ee],width:ee.w,height:ee.h}];MB.action("entry:batch:create:items",{data:ge});const de=le.isTemplate?I18N.dUtils.master_create_success:I18N.dUtils.widget_create_success;MB.notice({text:de}),MB.action(E.y.entryKey["font:missFontKeyMap:update"])},Q=le=>{let{e:ee,marketTemplate:ge,mtSdkStore:de,doNotCreateRect:fe,callback:Ae,scale:te,canvasRect:Ie,currentEditorMode:cn,ghostItemCids:ln,showDragMode:Qe,isAdsorbentReferenceLine:dn}=le;ge.type===L.t_?Lt({e:ee,marketTemplate:ge,mtSdkStore:de,doNotCreateRect:fe,callback:Ae,scale:te,canvasRect:Ie,showDragMode:Qe,isAdsorbentReferenceLine:dn}):Rt({e:ee,marketTemplate:ge,mtSdkStore:de,doNotCreateRect:fe,callback:Ae,scale:te,canvasRect:Ie,currentEditorMode:cn,ghostItemCids:ln,showDragMode:Qe,isAdsorbentReferenceLine:dn})},vt=le=>{let{e:ee,marketTemplate:ge,store:de,scale:fe}=le;ge.type===L.t_?he({e:ee,combo:ge,store:de,scale:fe}):Bt({e:ee,combo:ge,store:de,scale:fe})},Lt=le=>{let{e:ee,marketTemplate:ge,mtSdkStore:de,doNotCreateRect:fe,callback:Ae,scale:te,canvasRect:Ie,showDragMode:cn,isAdsorbentReferenceLine:ln}=le;const Qe=de.getHotItem(ge.key),{w:dn,h:fn}=gt(Qe,de),Tn={width:dn,height:fn},un=ht(Tn),gn=de.getSubHotItemList(ge.key),ne=gn.length===1&&gn[0].hotAttr.type===rt.x.WTear,bn=(0,G.UU)({initKeyList:[ge.key],sdk:de}),en=(0,G._c)({type:"widget",count:bn},!1),Bn=bt(gn);let Ln="";Tt({scale:te,canvasRect:Ie,showDragMode:cn,isAdsorbentReferenceLine:ln,start:{e:ee,$draggingPuppet:un},drag:{itemSize:Tn,hideChecker:vn=>(0,U.El)(vn.clientX,vn.clientY,fe),isTear:ne,canHover:Bn,moveCallback:vn=>{let{hoverItem:Fn}=vn;ne&&(Ln=Fn)}},end:{createItemDispatcher:async vn=>{let{top:Fn,left:zn,sup:On}=vn;if(!(0,G._c)({type:"widget",count:bn}))return;sdkStore.combineMergeMark("create-market-template");const an=de.getSubHotItemList(Qe.key).filter(Ar=>{let{key:Yn,hotAttr:{type:Tr}}=Ar;return Tr===rt.x.Canvas}),mn=MB.getCurrentScreen().cid;let rr=mn;!(an!=null&&an.length)&&On&&(rr=On);const Un=B.Z.xy(zn,Fn),fr=MB.__store__.getState(),lr=(0,P.p$)(fr),yr=(0,at.RQ)(ge.key,de,Un,mn,lr);if((yr==null?void 0:yr.length)===1){var Xn;const Ar=sdkStore.getHotItem(yr[0]);(Ar==null||(Xn=Ar.hotAttr)==null?void 0:Xn.type)===rt.x.WTear&&Ln&&sdkStore.updateHotAttrKV(yr[0],"refWCKey",Ln)}yr.some(Ar=>{const Yn=sdkStore.getHotItem(Ar);return[rt.x.WTear,rt.x.WSticky].includes(Yn.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:select:items",{cids:yr}),MB.action("entry:refresh:link-list"),MB.action(E.y.entryKey["font:cloudFontExtList:refresh"]),MB.action(E.y.entryKey["font:missFontKeyMap:update"]),MB.action("entry:publish:create:items:success",{newKeys:yr}),sdkStore.combineMerge("create-market-template")},callback:en?Ae:null}})},Rt=le=>{let{e:ee,marketTemplate:ge,mtSdkStore:de,doNotCreateRect:fe,callback:Ae,scale:te,canvasRect:Ie,currentEditorMode:cn,ghostItemCids:ln,showDragMode:Qe,isAdsorbentReferenceLine:dn}=le;const{w:fn,h:Tn}=gt({sub:[ge.key]},de),un={width:fn,height:Tn},gn=ht(un),ne=(0,G.UU)({initKeyList:[ge.key],sdk:de}),bn=(0,G._c)({type:rt.x.Canvas,count:1},!1)||(0,G._c)({type:"widget",count:ne},!1);Tt({scale:te,canvasRect:Ie,showDragMode:Qe,isAdsorbentReferenceLine:dn,start:{e:ee,$draggingPuppet:gn},drag:{itemSize:un,hideChecker:en=>(0,U.El)(en.clientX,en.clientY,fe)},end:{createItemDispatcher:async en=>{let{top:Bn,left:Ln}=en;if(!(0,G._c)({type:rt.x.Canvas,count:1})||!(0,G._c)({type:"widget",count:ne}))return;const vn=[ge.key],Fn=MB.getCurrentScreen().cid,zn=de.saveSubtree(vn),On=B.Z.xy(Ln,Bn),an=(0,at.BB)({data:zn,worldPos:On,keyRndSup:Fn,currentPageKey:Fn});MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:select:items",{cids:an}),MB.action("entry:refresh:link-list"),MB.action(E.y.entryKey["font:cloudFontExtList:refresh"]),MB.action(E.y.entryKey["font:missFontKeyMap:update"]),MB.action("entry:publish:create:items:success",{newKeys:an})},callback:bn?Ae:null}})},Bt=le=>{let{e:ee,combo:ge,store:de,scale:fe}=le;if(ee.button!==0)return;const Ae=(0,G.UU)({initKeyList:[ge.key],sdk:de});if(!(0,G._c)({type:rt.x.Canvas,count:1})||!(0,G._c)({type:"widget",count:Ae}))return;const{w:te,h:Ie}=gt({sub:[ge.key]},de),{left:cn,top:ln}=(0,K.u5)({width:te,height:Ie,scale:fe}),Qe=B.Z.xy(cn,ln),dn=MB.getCurrentScreen().cid,fn=[ge.key],Tn=de.saveSubtree(fn),un=(0,at.BB)({data:Tn,worldPos:Qe,keyRndSup:dn,currentPageKey:dn});MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:select:items",{cids:un}),MB.action("entry:refresh:link-list"),MB.action(E.y.entryKey["font:cloudFontExtList:refresh"]),MB.action(E.y.entryKey["font:missFontKeyMap:update"]),MB.action("entry:publish:create:items:success",{newKeys:un}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page})},Ht=(le,ee,ge)=>{if(le&&le.length&&!(0,G._c)({type:le[0].type,count:le.count}))return;MB.action("entry:batch:create:items",{data:[{items:le,width:ee,height:ge}],source:"click"});const de=le.every(fe=>fe.type===rt.x.Canvas);MB.notice({text:de?I18N.dModals.artboard_create_success:I18N.dUtils.widget_create_success})},zt=le=>{var ee;let{e:ge,items:de,width:fe,height:Ae,doNotCreateRect:te,callback:Ie,isToolbarCreate:cn=!1,scale:ln=MB.getScale(),canvasRect:Qe=MB.getCanvasRect(),rootProject:dn,showDragMode:fn,isAdsorbentReferenceLine:Tn}=le;const un=T(de,fe,Ae,dn),gn={width:fe,height:Ae},ne=de.length===1&&de[0].name===rt.x.WTear,bn=de.length===1&&de[0].name===rt.x.WSticky,en=ne,Bn=de.length>0?(0,G._c)({type:de[0].type,count:de.count},!1):!0;let Ln=de;Tt({canvasRect:Qe,scale:ln,showDragMode:fn,isAdsorbentReferenceLine:Tn,start:{e:ge,$draggingPuppet:un},drag:{itemSize:gn,isToolbarCreate:cn,dragSize:pt((ee=de[0])==null?void 0:ee.name,fe,Ae),hideChecker:vn=>(0,U.El)(vn.clientX,vn.clientY,te),isTemplate:!1,isTear:ne,canHover:en,moveCallback:vn=>{let{left:Fn,top:zn,hoverItem:On}=vn;if(ne)Ln=de.map(an=>({...an,refWCKey:On})),un.innerHTML=T(Ln,100,100,dn).innerHTML;else if(bn){const an=de[0],mn=[Fn-80,zn,Fn-80+an.w,zn+an.h];Ln=de.map(Un=>({...Un}));const rr=Un=>{let{fakeBindingInfo:fr,fakePointToDir:lr}=Un;un.innerHTML=T(Ln,100,100,dn,{fakeBindingInfo:fr,fakePointToDir:lr,fakeAABB:mn}).innerHTML};MB.action("entry:ST:drag:sticky:point:fake:bind",{stickyKey:"fake",stickyAABBP:mn,callback:rr})}}},end:{createItemDispatcher:vn=>{let{top:Fn,left:zn,sup:On}=vn;(0,G._c)({type:de[0].type,count:de.count})&&(Ln=Ln.map(an=>{if(an.type===rt.x.WRichText){const mn=(0,F.gg)(an);return{...an,...mn}}if(an.type===rt.x.WTear||an.type===rt.x.WSticky){const{tearFlag:mn,name:rr}=(0,ut.wl)();return{...an,info:(0,ut.wh)(mn,rr)}}return an}),MB.action("entry:batch:create:items",{data:[{items:Ln}],offset:{top:Fn,left:zn},sup:On}))},handleCancel:()=>{const vn=de.map(Fn=>Fn.mktCid).filter(Boolean);(0,J.uC)(vn)},callback:Bn?Ie:null}})},Kt=async(le,ee)=>{if(le.button!==0||!(0,G._c)({type:"widget",count:1}))return;const ge=MB.__store__.getState(),de=(0,Y.RX)(ge),fe=(0,it.X_)(ge),Ae=(0,it.Ur)(ge),{width:te,height:Ie}=ee,{left:cn,top:ln}=(0,K.u5)({width:te,height:Ie,scale:fe}),Qe=B.Z.xy(cn,ln);let dn=Ae==null?void 0:Ae.cid;const fn=(0,X.Tg)(Qe,de.key);fn&&(0,z.Op)(fn)&&(dn=fn),MB.action("entry:paste:items",{data:ee.data,worldPos:Qe,keyRndSup:dn,commonKeyRndSup:dn,isPaste:!1}),MB.notice({text:I18N.dUtils.widget_create_success})},ce=le=>{let{e:ee,template:ge,doNotCreateRect:de,callback:fe,scale:Ae=Math.round(MB.getScale()),canvasRect:te=MB.getCanvasRect(),showDragMode:Ie,isAdsorbentReferenceLine:cn}=le;const ln=ht(ge),Qe=(0,G._c)({type:"widget",count:1},!1);Tt({scale:Ae,canvasRect:te,showDragMode:Ie,isAdsorbentReferenceLine:cn,start:{e:ee,$draggingPuppet:ln},drag:{itemSize:{width:ge.width,height:ge.height},hideChecker:dn=>(0,U.El)(dn.clientX,dn.clientY,de)},end:{fetchData:null,createItemDispatcher:dn=>{let{top:fn,left:Tn,sup:un}=dn;if(!(0,G._c)({type:"widget",count:1}))return;const gn=B.Z.xy(Tn,fn),ne=MB.getCurrentScreen().cid,bn=un||ne;MB.action("entry:paste:items",{data:ge.data,worldPos:gn,keyRndSup:bn,commonKeyRndSup:bn,isPaste:!1})},callback:Qe?fe:null}})},oe=le=>{let{e:ee,combo:ge,store:de,doNotCreateRect:fe,callback:Ae,isToolbarCreate:te=!1,scale:Ie=1,canvasRect:cn,showDragMode:ln,isAdsorbentReferenceLine:Qe}=le;const dn=de.getHotItem(ge.key),{x:fn,y:Tn,w:un,h:gn}=gt(dn,de),ne=ct(dn,de,un,gn),bn={width:un,height:gn},en=de.getSubHotItemList(ge.key),Bn=en.length===1&&en[0].hotAttr.type===rt.x.WTear,Ln=Bn;let vn="";const Fn=(0,G.UU)({initKeyList:[ge.key],sdk:de}),zn=(0,G._c)({type:"widget",count:Fn},!1);Tt({canvasRect:cn,scale:Ie,showDragMode:ln,isAdsorbentReferenceLine:Qe,start:{e:ee,$draggingPuppet:ne},drag:{itemSize:bn,isToolbarCreate:te,hideChecker:On=>(0,U.El)(On.clientX,On.clientY,fe),isTemplate:!1,comboPos:{x:fn,y:Tn},isTear:Bn,canHover:Ln,moveCallback:On=>{let{hoverItem:an}=On;Bn&&(vn=an)}},end:{createItemDispatcher:On=>{let{top:an,left:mn,sup:rr}=On;if(!(0,G._c)({type:"widget",count:Fn}))return;sdkStore.combineMergeMark("create-combo-widget-mousedown");const Un=B.Z.xy(mn,an),fr=MB.getCurrentScreen().cid,lr=MB.__store__.getState(),yr=(0,P.p$)(lr),Xn=(0,at.RQ)(ge.key,de,Un,fr,yr);if((Xn==null?void 0:Xn.length)===1){var Pr;const Yn=sdkStore.getHotItem(Xn[0]);(Yn==null||(Pr=Yn.hotAttr)==null?void 0:Pr.type)===rt.x.WTear&&vn&&sdkStore.updateHotAttrKV(Xn[0],"refWCKey",vn)}Xn.some(Yn=>{const Tr=sdkStore.getHotItem(Yn),Ji=[rt.x.WTear,rt.x.WSticky].includes(Tr.hotAttr.type);if(Ji){const{tearFlag:qt,name:Jt}=(0,ut.wl)();sdkStore.updateHotAttrKV(Yn,"info",(0,ut.wh)(qt,Jt))}return Ji})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:select:items",{cids:Xn}),MB.action("entry:refresh:link-list"),MB.action(E.y.entryKey["font:cloudFontExtList:refresh"]),MB.action(E.y.entryKey["font:missFontKeyMap:update"]),MB.action("entry:publish:create:items:success",{newKeys:Xn}),sdkStore.combineMerge("create-combo-widget-mousedown")},handleCancel:()=>{const On=(0,J.o0)(ge.key,de);(0,J.uC)(On)},callback:zn?Ae:null}})},he=le=>{var ee;let{e:ge,combo:de,store:fe,scale:Ae}=le;if(ge.button!==0)return;const te=fe.getHotItem(de.key),Ie=(0,G.UU)({initKeyList:[de.key],sdk:fe});if(!(0,G._c)({type:"widget",count:Ie}))return;if((te==null||(ee=te.sub)==null?void 0:ee.length)===0){MB.notice({text:I18N.dUtils.widget_create_success});return}sdkStore.combineMergeMark("create-combo-widget-dblclick");const ln=MB.__store__.getState(),Qe=(0,Y.RX)(ln),dn=(0,P.p$)(ln),fn=dt(dn),{w:Tn,h:un}=gt(te,fe),{left:gn,top:ne}=(0,K.u5)({width:Tn,height:un,scale:Ae}),bn=B.Z.xy(gn,ne),en=MB.getCurrentScreen().cid;let Bn=en;const Ln=fe.getSubHotItemList(de.key).filter(zn=>{let{key:On,hotAttr:{type:an}}=zn;return an===rt.x.Canvas});if(!(Ln!=null&&Ln.length))if(fn)Bn=fn;else{const zn=(0,X.Tg)(bn,Qe.key);zn&&(0,z.Op)(zn)&&(Bn=zn)}const vn=(0,at.CU)({combo:te,worldPos:bn,size:{width:Tn,height:un},keyRndSup:Bn,currentPageKey:en,store:fe});vn.some(zn=>{const On=sdkStore.getHotItem(zn);return[rt.x.WTear,rt.x.WSticky].includes(On.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:rebuild:screen-widget-tree"),MB.action("entry:select:items",{cids:vn}),MB.action("entry:refresh:link-list"),MB.action(E.y.entryKey["font:cloudFontExtList:refresh"]),MB.action(E.y.entryKey["font:missFontKeyMap:update"]),MB.action("entry:publish:create:items:success",{newKeys:vn}),MB.notice({text:I18N.dUtils.widget_create_success}),sdkStore.combineMerge("create-combo-widget-dblclick")};let _e=function(le){return le.PEN="pen",le.PENCIL="pencil",le}({});const Fe=le=>{if(!le)return;const{name:ee}=le;return ee!==rt.x.WVector?ee:le.vector.toolType||ee},Re=le=>{var ee;if(le)return(le==null||(ee=le.attrs)==null?void 0:ee.toolType)||le.name}},81940:($t,wt,w)=>{"use strict";w.d(wt,{$:()=>O});var Z=w(68496);function I(b,M){let W=0,st=0,rt=0;const m=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,U=/^rgb/i;if(m.test(b))W=parseInt(b.substring(1,3),16),st=parseInt(b.substring(3,5),16),rt=parseInt(b.substring(5,7),16);else if(U.test(b)){var A;const R=(((A=b.split("rgba("))==null?void 0:A.length)===1?b.split("rgb("):b.split("rgba("))[1].split(")")[0].split(",");W=R[0],st=R[1],rt=R[2]}else return b;W=parseInt(W*(100+M)/100),st=parseInt(st*(100+M)/100),rt=parseInt(rt*(100+M)/100),W=W<255?W:255,st=st<255?st:255,rt=rt<255?rt:255;const j=W.toString(16).length===1?"0"+W.toString(16):W.toString(16),it=st.toString(16).length===1?"0"+st.toString(16):st.toString(16),Y=rt.toString(16).length===1?"0"+rt.toString(16):rt.toString(16);return"#"+j+it+Y}const O=(b,M)=>{const{fill:W,textV0:st,refWCKey:rt}=b,m=(0,Z.t0)(W.solidColor);let U=I(m,-20);(m==="transparent"||!W.fillIsVisible)&&(U="#ccc"),m||(U="#c1b97e");const A=st.textColor?I(st.textColor,20):"#7D8694";let j=rt===""?"#FFFFFF":U;return M&&(M.stickyKey===b.cid||M.stickyKey==="fake")&&(M.isBinded?j=U:j="#fff"),{lineColor:U,textPlaceHolder:A,circleColor:j}}},13808:($t,wt,w)=>{"use strict";w.d(wt,{Lv:()=>O,Qb:()=>Z,Xh:()=>I});const Z=[{value:1,settingIconName:"design/arrow/arrow_one",size:[8,9],type:"arrow",getPath:(b,M,W,st)=>'<path d="M0 0 L'+b+" "+M/2+" L0 "+M+' Z" fill="'+st+'" fill-rule="nonzero"/>',lineWidth:b=>b},{value:2,settingIconName:"design/arrow/arrow_two",size:[8,9],type:"arrow",getPath:(b,M,W,st)=>'<path d="M'+W*.5+" "+W*.75+" L"+(b-W*.95)+" "+b/2+" L"+W*.5+" "+(M-W*.75)+' Z" stroke-width="'+W+'" stroke-linejoin="miter" fill="transparent" stroke="'+st+'" fill-rule="nonzero"/>',lineWidth:b=>b},{value:3,settingIconName:"design/arrow/arrow_three",size:[8,9],type:"arrow",getPath:(b,M,W,st)=>'<path d="M0 0 L'+b+" "+M/2+" L0 "+M+" L"+Number((b/3).toFixed(1))+" "+(M-W)/2+" L"+b/3+" "+((M-W)/2+W)+' Z" stroke-linejoin="miter" fill="'+st+'" />',lineWidth:b=>b-Number((b/3).toFixed(1)),getRefX:b=>Number((b/3).toFixed(1))},{value:4,settingIconName:"design/arrow/arrow_four",size:[9,9],type:"circle",getPath:(b,M,W,st)=>{const rt=b/2;return'<circle cx="'+rt+'" cy="'+rt+'" r="'+rt+'" fill="'+st+'" />'},lineWidth:b=>b,ScaleCardinality:7},{value:5,settingIconName:"design/arrow/arrow_five",size:[9,9],type:"circle",getPath:(b,M,W,st)=>{const rt=b/2;return' <circle cx="'+rt+'" cy="'+rt+'" r="'+(b-W)/2+'" fill="transparent" stroke-width="'+W+'" stroke="'+st+'" />'},lineWidth:b=>b,ScaleCardinality:7},{value:6,settingIconName:"design/arrow/arrow_six",size:[9,9],type:"rect",getPath:(b,M,W,st)=>'<rect x="0" y="0" width="'+b+'" height="'+M+'" fill="'+st+'" />',lineWidth:b=>b,ScaleCardinality:7},{value:7,settingIconName:"design/arrow/arrow_seven",size:[9,9],type:"rect",getPath:(b,M,W,st)=>{const rt=W/2;return'<path d="M'+rt+" "+rt+" L"+(b-rt)+" "+rt+" L"+(b-rt)+" "+(M-rt)+" L"+rt+" "+(M-rt)+' Z" fill="transparent" stroke="'+st+'" stroke-width="'+W+'" />'},lineWidth:b=>b,ScaleCardinality:7},{value:8,settingIconName:"design/arrow/arrow_eight",size:[11,11],type:"diamond",getPath:(b,M,W,st)=>{const rt=b/2,m=M/2;return'<path d="M'+rt+" 0 L"+b+" "+m+" L"+rt+" "+M+" L0 "+m+' Z" fill="'+st+'" />'},lineWidth:b=>b*.8,getRefX:b=>b*.2,ScaleCardinality:7},{value:9,settingIconName:"design/arrow/arrow_nine",size:[11,11],type:"diamond",getPath:(b,M,W,st)=>{const rt=b/2,m=M/2,U=.75*W;return'<path d="M'+rt+" "+U+" L"+(b-U)+" "+m+" L"+rt+" "+(M-U)+" L"+U+" "+m+' Z" fill="transparent" stroke="'+st+'" stroke-width="'+W+'" stroke-linejoin="miter"/>'},lineWidth:b=>b*.8,getRefX:b=>b*.2,ScaleCardinality:7}],I=b=>Z.filter(M=>M.value===b)[0],O=(b,M)=>{const W=I(b);if(M===1)return{w:W.size[0],h:W.size[1]};switch(W.type){case"arrow":return{w:8+(M-1)*4+M,h:9+(M-1)*4+M};case"diamond":return{w:(W.ScaleCardinality+(M-1)*3+M)/.8,h:(W.ScaleCardinality+(M-1)*3+M)/.8};case"circle":return{w:(W.ScaleCardinality+(M-1)*3+M)*1.1,h:(W.ScaleCardinality+(M-1)*3+M)*1.1};default:return{w:W.ScaleCardinality+(M-1)*3+M,h:W.ScaleCardinality+(M-1)*3+M}}}},72428:($t,wt,w)=>{"use strict";w.d(wt,{BB:()=>Y,CU:()=>at,Dd:()=>P,Nt:()=>j,RQ:()=>R,Td:()=>it,Yx:()=>A});var Z=w(12298),I=w(71604),O=w(63555),b=w(35332),M=w(37051),W=w(79700),st=w(36892),rt=w(21109),m=w(70226);const U={isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!0},A=function($,K,H){H===void 0&&(H=sdkStore),$.forEach(B=>{const X=H.getHotItem(B),V=X.hotAttr.name;if(V==="")return;const L=X.hotAttr.type,ot=(0,I.dD)(V),z=H.getSubHotItemList(K).filter(F=>F.hotAttr.type===L).map(F=>{const{hotAttr:{name:k}}=F,ut=(0,I.dD)(k);if(ut===ot)return(0,I.AB)(k,ut)}).filter(F=>F).sort((F,k)=>k-F);(z==null?void 0:z.length)>1&&H.updateHotAttrKV(B,"name",z[0]?ot+" "+(z[0]+1):ot)})},j=$=>{var K;let{selections:H,currentPageKey:B=(K=MB.getCurrentScreen())==null?void 0:K.cid,keyRndSup:X,commonKeyRndSup:V,store:L=sdkStore,option:ot=U,keepSup:G=!1}=$;G||(0,Z.D7)(H.filter(E=>{const J=L.getHotItem(E).hotAttr.type;return J===O.x.WSticky||J===O.x.WTear}),B,L),(0,Z.OV)(H,X,L),(0,Z.gs)(B,H,L),(0,Z.tu)(H.filter(E=>L.getHotItem(E).hotAttr.type===O.x.Canvas),X,L);const z={...U,...ot},{isRename:F,isRenameOnCreate:k,isOptionDup:ut}=z;F&&V===X&&(k?A(H,X,L):(0,Z.rq)(H,X,L,ut))},it=$=>{let{data:K,worldPos:H,keyRndSup:B,commonKeyRndSup:X,currentPageKey:V,store:L=sdkStore,option:ot=U,keepSup:G}=$;const z=L.loadSubtreeTL(K,B,H.x,H.y);return j({selections:z,currentPageKey:V,keyRndSup:B,commonKeyRndSup:X,store:L,option:ot,keepSup:G}),z},Y=$=>{let{data:K,worldPos:H,keyRndSup:B,currentPageKey:X,store:V=sdkStore,option:L={isRenameOnCreate:!0,isResetStickyPoint:!0},offset:ot}=$;const G=it({data:K,worldPos:H,keyRndSup:B,commonKeyRndSup:B,currentPageKey:X,store:V,option:L});return(0,Z.F6)(G,V,ot,L==null?void 0:L.isResetStickyPoint),(0,m.WV)(G),(0,Z.gs)(X,[],V),G},P=($,K,H,B,X)=>{const V=sdkStore.loadSubtreeTL($,H,K.x,K.y),L=(0,Z.dk)(B),ot=L&&sdkStore.getHotItem(L)||null,G=(0,rt.G9)(H,V),z=(0,rt.Rl)(),F=(0,rt.wr)(),k=[];for(const ut of V){const E=sdkStore.getHotItem(ut),J=sdkStore.getHotAABB(ut),dt=G(J),pt=(ot==null?void 0:ot.hotAttr.type)==="wWrap"?L:!rt.Uj.has(E.hotAttr.type)&&dt?dt:H,T={key:ut,sup:pt,hotAttr:{...sdkStore.getRelocateLocalXYR(ut,pt),zIndex:F.getReStackZIndex(ut,pt),...X===pt&&{name:z(pt,E.hotAttr.type,E.hotAttr.name)}}};k.push(T)}return sdkStore.updateHotItemBatch(k.map(ut=>{const{key:E,sup:J,hotAttr:dt}=ut,pt=sdkStore.getHotItem(E);return{key:E,sup:J||pt.sup,hotAttr:{...pt.hotAttr,...dt},sub:pt.sub}})),(0,Z.gs)(H,V,sdkStore),(0,Z.tu)(V.filter(ut=>sdkStore.getHotItem(ut).hotAttr.type===O.x.Canvas),H,sdkStore),V},R=($,K,H,B,X)=>{const V=K.getHotItem($),[L,ot,G,z]=K.getHotKeyListAABB(V.sub),F=G-L,k=z-ot,ut=[H.x,H.y,H.x+F,H.y+k],E=(0,Z.dk)(X),J=E&&sdkStore.getHotItem(E)||null,dt=(0,rt.G9)(B),pt=(0,rt.YQ)(),T=(0,rt.Us)(),ht=K.getSubHotItemList($).filter(bt=>!(0,st.yT)(bt.hotAttr.type)),yt=K.saveSubtree(V.sub),ct=sdkStore.loadSubtreeTL(yt,B,H.x,H.y),gt=[];if(ht.length===1){const bt=dt(ut),Tt=(J==null?void 0:J.hotAttr.type)==="wWrap"?E:bt||B,Pt=ct.filter(Dt=>{var jt;return!(0,st.yT)(((jt=sdkStore.getHotItem(Dt))==null||(jt=jt.hotAttr)==null?void 0:jt.type)||"")}),It=sdkStore.getHotItem(Pt[0]);sdkStore.updateHotItem({...It,sup:Tt,hotAttr:{...It.hotAttr,...sdkStore.getRelocateLocalXYR(Pt[0],Tt),name:pt(Tt,It.hotAttr.type,V.hotAttr.name),zIndex:T(Pt[0],Tt)}}),gt.push(Pt[0])}else if(ht.length>1){const bt=(0,b.cF)("ww"),Tt=dt(ut),Pt=(J==null?void 0:J.hotAttr.type)==="wWrap"?E:Tt||B,It=ct.filter(Dt=>{var jt;return!(0,st.yT)(((jt=sdkStore.getHotItem(Dt))==null||(jt=jt.hotAttr)==null?void 0:jt.type)||"")});sdkStore.summonWWrap(It,Pt,bt,pt(Pt,"wWrap",V.hotAttr.name),T(It[0],Pt),!0,!0),gt.push(bt)}return gt},at=$=>{let{combo:K,worldPos:H,size:B,keyRndSup:X,currentPageKey:V,store:L=sdkStore}=$;const{sub:ot,hotAttr:{name:G}}=K,z=ot.filter(T=>{var ht;return![O.x.WSticky,O.x.WTear].includes((ht=L.getHotItem(T))==null||(ht=ht.hotAttr)==null?void 0:ht.type)}),F=L.saveSubtree(ot),[k,ut]=L.getHotKeyListAABB(ot),E={x:H.x-k,y:H.y-ut},J=(0,M._)(X);let dt=[];if((z==null?void 0:z.length)===1){var pt;const T=((pt=L.getHotItem(z[0]))==null||(pt=pt.hotAttr)==null?void 0:pt.type)===O.x.WWrap;dt=Y({data:F,worldPos:H,keyRndSup:X,currentPageKey:V,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}),T&&(sdkStore.updateHotAttrMerge(dt[0],{name:G,zIndex:J}),A([dt[0]],X))}else if((z==null?void 0:z.length)>1){const T=H.x-B.width/2,ht=H.y-B.height/2,ct={key:(0,b.cF)("ww"),sub:[],sup:X,hotAttr:{...W.N[O.x.WWrap](!0,!0,G,J,T,ht,B.width,B.height)}};sdkStore.updateHotItem(ct),A([ct.key],X);const bt=Y({data:F,worldPos:H,keyRndSup:ct.key,currentPageKey:V,option:{isRename:!1,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}).filter(Tt=>(0,st.yT)(sdkStore.getHotItem(Tt).hotAttr.type));dt=[ct.key,...bt]}else dt=Y({data:F,worldPos:H,keyRndSup:X,currentPageKey:V,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E});return dt}},12298:($t,wt,w)=>{"use strict";w.d(wt,{Ar:()=>pt,CB:()=>H,D7:()=>$,Dl:()=>P,F6:()=>z,K6:()=>B,OV:()=>X,Q5:()=>R,WO:()=>j,Z_:()=>K,Zb:()=>Y,_W:()=>it,dk:()=>at,gs:()=>k,hf:()=>F,rq:()=>G,tu:()=>V});var Z=w(6527),I=w.n(Z),O=w(54432),b=w.n(O),M=w(20592),W=w(59742),st=w(25399),rt=w(63555),m=w(13780),U=w(73734),A=w(36892);const j=(T,ht)=>{const yt=m.L.applyInverse(T,{x:ht-window.innerWidth/2,y:-T.size.h/2}),ct=m.L.applyInverse(T,{x:ht-window.innerWidth/2+T.size.w,y:T.size.h/2});return[yt.x,yt.y,ct.x,ct.y]},it=(T,ht,yt)=>{const ct=j(T,ht);return(0,M.Pn)(ct,yt)},Y=(T,ht,yt)=>{const ct=j(T,ht);return(0,M.cj)(ct,yt)},P=(T,ht)=>m.L.applyInverse(T,{x:ht-window.innerWidth/2+T.size.w/2,y:0}),R=(T,ht)=>sdkStore.getHotItem(ht).sub.reduce((yt,ct)=>{if(sdkStore.getHotItem(ct).hotAttr.type!=="rResBunch"){const bt=sdkStore.getHotAABB(ct);if(bt[0]>T)return yt.concat([bt])}return yt},[]).sort((yt,ct)=>yt[0]-ct[0]).shift(),at=function(T,ht){return ht===void 0&&(ht=sdkStore),T.reduce((ct,gt,bt)=>ht.isTrashed(gt)?ct:bt!==0?I()(ct,ht.findUpHotItemList(gt).filter(Tt=>!(0,W.OO)(Tt.key)).map(Tt=>Tt.key).slice(1)):ht.findUpHotItemList(gt).filter(Tt=>!(0,W.OO)(Tt.key)).map(Tt=>Tt.key).slice(1),[])[0]},$=function(T,ht,yt){yt===void 0&&(yt=sdkStore),T.forEach(ct=>{yt.changeRndSup(ct,ht)})},K=function(T,ht){return ht===void 0&&(ht=sdkStore),ht.getSubHotItemList(T).reduce((yt,ct)=>{let{hotAttr:{type:gt,zIndex:bt}}=ct;return rt.Q.ALWAYS_ON_TOP_NAMES.includes(gt)?yt:Math.max(yt,bt)},0)},H=function(T,ht,yt){yt===void 0&&(yt=sdkStore);const ct=[],gt=[];return T.sort((bt,Tt)=>yt.getHotItem(bt).hotAttr.zIndex-yt.getHotItem(Tt).hotAttr.zIndex).forEach(bt=>{const{zIndex:Tt}=sdkStore.getHotItem(bt).hotAttr;Tt>ht?gt.push(bt):ct.push(bt)}),{lowZIndexItemsKeyList:ct,highZIndexItemsKeyList:gt}},B=function(T,ht,yt){yt===void 0&&(yt=sdkStore);const ct=[],gt=[];return T.sort((bt,Tt)=>yt.getHotItem(bt).hotAttr.order-yt.getHotItem(Tt).hotAttr.order).forEach(bt=>{const{order:Tt}=sdkStore.getHotItem(bt).hotAttr;Tt>ht?gt.push(bt):ct.push(bt)}),{lowZIndexItemsKeyList:ct,highZIndexItemsKeyList:gt}},X=function(T,ht,yt){yt===void 0&&(yt=sdkStore);let ct=K(ht,yt);T.sort((gt,bt)=>yt.getHotItem(gt).hotAttr.zIndex-yt.getHotItem(bt).hotAttr.zIndex).forEach(gt=>{rt.Q.ALWAYS_ON_TOP_NAMES.includes(yt.getHotItem(gt).hotAttr.type)||yt.updateHotAttrKV(gt,"zIndex",++ct)})},V=function(T,ht,yt){yt===void 0&&(yt=sdkStore);let ct=yt.getSubHotItemList(ht).filter(gt=>{const bt=gt.hotAttr.type;return bt!==rt.x.WSticky&&bt!==rt.x.WTear&&!T.includes(gt.key)}).reduce((gt,bt)=>bt.hotAttr.order>gt?bt.hotAttr.order:gt,0);T.sort((gt,bt)=>yt.getHotItem(gt).hotAttr.order-yt.getHotItem(bt).hotAttr.order).forEach(gt=>{yt.updateHotAttrKV(gt,"order",++ct)})},L=/(\s\d+)?$/,ot=/(\sCopy(\s\d+)?)?$/,G=function(T,ht,yt,ct){yt===void 0&&(yt=sdkStore),ct===void 0&&(ct=!1),T.forEach(gt=>{const bt=yt.getHotItem(gt),Tt=bt.hotAttr.name;if(Tt==="")return;const Pt=bt.hotAttr.type,It=yt.getSubHotItemList(ht).filter(Dt=>Dt.hotAttr.type===Pt);if(Pt===rt.x.Canvas&&!ct){const Dt=Tt.replace(L,""),jt=It.reduce((Mt,Q)=>{const vt=new RegExp("^"+b()(Q.hotAttr.name).replace(L,"")+"(\\s\\d+)?$").exec(Q.hotAttr.name);if(vt){const Lt=Number(vt[1]||0);return Lt>Mt?Lt:Mt}return Mt},0);yt.updateHotAttrKV(gt,"name",Dt+" "+(jt+1))}else{const Dt=Tt.replace(ot," Copy"),jt=It.reduce((Mt,Q)=>{const vt=new RegExp("^"+b()(Dt)+"(\\s\\d+)?$").exec(Q.hotAttr.name);if(vt){var Lt;const Rt=Number(vt[1]);return(Lt=Rt>Mt)!=null&&Lt?Rt:Mt}return Mt},0);yt.updateHotAttrKV(gt,"name",Dt+" "+(jt+1))}})},z=function(T,ht,yt,ct){ht===void 0&&(ht=sdkStore),yt===void 0&&(yt={x:0,y:0}),ct===void 0&&(ct=!0);const gt=J(T,ht);for(const Tt of T){const Pt=ht.getHotItem(Tt);switch(Pt.hotAttr.type){case rt.x.WElbow:{const It=gt.has(Pt.hotAttr.refFromKey)?Pt.hotAttr.refFromKey:"",Dt=gt.has(Pt.hotAttr.refToKey)?Pt.hotAttr.refToKey:"",jt={...Pt,hotAttr:{...Pt.hotAttr,refFromKey:It,refToKey:Dt}};ht.updateHotItem(jt);break}case rt.x.WSticky:{const It=gt.has(Pt.hotAttr.refWCKey)?Pt.hotAttr.refWCKey:"";let Dt=Pt.hotAttr.sticky.point;if(It===""){var bt;if(ct)Dt=[];else if(Dt&&(bt=Dt)!=null&&bt.length)if(Pt.hotAttr.refWCKey)Dt=[];else{const[Mt,Q]=Dt;Dt=[Mt+yt.x,Q+yt.y]}}const jt={...Pt,hotAttr:{...Pt.hotAttr,sticky:{...Pt.hotAttr.sticky,point:Dt},refWCKey:It}};ht.updateHotItem(jt);break}case rt.x.WTear:{const It=gt.has(Pt.hotAttr.refWCKey)?Pt.hotAttr.refWCKey:"",Dt={...Pt,hotAttr:{...Pt.hotAttr,refWCKey:It}};ht.updateHotItem(Dt);break}default:break}}},F=(T,ht,yt)=>{const ct=sdkStore.findAllTypeUnderNoSubPage(ht,rt.x.WSticky),gt=sdkStore.findAllTypeUnderNoSubPage(ht,rt.x.WTear),bt=[],Tt=Pt=>{ct.filter(jt=>jt.hotAttr.refWCKey===Pt).forEach(jt=>{const Mt={key:jt.key,hotAttr:{sticky:{point:[]},refWCKey:""}};bt.push(Mt)}),gt.filter(jt=>jt.hotAttr.refWCKey===Pt).forEach(jt=>{const Mt={key:jt.key,hotAttr:{refWCKey:""}};bt.push(Mt)})};for(const Pt of T)Tt(Pt),sdkStore.walkHotItemSubtree(Pt,It=>{Tt(It.key)});yt({type:"entry:widget:change",payload:{flatChgList:bt}})},k=function(T,ht,yt){yt===void 0&&(yt=sdkStore);const ct=new Set(ht),gt=yt.getSubHotItemList(T).filter(It=>{var Dt;return!ct.has(It.key)&&(((Dt=It.hotAttr)==null?void 0:Dt.type)===rt.x.WTear||It.hotAttr.type===rt.x.WSticky)}).sort((It,Dt)=>It.hotAttr.order-Dt.hotAttr.order),bt=[];let Tt=gt.length;gt.forEach((It,Dt)=>{bt.push({...It,hotAttr:{...It.hotAttr,order:Dt+1,zIndex:U.Mh+Dt+1}})});const Pt=[];ht.forEach(It=>{const Dt=yt.getHotItem(It);(0,A.yT)(Dt.hotAttr.type)&&(Tt+=1,Pt.push({...Dt,hotAttr:{...Dt.hotAttr,order:Tt,zIndex:U.Mh+Tt}}))}),yt.updateHotItemBatch([...bt,...Pt])},ut=(T,ht)=>{const yt=[];return E(ht.getHotItem(T),ht,ct=>{if(!ct)return[];yt.push(ct.sub)}),yt.flat()},E=(T,ht,yt)=>{var ct;const gt=[],bt=yt(T);return bt&&gt.push(bt),T==null||(ct=T.sub)==null||ct.forEach(Tt=>{gt.push(...E(ht.getHotItem(Tt),ht,yt))}),gt},J=(T,ht)=>{const yt=T.map(ct=>{const gt=ut(ct,ht);return[ct,...gt]}).flat(1/0);return new Set(yt)},dt=(T,ht,yt,ct)=>{if(ht){if(T.name==="link"&&(T.link_type===Link.TYPE.screen_link&&!yt.has(T.target_cid)||T.link_type===Link.TYPE.state_link&&STATE_LINK_VALID_VALUE.find(gt=>gt===T.targetstate_cid)===void 0&&!ct.has(T.targetstate_cid)))return!1}else if(T.name==="link"&&T.link_type===Link.TYPE.screen_link&&T.target_cid===MB.getCurrentScreen().cid)return!1;return!0},pt=T=>{let ht=[...T];const yt=new Map;for(const ct of ht){const gt=sdkStore.getHotItem(ct);if(!gt)continue;const bt=sdkStore.getHotItem(gt.sup);if(!bt||bt.hotAttr.type!=="wWrap")continue;const Tt=yt.get(bt.key);Tt===void 0?yt.set(bt.key,[ct]):Tt.push(ct)}for(const[ct,gt]of yt)sdkStore.getHotItem(ct).sub.length===gt.length&&(ht=ht.filter(bt=>!gt.includes(bt)),ht.push(ct));return ht}},29673:($t,wt,w)=>{"use strict";w.d(wt,{Kt:()=>M,U5:()=>O,gf:()=>W});var Z=w(63555),I=w(59742);const O=function(st,rt,m){rt===void 0&&(rt=!1),m===void 0&&(m=!1);const U=[],{type:A,children:j}=st,it=m?[Z.x.Canvas,Z.x.WWrap]:[Z.x.WWrap];return U.push(st),it.includes(A)&&j.forEach(Y=>{U.push(...O(Y,rt))}),U},b=st=>{const rt=[],{type:m,children:U}=st;return m===WidgetType.WWrap&&U.forEach(A=>{rt.push(...b(A))}),rt},M=st=>!st.widget.isLock&&!(0,I.OO)(st.widget.cid),W=st=>{const rt=[],{type:m,children:U}=st;return m===Z.x.WWrap?U.forEach(A=>rt.push(...W(A))):rt.push(st),rt}},37051:($t,wt,w)=>{"use strict";w.d(wt,{_:()=>I});var Z=w(63555);const I=function(O,b){b===void 0&&(b=sdkStore);const M=b.getHotItem(O),W=b.getSubHotItemList(O).sort((st,rt)=>rt.hotAttr.zIndex-st.hotAttr.zIndex).filter(st=>st.hotAttr.type!==Z.x.WSticky&&st.hotAttr.type!==Z.x.WTear);return W!=null&&W.length?W[0].hotAttr.zIndex+1:O===MB.getCurrentScreen().cid?MB.getNextWidgetZ():M.hotAttr.zIndex+1}},86998:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>I});const Z=function(O,b){var M={};M.options={};var W={onselection:null,onCopySelection:null,onTableKeyDown:null};for(var st in W)b&&b.hasOwnProperty(st)?M.options[st]=st=="text"?Object.assign(W[st],b[st]):b[st]:M.options[st]=W[st];return M.el=O,M.corner=null,M.selectedCell=null,M.refreshSelection=function(){M.selectedCell&&M.updateSelectionFromCoords(M.selectedCell[0],M.selectedCell[1],M.selectedCell[2],M.selectedCell[3])},M.resetSelection=function(){M.selectedCell=null},M.updateSelection=function(rt,m,U){var A=rt.getAttribute("data-x"),j=rt.getAttribute("data-y");if(m)var it=m.getAttribute("data-x"),Y=m.getAttribute("data-y");else var it=A,Y=j;M.updateSelectionFromCoords(A,j,it,Y,U)},M.updateSelectionFromCoords=function(rt,m,U,A,j){M.resetSelection(),U==null&&(U=rt),A==null&&(A=m),M.selectedCell=[rt,m,U,A],typeof M.options.onselection=="function"&&M.options.onselection(O,rt,m,U,A,j),M.selectedCell=[rt,m,U,A]},M.updateCopySelection=function(rt,m){typeof M.options.onCopySelection=="function"&&M.options.onCopySelection(rt,m)},M.init=function(){Z.current=M},M.destory=function(){M=null,Z.current=null},O.jexcel=M,M.init(),M};Z.current=null,Z.timeControl=null,Z.timeControlLoading=null,Z.isMouseAction=!1,Z.mouseDownControls=function(O){if(O=O||window.event,O.buttons)var b=O.buttons;else if(O.button)var b=O.button;else var b=O.which;var M=Z.getElement(O.target);if(M[0]?Z.current!=M[0].jexcel&&(Z.current&&Z.current.resetSelection(),Z.current=M[0].jexcel):Z.current&&(Z.current.resetSelection(!0),Z.current=null),Z.current&&b!==2)if(O.target.classList.contains("jexcel_corner"))Z.current.selectedCorner=!0;else if(M[1]==2){if(!O.target.classList.contains("jexcel_row")){if(!(O.target.classList.contains("jclose")&&O.target.clientWidth-O.offsetX<50&&O.offsetY<50)){var W=function(U){var A=U.getAttribute("data-x"),j=U.getAttribute("data-y");if(A&&j)return[A,j];if(U.parentNode)return W(U.parentNode)},st=W(O.target);if(st){var rt=st[0],m=st[1];O.shiftKey&&Z.current.selectedCell?Z.current.updateSelectionFromCoords(Z.current.selectedCell[0],Z.current.selectedCell[1],rt,m):Z.current.updateSelectionFromCoords(rt,m),Z.current.selectedHeader=null,Z.current.selectedRow=null}}}}else Z.current.selectedRow=!1;else Z.isMouseAction=!1},Z.mouseOverControls=function(O){var b;if(O=O||window.event,!((b=O)!=null&&(b=b.relatedTarget)!=null&&(b=b.classList)!=null&&b.contains("md-magnifier-color-item"))){if(O.buttons)var M=O.buttons;else if(O.button)var M=O.button;else var M=O.which;if(M?Z.isMouseAction=!0:Z.isMouseAction=!1,Z.current&&Z.isMouseAction==!0){var W=Z.getElement(O.target);if(W[0]){if(Z.current!=W[0].jexcel&&Z.current)return!1;var st=O.target.getAttribute("data-x"),rt=O.target.getAttribute("data-y");if(W[1]==2)if(O.target.classList.contains("jexcel_row")){if(Z.current.selectedRow){var m=Z.current.selectedRow,U=rt;Z.current.updateSelectionFromCoords(0,m,Z.current.options.data[0].length-1,U)}}else st&&rt&&(Z.current.selectedCorner?Z.current.updateCopySelection(st,rt):Z.current.selectedCell&&Z.current.updateSelectionFromCoords(Z.current.selectedCell[0],Z.current.selectedCell[1],st,rt))}}}},Z.doubleClickControls=function(O){if(Z.current&&!O.target.classList.contains("jexcel_corner")){var b=Z.getElement(O.target);if(b[1]==2){var M=function(m){if(m.parentNode){var U=m.getAttribute("data-x"),A=m.getAttribute("data-y");return U&&A?m:M(m.parentNode)}},W=M(O.target);if(!W)return;let st=W.getAttribute("data-x"),rt=W.getAttribute("data-y");Z.current.openEditor(st,rt)}}},Z.getColumnName=function(O){var b="";return O>701?(b+=String.fromCharCode(64+parseInt(O/676)),b+=String.fromCharCode(64+parseInt(O%676/26))):O>25&&(b+=String.fromCharCode(64+parseInt(O/26))),b+=String.fromCharCode(65+O%26),b},Z.getIdFromColumnName=function(O,b){var M=/^[a-zA-Z]+/.exec(O);if(M){for(var W=0,st=0;st<M[0].length;st++)W+=parseInt(M[0].charCodeAt(st)-64)*Math.pow(26,M[0].length-1-st);W--,W<0&&(W=0);var rt=parseInt(/[0-9]+$/.exec(O));rt>0&&rt--,b==!0?O=[W,rt]:O=W+"-"+rt}return O},Z.getColumnNameFromId=function(O){return Array.isArray(O)||(O=O.split("-")),Z.getColumnName(parseInt(O[0]))+(parseInt(O[1])+1)},Z.getElement=function(O){var b=0,M=0;function W(st){st.className&&st.classList.contains("jexcel_container")&&(M=st),st.tagName=="THEAD"?b=1:st.tagName=="TBODY"&&(b=2),st.parentNode&&W(st.parentNode)}return W(O),[M,b]};const I=Z},29288:($t,wt,w)=>{"use strict";w.d(wt,{A:()=>st});var Z=w(51044),I=w(21676);const O=I.Ay.div.withConfig({displayName:"styles__StyledInvalidStatePanel",componentId:"sc-1a90ytu-0"})(["width:100%;height:100%;padding:6px 8px;.box{display:flex;flex-direction:column;width:100%;height:100%;align-items:center;justify-content:space-evenly;background:#ededed;border-radius:2px;.tips{color:#e84030;}}"]);var b=w(57464);const M=()=>(0,b.jsx)(O,{children:(0,b.jsxs)("div",{className:"box",children:[(0,b.jsx)("div",{className:"tips",children:I18N.InvalidStatePanel.re_select}),(0,b.jsx)(W,{})]})}),W=()=>(0,b.jsx)("svg",{width:"24",height:"30",viewBox:"0 0 24 30",xmlns:"http://www.w3.org/2000/svg",children:(0,b.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,b.jsx)("path",{d:"M7.09 30c-.297 0-.595-.04-.893-.16-.795-.317-1.242-1.033-1.044-1.749l2.683-9.942-6.458-1.83c-.596-.158-1.093-.556-1.292-1.073-.198-.517-.05-1.034.398-1.432L14.344.572c.596-.557 1.54-.716 2.335-.438.795.279 1.291.994 1.142 1.71l-2.086 10.34 6.657 1.113c.695.12 1.242.517 1.49 1.034.248.557.1 1.114-.397 1.551L8.58 29.443c-.347.358-.944.557-1.49.557z",fill:"#B7C0C6"}),(0,b.jsx)("path",{fill:"#EDEDED",fillRule:"nonzero",d:"M7.325 14.353l5.276 3.517 1.412 10.824 2.974-.388L15.4 16.13l-3.724-2.483 3.382-4.349-8.575-7.432-1.964 2.268 6.425 5.568z"})]})}),st=M},39875:($t,wt,w)=>{"use strict";w.d(wt,{K2:()=>O,l:()=>b});var Z=w(36861);const I=(j,it)=>{if(j===it)return!0;if(j.byteLength!==it.byteLength)return!1;const Y=new Uint8Array(j),P=new Uint8Array(it);for(let R=0,at=j.byteLength;R<at;R++)if(Y[R]!==P[R])return!1;return!0},O=function(j){j===void 0&&(j=[]);const it=new Uint8Array(j.reduce((P,R)=>P+R.byteLength,0));let Y=0;return j.forEach(P=>{const{byteLength:R}=P;it.set(new Uint8Array(P),Y),Y+=R}),it.buffer},b=function(j,it,Y){return Y===void 0&&(Y=0),it.map(P=>{const R=j.slice(Y,Y+P);return Y+=P,R})},M=Uint8Array.of(0),W=Uint8Array.of(255,255),st=(j,it,Y)=>{const P=[];for(;it<Y;it++)P.push(String.fromCharCode(j.getUint16(2*it,!1)));return P.join("")},rt=j=>{const it=O([j.byteLength%2?M:W,j]),Y=new DataView(it),P=[];for(let R=0,at=Y.byteLength/2;R<at;R+=12288)P.push(st(Y,R,Math.min(at,R+12288)));return P.join("")},m=function(j){j===void 0&&(j="");const it=new DataView(new ArrayBuffer(2*j.length));for(let Y=0,P=j.length;Y<P;Y++)it.setUint16(2*Y,j.charCodeAt(Y),!1);return it.buffer.slice(it.getUint8(0)===0?M.byteLength:W.byteLength)},U=j=>{const{buffer:it,byteOffset:Y,byteLength:P}=j;return it.byteLength===P?it:it.slice(Y,Y+P)},A=(()=>{try{const{crypto:j,isSecureContext:it}=globalThis,Y=async P=>j.subtle.digest("SHA-256",P);if(it&&j.subtle.digest)return Y}catch(j){}try{const{createHash:j}=(0,Z.R)("node:crypto"),it=async Y=>{const P=j("sha256").update(Buffer.from(Y)).digest();return U(P)};if(j&&j("sha256"))return it}catch(j){}return async j=>{throw new Error("not supported")}})()},45803:($t,wt,w)=>{"use strict";w.d(wt,{AO:()=>M});const Z=4294967295,I=4,O=new ArrayBuffer(0),b=Y=>{const P=Y.byteLength;if(P>4294967295)throw new Error("headerArrayBuffer exceeds max size 4294967295, get: "+P);const R=new DataView(new ArrayBuffer(4));return R.setUint32(0,P,!1),[R.buffer,Y]},M=Y=>{const P=new DataView(Y,0,4).getUint32(0,!1);return[Y.slice(4,4+P),4+P]},W=function(Y,P){return P===void 0&&(P=O),concatArrayBuffer([...b(encodeUTF8(Y).buffer),P])},st=Y=>{const[P,R]=M(Y);return[decodeUTF8(P),Y.slice(R)]},rt=function(Y,P){return P===void 0&&(P=O),concatArrayBuffer([...b(fromU16String(Y)),P])},m=Y=>{const[P,R]=M(Y);return[toU16String(P),Y.slice(R)]},U=function(Y){Y===void 0&&(Y=[]);const P=new DataView(new ArrayBuffer(4*Y.length));return Y.forEach((R,at)=>{let{byteLength:$}=R;return P.setUint32(4*at,$,!1)}),concatArrayBuffer([...b(P.buffer),...Y])},A=Y=>{const[P,R]=M(Y),at=new DataView(P),$=[];for(let K=0,H=at.byteLength/4;K<H;K++)$.push(at.getUint32(4*K,!1));return deconcatArrayBuffer(Y,$,R)},j=Y=>{const P=[];for(const R of Y){const at=R.byteLength;if(at>4294967295)throw new Error("arrayBuffer exceeds max size 4294967295, get: "+at);const $=new DataView(new ArrayBuffer(4));$.setUint32(0,at,!1),P.push($.buffer,R)}return concatArrayBuffer(P)},it=Y=>{const P=[];let R=0;for(;R<Y.byteLength;){const at=new DataView(Y.slice(R,R+4)).getUint32(0,!1);P.push(Y.slice(R+4,R+4+at)),R+=4+at}return P}},43105:($t,wt,w)=>{"use strict";w.d(wt,{D:()=>M,l:()=>b});const Z=[],I=[];{const W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(let st=0,rt=W.length;st<rt;++st)Z[st]=W.charAt(st),I[W.charCodeAt(st)]=st;I[45]=62,I[95]=63}const O=(W,st,rt)=>{const m=[];for(;st<rt;st+=3){const U=(W[st]<<16)+(W[st+1]<<8)+W[st+2];m.push(Z[U>>18&63]+Z[U>>12&63]+Z[U>>6&63]+Z[63&U])}return m.join("")},b=function(W){W===void 0&&(W=new ArrayBuffer(0));const st=new Uint8Array(W),rt=st.length,m=rt%3,U=[];for(let A=0,j=rt-m;A<j;A+=12288)U.push(O(st,A,Math.min(j,A+12288)));if(m===1){const A=st[rt-1];U.push(Z[A>>2&63]+Z[A<<4&48]+"==")}else if(m===2){const A=(st[rt-2]<<8)+st[rt-1];U.push(Z[A>>10&63]+Z[A>>4&63]+Z[A<<2&60]+"=")}return U.join("")},M=function(W){W===void 0&&(W="");const st=W.indexOf("="),rt=st===-1?W.length:st;if(rt%4==1)throw new Error("invalid Base64 string u6Count");const m=rt%4,U=3*Math.floor(rt/4)+(m&&(m===2?1:2)),A=new Uint8Array(U);for(let j=0,it=rt-m,Y=0;j<it;j+=4,Y+=3){const P=I[W.charCodeAt(j)]<<18|I[W.charCodeAt(j+1)]<<12|I[W.charCodeAt(j+2)]<<6|I[W.charCodeAt(j+3)];A[Y]=P>>16&255,A[Y+1]=P>>8&255,A[Y+2]=255&P}if(m===2){const j=I[W.charCodeAt(rt-2)]<<2|I[W.charCodeAt(rt-1)]>>4;A[U-1]=255&j}else if(m===3){const j=I[W.charCodeAt(rt-3)]<<10|I[W.charCodeAt(rt-2)]<<4|I[W.charCodeAt(rt-1)]>>2;A[U-2]=j>>8&255,A[U-1]=255&j}return A.buffer}},68380:($t,wt,w)=>{"use strict";w.d(wt,{aw:()=>U,kB:()=>m,q0:()=>b});const Z=Y=>Object.prototype.toString.call(Y).slice(8,-1),I=Y=>JSON.stringify(Y).slice(1,-1),O=(Y,P)=>Y==="String"?JSON.stringify(P):Y==="Object"?"{"+I(Object.keys(P))+"}":Y==="Array"?P.length<=8?"["+P.map(b).join(", ")+"]":"[#"+P.length+"]":Y==="RegExp"?String(P):Y.endsWith("Function")?P.name||"anonymous":I(String(P)),b=Y=>{const P=Z(Y);return"<"+P+"> "+O(P,Y)},M=Y=>(100*Y).toFixed(2)+"%",W=Y=>String(Math.floor(Y)).padStart(2,"0"),st=Y=>{const P=Math.abs(Y);return(Y<0?"-":"")+W(P/60)+":"+W(P%60)},rt=Y=>{const P=.75*Math.abs(Y);return P===0?"0":P<1e-9?(Y/1e-12).toFixed(2)+"pico":P<1e-6?(Y/1e-9).toFixed(2)+"nano":P<.001?(Y/1e-6).toFixed(2)+"micro":P<1?(Y/.001).toFixed(2)+"milli":P<1e3?""+(Y/1).toFixed(2):P<1e6?(Y/1e3).toFixed(2)+"kilo":P<1e9?(Y/1e6).toFixed(2)+"mega":P<1e12?(Y/1e9).toFixed(2)+"giga":P<1e15?(Y/1e12).toFixed(2)+"tera":P<1e18?(Y/1e15).toFixed(2)+"peta":(Y/1e18).toFixed(2)+"exa"},m=Y=>{const P=.75*Math.abs(Y);return P<1e3?Math.floor(Y)+"ms":P<6e4?(Y/1e3).toFixed(2)+"s":P<36e5?(Y/6e4).toFixed(2)+"m":P<864e5?(Y/36e5).toFixed(2)+"h":(Y/864e5).toFixed(2)+"d"},U=Y=>{const P=.75*Math.abs(Y);return P<1024?""+Math.floor(Y):P<1048576?(Y/1024).toFixed(2)+"Ki":P<1073741824?(Y/1048576).toFixed(2)+"Mi":P<1099511627776?(Y/1073741824).toFixed(2)+"Gi":(Y/1099511627776).toFixed(2)+"Ti"},A=Y=>{let{table:P,padFuncList:R=[],cellPad:at=" | ",rowPad:$="\n",widthMaxList:K=P.reduce((H,B)=>(B.forEach((X,V)=>{H[V]=Math.max(String(X).length,H[V]||0)}),H),[])}=Y;return P.map(H=>H.map((B,X)=>{const V=String(B),L=R[X],ot=K[X];return L&&L!=="L"?L==="R"?V.padStart(ot):L(V,ot):V.padEnd(ot)}).join(at)).join($)},j=function(Y,P,R){P===void 0&&(P=2),R===void 0&&(R=" ");const at=(B,X,V,L)=>{if(V>=1&&X){if(Array.isArray(X))return K(B,X,V,L);if(typeof X=="object")return $(B,X,V,L)}const ot=JSON.stringify(X),G=ot===void 0;return!G&&B.push(ot),G},$=(B,X,V,L)=>{const ot=Object.keys(X);B.push("{\n");const G=B.length,z=V-1,F=""+L+R;for(let k=0,ut=ot.length;k<ut;k++){const E=ot[k],J=X[E],dt=B.length;B.push(""),at(B,J,z,F)?B.length--:(B[dt]=""+F+JSON.stringify(E)+": ",B.push(",\n"))}B[B.length-1]=B.length===G?"{}":"\n"+L+"}"},K=(B,X,V,L)=>{B.push("[\n");const ot=B.length,G=V-1,z=""+L+R;for(let F=0,k=X.length;F<k;F++){const ut=X[F];B.push(z),at(B,ut,G,z)&&B.push("null"),B.push(",\n")}B[B.length-1]=B.length===ot?"[]":"\n"+L+"]"},H=[];return at(H,Y,Math.max(P,0)||0,""),H.join("")},it=function(Y,P,R){if(P===void 0&&(P=" "),R===void 0&&(R=""),typeof P!="string"||P.length<2)throw new Error("invalid pad: "+String(P));const at=X=>{const V=X[X.length-1];return V===": "||V==="- "},$=(X,V,L)=>{const ot=Z(V);if(ot==="Array")return H(X,V,L);if(ot==="Object")return K(X,V,L);X.push(ot.endsWith("Function")?ot:O(ot,V),"\n")},K=(X,V,L)=>{const ot=Object.keys(V);if(ot.length===0)return X.push("{}","\n");at(X)&&X.push("\n");for(let G=0,z=ot.length;G<z;G++){const F=ot[G],k=V[F];X.push(L,I(F),": "),$(X,k,""+L+P)}},H=(X,V,L)=>{if(V.length===0)return X.push("[]","\n");at(X)&&X.push("\n");for(let ot=0,G=V.length;ot<G;ot++){const z=V[ot];X.push(L,"- "),$(X,z,""+L+P)}},B=[];return $(B,Y,R),B.length--,B.length===1&&B.unshift(R),B.join("")}},59875:($t,wt,w)=>{"use strict";w.d(wt,{lI:()=>I,vT:()=>Z});const Z=Math.PI/180,I=180/Math.PI,O=M=>M*Z,b=M=>M*I},2937:($t,wt,w)=>{"use strict";w.d(wt,{$G:()=>P,Op:()=>it,Uj:()=>A,Vd:()=>$,XB:()=>I,fQ:()=>U,nK:()=>O,sq:()=>R,u5:()=>M});const Z=(K,H,B)=>{if(K[H]===B)return K;const X=[...K];return X[H]=B,X},I=(K,H)=>H>=0&&H<=K.length-1?[...K.slice(0,H),...K.slice(H+1)]:K,O=(K,H,B)=>[...K.slice(0,H),B,...K.slice(H)],b=(K,H,B)=>B===H?K:B<H?[...K.slice(0,B),...K.slice(B+1,H+1),K[B],...K.slice(H+1)]:[...K.slice(0,H),K[B],...K.slice(H,B),...K.slice(B+1)],M=(K,H)=>[...K,H],W=(K,H)=>[H,...K],st=K=>{if(K.length===0)return K;const H=[...K];return H.pop(),H},rt=K=>{if(K.length===0)return K;const H=[...K];return H.shift(),H},m=(K,H)=>H&&H.length?[...K,...H]:K,U=(K,H)=>K.includes(H)?K:[...K,H],A=(K,H)=>{const B=K.indexOf(H);return~B?[...K.slice(0,B),...K.slice(B+1)]:K},j=(K,H,B)=>{const X=K.indexOf(B);return~X?b(K,H,X):K},it=(K,H)=>{const B=K.findIndex(H);return~B?[...K.slice(0,B),...K.slice(B+1)]:K},Y=(K,H,B)=>{const X=K.findIndex(H);return~X?b(K,B,X):K},P=(K,H,B)=>{const X=K.findIndex(H);if(!~X||K[X]===B)return K;const V=[...K];return V[X]=B,V},R=(K,H,B)=>{const X=K.findIndex(H);if(!~X)return[...K,B];if(K[X]===B)return K;const V=[...K];return V[X]=B,V},at=(K,H,B)=>K.find(H)===void 0?[...K,B]:K,$=(K,H)=>{const B=[];for(let X=0,V=K.length;X<V;X+=H)B.push(K.slice(X,X+H));return B}},25813:($t,wt,w)=>{"use strict";w.d(wt,{I$:()=>st,MK:()=>Z,O1:()=>O,jz:()=>I});const Z=(m,U,A)=>m[U]!==A?{...m,[U]:A}:m,I=(m,U)=>{if(!Object.prototype.hasOwnProperty.call(m,U))return m;const A={...m};return delete A[U],A},O=(m,U)=>{for(const[A,j]of Object.entries(U))if(m[A]!==j)return{...m,...U};return m},b=(m,U)=>{const A={};for(const[j,it]of Object.entries(m))A[j]=U(it,j);return A},M=(m,U)=>{const A={};for(const j of U)Object.prototype.hasOwnProperty.call(m,j)&&(A[j]=m[j]);return A},W=(m,U)=>{const A=Object.entries(m).find(U);return A&&A[0]},st=(m,U)=>{let A;for(const[j,it]of Object.entries(m))U(it,j,m)||(A===void 0&&(A={...m}),delete A[j]);return A||m},rt=m=>{const U={};for(const[A,j]of m)U[A]=j;return U}},99267:($t,wt,w)=>{"use strict";w.d(wt,{O:()=>rt});var Z=w(62427);const I="A",O="B",b="C",M="D",W="E",st=function(m,U){return m===void 0&&(m=0),U===void 0&&(U=!0),{[I]:()=>m,[O]:()=>++m,[b]:()=>--m,[M]:()=>U,[W]:()=>U=!1}},rt=()=>{let m=st(),U=Promise.resolve();return{getLength:()=>m.A(),getTailPromise:()=>U,reset:()=>{m.E(),m=st(),U=Promise.resolve()},push:A=>{const{promise:j,resolve:it}=(0,Z.wT)();m.B();const Y=m,P=()=>{Y.C(),Y.D()&&it()},R=U.then(A);return R.then(P,P),U=j,R}}}},71221:$t=>{"use strict";function wt(I,O,b,M,W,st,rt){var m;W?(m=((st-I)*b+(rt-O)*M)/W,m<0?m=0:m>1&&(m=1)):m=0;var U=I+m*b,A=O+m*M,j=st-U,it=rt-A;return j*j+it*it}function w(I,O,b,M,W,st){var rt=b-I,m=M-O,U=rt*rt+m*m;return wt(I,O,rt,m,U,W,st)}function Z(I,O,b,M,W,st){return Math.sqrt(w(I,O,b,M,W,st))}Z.squared=w,Z.squaredWithPrecalc=wt,$t.exports=Z},84600:($t,wt,w)=>{var Z=w(52508),I=w(43396).each;function O(b,M){this.query=b,this.isUnconditional=M,this.handlers=[],this.mql=window.matchMedia(b);var W=this;this.listener=function(st){W.mql=st.currentTarget||st,W.assess()},this.mql.addListener(this.listener)}O.prototype={constuctor:O,addHandler:function(b){var M=new Z(b);this.handlers.push(M),this.matches()&&M.on()},removeHandler:function(b){var M=this.handlers;I(M,function(W,st){if(W.equals(b))return W.destroy(),!M.splice(st,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){I(this.handlers,function(b){b.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var b=this.matches()?"on":"off";I(this.handlers,function(M){M[b]()})}},$t.exports=O},15538:($t,wt,w)=>{var Z=w(84600),I=w(43396),O=I.each,b=I.isFunction,M=I.isArray;function W(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}W.prototype={constructor:W,register:function(st,rt,m){var U=this.queries,A=m&&this.browserIsIncapable;return U[st]||(U[st]=new Z(st,A)),b(rt)&&(rt={match:rt}),M(rt)||(rt=[rt]),O(rt,function(j){b(j)&&(j={match:j}),U[st].addHandler(j)}),this},unregister:function(st,rt){var m=this.queries[st];return m&&(rt?m.removeHandler(rt):(m.clear(),delete this.queries[st])),this}},$t.exports=W},52508:$t=>{function wt(w){this.options=w,!w.deferSetup&&this.setup()}wt.prototype={constructor:wt,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(w){return this.options===w||this.options.match===w}},$t.exports=wt},43396:$t=>{function wt(I,O){var b=0,M=I.length,W;for(b;b<M&&(W=O(I[b],b),W!==!1);b++);}function w(I){return Object.prototype.toString.apply(I)==="[object Array]"}function Z(I){return typeof I=="function"}$t.exports={isFunction:Z,isArray:w,each:wt}},68218:($t,wt,w)=>{var Z=w(15538);$t.exports=new Z},20921:($t,wt,w)=>{var Z=w(94948),I=function(M){var W=/[height|width]$/;return W.test(M)},O=function(M){var W="",st=Object.keys(M);return st.forEach(function(rt,m){var U=M[rt];rt=Z(rt),I(rt)&&typeof U=="number"&&(U=U+"px"),U===!0?W+=rt:U===!1?W+="not "+rt:W+="("+rt+": "+U+")",m<st.length-1&&(W+=" and ")}),W},b=function(M){var W="";return typeof M=="string"?M:M instanceof Array?(M.forEach(function(st,rt){W+=O(st),rt<M.length-1&&(W+=", ")}),W):O(M)};$t.exports=b},64893:($t,wt,w)=>{var Z="Expected a function",I=NaN,O="[object Symbol]",b=/^\s+|\s+$/g,M=/^[-+]0x[0-9a-f]+$/i,W=/^0b[01]+$/i,st=/^0o[0-7]+$/i,rt=parseInt,m=typeof w.g=="object"&&w.g&&w.g.Object===Object&&w.g,U=typeof self=="object"&&self&&self.Object===Object&&self,A=m||U||Function("return this")(),j=Object.prototype,it=j.toString,Y=Math.max,P=Math.min,R=function(){return A.Date.now()};function at(X,V,L){var ot,G,z,F,k,ut,E=0,J=!1,dt=!1,pt=!0;if(typeof X!="function")throw new TypeError(Z);V=B(V)||0,$(L)&&(J=!!L.leading,dt="maxWait"in L,z=dt?Y(B(L.maxWait)||0,V):z,pt="trailing"in L?!!L.trailing:pt);function T(Dt){var jt=ot,Mt=G;return ot=G=void 0,E=Dt,F=X.apply(Mt,jt),F}function ht(Dt){return E=Dt,k=setTimeout(gt,V),J?T(Dt):F}function yt(Dt){var jt=Dt-ut,Mt=Dt-E,Q=V-jt;return dt?P(Q,z-Mt):Q}function ct(Dt){var jt=Dt-ut,Mt=Dt-E;return ut===void 0||jt>=V||jt<0||dt&&Mt>=z}function gt(){var Dt=R();if(ct(Dt))return bt(Dt);k=setTimeout(gt,yt(Dt))}function bt(Dt){return k=void 0,pt&&ot?T(Dt):(ot=G=void 0,F)}function Tt(){k!==void 0&&clearTimeout(k),E=0,ot=ut=G=k=void 0}function Pt(){return k===void 0?F:bt(R())}function It(){var Dt=R(),jt=ct(Dt);if(ot=arguments,G=this,ut=Dt,jt){if(k===void 0)return ht(ut);if(dt)return k=setTimeout(gt,V),T(ut)}return k===void 0&&(k=setTimeout(gt,V)),F}return It.cancel=Tt,It.flush=Pt,It}function $(X){var V=typeof X;return!!X&&(V=="object"||V=="function")}function K(X){return!!X&&typeof X=="object"}function H(X){return typeof X=="symbol"||K(X)&&it.call(X)==O}function B(X){if(typeof X=="number")return X;if(H(X))return I;if($(X)){var V=typeof X.valueOf=="function"?X.valueOf():X;X=$(V)?V+"":V}if(typeof X!="string")return X===0?X:+X;X=X.replace(b,"");var L=W.test(X);return L||st.test(X)?rt(X.slice(2),L?2:8):M.test(X)?I:+X}$t.exports=at},67109:$t=>{function wt(w,Z){for(var I=-1,O=w==null?0:w.length;++I<O;)if(!Z(w[I],I,w))return!1;return!0}$t.exports=wt},93417:($t,wt,w)=>{var Z=w(76901);function I(O,b){var M=!0;return Z(O,function(W,st,rt){return M=!!b(W,st,rt),M}),M}$t.exports=I},73245:($t,wt,w)=>{var Z=w(56867),I=w(46229),O=w(93577),b=w(73819),M=w(22845),W=w(97023),st=200;function rt(m,U,A){var j=-1,it=I,Y=m.length,P=!0,R=[],at=R;if(A)P=!1,it=O;else if(Y>=st){var $=U?null:M(m);if($)return W($);P=!1,it=b,at=new Z}else at=U?[]:R;t:for(;++j<Y;){var K=m[j],H=U?U(K):K;if(K=A||K!==0?K:0,P&&H===H){for(var B=at.length;B--;)if(at[B]===H)continue t;U&&at.push(H),R.push(K)}else it(at,H,A)||(at!==R&&at.push(H),R.push(K))}return R}$t.exports=rt},22845:($t,wt,w)=>{var Z=w(88313),I=w(43910),O=w(97023),b=1/0,M=Z&&1/O(new Z([,-0]))[1]==b?function(W){return new Z(W)}:I;$t.exports=M},3112:($t,wt,w)=>{var Z=w(56448),I=w(1414),O=w(8465),b=w(27221);function M(W,st,rt){if(!b(rt))return!1;var m=typeof st;return(m=="number"?I(rt)&&O(st,rt.length):m=="string"&&st in rt)?Z(rt[st],W):!1}$t.exports=M},82571:($t,wt,w)=>{var Z=w(67109),I=w(93417),O=w(35605),b=w(77017),M=w(3112);function W(st,rt,m){var U=b(st)?Z:I;return m&&M(st,rt,m)&&(rt=void 0),U(st,O(rt,3))}$t.exports=W},43910:$t=>{function wt(){}$t.exports=wt},73518:($t,wt,w)=>{var Z=w(78869),I=w(27221),O="Expected a function";function b(M,W,st){var rt=!0,m=!0;if(typeof M!="function")throw new TypeError(O);return I(st)&&(rt="leading"in st?!!st.leading:rt,m="trailing"in st?!!st.trailing:m),Z(M,W,{leading:rt,maxWait:W,trailing:m})}$t.exports=b},57015:($t,wt,w)=>{var Z=w(73245);function I(O){return O&&O.length?Z(O):[]}$t.exports=I},90105:($t,wt,w)=>{"use strict";/**
  27. * @license React
  28. * react-dom-server-legacy.browser.production.min.js
  29. *
  30. * Copyright (c) Facebook, Inc. and its affiliates.
  31. *
  32. * This source code is licensed under the MIT license found in the
  33. * LICENSE file in the root directory of this source tree.
  34. */var Z=w(51044);function I(tt){for(var St="https://reactjs.org/docs/error-decoder.html?invariant="+tt,Et=1;Et<arguments.length;Et++)St+="&args[]="+encodeURIComponent(arguments[Et]);return"Minified React error #"+tt+"; visit "+St+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O=Object.prototype.hasOwnProperty,b=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,M={},W={};function st(tt){return O.call(W,tt)?!0:O.call(M,tt)?!1:b.test(tt)?W[tt]=!0:(M[tt]=!0,!1)}function rt(tt,St,Et,Ft,ve,ae,be){this.acceptsBooleans=St===2||St===3||St===4,this.attributeName=Ft,this.attributeNamespace=ve,this.mustUseProperty=Et,this.propertyName=tt,this.type=St,this.sanitizeURL=ae,this.removeEmptyString=be}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(tt){m[tt]=new rt(tt,0,!1,tt,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(tt){var St=tt[0];m[St]=new rt(St,1,!1,tt[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(tt){m[tt]=new rt(tt,2,!1,tt.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(tt){m[tt]=new rt(tt,2,!1,tt,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(tt){m[tt]=new rt(tt,3,!1,tt.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(tt){m[tt]=new rt(tt,3,!0,tt,null,!1,!1)}),["capture","download"].forEach(function(tt){m[tt]=new rt(tt,4,!1,tt,null,!1,!1)}),["cols","rows","size","span"].forEach(function(tt){m[tt]=new rt(tt,6,!1,tt,null,!1,!1)}),["rowSpan","start"].forEach(function(tt){m[tt]=new rt(tt,5,!1,tt.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function A(tt){return tt[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(tt){var St=tt.replace(U,A);m[St]=new rt(St,1,!1,tt,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(tt){var St=tt.replace(U,A);m[St]=new rt(St,1,!1,tt,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(tt){var St=tt.replace(U,A);m[St]=new rt(St,1,!1,tt,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(tt){m[tt]=new rt(tt,1,!1,tt.toLowerCase(),null,!1,!1)}),m.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(tt){m[tt]=new rt(tt,1,!1,tt.toLowerCase(),null,!0,!0)});var j={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=["Webkit","ms","Moz","O"];Object.keys(j).forEach(function(tt){it.forEach(function(St){St=St+tt.charAt(0).toUpperCase()+tt.substring(1),j[St]=j[tt]})});var Y=/["'&<>]/;function P(tt){if(typeof tt=="boolean"||typeof tt=="number")return""+tt;tt=""+tt;var St=Y.exec(tt);if(St){var Et="",Ft,ve=0;for(Ft=St.index;Ft<tt.length;Ft++){switch(tt.charCodeAt(Ft)){case 34:St="&quot;";break;case 38:St="&amp;";break;case 39:St="&#x27;";break;case 60:St="&lt;";break;case 62:St="&gt;";break;default:continue}ve!==Ft&&(Et+=tt.substring(ve,Ft)),ve=Ft+1,Et+=St}tt=ve!==Ft?Et+tt.substring(ve,Ft):Et}return tt}var R=/([A-Z])/g,at=/^ms-/,$=Array.isArray;function K(tt,St){return{insertionMode:tt,selectedValue:St}}function H(tt,St,Et){switch(St){case"select":return K(1,Et.value!=null?Et.value:Et.defaultValue);case"svg":return K(2,null);case"math":return K(3,null);case"foreignObject":return K(1,null);case"table":return K(4,null);case"thead":case"tbody":case"tfoot":return K(5,null);case"colgroup":return K(7,null);case"tr":return K(6,null)}return 4<=tt.insertionMode||tt.insertionMode===0?K(1,null):tt}var B=new Map;function X(tt,St,Et){if(typeof Et!="object")throw Error(I(62));St=!0;for(var Ft in Et)if(O.call(Et,Ft)){var ve=Et[Ft];if(ve!=null&&typeof ve!="boolean"&&ve!==""){if(Ft.indexOf("--")===0){var ae=P(Ft);ve=P((""+ve).trim())}else{ae=Ft;var be=B.get(ae);be!==void 0||(be=P(ae.replace(R,"-$1").toLowerCase().replace(at,"-ms-")),B.set(ae,be)),ae=be,ve=typeof ve=="number"?ve===0||O.call(j,Ft)?""+ve:ve+"px":P((""+ve).trim())}St?(St=!1,tt.push(' style="',ae,":",ve)):tt.push(";",ae,":",ve)}}St||tt.push('"')}function V(tt,St,Et,Ft){switch(Et){case"style":X(tt,St,Ft);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Et.length)||Et[0]!=="o"&&Et[0]!=="O"||Et[1]!=="n"&&Et[1]!=="N"){if(St=m.hasOwnProperty(Et)?m[Et]:null,St!==null){switch(typeof Ft){case"function":case"symbol":return;case"boolean":if(!St.acceptsBooleans)return}switch(Et=St.attributeName,St.type){case 3:Ft&&tt.push(" ",Et,'=""');break;case 4:Ft===!0?tt.push(" ",Et,'=""'):Ft!==!1&&tt.push(" ",Et,'="',P(Ft),'"');break;case 5:isNaN(Ft)||tt.push(" ",Et,'="',P(Ft),'"');break;case 6:!isNaN(Ft)&&1<=Ft&&tt.push(" ",Et,'="',P(Ft),'"');break;default:St.sanitizeURL&&(Ft=""+Ft),tt.push(" ",Et,'="',P(Ft),'"')}}else if(st(Et)){switch(typeof Ft){case"function":case"symbol":return;case"boolean":if(St=Et.toLowerCase().slice(0,5),St!=="data-"&&St!=="aria-")return}tt.push(" ",Et,'="',P(Ft),'"')}}}function L(tt,St,Et){if(St!=null){if(Et!=null)throw Error(I(60));if(typeof St!="object"||!("__html"in St))throw Error(I(61));St=St.__html,St!=null&&tt.push(""+St)}}function ot(tt){var St="";return Z.Children.forEach(tt,function(Et){Et!=null&&(St+=Et)}),St}function G(tt,St,Et,Ft){tt.push(k(Et));var ve=Et=null,ae;for(ae in St)if(O.call(St,ae)){var be=St[ae];if(be!=null)switch(ae){case"children":Et=be;break;case"dangerouslySetInnerHTML":ve=be;break;default:V(tt,Ft,ae,be)}}return tt.push(">"),L(tt,ve,Et),typeof Et=="string"?(tt.push(P(Et)),null):Et}var z=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,F=new Map;function k(tt){var St=F.get(tt);if(St===void 0){if(!z.test(tt))throw Error(I(65,tt));St="<"+tt,F.set(tt,St)}return St}function ut(tt,St,Et,Ft,ve){switch(St){case"select":tt.push(k("select"));var ae=null,be=null;for(Vn in Et)if(O.call(Et,Vn)){var Ue=Et[Vn];if(Ue!=null)switch(Vn){case"children":ae=Ue;break;case"dangerouslySetInnerHTML":be=Ue;break;case"defaultValue":case"value":break;default:V(tt,Ft,Vn,Ue)}}return tt.push(">"),L(tt,be,ae),ae;case"option":be=ve.selectedValue,tt.push(k("option"));var Cn=Ue=null,Pn=null,Vn=null;for(ae in Et)if(O.call(Et,ae)){var Dr=Et[ae];if(Dr!=null)switch(ae){case"children":Ue=Dr;break;case"selected":Pn=Dr;break;case"dangerouslySetInnerHTML":Vn=Dr;break;case"value":Cn=Dr;default:V(tt,Ft,ae,Dr)}}if(be!=null)if(Et=Cn!==null?""+Cn:ot(Ue),$(be)){for(Ft=0;Ft<be.length;Ft++)if(""+be[Ft]===Et){tt.push(' selected=""');break}}else""+be===Et&&tt.push(' selected=""');else Pn&&tt.push(' selected=""');return tt.push(">"),L(tt,Vn,Ue),Ue;case"textarea":tt.push(k("textarea")),Vn=be=ae=null;for(Ue in Et)if(O.call(Et,Ue)&&(Cn=Et[Ue],Cn!=null))switch(Ue){case"children":Vn=Cn;break;case"value":ae=Cn;break;case"defaultValue":be=Cn;break;case"dangerouslySetInnerHTML":throw Error(I(91));default:V(tt,Ft,Ue,Cn)}if(ae===null&&be!==null&&(ae=be),tt.push(">"),Vn!=null){if(ae!=null)throw Error(I(92));if($(Vn)&&1<Vn.length)throw Error(I(93));ae=""+Vn}return typeof ae=="string"&&ae[0]==="\n"&&tt.push("\n"),ae!==null&&tt.push(P(""+ae)),null;case"input":tt.push(k("input")),Cn=Vn=Ue=ae=null;for(be in Et)if(O.call(Et,be)&&(Pn=Et[be],Pn!=null))switch(be){case"children":case"dangerouslySetInnerHTML":throw Error(I(399,"input"));case"defaultChecked":Cn=Pn;break;case"defaultValue":Ue=Pn;break;case"checked":Vn=Pn;break;case"value":ae=Pn;break;default:V(tt,Ft,be,Pn)}return Vn!==null?V(tt,Ft,"checked",Vn):Cn!==null&&V(tt,Ft,"checked",Cn),ae!==null?V(tt,Ft,"value",ae):Ue!==null&&V(tt,Ft,"value",Ue),tt.push("/>"),null;case"menuitem":tt.push(k("menuitem"));for(var Qi in Et)if(O.call(Et,Qi)&&(ae=Et[Qi],ae!=null))switch(Qi){case"children":case"dangerouslySetInnerHTML":throw Error(I(400));default:V(tt,Ft,Qi,ae)}return tt.push(">"),null;case"title":tt.push(k("title")),ae=null;for(Dr in Et)if(O.call(Et,Dr)&&(be=Et[Dr],be!=null))switch(Dr){case"children":ae=be;break;case"dangerouslySetInnerHTML":throw Error(I(434));default:V(tt,Ft,Dr,be)}return tt.push(">"),ae;case"listing":case"pre":tt.push(k(St)),be=ae=null;for(Cn in Et)if(O.call(Et,Cn)&&(Ue=Et[Cn],Ue!=null))switch(Cn){case"children":ae=Ue;break;case"dangerouslySetInnerHTML":be=Ue;break;default:V(tt,Ft,Cn,Ue)}if(tt.push(">"),be!=null){if(ae!=null)throw Error(I(60));if(typeof be!="object"||!("__html"in be))throw Error(I(61));Et=be.__html,Et!=null&&(typeof Et=="string"&&0<Et.length&&Et[0]==="\n"?tt.push("\n",Et):tt.push(""+Et))}return typeof ae=="string"&&ae[0]==="\n"&&tt.push("\n"),ae;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":tt.push(k(St));for(var Bi in Et)if(O.call(Et,Bi)&&(ae=Et[Bi],ae!=null))switch(Bi){case"children":case"dangerouslySetInnerHTML":throw Error(I(399,St));default:V(tt,Ft,Bi,ae)}return tt.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return G(tt,Et,St,Ft);case"html":return ve.insertionMode===0&&tt.push("<!DOCTYPE html>"),G(tt,Et,St,Ft);default:if(St.indexOf("-")===-1&&typeof Et.is!="string")return G(tt,Et,St,Ft);tt.push(k(St)),be=ae=null;for(Pn in Et)if(O.call(Et,Pn)&&(Ue=Et[Pn],Ue!=null))switch(Pn){case"children":ae=Ue;break;case"dangerouslySetInnerHTML":be=Ue;break;case"style":X(tt,Ft,Ue);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:st(Pn)&&typeof Ue!="function"&&typeof Ue!="symbol"&&tt.push(" ",Pn,'="',P(Ue),'"')}return tt.push(">"),L(tt,be,ae),ae}}function E(tt,St,Et){if(tt.push('<!--$?--><template id="'),Et===null)throw Error(I(395));return tt.push(Et),tt.push('"></template>')}function J(tt,St,Et,Ft){switch(Et.insertionMode){case 0:case 1:return tt.push('<div hidden id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 2:return tt.push('<svg aria-hidden="true" style="display:none" id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 3:return tt.push('<math aria-hidden="true" style="display:none" id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 4:return tt.push('<table hidden id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 5:return tt.push('<table hidden><tbody id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 6:return tt.push('<table hidden><tr id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');case 7:return tt.push('<table hidden><colgroup id="'),tt.push(St.segmentPrefix),St=Ft.toString(16),tt.push(St),tt.push('">');default:throw Error(I(397))}}function dt(tt,St){switch(St.insertionMode){case 0:case 1:return tt.push("</div>");case 2:return tt.push("</svg>");case 3:return tt.push("</math>");case 4:return tt.push("</table>");case 5:return tt.push("</tbody></table>");case 6:return tt.push("</tr></table>");case 7:return tt.push("</colgroup></table>");default:throw Error(I(397))}}var pt=/[<\u2028\u2029]/g;function T(tt){return JSON.stringify(tt).replace(pt,function(St){switch(St){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ht(tt,St){return St=St===void 0?"":St,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:St+"P:",segmentPrefix:St+"S:",boundaryPrefix:St+"B:",idPrefix:St,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:tt}}function yt(tt,St,Et,Ft){return Et.generateStaticMarkup?(tt.push(P(St)),!1):(St===""?tt=Ft:(Ft&&tt.push("<!-- -->"),tt.push(P(St)),tt=!0),tt)}var ct=Object.assign,gt=Symbol.for("react.element"),bt=Symbol.for("react.portal"),Tt=Symbol.for("react.fragment"),Pt=Symbol.for("react.strict_mode"),It=Symbol.for("react.profiler"),Dt=Symbol.for("react.provider"),jt=Symbol.for("react.context"),Mt=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),vt=Symbol.for("react.suspense_list"),Lt=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),Bt=Symbol.for("react.scope"),Ht=Symbol.for("react.debug_trace_mode"),zt=Symbol.for("react.legacy_hidden"),Kt=Symbol.for("react.default_value"),ce=Symbol.iterator;function oe(tt){if(tt==null)return null;if(typeof tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt;switch(tt){case Tt:return"Fragment";case bt:return"Portal";case It:return"Profiler";case Pt:return"StrictMode";case Q:return"Suspense";case vt:return"SuspenseList"}if(typeof tt=="object")switch(tt.$$typeof){case jt:return(tt.displayName||"Context")+".Consumer";case Dt:return(tt._context.displayName||"Context")+".Provider";case Mt:var St=tt.render;return tt=tt.displayName,tt||(tt=St.displayName||St.name||"",tt=tt!==""?"ForwardRef("+tt+")":"ForwardRef"),tt;case Lt:return St=tt.displayName||null,St!==null?St:oe(tt.type)||"Memo";case Rt:St=tt._payload,tt=tt._init;try{return oe(tt(St))}catch(Et){}}return null}var he={};function _e(tt,St){if(tt=tt.contextTypes,!tt)return he;var Et={},Ft;for(Ft in tt)Et[Ft]=St[Ft];return Et}var Fe=null;function Re(tt,St){if(tt!==St){tt.context._currentValue2=tt.parentValue,tt=tt.parent;var Et=St.parent;if(tt===null){if(Et!==null)throw Error(I(401))}else{if(Et===null)throw Error(I(401));Re(tt,Et)}St.context._currentValue2=St.value}}function le(tt){tt.context._currentValue2=tt.parentValue,tt=tt.parent,tt!==null&&le(tt)}function ee(tt){var St=tt.parent;St!==null&&ee(St),tt.context._currentValue2=tt.value}function ge(tt,St){if(tt.context._currentValue2=tt.parentValue,tt=tt.parent,tt===null)throw Error(I(402));tt.depth===St.depth?Re(tt,St):ge(tt,St)}function de(tt,St){var Et=St.parent;if(Et===null)throw Error(I(402));tt.depth===Et.depth?Re(tt,Et):de(tt,Et),St.context._currentValue2=St.value}function fe(tt){var St=Fe;St!==tt&&(St===null?ee(tt):tt===null?le(St):St.depth===tt.depth?Re(St,tt):St.depth>tt.depth?ge(St,tt):de(St,tt),Fe=tt)}var Ae={isMounted:function(){return!1},enqueueSetState:function(tt,St){tt=tt._reactInternals,tt.queue!==null&&tt.queue.push(St)},enqueueReplaceState:function(tt,St){tt=tt._reactInternals,tt.replace=!0,tt.queue=[St]},enqueueForceUpdate:function(){}};function te(tt,St,Et,Ft){var ve=tt.state!==void 0?tt.state:null;tt.updater=Ae,tt.props=Et,tt.state=ve;var ae={queue:[],replace:!1};tt._reactInternals=ae;var be=St.contextType;if(tt.context=typeof be=="object"&&be!==null?be._currentValue2:Ft,be=St.getDerivedStateFromProps,typeof be=="function"&&(be=be(Et,ve),ve=be==null?ve:ct({},ve,be),tt.state=ve),typeof St.getDerivedStateFromProps!="function"&&typeof tt.getSnapshotBeforeUpdate!="function"&&(typeof tt.UNSAFE_componentWillMount=="function"||typeof tt.componentWillMount=="function"))if(St=tt.state,typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount(),St!==tt.state&&Ae.enqueueReplaceState(tt,tt.state,null),ae.queue!==null&&0<ae.queue.length)if(St=ae.queue,be=ae.replace,ae.queue=null,ae.replace=!1,be&&St.length===1)tt.state=St[0];else{for(ae=be?St[0]:tt.state,ve=!0,be=be?1:0;be<St.length;be++){var Ue=St[be];Ue=typeof Ue=="function"?Ue.call(tt,ae,Et,Ft):Ue,Ue!=null&&(ve?(ve=!1,ae=ct({},ae,Ue)):ct(ae,Ue))}tt.state=ae}else ae.queue=null}var Ie={id:1,overflow:""};function cn(tt,St,Et){var Ft=tt.id;tt=tt.overflow;var ve=32-ln(Ft)-1;Ft&=~(1<<ve),Et+=1;var ae=32-ln(St)+ve;if(30<ae){var be=ve-ve%5;return ae=(Ft&(1<<be)-1).toString(32),Ft>>=be,ve-=be,{id:1<<32-ln(St)+ve|Et<<ve|Ft,overflow:ae+tt}}return{id:1<<ae|Et<<ve|Ft,overflow:tt}}var ln=Math.clz32?Math.clz32:fn,Qe=Math.log,dn=Math.LN2;function fn(tt){return tt>>>=0,tt===0?32:31-(Qe(tt)/dn|0)|0}function Tn(tt,St){return tt===St&&(tt!==0||1/tt===1/St)||tt!==tt&&St!==St}var un=typeof Object.is=="function"?Object.is:Tn,gn=null,ne=null,bn=null,en=null,Bn=!1,Ln=!1,vn=0,Fn=null,zn=0;function On(){if(gn===null)throw Error(I(321));return gn}function an(){if(0<zn)throw Error(I(312));return{memoizedState:null,queue:null,next:null}}function mn(){return en===null?bn===null?(Bn=!1,bn=en=an()):(Bn=!0,en=bn):en.next===null?(Bn=!1,en=en.next=an()):(Bn=!0,en=en.next),en}function rr(){ne=gn=null,Ln=!1,bn=null,zn=0,en=Fn=null}function Un(tt,St){return typeof St=="function"?St(tt):St}function fr(tt,St,Et){if(gn=On(),en=mn(),Bn){var Ft=en.queue;if(St=Ft.dispatch,Fn!==null&&(Et=Fn.get(Ft),Et!==void 0)){Fn.delete(Ft),Ft=en.memoizedState;do Ft=tt(Ft,Et.action),Et=Et.next;while(Et!==null);return en.memoizedState=Ft,[Ft,St]}return[en.memoizedState,St]}return tt=tt===Un?typeof St=="function"?St():St:Et!==void 0?Et(St):St,en.memoizedState=tt,tt=en.queue={last:null,dispatch:null},tt=tt.dispatch=yr.bind(null,gn,tt),[en.memoizedState,tt]}function lr(tt,St){if(gn=On(),en=mn(),St=St===void 0?null:St,en!==null){var Et=en.memoizedState;if(Et!==null&&St!==null){var Ft=Et[1];t:if(Ft===null)Ft=!1;else{for(var ve=0;ve<Ft.length&&ve<St.length;ve++)if(!un(St[ve],Ft[ve])){Ft=!1;break t}Ft=!0}if(Ft)return Et[0]}}return tt=tt(),en.memoizedState=[tt,St],tt}function yr(tt,St,Et){if(25<=zn)throw Error(I(301));if(tt===gn)if(Ln=!0,tt={action:Et,next:null},Fn===null&&(Fn=new Map),Et=Fn.get(St),Et===void 0)Fn.set(St,tt);else{for(St=Et;St.next!==null;)St=St.next;St.next=tt}}function Xn(){throw Error(I(394))}function Pr(){}var Ar={readContext:function(tt){return tt._currentValue2},useContext:function(tt){return On(),tt._currentValue2},useMemo:lr,useReducer:fr,useRef:function(tt){gn=On(),en=mn();var St=en.memoizedState;return St===null?(tt={current:tt},en.memoizedState=tt):St},useState:function(tt){return fr(Un,tt)},useInsertionEffect:Pr,useLayoutEffect:function(){},useCallback:function(tt,St){return lr(function(){return tt},St)},useImperativeHandle:Pr,useEffect:Pr,useDebugValue:Pr,useDeferredValue:function(tt){return On(),tt},useTransition:function(){return On(),[!1,Xn]},useId:function(){var tt=ne.treeContext,St=tt.overflow;tt=tt.id,tt=(tt&~(1<<32-ln(tt)-1)).toString(32)+St;var Et=Yn;if(Et===null)throw Error(I(404));return St=vn++,tt=":"+Et.idPrefix+"R"+tt,0<St&&(tt+="H"+St.toString(32)),tt+":"},useMutableSource:function(tt,St){return On(),St(tt._source)},useSyncExternalStore:function(tt,St,Et){if(Et===void 0)throw Error(I(407));return Et()}},Yn=null,Tr=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ji(tt){return console.error(tt),null}function qt(){}function Jt(tt,St,Et,Ft,ve,ae,be,Ue,Cn){var Pn=[],Vn=new Set;return St={destination:null,responseState:St,progressiveChunkSize:Ft===void 0?12800:Ft,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Vn,pingedTasks:Pn,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ve===void 0?Ji:ve,onAllReady:ae===void 0?qt:ae,onShellReady:be===void 0?qt:be,onShellError:Ue===void 0?qt:Ue,onFatalError:Cn===void 0?qt:Cn},Et=xe(St,0,null,Et,!1,!1),Et.parentFlushed=!0,tt=se(St,tt,null,Et,Vn,he,null,Ie),Pn.push(tt),St}function se(tt,St,Et,Ft,ve,ae,be,Ue){tt.allPendingTasks++,Et===null?tt.pendingRootTasks++:Et.pendingTasks++;var Cn={node:St,ping:function(){var Pn=tt.pingedTasks;Pn.push(Cn),Pn.length===1&&bi(tt)},blockedBoundary:Et,blockedSegment:Ft,abortSet:ve,legacyContext:ae,context:be,treeContext:Ue};return ve.add(Cn),Cn}function xe(tt,St,Et,Ft,ve,ae){return{status:0,id:-1,index:St,parentFlushed:!1,chunks:[],children:[],formatContext:Ft,boundary:Et,lastPushedText:ve,textEmbedded:ae}}function ke(tt,St){if(tt=tt.onError(St),tt!=null&&typeof tt!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof tt+'" instead');return tt}function Ne(tt,St){var Et=tt.onShellError;Et(St),Et=tt.onFatalError,Et(St),tt.destination!==null?(tt.status=2,tt.destination.destroy(St)):(tt.status=1,tt.fatalError=St)}function $e(tt,St,Et,Ft,ve){for(gn={},ne=St,vn=0,tt=Et(Ft,ve);Ln;)Ln=!1,vn=0,zn+=1,en=null,tt=Et(Ft,ve);return rr(),tt}function Le(tt,St,Et,Ft){var ve=Et.render(),ae=Ft.childContextTypes;if(ae!=null){var be=St.legacyContext;if(typeof Et.getChildContext!="function")Ft=be;else{Et=Et.getChildContext();for(var Ue in Et)if(!(Ue in ae))throw Error(I(108,oe(Ft)||"Unknown",Ue));Ft=ct({},be,Et)}St.legacyContext=Ft,Ke(tt,St,ve),St.legacyContext=be}else Ke(tt,St,ve)}function He(tt,St){if(tt&&tt.defaultProps){St=ct({},St),tt=tt.defaultProps;for(var Et in tt)St[Et]===void 0&&(St[Et]=tt[Et]);return St}return St}function Ye(tt,St,Et,Ft,ve){if(typeof Et=="function")if(Et.prototype&&Et.prototype.isReactComponent){ve=_e(Et,St.legacyContext);var ae=Et.contextType;ae=new Et(Ft,typeof ae=="object"&&ae!==null?ae._currentValue2:ve),te(ae,Et,Ft,ve),Le(tt,St,ae,Et)}else{ae=_e(Et,St.legacyContext),ve=$e(tt,St,Et,Ft,ae);var be=vn!==0;if(typeof ve=="object"&&ve!==null&&typeof ve.render=="function"&&ve.$$typeof===void 0)te(ve,Et,Ft,ae),Le(tt,St,ve,Et);else if(be){Ft=St.treeContext,St.treeContext=cn(Ft,1,0);try{Ke(tt,St,ve)}finally{St.treeContext=Ft}}else Ke(tt,St,ve)}else if(typeof Et=="string"){switch(ve=St.blockedSegment,ae=ut(ve.chunks,Et,Ft,tt.responseState,ve.formatContext),ve.lastPushedText=!1,be=ve.formatContext,ve.formatContext=H(be,Et,Ft),Qn(tt,St,ae),ve.formatContext=be,Et){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ve.chunks.push("</",Et,">")}ve.lastPushedText=!1}else{switch(Et){case zt:case Ht:case Pt:case It:case Tt:Ke(tt,St,Ft.children);return;case vt:Ke(tt,St,Ft.children);return;case Bt:throw Error(I(343));case Q:t:{Et=St.blockedBoundary,ve=St.blockedSegment,ae=Ft.fallback,Ft=Ft.children,be=new Set;var Ue={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:be,errorDigest:null},Cn=xe(tt,ve.chunks.length,Ue,ve.formatContext,!1,!1);ve.children.push(Cn),ve.lastPushedText=!1;var Pn=xe(tt,0,null,ve.formatContext,!1,!1);Pn.parentFlushed=!0,St.blockedBoundary=Ue,St.blockedSegment=Pn;try{if(Qn(tt,St,Ft),tt.responseState.generateStaticMarkup||Pn.lastPushedText&&Pn.textEmbedded&&Pn.chunks.push("<!-- -->"),Pn.status=1,ur(Ue,Pn),Ue.pendingTasks===0)break t}catch(Vn){Pn.status=4,Ue.forceClientRender=!0,Ue.errorDigest=ke(tt,Vn)}finally{St.blockedBoundary=Et,St.blockedSegment=ve}St=se(tt,ae,Et,Cn,be,St.legacyContext,St.context,St.treeContext),tt.pingedTasks.push(St)}return}if(typeof Et=="object"&&Et!==null)switch(Et.$$typeof){case Mt:if(Ft=$e(tt,St,Et.render,Ft,ve),vn!==0){Et=St.treeContext,St.treeContext=cn(Et,1,0);try{Ke(tt,St,Ft)}finally{St.treeContext=Et}}else Ke(tt,St,Ft);return;case Lt:Et=Et.type,Ft=He(Et,Ft),Ye(tt,St,Et,Ft,ve);return;case Dt:if(ve=Ft.children,Et=Et._context,Ft=Ft.value,ae=Et._currentValue2,Et._currentValue2=Ft,be=Fe,Fe=Ft={parent:be,depth:be===null?0:be.depth+1,context:Et,parentValue:ae,value:Ft},St.context=Ft,Ke(tt,St,ve),tt=Fe,tt===null)throw Error(I(403));Ft=tt.parentValue,tt.context._currentValue2=Ft===Kt?tt.context._defaultValue:Ft,tt=Fe=tt.parent,St.context=tt;return;case jt:Ft=Ft.children,Ft=Ft(Et._currentValue2),Ke(tt,St,Ft);return;case Rt:ve=Et._init,Et=ve(Et._payload),Ft=He(Et,Ft),Ye(tt,St,Et,Ft,void 0);return}throw Error(I(130,Et==null?Et:typeof Et,""))}}function Ke(tt,St,Et){if(St.node=Et,typeof Et=="object"&&Et!==null){switch(Et.$$typeof){case gt:Ye(tt,St,Et.type,Et.props,Et.ref);return;case bt:throw Error(I(257));case Rt:var Ft=Et._init;Et=Ft(Et._payload),Ke(tt,St,Et);return}if($(Et)){yn(tt,St,Et);return}if(Et===null||typeof Et!="object"?Ft=null:(Ft=ce&&Et[ce]||Et["@@iterator"],Ft=typeof Ft=="function"?Ft:null),Ft&&(Ft=Ft.call(Et))){if(Et=Ft.next(),!Et.done){var ve=[];do ve.push(Et.value),Et=Ft.next();while(!Et.done);yn(tt,St,ve)}return}throw tt=Object.prototype.toString.call(Et),Error(I(31,tt==="[object Object]"?"object with keys {"+Object.keys(Et).join(", ")+"}":tt))}typeof Et=="string"?(Ft=St.blockedSegment,Ft.lastPushedText=yt(St.blockedSegment.chunks,Et,tt.responseState,Ft.lastPushedText)):typeof Et=="number"&&(Ft=St.blockedSegment,Ft.lastPushedText=yt(St.blockedSegment.chunks,""+Et,tt.responseState,Ft.lastPushedText))}function yn(tt,St,Et){for(var Ft=Et.length,ve=0;ve<Ft;ve++){var ae=St.treeContext;St.treeContext=cn(ae,Ft,ve);try{Qn(tt,St,Et[ve])}finally{St.treeContext=ae}}}function Qn(tt,St,Et){var Ft=St.blockedSegment.formatContext,ve=St.legacyContext,ae=St.context;try{return Ke(tt,St,Et)}catch(Cn){if(rr(),typeof Cn=="object"&&Cn!==null&&typeof Cn.then=="function"){Et=Cn;var be=St.blockedSegment,Ue=xe(tt,be.chunks.length,null,be.formatContext,be.lastPushedText,!0);be.children.push(Ue),be.lastPushedText=!1,tt=se(tt,St.node,St.blockedBoundary,Ue,St.abortSet,St.legacyContext,St.context,St.treeContext).ping,Et.then(tt,tt),St.blockedSegment.formatContext=Ft,St.legacyContext=ve,St.context=ae,fe(ae)}else throw St.blockedSegment.formatContext=Ft,St.legacyContext=ve,St.context=ae,fe(ae),Cn}}function tr(tt){var St=tt.blockedBoundary;tt=tt.blockedSegment,tt.status=3,ar(this,St,tt)}function Sr(tt,St,Et){var Ft=tt.blockedBoundary;tt.blockedSegment.status=3,Ft===null?(St.allPendingTasks--,St.status!==2&&(St.status=2,St.destination!==null&&St.destination.push(null))):(Ft.pendingTasks--,Ft.forceClientRender||(Ft.forceClientRender=!0,tt=Et===void 0?Error(I(432)):Et,Ft.errorDigest=St.onError(tt),Ft.parentFlushed&&St.clientRenderedBoundaries.push(Ft)),Ft.fallbackAbortableTasks.forEach(function(ve){return Sr(ve,St,Et)}),Ft.fallbackAbortableTasks.clear(),St.allPendingTasks--,St.allPendingTasks===0&&(Ft=St.onAllReady,Ft()))}function ur(tt,St){if(St.chunks.length===0&&St.children.length===1&&St.children[0].boundary===null){var Et=St.children[0];Et.id=St.id,Et.parentFlushed=!0,Et.status===1&&ur(tt,Et)}else tt.completedSegments.push(St)}function ar(tt,St,Et){if(St===null){if(Et.parentFlushed){if(tt.completedRootSegment!==null)throw Error(I(389));tt.completedRootSegment=Et}tt.pendingRootTasks--,tt.pendingRootTasks===0&&(tt.onShellError=qt,St=tt.onShellReady,St())}else St.pendingTasks--,St.forceClientRender||(St.pendingTasks===0?(Et.parentFlushed&&Et.status===1&&ur(St,Et),St.parentFlushed&&tt.completedBoundaries.push(St),St.fallbackAbortableTasks.forEach(tr,tt),St.fallbackAbortableTasks.clear()):Et.parentFlushed&&Et.status===1&&(ur(St,Et),St.completedSegments.length===1&&St.parentFlushed&&tt.partialBoundaries.push(St)));tt.allPendingTasks--,tt.allPendingTasks===0&&(tt=tt.onAllReady,tt())}function bi(tt){if(tt.status!==2){var St=Fe,Et=Tr.current;Tr.current=Ar;var Ft=Yn;Yn=tt.responseState;try{var ve=tt.pingedTasks,ae;for(ae=0;ae<ve.length;ae++){var be=ve[ae],Ue=tt,Cn=be.blockedSegment;if(Cn.status===0){fe(be.context);try{Ke(Ue,be,be.node),Ue.responseState.generateStaticMarkup||Cn.lastPushedText&&Cn.textEmbedded&&Cn.chunks.push("<!-- -->"),be.abortSet.delete(be),Cn.status=1,ar(Ue,be.blockedBoundary,Cn)}catch(pi){if(rr(),typeof pi=="object"&&pi!==null&&typeof pi.then=="function"){var Pn=be.ping;pi.then(Pn,Pn)}else{be.abortSet.delete(be),Cn.status=4;var Vn=be.blockedBoundary,Dr=pi,Qi=ke(Ue,Dr);if(Vn===null?Ne(Ue,Dr):(Vn.pendingTasks--,Vn.forceClientRender||(Vn.forceClientRender=!0,Vn.errorDigest=Qi,Vn.parentFlushed&&Ue.clientRenderedBoundaries.push(Vn))),Ue.allPendingTasks--,Ue.allPendingTasks===0){var Bi=Ue.onAllReady;Bi()}}}finally{}}}ve.splice(0,ae),tt.destination!==null&&Ni(tt,tt.destination)}catch(pi){ke(tt,pi),Ne(tt,pi)}finally{Yn=Ft,Tr.current=Et,Et===Ar&&fe(St)}}}function Ir(tt,St,Et){switch(Et.parentFlushed=!0,Et.status){case 0:var Ft=Et.id=tt.nextSegmentId++;return Et.lastPushedText=!1,Et.textEmbedded=!1,tt=tt.responseState,St.push('<template id="'),St.push(tt.placeholderPrefix),tt=Ft.toString(16),St.push(tt),St.push('"></template>');case 1:Et.status=2;var ve=!0;Ft=Et.chunks;var ae=0;Et=Et.children;for(var be=0;be<Et.length;be++){for(ve=Et[be];ae<ve.index;ae++)St.push(Ft[ae]);ve=Ur(tt,St,ve)}for(;ae<Ft.length-1;ae++)St.push(Ft[ae]);return ae<Ft.length&&(ve=St.push(Ft[ae])),ve;default:throw Error(I(390))}}function Ur(tt,St,Et){var Ft=Et.boundary;if(Ft===null)return Ir(tt,St,Et);if(Ft.parentFlushed=!0,Ft.forceClientRender)return tt.responseState.generateStaticMarkup||(Ft=Ft.errorDigest,St.push("<!--$!-->"),St.push("<template"),Ft&&(St.push(' data-dgst="'),Ft=P(Ft),St.push(Ft),St.push('"')),St.push("></template>")),Ir(tt,St,Et),tt=tt.responseState.generateStaticMarkup?!0:St.push("<!--/$-->"),tt;if(0<Ft.pendingTasks){Ft.rootSegmentID=tt.nextSegmentId++,0<Ft.completedSegments.length&&tt.partialBoundaries.push(Ft);var ve=tt.responseState,ae=ve.nextSuspenseID++;return ve=ve.boundaryPrefix+ae.toString(16),Ft=Ft.id=ve,E(St,tt.responseState,Ft),Ir(tt,St,Et),St.push("<!--/$-->")}if(Ft.byteSize>tt.progressiveChunkSize)return Ft.rootSegmentID=tt.nextSegmentId++,tt.completedBoundaries.push(Ft),E(St,tt.responseState,Ft.id),Ir(tt,St,Et),St.push("<!--/$-->");if(tt.responseState.generateStaticMarkup||St.push("<!--$-->"),Et=Ft.completedSegments,Et.length!==1)throw Error(I(391));return Ur(tt,St,Et[0]),tt=tt.responseState.generateStaticMarkup?!0:St.push("<!--/$-->"),tt}function Gr(tt,St,Et){return J(St,tt.responseState,Et.formatContext,Et.id),Ur(tt,St,Et),dt(St,Et.formatContext)}function sa(tt,St,Et){for(var Ft=Et.completedSegments,ve=0;ve<Ft.length;ve++)Ya(tt,St,Et,Ft[ve]);if(Ft.length=0,tt=tt.responseState,Ft=Et.id,Et=Et.rootSegmentID,St.push(tt.startInlineScript),tt.sentCompleteBoundaryFunction?St.push('$RC("'):(tt.sentCompleteBoundaryFunction=!0,St.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),Ft===null)throw Error(I(395));return Et=Et.toString(16),St.push(Ft),St.push('","'),St.push(tt.segmentPrefix),St.push(Et),St.push('")<\/script>')}function Ya(tt,St,Et,Ft){if(Ft.status===2)return!0;var ve=Ft.id;if(ve===-1){if((Ft.id=Et.rootSegmentID)===-1)throw Error(I(392));return Gr(tt,St,Ft)}return Gr(tt,St,Ft),tt=tt.responseState,St.push(tt.startInlineScript),tt.sentCompleteSegmentFunction?St.push('$RS("'):(tt.sentCompleteSegmentFunction=!0,St.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),St.push(tt.segmentPrefix),ve=ve.toString(16),St.push(ve),St.push('","'),St.push(tt.placeholderPrefix),St.push(ve),St.push('")<\/script>')}function Ni(tt,St){try{var Et=tt.completedRootSegment;if(Et!==null&&tt.pendingRootTasks===0){Ur(tt,St,Et),tt.completedRootSegment=null;var Ft=tt.responseState.bootstrapChunks;for(Et=0;Et<Ft.length-1;Et++)St.push(Ft[Et]);Et<Ft.length&&St.push(Ft[Et])}var ve=tt.clientRenderedBoundaries,ae;for(ae=0;ae<ve.length;ae++){var be=ve[ae];Ft=St;var Ue=tt.responseState,Cn=be.id,Pn=be.errorDigest,Vn=be.errorMessage,Dr=be.errorComponentStack;if(Ft.push(Ue.startInlineScript),Ue.sentClientRenderFunction?Ft.push('$RX("'):(Ue.sentClientRenderFunction=!0,Ft.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Cn===null)throw Error(I(395));if(Ft.push(Cn),Ft.push('"'),Pn||Vn||Dr){Ft.push(",");var Qi=T(Pn||"");Ft.push(Qi)}if(Vn||Dr){Ft.push(",");var Bi=T(Vn||"");Ft.push(Bi)}if(Dr){Ft.push(",");var pi=T(Dr);Ft.push(pi)}if(!Ft.push(")<\/script>")){tt.destination=null,ae++,ve.splice(0,ae);return}}ve.splice(0,ae);var Ci=tt.completedBoundaries;for(ae=0;ae<Ci.length;ae++)if(!sa(tt,St,Ci[ae])){tt.destination=null,ae++,Ci.splice(0,ae);return}Ci.splice(0,ae);var Vi=tt.partialBoundaries;for(ae=0;ae<Vi.length;ae++){var Hs=Vi[ae];t:{ve=tt,be=St;var $a=Hs.completedSegments;for(Ue=0;Ue<$a.length;Ue++)if(!Ya(ve,be,Hs,$a[Ue])){Ue++,$a.splice(0,Ue);var fu=!1;break t}$a.splice(0,Ue),fu=!0}if(!fu){tt.destination=null,ae++,Vi.splice(0,ae);return}}Vi.splice(0,ae);var Ja=tt.completedBoundaries;for(ae=0;ae<Ja.length;ae++)if(!sa(tt,St,Ja[ae])){tt.destination=null,ae++,Ja.splice(0,ae);return}Ja.splice(0,ae)}finally{tt.allPendingTasks===0&&tt.pingedTasks.length===0&&tt.clientRenderedBoundaries.length===0&&tt.completedBoundaries.length===0&&St.push(null)}}function rs(tt,St){try{var Et=tt.abortableTasks;Et.forEach(function(Ft){return Sr(Ft,tt,St)}),Et.clear(),tt.destination!==null&&Ni(tt,tt.destination)}catch(Ft){ke(tt,Ft),Ne(tt,Ft)}}function Za(){}function ko(tt,St,Et,Ft){var ve=!1,ae=null,be="",Ue={push:function(Pn){return Pn!==null&&(be+=Pn),!0},destroy:function(Pn){ve=!0,ae=Pn}},Cn=!1;if(tt=Jt(tt,ht(Et,St?St.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Za,void 0,function(){Cn=!0},void 0,void 0),bi(tt),rs(tt,Ft),tt.status===1)tt.status=2,Ue.destroy(tt.fatalError);else if(tt.status!==2&&tt.destination===null){tt.destination=Ue;try{Ni(tt,Ue)}catch(Pn){ke(tt,Pn),Ne(tt,Pn)}}if(ve)throw ae;if(!Cn)throw Error(I(426));return be}wt.renderToNodeStream=function(){throw Error(I(207))},wt.renderToStaticMarkup=function(tt,St){return ko(tt,St,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},wt.renderToStaticNodeStream=function(){throw Error(I(208))},wt.renderToString=function(tt,St){return ko(tt,St,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},wt.version="18.2.0"},82535:($t,wt,w)=>{"use strict";/**
  35. * @license React
  36. * react-dom-server.browser.production.min.js
  37. *
  38. * Copyright (c) Facebook, Inc. and its affiliates.
  39. *
  40. * This source code is licensed under the MIT license found in the
  41. * LICENSE file in the root directory of this source tree.
  42. */var Z=w(51044);function I(nt){for(var xt="https://reactjs.org/docs/error-decoder.html?invariant="+nt,At=1;At<arguments.length;At++)xt+="&args[]="+encodeURIComponent(arguments[At]);return"Minified React error #"+nt+"; visit "+xt+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var O=null,b=0;function M(nt,xt){if(xt.length!==0)if(512<xt.length)0<b&&(nt.enqueue(new Uint8Array(O.buffer,0,b)),O=new Uint8Array(512),b=0),nt.enqueue(xt);else{var At=O.length-b;At<xt.length&&(At===0?nt.enqueue(O):(O.set(xt.subarray(0,At),b),nt.enqueue(O),xt=xt.subarray(At)),O=new Uint8Array(512),b=0),O.set(xt,b),b+=xt.length}}function W(nt,xt){return M(nt,xt),!0}function st(nt){O&&0<b&&(nt.enqueue(new Uint8Array(O.buffer,0,b)),O=null,b=0)}var rt=new TextEncoder;function m(nt){return rt.encode(nt)}function U(nt){return rt.encode(nt)}function A(nt,xt){typeof nt.error=="function"?nt.error(xt):nt.close()}var j=Object.prototype.hasOwnProperty,it=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Y={},P={};function R(nt){return j.call(P,nt)?!0:j.call(Y,nt)?!1:it.test(nt)?P[nt]=!0:(Y[nt]=!0,!1)}function at(nt,xt,At,Wt,pe,re,Me){this.acceptsBooleans=xt===2||xt===3||xt===4,this.attributeName=Wt,this.attributeNamespace=pe,this.mustUseProperty=At,this.propertyName=nt,this.type=xt,this.sanitizeURL=re,this.removeEmptyString=Me}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(nt){$[nt]=new at(nt,0,!1,nt,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(nt){var xt=nt[0];$[xt]=new at(xt,1,!1,nt[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(nt){$[nt]=new at(nt,2,!1,nt.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(nt){$[nt]=new at(nt,2,!1,nt,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(nt){$[nt]=new at(nt,3,!1,nt.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(nt){$[nt]=new at(nt,3,!0,nt,null,!1,!1)}),["capture","download"].forEach(function(nt){$[nt]=new at(nt,4,!1,nt,null,!1,!1)}),["cols","rows","size","span"].forEach(function(nt){$[nt]=new at(nt,6,!1,nt,null,!1,!1)}),["rowSpan","start"].forEach(function(nt){$[nt]=new at(nt,5,!1,nt.toLowerCase(),null,!1,!1)});var K=/[\-:]([a-z])/g;function H(nt){return nt[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(nt){var xt=nt.replace(K,H);$[xt]=new at(xt,1,!1,nt,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(nt){var xt=nt.replace(K,H);$[xt]=new at(xt,1,!1,nt,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(nt){var xt=nt.replace(K,H);$[xt]=new at(xt,1,!1,nt,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(nt){$[nt]=new at(nt,1,!1,nt.toLowerCase(),null,!1,!1)}),$.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(nt){$[nt]=new at(nt,1,!1,nt.toLowerCase(),null,!0,!0)});var B={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},X=["Webkit","ms","Moz","O"];Object.keys(B).forEach(function(nt){X.forEach(function(xt){xt=xt+nt.charAt(0).toUpperCase()+nt.substring(1),B[xt]=B[nt]})});var V=/["'&<>]/;function L(nt){if(typeof nt=="boolean"||typeof nt=="number")return""+nt;nt=""+nt;var xt=V.exec(nt);if(xt){var At="",Wt,pe=0;for(Wt=xt.index;Wt<nt.length;Wt++){switch(nt.charCodeAt(Wt)){case 34:xt="&quot;";break;case 38:xt="&amp;";break;case 39:xt="&#x27;";break;case 60:xt="&lt;";break;case 62:xt="&gt;";break;default:continue}pe!==Wt&&(At+=nt.substring(pe,Wt)),pe=Wt+1,At+=xt}nt=pe!==Wt?At+nt.substring(pe,Wt):At}return nt}var ot=/([A-Z])/g,G=/^ms-/,z=Array.isArray,F=U("<script>"),k=U("<\/script>"),ut=U('<script src="'),E=U('<script type="module" src="'),J=U('" async=""><\/script>'),dt=/(<\/|<)(s)(cript)/gi;function pt(nt,xt,At,Wt){return""+xt+(At==="s"?"\\u0073":"\\u0053")+Wt}function T(nt,xt,At,Wt,pe){nt=nt===void 0?"":nt,xt=xt===void 0?F:U('<script nonce="'+L(xt)+'">');var re=[];if(At!==void 0&&re.push(xt,m((""+At).replace(dt,pt)),k),Wt!==void 0)for(At=0;At<Wt.length;At++)re.push(ut,m(L(Wt[At])),J);if(pe!==void 0)for(Wt=0;Wt<pe.length;Wt++)re.push(E,m(L(pe[Wt])),J);return{bootstrapChunks:re,startInlineScript:xt,placeholderPrefix:U(nt+"P:"),segmentPrefix:U(nt+"S:"),boundaryPrefix:nt+"B:",idPrefix:nt,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function ht(nt,xt){return{insertionMode:nt,selectedValue:xt}}function yt(nt){return ht(nt==="http://www.w3.org/2000/svg"?2:nt==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ct(nt,xt,At){switch(xt){case"select":return ht(1,At.value!=null?At.value:At.defaultValue);case"svg":return ht(2,null);case"math":return ht(3,null);case"foreignObject":return ht(1,null);case"table":return ht(4,null);case"thead":case"tbody":case"tfoot":return ht(5,null);case"colgroup":return ht(7,null);case"tr":return ht(6,null)}return 4<=nt.insertionMode||nt.insertionMode===0?ht(1,null):nt}var gt=U("<!-- -->");function bt(nt,xt,At,Wt){return xt===""?Wt:(Wt&&nt.push(gt),nt.push(m(L(xt))),!0)}var Tt=new Map,Pt=U(' style="'),It=U(":"),Dt=U(";");function jt(nt,xt,At){if(typeof At!="object")throw Error(I(62));xt=!0;for(var Wt in At)if(j.call(At,Wt)){var pe=At[Wt];if(pe!=null&&typeof pe!="boolean"&&pe!==""){if(Wt.indexOf("--")===0){var re=m(L(Wt));pe=m(L((""+pe).trim()))}else{re=Wt;var Me=Tt.get(re);Me!==void 0||(Me=U(L(re.replace(ot,"-$1").toLowerCase().replace(G,"-ms-"))),Tt.set(re,Me)),re=Me,pe=typeof pe=="number"?pe===0||j.call(B,Wt)?m(""+pe):m(pe+"px"):m(L((""+pe).trim()))}xt?(xt=!1,nt.push(Pt,re,It,pe)):nt.push(Dt,re,It,pe)}}xt||nt.push(vt)}var Mt=U(" "),Q=U('="'),vt=U('"'),Lt=U('=""');function Rt(nt,xt,At,Wt){switch(At){case"style":jt(nt,xt,Wt);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<At.length)||At[0]!=="o"&&At[0]!=="O"||At[1]!=="n"&&At[1]!=="N"){if(xt=$.hasOwnProperty(At)?$[At]:null,xt!==null){switch(typeof Wt){case"function":case"symbol":return;case"boolean":if(!xt.acceptsBooleans)return}switch(At=m(xt.attributeName),xt.type){case 3:Wt&&nt.push(Mt,At,Lt);break;case 4:Wt===!0?nt.push(Mt,At,Lt):Wt!==!1&&nt.push(Mt,At,Q,m(L(Wt)),vt);break;case 5:isNaN(Wt)||nt.push(Mt,At,Q,m(L(Wt)),vt);break;case 6:!isNaN(Wt)&&1<=Wt&&nt.push(Mt,At,Q,m(L(Wt)),vt);break;default:xt.sanitizeURL&&(Wt=""+Wt),nt.push(Mt,At,Q,m(L(Wt)),vt)}}else if(R(At)){switch(typeof Wt){case"function":case"symbol":return;case"boolean":if(xt=At.toLowerCase().slice(0,5),xt!=="data-"&&xt!=="aria-")return}nt.push(Mt,m(At),Q,m(L(Wt)),vt)}}}var Bt=U(">"),Ht=U("/>");function zt(nt,xt,At){if(xt!=null){if(At!=null)throw Error(I(60));if(typeof xt!="object"||!("__html"in xt))throw Error(I(61));xt=xt.__html,xt!=null&&nt.push(m(""+xt))}}function Kt(nt){var xt="";return Z.Children.forEach(nt,function(At){At!=null&&(xt+=At)}),xt}var ce=U(' selected=""');function oe(nt,xt,At,Wt){nt.push(Re(At));var pe=At=null,re;for(re in xt)if(j.call(xt,re)){var Me=xt[re];if(Me!=null)switch(re){case"children":At=Me;break;case"dangerouslySetInnerHTML":pe=Me;break;default:Rt(nt,Wt,re,Me)}}return nt.push(Bt),zt(nt,pe,At),typeof At=="string"?(nt.push(m(L(At))),null):At}var he=U("\n"),_e=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Fe=new Map;function Re(nt){var xt=Fe.get(nt);if(xt===void 0){if(!_e.test(nt))throw Error(I(65,nt));xt=U("<"+nt),Fe.set(nt,xt)}return xt}var le=U("<!DOCTYPE html>");function ee(nt,xt,At,Wt,pe){switch(xt){case"select":nt.push(Re("select"));var re=null,Me=null;for(Rn in At)if(j.call(At,Rn)){var ze=At[Rn];if(ze!=null)switch(Rn){case"children":re=ze;break;case"dangerouslySetInnerHTML":Me=ze;break;case"defaultValue":case"value":break;default:Rt(nt,Wt,Rn,ze)}}return nt.push(Bt),zt(nt,Me,re),re;case"option":Me=pe.selectedValue,nt.push(Re("option"));var Dn=ze=null,Gn=null,Rn=null;for(re in At)if(j.call(At,re)){var kr=At[re];if(kr!=null)switch(re){case"children":ze=kr;break;case"selected":Gn=kr;break;case"dangerouslySetInnerHTML":Rn=kr;break;case"value":Dn=kr;default:Rt(nt,Wt,re,kr)}}if(Me!=null)if(At=Dn!==null?""+Dn:Kt(ze),z(Me)){for(Wt=0;Wt<Me.length;Wt++)if(""+Me[Wt]===At){nt.push(ce);break}}else""+Me===At&&nt.push(ce);else Gn&&nt.push(ce);return nt.push(Bt),zt(nt,Rn,ze),ze;case"textarea":nt.push(Re("textarea")),Rn=Me=re=null;for(ze in At)if(j.call(At,ze)&&(Dn=At[ze],Dn!=null))switch(ze){case"children":Rn=Dn;break;case"value":re=Dn;break;case"defaultValue":Me=Dn;break;case"dangerouslySetInnerHTML":throw Error(I(91));default:Rt(nt,Wt,ze,Dn)}if(re===null&&Me!==null&&(re=Me),nt.push(Bt),Rn!=null){if(re!=null)throw Error(I(92));if(z(Rn)&&1<Rn.length)throw Error(I(93));re=""+Rn}return typeof re=="string"&&re[0]==="\n"&&nt.push(he),re!==null&&nt.push(m(L(""+re))),null;case"input":nt.push(Re("input")),Dn=Rn=ze=re=null;for(Me in At)if(j.call(At,Me)&&(Gn=At[Me],Gn!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(I(399,"input"));case"defaultChecked":Dn=Gn;break;case"defaultValue":ze=Gn;break;case"checked":Rn=Gn;break;case"value":re=Gn;break;default:Rt(nt,Wt,Me,Gn)}return Rn!==null?Rt(nt,Wt,"checked",Rn):Dn!==null&&Rt(nt,Wt,"checked",Dn),re!==null?Rt(nt,Wt,"value",re):ze!==null&&Rt(nt,Wt,"value",ze),nt.push(Ht),null;case"menuitem":nt.push(Re("menuitem"));for(var vi in At)if(j.call(At,vi)&&(re=At[vi],re!=null))switch(vi){case"children":case"dangerouslySetInnerHTML":throw Error(I(400));default:Rt(nt,Wt,vi,re)}return nt.push(Bt),null;case"title":nt.push(Re("title")),re=null;for(kr in At)if(j.call(At,kr)&&(Me=At[kr],Me!=null))switch(kr){case"children":re=Me;break;case"dangerouslySetInnerHTML":throw Error(I(434));default:Rt(nt,Wt,kr,Me)}return nt.push(Bt),re;case"listing":case"pre":nt.push(Re(xt)),Me=re=null;for(Dn in At)if(j.call(At,Dn)&&(ze=At[Dn],ze!=null))switch(Dn){case"children":re=ze;break;case"dangerouslySetInnerHTML":Me=ze;break;default:Rt(nt,Wt,Dn,ze)}if(nt.push(Bt),Me!=null){if(re!=null)throw Error(I(60));if(typeof Me!="object"||!("__html"in Me))throw Error(I(61));At=Me.__html,At!=null&&(typeof At=="string"&&0<At.length&&At[0]==="\n"?nt.push(he,m(At)):nt.push(m(""+At)))}return typeof re=="string"&&re[0]==="\n"&&nt.push(he),re;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":nt.push(Re(xt));for(var qi in At)if(j.call(At,qi)&&(re=At[qi],re!=null))switch(qi){case"children":case"dangerouslySetInnerHTML":throw Error(I(399,xt));default:Rt(nt,Wt,qi,re)}return nt.push(Ht),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return oe(nt,At,xt,Wt);case"html":return pe.insertionMode===0&&nt.push(le),oe(nt,At,xt,Wt);default:if(xt.indexOf("-")===-1&&typeof At.is!="string")return oe(nt,At,xt,Wt);nt.push(Re(xt)),Me=re=null;for(Gn in At)if(j.call(At,Gn)&&(ze=At[Gn],ze!=null))switch(Gn){case"children":re=ze;break;case"dangerouslySetInnerHTML":Me=ze;break;case"style":jt(nt,Wt,ze);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:R(Gn)&&typeof ze!="function"&&typeof ze!="symbol"&&nt.push(Mt,m(Gn),Q,m(L(ze)),vt)}return nt.push(Bt),zt(nt,Me,re),re}}var ge=U("</"),de=U(">"),fe=U('<template id="'),Ae=U('"></template>'),te=U("<!--$-->"),Ie=U('<!--$?--><template id="'),cn=U('"></template>'),ln=U("<!--$!-->"),Qe=U("<!--/$-->"),dn=U("<template"),fn=U('"'),Tn=U(' data-dgst="');U(' data-msg="'),U(' data-stck="');var un=U("></template>");function gn(nt,xt,At){if(M(nt,Ie),At===null)throw Error(I(395));return M(nt,At),W(nt,cn)}var ne=U('<div hidden id="'),bn=U('">'),en=U("</div>"),Bn=U('<svg aria-hidden="true" style="display:none" id="'),Ln=U('">'),vn=U("</svg>"),Fn=U('<math aria-hidden="true" style="display:none" id="'),zn=U('">'),On=U("</math>"),an=U('<table hidden id="'),mn=U('">'),rr=U("</table>"),Un=U('<table hidden><tbody id="'),fr=U('">'),lr=U("</tbody></table>"),yr=U('<table hidden><tr id="'),Xn=U('">'),Pr=U("</tr></table>"),Ar=U('<table hidden><colgroup id="'),Yn=U('">'),Tr=U("</colgroup></table>");function Ji(nt,xt,At,Wt){switch(At.insertionMode){case 0:case 1:return M(nt,ne),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,bn);case 2:return M(nt,Bn),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,Ln);case 3:return M(nt,Fn),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,zn);case 4:return M(nt,an),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,mn);case 5:return M(nt,Un),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,fr);case 6:return M(nt,yr),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,Xn);case 7:return M(nt,Ar),M(nt,xt.segmentPrefix),M(nt,m(Wt.toString(16))),W(nt,Yn);default:throw Error(I(397))}}function qt(nt,xt){switch(xt.insertionMode){case 0:case 1:return W(nt,en);case 2:return W(nt,vn);case 3:return W(nt,On);case 4:return W(nt,rr);case 5:return W(nt,lr);case 6:return W(nt,Pr);case 7:return W(nt,Tr);default:throw Error(I(397))}}var Jt=U('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),se=U('$RS("'),xe=U('","'),ke=U('")<\/script>'),Ne=U('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),$e=U('$RC("'),Le=U('","'),He=U('")<\/script>'),Ye=U('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Ke=U('$RX("'),yn=U('"'),Qn=U(")<\/script>"),tr=U(","),Sr=/[<\u2028\u2029]/g;function ur(nt){return JSON.stringify(nt).replace(Sr,function(xt){switch(xt){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ar=Object.assign,bi=Symbol.for("react.element"),Ir=Symbol.for("react.portal"),Ur=Symbol.for("react.fragment"),Gr=Symbol.for("react.strict_mode"),sa=Symbol.for("react.profiler"),Ya=Symbol.for("react.provider"),Ni=Symbol.for("react.context"),rs=Symbol.for("react.forward_ref"),Za=Symbol.for("react.suspense"),ko=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),St=Symbol.for("react.lazy"),Et=Symbol.for("react.scope"),Ft=Symbol.for("react.debug_trace_mode"),ve=Symbol.for("react.legacy_hidden"),ae=Symbol.for("react.default_value"),be=Symbol.iterator;function Ue(nt){if(nt==null)return null;if(typeof nt=="function")return nt.displayName||nt.name||null;if(typeof nt=="string")return nt;switch(nt){case Ur:return"Fragment";case Ir:return"Portal";case sa:return"Profiler";case Gr:return"StrictMode";case Za:return"Suspense";case ko:return"SuspenseList"}if(typeof nt=="object")switch(nt.$$typeof){case Ni:return(nt.displayName||"Context")+".Consumer";case Ya:return(nt._context.displayName||"Context")+".Provider";case rs:var xt=nt.render;return nt=nt.displayName,nt||(nt=xt.displayName||xt.name||"",nt=nt!==""?"ForwardRef("+nt+")":"ForwardRef"),nt;case tt:return xt=nt.displayName||null,xt!==null?xt:Ue(nt.type)||"Memo";case St:xt=nt._payload,nt=nt._init;try{return Ue(nt(xt))}catch(At){}}return null}var Cn={};function Pn(nt,xt){if(nt=nt.contextTypes,!nt)return Cn;var At={},Wt;for(Wt in nt)At[Wt]=xt[Wt];return At}var Vn=null;function Dr(nt,xt){if(nt!==xt){nt.context._currentValue=nt.parentValue,nt=nt.parent;var At=xt.parent;if(nt===null){if(At!==null)throw Error(I(401))}else{if(At===null)throw Error(I(401));Dr(nt,At)}xt.context._currentValue=xt.value}}function Qi(nt){nt.context._currentValue=nt.parentValue,nt=nt.parent,nt!==null&&Qi(nt)}function Bi(nt){var xt=nt.parent;xt!==null&&Bi(xt),nt.context._currentValue=nt.value}function pi(nt,xt){if(nt.context._currentValue=nt.parentValue,nt=nt.parent,nt===null)throw Error(I(402));nt.depth===xt.depth?Dr(nt,xt):pi(nt,xt)}function Ci(nt,xt){var At=xt.parent;if(At===null)throw Error(I(402));nt.depth===At.depth?Dr(nt,At):Ci(nt,At),xt.context._currentValue=xt.value}function Vi(nt){var xt=Vn;xt!==nt&&(xt===null?Bi(nt):nt===null?Qi(xt):xt.depth===nt.depth?Dr(xt,nt):xt.depth>nt.depth?pi(xt,nt):Ci(xt,nt),Vn=nt)}var Hs={isMounted:function(){return!1},enqueueSetState:function(nt,xt){nt=nt._reactInternals,nt.queue!==null&&nt.queue.push(xt)},enqueueReplaceState:function(nt,xt){nt=nt._reactInternals,nt.replace=!0,nt.queue=[xt]},enqueueForceUpdate:function(){}};function $a(nt,xt,At,Wt){var pe=nt.state!==void 0?nt.state:null;nt.updater=Hs,nt.props=At,nt.state=pe;var re={queue:[],replace:!1};nt._reactInternals=re;var Me=xt.contextType;if(nt.context=typeof Me=="object"&&Me!==null?Me._currentValue:Wt,Me=xt.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(At,pe),pe=Me==null?pe:ar({},pe,Me),nt.state=pe),typeof xt.getDerivedStateFromProps!="function"&&typeof nt.getSnapshotBeforeUpdate!="function"&&(typeof nt.UNSAFE_componentWillMount=="function"||typeof nt.componentWillMount=="function"))if(xt=nt.state,typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount(),xt!==nt.state&&Hs.enqueueReplaceState(nt,nt.state,null),re.queue!==null&&0<re.queue.length)if(xt=re.queue,Me=re.replace,re.queue=null,re.replace=!1,Me&&xt.length===1)nt.state=xt[0];else{for(re=Me?xt[0]:nt.state,pe=!0,Me=Me?1:0;Me<xt.length;Me++){var ze=xt[Me];ze=typeof ze=="function"?ze.call(nt,re,At,Wt):ze,ze!=null&&(pe?(pe=!1,re=ar({},re,ze)):ar(re,ze))}nt.state=re}else re.queue=null}var fu={id:1,overflow:""};function Ja(nt,xt,At){var Wt=nt.id;nt=nt.overflow;var pe=32-pu(Wt)-1;Wt&=~(1<<pe),At+=1;var re=32-pu(xt)+pe;if(30<re){var Me=pe-pe%5;return re=(Wt&(1<<Me)-1).toString(32),Wt>>=Me,pe-=Me,{id:1<<32-pu(xt)+pe|At<<pe|Wt,overflow:re+nt}}return{id:1<<re|At<<pe|Wt,overflow:nt}}var pu=Math.clz32?Math.clz32:Vv,tf=Math.log,Bv=Math.LN2;function Vv(nt){return nt>>>=0,nt===0?32:31-(tf(nt)/Bv|0)|0}function Wv(nt,xt){return nt===xt&&(nt!==0||1/nt===1/xt)||nt!==nt&&xt!==xt}var Fv=typeof Object.is=="function"?Object.is:Wv,ka=null,Gc=null,is=null,wr=null,Us=!1,gu=!1,Gs=0,Qa=null,vu=0;function ni(){if(ka===null)throw Error(I(321));return ka}function mu(){if(0<vu)throw Error(I(312));return{memoizedState:null,queue:null,next:null}}function Kc(){return wr===null?is===null?(Us=!1,is=wr=mu()):(Us=!0,wr=is):wr.next===null?(Us=!1,wr=wr.next=mu()):(Us=!0,wr=wr.next),wr}function Xc(){Gc=ka=null,gu=!1,is=null,vu=0,wr=Qa=null}function yu(nt,xt){return typeof xt=="function"?xt(nt):xt}function ef(nt,xt,At){if(ka=ni(),wr=Kc(),Us){var Wt=wr.queue;if(xt=Wt.dispatch,Qa!==null&&(At=Qa.get(Wt),At!==void 0)){Qa.delete(Wt),Wt=wr.memoizedState;do Wt=nt(Wt,At.action),At=At.next;while(At!==null);return wr.memoizedState=Wt,[Wt,xt]}return[wr.memoizedState,xt]}return nt=nt===yu?typeof xt=="function"?xt():xt:At!==void 0?At(xt):xt,wr.memoizedState=nt,nt=wr.queue={last:null,dispatch:null},nt=nt.dispatch=jv.bind(null,ka,nt),[wr.memoizedState,nt]}function nf(nt,xt){if(ka=ni(),wr=Kc(),xt=xt===void 0?null:xt,wr!==null){var At=wr.memoizedState;if(At!==null&&xt!==null){var Wt=At[1];t:if(Wt===null)Wt=!1;else{for(var pe=0;pe<Wt.length&&pe<xt.length;pe++)if(!Fv(xt[pe],Wt[pe])){Wt=!1;break t}Wt=!0}if(Wt)return At[0]}}return nt=nt(),wr.memoizedState=[nt,xt],nt}function jv(nt,xt,At){if(25<=vu)throw Error(I(301));if(nt===ka)if(gu=!0,nt={action:At,next:null},Qa===null&&(Qa=new Map),At=Qa.get(xt),At===void 0)Qa.set(xt,nt);else{for(xt=At;xt.next!==null;)xt=xt.next;xt.next=nt}}function rf(){throw Error(I(394))}function xu(){}var af={readContext:function(nt){return nt._currentValue},useContext:function(nt){return ni(),nt._currentValue},useMemo:nf,useReducer:ef,useRef:function(nt){ka=ni(),wr=Kc();var xt=wr.memoizedState;return xt===null?(nt={current:nt},wr.memoizedState=nt):xt},useState:function(nt){return ef(yu,nt)},useInsertionEffect:xu,useLayoutEffect:function(){},useCallback:function(nt,xt){return nf(function(){return nt},xt)},useImperativeHandle:xu,useEffect:xu,useDebugValue:xu,useDeferredValue:function(nt){return ni(),nt},useTransition:function(){return ni(),[!1,rf]},useId:function(){var nt=Gc.treeContext,xt=nt.overflow;nt=nt.id,nt=(nt&~(1<<32-pu(nt)-1)).toString(32)+xt;var At=Su;if(At===null)throw Error(I(404));return xt=Gs++,nt=":"+At.idPrefix+"R"+nt,0<xt&&(nt+="H"+xt.toString(32)),nt+":"},useMutableSource:function(nt,xt){return ni(),xt(nt._source)},useSyncExternalStore:function(nt,xt,At){if(At===void 0)throw Error(I(407));return At()}},Su=null,Ks=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function zv(nt){return console.error(nt),null}function Xs(){}function Hv(nt,xt,At,Wt,pe,re,Me,ze,Dn){var Gn=[],Rn=new Set;return xt={destination:null,responseState:xt,progressiveChunkSize:Wt===void 0?12800:Wt,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Rn,pingedTasks:Gn,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:pe===void 0?zv:pe,onAllReady:re===void 0?Xs:re,onShellReady:Me===void 0?Xs:Me,onShellError:ze===void 0?Xs:ze,onFatalError:Dn===void 0?Xs:Dn},At=wu(xt,0,null,At,!1,!1),At.parentFlushed=!0,nt=Yc(xt,nt,null,At,Rn,Cn,null,fu),Gn.push(nt),xt}function Yc(nt,xt,At,Wt,pe,re,Me,ze){nt.allPendingTasks++,At===null?nt.pendingRootTasks++:At.pendingTasks++;var Dn={node:xt,ping:function(){var Gn=nt.pingedTasks;Gn.push(Dn),Gn.length===1&&cf(nt)},blockedBoundary:At,blockedSegment:Wt,abortSet:pe,legacyContext:re,context:Me,treeContext:ze};return pe.add(Dn),Dn}function wu(nt,xt,At,Wt,pe,re){return{status:0,id:-1,index:xt,parentFlushed:!1,chunks:[],children:[],formatContext:Wt,boundary:At,lastPushedText:pe,textEmbedded:re}}function as(nt,xt){if(nt=nt.onError(xt),nt!=null&&typeof nt!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof nt+'" instead');return nt}function _u(nt,xt){var At=nt.onShellError;At(xt),At=nt.onFatalError,At(xt),nt.destination!==null?(nt.status=2,A(nt.destination,xt)):(nt.status=1,nt.fatalError=xt)}function of(nt,xt,At,Wt,pe){for(ka={},Gc=xt,Gs=0,nt=At(Wt,pe);gu;)gu=!1,Gs=0,vu+=1,wr=null,nt=At(Wt,pe);return Xc(),nt}function sf(nt,xt,At,Wt){var pe=At.render(),re=Wt.childContextTypes;if(re!=null){var Me=xt.legacyContext;if(typeof At.getChildContext!="function")Wt=Me;else{At=At.getChildContext();for(var ze in At)if(!(ze in re))throw Error(I(108,Ue(Wt)||"Unknown",ze));Wt=ar({},Me,At)}xt.legacyContext=Wt,Mi(nt,xt,pe),xt.legacyContext=Me}else Mi(nt,xt,pe)}function bu(nt,xt){if(nt&&nt.defaultProps){xt=ar({},xt),nt=nt.defaultProps;for(var At in nt)xt[At]===void 0&&(xt[At]=nt[At]);return xt}return xt}function Zc(nt,xt,At,Wt,pe){if(typeof At=="function")if(At.prototype&&At.prototype.isReactComponent){pe=Pn(At,xt.legacyContext);var re=At.contextType;re=new At(Wt,typeof re=="object"&&re!==null?re._currentValue:pe),$a(re,At,Wt,pe),sf(nt,xt,re,At)}else{re=Pn(At,xt.legacyContext),pe=of(nt,xt,At,Wt,re);var Me=Gs!==0;if(typeof pe=="object"&&pe!==null&&typeof pe.render=="function"&&pe.$$typeof===void 0)$a(pe,At,Wt,re),sf(nt,xt,pe,At);else if(Me){Wt=xt.treeContext,xt.treeContext=Ja(Wt,1,0);try{Mi(nt,xt,pe)}finally{xt.treeContext=Wt}}else Mi(nt,xt,pe)}else if(typeof At=="string"){switch(pe=xt.blockedSegment,re=ee(pe.chunks,At,Wt,nt.responseState,pe.formatContext),pe.lastPushedText=!1,Me=pe.formatContext,pe.formatContext=ct(Me,At,Wt),$c(nt,xt,re),pe.formatContext=Me,At){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:pe.chunks.push(ge,m(At),de)}pe.lastPushedText=!1}else{switch(At){case ve:case Ft:case Gr:case sa:case Ur:Mi(nt,xt,Wt.children);return;case ko:Mi(nt,xt,Wt.children);return;case Et:throw Error(I(343));case Za:t:{At=xt.blockedBoundary,pe=xt.blockedSegment,re=Wt.fallback,Wt=Wt.children,Me=new Set;var ze={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},Dn=wu(nt,pe.chunks.length,ze,pe.formatContext,!1,!1);pe.children.push(Dn),pe.lastPushedText=!1;var Gn=wu(nt,0,null,pe.formatContext,!1,!1);Gn.parentFlushed=!0,xt.blockedBoundary=ze,xt.blockedSegment=Gn;try{if($c(nt,xt,Wt),Gn.lastPushedText&&Gn.textEmbedded&&Gn.chunks.push(gt),Gn.status=1,Mu(ze,Gn),ze.pendingTasks===0)break t}catch(Rn){Gn.status=4,ze.forceClientRender=!0,ze.errorDigest=as(nt,Rn)}finally{xt.blockedBoundary=At,xt.blockedSegment=pe}xt=Yc(nt,re,At,Dn,Me,xt.legacyContext,xt.context,xt.treeContext),nt.pingedTasks.push(xt)}return}if(typeof At=="object"&&At!==null)switch(At.$$typeof){case rs:if(Wt=of(nt,xt,At.render,Wt,pe),Gs!==0){At=xt.treeContext,xt.treeContext=Ja(At,1,0);try{Mi(nt,xt,Wt)}finally{xt.treeContext=At}}else Mi(nt,xt,Wt);return;case tt:At=At.type,Wt=bu(At,Wt),Zc(nt,xt,At,Wt,pe);return;case Ya:if(pe=Wt.children,At=At._context,Wt=Wt.value,re=At._currentValue,At._currentValue=Wt,Me=Vn,Vn=Wt={parent:Me,depth:Me===null?0:Me.depth+1,context:At,parentValue:re,value:Wt},xt.context=Wt,Mi(nt,xt,pe),nt=Vn,nt===null)throw Error(I(403));Wt=nt.parentValue,nt.context._currentValue=Wt===ae?nt.context._defaultValue:Wt,nt=Vn=nt.parent,xt.context=nt;return;case Ni:Wt=Wt.children,Wt=Wt(At._currentValue),Mi(nt,xt,Wt);return;case St:pe=At._init,At=pe(At._payload),Wt=bu(At,Wt),Zc(nt,xt,At,Wt,void 0);return}throw Error(I(130,At==null?At:typeof At,""))}}function Mi(nt,xt,At){if(xt.node=At,typeof At=="object"&&At!==null){switch(At.$$typeof){case bi:Zc(nt,xt,At.type,At.props,At.ref);return;case Ir:throw Error(I(257));case St:var Wt=At._init;At=Wt(At._payload),Mi(nt,xt,At);return}if(z(At)){lf(nt,xt,At);return}if(At===null||typeof At!="object"?Wt=null:(Wt=be&&At[be]||At["@@iterator"],Wt=typeof Wt=="function"?Wt:null),Wt&&(Wt=Wt.call(At))){if(At=Wt.next(),!At.done){var pe=[];do pe.push(At.value),At=Wt.next();while(!At.done);lf(nt,xt,pe)}return}throw nt=Object.prototype.toString.call(At),Error(I(31,nt==="[object Object]"?"object with keys {"+Object.keys(At).join(", ")+"}":nt))}typeof At=="string"?(Wt=xt.blockedSegment,Wt.lastPushedText=bt(xt.blockedSegment.chunks,At,nt.responseState,Wt.lastPushedText)):typeof At=="number"&&(Wt=xt.blockedSegment,Wt.lastPushedText=bt(xt.blockedSegment.chunks,""+At,nt.responseState,Wt.lastPushedText))}function lf(nt,xt,At){for(var Wt=At.length,pe=0;pe<Wt;pe++){var re=xt.treeContext;xt.treeContext=Ja(re,Wt,pe);try{$c(nt,xt,At[pe])}finally{xt.treeContext=re}}}function $c(nt,xt,At){var Wt=xt.blockedSegment.formatContext,pe=xt.legacyContext,re=xt.context;try{return Mi(nt,xt,At)}catch(Dn){if(Xc(),typeof Dn=="object"&&Dn!==null&&typeof Dn.then=="function"){At=Dn;var Me=xt.blockedSegment,ze=wu(nt,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(ze),Me.lastPushedText=!1,nt=Yc(nt,xt.node,xt.blockedBoundary,ze,xt.abortSet,xt.legacyContext,xt.context,xt.treeContext).ping,At.then(nt,nt),xt.blockedSegment.formatContext=Wt,xt.legacyContext=pe,xt.context=re,Vi(re)}else throw xt.blockedSegment.formatContext=Wt,xt.legacyContext=pe,xt.context=re,Vi(re),Dn}}function Uv(nt){var xt=nt.blockedBoundary;nt=nt.blockedSegment,nt.status=3,uf(this,xt,nt)}function Cu(nt,xt,At){var Wt=nt.blockedBoundary;nt.blockedSegment.status=3,Wt===null?(xt.allPendingTasks--,xt.status!==2&&(xt.status=2,xt.destination!==null&&xt.destination.close())):(Wt.pendingTasks--,Wt.forceClientRender||(Wt.forceClientRender=!0,nt=At===void 0?Error(I(432)):At,Wt.errorDigest=xt.onError(nt),Wt.parentFlushed&&xt.clientRenderedBoundaries.push(Wt)),Wt.fallbackAbortableTasks.forEach(function(pe){return Cu(pe,xt,At)}),Wt.fallbackAbortableTasks.clear(),xt.allPendingTasks--,xt.allPendingTasks===0&&(Wt=xt.onAllReady,Wt()))}function Mu(nt,xt){if(xt.chunks.length===0&&xt.children.length===1&&xt.children[0].boundary===null){var At=xt.children[0];At.id=xt.id,At.parentFlushed=!0,At.status===1&&Mu(nt,At)}else nt.completedSegments.push(xt)}function uf(nt,xt,At){if(xt===null){if(At.parentFlushed){if(nt.completedRootSegment!==null)throw Error(I(389));nt.completedRootSegment=At}nt.pendingRootTasks--,nt.pendingRootTasks===0&&(nt.onShellError=Xs,xt=nt.onShellReady,xt())}else xt.pendingTasks--,xt.forceClientRender||(xt.pendingTasks===0?(At.parentFlushed&&At.status===1&&Mu(xt,At),xt.parentFlushed&&nt.completedBoundaries.push(xt),xt.fallbackAbortableTasks.forEach(Uv,nt),xt.fallbackAbortableTasks.clear()):At.parentFlushed&&At.status===1&&(Mu(xt,At),xt.completedSegments.length===1&&xt.parentFlushed&&nt.partialBoundaries.push(xt)));nt.allPendingTasks--,nt.allPendingTasks===0&&(nt=nt.onAllReady,nt())}function cf(nt){if(nt.status!==2){var xt=Vn,At=Ks.current;Ks.current=af;var Wt=Su;Su=nt.responseState;try{var pe=nt.pingedTasks,re;for(re=0;re<pe.length;re++){var Me=pe[re],ze=nt,Dn=Me.blockedSegment;if(Dn.status===0){Vi(Me.context);try{Mi(ze,Me,Me.node),Dn.lastPushedText&&Dn.textEmbedded&&Dn.chunks.push(gt),Me.abortSet.delete(Me),Dn.status=1,uf(ze,Me.blockedBoundary,Dn)}catch(ta){if(Xc(),typeof ta=="object"&&ta!==null&&typeof ta.then=="function"){var Gn=Me.ping;ta.then(Gn,Gn)}else{Me.abortSet.delete(Me),Dn.status=4;var Rn=Me.blockedBoundary,kr=ta,vi=as(ze,kr);if(Rn===null?_u(ze,kr):(Rn.pendingTasks--,Rn.forceClientRender||(Rn.forceClientRender=!0,Rn.errorDigest=vi,Rn.parentFlushed&&ze.clientRenderedBoundaries.push(Rn))),ze.allPendingTasks--,ze.allPendingTasks===0){var qi=ze.onAllReady;qi()}}}finally{}}}pe.splice(0,re),nt.destination!==null&&Jc(nt,nt.destination)}catch(ta){as(nt,ta),_u(nt,ta)}finally{Su=Wt,Ks.current=At,At===af&&Vi(xt)}}}function Tu(nt,xt,At){switch(At.parentFlushed=!0,At.status){case 0:var Wt=At.id=nt.nextSegmentId++;return At.lastPushedText=!1,At.textEmbedded=!1,nt=nt.responseState,M(xt,fe),M(xt,nt.placeholderPrefix),nt=m(Wt.toString(16)),M(xt,nt),W(xt,Ae);case 1:At.status=2;var pe=!0;Wt=At.chunks;var re=0;At=At.children;for(var Me=0;Me<At.length;Me++){for(pe=At[Me];re<pe.index;re++)M(xt,Wt[re]);pe=gi(nt,xt,pe)}for(;re<Wt.length-1;re++)M(xt,Wt[re]);return re<Wt.length&&(pe=W(xt,Wt[re])),pe;default:throw Error(I(390))}}function gi(nt,xt,At){var Wt=At.boundary;if(Wt===null)return Tu(nt,xt,At);if(Wt.parentFlushed=!0,Wt.forceClientRender)Wt=Wt.errorDigest,W(xt,ln),M(xt,dn),Wt&&(M(xt,Tn),M(xt,m(L(Wt))),M(xt,fn)),W(xt,un),Tu(nt,xt,At);else if(0<Wt.pendingTasks){Wt.rootSegmentID=nt.nextSegmentId++,0<Wt.completedSegments.length&&nt.partialBoundaries.push(Wt);var pe=nt.responseState,re=pe.nextSuspenseID++;pe=U(pe.boundaryPrefix+re.toString(16)),Wt=Wt.id=pe,gn(xt,nt.responseState,Wt),Tu(nt,xt,At)}else if(Wt.byteSize>nt.progressiveChunkSize)Wt.rootSegmentID=nt.nextSegmentId++,nt.completedBoundaries.push(Wt),gn(xt,nt.responseState,Wt.id),Tu(nt,xt,At);else{if(W(xt,te),At=Wt.completedSegments,At.length!==1)throw Error(I(391));gi(nt,xt,At[0])}return W(xt,Qe)}function df(nt,xt,At){return Ji(xt,nt.responseState,At.formatContext,At.id),gi(nt,xt,At),qt(xt,At.formatContext)}function Du(nt,xt,At){for(var Wt=At.completedSegments,pe=0;pe<Wt.length;pe++)hf(nt,xt,At,Wt[pe]);if(Wt.length=0,nt=nt.responseState,Wt=At.id,At=At.rootSegmentID,M(xt,nt.startInlineScript),nt.sentCompleteBoundaryFunction?M(xt,$e):(nt.sentCompleteBoundaryFunction=!0,M(xt,Ne)),Wt===null)throw Error(I(395));return At=m(At.toString(16)),M(xt,Wt),M(xt,Le),M(xt,nt.segmentPrefix),M(xt,At),W(xt,He)}function hf(nt,xt,At,Wt){if(Wt.status===2)return!0;var pe=Wt.id;if(pe===-1){if((Wt.id=At.rootSegmentID)===-1)throw Error(I(392));return df(nt,xt,Wt)}return df(nt,xt,Wt),nt=nt.responseState,M(xt,nt.startInlineScript),nt.sentCompleteSegmentFunction?M(xt,se):(nt.sentCompleteSegmentFunction=!0,M(xt,Jt)),M(xt,nt.segmentPrefix),pe=m(pe.toString(16)),M(xt,pe),M(xt,xe),M(xt,nt.placeholderPrefix),M(xt,pe),W(xt,ke)}function Jc(nt,xt){O=new Uint8Array(512),b=0;try{var At=nt.completedRootSegment;if(At!==null&&nt.pendingRootTasks===0){gi(nt,xt,At),nt.completedRootSegment=null;var Wt=nt.responseState.bootstrapChunks;for(At=0;At<Wt.length-1;At++)M(xt,Wt[At]);At<Wt.length&&W(xt,Wt[At])}var pe=nt.clientRenderedBoundaries,re;for(re=0;re<pe.length;re++){var Me=pe[re];Wt=xt;var ze=nt.responseState,Dn=Me.id,Gn=Me.errorDigest,Rn=Me.errorMessage,kr=Me.errorComponentStack;if(M(Wt,ze.startInlineScript),ze.sentClientRenderFunction?M(Wt,Ke):(ze.sentClientRenderFunction=!0,M(Wt,Ye)),Dn===null)throw Error(I(395));if(M(Wt,Dn),M(Wt,yn),(Gn||Rn||kr)&&(M(Wt,tr),M(Wt,m(ur(Gn||"")))),(Rn||kr)&&(M(Wt,tr),M(Wt,m(ur(Rn||"")))),kr&&(M(Wt,tr),M(Wt,m(ur(kr)))),!W(Wt,Qn)){nt.destination=null,re++,pe.splice(0,re);return}}pe.splice(0,re);var vi=nt.completedBoundaries;for(re=0;re<vi.length;re++)if(!Du(nt,xt,vi[re])){nt.destination=null,re++,vi.splice(0,re);return}vi.splice(0,re),st(xt),O=new Uint8Array(512),b=0;var qi=nt.partialBoundaries;for(re=0;re<qi.length;re++){var ta=qi[re];t:{pe=nt,Me=xt;var ku=ta.completedSegments;for(ze=0;ze<ku.length;ze++)if(!hf(pe,Me,ta,ku[ze])){ze++,ku.splice(0,ze);var pf=!1;break t}ku.splice(0,ze),pf=!0}if(!pf){nt.destination=null,re++,qi.splice(0,re);return}}qi.splice(0,re);var os=nt.completedBoundaries;for(re=0;re<os.length;re++)if(!Du(nt,xt,os[re])){nt.destination=null,re++,os.splice(0,re);return}os.splice(0,re)}finally{st(xt),nt.allPendingTasks===0&&nt.pingedTasks.length===0&&nt.clientRenderedBoundaries.length===0&&nt.completedBoundaries.length===0&&xt.close()}}function ff(nt,xt){try{var At=nt.abortableTasks;At.forEach(function(Wt){return Cu(Wt,nt,xt)}),At.clear(),nt.destination!==null&&Jc(nt,nt.destination)}catch(Wt){as(nt,Wt),_u(nt,Wt)}}wt.renderToReadableStream=function(nt,xt){return new Promise(function(At,Wt){var pe,re,Me=new Promise(function(Rn,kr){re=Rn,pe=kr}),ze=Hv(nt,T(xt?xt.identifierPrefix:void 0,xt?xt.nonce:void 0,xt?xt.bootstrapScriptContent:void 0,xt?xt.bootstrapScripts:void 0,xt?xt.bootstrapModules:void 0),yt(xt?xt.namespaceURI:void 0),xt?xt.progressiveChunkSize:void 0,xt?xt.onError:void 0,re,function(){var Rn=new ReadableStream({type:"bytes",pull:function(kr){if(ze.status===1)ze.status=2,A(kr,ze.fatalError);else if(ze.status!==2&&ze.destination===null){ze.destination=kr;try{Jc(ze,kr)}catch(vi){as(ze,vi),_u(ze,vi)}}},cancel:function(){ff(ze)}},{highWaterMark:0});Rn.allReady=Me,At(Rn)},function(Rn){Me.catch(function(){}),Wt(Rn)},pe);if(xt&&xt.signal){var Dn=xt.signal,Gn=function(){ff(ze,Dn.reason),Dn.removeEventListener("abort",Gn)};Dn.addEventListener("abort",Gn)}cf(ze)})},wt.version="18.2.0"},12592:($t,wt,w)=>{"use strict";var Z,I;Z=w(90105),I=w(82535),wt.version=Z.version,wt.renderToString=Z.renderToString,wt.renderToStaticMarkup=Z.renderToStaticMarkup,wt.renderToNodeStream=Z.renderToNodeStream,wt.renderToStaticNodeStream=Z.renderToStaticNodeStream,wt.renderToReadableStream=I.renderToReadableStream},60111:($t,wt,w)=>{"use strict";function Z(L){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ot){return typeof ot}:function(ot){return ot&&typeof Symbol=="function"&&ot.constructor===Symbol&&ot!==Symbol.prototype?"symbol":typeof ot},Z(L)}Object.defineProperty(wt,"__esModule",{value:!0}),wt.PrevArrow=wt.NextArrow=void 0;var I=M(w(51044)),O=M(w(86634)),b=w(63773);function M(L){return L&&L.__esModule?L:{default:L}}function W(){return W=Object.assign?Object.assign.bind():function(L){for(var ot=1;ot<arguments.length;ot++){var G=arguments[ot];for(var z in G)Object.prototype.hasOwnProperty.call(G,z)&&(L[z]=G[z])}return L},W.apply(this,arguments)}function st(L,ot){var G=Object.keys(L);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(L);ot&&(z=z.filter(function(F){return Object.getOwnPropertyDescriptor(L,F).enumerable})),G.push.apply(G,z)}return G}function rt(L){for(var ot=1;ot<arguments.length;ot++){var G=arguments[ot]!=null?arguments[ot]:{};ot%2?st(Object(G),!0).forEach(function(z){m(L,z,G[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(G)):st(Object(G)).forEach(function(z){Object.defineProperty(L,z,Object.getOwnPropertyDescriptor(G,z))})}return L}function m(L,ot,G){return ot=it(ot),ot in L?Object.defineProperty(L,ot,{value:G,enumerable:!0,configurable:!0,writable:!0}):L[ot]=G,L}function U(L,ot){if(!(L instanceof ot))throw new TypeError("Cannot call a class as a function")}function A(L,ot){for(var G=0;G<ot.length;G++){var z=ot[G];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(L,it(z.key),z)}}function j(L,ot,G){return ot&&A(L.prototype,ot),G&&A(L,G),Object.defineProperty(L,"prototype",{writable:!1}),L}function it(L){var ot=Y(L,"string");return Z(ot)=="symbol"?ot:String(ot)}function Y(L,ot){if(Z(L)!="object"||!L)return L;var G=L[Symbol.toPrimitive];if(G!==void 0){var z=G.call(L,ot||"default");if(Z(z)!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ot==="string"?String:Number)(L)}function P(L,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(ot&&ot.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),ot&&R(L,ot)}function R(L,ot){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,F){return z.__proto__=F,z},R(L,ot)}function at(L){var ot=H();return function(){var z=B(L),F;if(ot){var k=B(this).constructor;F=Reflect.construct(z,arguments,k)}else F=z.apply(this,arguments);return $(this,F)}}function $(L,ot){if(ot&&(Z(ot)==="object"||typeof ot=="function"))return ot;if(ot!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K(L)}function K(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function H(){try{var L=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(ot){}return(H=function(){return!!L})()}function B(L){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},B(L)}var X=wt.PrevArrow=function(L){P(G,L);var ot=at(G);function G(){return U(this,G),ot.apply(this,arguments)}return j(G,[{key:"clickHandler",value:function(F,k){k&&k.preventDefault(),this.props.clickHandler(F,k)}},{key:"render",value:function(){var F={"slick-arrow":!0,"slick-prev":!0},k=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(F["slick-disabled"]=!0,k=null);var ut={key:"0","data-role":"none",className:(0,O.default)(F),style:{display:"block"},onClick:k},E={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},J;return this.props.prevArrow?J=I.default.cloneElement(this.props.prevArrow,rt(rt({},ut),E)):J=I.default.createElement("button",W({key:"0",type:"button"},ut)," ","Previous"),J}}]),G}(I.default.PureComponent),V=wt.NextArrow=function(L){P(G,L);var ot=at(G);function G(){return U(this,G),ot.apply(this,arguments)}return j(G,[{key:"clickHandler",value:function(F,k){k&&k.preventDefault(),this.props.clickHandler(F,k)}},{key:"render",value:function(){var F={"slick-arrow":!0,"slick-next":!0},k=this.clickHandler.bind(this,{message:"next"});(0,b.canGoNext)(this.props)||(F["slick-disabled"]=!0,k=null);var ut={key:"1","data-role":"none",className:(0,O.default)(F),style:{display:"block"},onClick:k},E={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},J;return this.props.nextArrow?J=I.default.cloneElement(this.props.nextArrow,rt(rt({},ut),E)):J=I.default.createElement("button",W({key:"1",type:"button"},ut)," ","Next"),J}}]),G}(I.default.PureComponent)},61351:($t,wt,w)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var Z=I(w(51044));function I(M){return M&&M.__esModule?M:{default:M}}var O={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(W){return Z.default.createElement("ul",{style:{display:"block"}},W)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(W){return Z.default.createElement("button",null,W+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},b=wt.default=O},53965:($t,wt,w)=>{"use strict";function Z(V){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},Z(V)}Object.defineProperty(wt,"__esModule",{value:!0}),wt.Dots=void 0;var I=M(w(51044)),O=M(w(86634)),b=w(63773);function M(V){return V&&V.__esModule?V:{default:V}}function W(V,L){var ot=Object.keys(V);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(V);L&&(G=G.filter(function(z){return Object.getOwnPropertyDescriptor(V,z).enumerable})),ot.push.apply(ot,G)}return ot}function st(V){for(var L=1;L<arguments.length;L++){var ot=arguments[L]!=null?arguments[L]:{};L%2?W(Object(ot),!0).forEach(function(G){rt(V,G,ot[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(ot)):W(Object(ot)).forEach(function(G){Object.defineProperty(V,G,Object.getOwnPropertyDescriptor(ot,G))})}return V}function rt(V,L,ot){return L=j(L),L in V?Object.defineProperty(V,L,{value:ot,enumerable:!0,configurable:!0,writable:!0}):V[L]=ot,V}function m(V,L){if(!(V instanceof L))throw new TypeError("Cannot call a class as a function")}function U(V,L){for(var ot=0;ot<L.length;ot++){var G=L[ot];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(V,j(G.key),G)}}function A(V,L,ot){return L&&U(V.prototype,L),ot&&U(V,ot),Object.defineProperty(V,"prototype",{writable:!1}),V}function j(V){var L=it(V,"string");return Z(L)=="symbol"?L:String(L)}function it(V,L){if(Z(V)!="object"||!V)return V;var ot=V[Symbol.toPrimitive];if(ot!==void 0){var G=ot.call(V,L||"default");if(Z(G)!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(V)}function Y(V,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(L&&L.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),L&&P(V,L)}function P(V,L){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,z){return G.__proto__=z,G},P(V,L)}function R(V){var L=K();return function(){var G=H(V),z;if(L){var F=H(this).constructor;z=Reflect.construct(G,arguments,F)}else z=G.apply(this,arguments);return at(this,z)}}function at(V,L){if(L&&(Z(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(V)}function $(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function K(){try{var V=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(L){}return(K=function(){return!!V})()}function H(V){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ot){return ot.__proto__||Object.getPrototypeOf(ot)},H(V)}var B=function(L){var ot;return L.infinite?ot=Math.ceil(L.slideCount/L.slidesToScroll):ot=Math.ceil((L.slideCount-L.slidesToShow)/L.slidesToScroll)+1,ot},X=wt.Dots=function(V){Y(ot,V);var L=R(ot);function ot(){return m(this,ot),L.apply(this,arguments)}return A(ot,[{key:"clickHandler",value:function(z,F){F.preventDefault(),this.props.clickHandler(z)}},{key:"render",value:function(){for(var z=this.props,F=z.onMouseEnter,k=z.onMouseOver,ut=z.onMouseLeave,E=z.infinite,J=z.slidesToScroll,dt=z.slidesToShow,pt=z.slideCount,T=z.currentSlide,ht=B({slideCount:pt,slidesToScroll:J,slidesToShow:dt,infinite:E}),yt={onMouseEnter:F,onMouseOver:k,onMouseLeave:ut},ct=[],gt=0;gt<ht;gt++){var bt=(gt+1)*J-1,Tt=E?bt:(0,b.clamp)(bt,0,pt-1),Pt=Tt-(J-1),It=E?Pt:(0,b.clamp)(Pt,0,pt-1),Dt=(0,O.default)({"slick-active":E?T>=It&&T<=Tt:T===It}),jt={message:"dots",index:gt,slidesToScroll:J,currentSlide:T},Mt=this.clickHandler.bind(this,jt);ct=ct.concat(I.default.createElement("li",{key:gt,className:Dt},I.default.cloneElement(this.props.customPaging(gt),{onClick:Mt})))}return I.default.cloneElement(this.props.appendDots(ct),st({className:this.props.dotsClass},yt))}}]),ot}(I.default.PureComponent)},70949:($t,wt,w)=>{"use strict";var Z;Z={value:!0},wt.A=void 0;var I=O(w(28352));function O(M){return M&&M.__esModule?M:{default:M}}var b=wt.A=I.default},57457:($t,wt)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var w={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Z=wt.default=w},68335:($t,wt,w)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.InnerSlider=void 0;var Z=U(w(51044)),I=U(w(57457)),O=U(w(64893)),b=U(w(86634)),M=w(63773),W=w(22542),st=w(53965),rt=w(60111),m=U(w(21743));function U(E){return E&&E.__esModule?E:{default:E}}function A(E){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},A(E)}function j(){return j=Object.assign?Object.assign.bind():function(E){for(var J=1;J<arguments.length;J++){var dt=arguments[J];for(var pt in dt)Object.prototype.hasOwnProperty.call(dt,pt)&&(E[pt]=dt[pt])}return E},j.apply(this,arguments)}function it(E,J){if(E==null)return{};var dt=Y(E,J),pt,T;if(Object.getOwnPropertySymbols){var ht=Object.getOwnPropertySymbols(E);for(T=0;T<ht.length;T++)pt=ht[T],!(J.indexOf(pt)>=0)&&Object.prototype.propertyIsEnumerable.call(E,pt)&&(dt[pt]=E[pt])}return dt}function Y(E,J){if(E==null)return{};var dt={},pt=Object.keys(E),T,ht;for(ht=0;ht<pt.length;ht++)T=pt[ht],!(J.indexOf(T)>=0)&&(dt[T]=E[T]);return dt}function P(E,J){var dt=Object.keys(E);if(Object.getOwnPropertySymbols){var pt=Object.getOwnPropertySymbols(E);J&&(pt=pt.filter(function(T){return Object.getOwnPropertyDescriptor(E,T).enumerable})),dt.push.apply(dt,pt)}return dt}function R(E){for(var J=1;J<arguments.length;J++){var dt=arguments[J]!=null?arguments[J]:{};J%2?P(Object(dt),!0).forEach(function(pt){z(E,pt,dt[pt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(dt)):P(Object(dt)).forEach(function(pt){Object.defineProperty(E,pt,Object.getOwnPropertyDescriptor(dt,pt))})}return E}function at(E,J){if(!(E instanceof J))throw new TypeError("Cannot call a class as a function")}function $(E,J){for(var dt=0;dt<J.length;dt++){var pt=J[dt];pt.enumerable=pt.enumerable||!1,pt.configurable=!0,"value"in pt&&(pt.writable=!0),Object.defineProperty(E,F(pt.key),pt)}}function K(E,J,dt){return J&&$(E.prototype,J),dt&&$(E,dt),Object.defineProperty(E,"prototype",{writable:!1}),E}function H(E,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(J&&J.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),J&&B(E,J)}function B(E,J){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(pt,T){return pt.__proto__=T,pt},B(E,J)}function X(E){var J=ot();return function(){var pt=G(E),T;if(J){var ht=G(this).constructor;T=Reflect.construct(pt,arguments,ht)}else T=pt.apply(this,arguments);return V(this,T)}}function V(E,J){if(J&&(A(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(E)}function L(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function ot(){try{var E=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(J){}return(ot=function(){return!!E})()}function G(E){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(dt){return dt.__proto__||Object.getPrototypeOf(dt)},G(E)}function z(E,J,dt){return J=F(J),J in E?Object.defineProperty(E,J,{value:dt,enumerable:!0,configurable:!0,writable:!0}):E[J]=dt,E}function F(E){var J=k(E,"string");return A(J)=="symbol"?J:String(J)}function k(E,J){if(A(E)!="object"||!E)return E;var dt=E[Symbol.toPrimitive];if(dt!==void 0){var pt=dt.call(E,J||"default");if(A(pt)!="object")return pt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(E)}var ut=wt.InnerSlider=function(E){H(dt,E);var J=X(dt);function dt(pt){var T;at(this,dt),T=J.call(this,pt),z(L(T),"listRefHandler",function(yt){return T.list=yt}),z(L(T),"trackRefHandler",function(yt){return T.track=yt}),z(L(T),"adaptHeight",function(){if(T.props.adaptiveHeight&&T.list){var yt=T.list.querySelector('[data-index="'.concat(T.state.currentSlide,'"]'));T.list.style.height=(0,M.getHeight)(yt)+"px"}}),z(L(T),"componentDidMount",function(){if(T.props.onInit&&T.props.onInit(),T.props.lazyLoad){var yt=(0,M.getOnDemandLazySlides)(R(R({},T.props),T.state));yt.length>0&&(T.setState(function(gt){return{lazyLoadedList:gt.lazyLoadedList.concat(yt)}}),T.props.onLazyLoad&&T.props.onLazyLoad(yt))}var ct=R({listRef:T.list,trackRef:T.track},T.props);T.updateState(ct,!0,function(){T.adaptHeight(),T.props.autoplay&&T.autoPlay("update")}),T.props.lazyLoad==="progressive"&&(T.lazyLoadTimer=setInterval(T.progressiveLazyLoad,1e3)),T.ro=new m.default(function(){T.state.animating?(T.onWindowResized(!1),T.callbackTimers.push(setTimeout(function(){return T.onWindowResized()},T.props.speed))):T.onWindowResized()}),T.ro.observe(T.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(gt){gt.onfocus=T.props.pauseOnFocus?T.onSlideFocus:null,gt.onblur=T.props.pauseOnFocus?T.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",T.onWindowResized):window.attachEvent("onresize",T.onWindowResized)}),z(L(T),"componentWillUnmount",function(){T.animationEndCallback&&clearTimeout(T.animationEndCallback),T.lazyLoadTimer&&clearInterval(T.lazyLoadTimer),T.callbackTimers.length&&(T.callbackTimers.forEach(function(yt){return clearTimeout(yt)}),T.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",T.onWindowResized):window.detachEvent("onresize",T.onWindowResized),T.autoplayTimer&&clearInterval(T.autoplayTimer),T.ro.disconnect()}),z(L(T),"componentDidUpdate",function(yt){if(T.checkImagesLoad(),T.props.onReInit&&T.props.onReInit(),T.props.lazyLoad){var ct=(0,M.getOnDemandLazySlides)(R(R({},T.props),T.state));ct.length>0&&(T.setState(function(Tt){return{lazyLoadedList:Tt.lazyLoadedList.concat(ct)}}),T.props.onLazyLoad&&T.props.onLazyLoad(ct))}T.adaptHeight();var gt=R(R({listRef:T.list,trackRef:T.track},T.props),T.state),bt=T.didPropsChange(yt);bt&&T.updateState(gt,bt,function(){T.state.currentSlide>=Z.default.Children.count(T.props.children)&&T.changeSlide({message:"index",index:Z.default.Children.count(T.props.children)-T.props.slidesToShow,currentSlide:T.state.currentSlide}),T.props.autoplay?T.autoPlay("update"):T.pause("paused")})}),z(L(T),"onWindowResized",function(yt){T.debouncedResize&&T.debouncedResize.cancel(),T.debouncedResize=(0,O.default)(function(){return T.resizeWindow(yt)},50),T.debouncedResize()}),z(L(T),"resizeWindow",function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ct=!!(T.track&&T.track.node);if(ct){var gt=R(R({listRef:T.list,trackRef:T.track},T.props),T.state);T.updateState(gt,yt,function(){T.props.autoplay?T.autoPlay("update"):T.pause("paused")}),T.setState({animating:!1}),clearTimeout(T.animationEndCallback),delete T.animationEndCallback}}),z(L(T),"updateState",function(yt,ct,gt){var bt=(0,M.initializedState)(yt);yt=R(R(R({},yt),bt),{},{slideIndex:bt.currentSlide});var Tt=(0,M.getTrackLeft)(yt);yt=R(R({},yt),{},{left:Tt});var Pt=(0,M.getTrackCSS)(yt);(ct||Z.default.Children.count(T.props.children)!==Z.default.Children.count(yt.children))&&(bt.trackStyle=Pt),T.setState(bt,gt)}),z(L(T),"ssrInit",function(){if(T.props.variableWidth){var yt=0,ct=0,gt=[],bt=(0,M.getPreClones)(R(R(R({},T.props),T.state),{},{slideCount:T.props.children.length})),Tt=(0,M.getPostClones)(R(R(R({},T.props),T.state),{},{slideCount:T.props.children.length}));T.props.children.forEach(function(Kt){gt.push(Kt.props.style.width),yt+=Kt.props.style.width});for(var Pt=0;Pt<bt;Pt++)ct+=gt[gt.length-1-Pt],yt+=gt[gt.length-1-Pt];for(var It=0;It<Tt;It++)yt+=gt[It];for(var Dt=0;Dt<T.state.currentSlide;Dt++)ct+=gt[Dt];var jt={width:yt+"px",left:-ct+"px"};if(T.props.centerMode){var Mt="".concat(gt[T.state.currentSlide],"px");jt.left="calc(".concat(jt.left," + (100% - ").concat(Mt,") / 2 ) ")}return{trackStyle:jt}}var Q=Z.default.Children.count(T.props.children),vt=R(R(R({},T.props),T.state),{},{slideCount:Q}),Lt=(0,M.getPreClones)(vt)+(0,M.getPostClones)(vt)+Q,Rt=100/T.props.slidesToShow*Lt,Bt=100/Lt,Ht=-Bt*((0,M.getPreClones)(vt)+T.state.currentSlide)*Rt/100;T.props.centerMode&&(Ht+=(100-Bt*Rt/100)/2);var zt={width:Rt+"%",left:Ht+"%"};return{slideWidth:Bt+"%",trackStyle:zt}}),z(L(T),"checkImagesLoad",function(){var yt=T.list&&T.list.querySelectorAll&&T.list.querySelectorAll(".slick-slide img")||[],ct=yt.length,gt=0;Array.prototype.forEach.call(yt,function(bt){var Tt=function(){return++gt&&gt>=ct&&T.onWindowResized()};if(!bt.onclick)bt.onclick=function(){return bt.parentNode.focus()};else{var Pt=bt.onclick;bt.onclick=function(It){Pt(It),bt.parentNode.focus()}}bt.onload||(T.props.lazyLoad?bt.onload=function(){T.adaptHeight(),T.callbackTimers.push(setTimeout(T.onWindowResized,T.props.speed))}:(bt.onload=Tt,bt.onerror=function(){Tt(),T.props.onLazyLoadError&&T.props.onLazyLoadError()}))})}),z(L(T),"progressiveLazyLoad",function(){for(var yt=[],ct=R(R({},T.props),T.state),gt=T.state.currentSlide;gt<T.state.slideCount+(0,M.getPostClones)(ct);gt++)if(T.state.lazyLoadedList.indexOf(gt)<0){yt.push(gt);break}for(var bt=T.state.currentSlide-1;bt>=-(0,M.getPreClones)(ct);bt--)if(T.state.lazyLoadedList.indexOf(bt)<0){yt.push(bt);break}yt.length>0?(T.setState(function(Tt){return{lazyLoadedList:Tt.lazyLoadedList.concat(yt)}}),T.props.onLazyLoad&&T.props.onLazyLoad(yt)):T.lazyLoadTimer&&(clearInterval(T.lazyLoadTimer),delete T.lazyLoadTimer)}),z(L(T),"slideHandler",function(yt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=T.props,bt=gt.asNavFor,Tt=gt.beforeChange,Pt=gt.onLazyLoad,It=gt.speed,Dt=gt.afterChange,jt=T.state.currentSlide,Mt=(0,M.slideHandler)(R(R(R({index:yt},T.props),T.state),{},{trackRef:T.track,useCSS:T.props.useCSS&&!ct})),Q=Mt.state,vt=Mt.nextState;if(Q){Tt&&Tt(jt,Q.currentSlide);var Lt=Q.lazyLoadedList.filter(function(Rt){return T.state.lazyLoadedList.indexOf(Rt)<0});Pt&&Lt.length>0&&Pt(Lt),!T.props.waitForAnimate&&T.animationEndCallback&&(clearTimeout(T.animationEndCallback),Dt&&Dt(jt),delete T.animationEndCallback),T.setState(Q,function(){bt&&T.asNavForIndex!==yt&&(T.asNavForIndex=yt,bt.innerSlider.slideHandler(yt)),vt&&(T.animationEndCallback=setTimeout(function(){var Rt=vt.animating,Bt=it(vt,["animating"]);T.setState(Bt,function(){T.callbackTimers.push(setTimeout(function(){return T.setState({animating:Rt})},10)),Dt&&Dt(Q.currentSlide),delete T.animationEndCallback})},It))})}}),z(L(T),"changeSlide",function(yt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=R(R({},T.props),T.state),bt=(0,M.changeSlide)(gt,yt);if(!(bt!==0&&!bt)&&(ct===!0?T.slideHandler(bt,ct):T.slideHandler(bt),T.props.autoplay&&T.autoPlay("update"),T.props.focusOnSelect)){var Tt=T.list.querySelectorAll(".slick-current");Tt[0]&&Tt[0].focus()}}),z(L(T),"clickHandler",function(yt){T.clickable===!1&&(yt.stopPropagation(),yt.preventDefault()),T.clickable=!0}),z(L(T),"keyHandler",function(yt){var ct=(0,M.keyHandler)(yt,T.props.accessibility,T.props.rtl);ct!==""&&T.changeSlide({message:ct})}),z(L(T),"selectHandler",function(yt){T.changeSlide(yt)}),z(L(T),"disableBodyScroll",function(){var yt=function(gt){gt=gt||window.event,gt.preventDefault&&gt.preventDefault(),gt.returnValue=!1};window.ontouchmove=yt}),z(L(T),"enableBodyScroll",function(){window.ontouchmove=null}),z(L(T),"swipeStart",function(yt){T.props.verticalSwiping&&T.disableBodyScroll();var ct=(0,M.swipeStart)(yt,T.props.swipe,T.props.draggable);ct!==""&&T.setState(ct)}),z(L(T),"swipeMove",function(yt){var ct=(0,M.swipeMove)(yt,R(R(R({},T.props),T.state),{},{trackRef:T.track,listRef:T.list,slideIndex:T.state.currentSlide}));ct&&(ct.swiping&&(T.clickable=!1),T.setState(ct))}),z(L(T),"swipeEnd",function(yt){var ct=(0,M.swipeEnd)(yt,R(R(R({},T.props),T.state),{},{trackRef:T.track,listRef:T.list,slideIndex:T.state.currentSlide}));if(ct){var gt=ct.triggerSlideHandler;delete ct.triggerSlideHandler,T.setState(ct),gt!==void 0&&(T.slideHandler(gt),T.props.verticalSwiping&&T.enableBodyScroll())}}),z(L(T),"touchEnd",function(yt){T.swipeEnd(yt),T.clickable=!0}),z(L(T),"slickPrev",function(){T.callbackTimers.push(setTimeout(function(){return T.changeSlide({message:"previous"})},0))}),z(L(T),"slickNext",function(){T.callbackTimers.push(setTimeout(function(){return T.changeSlide({message:"next"})},0))}),z(L(T),"slickGoTo",function(yt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(yt=Number(yt),isNaN(yt))return"";T.callbackTimers.push(setTimeout(function(){return T.changeSlide({message:"index",index:yt,currentSlide:T.state.currentSlide},ct)},0))}),z(L(T),"play",function(){var yt;if(T.props.rtl)yt=T.state.currentSlide-T.props.slidesToScroll;else if((0,M.canGoNext)(R(R({},T.props),T.state)))yt=T.state.currentSlide+T.props.slidesToScroll;else return!1;T.slideHandler(yt)}),z(L(T),"autoPlay",function(yt){T.autoplayTimer&&clearInterval(T.autoplayTimer);var ct=T.state.autoplaying;if(yt==="update"){if(ct==="hovered"||ct==="focused"||ct==="paused")return}else if(yt==="leave"){if(ct==="paused"||ct==="focused")return}else if(yt==="blur"&&(ct==="paused"||ct==="hovered"))return;T.autoplayTimer=setInterval(T.play,T.props.autoplaySpeed+50),T.setState({autoplaying:"playing"})}),z(L(T),"pause",function(yt){T.autoplayTimer&&(clearInterval(T.autoplayTimer),T.autoplayTimer=null);var ct=T.state.autoplaying;yt==="paused"?T.setState({autoplaying:"paused"}):yt==="focused"?(ct==="hovered"||ct==="playing")&&T.setState({autoplaying:"focused"}):ct==="playing"&&T.setState({autoplaying:"hovered"})}),z(L(T),"onDotsOver",function(){return T.props.autoplay&&T.pause("hovered")}),z(L(T),"onDotsLeave",function(){return T.props.autoplay&&T.state.autoplaying==="hovered"&&T.autoPlay("leave")}),z(L(T),"onTrackOver",function(){return T.props.autoplay&&T.pause("hovered")}),z(L(T),"onTrackLeave",function(){return T.props.autoplay&&T.state.autoplaying==="hovered"&&T.autoPlay("leave")}),z(L(T),"onSlideFocus",function(){return T.props.autoplay&&T.pause("focused")}),z(L(T),"onSlideBlur",function(){return T.props.autoplay&&T.state.autoplaying==="focused"&&T.autoPlay("blur")}),z(L(T),"render",function(){var yt=(0,b.default)("slick-slider",T.props.className,{"slick-vertical":T.props.vertical,"slick-initialized":!0}),ct=R(R({},T.props),T.state),gt=(0,M.extractObject)(ct,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),bt=T.props.pauseOnHover;gt=R(R({},gt),{},{onMouseEnter:bt?T.onTrackOver:null,onMouseLeave:bt?T.onTrackLeave:null,onMouseOver:bt?T.onTrackOver:null,focusOnSelect:T.props.focusOnSelect&&T.clickable?T.selectHandler:null});var Tt;if(T.props.dots===!0&&T.state.slideCount>=T.props.slidesToShow){var Pt=(0,M.extractObject)(ct,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),It=T.props.pauseOnDotsHover;Pt=R(R({},Pt),{},{clickHandler:T.changeSlide,onMouseEnter:It?T.onDotsLeave:null,onMouseOver:It?T.onDotsOver:null,onMouseLeave:It?T.onDotsLeave:null}),Tt=Z.default.createElement(st.Dots,Pt)}var Dt,jt,Mt=(0,M.extractObject)(ct,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Mt.clickHandler=T.changeSlide,T.props.arrows&&(Dt=Z.default.createElement(rt.PrevArrow,Mt),jt=Z.default.createElement(rt.NextArrow,Mt));var Q=null;T.props.vertical&&(Q={height:T.state.listHeight});var vt=null;T.props.vertical===!1?T.props.centerMode===!0&&(vt={padding:"0px "+T.props.centerPadding}):T.props.centerMode===!0&&(vt={padding:T.props.centerPadding+" 0px"});var Lt=R(R({},Q),vt),Rt=T.props.touchMove,Bt={className:"slick-list",style:Lt,onClick:T.clickHandler,onMouseDown:Rt?T.swipeStart:null,onMouseMove:T.state.dragging&&Rt?T.swipeMove:null,onMouseUp:Rt?T.swipeEnd:null,onMouseLeave:T.state.dragging&&Rt?T.swipeEnd:null,onTouchStart:Rt?T.swipeStart:null,onTouchMove:T.state.dragging&&Rt?T.swipeMove:null,onTouchEnd:Rt?T.touchEnd:null,onTouchCancel:T.state.dragging&&Rt?T.swipeEnd:null,onKeyDown:T.props.accessibility?T.keyHandler:null},Ht={className:yt,dir:"ltr",style:T.props.style};return T.props.unslick&&(Bt={className:"slick-list"},Ht={className:yt}),Z.default.createElement("div",Ht,T.props.unslick?"":Dt,Z.default.createElement("div",j({ref:T.listRefHandler},Bt),Z.default.createElement(W.Track,j({ref:T.trackRefHandler},gt),T.props.children)),T.props.unslick?"":jt,T.props.unslick?"":Tt)}),T.list=null,T.track=null,T.state=R(R({},I.default),{},{currentSlide:T.props.initialSlide,targetSlide:T.props.initialSlide?T.props.initialSlide:0,slideCount:Z.default.Children.count(T.props.children)}),T.callbackTimers=[],T.clickable=!0,T.debouncedResize=null;var ht=T.ssrInit();return T.state=R(R({},T.state),ht),T}return K(dt,[{key:"didPropsChange",value:function(T){for(var ht=!1,yt=0,ct=Object.keys(this.props);yt<ct.length;yt++){var gt=ct[yt];if(!T.hasOwnProperty(gt)){ht=!0;break}if(!(A(T[gt])==="object"||typeof T[gt]=="function"||isNaN(T[gt]))&&T[gt]!==this.props[gt]){ht=!0;break}}return ht||Z.default.Children.count(this.props.children)!==Z.default.Children.count(T.children)}}]),dt}(Z.default.Component)},28352:($t,wt,w)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.default=void 0;var Z=W(w(51044)),I=w(68335),O=W(w(20921)),b=W(w(61351)),M=w(63773);function W(G){return G&&G.__esModule?G:{default:G}}function st(G){"@babel/helpers - typeof";return st=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},st(G)}function rt(){return rt=Object.assign?Object.assign.bind():function(G){for(var z=1;z<arguments.length;z++){var F=arguments[z];for(var k in F)Object.prototype.hasOwnProperty.call(F,k)&&(G[k]=F[k])}return G},rt.apply(this,arguments)}function m(G,z){var F=Object.keys(G);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(G);z&&(k=k.filter(function(ut){return Object.getOwnPropertyDescriptor(G,ut).enumerable})),F.push.apply(F,k)}return F}function U(G){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?m(Object(F),!0).forEach(function(k){B(G,k,F[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(F)):m(Object(F)).forEach(function(k){Object.defineProperty(G,k,Object.getOwnPropertyDescriptor(F,k))})}return G}function A(G,z){if(!(G instanceof z))throw new TypeError("Cannot call a class as a function")}function j(G,z){for(var F=0;F<z.length;F++){var k=z[F];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(G,X(k.key),k)}}function it(G,z,F){return z&&j(G.prototype,z),F&&j(G,F),Object.defineProperty(G,"prototype",{writable:!1}),G}function Y(G,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(z&&z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Object.defineProperty(G,"prototype",{writable:!1}),z&&P(G,z)}function P(G,z){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,ut){return k.__proto__=ut,k},P(G,z)}function R(G){var z=K();return function(){var k=H(G),ut;if(z){var E=H(this).constructor;ut=Reflect.construct(k,arguments,E)}else ut=k.apply(this,arguments);return at(this,ut)}}function at(G,z){if(z&&(st(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(G)}function $(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function K(){try{var G=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(z){}return(K=function(){return!!G})()}function H(G){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},H(G)}function B(G,z,F){return z=X(z),z in G?Object.defineProperty(G,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):G[z]=F,G}function X(G){var z=V(G,"string");return st(z)=="symbol"?z:String(z)}function V(G,z){if(st(G)!="object"||!G)return G;var F=G[Symbol.toPrimitive];if(F!==void 0){var k=F.call(G,z||"default");if(st(k)!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(G)}var L=(0,M.canUseDOM)()&&w(68218),ot=wt.default=function(G){Y(F,G);var z=R(F);function F(k){var ut;return A(this,F),ut=z.call(this,k),B($(ut),"innerSliderRefHandler",function(E){return ut.innerSlider=E}),B($(ut),"slickPrev",function(){return ut.innerSlider.slickPrev()}),B($(ut),"slickNext",function(){return ut.innerSlider.slickNext()}),B($(ut),"slickGoTo",function(E){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ut.innerSlider.slickGoTo(E,J)}),B($(ut),"slickPause",function(){return ut.innerSlider.pause("paused")}),B($(ut),"slickPlay",function(){return ut.innerSlider.autoPlay("play")}),ut.state={breakpoint:null},ut._responsiveMediaHandlers=[],ut}return it(F,[{key:"media",value:function(ut,E){L.register(ut,E),this._responsiveMediaHandlers.push({query:ut,handler:E})}},{key:"componentDidMount",value:function(){var ut=this;if(this.props.responsive){var E=this.props.responsive.map(function(dt){return dt.breakpoint});E.sort(function(dt,pt){return dt-pt}),E.forEach(function(dt,pt){var T;pt===0?T=(0,O.default)({minWidth:0,maxWidth:dt}):T=(0,O.default)({minWidth:E[pt-1]+1,maxWidth:dt}),(0,M.canUseDOM)()&&ut.media(T,function(){ut.setState({breakpoint:dt})})});var J=(0,O.default)({minWidth:E.slice(-1)[0]});(0,M.canUseDOM)()&&this.media(J,function(){ut.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(ut){L.unregister(ut.query,ut.handler)})}},{key:"render",value:function(){var ut=this,E,J;this.state.breakpoint?(J=this.props.responsive.filter(function(Pt){return Pt.breakpoint===ut.state.breakpoint}),E=J[0].settings==="unslick"?"unslick":U(U(U({},b.default),this.props),J[0].settings)):E=U(U({},b.default),this.props),E.centerMode&&(E.slidesToScroll>1,E.slidesToScroll=1),E.fade&&(E.slidesToShow>1,E.slidesToScroll>1,E.slidesToShow=1,E.slidesToScroll=1);var dt=Z.default.Children.toArray(this.props.children);dt=dt.filter(function(Pt){return typeof Pt=="string"?!!Pt.trim():!!Pt}),E.variableWidth&&(E.rows>1||E.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),E.variableWidth=!1);for(var pt=[],T=null,ht=0;ht<dt.length;ht+=E.rows*E.slidesPerRow){for(var yt=[],ct=ht;ct<ht+E.rows*E.slidesPerRow;ct+=E.slidesPerRow){for(var gt=[],bt=ct;bt<ct+E.slidesPerRow&&(E.variableWidth&&dt[bt].props.style&&(T=dt[bt].props.style.width),!(bt>=dt.length));bt+=1)gt.push(Z.default.cloneElement(dt[bt],{key:100*ht+10*ct+bt,tabIndex:-1,style:{width:"".concat(100/E.slidesPerRow,"%"),display:"inline-block"}}));yt.push(Z.default.createElement("div",{key:10*ht+ct},gt))}E.variableWidth?pt.push(Z.default.createElement("div",{key:ht,style:{width:T}},yt)):pt.push(Z.default.createElement("div",{key:ht},yt))}if(E==="unslick"){var Tt="regular slider "+(this.props.className||"");return Z.default.createElement("div",{className:Tt},dt)}else pt.length<=E.slidesToShow&&!E.infinite&&(E.unslick=!0);return Z.default.createElement(I.InnerSlider,rt({style:this.props.style,ref:this.innerSliderRefHandler},(0,M.filterSettings)(E)),pt)}}]),F}(Z.default.Component)},22542:($t,wt,w)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.Track=void 0;var Z=b(w(51044)),I=b(w(86634)),O=w(63773);function b(z){return z&&z.__esModule?z:{default:z}}function M(z){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},M(z)}function W(){return W=Object.assign?Object.assign.bind():function(z){for(var F=1;F<arguments.length;F++){var k=arguments[F];for(var ut in k)Object.prototype.hasOwnProperty.call(k,ut)&&(z[ut]=k[ut])}return z},W.apply(this,arguments)}function st(z,F){if(!(z instanceof F))throw new TypeError("Cannot call a class as a function")}function rt(z,F){for(var k=0;k<F.length;k++){var ut=F[k];ut.enumerable=ut.enumerable||!1,ut.configurable=!0,"value"in ut&&(ut.writable=!0),Object.defineProperty(z,H(ut.key),ut)}}function m(z,F,k){return F&&rt(z.prototype,F),k&&rt(z,k),Object.defineProperty(z,"prototype",{writable:!1}),z}function U(z,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(F&&F.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),F&&A(z,F)}function A(z,F){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ut,E){return ut.__proto__=E,ut},A(z,F)}function j(z){var F=P();return function(){var ut=R(z),E;if(F){var J=R(this).constructor;E=Reflect.construct(ut,arguments,J)}else E=ut.apply(this,arguments);return it(this,E)}}function it(z,F){if(F&&(M(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y(z)}function Y(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function P(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(F){}return(P=function(){return!!z})()}function R(z){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},R(z)}function at(z,F){var k=Object.keys(z);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(z);F&&(ut=ut.filter(function(E){return Object.getOwnPropertyDescriptor(z,E).enumerable})),k.push.apply(k,ut)}return k}function $(z){for(var F=1;F<arguments.length;F++){var k=arguments[F]!=null?arguments[F]:{};F%2?at(Object(k),!0).forEach(function(ut){K(z,ut,k[ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(k)):at(Object(k)).forEach(function(ut){Object.defineProperty(z,ut,Object.getOwnPropertyDescriptor(k,ut))})}return z}function K(z,F,k){return F=H(F),F in z?Object.defineProperty(z,F,{value:k,enumerable:!0,configurable:!0,writable:!0}):z[F]=k,z}function H(z){var F=B(z,"string");return M(F)=="symbol"?F:String(F)}function B(z,F){if(M(z)!="object"||!z)return z;var k=z[Symbol.toPrimitive];if(k!==void 0){var ut=k.call(z,F||"default");if(M(ut)!="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(z)}var X=function(F){var k,ut,E,J,dt;F.rtl?dt=F.slideCount-1-F.index:dt=F.index,E=dt<0||dt>=F.slideCount,F.centerMode?(J=Math.floor(F.slidesToShow/2),ut=(dt-F.currentSlide)%F.slideCount===0,dt>F.currentSlide-J-1&&dt<=F.currentSlide+J&&(k=!0)):k=F.currentSlide<=dt&&dt<F.currentSlide+F.slidesToShow;var pt;F.targetSlide<0?pt=F.targetSlide+F.slideCount:F.targetSlide>=F.slideCount?pt=F.targetSlide-F.slideCount:pt=F.targetSlide;var T=dt===pt;return{"slick-slide":!0,"slick-active":k,"slick-center":ut,"slick-cloned":E,"slick-current":T}},V=function(F){var k={};return(F.variableWidth===void 0||F.variableWidth===!1)&&(k.width=F.slideWidth),F.fade&&(k.position="relative",F.vertical?k.top=-F.index*parseInt(F.slideHeight):k.left=-F.index*parseInt(F.slideWidth),k.opacity=F.currentSlide===F.index?1:0,k.zIndex=F.currentSlide===F.index?999:998,F.useCSS&&(k.transition="opacity "+F.speed+"ms "+F.cssEase+", visibility "+F.speed+"ms "+F.cssEase)),k},L=function(F,k){return F.key||k},ot=function(F){var k,ut=[],E=[],J=[],dt=Z.default.Children.count(F.children),pt=(0,O.lazyStartIndex)(F),T=(0,O.lazyEndIndex)(F);return Z.default.Children.forEach(F.children,function(ht,yt){var ct,gt={message:"children",index:yt,slidesToScroll:F.slidesToScroll,currentSlide:F.currentSlide};!F.lazyLoad||F.lazyLoad&&F.lazyLoadedList.indexOf(yt)>=0?ct=ht:ct=Z.default.createElement("div",null);var bt=V($($({},F),{},{index:yt})),Tt=ct.props.className||"",Pt=X($($({},F),{},{index:yt}));if(ut.push(Z.default.cloneElement(ct,{key:"original"+L(ct,yt),"data-index":yt,className:(0,I.default)(Pt,Tt),tabIndex:"-1","aria-hidden":!Pt["slick-active"],style:$($({outline:"none"},ct.props.style||{}),bt),onClick:function(jt){ct.props&&ct.props.onClick&&ct.props.onClick(jt),F.focusOnSelect&&F.focusOnSelect(gt)}})),F.infinite&&F.fade===!1){var It=dt-yt;It<=(0,O.getPreClones)(F)&&(k=-It,k>=pt&&(ct=ht),Pt=X($($({},F),{},{index:k})),E.push(Z.default.cloneElement(ct,{key:"precloned"+L(ct,k),"data-index":k,tabIndex:"-1",className:(0,I.default)(Pt,Tt),"aria-hidden":!Pt["slick-active"],style:$($({},ct.props.style||{}),bt),onClick:function(jt){ct.props&&ct.props.onClick&&ct.props.onClick(jt),F.focusOnSelect&&F.focusOnSelect(gt)}}))),k=dt+yt,k<T&&(ct=ht),Pt=X($($({},F),{},{index:k})),J.push(Z.default.cloneElement(ct,{key:"postcloned"+L(ct,k),"data-index":k,tabIndex:"-1",className:(0,I.default)(Pt,Tt),"aria-hidden":!Pt["slick-active"],style:$($({},ct.props.style||{}),bt),onClick:function(jt){ct.props&&ct.props.onClick&&ct.props.onClick(jt),F.focusOnSelect&&F.focusOnSelect(gt)}}))}}),F.rtl?E.concat(ut,J).reverse():E.concat(ut,J)},G=wt.Track=function(z){U(k,z);var F=j(k);function k(){var ut;st(this,k);for(var E=arguments.length,J=new Array(E),dt=0;dt<E;dt++)J[dt]=arguments[dt];return ut=F.call.apply(F,[this].concat(J)),K(Y(ut),"node",null),K(Y(ut),"handleRef",function(pt){ut.node=pt}),ut}return m(k,[{key:"render",value:function(){var E=ot(this.props),J=this.props,dt=J.onMouseEnter,pt=J.onMouseOver,T=J.onMouseLeave,ht={onMouseEnter:dt,onMouseOver:pt,onMouseLeave:T};return Z.default.createElement("div",W({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ht),E)}}]),k}(Z.default.PureComponent)},63773:($t,wt,w)=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0}),wt.checkSpecKeys=wt.checkNavigable=wt.changeSlide=wt.canUseDOM=wt.canGoNext=void 0,wt.clamp=U,wt.extractObject=void 0,wt.filterSettings=jt,wt.validSettings=wt.swipeStart=wt.swipeMove=wt.swipeEnd=wt.slidesOnRight=wt.slidesOnLeft=wt.slideHandler=wt.siblingDirection=wt.safePreventDefault=wt.lazyStartIndex=wt.lazySlidesOnRight=wt.lazySlidesOnLeft=wt.lazyEndIndex=wt.keyHandler=wt.initializedState=wt.getWidth=wt.getTrackLeft=wt.getTrackCSS=wt.getTrackAnimateCSS=wt.getTotalSlides=wt.getSwipeDirection=wt.getSlideCount=wt.getRequiredLazySlides=wt.getPreClones=wt.getPostClones=wt.getOnDemandLazySlides=wt.getNavigableIndexes=wt.getHeight=void 0;var Z=O(w(51044)),I=O(w(61351));function O(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}function b(Mt){"@babel/helpers - typeof";return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},b(Mt)}function M(Mt,Q){var vt=Object.keys(Mt);if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(Mt);Q&&(Lt=Lt.filter(function(Rt){return Object.getOwnPropertyDescriptor(Mt,Rt).enumerable})),vt.push.apply(vt,Lt)}return vt}function W(Mt){for(var Q=1;Q<arguments.length;Q++){var vt=arguments[Q]!=null?arguments[Q]:{};Q%2?M(Object(vt),!0).forEach(function(Lt){st(Mt,Lt,vt[Lt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mt,Object.getOwnPropertyDescriptors(vt)):M(Object(vt)).forEach(function(Lt){Object.defineProperty(Mt,Lt,Object.getOwnPropertyDescriptor(vt,Lt))})}return Mt}function st(Mt,Q,vt){return Q=rt(Q),Q in Mt?Object.defineProperty(Mt,Q,{value:vt,enumerable:!0,configurable:!0,writable:!0}):Mt[Q]=vt,Mt}function rt(Mt){var Q=m(Mt,"string");return b(Q)=="symbol"?Q:String(Q)}function m(Mt,Q){if(b(Mt)!="object"||!Mt)return Mt;var vt=Mt[Symbol.toPrimitive];if(vt!==void 0){var Lt=vt.call(Mt,Q||"default");if(b(Lt)!="object")return Lt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(Mt)}function U(Mt,Q,vt){return Math.max(Q,Math.min(Mt,vt))}var A=wt.safePreventDefault=function(Q){var vt=["onTouchStart","onTouchMove","onWheel"];vt.includes(Q._reactName)||Q.preventDefault()},j=wt.getOnDemandLazySlides=function(Q){for(var vt=[],Lt=Y(Q),Rt=P(Q),Bt=Lt;Bt<Rt;Bt++)Q.lazyLoadedList.indexOf(Bt)<0&&vt.push(Bt);return vt},it=wt.getRequiredLazySlides=function(Q){for(var vt=[],Lt=Y(Q),Rt=P(Q),Bt=Lt;Bt<Rt;Bt++)vt.push(Bt);return vt},Y=wt.lazyStartIndex=function(Q){return Q.currentSlide-R(Q)},P=wt.lazyEndIndex=function(Q){return Q.currentSlide+at(Q)},R=wt.lazySlidesOnLeft=function(Q){return Q.centerMode?Math.floor(Q.slidesToShow/2)+(parseInt(Q.centerPadding)>0?1:0):0},at=wt.lazySlidesOnRight=function(Q){return Q.centerMode?Math.floor((Q.slidesToShow-1)/2)+1+(parseInt(Q.centerPadding)>0?1:0):Q.slidesToShow},$=wt.getWidth=function(Q){return Q&&Q.offsetWidth||0},K=wt.getHeight=function(Q){return Q&&Q.offsetHeight||0},H=wt.getSwipeDirection=function(Q){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lt,Rt,Bt,Ht;return Lt=Q.startX-Q.curX,Rt=Q.startY-Q.curY,Bt=Math.atan2(Rt,Lt),Ht=Math.round(Bt*180/Math.PI),Ht<0&&(Ht=360-Math.abs(Ht)),Ht<=45&&Ht>=0||Ht<=360&&Ht>=315?"left":Ht>=135&&Ht<=225?"right":vt===!0?Ht>=35&&Ht<=135?"up":"down":"vertical"},B=wt.canGoNext=function(Q){var vt=!0;return Q.infinite||(Q.centerMode&&Q.currentSlide>=Q.slideCount-1||Q.slideCount<=Q.slidesToShow||Q.currentSlide>=Q.slideCount-Q.slidesToShow)&&(vt=!1),vt},X=wt.extractObject=function(Q,vt){var Lt={};return vt.forEach(function(Rt){return Lt[Rt]=Q[Rt]}),Lt},V=wt.initializedState=function(Q){var vt=Z.default.Children.count(Q.children),Lt=Q.listRef,Rt=Math.ceil($(Lt)),Bt=Q.trackRef&&Q.trackRef.node,Ht=Math.ceil($(Bt)),zt;if(Q.vertical)zt=Rt;else{var Kt=Q.centerMode&&parseInt(Q.centerPadding)*2;typeof Q.centerPadding=="string"&&Q.centerPadding.slice(-1)==="%"&&(Kt*=Rt/100),zt=Math.ceil((Rt-Kt)/Q.slidesToShow)}var ce=Lt&&K(Lt.querySelector('[data-index="0"]')),oe=ce*Q.slidesToShow,he=Q.currentSlide===void 0?Q.initialSlide:Q.currentSlide;Q.rtl&&Q.currentSlide===void 0&&(he=vt-1-Q.initialSlide);var _e=Q.lazyLoadedList||[],Fe=j(W(W({},Q),{},{currentSlide:he,lazyLoadedList:_e}));_e=_e.concat(Fe);var Re={slideCount:vt,slideWidth:zt,listWidth:Rt,trackWidth:Ht,currentSlide:he,slideHeight:ce,listHeight:oe,lazyLoadedList:_e};return Q.autoplaying===null&&Q.autoplay&&(Re.autoplaying="playing"),Re},L=wt.slideHandler=function(Q){var vt=Q.waitForAnimate,Lt=Q.animating,Rt=Q.fade,Bt=Q.infinite,Ht=Q.index,zt=Q.slideCount,Kt=Q.lazyLoad,ce=Q.currentSlide,oe=Q.centerMode,he=Q.slidesToScroll,_e=Q.slidesToShow,Fe=Q.useCSS,Re=Q.lazyLoadedList;if(vt&&Lt)return{};var le=Ht,ee,ge,de,fe={},Ae={},te=Bt?Ht:U(Ht,0,zt-1);if(Rt){if(!Bt&&(Ht<0||Ht>=zt))return{};Ht<0?le=Ht+zt:Ht>=zt&&(le=Ht-zt),Kt&&Re.indexOf(le)<0&&(Re=Re.concat(le)),fe={animating:!0,currentSlide:le,lazyLoadedList:Re,targetSlide:le},Ae={animating:!1,targetSlide:le}}else ee=le,le<0?(ee=le+zt,Bt?zt%he!==0&&(ee=zt-zt%he):ee=0):!B(Q)&&le>ce?le=ee=ce:oe&&le>=zt?(le=Bt?zt:zt-1,ee=Bt?0:zt-1):le>=zt&&(ee=le-zt,Bt?zt%he!==0&&(ee=0):ee=zt-_e),!Bt&&le+_e>=zt&&(ee=zt-_e),ge=ht(W(W({},Q),{},{slideIndex:le})),de=ht(W(W({},Q),{},{slideIndex:ee})),Bt||(ge===de&&(le=ee),ge=de),Kt&&(Re=Re.concat(j(W(W({},Q),{},{currentSlide:le})))),Fe?(fe={animating:!0,currentSlide:ee,trackStyle:T(W(W({},Q),{},{left:ge})),lazyLoadedList:Re,targetSlide:te},Ae={animating:!1,currentSlide:ee,trackStyle:pt(W(W({},Q),{},{left:de})),swipeLeft:null,targetSlide:te}):fe={currentSlide:ee,trackStyle:pt(W(W({},Q),{},{left:de})),lazyLoadedList:Re,targetSlide:te};return{state:fe,nextState:Ae}},ot=wt.changeSlide=function(Q,vt){var Lt,Rt,Bt,Ht,zt,Kt=Q.slidesToScroll,ce=Q.slidesToShow,oe=Q.slideCount,he=Q.currentSlide,_e=Q.targetSlide,Fe=Q.lazyLoad,Re=Q.infinite;if(Ht=oe%Kt!==0,Lt=Ht?0:(oe-he)%Kt,vt.message==="previous")Bt=Lt===0?Kt:ce-Lt,zt=he-Bt,Fe&&!Re&&(Rt=he-Bt,zt=Rt===-1?oe-1:Rt),Re||(zt=_e-Kt);else if(vt.message==="next")Bt=Lt===0?Kt:Lt,zt=he+Bt,Fe&&!Re&&(zt=(he+Kt)%oe+Lt),Re||(zt=_e+Kt);else if(vt.message==="dots")zt=vt.index*vt.slidesToScroll;else if(vt.message==="children"){if(zt=vt.index,Re){var le=bt(W(W({},Q),{},{targetSlide:zt}));zt>vt.currentSlide&&le==="left"?zt=zt-oe:zt<vt.currentSlide&&le==="right"&&(zt=zt+oe)}}else vt.message==="index"&&(zt=Number(vt.index));return zt},G=wt.keyHandler=function(Q,vt,Lt){return Q.target.tagName.match("TEXTAREA|INPUT|SELECT")||!vt?"":Q.keyCode===37?Lt?"next":"previous":Q.keyCode===39?Lt?"previous":"next":""},z=wt.swipeStart=function(Q,vt,Lt){return Q.target.tagName==="IMG"&&A(Q),!vt||!Lt&&Q.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:Q.touches?Q.touches[0].pageX:Q.clientX,startY:Q.touches?Q.touches[0].pageY:Q.clientY,curX:Q.touches?Q.touches[0].pageX:Q.clientX,curY:Q.touches?Q.touches[0].pageY:Q.clientY}}},F=wt.swipeMove=function(Q,vt){var Lt=vt.scrolling,Rt=vt.animating,Bt=vt.vertical,Ht=vt.swipeToSlide,zt=vt.verticalSwiping,Kt=vt.rtl,ce=vt.currentSlide,oe=vt.edgeFriction,he=vt.edgeDragged,_e=vt.onEdge,Fe=vt.swiped,Re=vt.swiping,le=vt.slideCount,ee=vt.slidesToScroll,ge=vt.infinite,de=vt.touchObject,fe=vt.swipeEvent,Ae=vt.listHeight,te=vt.listWidth;if(!Lt){if(Rt)return A(Q);Bt&&Ht&&zt&&A(Q);var Ie,cn={},ln=ht(vt);de.curX=Q.touches?Q.touches[0].pageX:Q.clientX,de.curY=Q.touches?Q.touches[0].pageY:Q.clientY,de.swipeLength=Math.round(Math.sqrt(Math.pow(de.curX-de.startX,2)));var Qe=Math.round(Math.sqrt(Math.pow(de.curY-de.startY,2)));if(!zt&&!Re&&Qe>10)return{scrolling:!0};zt&&(de.swipeLength=Qe);var dn=(Kt?-1:1)*(de.curX>de.startX?1:-1);zt&&(dn=de.curY>de.startY?1:-1);var fn=Math.ceil(le/ee),Tn=H(vt.touchObject,zt),un=de.swipeLength;return ge||(ce===0&&(Tn==="right"||Tn==="down")||ce+1>=fn&&(Tn==="left"||Tn==="up")||!B(vt)&&(Tn==="left"||Tn==="up"))&&(un=de.swipeLength*oe,he===!1&&_e&&(_e(Tn),cn.edgeDragged=!0)),!Fe&&fe&&(fe(Tn),cn.swiped=!0),Bt?Ie=ln+un*(Ae/te)*dn:Kt?Ie=ln-un*dn:Ie=ln+un*dn,zt&&(Ie=ln+un*dn),cn=W(W({},cn),{},{touchObject:de,swipeLeft:Ie,trackStyle:pt(W(W({},vt),{},{left:Ie}))}),Math.abs(de.curX-de.startX)<Math.abs(de.curY-de.startY)*.8||de.swipeLength>10&&(cn.swiping=!0,A(Q)),cn}},k=wt.swipeEnd=function(Q,vt){var Lt=vt.dragging,Rt=vt.swipe,Bt=vt.touchObject,Ht=vt.listWidth,zt=vt.touchThreshold,Kt=vt.verticalSwiping,ce=vt.listHeight,oe=vt.swipeToSlide,he=vt.scrolling,_e=vt.onSwipe,Fe=vt.targetSlide,Re=vt.currentSlide,le=vt.infinite;if(!Lt)return Rt&&A(Q),{};var ee=Kt?ce/zt:Ht/zt,ge=H(Bt,Kt),de={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(he||!Bt.swipeLength)return de;if(Bt.swipeLength>ee){A(Q),_e&&_e(ge);var fe,Ae,te=le?Re:Fe;switch(ge){case"left":case"up":Ae=te+J(vt),fe=oe?E(vt,Ae):Ae,de.currentDirection=0;break;case"right":case"down":Ae=te-J(vt),fe=oe?E(vt,Ae):Ae,de.currentDirection=1;break;default:fe=te}de.triggerSlideHandler=fe}else{var Ie=ht(vt);de.trackStyle=T(W(W({},vt),{},{left:Ie}))}return de},ut=wt.getNavigableIndexes=function(Q){for(var vt=Q.infinite?Q.slideCount*2:Q.slideCount,Lt=Q.infinite?Q.slidesToShow*-1:0,Rt=Q.infinite?Q.slidesToShow*-1:0,Bt=[];Lt<vt;)Bt.push(Lt),Lt=Rt+Q.slidesToScroll,Rt+=Math.min(Q.slidesToScroll,Q.slidesToShow);return Bt},E=wt.checkNavigable=function(Q,vt){var Lt=ut(Q),Rt=0;if(vt>Lt[Lt.length-1])vt=Lt[Lt.length-1];else for(var Bt in Lt){if(vt<Lt[Bt]){vt=Rt;break}Rt=Lt[Bt]}return vt},J=wt.getSlideCount=function(Q){var vt=Q.centerMode?Q.slideWidth*Math.floor(Q.slidesToShow/2):0;if(Q.swipeToSlide){var Lt,Rt=Q.listRef,Bt=Rt.querySelectorAll&&Rt.querySelectorAll(".slick-slide")||[];if(Array.from(Bt).every(function(Kt){if(Q.vertical){if(Kt.offsetTop+K(Kt)/2>Q.swipeLeft*-1)return Lt=Kt,!1}else if(Kt.offsetLeft-vt+$(Kt)/2>Q.swipeLeft*-1)return Lt=Kt,!1;return!0}),!Lt)return 0;var Ht=Q.rtl===!0?Q.slideCount-Q.currentSlide:Q.currentSlide,zt=Math.abs(Lt.dataset.index-Ht)||1;return zt}else return Q.slidesToScroll},dt=wt.checkSpecKeys=function(Q,vt){return vt.reduce(function(Lt,Rt){return Lt&&Q.hasOwnProperty(Rt)},!0)?null:console.error("Keys Missing:",Q)},pt=wt.getTrackCSS=function(Q){dt(Q,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var vt,Lt,Rt=Q.slideCount+2*Q.slidesToShow;Q.vertical?Lt=Rt*Q.slideHeight:vt=gt(Q)*Q.slideWidth;var Bt={opacity:1,transition:"",WebkitTransition:""};if(Q.useTransform){var Ht=Q.vertical?"translate3d(0px, "+Q.left+"px, 0px)":"translate3d("+Q.left+"px, 0px, 0px)",zt=Q.vertical?"translate3d(0px, "+Q.left+"px, 0px)":"translate3d("+Q.left+"px, 0px, 0px)",Kt=Q.vertical?"translateY("+Q.left+"px)":"translateX("+Q.left+"px)";Bt=W(W({},Bt),{},{WebkitTransform:Ht,transform:zt,msTransform:Kt})}else Q.vertical?Bt.top=Q.left:Bt.left=Q.left;return Q.fade&&(Bt={opacity:1}),vt&&(Bt.width=vt),Lt&&(Bt.height=Lt),window&&!window.addEventListener&&window.attachEvent&&(Q.vertical?Bt.marginTop=Q.left+"px":Bt.marginLeft=Q.left+"px"),Bt},T=wt.getTrackAnimateCSS=function(Q){dt(Q,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var vt=pt(Q);return Q.useTransform?(vt.WebkitTransition="-webkit-transform "+Q.speed+"ms "+Q.cssEase,vt.transition="transform "+Q.speed+"ms "+Q.cssEase):Q.vertical?vt.transition="top "+Q.speed+"ms "+Q.cssEase:vt.transition="left "+Q.speed+"ms "+Q.cssEase,vt},ht=wt.getTrackLeft=function(Q){if(Q.unslick)return 0;dt(Q,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var vt=Q.slideIndex,Lt=Q.trackRef,Rt=Q.infinite,Bt=Q.centerMode,Ht=Q.slideCount,zt=Q.slidesToShow,Kt=Q.slidesToScroll,ce=Q.slideWidth,oe=Q.listWidth,he=Q.variableWidth,_e=Q.slideHeight,Fe=Q.fade,Re=Q.vertical,le=0,ee,ge,de=0;if(Fe||Q.slideCount===1)return 0;var fe=0;if(Rt?(fe=-yt(Q),Ht%Kt!==0&&vt+Kt>Ht&&(fe=-(vt>Ht?zt-(vt-Ht):Ht%Kt)),Bt&&(fe+=parseInt(zt/2))):(Ht%Kt!==0&&vt+Kt>Ht&&(fe=zt-Ht%Kt),Bt&&(fe=parseInt(zt/2))),le=fe*ce,de=fe*_e,Re?ee=vt*_e*-1+de:ee=vt*ce*-1+le,he===!0){var Ae,te=Lt&&Lt.node;if(Ae=vt+yt(Q),ge=te&&te.childNodes[Ae],ee=ge?ge.offsetLeft*-1:0,Bt===!0){Ae=Rt?vt+yt(Q):vt,ge=te&&te.children[Ae],ee=0;for(var Ie=0;Ie<Ae;Ie++)ee-=te&&te.children[Ie]&&te.children[Ie].offsetWidth;ee-=parseInt(Q.centerPadding),ee+=ge&&(oe-ge.offsetWidth)/2}}return ee},yt=wt.getPreClones=function(Q){return Q.unslick||!Q.infinite?0:Q.variableWidth?Q.slideCount:Q.slidesToShow+(Q.centerMode?1:0)},ct=wt.getPostClones=function(Q){return Q.unslick||!Q.infinite?0:Q.slideCount},gt=wt.getTotalSlides=function(Q){return Q.slideCount===1?1:yt(Q)+Q.slideCount+ct(Q)},bt=wt.siblingDirection=function(Q){return Q.targetSlide>Q.currentSlide?Q.targetSlide>Q.currentSlide+Tt(Q)?"left":"right":Q.targetSlide<Q.currentSlide-Pt(Q)?"right":"left"},Tt=wt.slidesOnRight=function(Q){var vt=Q.slidesToShow,Lt=Q.centerMode,Rt=Q.rtl,Bt=Q.centerPadding;if(Lt){var Ht=(vt-1)/2+1;return parseInt(Bt)>0&&(Ht+=1),Rt&&vt%2===0&&(Ht+=1),Ht}return Rt?0:vt-1},Pt=wt.slidesOnLeft=function(Q){var vt=Q.slidesToShow,Lt=Q.centerMode,Rt=Q.rtl,Bt=Q.centerPadding;if(Lt){var Ht=(vt-1)/2+1;return parseInt(Bt)>0&&(Ht+=1),!Rt&&vt%2===0&&(Ht+=1),Ht}return Rt?vt-1:0},It=wt.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},Dt=wt.validSettings=Object.keys(I.default);function jt(Mt){return Dt.reduce(function(Q,vt){return Mt.hasOwnProperty(vt)&&(Q[vt]=Mt[vt]),Q},{})}},21743:($t,wt,w)=>{"use strict";w.r(wt),w.d(wt,{default:()=>ut});var Z=function(){if(typeof Map<"u")return Map;function E(J,dt){var pt=-1;return J.some(function(T,ht){return T[0]===dt?(pt=ht,!0):!1}),pt}return function(){function J(){this.__entries__=[]}return Object.defineProperty(J.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),J.prototype.get=function(dt){var pt=E(this.__entries__,dt),T=this.__entries__[pt];return T&&T[1]},J.prototype.set=function(dt,pt){var T=E(this.__entries__,dt);~T?this.__entries__[T][1]=pt:this.__entries__.push([dt,pt])},J.prototype.delete=function(dt){var pt=this.__entries__,T=E(pt,dt);~T&&pt.splice(T,1)},J.prototype.has=function(dt){return!!~E(this.__entries__,dt)},J.prototype.clear=function(){this.__entries__.splice(0)},J.prototype.forEach=function(dt,pt){pt===void 0&&(pt=null);for(var T=0,ht=this.__entries__;T<ht.length;T++){var yt=ht[T];dt.call(pt,yt[1],yt[0])}},J}()}(),I=typeof window<"u"&&typeof document<"u"&&window.document===document,O=function(){return typeof w.g<"u"&&w.g.Math===Math?w.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),b=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(O):function(E){return setTimeout(function(){return E(Date.now())},1e3/60)}}(),M=2;function W(E,J){var dt=!1,pt=!1,T=0;function ht(){dt&&(dt=!1,E()),pt&&ct()}function yt(){b(ht)}function ct(){var gt=Date.now();if(dt){if(gt-T<M)return;pt=!0}else dt=!0,pt=!1,setTimeout(yt,J);T=gt}return ct}var st=20,rt=["top","right","bottom","left","width","height","size","weight"],m=typeof MutationObserver<"u",U=function(){function E(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=W(this.refresh.bind(this),st)}return E.prototype.addObserver=function(J){~this.observers_.indexOf(J)||this.observers_.push(J),this.connected_||this.connect_()},E.prototype.removeObserver=function(J){var dt=this.observers_,pt=dt.indexOf(J);~pt&&dt.splice(pt,1),!dt.length&&this.connected_&&this.disconnect_()},E.prototype.refresh=function(){var J=this.updateObservers_();J&&this.refresh()},E.prototype.updateObservers_=function(){var J=this.observers_.filter(function(dt){return dt.gatherActive(),dt.hasActive()});return J.forEach(function(dt){return dt.broadcastActive()}),J.length>0},E.prototype.connect_=function(){!I||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},E.prototype.disconnect_=function(){!I||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},E.prototype.onTransitionEnd_=function(J){var dt=J.propertyName,pt=dt===void 0?"":dt,T=rt.some(function(ht){return!!~pt.indexOf(ht)});T&&this.refresh()},E.getInstance=function(){return this.instance_||(this.instance_=new E),this.instance_},E.instance_=null,E}(),A=function(E,J){for(var dt=0,pt=Object.keys(J);dt<pt.length;dt++){var T=pt[dt];Object.defineProperty(E,T,{value:J[T],enumerable:!1,writable:!1,configurable:!0})}return E},j=function(E){var J=E&&E.ownerDocument&&E.ownerDocument.defaultView;return J||O},it=V(0,0,0,0);function Y(E){return parseFloat(E)||0}function P(E){for(var J=[],dt=1;dt<arguments.length;dt++)J[dt-1]=arguments[dt];return J.reduce(function(pt,T){var ht=E["border-"+T+"-width"];return pt+Y(ht)},0)}function R(E){for(var J=["top","right","bottom","left"],dt={},pt=0,T=J;pt<T.length;pt++){var ht=T[pt],yt=E["padding-"+ht];dt[ht]=Y(yt)}return dt}function at(E){var J=E.getBBox();return V(0,0,J.width,J.height)}function $(E){var J=E.clientWidth,dt=E.clientHeight;if(!J&&!dt)return it;var pt=j(E).getComputedStyle(E),T=R(pt),ht=T.left+T.right,yt=T.top+T.bottom,ct=Y(pt.width),gt=Y(pt.height);if(pt.boxSizing==="border-box"&&(Math.round(ct+ht)!==J&&(ct-=P(pt,"left","right")+ht),Math.round(gt+yt)!==dt&&(gt-=P(pt,"top","bottom")+yt)),!H(E)){var bt=Math.round(ct+ht)-J,Tt=Math.round(gt+yt)-dt;Math.abs(bt)!==1&&(ct-=bt),Math.abs(Tt)!==1&&(gt-=Tt)}return V(T.left,T.top,ct,gt)}var K=function(){return typeof SVGGraphicsElement<"u"?function(E){return E instanceof j(E).SVGGraphicsElement}:function(E){return E instanceof j(E).SVGElement&&typeof E.getBBox=="function"}}();function H(E){return E===j(E).document.documentElement}function B(E){return I?K(E)?at(E):$(E):it}function X(E){var J=E.x,dt=E.y,pt=E.width,T=E.height,ht=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,yt=Object.create(ht.prototype);return A(yt,{x:J,y:dt,width:pt,height:T,top:dt,right:J+pt,bottom:T+dt,left:J}),yt}function V(E,J,dt,pt){return{x:E,y:J,width:dt,height:pt}}var L=function(){function E(J){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=V(0,0,0,0),this.target=J}return E.prototype.isActive=function(){var J=B(this.target);return this.contentRect_=J,J.width!==this.broadcastWidth||J.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var J=this.contentRect_;return this.broadcastWidth=J.width,this.broadcastHeight=J.height,J},E}(),ot=function(){function E(J,dt){var pt=X(dt);A(this,{target:J,contentRect:pt})}return E}(),G=function(){function E(J,dt,pt){if(this.activeObservations_=[],this.observations_=new Z,typeof J!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=J,this.controller_=dt,this.callbackCtx_=pt}return E.prototype.observe=function(J){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(J instanceof j(J).Element))throw new TypeError('parameter 1 is not of type "Element".');var dt=this.observations_;dt.has(J)||(dt.set(J,new L(J)),this.controller_.addObserver(this),this.controller_.refresh())}},E.prototype.unobserve=function(J){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(J instanceof j(J).Element))throw new TypeError('parameter 1 is not of type "Element".');var dt=this.observations_;dt.has(J)&&(dt.delete(J),dt.size||this.controller_.removeObserver(this))}},E.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},E.prototype.gatherActive=function(){var J=this;this.clearActive(),this.observations_.forEach(function(dt){dt.isActive()&&J.activeObservations_.push(dt)})},E.prototype.broadcastActive=function(){if(this.hasActive()){var J=this.callbackCtx_,dt=this.activeObservations_.map(function(pt){return new ot(pt.target,pt.broadcastRect())});this.callback_.call(J,dt,J),this.clearActive()}},E.prototype.clearActive=function(){this.activeObservations_.splice(0)},E.prototype.hasActive=function(){return this.activeObservations_.length>0},E}(),z=typeof WeakMap<"u"?new WeakMap:new Z,F=function(){function E(J){if(!(this instanceof E))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var dt=U.getInstance(),pt=new G(J,dt,this);z.set(this,pt)}return E}();["observe","unobserve","disconnect"].forEach(function(E){F.prototype[E]=function(){var J;return(J=z.get(this))[E].apply(J,arguments)}});var k=function(){return typeof O.ResizeObserver<"u"?O.ResizeObserver:F}();const ut=k},94948:$t=>{var wt=function(w){return w.replace(/[A-Z]/g,function(Z){return"-"+Z.toLowerCase()}).toLowerCase()};$t.exports=wt},94433:$t=>{"use strict";$t.exports=JSON.parse('{"android":{"Huawei_mate60":{"width":405,"height":896,"name":"Huawei Mate 60"},"Huawei_mate60_pro":{"width":420,"height":907,"name":"Huawei Mate 60 Pro"},"Huawei_mate70":{"width":405,"height":896,"name":"Huawei Mate 70"},"Huawei_mate70_pro":{"width":438,"height":944,"name":"Huawei Mate 70 Pro"},"Huawei_mate70_pro_plus":{"width":438,"height":944,"name":"Huawei Mate 70 Pro +"},"Huawei_mateX5_expand":{"width":741,"height":832,"name":"Huawei Mate X5 Expand"},"Huawei_mateX5_fold":{"width":360,"height":835,"name":"Huawei Mate X5 Fold"},"Huawei_mateXT_one_screen":{"width":336,"height":744,"name":"Huawei Mate XT One Screen"},"Huawei_mateXT_two_screen":{"width":682,"height":744,"name":"Huawei Mate XT Two Screen"},"Huawei_mateXT_three_screen":{"width":1061,"height":744,"name":"Huawei Mate XT Three Screen"},"Xiaomi_14":{"width":400,"height":890,"name":"Xiaomi 14"},"Xiaomi_15":{"width":400,"height":890,"name":"Xiaomi 15"},"samsung_galaxy_s23":{"width":360,"height":780,"name":"Samsung Galaxy S23"},"Huawei_p8":{"width":360,"height":640,"name":"Huawei P8"},"Huawei_p40":{"width":395,"height":856,"name":"Huawei P40"},"Huawei_p40_error":{"width":360,"height":780,"name":"Huawei P40","hide":true},"google_pixel_2":{"width":411,"height":731,"name":"Google Pixel 2"},"google_pixel_2_xl":{"width":411,"height":823,"name":"Google Pixel 2 XL"},"google_nexus":{"width":360,"height":640,"name":"Google Nexus 5","hide":true},"samsung":{"width":360,"height":640,"name":"Samsung S7","hide":true},"Xiaomi":{"width":360,"height":640,"name":"Xiaomi 6","hide":true},"Huawei":{"width":360,"height":640,"name":"Huawei P8","hide":true},"Meizu":{"width":360,"height":600,"name":"Meizu","hide":true},"google_nexus_4":{"width":384,"height":640,"name":"Google Nexus 4","hide":true},"google_nexus_5":{"width":360,"height":640,"name":"Google Nexus 5","hide":true}},"iphone":{"iphone_4":{"width":320,"height":480,"scale":100,"icon_size":"120\xD7120","name":"iPhone 4","hide":true},"iphone_5":{"width":320,"height":568,"scale":100,"icon_size":"120\xD7120","name":"iPhone 5/SE","hide":true},"iphone_6":{"width":375,"height":667,"scale":100,"icon_size":"180\xD7180","name":"iPhone 6/7/8","hide":true},"iphone_6_plus":{"width":414,"height":736,"scale":100,"icon_size":"180\xD7180","name":"iPhone 6/7/8 Plus","hide":true},"iphone_x":{"width":375,"height":812,"scale":100,"icon_size":"180\xD7180","name":"iPhone X","hide":true},"iphone_xs_max":{"width":414,"height":896,"scale":100,"icon_size":"180x180","name":"iPhone Xs Max","hide":true},"iphone_14_pro_max":{"width":430,"height":932,"scale":100,"icon_size":"180\xD7180","name":"iPhone 14 Pro Max"},"iphone_14_pro":{"width":393,"height":852,"scale":100,"icon_size":"180\xD7180","name":"iPhone 14 Pro"},"iphone_13_pro_max":{"width":428,"height":926,"scale":100,"icon_size":"180\xD7180","name":"iPhone 14 Plus/13 Pro Max"},"iphone_13_pro":{"width":390,"height":844,"scale":100,"icon_size":"180\xD7180","name":"iPhone 14/13 Pro"},"iphone_13_mini":{"width":375,"height":812,"name":"iPhone 13 mini"},"iphone_12_pro_max":{"width":428,"height":926,"scale":100,"icon_size":"180\xD7180","name":"iPhone 12 Pro Max","hide":true},"iphone_12_pro":{"width":390,"height":844,"scale":100,"icon_size":"180\xD7180","name":"iPhone 12 Pro/12","hide":true},"iphone_11_pro":{"width":375,"height":812,"scale":100,"icon_size":"180\xD7180","name":"iPhone 11 Pro / X"},"iphone_11_pro_max":{"width":414,"height":896,"scale":100,"icon_size":"180x180","name":"iPhone 11 / 11 Pro Max"},"iphone_8_plus":{"width":414,"height":736,"scale":100,"icon_size":"180x180","name":"iPhone 8 Plus"},"iphone_8":{"width":375,"height":667,"scale":100,"icon_size":"180x180","name":"iPhone 8"},"iphone_se":{"width":320,"height":568,"scale":100,"icon_size":"180x180","name":"iPhone SE","hide":true},"iphone_15_pro_max":{"width":430,"height":932,"name":"iPhone 15 Pro Max"},"iphone_15_pro":{"width":393,"height":852,"name":"iPhone 15 Pro"},"iphone_15_plus":{"width":430,"height":932,"name":"iPhone 15 Plus"},"iphone_15":{"width":393,"height":852,"name":"iPhone 15"},"iphone_16_pro_max":{"width":440,"height":956,"name":"iPhone 16 Pro Max"},"iphone_16_pro":{"width":402,"height":874,"name":"iPhone 16 Pro"},"iphone_16_plus":{"width":430,"height":932,"name":"iPhone 16 Plus"},"iphone_16":{"width":393,"height":852,"name":"iPhone 16"}},"ipad":{"ipad_3_4":{"width":768,"height":1024,"scale":75,"icon_size":"152\xD7152","name":"iPad","hide":true},"ipad_pro":{"width":1024,"height":1366,"scale":75,"icon_size":"152\xD7152","name":"iPad Pro","hide":true},"ipad_mini":{"width":768,"height":1024,"scale":75,"icon_size":"152\xD7152","name":"iPad mini"},"ipad_pro_11":{"width":834,"height":1194,"scale":75,"icon_size":"152\xD7152","name":"iPad Pro 11\u201C"},"ipad_pro_12":{"width":1024,"height":1366,"scale":75,"icon_size":"152\xD7152","name":"iPad Pro 12.9\u201C"},"ipad_2023":{"width":820,"height":1180,"name":"iPad"},"Huawei_mate_pad_pro_13_2":{"width":960,"height":1440,"name":"Huawei MatePad Pro 13.2\u201C"},"Huawei_mate_pad_pro_11":{"width":800,"height":1280,"name":"Huawei MatePad 11\u201C"}},"web":{"desktop":{"width":1440,"height":1024,"name":"Web Page 1440"},"desktop_1920":{"width":1920,"height":1080,"name":"Web Page 1920"},"smart_tv":{"width":1920,"height":1080,"name":"Smart TV"},"mac_book_pro":{"width":1440,"height":900,"name":"MacBook Pro"},"imac":{"width":1280,"height":720,"name":"iMac"},"mac_book_pro_16":{"width":1728,"height":1117,"name":"MacBook Pro 16\u201C"},"mac_book_pro_14":{"width":1512,"height":982,"name":"MacBook Pro 14\u201C"},"mac_book_air_13":{"width":1280,"height":832,"name":"MacBook Air 13\u201C"},"imac_2023":{"width":2240,"height":1260,"name":"iMac"},"Huawei_mate_book_16s":{"width":1260,"height":840,"name":"Huawei MateBook 16s"},"Huawei_mate_book_14s":{"width":1260,"height":840,"name":"Huawei MateBook 14s"}},"display_screen":{"display_screen_16_9":{"width":1920,"height":1080,"name":"Display Screen 16:9"},"display_screen_2_1":{"width":1600,"height":800,"name":"Display Screen 2:1"}},"apple_watch":{"apple_watch_38":{"width":136,"height":170,"scale":200,"icon_size":"40x40","name":"Apple Watch 38mm"},"apple_watch_40":{"width":162,"height":197,"scale":200,"icon_size":"44x44","name":"Apple Watch 40mm"},"apple_watch_se_40":{"width":162,"height":197,"scale":200,"icon_size":"44x44","name":"Apple Watch SE 40mm"},"apple_watch_42":{"width":156,"height":195,"scale":200,"icon_size":"44x44","name":"Apple Watch 42mm"},"apple_watch_44":{"width":184,"height":224,"scale":200,"icon_size":"50x50","name":"Apple Watch 44mm"},"apple_watch_se_44":{"width":184,"height":224,"scale":200,"icon_size":"50x50","name":"Apple Watch SE 44mm"},"apple_watch_ultra_2_49":{"width":205,"height":251,"name":"Apple Watch Ultra 2 49mm"},"apple_watch_9_45":{"width":198,"height":242,"name":"Apple Watch Series 9 45mm"},"apple_watch_9_41":{"width":176,"height":215,"name":"Apple Watch Series 9 41mm"},"Huawei_watch_gt4_46":{"width":233,"height":233,"name":"Huawei Watch G T 4 46mm"},"Huawei_watch_gt4_41":{"width":233,"height":233,"name":"Huawei Watch GT 4 41mm"},"Huawei_watch_gt5_46":{"width":233,"height":233,"name":"Huawei Watch G T 5 46mm"},"Huawei_watch_gt5_41":{"width":233,"height":233,"name":"Huawei Watch GT 5 41mm"},"Huawei_wristband_8":{"width":97,"height":184,"name":"Huawei Wristband 8"},"Xiaomi_wristband_8":{"width":96,"height":245,"name":"Xiaomi Wristband 8"},"Huawei_wristband_9":{"width":97,"height":184,"name":"Huawei Wristband 9"},"Xiaomi_wristband_9":{"width":96,"height":245,"name":"Xiaomi Wristband 9"}},"smart_car":{"car_play":{"width":1280,"height":720,"name":"Car Play"}},"hmi":{"industrial_hmi_16_9":{"width":1920,"height":1080,"name":"Industrial HMI 16:9"},"industrial_hmi_16_10":{"width":1280,"height":800,"name":"Industrial HMI 16:10"},"car_play_hmi":{"width":1280,"height":720,"name":"Car Play HMI"},"tesla_car_play_hmi":{"width":1920,"height":1200,"name":"Tesla Car Play HMI"}},"slide":{"slide_16_9":{"width":1920,"height":1080,"name":"slide 16:9"},"slide_4_3":{"width":1024,"height":768,"name":"slide 4:3"}},"media_shop":{"wx_cover_pic":{"width":900,"height":383,"name":"wx cover picture"},"wx_small_pic":{"width":200,"height":200,"name":"wx small picture"},"wx_big_pic":{"width":900,"height":500,"name":"wx big picture"},"wx_hyper_pic":{"width":600,"height":200,"name":"wx hyper picture"},"shop_main_pic":{"width":800,"height":800,"name":"shop main picture"},"shop_banner":{"width":1920,"height":600,"name":"shop banner"},"shop_sign":{"width":950,"height":120,"name":"shop sign"},"shop_detail":{"width":790,"height":5000,"name":"shop detail"}},"customize":{"customize":{"width":1024,"height":768,"name":"Customize"},"none":{"width":1024,"height":768,"name":"None"}}}')}}]);
  43. //# sourceMappingURL=4.6cqwy-vendor-189e896f18433568fdbd.js.map