claude-session-memory 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -10
- package/dist/cli.js +0 -0
- package/dist/database.js +15 -0
- package/dist/database.js.map +1 -1
- package/dist/server.js +89 -0
- package/dist/server.js.map +1 -1
- package/dist/tools/get-stats.d.ts +7 -2
- package/dist/tools/get-stats.js +22 -0
- package/dist/tools/get-stats.js.map +1 -1
- package/dist/tools/query-memory.js +2 -0
- package/dist/tools/query-memory.js.map +1 -1
- package/dist/tools/review-session.d.ts +19 -0
- package/dist/tools/review-session.js +54 -0
- package/dist/tools/review-session.js.map +1 -0
- package/dist/utils/session-intelligence.d.ts +36 -0
- package/dist/utils/session-intelligence.js +154 -0
- package/dist/utils/session-intelligence.js.map +1 -0
- package/dist/utils/token-savings.d.ts +10 -0
- package/dist/utils/token-savings.js +27 -0
- package/dist/utils/token-savings.js.map +1 -0
- package/dist/web/routes/analytics.js +6 -0
- package/dist/web/routes/analytics.js.map +1 -1
- package/dist/web-dist/assets/AnalyticsPage-B0ZCSmi7.js +3 -0
- package/dist/web-dist/assets/{DashboardPage-DtQ8bcLR.js → DashboardPage-BmkQ7Pir.js} +1 -1
- package/dist/web-dist/assets/{DecisionDetailPage-CoNQF-FB.js → DecisionDetailPage-DSNQOk0G.js} +1 -1
- package/dist/web-dist/assets/{DecisionsPage-F2KA9sQF.js → DecisionsPage-Druu3aUr.js} +1 -1
- package/dist/web-dist/assets/{ImportExportPage-CqhNTw6I.js → ImportExportPage-yQxs-fBD.js} +1 -1
- package/dist/web-dist/assets/{SessionDetailPage-DtQ1Jsmp.js → SessionDetailPage-D0ruOy8B.js} +1 -1
- package/dist/web-dist/assets/{SessionsPage-BVR-mFw1.js → SessionsPage-5lqQKejq.js} +1 -1
- package/dist/web-dist/assets/{SettingsPage-Dluf2etQ.js → SettingsPage-Dj2KkiKe.js} +1 -1
- package/dist/web-dist/assets/{StatCard.vue_vue_type_script_setup_true_lang-DRCbHjfR.js → StatCard.vue_vue_type_script_setup_true_lang-HwJVk8w_.js} +1 -1
- package/dist/web-dist/assets/{TagPill.vue_vue_type_script_setup_true_lang-D3QpKM6-.js → TagPill.vue_vue_type_script_setup_true_lang-CA2dOM-H.js} +1 -1
- package/dist/web-dist/assets/{decisions-D4RIsPGu.js → decisions-zp0xvZqp.js} +1 -1
- package/dist/web-dist/assets/{index-CB5v6K3L.js → index-Bl3DbLj3.js} +2 -2
- package/dist/web-dist/assets/{index-DnStDInH.css → index-CoMkCnBk.css} +1 -1
- package/dist/web-dist/assets/{installCanvasRenderer-ZjWTVaVA.js → installCanvasRenderer-CuEbBLw0.js} +1 -1
- package/dist/web-dist/assets/{sessions-CbnjP7UX.js → sessions-CtlNQ8lw.js} +1 -1
- package/dist/web-dist/assets/useApi-DkK919W_.js +1 -0
- package/dist/web-dist/index.html +2 -2
- package/package.json +1 -1
- package/schema.sql +12 -0
- package/templates/memory-instructions.md +10 -0
- package/dist/web-dist/assets/AnalyticsPage-CFlZyCBZ.js +0 -3
- package/dist/web-dist/assets/useApi-goimj9yG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:Inter,sans-serif}.cyber-border{border-width:1px;border-color:#0df2f233}.neon-glow{box-shadow:0 0 15px #0df2f21a}.neon-border{box-shadow:0 0 10px #0df2f233;border:1px solid rgba(13,242,242,.3)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-4{left:1rem}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.w-0\.5{width:.125rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-56{width:14rem}.w-64{width:16rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-\[300px\]{max-width:300px}.max-w-\[60\%\]{max-width:60%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[40px_1fr_100px_140px_100px_60px\]{grid-template-columns:40px 1fr 100px 140px 100px 60px}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-primary\/10>:not([hidden])~:not([hidden]){border-color:#0df2f21a}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-orange-500\/30{border-color:#f973164d}.border-primary{--tw-border-opacity: 1;border-color:rgb(13 242 242 / var(--tw-border-opacity, 1))}.border-primary\/10{border-color:#0df2f21a}.border-primary\/20{border-color:#0df2f233}.border-primary\/30{border-color:#0df2f24d}.border-primary\/40{border-color:#0df2f266}.border-primary\/5{border-color:#0df2f20d}.border-red-500\/20{border-color:#ef444433}.border-red-500\/30{border-color:#ef44444d}.border-slate-500\/30{border-color:#64748b4d}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.bg-bg-dark{--tw-bg-opacity: 1;background-color:rgb(16 34 34 / var(--tw-bg-opacity, 1))}.bg-bg-dark\/40{background-color:#10222266}.bg-bg-dark\/50{background-color:#10222280}.bg-bg-dark\/60{background-color:#10222299}.bg-bg-dark\/80{background-color:#102222cc}.bg-black\/60{background-color:#0009}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-500\/5{background-color:#10b9810d}.bg-orange-500\/20{background-color:#f9731633}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(13 242 242 / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:#0df2f21a}.bg-primary\/20{background-color:#0df2f233}.bg-primary\/30{background-color:#0df2f24d}.bg-primary\/40{background-color:#0df2f266}.bg-primary\/5{background-color:#0df2f20d}.bg-primary\/60{background-color:#0df2f299}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-red-500\/5{background-color:#ef44440d}.bg-slate-500\/20{background-color:#64748b33}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.stroke-primary{stroke:#0df2f2}.stroke-primary\/10{stroke:#0df2f21a}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-12{padding-left:3rem}.pr-24{padding-right:6rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-display{font-family:Inter,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-bg-dark{--tw-text-opacity: 1;color:rgb(16 34 34 / var(--tw-text-opacity, 1))}.text-bg-dark\/60{color:#10222299}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.text-primary\/30{color:#0df2f24d}.text-primary\/40{color:#0df2f266}.text-primary\/50{color:#0df2f280}.text-primary\/60{color:#0df2f299}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-400\/50{color:#f8717180}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-\[0_0_10px_rgba\(13\,242\,242\,0\.4\)\]{--tw-shadow: 0 0 10px rgba(13,242,242,.4);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_\#0df2f2\]{--tw-shadow: 0 0 8px #0df2f2;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(13\,242\,242\,0\.4\)\]{--tw-shadow: 0 0 8px rgba(13,242,242,.4);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(13\,242\,242\,0\.6\)\]{--tw-shadow: 0 0 8px rgba(13,242,242,.6);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(16\,185\,129\,0\.6\)\]{--tw-shadow: 0 0 8px rgba(16,185,129,.6);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:border-primary:hover{--tw-border-opacity: 1;border-color:rgb(13 242 242 / var(--tw-border-opacity, 1))}.hover\:border-primary\/40:hover{border-color:#0df2f266}.hover\:bg-primary\/10:hover{background-color:#0df2f21a}.hover\:bg-primary\/20:hover{background-color:#0df2f233}.hover\:bg-primary\/5:hover{background-color:#0df2f20d}.hover\:bg-primary\/80:hover{background-color:#0df2f2cc}.hover\:bg-primary\/90:hover{background-color:#0df2f2e6}.hover\:bg-red-500\/30:hover{background-color:#ef44444d}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-primary\/50:focus{border-color:#0df2f280}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary\/30:focus{--tw-ring-color: rgb(13 242 242 / .3)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-primary\/30:disabled{background-color:#0df2f24d}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.group:hover .group-hover\:text-primary{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:p-10{padding:2.5rem}}
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:Inter,sans-serif}.cyber-border{border-width:1px;border-color:#0df2f233}.neon-glow{box-shadow:0 0 15px #0df2f21a}.neon-border{box-shadow:0 0 10px #0df2f233;border:1px solid rgba(13,242,242,.3)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-4{left:1rem}.right-4{right:1rem}.top-0{top:0}.top-1\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.w-0\.5{width:.125rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-4{width:1rem}.w-56{width:14rem}.w-64{width:16rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-6xl{max-width:72rem}.max-w-\[300px\]{max-width:300px}.max-w-\[60\%\]{max-width:60%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[40px_1fr_100px_140px_100px_60px\]{grid-template-columns:40px 1fr 100px 140px 100px 60px}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-primary\/10>:not([hidden])~:not([hidden]){border-color:#0df2f21a}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-orange-500\/30{border-color:#f973164d}.border-primary{--tw-border-opacity: 1;border-color:rgb(13 242 242 / var(--tw-border-opacity, 1))}.border-primary\/10{border-color:#0df2f21a}.border-primary\/20{border-color:#0df2f233}.border-primary\/30{border-color:#0df2f24d}.border-primary\/40{border-color:#0df2f266}.border-primary\/5{border-color:#0df2f20d}.border-red-500\/20{border-color:#ef444433}.border-red-500\/30{border-color:#ef44444d}.border-slate-500\/30{border-color:#64748b4d}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.bg-bg-dark{--tw-bg-opacity: 1;background-color:rgb(16 34 34 / var(--tw-bg-opacity, 1))}.bg-bg-dark\/40{background-color:#10222266}.bg-bg-dark\/50{background-color:#10222280}.bg-bg-dark\/60{background-color:#10222299}.bg-bg-dark\/80{background-color:#102222cc}.bg-black\/60{background-color:#0009}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-500\/5{background-color:#10b9810d}.bg-orange-500\/20{background-color:#f9731633}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(13 242 242 / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:#0df2f21a}.bg-primary\/20{background-color:#0df2f233}.bg-primary\/30{background-color:#0df2f24d}.bg-primary\/40{background-color:#0df2f266}.bg-primary\/5{background-color:#0df2f20d}.bg-primary\/60{background-color:#0df2f299}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-red-500\/5{background-color:#ef44440d}.bg-slate-500\/20{background-color:#64748b33}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.stroke-primary{stroke:#0df2f2}.stroke-primary\/10{stroke:#0df2f21a}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-12{padding-left:3rem}.pr-24{padding-right:6rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-display{font-family:Inter,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-tighter{letter-spacing:-.05em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-bg-dark{--tw-text-opacity: 1;color:rgb(16 34 34 / var(--tw-text-opacity, 1))}.text-bg-dark\/60{color:#10222299}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.text-primary\/30{color:#0df2f24d}.text-primary\/40{color:#0df2f266}.text-primary\/50{color:#0df2f280}.text-primary\/60{color:#0df2f299}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-400\/50{color:#f8717180}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-\[0_0_10px_rgba\(13\,242\,242\,0\.4\)\]{--tw-shadow: 0 0 10px rgba(13,242,242,.4);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_\#0df2f2\]{--tw-shadow: 0 0 8px #0df2f2;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(13\,242\,242\,0\.4\)\]{--tw-shadow: 0 0 8px rgba(13,242,242,.4);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(13\,242\,242\,0\.6\)\]{--tw-shadow: 0 0 8px rgba(13,242,242,.6);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_8px_rgba\(16\,185\,129\,0\.6\)\]{--tw-shadow: 0 0 8px rgba(16,185,129,.6);--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:border-primary:hover{--tw-border-opacity: 1;border-color:rgb(13 242 242 / var(--tw-border-opacity, 1))}.hover\:border-primary\/40:hover{border-color:#0df2f266}.hover\:bg-primary\/10:hover{background-color:#0df2f21a}.hover\:bg-primary\/20:hover{background-color:#0df2f233}.hover\:bg-primary\/5:hover{background-color:#0df2f20d}.hover\:bg-primary\/80:hover{background-color:#0df2f2cc}.hover\:bg-primary\/90:hover{background-color:#0df2f2e6}.hover\:bg-red-500\/30:hover{background-color:#ef44444d}.hover\:bg-slate-600:hover{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.hover\:text-red-300:hover{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-primary\/50:focus{border-color:#0df2f280}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-primary\/30:focus{--tw-ring-color: rgb(13 242 242 / .3)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-primary\/30:disabled{background-color:#0df2f24d}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.group:hover .group-hover\:text-primary{--tw-text-opacity: 1;color:rgb(13 242 242 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:p-10{padding:2.5rem}}
|
package/dist/web-dist/assets/{installCanvasRenderer-ZjWTVaVA.js → installCanvasRenderer-CuEbBLw0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as mm,A as _m,m as Va,B as Td,e as bd,C as Sm,D as Su,E as xu,b as sn,G as xm,H as wm,I as Tm,J as Ga,K as is,T as bm,L as Wa}from"./index-CB5v6K3L.js";var wu=function(e,t){return wu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},wu(e,t)};function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cm=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Mm=(function(){function e(){this.browser=new Cm,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),X=new Mm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:!X.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(X.node=!0,X.svgSupported=!0):Dm(navigator.userAgent,X);function Dm(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Ol=12,Am="sans-serif",vr=Ol+"px "+Am,Lm=20,Pm=100,Im="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Em(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-Lm)/Pm;t[i]=n}return t}var Rm=Em(Im),$e={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=$e.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||vr),e.measureText(r);r=r||"",i=i||vr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ol,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=Rm[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},Cd=zi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Md=zi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),$n=Object.prototype.toString,Oo=Array.prototype,km=Oo.forEach,Om=Oo.filter,Bl=Oo.slice,Bm=Oo.map,Qf=(function(){}).constructor,ta=Qf?Qf.prototype:null,Nl="__proto__",Nm=2311;function Dd(){return Nm++}function Fl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=$n.call(e);if(r==="[object Array]"){if(!pn(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=rt(e[i])}}else if(Md[r]){if(!pn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Cd[r]&&!pn(e)&&!Dn(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Nl&&(t[o]=rt(e[o]))}return t}function at(e,t,r){if(!V(t)||!V(e))return r?rt(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Nl){var n=e[i],a=t[i];V(a)&&V(n)&&!B(a)&&!B(n)&&!Dn(a)&&!Dn(n)&&!jf(a)&&!jf(n)&&!pn(a)&&!pn(n)?at(n,a,r):(r||!(i in e))&&(e[i]=rt(t[i]))}return e}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Nl&&(e[r]=t[r]);return e}function ft(e,t,r){for(var i=vt(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function nt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function Fm(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Re(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else ft(e,t)}function Vt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===km)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function q(e,t,r){if(!e)return[];if(!t)return zl(e);if(e.map&&e.map===Bm)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function zi(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function bt(e,t,r){if(!e)return[];if(!t)return zl(e);if(e.filter&&e.filter===Om)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function zm(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function vt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Hm(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(Bl.call(arguments)))}}var lt=ta&&K(ta.bind)?ta.call.bind(ta.bind):Hm;function ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Bl.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):$n.call(e)==="[object Array]"}function K(e){return typeof e=="function"}function N(e){return typeof e=="string"}function Tu(e){return $n.call(e)==="[object String]"}function ct(e){return typeof e=="number"}function V(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function jf(e){return!!Cd[$n.call(e)]}function Gt(e){return!!Md[$n.call(e)]}function Dn(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Bo(e){return e.colorStops!=null}function Vm(e){return e.image!=null}function An(e){return e!==e}function no(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function $(e,t){return e??t}function Li(e,t,r){return e??t??r}function zl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Bl.apply(e,t)}function Hl(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ze(e,t){if(!e)throw new Error(t)}function be(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ad="__ec_primitive__";function bu(e){e[Ad]=!0}function pn(e){return e[Ad]}var Gm=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return vt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),Ld=typeof Map=="function";function Wm(){return Ld?new Map:new Gm}var Um=(function(){function e(t){var r=B(t);this.data=Wm();var i=this;t instanceof e?t.each(n):t&&T(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return Ld?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function j(e){return new Um(e)}function Ym(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function No(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&O(r,t),r}function Pd(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function De(e,t){return e.hasOwnProperty(t)}function Ht(){}var Xm=180/Math.PI;function Hi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function $m(e){return[e[0],e[1]]}function Jf(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Zm(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function qm(e){return Math.sqrt(Km(e))}function Km(e){return e[0]*e[0]+e[1]*e[1]}function ns(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Qm(e,t){var r=qm(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Cu(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var jm=Cu;function Jm(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Pi=Jm;function oe(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Ti(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function bi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var oi=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),t0=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new oi(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new oi(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new oi(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new oi(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new oi(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new oi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),ke=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),e0=Math.log(2);function Mu(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/e0);return e[r][u]}for(var l=i|1<<r,f=r+1;i&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*e[r][v]*Mu(e,t-1,f,l,n|d,a),c++)}return a[o]=h,h}function th(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Mu(r,8,0,0,0,i);if(n!==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)*Mu(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var ao="___zrEVENTSAVED",as=[];function r0(e,t,r,i,n){return Du(as,t,i,n,!0)&&Du(e,r,as[0],as[1])}function i0(e,t){e&&r(e),t&&r(t);function r(i){var n=i[ao];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ao])}}function Du(e,t,r,i,n){if(t.getBoundingClientRect&&X.domSupported&&!Id(t)){var a=t[ao]||(t[ao]={}),o=n0(t,a),s=a0(o,a,n);if(s)return s(e,r,i),!0}return!1}function n0(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function a0(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?th(s,o):th(o,s))}function Id(e){return e.nodeName.toUpperCase()==="CANVAS"}var o0=/([&<>"'])/g,s0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bt(e){return e==null?"":(e+"").replace(o0,function(t,r){return s0[r]})}var u0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,os=[],l0=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Au(e,t,r,i){return r=r||{},i?eh(e,t,r):l0&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):eh(e,t,r),r}function eh(e,t,r){if(X.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Id(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Du(os,e,i,n)){r.zrX=os[0],r.zrY=os[1];return}}r.zrX=r.zrY=0}function Vl(e){return e||window.event}function Qt(e,t,r){if(t=Vl(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Au(e,o,t,r)}else{Au(e,t,t,r);var a=f0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&u0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function f0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function h0(e,t,r,i){e.addEventListener(t,r,i)}function v0(e,t,r,i){e.removeEventListener(t,r,i)}var Ed=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},c0=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Au(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ss)if(ss.hasOwnProperty(r)){var i=ss[r](this._track,t);if(i)return i}},e})();function rh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function d0(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ss={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=rh(i)/rh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=d0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ye(){return[1,0,0,1,0,0]}function Gl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rd(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function gn(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Lu(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Wl(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=n*h+s*f,e[1]=-n*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-i[0])+f*(l-i[1])+i[0],e[5]=h*(l-i[1])-f*(o-i[0])+i[1],e}function p0(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Zn(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}var ot=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),Ur=Math.min,Ci=Math.max,Pu=Math.abs,ih=["x","y"],g0=["width","height"],mr=new ot,_r=new ot,Sr=new ot,xr=new ot,Yt=kd(),un=Yt.minTv,Iu=Yt.maxTv,yn=[0,0],Q=(function(){function e(t,r,i,n){e.set(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=Ur(t.x,this.x),i=Ur(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ci(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ci(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Ye();return Lu(a,a,[-r.x,-r.y]),p0(a,a,[i,n]),Lu(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&ot.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(y0,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(m0,r.x,r.y,r.width,r.height));var s=!!i;Yt.reset(n,s);var u=Yt.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,v=t.y+t.height-u,c=r.x+u,d=r.x+r.width-u,y=r.y+u,p=r.y+r.height-u;if(l>f||h>v||c>d||y>p)return!1;var g=!(f<c||d<l||v<y||p<h);return(s||a)&&(yn[0]=1/0,yn[1]=0,nh(l,f,c,d,0,s,a,o),nh(h,v,y,p,1,s,a,o),s&&ot.copy(i,g?Yt.useDir?Yt.dirMinTv:un:Iu)),g},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.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}mr.x=Sr.x=r.x,mr.y=xr.y=r.y,_r.x=xr.x=r.x+r.width,_r.y=Sr.y=r.y+r.height,mr.transform(i),xr.transform(i),_r.transform(i),Sr.transform(i),t.x=Ur(mr.x,_r.x,Sr.x,xr.x),t.y=Ur(mr.y,_r.y,Sr.y,xr.y);var u=Ci(mr.x,_r.x,Sr.x,xr.x),l=Ci(mr.y,_r.y,Sr.y,xr.y);t.width=u-t.x,t.height=l-t.y},e})(),y0=new Q(0,0,0,0),m0=new Q(0,0,0,0);function nh(e,t,r,i,n,a,o,s){var u=Pu(t-r),l=Pu(i-e),f=Ur(u,l),h=ih[n],v=ih[1-n],c=g0[n];t<r||i<e?u<l?(a&&(Iu[h]=-u),s&&(o[h]=t,o[c]=0)):(a&&(Iu[h]=l),s&&(o[h]=e,o[c]=0)):(o&&(o[h]=Ci(e,r),o[c]=Ur(t,i)-o[h]),a&&(f<yn[0]||Yt.useDir)&&(yn[0]=Ur(f,yn[0]),(u<l||!Yt.bidirectional)&&(un[h]=u,un[v]=0,Yt.useDir&&Yt.calcDirMTV()),(u>=l||!Yt.bidirectional)&&(un[h]=-l,un[v]=0,Yt.useDir&&Yt.calcDirMTV())))}function kd(){var e=0,t=new ot,r=new ot,i={minTv:new ot,maxTv:new ot,useDir:!1,dirMinTv:new ot,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ci(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Pu(a)<1e-10}return i}var Od="silent";function _0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:S0}}function S0(){Ed(this.event)}var x0=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(ke),Wi=(function(){function e(t,r){this.x=t,this.y=r}return e})(),w0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],us=new Q(0,0,0,0),Bd=(function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Wi(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new x0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new t0(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(w0,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Nd(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Wi(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Wi(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=_0(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Wi(r,i);if(ah(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new Q(r-l,i-l,u,u),h=a.length-1;h>=0;h--){var v=a[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(us.copy(v.getBoundingRect()),v.transform&&us.applyTransform(v.transform),us.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,y=Math.PI*2,p=0;p<l;p+=c)for(var g=0;g<y;g+=d){var m=r+p*Math.cos(g),_=i+p*Math.sin(g);if(ah(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new c0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ke);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Bd.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=Nd(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||jm(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function T0(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Od:!0}return!1}function ah(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=T0(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Od)){t.target=o;break}}}function Nd(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var Fd=32,Ui=7;function b0(e){for(var t=0;e>=Fd;)t|=e&1,e>>=1;return e+t}function oh(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;C0(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function C0(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function sh(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function ls(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function fs(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function M0(e,t){var r=Ui,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=i[c],y=n[c],p=i[c+1],g=n[c+1];n[c]=y+g,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var m=fs(e[p],e,d,y,0,t);d+=m,y-=m,y!==0&&(g=ls(e[d+y-1],e,p,g,g-1,t),g!==0&&(y<=g?h(d,y,p,g):v(d,y,p,g)))}function h(c,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=e[c+g];var m=0,_=y,S=c;if(e[S++]=e[_++],--p===0){for(g=0;g<d;g++)e[S+g]=o[m+g];return}if(d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m];return}for(var w=r,x,b,C;;){x=0,b=0,C=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],b++,x=0,--p===0){C=!0;break}}else if(e[S++]=o[m++],x++,b=0,--d===1){C=!0;break}while((x|b)<w);if(C)break;do{if(x=fs(e[_],o,m,d,0,t),x!==0){for(g=0;g<x;g++)e[S+g]=o[m+g];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(e[S++]=e[_++],--p===0){C=!0;break}if(b=ls(o[m],e,_,p,0,t),b!==0){for(g=0;g<b;g++)e[S+g]=e[_+g];if(S+=b,_+=b,p-=b,p===0){C=!0;break}}if(e[S++]=o[m++],--d===1){C=!0;break}w--}while(x>=Ui||b>=Ui);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[S+g]=o[m+g]}}function v(c,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=e[y+g];var m=c+d-1,_=p-1,S=y+p-1,w=0,x=0;if(e[S--]=e[m--],--d===0){for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g];return}if(p===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)e[x+g]=e[w+g];e[S]=o[_];return}for(var b=r;;){var C=0,D=0,L=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],C++,D=0,--d===0){L=!0;break}}else if(e[S--]=o[_--],D++,C=0,--p===1){L=!0;break}while((C|D)<b);if(L)break;do{if(C=d-fs(o[_],e,c,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,x=S+1,w=m+1,g=C-1;g>=0;g--)e[x+g]=e[w+g];if(d===0){L=!0;break}}if(e[S--]=o[_--],--p===1){L=!0;break}if(D=p-ls(e[m],o,0,p,p-1,t),D!==0){for(S-=D,_-=D,p-=D,x=S+1,w=_+1,g=0;g<D;g++)e[x+g]=o[w+g];if(p<=1){L=!0;break}}if(e[S--]=e[m--],--d===0){L=!0;break}b--}while(C>=Ui||D>=Ui);if(L)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)e[x+g]=e[w+g];e[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Ua(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<Fd){a=oh(e,r,i,t),sh(e,r,i,r+a,t);return}var o=M0(e,t),s=b0(n);do{if(a=oh(e,r,i,t),a<s){var u=n;u>s&&(u=s),sh(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Xt=1,ln=2,wi=4,uh=!1;function hs(){uh||(uh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var D0=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lh}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,Ua(i,lh)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=Xt),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(hs(),d.z=0),isNaN(d.z2)&&(hs(),d.z2=0),isNaN(d.zlevel)&&(hs(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,i);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=nt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),oo;oo=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var mn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-mn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?mn.bounceIn(e*2)*.5:mn.bounceOut(e*2-1)*.5+.5}},ea=Math.pow,ur=Math.sqrt,so=1e-8,zd=1e-4,fh=ur(3),ra=1/3,Te=Hi(),te=Hi(),Ii=Hi();function or(e){return e>-so&&e<so}function Hd(e){return e>so||e<-so}function Et(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function hh(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function Vd(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(or(f)&&or(h))if(or(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var y=h*h-4*f*v;if(or(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(y>0){var m=ur(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ea(-_,ra):_=ea(_,ra),S<0?S=-ea(-S,ra):S=ea(S,ra);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*ur(f*f*f)),x=Math.acos(w)/3,b=ur(f),C=Math.cos(x),d=(-s-2*b*C)/(3*o),g=(-s+b*(C+fh*Math.sin(x)))/(3*o),D=(-s+b*(C-fh*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),D>=0&&D<=1&&(a[c++]=D)}}return c}function Gd(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(or(o)){if(Hd(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(or(f))n[0]=-a/(2*o);else if(f>0){var h=ur(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function uo(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function A0(e,t,r,i,n,a,o,s,u,l,f){var h,v=.005,c=1/0,d,y,p,g;Te[0]=u,Te[1]=l;for(var m=0;m<1;m+=.05)te[0]=Et(e,r,n,o,m),te[1]=Et(t,i,a,s,m),p=Pi(Te,te),p<c&&(h=m,c=p);c=1/0;for(var _=0;_<32&&!(v<zd);_++)d=h-v,y=h+v,te[0]=Et(e,r,n,o,d),te[1]=Et(t,i,a,s,d),p=Pi(te,Te),d>=0&&p<c?(h=d,c=p):(Ii[0]=Et(e,r,n,o,y),Ii[1]=Et(t,i,a,s,y),g=Pi(Ii,Te),y<=1&&g<c?(h=y,c=g):v*=.5);return ur(c)}function L0(e,t,r,i,n,a,o,s,u){for(var l=e,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,y=Et(e,r,n,o,d),p=Et(t,i,a,s,d),g=y-l,m=p-f;h+=Math.sqrt(g*g+m*m),l=y,f=p}return h}function Nt(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function vh(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function P0(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(or(a)){if(Hd(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(or(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=ur(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function Wd(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function lo(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function I0(e,t,r,i,n,a,o,s,u){var l,f=.005,h=1/0;Te[0]=o,Te[1]=s;for(var v=0;v<1;v+=.05){te[0]=Nt(e,r,n,v),te[1]=Nt(t,i,a,v);var c=Pi(Te,te);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<zd);d++){var y=l-f,p=l+f;te[0]=Nt(e,r,n,y),te[1]=Nt(t,i,a,y);var c=Pi(te,Te);if(y>=0&&c<h)l=y,h=c;else{Ii[0]=Nt(e,r,n,p),Ii[1]=Nt(t,i,a,p);var g=Pi(Ii,Te);p<=1&&g<h?(l=p,h=g):f*=.5}}return ur(h)}function E0(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Nt(e,r,n,v),d=Nt(t,i,a,v),y=c-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=c,u=d}return l}var R0=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ud(e){var t=e&&R0.exec(e);if(t){var r=t[1].split(","),i=+be(r[0]),n=+be(r[1]),a=+be(r[2]),o=+be(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Vd(0,i,a,1,u,s)&&Et(0,n,o,1,s[0])}}}var k0=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;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 u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:mn[t]||Ud(t)},e})(),Yd=(function(){function e(t){this.value=t}return e})(),O0=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Yd(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Ri=(function(){function e(t){this._list=new O0,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Yd(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),ch={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 lr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Eu(e){return e<0?0:e>1?1:e}function vs(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?lr(parseFloat(t)/100*255):lr(parseInt(t,10))}function Zr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Eu(parseFloat(t)/100):Eu(parseFloat(t))}function cs(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ia(e,t,r){return e+(t-e)*r}function Kt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Ru(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Xd=new Ri(20),na=null;function si(e,t){na&&Ru(na,t),na=Xd.put(e,na||t.slice())}function Xe(e,t){if(e){t=t||[];var r=Xd.get(e);if(r)return Ru(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ch)return Ru(t,ch[i]),si(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Kt(t,0,0,0,1);return}return Kt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),si(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Kt(t,0,0,0,1);return}return Kt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),si(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?Kt(t,+l[0],+l[1],+l[2],1):Kt(t,0,0,0,1);f=Zr(l.pop());case"rgb":if(l.length>=3)return Kt(t,vs(l[0]),vs(l[1]),vs(l[2]),l.length===3?f:Zr(l[3])),si(e,t),t;Kt(t,0,0,0,1);return;case"hsla":if(l.length!==4){Kt(t,0,0,0,1);return}return l[3]=Zr(l[3]),ku(l,t),si(e,t),t;case"hsl":if(l.length!==3){Kt(t,0,0,0,1);return}return ku(l,t),si(e,t),t;default:return}}Kt(t,0,0,0,1)}}function ku(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Zr(e[1]),n=Zr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Kt(t,lr(cs(o,a,r+1/3)*255),lr(cs(o,a,r)*255),lr(cs(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function B0(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?u=v-h:r===a?u=1/3+f-v:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var c=[u*360,l,s];return e[3]!=null&&c.push(e[3]),c}}function dh(e,t){var r=Xe(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Fo(r,r.length===4?"rgba":"rgb")}}function lA(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Xe(t[n]),s=Xe(t[a]),u=i-n,l=Fo([lr(ia(o[0],s[0],u)),lr(ia(o[1],s[1],u)),lr(ia(o[2],s[2],u)),Eu(ia(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Ou(e,t,r,i){var n=Xe(e);if(e)return n=B0(n),r!=null&&(n[1]=Zr(K(r)?r(n[1]):r)),i!=null&&(n[2]=Zr(K(i)?i(n[2]):i)),Fo(ku(n),"rgba")}function Fo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function fo(e,t){var r=Xe(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var ph=new Ri(100);function gh(e){if(N(e)){var t=ph.get(e);return t||(t=dh(e,-.1),ph.put(e,t)),t}else if(Bo(e)){var r=O({},e);return r.colorStops=q(e.colorStops,function(i){return{offset:i.offset,color:dh(i.color,-.1)}}),r}return e}function N0(e){return e.type==="linear"}function F0(e){return e.type==="radial"}(function(){return X.hasGlobalWindow&&K(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Bu=Array.prototype.slice;function Ve(e,t,r){return(t-e)*r+e}function ds(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Ve(t[a],r[a],i);return e}function z0(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ve(t[o][s],r[o][s],i)}return e}function aa(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function yh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function H0(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function V0(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:Bu.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function Ya(e){if(Vt(e)){var t=e.length;if(Vt(e[0])){for(var r=[],i=0;i<t;i++)r.push(Bu.call(e[i]));return r}return Bu.call(e)}return e}function Xa(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function G0(e){return Vt(e&&e[0])?2:1}var oa=0,$a=1,$d=2,fn=3,Nu=4,Fu=5,mh=6;function _h(e){return e===Nu||e===Fu}function sa(e){return e===$a||e===$d}var Yi=[0,0,0,0],W0=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=mh,u=r;if(Vt(r)){var l=G0(r);s=l,(l===1&&!ct(r[0])||l===2&&!ct(r[0][0]))&&(o=!0)}else if(ct(r)&&!An(r))s=oa;else if(N(r))if(!isNaN(+r))s=oa;else{var f=Xe(r);f&&(u=f,s=fn)}else if(Bo(r)){var h=O({},u);h.colorStops=q(r.colorStops,function(c){return{offset:c.offset,color:Xe(c.color)}}),N0(r)?s=Nu:F0(r)&&(s=Fu),u=h}a===0?this.valType=s:(s!==this.valType||s===mh)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:r,percent:0};return i&&(v.easing=i,v.easingFunc=K(i)?i:mn[i]||Ud(i)),n.push(v),v},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,p){return y.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=sa(n),l=_h(n),f=0;f<a;f++){var h=i[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?V0(v,c,n):l&&H0(v.colorStops,c.colorStops))}if(!s&&n!==Fu&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===oa?i[f].additiveValue=i[f].value-d:n===fn?i[f].additiveValue=aa([],i[f].value,d,-1):sa(n)&&(i[f].additiveValue=n===$a?aa([],i[f].value,d,-1):yh([],i[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===fn,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=v(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-c.percent,g=p===0?1:v((r-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=i?this._additiveValue:l?Yi:t[u];if((sa(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=g<1?c.rawValue:d.rawValue;else if(sa(a))a===$a?ds(m,c[n],d[n],g):z0(m,c[n],d[n],g);else if(_h(a)){var _=c[n],S=d[n],w=a===Nu;t[u]={type:w?"linear":"radial",x:Ve(_.x,S.x,g),y:Ve(_.y,S.y,g),colorStops:q(_.colorStops,function(b,C){var D=S.colorStops[C];return{offset:Ve(b.offset,D.offset,g),color:Xa(ds([],b.color,D.color,g))}}),global:S.global},w?(t[u].x2=Ve(_.x2,S.x2,g),t[u].y2=Ve(_.y2,S.y2,g)):t[u].r=Ve(_.r,S.r,g)}else if(l)ds(m,c[n],d[n],g),i||(t[u]=Xa(m));else{var x=Ve(c[n],d[n],g);i?this._additiveValue=x:t[u]=x}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===oa?t[i]=t[i]+n:r===fn?(Xe(t[i],Yi),aa(Yi,Yi,n,1),t[i]=Xa(Yi)):r===$a?aa(t[i],t[i],n,1):r===$d&&yh(t[i],t[i],n,1)},e})(),Ul=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){Fl("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,vt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new W0(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===fn&&l&&(l=Xa(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ya(l),n),this._trackKeys.push(s)}u.addKeyframe(t,Ya(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new k0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(r._target,c);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=Ya(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||vt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Mi(){return new Date().getTime()}var U0=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Mi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(oo(i),!r._paused&&r.update())}oo(i)},t.prototype.start=function(){this._running||(this._time=Mi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ul(r,i.loop);return this.addAnimator(n),n},t})(ke),Y0=300,ps=X.domSupported,gs=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=q(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),Sh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xh=!1;function zu(e){var t=e.pointerType;return t==="pen"||t==="touch"}function X0(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ys(e){e&&(e.zrByTouch=!0)}function $0(e,t){return Qt(e.dom,new Z0(e,t),!0)}function Zd(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Z0=(function(){function e(t,r){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),le={mousedown:function(e){e=Qt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Qt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qt(this.dom,e);var t=e.toElement||e.relatedTarget;Zd(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){xh=!0,e=Qt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){xh||(e=Qt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qt(this.dom,e),ys(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),le.mousemove.call(this,e),le.mousedown.call(this,e)},touchmove:function(e){e=Qt(this.dom,e),ys(e),this.handler.processGesture(e,"change"),le.mousemove.call(this,e)},touchend:function(e){e=Qt(this.dom,e),ys(e),this.handler.processGesture(e,"end"),le.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Y0&&le.click.call(this,e)},pointerdown:function(e){le.mousedown.call(this,e)},pointermove:function(e){zu(e)||le.mousemove.call(this,e)},pointerup:function(e){le.mouseup.call(this,e)},pointerout:function(e){zu(e)||le.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){le[e]=function(t){t=Qt(this.dom,t),this.trigger(e,t)}});var Hu={pointermove:function(e){zu(e)||Hu.mousemove.call(this,e)},pointerup:function(e){Hu.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function q0(e,t){var r=t.domHandlers;X.pointerEventsSupported?T(gs.pointer,function(i){Za(t,i,function(n){r[i].call(e,n)})}):(X.touchEventsSupported&&T(gs.touch,function(i){Za(t,i,function(n){r[i].call(e,n),X0(t)})}),T(gs.mouse,function(i){Za(t,i,function(n){n=Vl(n),t.touching||r[i].call(e,n)})}))}function K0(e,t){X.pointerEventsSupported?T(Sh.pointer,r):X.touchEventsSupported||T(Sh.mouse,r);function r(i){function n(a){a=Vl(a),Zd(e,a.target)||(a=$0(e,a),t.domHandlers[i].call(e,a))}Za(t,i,n,{capture:!0})}}function Za(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,h0(e.domTarget,t,r,i)}function ms(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&v0(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var wh=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),Q0=(function(e){F(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new wh(r,le),ps&&(n._globalHandlerScope=new wh(document,Hu)),q0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){ms(this._localHandlerScope),ps&&ms(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ps&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?K0(this,i):ms(i)}},t})(ke),qd=1;X.hasGlobalWindow&&(qd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ho=qd,Vu=.4,Gu="#333",Wu="#ccc",j0="#eee",Th=Gl,bh=5e-5;function wr(e){return e>bh||e<-bh}var Tr=[],ui=[],_s=Ye(),Ss=Math.abs,Yl=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return wr(this.rotation)||wr(this.x)||wr(this.y)||wr(this.scaleX-1)||wr(this.scaleY-1)||wr(this.skewX)||wr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Th(i),this.invTransform=null);return}i=i||Ye(),r?this.getLocalTransform(i):Th(i),t&&(r?gn(i,t,i):Rd(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Tr);var i=Tr[0]<0?-1:1,n=Tr[1]<0?-1:1,a=((Tr[0]-i)*r+i)/Tr[0]||0,o=((Tr[1]-n)*r+n)/Tr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ye(),Zn(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ye(),gn(ui,t.invTransform,r),r=ui);var i=this.originX,n=this.originY;(i||n)&&(_s[4]=i,_s[5]=n,gn(ui,r,_s),ui[4]-=i,ui[5]-=n,r=ui),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&oe(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&oe(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Ss(t[0]-1)>1e-10&&Ss(t[3]-1)>1e-10?Math.sqrt(Ss(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Uu(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;r[4]=-d*a-v*y*o,r[5]=-y*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,l&&Wl(r,r,l),r[4]+=i+f,r[5]+=n+h,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Ln=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Uu(e,t){for(var r=0;r<Ln.length;r++){var i=Ln[r];e[i]=t[i]}}function Ae(e){ua||(ua=new Ri(100)),e=e||vr;var t=ua.get(e);return t||(t={font:e,strWidthCache:new Ri(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$e.measureText("国",e).width,asciiCharWidth:$e.measureText("a",e).width},ua.put(e,t)),t}var ua;function J0(e){if(!(xs>=Ch)){e=e||vr;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=$e.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?xs=Ch:n>2&&xs++,t}}var xs=0,Ch=5;function Kd(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=J0(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Le(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=$e.measureText(t,e.font).width,r.put(t,i)),i}function Mh(e,t,r,i){var n=Le(Ae(t),e),a=zo(t),o=ki(0,n,r),s=qr(0,a,i),u=new Q(o,s,n,a);return u}function Qd(e,t,r,i){var n=((e||"")+"").split(`
|
|
1
|
+
import{a as mm,A as _m,m as Va,B as Td,e as bd,C as Sm,D as Su,E as xu,b as sn,G as xm,H as wm,I as Tm,J as Ga,K as is,T as bm,L as Wa}from"./index-Bl3DbLj3.js";var wu=function(e,t){return wu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},wu(e,t)};function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Cm=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Mm=(function(){function e(){this.browser=new Cm,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),X=new Mm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:!X.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(X.node=!0,X.svgSupported=!0):Dm(navigator.userAgent,X);function Dm(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Ol=12,Am="sans-serif",vr=Ol+"px "+Am,Lm=20,Pm=100,Im="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Em(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-Lm)/Pm;t[i]=n}return t}var Rm=Em(Im),$e={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,i){if(!e){var n=$e.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||vr),e.measureText(r);r=r||"",i=i||vr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ol,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=Rm[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},Cd=zi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Md=zi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),$n=Object.prototype.toString,Oo=Array.prototype,km=Oo.forEach,Om=Oo.filter,Bl=Oo.slice,Bm=Oo.map,Qf=(function(){}).constructor,ta=Qf?Qf.prototype:null,Nl="__proto__",Nm=2311;function Dd(){return Nm++}function Fl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=$n.call(e);if(r==="[object Array]"){if(!pn(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=rt(e[i])}}else if(Md[r]){if(!pn(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!Cd[r]&&!pn(e)&&!Dn(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Nl&&(t[o]=rt(e[o]))}return t}function at(e,t,r){if(!V(t)||!V(e))return r?rt(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Nl){var n=e[i],a=t[i];V(a)&&V(n)&&!B(a)&&!B(n)&&!Dn(a)&&!Dn(n)&&!jf(a)&&!jf(n)&&!pn(a)&&!pn(n)?at(n,a,r):(r||!(i in e))&&(e[i]=rt(t[i]))}return e}function O(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Nl&&(e[r]=t[r]);return e}function ft(e,t,r){for(var i=vt(t),n=0,a=i.length;n<a;n++){var o=i[n];e[o]==null&&(e[o]=t[o])}return e}function nt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function Fm(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Re(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else ft(e,t)}function Vt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===km)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function q(e,t,r){if(!e)return[];if(!t)return zl(e);if(e.map&&e.map===Bm)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function zi(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function bt(e,t,r){if(!e)return[];if(!t)return zl(e);if(e.filter&&e.filter===Om)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function zm(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function vt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function Hm(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(Bl.call(arguments)))}}var lt=ta&&K(ta.bind)?ta.call.bind(ta.bind):Hm;function ae(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Bl.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):$n.call(e)==="[object Array]"}function K(e){return typeof e=="function"}function N(e){return typeof e=="string"}function Tu(e){return $n.call(e)==="[object String]"}function ct(e){return typeof e=="number"}function V(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function jf(e){return!!Cd[$n.call(e)]}function Gt(e){return!!Md[$n.call(e)]}function Dn(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Bo(e){return e.colorStops!=null}function Vm(e){return e.image!=null}function An(e){return e!==e}function no(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function $(e,t){return e??t}function Li(e,t,r){return e??t??r}function zl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Bl.apply(e,t)}function Hl(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Ze(e,t){if(!e)throw new Error(t)}function be(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ad="__ec_primitive__";function bu(e){e[Ad]=!0}function pn(e){return e[Ad]}var Gm=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return vt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e})(),Ld=typeof Map=="function";function Wm(){return Ld?new Map:new Gm}var Um=(function(){function e(t){var r=B(t);this.data=Wm();var i=this;t instanceof e?t.each(n):t&&T(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return Ld?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function j(e){return new Um(e)}function Ym(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function No(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&O(r,t),r}function Pd(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function De(e,t){return e.hasOwnProperty(t)}function Ht(){}var Xm=180/Math.PI;function Hi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function $m(e){return[e[0],e[1]]}function Jf(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Zm(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function qm(e){return Math.sqrt(Km(e))}function Km(e){return e[0]*e[0]+e[1]*e[1]}function ns(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Qm(e,t){var r=qm(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Cu(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var jm=Cu;function Jm(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Pi=Jm;function oe(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Ti(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function bi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var oi=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),t0=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new oi(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new oi(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new oi(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new oi(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new oi(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new oi(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),ke=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),e0=Math.log(2);function Mu(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/e0);return e[r][u]}for(var l=i|1<<r,f=r+1;i&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&n||(h+=(c%2?-1:1)*e[r][v]*Mu(e,t-1,f,l,n|d,a),c++)}return a[o]=h,h}function th(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Mu(r,8,0,0,0,i);if(n!==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)*Mu(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var ao="___zrEVENTSAVED",as=[];function r0(e,t,r,i,n){return Du(as,t,i,n,!0)&&Du(e,r,as[0],as[1])}function i0(e,t){e&&r(e),t&&r(t);function r(i){var n=i[ao];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ao])}}function Du(e,t,r,i,n){if(t.getBoundingClientRect&&X.domSupported&&!Id(t)){var a=t[ao]||(t[ao]={}),o=n0(t,a),s=a0(o,a,n);if(s)return s(e,r,i),!0}return!1}function n0(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function a0(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[l].getBoundingClientRect(),h=2*l,v=f.left,c=f.top;o.push(v,c),u=u&&a&&v===a[h]&&c===a[h+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?th(s,o):th(o,s))}function Id(e){return e.nodeName.toUpperCase()==="CANVAS"}var o0=/([&<>"'])/g,s0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bt(e){return e==null?"":(e+"").replace(o0,function(t,r){return s0[r]})}var u0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,os=[],l0=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Au(e,t,r,i){return r=r||{},i?eh(e,t,r):l0&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):eh(e,t,r),r}function eh(e,t,r){if(X.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Id(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Du(os,e,i,n)){r.zrX=os[0],r.zrY=os[1];return}}r.zrX=r.zrY=0}function Vl(e){return e||window.event}function Qt(e,t,r){if(t=Vl(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Au(e,o,t,r)}else{Au(e,t,t,r);var a=f0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&u0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function f0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function h0(e,t,r,i){e.addEventListener(t,r,i)}function v0(e,t,r,i){e.removeEventListener(t,r,i)}var Ed=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},c0=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=Au(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in ss)if(ss.hasOwnProperty(r)){var i=ss[r](this._track,t);if(i)return i}},e})();function rh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function d0(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ss={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=rh(i)/rh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=d0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ye(){return[1,0,0,1,0,0]}function Gl(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rd(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function gn(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Lu(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Wl(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=n*h+s*f,e[1]=-n*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-i[0])+f*(l-i[1])+i[0],e[5]=h*(l-i[1])-f*(o-i[0])+i[1],e}function p0(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Zn(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}var ot=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e})(),Ur=Math.min,Ci=Math.max,Pu=Math.abs,ih=["x","y"],g0=["width","height"],mr=new ot,_r=new ot,Sr=new ot,xr=new ot,Yt=kd(),un=Yt.minTv,Iu=Yt.maxTv,yn=[0,0],Q=(function(){function e(t,r,i,n){e.set(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=Ur(t.x,this.x),i=Ur(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ci(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ci(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Ye();return Lu(a,a,[-r.x,-r.y]),p0(a,a,[i,n]),Lu(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&ot.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(y0,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(m0,r.x,r.y,r.width,r.height));var s=!!i;Yt.reset(n,s);var u=Yt.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,v=t.y+t.height-u,c=r.x+u,d=r.x+r.width-u,y=r.y+u,p=r.y+r.height-u;if(l>f||h>v||c>d||y>p)return!1;var g=!(f<c||d<l||v<y||p<h);return(s||a)&&(yn[0]=1/0,yn[1]=0,nh(l,f,c,d,0,s,a,o),nh(h,v,y,p,1,s,a,o),s&&ot.copy(i,g?Yt.useDir?Yt.dirMinTv:un:Iu)),g},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.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}mr.x=Sr.x=r.x,mr.y=xr.y=r.y,_r.x=xr.x=r.x+r.width,_r.y=Sr.y=r.y+r.height,mr.transform(i),xr.transform(i),_r.transform(i),Sr.transform(i),t.x=Ur(mr.x,_r.x,Sr.x,xr.x),t.y=Ur(mr.y,_r.y,Sr.y,xr.y);var u=Ci(mr.x,_r.x,Sr.x,xr.x),l=Ci(mr.y,_r.y,Sr.y,xr.y);t.width=u-t.x,t.height=l-t.y},e})(),y0=new Q(0,0,0,0),m0=new Q(0,0,0,0);function nh(e,t,r,i,n,a,o,s){var u=Pu(t-r),l=Pu(i-e),f=Ur(u,l),h=ih[n],v=ih[1-n],c=g0[n];t<r||i<e?u<l?(a&&(Iu[h]=-u),s&&(o[h]=t,o[c]=0)):(a&&(Iu[h]=l),s&&(o[h]=e,o[c]=0)):(o&&(o[h]=Ci(e,r),o[c]=Ur(t,i)-o[h]),a&&(f<yn[0]||Yt.useDir)&&(yn[0]=Ur(f,yn[0]),(u<l||!Yt.bidirectional)&&(un[h]=u,un[v]=0,Yt.useDir&&Yt.calcDirMTV()),(u>=l||!Yt.bidirectional)&&(un[h]=-l,un[v]=0,Yt.useDir&&Yt.calcDirMTV())))}function kd(){var e=0,t=new ot,r=new ot,i={minTv:new ot,maxTv:new ot,useDir:!1,dirMinTv:new ot,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ci(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Pu(a)<1e-10}return i}var Od="silent";function _0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:S0}}function S0(){Ed(this.event)}var x0=(function(e){F(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(ke),Wi=(function(){function e(t,r){this.x=t,this.y=r}return e})(),w0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],us=new Q(0,0,0,0),Bd=(function(e){F(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Wi(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new x0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new t0(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(w0,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Nd(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Wi(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Wi(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=_0(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Wi(r,i);if(ah(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new Q(r-l,i-l,u,u),h=a.length-1;h>=0;h--){var v=a[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(us.copy(v.getBoundingRect()),v.transform&&us.applyTransform(v.transform),us.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,y=Math.PI*2,p=0;p<l;p+=c)for(var g=0;g<y;g+=d){var m=r+p*Math.cos(g),_=i+p*Math.sin(g);if(ah(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new c0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(ke);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Bd.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=Nd(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||jm(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function T0(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Od:!0}return!1}function ah(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=T0(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Od)){t.target=o;break}}}function Nd(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var Fd=32,Ui=7;function b0(e){for(var t=0;e>=Fd;)t|=e&1,e>>=1;return e+t}function oh(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;C0(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function C0(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function sh(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function ls(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(e,t[r+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])>0?o=f+1:u=f}return u}function fs(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(e,t[r+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function M0(e,t){var r=Ui,i,n,a=0,o=[];i=[],n=[];function s(c,d){i[a]=c,n[a]=d,a+=1}function u(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;f(c)}}function l(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,f(c)}}function f(c){var d=i[c],y=n[c],p=i[c+1],g=n[c+1];n[c]=y+g,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var m=fs(e[p],e,d,y,0,t);d+=m,y-=m,y!==0&&(g=ls(e[d+y-1],e,p,g,g-1,t),g!==0&&(y<=g?h(d,y,p,g):v(d,y,p,g)))}function h(c,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=e[c+g];var m=0,_=y,S=c;if(e[S++]=e[_++],--p===0){for(g=0;g<d;g++)e[S+g]=o[m+g];return}if(d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m];return}for(var w=r,x,b,C;;){x=0,b=0,C=!1;do if(t(e[_],o[m])<0){if(e[S++]=e[_++],b++,x=0,--p===0){C=!0;break}}else if(e[S++]=o[m++],x++,b=0,--d===1){C=!0;break}while((x|b)<w);if(C)break;do{if(x=fs(e[_],o,m,d,0,t),x!==0){for(g=0;g<x;g++)e[S+g]=o[m+g];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(e[S++]=e[_++],--p===0){C=!0;break}if(b=ls(o[m],e,_,p,0,t),b!==0){for(g=0;g<b;g++)e[S+g]=e[_+g];if(S+=b,_+=b,p-=b,p===0){C=!0;break}}if(e[S++]=o[m++],--d===1){C=!0;break}w--}while(x>=Ui||b>=Ui);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[S+g]=e[_+g];e[S+p]=o[m]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[S+g]=o[m+g]}}function v(c,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=e[y+g];var m=c+d-1,_=p-1,S=y+p-1,w=0,x=0;if(e[S--]=e[m--],--d===0){for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g];return}if(p===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)e[x+g]=e[w+g];e[S]=o[_];return}for(var b=r;;){var C=0,D=0,L=!1;do if(t(o[_],e[m])<0){if(e[S--]=e[m--],C++,D=0,--d===0){L=!0;break}}else if(e[S--]=o[_--],D++,C=0,--p===1){L=!0;break}while((C|D)<b);if(L)break;do{if(C=d-fs(o[_],e,c,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,x=S+1,w=m+1,g=C-1;g>=0;g--)e[x+g]=e[w+g];if(d===0){L=!0;break}}if(e[S--]=o[_--],--p===1){L=!0;break}if(D=p-ls(e[m],o,0,p,p-1,t),D!==0){for(S-=D,_-=D,p-=D,x=S+1,w=_+1,g=0;g<D;g++)e[x+g]=o[w+g];if(p<=1){L=!0;break}}if(e[S--]=e[m--],--d===0){L=!0;break}b--}while(C>=Ui||D>=Ui);if(L)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),p===1){for(S-=d,m-=d,x=S+1,w=m+1,g=d-1;g>=0;g--)e[x+g]=e[w+g];e[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),g=0;g<p;g++)e[w+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Ua(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<Fd){a=oh(e,r,i,t),sh(e,r,i,r+a,t);return}var o=M0(e,t),s=b0(n);do{if(a=oh(e,r,i,t),a<s){var u=n;u>s&&(u=s),sh(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Xt=1,ln=2,wi=4,uh=!1;function hs(){uh||(uh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var D0=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lh}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,Ua(i,lh)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=Xt),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(hs(),d.z=0),isNaN(d.z2)&&(hs(),d.z2=0),isNaN(d.zlevel)&&(hs(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,i);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=nt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),oo;oo=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var mn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-mn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?mn.bounceIn(e*2)*.5:mn.bounceOut(e*2-1)*.5+.5}},ea=Math.pow,ur=Math.sqrt,so=1e-8,zd=1e-4,fh=ur(3),ra=1/3,Te=Hi(),te=Hi(),Ii=Hi();function or(e){return e>-so&&e<so}function Hd(e){return e>so||e<-so}function Et(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function hh(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function Vd(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,f=s*s-3*o*u,h=s*u-9*o*l,v=u*u-3*s*l,c=0;if(or(f)&&or(h))if(or(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[c++]=d)}else{var y=h*h-4*f*v;if(or(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(y>0){var m=ur(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ea(-_,ra):_=ea(_,ra),S<0?S=-ea(-S,ra):S=ea(S,ra);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*ur(f*f*f)),x=Math.acos(w)/3,b=ur(f),C=Math.cos(x),d=(-s-2*b*C)/(3*o),g=(-s+b*(C+fh*Math.sin(x)))/(3*o),D=(-s+b*(C-fh*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),D>=0&&D<=1&&(a[c++]=D)}}return c}function Gd(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(or(o)){if(Hd(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(or(f))n[0]=-a/(2*o);else if(f>0){var h=ur(f),l=(-a+h)/(2*o),v=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function uo(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function A0(e,t,r,i,n,a,o,s,u,l,f){var h,v=.005,c=1/0,d,y,p,g;Te[0]=u,Te[1]=l;for(var m=0;m<1;m+=.05)te[0]=Et(e,r,n,o,m),te[1]=Et(t,i,a,s,m),p=Pi(Te,te),p<c&&(h=m,c=p);c=1/0;for(var _=0;_<32&&!(v<zd);_++)d=h-v,y=h+v,te[0]=Et(e,r,n,o,d),te[1]=Et(t,i,a,s,d),p=Pi(te,Te),d>=0&&p<c?(h=d,c=p):(Ii[0]=Et(e,r,n,o,y),Ii[1]=Et(t,i,a,s,y),g=Pi(Ii,Te),y<=1&&g<c?(h=y,c=g):v*=.5);return ur(c)}function L0(e,t,r,i,n,a,o,s,u){for(var l=e,f=t,h=0,v=1/u,c=1;c<=u;c++){var d=c*v,y=Et(e,r,n,o,d),p=Et(t,i,a,s,d),g=y-l,m=p-f;h+=Math.sqrt(g*g+m*m),l=y,f=p}return h}function Nt(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function vh(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function P0(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(or(a)){if(Hd(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(or(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=ur(f),l=(-o+h)/(2*a),v=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),v>=0&&v<=1&&(n[u++]=v)}}return u}function Wd(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function lo(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function I0(e,t,r,i,n,a,o,s,u){var l,f=.005,h=1/0;Te[0]=o,Te[1]=s;for(var v=0;v<1;v+=.05){te[0]=Nt(e,r,n,v),te[1]=Nt(t,i,a,v);var c=Pi(Te,te);c<h&&(l=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<zd);d++){var y=l-f,p=l+f;te[0]=Nt(e,r,n,y),te[1]=Nt(t,i,a,y);var c=Pi(te,Te);if(y>=0&&c<h)l=y,h=c;else{Ii[0]=Nt(e,r,n,p),Ii[1]=Nt(t,i,a,p);var g=Pi(Ii,Te);p<=1&&g<h?(l=p,h=g):f*=.5}}return ur(h)}function E0(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Nt(e,r,n,v),d=Nt(t,i,a,v),y=c-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=c,u=d}return l}var R0=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ud(e){var t=e&&R0.exec(e);if(t){var r=t[1].split(","),i=+be(r[0]),n=+be(r[1]),a=+be(r[2]),o=+be(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Vd(0,i,a,1,u,s)&&Et(0,n,o,1,s[0])}}}var k0=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;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 u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:mn[t]||Ud(t)},e})(),Yd=(function(){function e(t){this.value=t}return e})(),O0=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Yd(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Ri=(function(){function e(t){this._list=new O0,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Yd(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),ch={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 lr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Eu(e){return e<0?0:e>1?1:e}function vs(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?lr(parseFloat(t)/100*255):lr(parseInt(t,10))}function Zr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Eu(parseFloat(t)/100):Eu(parseFloat(t))}function cs(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function ia(e,t,r){return e+(t-e)*r}function Kt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Ru(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Xd=new Ri(20),na=null;function si(e,t){na&&Ru(na,t),na=Xd.put(e,na||t.slice())}function Xe(e,t){if(e){t=t||[];var r=Xd.get(e);if(r)return Ru(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ch)return Ru(t,ch[i]),si(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Kt(t,0,0,0,1);return}return Kt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),si(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Kt(t,0,0,0,1);return}return Kt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),si(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?Kt(t,+l[0],+l[1],+l[2],1):Kt(t,0,0,0,1);f=Zr(l.pop());case"rgb":if(l.length>=3)return Kt(t,vs(l[0]),vs(l[1]),vs(l[2]),l.length===3?f:Zr(l[3])),si(e,t),t;Kt(t,0,0,0,1);return;case"hsla":if(l.length!==4){Kt(t,0,0,0,1);return}return l[3]=Zr(l[3]),ku(l,t),si(e,t),t;case"hsl":if(l.length!==3){Kt(t,0,0,0,1);return}return ku(l,t),si(e,t),t;default:return}}Kt(t,0,0,0,1)}}function ku(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Zr(e[1]),n=Zr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Kt(t,lr(cs(o,a,r+1/3)*255),lr(cs(o,a,r)*255),lr(cs(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function B0(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-i)/6+o/2)/o;t===a?u=v-h:r===a?u=1/3+f-v:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var c=[u*360,l,s];return e[3]!=null&&c.push(e[3]),c}}function dh(e,t){var r=Xe(e);if(r){for(var i=0;i<3;i++)r[i]=r[i]*(1-t)|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Fo(r,r.length===4?"rgba":"rgb")}}function lA(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Xe(t[n]),s=Xe(t[a]),u=i-n,l=Fo([lr(ia(o[0],s[0],u)),lr(ia(o[1],s[1],u)),lr(ia(o[2],s[2],u)),Eu(ia(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Ou(e,t,r,i){var n=Xe(e);if(e)return n=B0(n),r!=null&&(n[1]=Zr(K(r)?r(n[1]):r)),i!=null&&(n[2]=Zr(K(i)?i(n[2]):i)),Fo(ku(n),"rgba")}function Fo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function fo(e,t){var r=Xe(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var ph=new Ri(100);function gh(e){if(N(e)){var t=ph.get(e);return t||(t=dh(e,-.1),ph.put(e,t)),t}else if(Bo(e)){var r=O({},e);return r.colorStops=q(e.colorStops,function(i){return{offset:i.offset,color:dh(i.color,-.1)}}),r}return e}function N0(e){return e.type==="linear"}function F0(e){return e.type==="radial"}(function(){return X.hasGlobalWindow&&K(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Bu=Array.prototype.slice;function Ve(e,t,r){return(t-e)*r+e}function ds(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Ve(t[a],r[a],i);return e}function z0(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ve(t[o][s],r[o][s],i)}return e}function aa(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function yh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function H0(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function V0(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(r===1?n[u]:Bu.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function Ya(e){if(Vt(e)){var t=e.length;if(Vt(e[0])){for(var r=[],i=0;i<t;i++)r.push(Bu.call(e[i]));return r}return Bu.call(e)}return e}function Xa(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function G0(e){return Vt(e&&e[0])?2:1}var oa=0,$a=1,$d=2,fn=3,Nu=4,Fu=5,mh=6;function _h(e){return e===Nu||e===Fu}function sa(e){return e===$a||e===$d}var Yi=[0,0,0,0],W0=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=mh,u=r;if(Vt(r)){var l=G0(r);s=l,(l===1&&!ct(r[0])||l===2&&!ct(r[0][0]))&&(o=!0)}else if(ct(r)&&!An(r))s=oa;else if(N(r))if(!isNaN(+r))s=oa;else{var f=Xe(r);f&&(u=f,s=fn)}else if(Bo(r)){var h=O({},u);h.colorStops=q(r.colorStops,function(c){return{offset:c.offset,color:Xe(c.color)}}),N0(r)?s=Nu:F0(r)&&(s=Fu),u=h}a===0?this.valType=s:(s!==this.valType||s===mh)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:u,rawValue:r,percent:0};return i&&(v.easing=i,v.easingFunc=K(i)?i:mn[i]||Ud(i)),n.push(v),v},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,p){return y.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=sa(n),l=_h(n),f=0;f<a;f++){var h=i[f],v=h.value,c=o.value;h.percent=h.time/t,s||(u&&f!==a-1?V0(v,c,n):l&&H0(v.colorStops,c.colorStops))}if(!s&&n!==Fu&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===oa?i[f].additiveValue=i[f].value-d:n===fn?i[f].additiveValue=aa([],i[f].value,d,-1):sa(n)&&(i[f].additiveValue=n===$a?aa([],i[f].value,d,-1):yh([],i[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===fn,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var y=v(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-c.percent,g=p===0?1:v((r-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=i?this._additiveValue:l?Yi:t[u];if((sa(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=g<1?c.rawValue:d.rawValue;else if(sa(a))a===$a?ds(m,c[n],d[n],g):z0(m,c[n],d[n],g);else if(_h(a)){var _=c[n],S=d[n],w=a===Nu;t[u]={type:w?"linear":"radial",x:Ve(_.x,S.x,g),y:Ve(_.y,S.y,g),colorStops:q(_.colorStops,function(b,C){var D=S.colorStops[C];return{offset:Ve(b.offset,D.offset,g),color:Xa(ds([],b.color,D.color,g))}}),global:S.global},w?(t[u].x2=Ve(_.x2,S.x2,g),t[u].y2=Ve(_.y2,S.y2,g)):t[u].r=Ve(_.r,S.r,g)}else if(l)ds(m,c[n],d[n],g),i||(t[u]=Xa(m));else{var x=Ve(c[n],d[n],g);i?this._additiveValue=x:t[u]=x}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===oa?t[i]=t[i]+n:r===fn?(Xe(t[i],Yi),aa(Yi,Yi,n,1),t[i]=Xa(Yi)):r===$a?aa(t[i],t[i],n,1):r===$d&&yh(t[i],t[i],n,1)},e})(),Ul=(function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){Fl("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,vt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new W0(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];l=v&&v.value,f.valType===fn&&l&&(l=Xa(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Ya(l),n),this._trackKeys.push(s)}u.addKeyframe(t,Ya(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new k0({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(r._target,c);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=Ya(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||vt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function Mi(){return new Date().getTime()}var U0=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Mi()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(oo(i),!r._paused&&r.update())}oo(i)},t.prototype.start=function(){this._running||(this._time=Mi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Mi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Mi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ul(r,i.loop);return this.addAnimator(n),n},t})(ke),Y0=300,ps=X.domSupported,gs=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=q(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}})(),Sh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},xh=!1;function zu(e){var t=e.pointerType;return t==="pen"||t==="touch"}function X0(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ys(e){e&&(e.zrByTouch=!0)}function $0(e,t){return Qt(e.dom,new Z0(e,t),!0)}function Zd(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var Z0=(function(){function e(t,r){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),le={mousedown:function(e){e=Qt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Qt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Qt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Qt(this.dom,e);var t=e.toElement||e.relatedTarget;Zd(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){xh=!0,e=Qt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){xh||(e=Qt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Qt(this.dom,e),ys(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),le.mousemove.call(this,e),le.mousedown.call(this,e)},touchmove:function(e){e=Qt(this.dom,e),ys(e),this.handler.processGesture(e,"change"),le.mousemove.call(this,e)},touchend:function(e){e=Qt(this.dom,e),ys(e),this.handler.processGesture(e,"end"),le.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Y0&&le.click.call(this,e)},pointerdown:function(e){le.mousedown.call(this,e)},pointermove:function(e){zu(e)||le.mousemove.call(this,e)},pointerup:function(e){le.mouseup.call(this,e)},pointerout:function(e){zu(e)||le.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){le[e]=function(t){t=Qt(this.dom,t),this.trigger(e,t)}});var Hu={pointermove:function(e){zu(e)||Hu.mousemove.call(this,e)},pointerup:function(e){Hu.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function q0(e,t){var r=t.domHandlers;X.pointerEventsSupported?T(gs.pointer,function(i){Za(t,i,function(n){r[i].call(e,n)})}):(X.touchEventsSupported&&T(gs.touch,function(i){Za(t,i,function(n){r[i].call(e,n),X0(t)})}),T(gs.mouse,function(i){Za(t,i,function(n){n=Vl(n),t.touching||r[i].call(e,n)})}))}function K0(e,t){X.pointerEventsSupported?T(Sh.pointer,r):X.touchEventsSupported||T(Sh.mouse,r);function r(i){function n(a){a=Vl(a),Zd(e,a.target)||(a=$0(e,a),t.domHandlers[i].call(e,a))}Za(t,i,n,{capture:!0})}}function Za(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,h0(e.domTarget,t,r,i)}function ms(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&v0(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var wh=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),Q0=(function(e){F(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new wh(r,le),ps&&(n._globalHandlerScope=new wh(document,Hu)),q0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){ms(this._localHandlerScope),ps&&ms(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,ps&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?K0(this,i):ms(i)}},t})(ke),qd=1;X.hasGlobalWindow&&(qd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ho=qd,Vu=.4,Gu="#333",Wu="#ccc",j0="#eee",Th=Gl,bh=5e-5;function wr(e){return e>bh||e<-bh}var Tr=[],ui=[],_s=Ye(),Ss=Math.abs,Yl=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return wr(this.rotation)||wr(this.x)||wr(this.y)||wr(this.scaleX-1)||wr(this.scaleY-1)||wr(this.skewX)||wr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Th(i),this.invTransform=null);return}i=i||Ye(),r?this.getLocalTransform(i):Th(i),t&&(r?gn(i,t,i):Rd(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Tr);var i=Tr[0]<0?-1:1,n=Tr[1]<0?-1:1,a=((Tr[0]-i)*r+i)/Tr[0]||0,o=((Tr[1]-n)*r+n)/Tr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ye(),Zn(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ye(),gn(ui,t.invTransform,r),r=ui);var i=this.originX,n=this.originY;(i||n)&&(_s[4]=i,_s[5]=n,gn(ui,r,_s),ui[4]-=i,ui[5]-=n,r=ui),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&oe(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&oe(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Ss(t[0]-1)>1e-10&&Ss(t[3]-1)>1e-10?Math.sqrt(Ss(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Uu(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;r[4]=-d*a-v*y*o,r[5]=-y*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,l&&Wl(r,r,l),r[4]+=i+f,r[5]+=n+h,r},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Ln=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Uu(e,t){for(var r=0;r<Ln.length;r++){var i=Ln[r];e[i]=t[i]}}function Ae(e){ua||(ua=new Ri(100)),e=e||vr;var t=ua.get(e);return t||(t={font:e,strWidthCache:new Ri(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$e.measureText("国",e).width,asciiCharWidth:$e.measureText("a",e).width},ua.put(e,t)),t}var ua;function J0(e){if(!(xs>=Ch)){e=e||vr;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=$e.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?xs=Ch:n>2&&xs++,t}}var xs=0,Ch=5;function Kd(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=J0(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Le(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=$e.measureText(t,e.font).width,r.put(t,i)),i}function Mh(e,t,r,i){var n=Le(Ae(t),e),a=zo(t),o=ki(0,n,r),s=qr(0,a,i),u=new Q(o,s,n,a);return u}function Qd(e,t,r,i){var n=((e||"")+"").split(`
|
|
2
2
|
`),a=n.length;if(a===1)return Mh(n[0],t,r,i);for(var o=new Q(0,0,0,0),s=0;s<n.length;s++){var u=Mh(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function ki(e,t,r,i){return r==="right"?i?e+=t:e-=t:r==="center"&&(i?e+=t/2:e-=t/2),e}function qr(e,t,r,i){return r==="middle"?i?e+=t/2:e-=t/2:r==="bottom"&&(i?e+=t:e-=t),e}function zo(e){return Ae(e).stWideCharWidth}function ti(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function jd(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(i instanceof Array)u+=ti(i[0],r.width),l+=ti(i[1],r.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var ws="__zr_normal__",Ts=Ln.concat(["ignore"]),t_=zi(Ln,function(e,t){return e[t]=!0,e},{ignore:!1}),li={},e_=new Q(0,0,0,0),la=[],Ho=(function(){function e(t){this.id=Dd(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var f=i.position!=null,h=i.autoOverflowArea,v=void 0;if((h||f)&&(v=e_,i.layoutRect?v.copy(i.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(li,i,v):jd(li,i,v),a.x=li.x,a.y=li.y,o=li.align,s=li.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,y=void 0;c==="center"?(d=v.width*.5,y=v.height*.5):(d=ti(c[0],v.width),y=ti(c[1],v.height)),l=!0,a.originX=-a.x+d+(n?0:v.x),a.originY=-a.y+y+(n?0:v.y)}}i.rotation!=null&&(a.rotation=i.rotation);var p=i.offset;p&&(a.x+=p[0],a.y+=p[1],l||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=g.overflowRect=g.overflowRect||new Q(0,0,0,0);a.getLocalTransform(la),Zn(la,la),Q.copy(m,v),m.applyTransform(la)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,w=void 0,x=void 0;_&&this.canBeInsideText()?(S=i.insideFill,w=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),x=!0)):(S=i.outsideFill,w=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==g.fill||w!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=S,g.stroke=w,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Xt,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wu:Gu},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&Xe(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Fo(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},O(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(V(t))for(var i=t,n=vt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==ws)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Ts)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(ws,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===ws,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(nt(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Fl("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,r,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,r,i,f),v&&v.useState(t,r,i,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt),l}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],v=!!(h&&h.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,r,v),p&&p.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=nt(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=nt(n,t),o=nt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];O(r,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Ts.length;f++){var h=Ts[f],v=a&&t_[h];r&&r[h]!=null?v?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&i[h]!=null&&(v?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||i)[d]:r||i)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Yl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Xt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new Ul(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=nt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){bs(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){bs(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=bs(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Xt;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();Re(Ho,ke);Re(Ho,Yl);function bs(e,t,r,i,n){r=r||{};var a=[];Jd(e,"",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&r.during&&a[0].during(function(d,y){r.during(y)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Cs(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function r_(e){return Vt(e[0])}function i_(e,t,r){if(Vt(t[r]))if(Vt(e[r])||(e[r]=[]),Gt(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Cs(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(r_(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Cs(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Cs(a,n,o);a.length=n.length}else e[r]=t[r]}function n_(e,t){return e===t||Vt(e)&&Vt(t)&&a_(e,t)}function a_(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Jd(e,t,r,i,n,a,o,s){for(var u=vt(i),l=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!V(a),d=e.animators,y=[],p=0;p<u.length;p++){var g=u[p],m=i[g];if(m!=null&&r[g]!=null&&(c||a[g]))if(V(m)&&!Vt(m)&&!Bo(m)){if(t){s||(r[g]=m,e.updateDuringAnimation(t));continue}Jd(e,g,r[g],m,n,a&&a[g],o,s)}else y.push(g);else s||(r[g]=m,e.updateDuringAnimation(t),y.push(g))}var _=y.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var x=w.stopTracks(y);if(x){var b=nt(d,w);d.splice(b,1)}}}if(n.force||(y=bt(y,function(A){return!n_(i[A],r[A])}),_=y.length),_>0||n.force&&!o.length){var C=void 0,D=void 0,L=void 0;if(s){D={},v&&(C={});for(var S=0;S<_;S++){var g=y[S];D[g]=r[g],v?C[g]=i[g]:r[g]=i[g]}}else if(v){L={};for(var S=0;S<_;S++){var g=y[S];L[g]=Ya(r[g]),i_(r,i,g)}}var w=new Ul(r,!1,!1,h?bt(d,function(P){return P.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),v&&C&&w.whenWithKeys(0,C,y),L&&w.whenWithKeys(0,L,y),w.whenWithKeys(l??500,s?D:i,y).delay(f||0),e.addAnimator(w,t),o.push(w)}}var he=(function(e){F(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=nt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=nt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new Q(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(Q.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t})(Ho);he.prototype.type="group";var qa={},tp={};function o_(e){delete tp[e]}function s_(e){if(!e)return!1;if(typeof e=="string")return fo(e,1)<Vu;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=fo(t[n].color,1);return r/=i,r<Vu}return!1}var u_=(function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new D0,o=i.renderer||"canvas";qa[o]||(o=vt(qa)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new qa[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!X.node&&!X.worker&&!u?new Q0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?X.touchEventsSupported:!!f,v=44,c;h&&(c=$(i.pointerSize,v)),this.handler=new Bd(a,s,l,s.root,c),this.animation=new U0({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=s_(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=Mi();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=Mi();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof he&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,o_(this.id))},e})();function Dh(e,t){var r=new u_(Dd(),e,t);return tp[r.id]=r,r}function l_(e,t){qa[e]=t}var Ah=1e-4,ep=20;function f_(e){return e.replace(/^\s+|\s+$/g,"")}var Pn=Math.min,$t=Math.max,Ce=Math.abs;function Lh(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}var Rt=h_;function h_(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Yu(e,t,r)}function Yu(e,t,r){return N(e)?f_(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Ct(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),ep),e=(+e).toFixed(t),r?e:+e}function We(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return v_(e)}function v_(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function c_(e,t){var r=Math.log,i=Math.LN10,n=Math.floor(r(e[1]-e[0])/i),a=Math.round(r(Ce(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function d_(e,t){var r=Math.max(We(e),We(t)),i=e+t;return r>ep?i:Ct(i,r)}function rp(e){var t=Math.PI*2;return(e%t+t)%t}function vo(e){return e>-Ah&&e<Ah}var p_=/^(?:(\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 Vi(e){if(e instanceof Date)return e;if(N(e)){var t=p_.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function g_(e){return Math.pow(10,Xl(e))}function Xl(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ip(e,t){var r=Xl(e),i=Math.pow(10,r),n=e/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,e=a*i,r>=-20?+e.toFixed(r<0?-r:0):e}function co(e){var t=parseFloat(e);return t==e&&(t!==0||!N(e)||e.indexOf("x")<=0)?t:NaN}function y_(e){return!isNaN(co(e))}function np(){return Math.round(Math.random()*9)}function ap(e,t){return t===0?e:ap(t,e%t)}function Ph(e,t){return e==null?t:t==null?e:e*t/ap(e,t)}var m_="[ECharts] ",__=typeof console<"u"&&console.warn&&console.log;function S_(e,t,r){__&&console[e](m_+t)}function op(e,t){S_("error",e)}function Ft(e){throw new Error(e)}function Ih(e,t,r){return(t-e)*r+e}var sp="series\0",x_="\0_ec_\0";function kt(e){return e instanceof Array?e:e==null?[]:[e]}function Eh(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Rh=["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 qn(e){return V(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function w_(e){return V(e)&&!(e instanceof Array)}function T_(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=j();T(t,function(u,l){if(!V(u)){t[l]=null;return}});var s=b_(e,o,r);return(i||n)&&C_(s,e,o,t),i&&M_(s,t),i||n?D_(s,t,n):a&&A_(s,t),L_(s),s}function b_(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||In(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function C_(e,t,r,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=_n(n.id),s=r.get(o);if(s!=null){var u=e[s];Ze(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function M_(e,t){T(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!In(r)&&!In(a)&&up("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function D_(e,t,r){T(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||In(n.existing)||n.existing&&i.id!=null&&!up("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function A_(e,t){T(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function L_(e){var t=j();T(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),T(e,function(r){var i=r.newOption;Ze(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),T(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(V(a)){if(o.name=a.name!=null?_n(a.name):n?n.name:sp+i,n)o.id=_n(n.id);else if(a.id!=null)o.id=_n(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function up(e,t,r){var i=Pe(t[e],null),n=Pe(r[e],null);return i!=null&&n!=null&&i===n}function _n(e){return Pe(e,"")}function Pe(e,t){return e==null?t:N(e)?e:ct(e)||Tu(e)?e+"":t}function lp(e){var t=e.name;return!!(t&&t.indexOf(sp))}function In(e){return e&&e.id!=null&&_n(e.id).indexOf(x_)===0}function P_(e,t,r){T(e,function(i){var n=i.newOption;V(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=I_(t,n,i.existing,r))})}function I_(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function Kn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function gt(){var e="__ec_inner_"+E_++;return function(t){return t[e]||(t[e]={})}}var E_=np();function Ms(e,t,r){var i=$l(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=Qn(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function $l(e,t){var r;if(N(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=j(),a={},o=!1;return T(r,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&nt(t.includeMainTypes,f)<0)){o=o||!!f;var v=n.get(f)||n.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var ie={useDefault:!0,enableAll:!1,enableNone:!1};function Qn(e,t,r,i){i=i||ie;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function fp(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function R_(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function k_(e){return e==="auto"?X.domSupported?"html":"richText":e||"html"}function fA(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(ct(i)){var o=Ih(r||0,i,n);return Ct(o,a?Math.max(We(r||0),We(i)):t)}else{if(N(i))return n<1?r:i;for(var s=[],u=r,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var v=e.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var c=u&&u[h]?u[h]:0,d=l[h],o=Ih(c,d,n);s[h]=Ct(o,a?Math.max(We(c),We(d)):t)}}return s}}var O_=".",br="___EC__COMPONENT__CONTAINER___",hp="___EC__EXTENDED_CLASS___";function Me(e){var t={main:"",sub:""};if(e){var r=e.split(O_);t.main=r[0]||"",t.sub=r[1]||""}return t}function B_(e){Ze(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function N_(e){return!!(e&&e[hp])}function Zl(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return F_(i)?n=(function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Fm(n,this)),O(n.prototype,r),n[hp]=!0,n.extend=this.extend,n.superCall=V_,n.superApply=G_,n.superClass=i,n}}function F_(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function vp(e,t){e.extend=t.extend}var z_=Math.round(Math.random()*10);function H_(e){var t=["__\0is_clz",z_++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function V_(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function G_(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Vo(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){B_(n),i.prototype.type=n;var a=Me(n);if(!a.sub)t[a.main]=i;else if(a.sub!==br){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[br]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},e.getClassesByMainType=function(i){var n=Me(i),a=[],o=t[n.main];return o&&o[br]?T(o,function(s,u){u!==br&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=Me(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return T(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=Me(i),a=t[n.main];return a&&a[br]};function r(i){var n=t[i.main];return(!n||!n[br])&&(n=t[i.main]={},n[br]=!0),n}}function En(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&nt(n,u)>=0||a&&nt(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var W_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],U_=En(W_),Y_=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return U_(this,t,r)},e})(),Xu=new Ri(50);function X_(e){if(typeof e=="string"){var t=Xu.get(e);return t&&t.image}else return e}function cp(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Xu.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!Go(t)&&a.pending.push(o)):(t=$e.loadImage(e,kh,kh),t.__zrImageSrc=e,Xu.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function kh(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Go(e){return e&&e.width&&e.height}var Ds=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function $_(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
3
3
|
`);a=dp(r,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)pp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
|
|
4
4
|
`),e.isTruncated=s}function dp(e,t,r,i){i=i||{};var n=O({},i);r=$(r,"..."),n.maxIterations=$(i.maxIterations,2);var a=n.minChar=$(i.minChar,0),o=n.fontMeasureInfo=Ae(t),s=o.asciiCharWidth;n.placeholder=$(i.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=Le(o,r);return f>u&&(r="",f=0),u=e-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=e,n}function pp(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var o=Le(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?Z_(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=Le(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function Z_(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=Kd(r,e.charCodeAt(n));return n}function q_(e,t,r,i){var n=ql(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=zo(l),v=$(t.lineHeight,h),c=t.lineOverflow==="truncate",d=!1,y=t.width;y==null&&r!=null&&(y=r-s);var p=t.height;p==null&&i!=null&&(p=i-u);var g;y!=null&&(a==="break"||a==="breakAll")?g=n?gp(n,t.font,y,a==="breakAll",0).lines:[]:g=n?n.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as f,r as a}from"./index-
|
|
1
|
+
import{d as f,r as a}from"./index-Bl3DbLj3.js";import{a as r}from"./useApi-DkK919W_.js";const m=f("sessions",()=>{const o=a([]),l=a(0),i=a(null),e=a(!1),t=a(null);async function u(n){e.value=!0;try{const s=await r.getSessions(n);o.value=s.sessions,l.value=s.total}catch(s){t.value=s.message}finally{e.value=!1}}async function c(n){e.value=!0;try{i.value=await r.getSession(n)}catch(s){t.value=s.message}finally{e.value=!1}}return{sessions:o,total:l,detail:i,loading:e,error:t,fetchSessions:u,fetchSessionDetail:c}});export{m as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n="/api";async function s(t,e){const i={};e?.body&&(i["Content-Type"]="application/json");const a=await fetch(`${n}${t}`,{headers:i,...e});if(!a.ok)throw new Error(`API error: ${a.status}`);return a.json()}const o={getDashboard:()=>s("/dashboard"),getTimeline:(t=30)=>s(`/dashboard/timeline?days=${t}`),getDecisions:t=>{const e=new URLSearchParams(t).toString();return s(`/decisions?${e}`)},getDecision:t=>s(`/decisions/${t}`),updateDecision:(t,e)=>s(`/decisions/${t}`,{method:"PATCH",body:JSON.stringify(e)}),getSessions:t=>{const e=new URLSearchParams(t).toString();return s(`/sessions?${e}`)},getSession:t=>s(`/sessions/${t}`),getDatabaseInfo:()=>s("/settings/database"),vacuum:()=>s("/settings/vacuum",{method:"POST"}),rebuildFts:()=>s("/settings/rebuild-fts",{method:"POST"}),exportData:t=>s(`/export?format=${t}`),scanSessions:()=>s("/import/scan",{method:"POST"}),runImport:t=>s("/import/run",{method:"POST",body:JSON.stringify(t||{})}),getApiKeyStatus:()=>s("/settings/api-key"),saveApiKey:t=>s("/settings/api-key",{method:"PUT",body:JSON.stringify({apiKey:t})}),removeApiKey:()=>s("/settings/api-key",{method:"PUT",body:JSON.stringify({})}),getAnalyticsQuality:()=>s("/analytics/quality"),getAnalyticsPatterns:()=>s("/analytics/patterns"),getAnalyticsCodebase:()=>s("/analytics/codebase"),getAnalyticsCoach:()=>s("/analytics/coach",{method:"POST"}),getCoachLatest:()=>s("/analytics/coach/latest"),getCoachHistory:(t=20)=>s(`/analytics/coach/history?limit=${t}`),getTokenSavings:(t=30)=>s(`/analytics/token-savings?days=${t}`)};export{o as a};
|
package/dist/web-dist/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>Claude Code Memory</title>
|
|
7
7
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet" />
|
|
8
8
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet" />
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-Bl3DbLj3.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CoMkCnBk.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body class="bg-bg-dark text-slate-100 font-display antialiased">
|
|
13
13
|
<div id="app"></div>
|
package/package.json
CHANGED