@schemacast/mcp 0.0.0-stage → 0.5.1
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/LICENSE +21 -0
- package/README.md +76 -2
- package/dist/auto-visual-meta.d.ts +19 -0
- package/dist/auto-visual-meta.js +19 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +13 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +17 -0
- package/dist/package-version.d.ts +10 -0
- package/dist/package-version.js +18 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.js +136 -0
- package/dist/startup.d.ts +11 -0
- package/dist/startup.js +15 -0
- package/dist/ui/main.d.ts +2 -0
- package/dist/ui/main.js +113 -0
- package/dist/ui-resource.d.ts +19 -0
- package/dist/ui-resource.js +44 -0
- package/dist/ui.html +114 -0
- package/dist/visualize-report.d.ts +7 -0
- package/dist/visualize-report.js +6 -0
- package/dist/visualize-summary.d.ts +22 -0
- package/dist/visualize-summary.js +125 -0
- package/dist/with-auto-visual.d.ts +80 -0
- package/dist/with-auto-visual.js +106 -0
- package/package.json +53 -3
package/dist/ui.html
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data:; font-src data:; connect-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'">
|
|
7
|
+
<title>schemacast visualizer</title>
|
|
8
|
+
<style>
|
|
9
|
+
:root { color-scheme: light; background: #fff; }
|
|
10
|
+
:root[data-theme='dark'] { color-scheme: dark; background: #171d26; }
|
|
11
|
+
@media (prefers-color-scheme: dark) {
|
|
12
|
+
:root:not([data-theme]) { color-scheme: dark; background: #171d26; }
|
|
13
|
+
}
|
|
14
|
+
body { min-height: 100vh; margin: 0; }
|
|
15
|
+
#schemacast-app { min-height: 100vh; }
|
|
16
|
+
</style>
|
|
17
|
+
<style>.schemacast-auto-visual{--schemacast-background: #ffffff;--schemacast-foreground: #202a36;--schemacast-muted: #637083;--schemacast-border: #d7dee8;--schemacast-hover: #f0f4f8;--schemacast-active: #e8f0fb;--schemacast-accent: #2867b2;--schemacast-pie-color-1: #2867b2;--schemacast-pie-color-2: #c44e52;--schemacast-pie-color-3: #55a868;--schemacast-pie-color-4: #8172b3;--schemacast-pie-color-5: #cc8c2f;--schemacast-pie-color-6: #4c9f9a;--schemacast-pie-color-7: #b55d9e;--schemacast-pie-color-8: #7a7a4e;--schemacast-json-string: #0f766e;--schemacast-json-number: #1d4ed8;--schemacast-json-boolean: #6d28d9;--schemacast-json-null: #637083;box-sizing:border-box;color:var(--schemacast-foreground);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:.9375rem;line-height:1.5}.schemacast-view-switcher{display:flex;gap:.25rem;overflow-x:auto;border-bottom:1px solid var(--schemacast-border);margin:0 0 1rem;scrollbar-width:thin}.schemacast-view-switcher-tab{appearance:none;flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:.375rem .375rem 0 0;margin-bottom:-1px;padding:.625rem .875rem;background:transparent;color:var(--schemacast-muted);cursor:pointer;font:inherit;white-space:nowrap;transition:background-color .12s ease,border-color .12s ease,color .12s ease}.schemacast-view-switcher-tab:hover{background:var(--schemacast-hover);color:var(--schemacast-foreground)}.schemacast-view-switcher-tab[aria-selected=true]{border-bottom-color:var(--schemacast-accent);background:var(--schemacast-active);color:var(--schemacast-foreground);font-weight:600}.schemacast-view-switcher-tab:focus-visible,.schemacast-view-rationale-summary:focus-visible{outline:2px solid var(--schemacast-accent);outline-offset:2px}.schemacast-view-switcher-tab:focus:not(:focus-visible){outline:none}.schemacast-view-panel{min-width:0;border:1px solid var(--schemacast-border);border-radius:.75rem;padding:1.125rem;background:var(--schemacast-background)}.schemacast-auto-visual .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}.schemacast-view-panel-header{margin-bottom:1rem}.schemacast-view-rationale{color:var(--schemacast-muted);font-size:.8125rem}.schemacast-view-rationale-summary{width:fit-content;border-radius:.25rem;cursor:pointer;font-weight:500}.schemacast-view-rationale-summary:hover{color:var(--schemacast-foreground)}.schemacast-view-rationale-content{display:grid;gap:.25rem;margin-top:.5rem}.schemacast-view-rationale-item{display:flex;flex-wrap:wrap;gap:.25rem .625rem;margin:0}.schemacast-view-rationale-label{min-width:3.25rem;color:var(--schemacast-muted);font-weight:600}.schemacast-data-table-view{min-width:0}.schemacast-data-table-toolbar{display:flex;justify-content:flex-end;margin-bottom:.875rem}.schemacast-data-table-search{display:grid;width:min(100%,22rem);gap:.375rem;color:var(--schemacast-muted);font-size:.8125rem;font-weight:600}.schemacast-data-table-search-input{width:100%;border:1px solid var(--schemacast-border);border-radius:.5rem;padding:.625rem .75rem;background:var(--schemacast-background);color:var(--schemacast-foreground);font:inherit;font-weight:400}.schemacast-data-table-search-input::placeholder{color:var(--schemacast-muted)}.schemacast-data-table-search-input:focus-visible,.schemacast-data-table-sort-button:focus-visible,.schemacast-data-table-pagination-button:focus-visible{outline:2px solid var(--schemacast-accent);outline-offset:2px}.schemacast-data-table-scroll{width:100%;overflow-x:auto}.schemacast-data-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.schemacast-data-table-header{border-bottom:1px solid var(--schemacast-border);padding:.75rem .875rem;background:var(--schemacast-hover);text-align:left;white-space:nowrap}.schemacast-data-table-header--numeric{text-align:right}.schemacast-data-table-sort-button{display:inline-flex;align-items:center;gap:.375rem;border:0;border-radius:.25rem;padding:0;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:600}.schemacast-data-table-sort-button:hover{color:var(--schemacast-accent)}.schemacast-data-table-sort-indicator{color:var(--schemacast-accent);font-size:.875em}.schemacast-data-table-cell{border-bottom:1px solid var(--schemacast-border);padding:.75rem .875rem;vertical-align:middle}.schemacast-data-table-cell--numeric{text-align:right}.schemacast-data-table-row:hover .schemacast-data-table-cell{background:var(--schemacast-hover)}.schemacast-data-table-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.875rem;color:var(--schemacast-muted);font-size:.8125rem}.schemacast-data-table-pagination-controls{display:flex;gap:.5rem}.schemacast-data-table-pagination-button{border:1px solid var(--schemacast-border);border-radius:.375rem;padding:.375rem .625rem;background:var(--schemacast-background);color:var(--schemacast-foreground);cursor:pointer;font:inherit}.schemacast-data-table-pagination-button:hover:not(:disabled){background:var(--schemacast-hover)}.schemacast-data-table-pagination-button:disabled{cursor:not-allowed;opacity:.55}.schemacast-detail-card{display:grid;min-width:0;gap:.75rem;border:1px solid var(--schemacast-border);border-radius:.75rem;padding:1rem;background:var(--schemacast-background)}.schemacast-detail-card-header{display:grid;gap:.125rem;margin-bottom:.5rem}.schemacast-detail-card-header h3{margin:0;color:var(--schemacast-foreground);font-size:1.25rem;line-height:1.25;overflow-wrap:anywhere}.schemacast-detail-card-header p{margin:0;color:var(--schemacast-muted);font-size:.875rem;overflow-wrap:anywhere}.schemacast-detail-card-grid{display:grid;margin:0;padding:0}.schemacast-detail-card-row{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem;border-bottom:1px solid var(--schemacast-border);padding:.75rem 0}.schemacast-detail-card-row:last-child{border-bottom:0;padding-bottom:0}.schemacast-detail-card-label,.schemacast-detail-card-value{min-width:0;margin:0;overflow-wrap:anywhere;text-align:left;font-weight:400}.schemacast-detail-card-label{color:var(--schemacast-muted)}.schemacast-detail-card-value{color:var(--schemacast-foreground)}.schemacast-detail-card-badge{display:inline-flex;align-items:center;border:1px solid var(--schemacast-border);border-radius:999px;padding:.125rem .5rem;background:var(--schemacast-active);color:var(--schemacast-foreground);font-size:.8125rem}.schemacast-detail-card-image-value{display:inline-flex;min-width:0;align-items:center;gap:.625rem}.schemacast-detail-card-avatar{width:2.5rem;height:2.5rem;border:1px solid var(--schemacast-border);border-radius:50%;background:var(--schemacast-hover);object-fit:cover}.schemacast-detail-card-url-fallback{overflow-wrap:anywhere}.schemacast-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;margin:0;padding:0;list-style:none}.schemacast-kpi-card{display:grid;min-width:0;align-content:start;gap:.5rem;border:1px solid var(--schemacast-border);border-radius:.75rem;padding:1rem;background:var(--schemacast-background)}.schemacast-kpi-label{color:var(--schemacast-muted);font-size:.8125rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.schemacast-kpi-value{color:var(--schemacast-foreground);font-size:clamp(1.75rem,4vw,2.5rem);font-variant-numeric:tabular-nums;line-height:1.15;overflow-wrap:anywhere}.schemacast-timeline{display:grid;gap:0;margin:0;padding:0;list-style:none}.schemacast-timeline-item{position:relative;display:grid;grid-template-columns:1.25rem minmax(0,1fr);gap:.875rem;min-width:0;padding:.125rem 0 1.25rem}.schemacast-timeline-item:not(:last-child):before{position:absolute;top:.875rem;bottom:0;left:.5625rem;width:2px;background:var(--schemacast-border);content:""}.schemacast-timeline-marker{position:relative;z-index:1;grid-column:1;grid-row:1;justify-self:center;width:.75rem;height:.75rem;margin-top:.375rem;border:2px solid var(--schemacast-background);border-radius:50%;background:var(--schemacast-accent);box-shadow:0 0 0 1px var(--schemacast-accent)}.schemacast-timeline-content{display:grid;grid-column:2;grid-row:1;gap:.25rem;min-width:0}.schemacast-timeline-title{color:var(--schemacast-foreground);overflow-wrap:anywhere}.schemacast-timeline-date{color:var(--schemacast-muted);font-size:.8125rem;font-variant-numeric:tabular-nums}.schemacast-kanban-board{display:flex;align-items:flex-start;gap:1rem;overflow-x:auto;padding-bottom:.5rem}.schemacast-kanban-column{flex:0 0 min(20rem,85vw);min-width:0;border:1px solid var(--schemacast-border);border-radius:.75rem;padding:.875rem;background:var(--schemacast-hover)}.schemacast-kanban-column-header{border-bottom:1px solid var(--schemacast-border);padding-bottom:.75rem}.schemacast-kanban-column-header h4{margin:0;color:var(--schemacast-foreground);font-size:.9375rem}.schemacast-kanban-column-header span{color:var(--schemacast-muted);font-weight:500}.schemacast-kanban-card-list{display:grid;gap:.75rem;margin:.75rem 0 0;padding:0;list-style:none}.schemacast-kanban-card{display:grid;gap:.375rem;border:1px solid var(--schemacast-border);border-radius:.5rem;padding:.75rem;background:var(--schemacast-background);color:var(--schemacast-foreground);overflow-wrap:anywhere}.schemacast-kanban-card span{font-weight:600}.schemacast-kanban-card small{color:var(--schemacast-muted)}.schemacast-json-tree{min-width:0;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.875rem}.schemacast-json-tree-search{display:grid;width:min(100%,22rem);gap:.375rem;margin-bottom:1rem;color:var(--schemacast-muted);font-family:inherit;font-size:.8125rem;font-weight:600}.schemacast-json-tree-search-input{width:100%;border:1px solid var(--schemacast-border);border-radius:.5rem;padding:.625rem .75rem;background:var(--schemacast-background);color:var(--schemacast-foreground);font:inherit;font-weight:400}.schemacast-json-tree-search-input:focus-visible,.schemacast-json-tree-toggle:focus-visible{outline:2px solid var(--schemacast-accent);outline-offset:2px}.schemacast-json-tree-section{margin-top:1rem}.schemacast-json-tree-section-title{margin:0 0 .5rem;color:var(--schemacast-muted);font-family:inherit;font-size:.8125rem;font-weight:600}.schemacast-json-tree-line{display:flex;min-height:1.625rem;align-items:baseline;gap:.375rem;white-space:pre}.schemacast-json-tree-toggle{display:inline-flex;align-items:baseline;gap:.375rem;border:0;border-radius:.25rem;padding:0;background:transparent;color:var(--schemacast-foreground);cursor:pointer;font:inherit;text-align:left}.schemacast-json-tree-toggle:hover{color:var(--schemacast-accent)}.schemacast-json-tree-arrow{width:1em;color:var(--schemacast-muted);text-align:center}.schemacast-json-tree-key,.schemacast-json-tree-bracket,.schemacast-json-tree-closing-bracket{color:var(--schemacast-foreground)}.schemacast-json-tree-value--string{color:var(--schemacast-json-string)}.schemacast-json-tree-value--number{color:var(--schemacast-json-number)}.schemacast-json-tree-value--boolean{color:var(--schemacast-json-boolean)}.schemacast-json-tree-value--null,.schemacast-json-tree-value--other{color:var(--schemacast-json-null)}@media(prefers-color-scheme:dark){:root:not([data-theme]) .schemacast-auto-visual{--schemacast-background: #171d26;--schemacast-foreground: #e7edf5;--schemacast-muted: #a0adbd;--schemacast-border: #394555;--schemacast-hover: #252f3c;--schemacast-active: #263b55;--schemacast-accent: #82b8ff;--schemacast-pie-color-1: #82b8ff;--schemacast-pie-color-2: #ff8a80;--schemacast-pie-color-3: #8fd6a6;--schemacast-pie-color-4: #c1a8ff;--schemacast-pie-color-5: #ffc66d;--schemacast-pie-color-6: #73d6cf;--schemacast-pie-color-7: #f3a5d9;--schemacast-pie-color-8: #c7c78a;--schemacast-json-string: #5eead4;--schemacast-json-number: #93c5fd;--schemacast-json-boolean: #c4b5fd;--schemacast-json-null: #a0adbd}}:root[data-theme=dark] .schemacast-auto-visual,.schemacast-auto-visual[data-theme=dark]{--schemacast-background: #171d26;--schemacast-foreground: #e7edf5;--schemacast-muted: #a0adbd;--schemacast-border: #394555;--schemacast-hover: #252f3c;--schemacast-active: #263b55;--schemacast-accent: #82b8ff;--schemacast-pie-color-1: #82b8ff;--schemacast-pie-color-2: #ff8a80;--schemacast-pie-color-3: #8fd6a6;--schemacast-pie-color-4: #c1a8ff;--schemacast-pie-color-5: #ffc66d;--schemacast-pie-color-6: #73d6cf;--schemacast-pie-color-7: #f3a5d9;--schemacast-pie-color-8: #c7c78a;--schemacast-json-string: #5eead4;--schemacast-json-number: #93c5fd;--schemacast-json-boolean: #c4b5fd;--schemacast-json-null: #a0adbd}@media(prefers-reduced-motion:reduce){.schemacast-view-switcher-tab{transition:none}}
|
|
18
|
+
</style>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<main id="schemacast-app"></main>
|
|
22
|
+
<script>"use strict";(()=>{var vne=Object.create;var BA=Object.defineProperty;var gne=Object.getOwnPropertyDescriptor;var yne=Object.getOwnPropertyNames;var _ne=Object.getPrototypeOf,bne=Object.prototype.hasOwnProperty;var $u=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var no=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bn=(e,t)=>{for(var r in t)BA(e,r,{get:t[r],enumerable:!0})},xne=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yne(t))!bne.call(e,i)&&i!==r&&BA(e,i,{get:()=>t[i],enumerable:!(n=gne(t,i))||n.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?vne(_ne(e)):{},xne(t||!e||!e.__esModule?BA(r,"default",{value:e,enumerable:!0}):r,e));function M(e,t,r){function n(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=o.prototype,c=Object.keys(u);for(let f=0;f<c.length;f++){let d=c[f];d in s||(s[d]=u[d].bind(s))}}let i=r?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(s){var l;let u=r?.Parent?new a:this;n(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(o,"init",{value:n}),Object.defineProperty(o,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function jt(e){return e&&Object.assign(Nh,e),Nh}var Oh,vd,Ca,nl,Nh,gd=w(()=>{Oh=Object.freeze({status:"aborted"});vd=Symbol("zod_brand"),Ca=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},nl=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Nh={}});var Y={};bn(Y,{BIGINT_FORMAT_RANGES:()=>aC,Class:()=>WA,NUMBER_FORMAT_RANGES:()=>iC,aborted:()=>ll,allowsEval:()=>eC,assert:()=>Qne,assertEqual:()=>Xne,assertIs:()=>Wne,assertNever:()=>Jne,assertNotEqual:()=>Kne,assignProp:()=>al,base64ToUint8Array:()=>r4,base64urlToUint8Array:()=>vie,cached:()=>_d,captureStackTrace:()=>l0,cleanEnum:()=>hie,cleanRegex:()=>Ih,clone:()=>Cr,cloneDef:()=>tie,createTransparentProxy:()=>sie,defineLazy:()=>Ze,esc:()=>s0,escapeRegex:()=>Hi,extend:()=>cie,finalizeIssue:()=>Zn,floatSafeRemainder:()=>JA,getElementAtPath:()=>rie,getEnumValues:()=>Mh,getLengthableOrigin:()=>Ph,getParsedType:()=>oie,getSizableOrigin:()=>Lh,hexToUint8Array:()=>yie,isObject:()=>Vu,isPlainObject:()=>sl,issue:()=>bd,joinValues:()=>U,jsonStringifyReplacer:()=>yd,merge:()=>die,mergeDefs:()=>ol,normalizeParams:()=>W,nullish:()=>il,numKeys:()=>aie,objectClone:()=>eie,omit:()=>uie,optionalKeys:()=>nC,partial:()=>pie,pick:()=>lie,prefixIssues:()=>mi,primitiveTypes:()=>rC,promiseAllObject:()=>nie,propertyKeyTypes:()=>Rh,randomString:()=>iie,required:()=>mie,safeExtend:()=>fie,shallowClone:()=>tC,slugify:()=>QA,stringifyPrimitive:()=>X,uint8ArrayToBase64:()=>n4,uint8ArrayToBase64url:()=>gie,uint8ArrayToHex:()=>_ie,unwrapMessage:()=>kh});function Xne(e){return e}function Kne(e){return e}function Wne(e){}function Jne(e){throw new Error("Unexpected value in exhaustive check")}function Qne(e){}function Mh(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}function U(e,t="|"){return e.map(r=>X(r)).join(t)}function yd(e,t){return typeof t=="bigint"?t.toString():t}function _d(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function il(e){return e==null}function Ih(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function JA(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(n)){let l=n.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}let a=r>i?r:i,o=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return o%s/10**a}function Ze(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==t4)return n===void 0&&(n=t4,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function eie(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function al(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function ol(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function tie(e){return ol(e._zod.def)}function rie(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function nie(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let i={};for(let a=0;a<t.length;a++)i[t[a]]=n[a];return i})}function iie(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function s0(e){return JSON.stringify(e)}function QA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Vu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function sl(e){if(Vu(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Vu(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function tC(e){return sl(e)?{...e}:Array.isArray(e)?[...e]:e}function aie(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}function Hi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Cr(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function W(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function sie(e){let t;return new Proxy({},{get(r,n,i){return t??(t=e()),Reflect.get(t,n,i)},set(r,n,i,a){return t??(t=e()),Reflect.set(t,n,i,a)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,i){return t??(t=e()),Reflect.defineProperty(t,n,i)}})}function X(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function nC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function lie(e,t){let r=e._zod.def,n=ol(e._zod.def,{get shape(){let i={};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=r.shape[a])}return al(this,"shape",i),i},checks:[]});return Cr(e,n)}function uie(e,t){let r=e._zod.def,n=ol(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return al(this,"shape",i),i},checks:[]});return Cr(e,n)}function cie(e,t){if(!sl(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let i=ol(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return al(this,"shape",a),a},checks:[]});return Cr(e,i)}function fie(e,t){if(!sl(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let n={...e._zod.def.shape,...t};return al(this,"shape",n),n},checks:e._zod.def.checks};return Cr(e,r)}function die(e,t){let r=ol(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return al(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Cr(e,r)}function pie(e,t,r){let n=ol(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(let o in i)a[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return al(this,"shape",a),a},checks:[]});return Cr(t,n)}function mie(e,t,r){let n=ol(t._zod.def,{get shape(){let i=t._zod.def.shape,a={...i};if(r)for(let o in r){if(!(o in a))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(a[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(let o in i)a[o]=new e({type:"nonoptional",innerType:i[o]});return al(this,"shape",a),a},checks:[]});return Cr(t,n)}function ll(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function mi(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function kh(e){return typeof e=="string"?e:e?.message}function Zn(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=kh(e.inst?._zod.def?.error?.(e))??kh(t?.error?.(e))??kh(r.customError?.(e))??kh(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Lh(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ph(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bd(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function hie(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function r4(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function n4(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function vie(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return r4(t+r)}function gie(e){return n4(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function yie(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function _ie(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var t4,l0,eC,oie,Rh,rC,iC,aC,WA,he=w(()=>{t4=Symbol("evaluating");l0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};eC=_d(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});oie=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Rh=new Set(["string","number","symbol"]),rC=new Set(["string","number","bigint","boolean","symbol","undefined"]);iC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},aC={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};WA=class{constructor(...t){}}});function Bu(e,t=r=>r.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function Zu(e,t=r=>r.message){let r={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>n({issues:o}));else if(a.code==="invalid_key")n({issues:a.issues});else if(a.code==="invalid_element")n({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let o=r,s=0;for(;s<a.path.length;){let l=a.path[s];s===a.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(t(a))):o[l]=o[l]||{_errors:[]},o=o[l],s++}}};return n(e),r}function Uh(e,t=r=>r.message){let r={errors:[]},n=(i,a=[])=>{var o,s;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>n({issues:u},l.path));else if(l.code==="invalid_key")n({issues:l.issues},l.path);else if(l.code==="invalid_element")n({issues:l.issues},l.path);else{let u=[...a,...l.path];if(u.length===0){r.errors.push(t(l));continue}let c=r,f=0;for(;f<u.length;){let d=u[f],p=f===u.length-1;typeof d=="string"?(c.properties??(c.properties={}),(o=c.properties)[d]??(o[d]={errors:[]}),c=c.properties[d]):(c.items??(c.items=[]),(s=c.items)[d]??(s[d]={errors:[]}),c=c.items[d]),p&&c.errors.push(t(l)),f++}}};return n(e),r}function a4(e){let t=[],r=e.map(n=>typeof n=="object"?n.key:n);for(let n of r)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function jh(e){let t=[],r=[...e.issues].sort((n,i)=>(n.path??[]).length-(i.path??[]).length);for(let n of r)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${a4(n.path)}`);return t.join(`
|
|
23
|
+
`)}var i4,$h,Hn,oC=w(()=>{gd();he();i4=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yd,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$h=M("$ZodError",i4),Hn=M("$ZodError",i4,{Parent:Error})});var xd,Sd,Td,wd,Ed,Hu,zd,Ad,u0,o4,c0,s4,f0,l4,d0,u4,p0,c4,m0,f4,h0,d4,v0,p4,sC=w(()=>{gd();oC();he();xd=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Ca;if(o.issues.length){let s=new(i?.Err??e)(o.issues.map(l=>Zn(l,a,jt())));throw l0(s,i?.callee),s}return o.value},Sd=xd(Hn),Td=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let s=new(i?.Err??e)(o.issues.map(l=>Zn(l,a,jt())));throw l0(s,i?.callee),s}return o.value},wd=Td(Hn),Ed=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Ca;return a.issues.length?{success:!1,error:new(e??$h)(a.issues.map(o=>Zn(o,i,jt())))}:{success:!0,data:a.value}},Hu=Ed(Hn),zd=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(o=>Zn(o,i,jt())))}:{success:!0,data:a.value}},Ad=zd(Hn),u0=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return xd(e)(t,r,i)},o4=u0(Hn),c0=e=>(t,r,n)=>xd(e)(t,r,n),s4=c0(Hn),f0=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Td(e)(t,r,i)},l4=f0(Hn),d0=e=>async(t,r,n)=>Td(e)(t,r,n),u4=d0(Hn),p0=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ed(e)(t,r,i)},c4=p0(Hn),m0=e=>(t,r,n)=>Ed(e)(t,r,n),f4=m0(Hn),h0=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zd(e)(t,r,i)},d4=h0(Hn),v0=e=>async(t,r,n)=>zd(e)(t,r,n),p4=v0(Hn)});var Sn={};bn(Sn,{base64:()=>TC,base64url:()=>g0,bigint:()=>DC,boolean:()=>kC,browserEmail:()=>Cie,cidrv4:()=>xC,cidrv6:()=>SC,cuid:()=>lC,cuid2:()=>uC,date:()=>EC,datetime:()=>AC,domain:()=>Oie,duration:()=>mC,e164:()=>wC,email:()=>vC,emoji:()=>gC,extendedDuration:()=>xie,guid:()=>hC,hex:()=>kie,hostname:()=>Nie,html5Email:()=>Eie,idnEmail:()=>Aie,integer:()=>NC,ipv4:()=>yC,ipv6:()=>_C,ksuid:()=>dC,lowercase:()=>RC,mac:()=>bC,md5_base64:()=>Iie,md5_base64url:()=>Rie,md5_hex:()=>Mie,nanoid:()=>pC,null:()=>MC,number:()=>OC,rfc5322Email:()=>zie,sha1_base64:()=>Pie,sha1_base64url:()=>$ie,sha1_hex:()=>Lie,sha256_base64:()=>jie,sha256_base64url:()=>Vie,sha256_hex:()=>Uie,sha384_base64:()=>Zie,sha384_base64url:()=>Hie,sha384_hex:()=>Bie,sha512_base64:()=>Gie,sha512_base64url:()=>qie,sha512_hex:()=>Fie,string:()=>CC,time:()=>zC,ulid:()=>cC,undefined:()=>IC,unicodeEmail:()=>m4,uppercase:()=>LC,uuid:()=>Fu,uuid4:()=>Sie,uuid6:()=>Tie,uuid7:()=>wie,xid:()=>fC});function gC(){return new RegExp(Die,"u")}function v4(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function zC(e){return new RegExp(`^${v4(e)}$`)}function AC(e){let t=v4({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${h4}T(?:${n})$`)}function Vh(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Bh(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var lC,uC,cC,fC,dC,pC,mC,xie,hC,Fu,Sie,Tie,wie,vC,Eie,zie,m4,Aie,Cie,Die,yC,_C,bC,xC,SC,TC,g0,Nie,Oie,wC,h4,EC,CC,DC,NC,OC,kC,MC,IC,RC,LC,kie,Mie,Iie,Rie,Lie,Pie,$ie,Uie,jie,Vie,Bie,Zie,Hie,Fie,Gie,qie,y0=w(()=>{he();lC=/^[cC][^\s-]{8,}$/,uC=/^[0-9a-z]+$/,cC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,fC=/^[0-9a-vA-V]{20}$/,dC=/^[A-Za-z0-9]{27}$/,pC=/^[a-zA-Z0-9_-]{21}$/,mC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xie=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Fu=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Sie=Fu(4),Tie=Fu(6),wie=Fu(7),vC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Eie=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zie=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,m4=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Aie=m4,Cie=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Die="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";yC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_C=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,bC=e=>{let t=Hi(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},xC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,SC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,TC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,g0=/^[A-Za-z0-9_-]*$/,Nie=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Oie=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,wC=/^\+(?:[0-9]){6,14}[0-9]$/,h4="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",EC=new RegExp(`^${h4}$`);CC=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},DC=/^-?\d+n?$/,NC=/^-?\d+$/,OC=/^-?\d+(?:\.\d+)?/,kC=/^(?:true|false)$/i,MC=/^null$/i,IC=/^undefined$/i,RC=/^[^A-Z]*$/,LC=/^[^a-z]*$/,kie=/^[0-9a-fA-F]*$/;Mie=/^[0-9a-fA-F]{32}$/,Iie=Vh(22,"=="),Rie=Bh(22),Lie=/^[0-9a-fA-F]{40}$/,Pie=Vh(27,"="),$ie=Bh(27),Uie=/^[0-9a-fA-F]{64}$/,jie=Vh(43,"="),Vie=Bh(43),Bie=/^[0-9a-fA-F]{96}$/,Zie=Vh(64,""),Hie=Bh(64),Fie=/^[0-9a-fA-F]{128}$/,Gie=Vh(86,"=="),qie=Bh(86)});function g4(e,t,r){e.issues.length&&t.issues.push(...mi(r,e.issues))}var wt,y4,_0,b0,PC,$C,UC,jC,VC,BC,ZC,HC,FC,Cd,GC,qC,YC,XC,KC,WC,JC,QC,eD,x0=w(()=>{gd();y0();he();wt=M("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),y4={number:"number",bigint:"bigint",object:"date"},_0=M("$ZodCheckLessThan",(e,t)=>{wt.init(e,t);let r=y4[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),b0=M("$ZodCheckGreaterThan",(e,t)=>{wt.init(e,t);let r=y4[typeof t.value];e._zod.onattach.push(n=>{let i=n._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),PC=M("$ZodCheckMultipleOf",(e,t)=>{wt.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):JA(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),$C=M("$ZodCheckNumberFormat",(e,t)=>{wt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=iC[t.format];e._zod.onattach.push(o=>{let s=o._zod.bag;s.format=t.format,s.minimum=i,s.maximum=a,r&&(s.pattern=NC)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s)){o.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort});return}}s<i&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),UC=M("$ZodCheckBigIntFormat",(e,t)=>{wt.init(e,t);let[r,n]=aC[t.format];e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,a.minimum=r,a.maximum=n}),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inst:e})}}),jC=M("$ZodCheckMaxSize",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;i.size<=t.maximum||n.issues.push({origin:Lh(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),VC=M("$ZodCheckMinSize",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;i.size>=t.minimum||n.issues.push({origin:Lh(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),BC=M("$ZodCheckSizeEquals",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.size!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=n=>{let i=n.value,a=i.size;if(a===t.size)return;let o=a>t.size;n.issues.push({origin:Lh(i),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ZC=M("$ZodCheckMaxLength",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let i=n.value;if(i.length<=t.maximum)return;let o=Ph(i);n.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),HC=M("$ZodCheckMinLength",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let o=Ph(i);n.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),FC=M("$ZodCheckLengthEquals",(e,t)=>{var r;wt.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!il(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=n=>{let i=n.value,a=i.length;if(a===t.length)return;let o=Ph(i),s=a>t.length;n.issues.push({origin:o,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Cd=M("$ZodCheckStringFormat",(e,t)=>{var r,n;wt.init(e,t),e._zod.onattach.push(i=>{let a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),GC=M("$ZodCheckRegex",(e,t)=>{Cd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qC=M("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=RC),Cd.init(e,t)}),YC=M("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=LC),Cd.init(e,t)}),XC=M("$ZodCheckIncludes",(e,t)=>{wt.init(e,t);let r=Hi(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(i=>{let a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),KC=M("$ZodCheckStartsWith",(e,t)=>{wt.init(e,t);let r=new RegExp(`^${Hi(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),WC=M("$ZodCheckEndsWith",(e,t)=>{wt.init(e,t);let r=new RegExp(`.*${Hi(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});JC=M("$ZodCheckProperty",(e,t)=>{wt.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(i=>g4(i,r,t.property));g4(n,r,t.property)}}),QC=M("$ZodCheckMimeType",(e,t)=>{wt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),eD=M("$ZodCheckOverwrite",(e,t)=>{wt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}})});var Zh,tD=w(()=>{Zh=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
|
|
24
|
+
`).filter(o=>o),i=Math.min(...n.map(o=>o.length-o.trimStart().length)),a=n.map(o=>o.slice(i)).map(o=>" ".repeat(this.indent*2)+o);for(let o of a)this.content.push(o)}compile(){let t=Function,r=this?.args,i=[...(this?.content??[""]).map(a=>` ${a}`)];return new t(...r,i.join(`
|
|
25
|
+
`))}}});var rD,nD=w(()=>{rD={major:4,minor:2,patch:0}});function aD(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function O4(e){if(!g0.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return aD(r)}function k4(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}function b4(e,t,r){e.issues.length&&t.issues.push(...mi(r,e.issues)),t.value[r]=e.value}function z0(e,t,r,n){e.issues.length&&t.issues.push(...mi(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function M4(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=nC(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function I4(e,t,r,n,i,a){let o=[],s=i.keySet,l=i.catchall._zod,u=l.def.type;for(let c in t){if(s.has(c))continue;if(u==="never"){o.push(c);continue}let f=l.run({value:t[c],issues:[]},n);f instanceof Promise?e.push(f.then(d=>z0(d,r,c,t))):z0(f,r,c,t)}return o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}function x4(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let i=e.filter(a=>!ll(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>Zn(o,n,jt())))}),t)}function S4(e,t,r,n){let i=e.filter(a=>a.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(o=>Zn(o,n,jt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}function iD(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(sl(e)&&sl(t)){let r=Object.keys(t),n=Object.keys(e).filter(a=>r.indexOf(a)!==-1),i={...e,...t};for(let a of n){let o=iD(e[a],t[a]);if(!o.valid)return{valid:!1,mergeErrorPath:[a,...o.mergeErrorPath]};i[a]=o.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let i=e[n],a=t[n],o=iD(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};r.push(o.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function T4(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ll(e))return e;let n=iD(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}function S0(e,t,r){e.issues.length&&t.issues.push(...mi(r,e.issues)),t.value[r]=e.value}function w4(e,t,r,n,i,a,o){e.issues.length&&(Rh.has(typeof n)?r.issues.push(...mi(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(s=>Zn(s,o,jt()))})),t.issues.length&&(Rh.has(typeof n)?r.issues.push(...mi(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(s=>Zn(s,o,jt()))})),r.value.set(e.value,t.value)}function E4(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function z4(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}function A4(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function C4(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function T0(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}function w0(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let i=t.transform(e.value,e);return i instanceof Promise?i.then(a=>E0(e,a,t.out,r)):E0(e,i,t.out,r)}else{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(a=>E0(e,a,t.in,r)):E0(e,i,t.in,r)}}function E0(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}function D4(e){return e.value=Object.freeze(e.value),e}function N4(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push(bd(i))}}var Ce,ul,vt,A0,C0,D0,N0,O0,k0,M0,I0,R0,L0,P0,$0,U0,j0,V0,B0,Z0,H0,F0,G0,q0,Y0,X0,K0,W0,Hh,J0,Dd,Fh,Q0,eb,tb,rb,nb,ib,ab,ob,sb,lb,oD,sD,Nd,ub,cb,fb,Gh,db,pb,mb,hb,vb,gb,yb,_b,bb,xb,Sb,Tb,wb,Eb,zb,Ab,Od,Cb,Db,Nb,Ob,kb,Mb,lD=w(()=>{x0();gd();tD();sC();y0();he();nD();he();Ce=M("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rD;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let a of i._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(o,s,l)=>{let u=ll(o),c;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(o))continue}else if(u)continue;let d=o.issues.length,p=f._zod.check(o);if(p instanceof Promise&&l?.async===!1)throw new Ca;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,o.issues.length!==d&&(u||(u=ll(o,d)))});else{if(o.issues.length===d)continue;u||(u=ll(o,d))}}return c?c.then(()=>o):o},a=(o,s,l)=>{if(ll(o))return o.aborted=!0,o;let u=i(s,n,l);if(u instanceof Promise){if(l.async===!1)throw new Ca;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(o,s)=>{if(s.skipChecks)return e._zod.parse(o,s);if(s.direction==="backward"){let u=e._zod.parse({value:o.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>a(c,o,s)):a(u,o,s)}let l=e._zod.parse(o,s);if(l instanceof Promise){if(s.async===!1)throw new Ca;return l.then(u=>i(u,n,s))}return i(l,n,s)}}e["~standard"]={validate:i=>{try{let a=Hu(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Ad(e,i).then(o=>o.success?{value:o.data}:{issues:o.error?.issues})}},vendor:"zod",version:1}}),ul=M("$ZodString",(e,t)=>{Ce.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??CC(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),vt=M("$ZodStringFormat",(e,t)=>{Cd.init(e,t),ul.init(e,t)}),A0=M("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hC),vt.init(e,t)}),C0=M("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Fu(n))}else t.pattern??(t.pattern=Fu());vt.init(e,t)}),D0=M("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vC),vt.init(e,t)}),N0=M("$ZodURL",(e,t)=>{vt.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),O0=M("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=gC()),vt.init(e,t)}),k0=M("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=pC),vt.init(e,t)}),M0=M("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=lC),vt.init(e,t)}),I0=M("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=uC),vt.init(e,t)}),R0=M("$ZodULID",(e,t)=>{t.pattern??(t.pattern=cC),vt.init(e,t)}),L0=M("$ZodXID",(e,t)=>{t.pattern??(t.pattern=fC),vt.init(e,t)}),P0=M("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=dC),vt.init(e,t)}),$0=M("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=AC(t)),vt.init(e,t)}),U0=M("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=EC),vt.init(e,t)}),j0=M("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=zC(t)),vt.init(e,t)}),V0=M("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=mC),vt.init(e,t)}),B0=M("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=yC),vt.init(e,t),e._zod.bag.format="ipv4"}),Z0=M("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_C),vt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),H0=M("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=bC(t.delimiter)),vt.init(e,t),e._zod.bag.format="mac"}),F0=M("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xC),vt.init(e,t)}),G0=M("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=SC),vt.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[i,a]=n;if(!a)throw new Error;let o=Number(a);if(`${o}`!==a)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});q0=M("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=TC),vt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{aD(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});Y0=M("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=g0),vt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{O4(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),X0=M("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wC),vt.init(e,t)});K0=M("$ZodJWT",(e,t)=>{vt.init(e,t),e._zod.check=r=>{k4(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),W0=M("$ZodCustomStringFormat",(e,t)=>{vt.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Hh=M("$ZodNumber",(e,t)=>{Ce.init(e,t),e._zod.pattern=e._zod.bag.pattern??OC,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),J0=M("$ZodNumberFormat",(e,t)=>{$C.init(e,t),Hh.init(e,t)}),Dd=M("$ZodBoolean",(e,t)=>{Ce.init(e,t),e._zod.pattern=kC,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Fh=M("$ZodBigInt",(e,t)=>{Ce.init(e,t),e._zod.pattern=DC,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Q0=M("$ZodBigIntFormat",(e,t)=>{UC.init(e,t),Fh.init(e,t)}),eb=M("$ZodSymbol",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),r}}),tb=M("$ZodUndefined",(e,t)=>{Ce.init(e,t),e._zod.pattern=IC,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),r}}),rb=M("$ZodNull",(e,t)=>{Ce.init(e,t),e._zod.pattern=MC,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let i=r.value;return i===null||r.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),r}}),nb=M("$ZodAny",(e,t)=>{Ce.init(e,t),e._zod.parse=r=>r}),ib=M("$ZodUnknown",(e,t)=>{Ce.init(e,t),e._zod.parse=r=>r}),ab=M("$ZodNever",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),ob=M("$ZodVoid",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),sb=M("$ZodDate",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}});lb=M("$ZodArray",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let o=0;o<i.length;o++){let s=i[o],l=t.element._zod.run({value:s,issues:[]},n);l instanceof Promise?a.push(l.then(u=>b4(u,r,o))):b4(l,r,o)}return a.length?Promise.all(a).then(()=>r):r}});oD=M("$ZodObject",(e,t)=>{if(Ce.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let n=_d(()=>M4(t));Ze(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let f of c.values)l[u].add(f)}}return l});let i=Vu,a=t.catchall,o;e._zod.parse=(s,l)=>{o??(o=n.value);let u=s.value;if(!i(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],f=o.shape;for(let d of o.keys){let m=f[d]._zod.run({value:u[d],issues:[]},l);m instanceof Promise?c.push(m.then(h=>z0(h,s,d,u))):z0(m,s,d,u)}return a?I4(c,u,s,l,n.value,e):c.length?Promise.all(c).then(()=>s):s}}),sD=M("$ZodObjectJIT",(e,t)=>{oD.init(e,t);let r=e._zod.parse,n=_d(()=>M4(t)),i=d=>{let p=new Zh(["shape","payload","ctx"]),m=n.value,h=_=>{let b=s0(_);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};p.write("const input = payload.value;");let y=Object.create(null),v=0;for(let _ of m.keys)y[_]=`key_${v++}`;p.write("const newResult = {};");for(let _ of m.keys){let b=y[_],x=s0(_);p.write(`const ${b} = ${h(_)};`),p.write(`
|
|
26
|
+
if (${b}.issues.length) {
|
|
27
|
+
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
28
|
+
...iss,
|
|
29
|
+
path: iss.path ? [${x}, ...iss.path] : [${x}]
|
|
30
|
+
})));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
if (${b}.value === undefined) {
|
|
35
|
+
if (${x} in input) {
|
|
36
|
+
newResult[${x}] = undefined;
|
|
37
|
+
}
|
|
38
|
+
} else {
|
|
39
|
+
newResult[${x}] = ${b}.value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
`)}p.write("payload.value = newResult;"),p.write("return payload;");let g=p.compile();return(_,b)=>g(d,_,b)},a,o=Vu,s=!Nh.jitless,u=s&&eC.value,c=t.catchall,f;e._zod.parse=(d,p)=>{f??(f=n.value);let m=d.value;return o(m)?s&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=i(t.shape)),d=a(d,p),c?I4([],m,d,p,f,e):d):r(d,p):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});Nd=M("$ZodUnion",(e,t)=>{Ce.init(e,t),Ze(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Ze(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Ze(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Ze(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${i.map(a=>Ih(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=!1,s=[];for(let l of t.options){let u=l._zod.run({value:i.value,issues:[]},a);if(u instanceof Promise)s.push(u),o=!0;else{if(u.issues.length===0)return u;s.push(u)}}return o?Promise.all(s).then(l=>x4(l,i,e,a)):x4(s,i,e,a)}});ub=M("$ZodXor",(e,t)=>{Nd.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let o=!1,s=[];for(let l of t.options){let u=l._zod.run({value:i.value,issues:[]},a);u instanceof Promise?(s.push(u),o=!0):s.push(u)}return o?Promise.all(s).then(l=>S4(l,i,e,a)):S4(s,i,e,a)}}),cb=M("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Nd.init(e,t);let r=e._zod.parse;Ze(e._zod,"propValues",()=>{let i={};for(let a of t.options){let o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[s,l]of Object.entries(o)){i[s]||(i[s]=new Set);for(let u of l)i[s].add(u)}}return i});let n=_d(()=>{let i=t.options,a=new Map;for(let o of i){let s=o._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,o)}}return a});e._zod.parse=(i,a)=>{let o=i.value;if(!Vu(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),i;let s=n.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),fb=M("$ZodIntersection",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value,a=t.left._zod.run({value:i,issues:[]},n),o=t.right._zod.run({value:i,issues:[]},n);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([l,u])=>T4(r,l,u)):T4(r,a,o)}});Gh=M("$ZodTuple",(e,t)=>{Ce.init(e,t);let r=t.items;e._zod.parse=(n,i)=>{let a=n.value;if(!Array.isArray(a))return n.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let o=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=a.length>r.length,f=a.length<l-1;if(c||f)return n.issues.push({...c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),n}let u=-1;for(let c of r){if(u++,u>=a.length&&u>=l)continue;let f=c._zod.run({value:a[u],issues:[]},i);f instanceof Promise?o.push(f.then(d=>S0(d,n,u))):S0(f,n,u)}if(t.rest){let c=a.slice(r.length);for(let f of c){u++;let d=t.rest._zod.run({value:f,issues:[]},i);d instanceof Promise?o.push(d.then(p=>S0(p,n,u))):S0(d,n,u)}}return o.length?Promise.all(o).then(()=>n):n}});db=M("$ZodRecord",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!sl(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){r.value={};let s=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:i[u],issues:[]},n);c instanceof Promise?a.push(c.then(f=>{f.issues.length&&r.issues.push(...mi(u,f.issues)),r.value[u]=f.value})):(c.issues.length&&r.issues.push(...mi(u,c.issues)),r.value[u]=c.value)}let l;for(let u in i)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(i)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){t.mode==="loose"?r.value[s]=i[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(c=>Zn(c,n,jt())),input:s,path:[s],inst:e});continue}let u=t.valueType._zod.run({value:i[s],issues:[]},n);u instanceof Promise?a.push(u.then(c=>{c.issues.length&&r.issues.push(...mi(s,c.issues)),r.value[l.value]=c.value})):(u.issues.length&&r.issues.push(...mi(s,u.issues)),r.value[l.value]=u.value)}}return a.length?Promise.all(a).then(()=>r):r}}),pb=M("$ZodMap",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];r.value=new Map;for(let[o,s]of i){let l=t.keyType._zod.run({value:o,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([c,f])=>{w4(c,f,r,o,i,e,n)})):w4(l,u,r,o,i,e,n)}return a.length?Promise.all(a).then(()=>r):r}});mb=M("$ZodSet",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];r.value=new Set;for(let o of i){let s=t.valueType._zod.run({value:o,issues:[]},n);s instanceof Promise?a.push(s.then(l=>E4(l,r))):E4(s,r)}return a.length?Promise.all(a).then(()=>r):r}});hb=M("$ZodEnum",(e,t)=>{Ce.init(e,t);let r=Mh(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>Rh.has(typeof i)).map(i=>typeof i=="string"?Hi(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i}}),vb=M("$ZodLiteral",(e,t)=>{if(Ce.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Hi(n):n?Hi(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}}),gb=M("$ZodFile",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return i instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),r}}),yb=M("$ZodTransform",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new nl(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(r.value=o,r));if(i instanceof Promise)throw new Ca;return r.value=i,r}});_b=M("$ZodOptional",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ze(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ih(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>z4(a,r.value)):z4(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),bb=M("$ZodNullable",(e,t)=>{Ce.init(e,t),Ze(e._zod,"optin",()=>t.innerType._zod.optin),Ze(e._zod,"optout",()=>t.innerType._zod.optout),Ze(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ih(r.source)}|null)$`):void 0}),Ze(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),xb=M("$ZodDefault",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>A4(a,t)):A4(i,t)}});Sb=M("$ZodPrefault",(e,t)=>{Ce.init(e,t),e._zod.optin="optional",Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),Tb=M("$ZodNonOptional",(e,t)=>{Ce.init(e,t),Ze(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>C4(a,e)):C4(i,e)}});wb=M("$ZodSuccess",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new nl("ZodSuccess");let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.issues.length===0,r)):(r.value=i.issues.length===0,r)}}),Eb=M("$ZodCatch",(e,t)=>{Ce.init(e,t),Ze(e._zod,"optin",()=>t.innerType._zod.optin),Ze(e._zod,"optout",()=>t.innerType._zod.optout),Ze(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(a=>(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>Zn(o,n,jt()))},input:r.value}),r.issues=[]),r)):(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>Zn(a,n,jt()))},input:r.value}),r.issues=[]),r)}}),zb=M("$ZodNaN",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Ab=M("$ZodPipe",(e,t)=>{Ce.init(e,t),Ze(e._zod,"values",()=>t.in._zod.values),Ze(e._zod,"optin",()=>t.in._zod.optin),Ze(e._zod,"optout",()=>t.out._zod.optout),Ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(o=>T0(o,t.in,n)):T0(a,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(a=>T0(a,t.out,n)):T0(i,t.out,n)}});Od=M("$ZodCodec",(e,t)=>{Ce.init(e,t),Ze(e._zod,"values",()=>t.in._zod.values),Ze(e._zod,"optin",()=>t.in._zod.optin),Ze(e._zod,"optout",()=>t.out._zod.optout),Ze(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let a=t.in._zod.run(r,n);return a instanceof Promise?a.then(o=>w0(o,t,n)):w0(a,t,n)}else{let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(o=>w0(o,t,n)):w0(a,t,n)}}});Cb=M("$ZodReadonly",(e,t)=>{Ce.init(e,t),Ze(e._zod,"propValues",()=>t.innerType._zod.propValues),Ze(e._zod,"values",()=>t.innerType._zod.values),Ze(e._zod,"optin",()=>t.innerType?._zod?.optin),Ze(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(D4):D4(i)}});Db=M("$ZodTemplateLiteral",(e,t)=>{Ce.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let i=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let a=i.startsWith("^")?1:0,o=i.endsWith("$")?i.length-1:i.length;r.push(i.slice(a,o))}else if(n===null||rC.has(typeof n))r.push(Hi(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,i)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"template_literal",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Nb=M("$ZodFunction",(e,t)=>(Ce.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let i=e._def.input?Sd(e._def.input,n):n,a=Reflect.apply(r,this,i);return e._def.output?Sd(e._def.output,a):a}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let i=e._def.input?await wd(e._def.input,n):n,a=await Reflect.apply(r,this,i);return e._def.output?await wd(e._def.output,a):a}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new Gh({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),Ob=M("$ZodPromise",(e,t)=>{Ce.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(i=>t.innerType._zod.run({value:i,issues:[]},n))}),kb=M("$ZodLazy",(e,t)=>{Ce.init(e,t),Ze(e._zod,"innerType",()=>t.getter()),Ze(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ze(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ze(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ze(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),Mb=M("$ZodCustom",(e,t)=>{wt.init(e,t),Ce.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(a=>N4(a,r,n,e));N4(i,r,n,e)}})});function R4(){return{localeError:Xie()}}var Xie,L4=w(()=>{he();Xie=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"};return i=>{switch(i.code){case"invalid_type":return`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${X(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${i.minimum.toString()} ${o.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:a.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${a.suffix}"`:a.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${a.includes}"`:a.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${a.pattern}`:`${n[a.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${U(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function P4(){return{localeError:Kie()}}var Kie,$4=w(()=>{he();Kie=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i.expected}, daxil olan ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${X(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${a}${i.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${a}${i.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[a.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function U4(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:a===1?t:a>=2&&a<=4?r:n}function j4(){return{localeError:Wie()}}var Wie,V4=w(()=>{he();Wie=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0456\u045E";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${X(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);if(o){let s=Number(i.maximum),l=U4(s,o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${a}${i.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);if(o){let s=Number(i.minimum),l=U4(s,o.unit.one,o.unit.few,o.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${o.verb} ${a}${i.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[a.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${U(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function B4(){return{localeError:Qie()}}var Jie,Qie,Z4=w(()=>{he();Jie=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Qie=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"};return n=>{switch(n.code){case"invalid_type":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${Jie(n.input)}`;case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${X(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${U(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${U(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}}});function H4(){return{localeError:eae()}}var eae,F4=w(()=>{he();eae=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipus inv\xE0lid: s'esperava ${i.expected}, s'ha rebut ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${X(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${U(i.values," o ")}`;case"too_big":{let a=i.inclusive?"com a m\xE0xim":"menys de",o=t(i.origin);return o?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${a} ${i.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"com a m\xEDnim":"m\xE9s de",o=t(i.origin);return o?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${a} ${i.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${n[a.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}}});function G4(){return{localeError:tae()}}var tae,q4=w(()=>{he();tae=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(i))return"pole";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return i=>{switch(i.code){case"invalid_type":return`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i.expected}, obdr\u017Eeno ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${X(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${a}${i.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${a}${i.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${n[a.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${U(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}}});function Y4(){return{localeError:rae()}}var rae,X4=w(()=>{he();rae=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function r(o){return e[o]??null}function n(o){return t[o]??o}let i=o=>{let s=typeof o;switch(s){case"number":return Number.isNaN(o)?"NaN":"tal";case"object":return Array.isArray(o)?"liste":o===null?"null":Object.getPrototypeOf(o)!==Object.prototype&&o.constructor?o.constructor.name:"objekt"}return s},a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return o=>{switch(o.code){case"invalid_type":return`Ugyldigt input: forventede ${n(o.expected)}, fik ${n(i(o.input))}`;case"invalid_value":return o.values.length===1?`Ugyldig v\xE6rdi: forventede ${X(o.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${U(o.values,"|")}`;case"too_big":{let s=o.inclusive?"<=":"<",l=r(o.origin),u=n(o.origin);return l?`For stor: forventede ${u??"value"} ${l.verb} ${s} ${o.maximum.toString()} ${l.unit??"elementer"}`:`For stor: forventede ${u??"value"} havde ${s} ${o.maximum.toString()}`}case"too_small":{let s=o.inclusive?">=":">",l=r(o.origin),u=n(o.origin);return l?`For lille: forventede ${u} ${l.verb} ${s} ${o.minimum.toString()} ${l.unit}`:`For lille: forventede ${u} havde ${s} ${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${a[s.format]??o.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${U(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${o.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${o.origin}`;default:return"Ugyldigt input"}}}});function K4(){return{localeError:nae()}}var nae,W4=w(()=>{he();nae=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"Zahl";case"object":{if(Array.isArray(i))return"Array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return i=>{switch(i.code){case"invalid_type":return`Ung\xFCltige Eingabe: erwartet ${i.expected}, erhalten ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${X(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${a}${i.maximum.toString()} ist`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${a}${i.minimum.toString()} ist`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${n[a.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${U(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function Ib(){return{localeError:aae()}}var iae,aae,uD=w(()=>{he();iae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},aae=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Invalid input: expected ${n.expected}, received ${iae(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${X(n.values[0])}`:`Invalid option: expected one of ${U(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${U(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}}});function J4(){return{localeError:sae()}}var oae,sae,Q4=w(()=>{he();oae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},sae=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return n=>{switch(n.code){case"invalid_type":return`Nevalida enigo: atendi\u011Dis ${n.expected}, ricevi\u011Dis ${oae(n.input)}`;case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${X(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${U(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${U(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}}});function ej(){return{localeError:lae()}}var lae,tj=w(()=>{he();lae=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};function r(o){return e[o]??null}function n(o){return t[o]??o}let i=o=>{let s=typeof o;switch(s){case"number":return Number.isNaN(o)?"NaN":"number";case"object":return Array.isArray(o)?"array":o===null?"null":Object.getPrototypeOf(o)!==Object.prototype?o.constructor.name:"object"}return s},a={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return o=>{switch(o.code){case"invalid_type":return`Entrada inv\xE1lida: se esperaba ${n(o.expected)}, recibido ${n(i(o.input))}`;case"invalid_value":return o.values.length===1?`Entrada inv\xE1lida: se esperaba ${X(o.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${U(o.values,"|")}`;case"too_big":{let s=o.inclusive?"<=":"<",l=r(o.origin),u=n(o.origin);return l?`Demasiado grande: se esperaba que ${u??"valor"} tuviera ${s}${o.maximum.toString()} ${l.unit??"elementos"}`:`Demasiado grande: se esperaba que ${u??"valor"} fuera ${s}${o.maximum.toString()}`}case"too_small":{let s=o.inclusive?">=":">",l=r(o.origin),u=n(o.origin);return l?`Demasiado peque\xF1o: se esperaba que ${u} tuviera ${s}${o.minimum.toString()} ${l.unit}`:`Demasiado peque\xF1o: se esperaba que ${u} fuera ${s}${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inv\xE1lida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${s.pattern}`:`Inv\xE1lido ${a[s.format]??o.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${o.divisor}`;case"unrecognized_keys":return`Llave${o.keys.length>1?"s":""} desconocida${o.keys.length>1?"s":""}: ${U(o.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n(o.origin)}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n(o.origin)}`;default:return"Entrada inv\xE1lida"}}}});function rj(){return{localeError:uae()}}var uae,nj=w(()=>{he();uae=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0622\u0631\u0627\u06CC\u0647";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"};return i=>{switch(i.code){case"invalid_type":return`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${r(i.input)} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`;case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${X(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${U(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${a}${i.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${a}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[a.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${U(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function ij(){return{localeError:cae()}}var cae,aj=w(()=>{he();cae=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return i=>{switch(i.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${i.expected}, oli ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${X(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${a}${i.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${a}${i.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${n[a.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${U(i.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}}});function oj(){return{localeError:fae()}}var fae,sj=w(()=>{he();fae=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"nombre";case"object":{if(Array.isArray(i))return"tableau";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : ${i.expected} attendu, ${r(i.input)} re\xE7u`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${X(i.values[0])} attendu`:`Option invalide : une valeur parmi ${U(i.values,"|")} attendue`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Trop grand : ${i.origin??"valeur"} doit ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i.origin??"valeur"} doit \xEAtre ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Trop petit : ${i.origin} doit ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Trop petit : ${i.origin} doit \xEAtre ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${n[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${U(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}}});function lj(){return{localeError:dae()}}var dae,uj=w(()=>{he();dae=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"};return i=>{switch(i.code){case"invalid_type":return`Entr\xE9e invalide : attendu ${i.expected}, re\xE7u ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${X(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"\u2264":"<",o=t(i.origin);return o?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${a}${i.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"\u2265":">",o=t(i.origin);return o?`Trop petit : attendu que ${i.origin} ait ${a}${i.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${i.origin} soit ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${n[a.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${U(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}}});function cj(){return{localeError:pae()}}var pae,fj=w(()=>{he();pae=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,n=u=>{let c=r(u);return c?c.label:u??e.unknown.label},i=u=>`\u05D4${n(u)}`,a=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",o=u=>u?t[u]??null:null,s=u=>{let c=typeof u;switch(c){case"number":return Number.isNaN(u)?"NaN":"number";case"object":return Array.isArray(u)?"array":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype&&u.constructor?u.constructor.name:"object";default:return c}},l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,f=n(c),d=s(u.input),p=e[d]?.label??d;return`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${X(u.values[0])}`;let c=u.values.map(p=>X(p));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let f=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let c=o(u.origin),f=i(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let d=u.inclusive?"<=":"<",p=a(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.maximum.toString()}`}case"too_small":{let c=o(u.origin),f=i(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let y=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`}let h=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let d=u.inclusive?">=":">",p=a(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let f=l[c.format],d=f?.label??c.format,m=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${d} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${U(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function dj(){return{localeError:mae()}}var mae,pj=w(()=>{he();mae=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(i))return"t\xF6mb";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"};return i=>{switch(i.code){case"invalid_type":return`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i.expected}, a kapott \xE9rt\xE9k ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${X(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${i.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${a}${i.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[a.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function mj(){return{localeError:hae()}}var hae,hj=w(()=>{he();hae=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak valid: diharapkan ${i.expected}, diterima ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${X(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${a}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: diharapkan ${i.origin} memiliki ${a}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${n[a.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}}});function vj(){return{localeError:gae()}}var vae,gae,gj=w(()=>{he();vae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},gae=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return n=>{switch(n.code){case"invalid_type":return`Rangt gildi: \xDE\xFA sl\xF3st inn ${vae(n.input)} \xFEar sem \xE1 a\xF0 vera ${n.expected}`;case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${X(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${U(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${U(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}}});function yj(){return{localeError:yae()}}var yae,_j=w(()=>{he();yae=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"numero";case"object":{if(Array.isArray(i))return"vettore";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input non valido: atteso ${i.expected}, ricevuto ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input non valido: atteso ${X(i.values[0])}`:`Opzione non valida: atteso uno tra ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Troppo grande: ${i.origin??"valore"} deve avere ${a}${i.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Troppo piccolo: ${i.origin} deve avere ${a}${i.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${i.origin} deve essere ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${n[a.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${U(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}}});function bj(){return{localeError:_ae()}}var _ae,xj=w(()=>{he();_ae=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(i))return"\u914D\u5217";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u52B9\u306A\u5165\u529B: ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${r(i.input)}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`;case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${X(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${U(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=t(i.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=t(i.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[a.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${U(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function Sj(){return{localeError:xae()}}var bae,xae,Tj=w(()=>{he();bae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";case"object":{if(Array.isArray(e))return"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"}[t]??t},xae=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"};return n=>{switch(n.code){case"invalid_type":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${bae(n.input)}`;case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${X(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${U(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${U(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}}});function Rb(){return{localeError:Sae()}}var Sae,cD=w(()=>{he();Sae=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(i))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(i===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"};return i=>{switch(i.code){case"invalid_type":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${X(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${i.maximum.toString()} ${o.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${a} ${i.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${a.prefix}"`:a.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${a.suffix}"`:a.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${a.includes}"`:a.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${U(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}}});function wj(){return Rb()}var Ej=w(()=>{cD()});function zj(){return{localeError:Tae()}}var Tae,Aj=w(()=>{he();Tae=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"};return i=>{switch(i.code){case"invalid_type":return`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${r(i.input)}\uC785\uB2C8\uB2E4`;case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${X(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${U(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(i.origin),l=s?.unit??"\uC694\uC18C";return s?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${l} ${a}${o}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${a}${o}`}case"too_small":{let a=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(i.origin),l=s?.unit??"\uC694\uC18C";return s?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${l} ${a}${o}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${a}${o}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[a.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${U(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function Cj(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}function Dj(){return{localeError:Eae()}}var wae,Yh,qh,Eae,Nj=w(()=>{he();wae=e=>Yh(typeof e,e),Yh=(e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skai\u010Dius";case"bigint":return"sveikasis skai\u010Dius";case"string":return"eilut\u0117";case"boolean":return"login\u0117 reik\u0161m\u0117";case"undefined":case"void":return"neapibr\u0117\u017Eta reik\u0161m\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"ne\u017Einomas objektas":t===null?"nulin\u0117 reik\u0161m\u0117":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulin\u0117 reik\u0161m\u0117"}return e},qh=e=>e.charAt(0).toUpperCase()+e.slice(1);Eae=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,o){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[o][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"};return n=>{switch(n.code){case"invalid_type":return`Gautas tipas ${wae(n.input)}, o tik\u0117tasi - ${Yh(n.expected)}`;case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${X(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${U(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=Yh(n.origin),a=t(n.origin,Cj(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${qh(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let o=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${qh(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=Yh(n.origin),a=t(n.origin,Cj(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${qh(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let o=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${qh(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${U(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=Yh(n.origin);return`${qh(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function Oj(){return{localeError:zae()}}var zae,kj=w(()=>{he();zae=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(i))return"\u043D\u0438\u0437\u0430";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"};return i=>{switch(i.code){case"invalid_type":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${X(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${a}${i.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${a}${i.minimum.toString()} ${o.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${a.pattern}`:`Invalid ${n[a.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${U(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function Mj(){return{localeError:Aae()}}var Aae,Ij=w(()=>{he();Aae=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"nombor";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Input tidak sah: dijangka ${i.expected}, diterima ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${X(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Terlalu besar: dijangka ${i.origin??"nilai"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Terlalu kecil: dijangka ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${n[a.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${U(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}}});function Rj(){return{localeError:Cae()}}var Cae,Lj=w(()=>{he();Cae=()=>{let e={string:{unit:"tekens",verb:"te hebben"},file:{unit:"bytes",verb:"te hebben"},array:{unit:"elementen",verb:"te hebben"},set:{unit:"elementen",verb:"te hebben"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"getal";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return i=>{switch(i.code){case"invalid_type":return`Ongeldige invoer: verwacht ${i.expected}, ontving ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${X(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Te groot: verwacht dat ${i.origin??"waarde"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"elementen"}`:`Te groot: verwacht dat ${i.origin??"waarde"} ${a}${i.maximum.toString()} is`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Te klein: verwacht dat ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Te klein: verwacht dat ${i.origin} ${a}${i.minimum.toString()} is`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${n[a.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}}});function Pj(){return{localeError:Dae()}}var Dae,$j=w(()=>{he();Dae=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"tall";case"object":{if(Array.isArray(i))return"liste";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Ugyldig input: forventet ${i.expected}, fikk ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${X(i.values[0])}`:`Ugyldig valg: forventet en av ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${a}${i.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`For lite(n): forventet ${i.origin} til \xE5 ha ${a}${i.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${n[a.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${U(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}}});function Uj(){return{localeError:Nae()}}var Nae,jj=w(()=>{he();Nae=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"numara";case"object":{if(Array.isArray(i))return"saf";if(i===null)return"gayb";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"};return i=>{switch(i.code){case"invalid_type":return`F\xE2sit giren: umulan ${i.expected}, al\u0131nan ${r(i.input)}`;case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${X(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${a}${i.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${a}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${a}${i.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${a}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=i;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[a.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function Vj(){return{localeError:Oae()}}var Oae,Bj=w(()=>{he();Oae=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(i))return"\u0627\u0631\u06D0";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"};return i=>{switch(i.code){case"invalid_type":return`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${r(i.input)} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`;case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${X(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${U(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${a}${i.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${a}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[a.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${U(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function Zj(){return{localeError:kae()}}var kae,Hj=w(()=>{he();kae=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"liczba";case"object":{if(Array.isArray(i))return"tablica";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"};return i=>{switch(i.code){case"invalid_type":return`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i.expected}, otrzymano ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${X(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${i.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${i.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[a.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function Fj(){return{localeError:Mae()}}var Mae,Gj=w(()=>{he();Mae=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(i))return"array";if(i===null)return"nulo";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return i=>{switch(i.code){case"invalid_type":return`Tipo inv\xE1lido: esperado ${i.expected}, recebido ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${X(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${a}${i.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Muito pequeno: esperado que ${i.origin} tivesse ${a}${i.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${n[a.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${U(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}}});function qj(e,t,r,n){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?n:a===1?t:a>=2&&a<=4?r:n}function Yj(){return{localeError:Iae()}}var Iae,Xj=w(()=>{he();Iae=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${X(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);if(o){let s=Number(i.maximum),l=qj(s,o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${i.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);if(o){let s=Number(i.minimum),l=qj(s,o.unit.one,o.unit.few,o.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${a}${i.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${U(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}}});function Kj(){return{localeError:Rae()}}var Rae,Wj=w(()=>{he();Rae=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(i))return"tabela";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"};return i=>{switch(i.code){case"invalid_type":return`Neveljaven vnos: pri\u010Dakovano ${i.expected}, prejeto ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${X(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${a}${i.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${a}${i.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${n[a.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${U(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}}});function Jj(){return{localeError:Lae()}}var Lae,Qj=w(()=>{he();Lae=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"antal";case"object":{if(Array.isArray(i))return"lista";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return i=>{switch(i.code){case"invalid_type":return`Ogiltig inmatning: f\xF6rv\xE4ntat ${i.expected}, fick ${r(i.input)}`;case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${X(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${a}${i.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${a}${i.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${n[a.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${U(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function e6(){return{localeError:Pae()}}var Pae,t6=w(()=>{he();Pae=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(i))return"\u0B85\u0BA3\u0BBF";if(i===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${X(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${U(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${i.maximum.toString()} ${o.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${a}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${a}${i.minimum.toString()} ${o.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${a}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}}});function r6(){return{localeError:$ae()}}var $ae,n6=w(()=>{he();$ae=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(i))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(i===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"};return i=>{switch(i.code){case"invalid_type":return`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${X(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=t(i.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${i.maximum.toString()} ${o.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=t(i.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${i.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${a.prefix}"`:a.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${a.suffix}"`:a.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[a.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${U(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function i6(){return{localeError:jae()}}var Uae,jae,a6=w(()=>{he();Uae=e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},jae=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"};return n=>{switch(n.code){case"invalid_type":return`Ge\xE7ersiz de\u011Fer: beklenen ${n.expected}, al\u0131nan ${Uae(n.input)}`;case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${X(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${U(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${U(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function Lb(){return{localeError:Vae()}}var Vae,fD=w(()=>{he();Vae=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(i))return"\u043C\u0430\u0441\u0438\u0432";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"};return i=>{switch(i.code){case"invalid_type":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${X(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${a.prefix}"`:a.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${a.suffix}"`:a.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${a.includes}"`:a.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${U(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}}});function o6(){return Lb()}var s6=w(()=>{fD()});function l6(){return{localeError:Bae()}}var Bae,u6=w(()=>{he();Bae=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(i))return"\u0622\u0631\u06D2";if(i===null)return"\u0646\u0644";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"};return i=>{switch(i.code){case"invalid_type":return`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${r(i.input)} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`;case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${X(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${U(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${i.maximum.toString()} ${o.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${a}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${a}${i.minimum.toString()} ${o.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${a}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${U(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function c6(){return{localeError:Zae()}}var Zae,f6=w(()=>{he();Zae=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(i))return"m\u1EA3ng";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"};return i=>{switch(i.code){case"invalid_type":return`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${X(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${a}${i.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o.verb} ${a}${i.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${n[a.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${U(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function d6(){return{localeError:Hae()}}var Hae,p6=w(()=>{he();Hae=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(i))return"\u6570\u7EC4";if(i===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${X(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${a}${i.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${a}${i.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${n[a.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${U(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function m6(){return{localeError:Fae()}}var Fae,h6=w(()=>{he();Fae=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"number";case"object":{if(Array.isArray(i))return"array";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"};return i=>{switch(i.code){case"invalid_type":return`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i.expected}\uFF0C\u4F46\u6536\u5230 ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${X(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${a}${i.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${a}${i.maximum.toString()}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${a}${i.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${n[a.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${U(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});function v6(){return{localeError:Gae()}}var Gae,g6=w(()=>{he();Gae=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){return e[i]??null}let r=i=>{let a=typeof i;switch(a){case"number":return Number.isNaN(i)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(i))return"akop\u1ECD";if(i===null)return"null";if(Object.getPrototypeOf(i)!==Object.prototype&&i.constructor)return i.constructor.name}}return a},n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"};return i=>{switch(i.code){case"invalid_type":return`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${r(i.input)}`;case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${X(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${U(i.values,"|")}`;case"too_big":{let a=i.inclusive?"<=":"<",o=t(i.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${o.verb} ${a}${i.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${i.maximum}`}case"too_small":{let a=i.inclusive?">=":">",o=t(i.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${o.verb} ${a}${i.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${i.minimum}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${n[a.format]??i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${U(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}}});var Gu={};bn(Gu,{ar:()=>R4,az:()=>P4,be:()=>j4,bg:()=>B4,ca:()=>H4,cs:()=>G4,da:()=>Y4,de:()=>K4,en:()=>Ib,eo:()=>J4,es:()=>ej,fa:()=>rj,fi:()=>ij,fr:()=>oj,frCA:()=>lj,he:()=>cj,hu:()=>dj,id:()=>mj,is:()=>vj,it:()=>yj,ja:()=>bj,ka:()=>Sj,kh:()=>wj,km:()=>Rb,ko:()=>zj,lt:()=>Dj,mk:()=>Oj,ms:()=>Mj,nl:()=>Rj,no:()=>Pj,ota:()=>Uj,pl:()=>Zj,ps:()=>Vj,pt:()=>Fj,ru:()=>Yj,sl:()=>Kj,sv:()=>Jj,ta:()=>e6,th:()=>r6,tr:()=>i6,ua:()=>o6,uk:()=>Lb,ur:()=>l6,vi:()=>c6,yo:()=>v6,zhCN:()=>d6,zhTW:()=>m6});var Pb=w(()=>{L4();$4();V4();Z4();F4();q4();X4();W4();uD();Q4();tj();nj();aj();sj();uj();fj();pj();hj();gj();_j();xj();Tj();Ej();cD();Aj();Nj();kj();Ij();Lj();$j();jj();Bj();Hj();Gj();Xj();Wj();Qj();t6();n6();a6();s6();fD();u6();f6();p6();h6();g6()});function kd(){return new $b}var y6,Xh,Kh,$b,Ur,Ub=w(()=>{Xh=Symbol("ZodOutput"),Kh=Symbol("ZodInput"),$b=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};(y6=globalThis).__zod_globalRegistry??(y6.__zod_globalRegistry=kd());Ur=globalThis.__zod_globalRegistry});function jb(e,t){return new e({type:"string",...W(t)})}function Vb(e,t){return new e({type:"string",coerce:!0,...W(t)})}function Wh(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...W(t)})}function Md(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...W(t)})}function Jh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...W(t)})}function Qh(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W(t)})}function ev(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W(t)})}function tv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W(t)})}function Id(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...W(t)})}function rv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...W(t)})}function nv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...W(t)})}function iv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...W(t)})}function av(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...W(t)})}function ov(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...W(t)})}function sv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...W(t)})}function lv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...W(t)})}function uv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...W(t)})}function cv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...W(t)})}function Bb(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...W(t)})}function fv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W(t)})}function dv(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W(t)})}function pv(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...W(t)})}function mv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...W(t)})}function hv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...W(t)})}function vv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...W(t)})}function Zb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W(t)})}function Hb(e,t){return new e({type:"string",format:"date",check:"string_format",...W(t)})}function Fb(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...W(t)})}function Gb(e,t){return new e({type:"string",format:"duration",check:"string_format",...W(t)})}function qb(e,t){return new e({type:"number",checks:[],...W(t)})}function Yb(e,t){return new e({type:"number",coerce:!0,checks:[],...W(t)})}function Xb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...W(t)})}function Kb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...W(t)})}function Wb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...W(t)})}function Jb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...W(t)})}function Qb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...W(t)})}function ex(e,t){return new e({type:"boolean",...W(t)})}function tx(e,t){return new e({type:"boolean",coerce:!0,...W(t)})}function rx(e,t){return new e({type:"bigint",...W(t)})}function nx(e,t){return new e({type:"bigint",coerce:!0,...W(t)})}function ix(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...W(t)})}function ax(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...W(t)})}function ox(e,t){return new e({type:"symbol",...W(t)})}function sx(e,t){return new e({type:"undefined",...W(t)})}function lx(e,t){return new e({type:"null",...W(t)})}function ux(e){return new e({type:"any"})}function cx(e){return new e({type:"unknown"})}function fx(e,t){return new e({type:"never",...W(t)})}function dx(e,t){return new e({type:"void",...W(t)})}function px(e,t){return new e({type:"date",...W(t)})}function mx(e,t){return new e({type:"date",coerce:!0,...W(t)})}function hx(e,t){return new e({type:"nan",...W(t)})}function Da(e,t){return new _0({check:"less_than",...W(t),value:e,inclusive:!1})}function Tn(e,t){return new _0({check:"less_than",...W(t),value:e,inclusive:!0})}function Na(e,t){return new b0({check:"greater_than",...W(t),value:e,inclusive:!1})}function jr(e,t){return new b0({check:"greater_than",...W(t),value:e,inclusive:!0})}function yv(e){return Na(0,e)}function _v(e){return Da(0,e)}function bv(e){return Tn(0,e)}function xv(e){return jr(0,e)}function ts(e,t){return new PC({check:"multiple_of",...W(t),value:e})}function cl(e,t){return new jC({check:"max_size",...W(t),maximum:e})}function rs(e,t){return new VC({check:"min_size",...W(t),minimum:e})}function qu(e,t){return new BC({check:"size_equals",...W(t),size:e})}function Oa(e,t){return new ZC({check:"max_length",...W(t),maximum:e})}function hi(e,t){return new HC({check:"min_length",...W(t),minimum:e})}function fl(e,t){return new FC({check:"length_equals",...W(t),length:e})}function Yu(e,t){return new GC({check:"string_format",format:"regex",...W(t),pattern:e})}function Xu(e){return new qC({check:"string_format",format:"lowercase",...W(e)})}function Ku(e){return new YC({check:"string_format",format:"uppercase",...W(e)})}function Wu(e,t){return new XC({check:"string_format",format:"includes",...W(t),includes:e})}function Ju(e,t){return new KC({check:"string_format",format:"starts_with",...W(t),prefix:e})}function Qu(e,t){return new WC({check:"string_format",format:"ends_with",...W(t),suffix:e})}function Sv(e,t,r){return new JC({check:"property",property:e,schema:t,...W(r)})}function ec(e,t){return new QC({check:"mime_type",mime:e,...W(t)})}function Fi(e){return new eD({check:"overwrite",tx:e})}function tc(e){return Fi(t=>t.normalize(e))}function rc(){return Fi(e=>e.trim())}function nc(){return Fi(e=>e.toLowerCase())}function ic(){return Fi(e=>e.toUpperCase())}function Rd(){return Fi(e=>QA(e))}function dD(e,t,r){return new e({type:"array",element:t,...W(r)})}function Yae(e,t,r){return new e({type:"union",options:t,...W(r)})}function Xae(e,t,r){return new e({type:"union",options:t,inclusive:!1,...W(r)})}function Kae(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...W(n)})}function Wae(e,t,r){return new e({type:"intersection",left:t,right:r})}function Jae(e,t,r,n){let i=r instanceof Ce,a=i?n:r,o=i?r:null;return new e({type:"tuple",items:t,rest:o,...W(a)})}function Qae(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...W(n)})}function eoe(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...W(n)})}function toe(e,t,r){return new e({type:"set",valueType:t,...W(r)})}function roe(e,t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:n,...W(r)})}function noe(e,t,r){return new e({type:"enum",entries:t,...W(r)})}function ioe(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...W(r)})}function vx(e,t){return new e({type:"file",...W(t)})}function aoe(e,t){return new e({type:"transform",transform:t})}function ooe(e,t){return new e({type:"optional",innerType:t})}function soe(e,t){return new e({type:"nullable",innerType:t})}function loe(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():tC(r)}})}function uoe(e,t,r){return new e({type:"nonoptional",innerType:t,...W(r)})}function coe(e,t){return new e({type:"success",innerType:t})}function foe(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function doe(e,t,r){return new e({type:"pipe",in:t,out:r})}function poe(e,t){return new e({type:"readonly",innerType:t})}function moe(e,t,r){return new e({type:"template_literal",parts:t,...W(r)})}function hoe(e,t){return new e({type:"lazy",getter:t})}function voe(e,t){return new e({type:"promise",innerType:t})}function gx(e,t,r){let n=W(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function yx(e,t,r){return new e({type:"custom",check:"custom",fn:t,...W(r)})}function _x(e){let t=_6(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(bd(n,r.value,t._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(bd(i))}},e(r.value,r)));return t}function _6(e,t){let r=new wt({check:"custom",...W(t)});return r._zod.check=e,r}function bx(e){let t=new wt({check:"describe"});return t._zod.onattach=[r=>{let n=Ur.get(r)??{};Ur.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function xx(e){let t=new wt({check:"meta"});return t._zod.onattach=[r=>{let n=Ur.get(r)??{};Ur.add(r,{...n,...e})}],t._zod.check=()=>{},t}function Sx(e,t){let r=W(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(p=>typeof p=="string"?p.toLowerCase():p),i=i.map(p=>typeof p=="string"?p.toLowerCase():p));let a=new Set(n),o=new Set(i),s=e.Codec??Od,l=e.Boolean??Dd,u=e.String??ul,c=new u({type:"string",error:r.error}),f=new l({type:"boolean",error:r.error}),d=new s({type:"pipe",in:c,out:f,transform:((p,m)=>{let h=p;return r.case!=="sensitive"&&(h=h.toLowerCase()),a.has(h)?!0:o.has(h)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:m.value,inst:d,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?n[0]||"true":i[0]||"false"),error:r.error});return d}function ac(e,t,r,n={}){let i=W(n),a={...W(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}var gv,b6=w(()=>{x0();Ub();lD();he();gv={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function dl(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ur,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function gt(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path},f=e._zod.parent;if(f)o.ref=f,gt(f,t,c),t.seen.get(f).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,c);else{let d=o.schema,p=t.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(e,t,d,c)}}let l=t.metadataRegistry.get(e);return l&&Object.assign(o.schema,l),t.io==="input"&&wn(e)&&(delete o.schema.examples,delete o.schema.default),t.io==="input"&&o.schema._prefault&&((n=o.schema).default??(n.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function pl(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=a=>{let o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let c=e.external.registry.get(a[0])?.id,f=e.external.uri??(p=>p);if(c)return{ref:f(c)};let d=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=d,{defId:d,ref:`${f("__shared")}#/${o}/${d}`}}if(a[1]===r)return{ref:"#"};let l=`#/${o}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+u}},i=a=>{if(a[1].schema.$ref)return;let o=a[1],{ref:s,defId:l}=n(a);o.def={...o.schema},l&&(o.defId=l);let u=o.schema;for(let c in u)delete u[c];u.$ref=s};if(e.cycles==="throw")for(let a of e.seen.entries()){let o=a[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
43
|
+
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let o=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(o.cycle){i(a);continue}if(o.count>1&&e.reused==="ref"){i(a);continue}}}function ml(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=o=>{let s=e.seen.get(o),l=s.def??s.schema,u={...l};if(s.ref===null)return;let c=s.ref;if(s.ref=null,c){n(c);let f=e.seen.get(c).schema;f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(f)):(Object.assign(l,f),Object.assign(l,u))}s.isParent||e.override({zodSchema:o,jsonSchema:l,path:s.path??[]})};for(let o of[...e.seen.entries()].reverse())n(o[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(o)}Object.assign(i,r.def??r.schema);let a=e.external?.defs??{};for(let o of e.seen.entries()){let s=o[1];s.def&&s.defId&&(a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let o=JSON.parse(JSON.stringify(i));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ld(t,"input"),output:Ld(t,"output")}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function wn(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return wn(n.element,r);if(n.type==="set")return wn(n.valueType,r);if(n.type==="lazy")return wn(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return wn(n.innerType,r);if(n.type==="intersection")return wn(n.left,r)||wn(n.right,r);if(n.type==="record"||n.type==="map")return wn(n.keyType,r)||wn(n.valueType,r);if(n.type==="pipe")return wn(n.in,r)||wn(n.out,r);if(n.type==="object"){for(let i in n.shape)if(wn(n.shape[i],r))return!0;return!1}if(n.type==="union"){for(let i of n.options)if(wn(i,r))return!0;return!1}if(n.type==="tuple"){for(let i of n.items)if(wn(i,r))return!0;return!!(n.rest&&wn(n.rest,r))}return!1}var pD,Ld,Tv=w(()=>{Ub();pD=(e,t={})=>r=>{let n=dl({...r,processors:t});return gt(e,n),pl(n,e),ml(n,e)},Ld=(e,t)=>r=>{let{libraryOptions:n,target:i}=r??{},a=dl({...n??{},target:i,io:t,processors:{}});return gt(e,a),pl(a,e),ml(a,e)}});function oc(e,t){if("_idmap"in e){let n=e,i=dl({...t,processors:Tx}),a={};for(let l of n._idmap.entries()){let[u,c]=l;gt(c,i)}let o={},s={registry:n,uri:t?.uri,defs:a};i.external=s;for(let l of n._idmap.entries()){let[u,c]=l;pl(i,c),o[u]=ml(i,c)}if(Object.keys(a).length>0){let l=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[l]:a}}return{schemas:o}}let r=dl({...t,processors:Tx});return gt(e,r),pl(r,e),ml(r,e)}var goe,mD,hD,vD,gD,yD,_D,bD,xD,SD,TD,wD,ED,zD,AD,CD,DD,ND,OD,kD,MD,ID,RD,LD,PD,$D,Ex,UD,jD,VD,BD,ZD,HD,FD,GD,qD,YD,XD,KD,WD,Tx,Pd=w(()=>{Tv();he();goe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},mD=(e,t,r,n)=>{let i=r;i.type="string";let{minimum:a,maximum:o,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof o=="number"&&(i.maxLength=o),s&&(i.format=goe[s]??s,i.format===""&&delete i.format),u&&(i.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?i.pattern=c[0].source:c.length>1&&(i.allOf=[...c.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},hD=(e,t,r,n)=>{let i=r,{minimum:a,maximum:o,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?i.type="integer":i.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.minimum=c,i.exclusiveMinimum=!0):i.exclusiveMinimum=c),typeof a=="number"&&(i.minimum=a,typeof c=="number"&&t.target!=="draft-04"&&(c>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u),typeof o=="number"&&(i.maximum=o,typeof u=="number"&&t.target!=="draft-04"&&(u<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},vD=(e,t,r,n)=>{r.type="boolean"},gD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},yD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},_D=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},bD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},xD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},SD=(e,t,r,n)=>{r.not={}},TD=(e,t,r,n)=>{},wD=(e,t,r,n)=>{},ED=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},zD=(e,t,r,n)=>{let i=e._zod.def,a=Mh(i.entries);a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),r.enum=a},AD=(e,t,r,n)=>{let i=e._zod.def,a=[];for(let o of i.values)if(o===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let o=a[0];r.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[o]:r.const=o}else a.every(o=>typeof o=="number")&&(r.type="number"),a.every(o=>typeof o=="string")&&(r.type="string"),a.every(o=>typeof o=="boolean")&&(r.type="boolean"),a.every(o=>o===null)&&(r.type="null"),r.enum=a},CD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},DD=(e,t,r,n)=>{let i=r,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=a.source},ND=(e,t,r,n)=>{let i=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:l}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),l?l.length===1?(a.contentMediaType=l[0],Object.assign(i,a)):i.anyOf=l.map(u=>({...a,contentMediaType:u})):Object.assign(i,a)},OD=(e,t,r,n)=>{r.type="boolean"},kD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},MD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ID=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},RD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},LD=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},PD=(e,t,r,n)=>{let i=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(i.minItems=o),typeof s=="number"&&(i.maxItems=s),i.type="array",i.items=gt(a.element,t,{...n,path:[...n.path,"items"]})},$D=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="object",i.properties={};let o=a.shape;for(let u in o)i.properties[u]=gt(o[u],t,{...n,path:[...n.path,"properties",u]});let s=new Set(Object.keys(o)),l=new Set([...s].filter(u=>{let c=a.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(i.required=Array.from(l)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=gt(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},Ex=(e,t,r,n)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((s,l)=>gt(s,t,{...n,path:[...n.path,a?"oneOf":"anyOf",l]}));a?r.oneOf=o:r.anyOf=o},UD=(e,t,r,n)=>{let i=e._zod.def,a=gt(i.left,t,{...n,path:[...n.path,"allOf",0]}),o=gt(i.right,t,{...n,path:[...n.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];r.allOf=l},jD=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="array";let o=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=a.items.map((d,p)=>gt(d,t,{...n,path:[...n.path,o,p]})),u=a.rest?gt(a.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=l,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:l},u&&i.items.anyOf.push(u),i.minItems=l.length,u||(i.maxItems=l.length)):(i.items=l,u&&(i.additionalItems=u));let{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(i.minItems=c),typeof f=="number"&&(i.maxItems=f)},VD=(e,t,r,n)=>{let i=r,a=e._zod.def;i.type="object",(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=gt(a.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=gt(a.valueType,t,{...n,path:[...n.path,"additionalProperties"]})},BD=(e,t,r,n)=>{let i=e._zod.def,a=gt(i.innerType,t,n),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=i.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},ZD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},HD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},FD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},GD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=o},qD=(e,t,r,n)=>{let i=e._zod.def,a=t.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;gt(a,t,n);let o=t.seen.get(e);o.ref=a},YD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType,r.readOnly=!0},XD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},KD=(e,t,r,n)=>{let i=e._zod.def;gt(i.innerType,t,n);let a=t.seen.get(e);a.ref=i.innerType},WD=(e,t,r,n)=>{let i=e._zod.innerType;gt(i,t,n);let a=t.seen.get(e);a.ref=i},Tx={string:mD,number:hD,boolean:vD,bigint:gD,symbol:yD,null:_D,undefined:bD,void:xD,never:SD,any:TD,unknown:wD,date:ED,enum:zD,literal:AD,nan:CD,template_literal:DD,file:ND,success:OD,custom:kD,function:MD,transform:ID,map:RD,set:LD,array:PD,object:$D,union:Ex,intersection:UD,tuple:jD,record:VD,nullable:BD,nonoptional:ZD,default:HD,prefault:FD,catch:GD,pipe:qD,readonly:YD,promise:XD,optional:KD,lazy:WD}});var zx,x6=w(()=>{Pd();Tv();zx=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=dl({processors:Tx,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return gt(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),pl(this.ctx,t);let n=ml(this.ctx,t),{"~standard":i,...a}=n;return a}}});var S6={};var T6=w(()=>{});var Fn={};bn(Fn,{$ZodAny:()=>nb,$ZodArray:()=>lb,$ZodAsyncError:()=>Ca,$ZodBase64:()=>q0,$ZodBase64URL:()=>Y0,$ZodBigInt:()=>Fh,$ZodBigIntFormat:()=>Q0,$ZodBoolean:()=>Dd,$ZodCIDRv4:()=>F0,$ZodCIDRv6:()=>G0,$ZodCUID:()=>M0,$ZodCUID2:()=>I0,$ZodCatch:()=>Eb,$ZodCheck:()=>wt,$ZodCheckBigIntFormat:()=>UC,$ZodCheckEndsWith:()=>WC,$ZodCheckGreaterThan:()=>b0,$ZodCheckIncludes:()=>XC,$ZodCheckLengthEquals:()=>FC,$ZodCheckLessThan:()=>_0,$ZodCheckLowerCase:()=>qC,$ZodCheckMaxLength:()=>ZC,$ZodCheckMaxSize:()=>jC,$ZodCheckMimeType:()=>QC,$ZodCheckMinLength:()=>HC,$ZodCheckMinSize:()=>VC,$ZodCheckMultipleOf:()=>PC,$ZodCheckNumberFormat:()=>$C,$ZodCheckOverwrite:()=>eD,$ZodCheckProperty:()=>JC,$ZodCheckRegex:()=>GC,$ZodCheckSizeEquals:()=>BC,$ZodCheckStartsWith:()=>KC,$ZodCheckStringFormat:()=>Cd,$ZodCheckUpperCase:()=>YC,$ZodCodec:()=>Od,$ZodCustom:()=>Mb,$ZodCustomStringFormat:()=>W0,$ZodDate:()=>sb,$ZodDefault:()=>xb,$ZodDiscriminatedUnion:()=>cb,$ZodE164:()=>X0,$ZodEmail:()=>D0,$ZodEmoji:()=>O0,$ZodEncodeError:()=>nl,$ZodEnum:()=>hb,$ZodError:()=>$h,$ZodFile:()=>gb,$ZodFunction:()=>Nb,$ZodGUID:()=>A0,$ZodIPv4:()=>B0,$ZodIPv6:()=>Z0,$ZodISODate:()=>U0,$ZodISODateTime:()=>$0,$ZodISODuration:()=>V0,$ZodISOTime:()=>j0,$ZodIntersection:()=>fb,$ZodJWT:()=>K0,$ZodKSUID:()=>P0,$ZodLazy:()=>kb,$ZodLiteral:()=>vb,$ZodMAC:()=>H0,$ZodMap:()=>pb,$ZodNaN:()=>zb,$ZodNanoID:()=>k0,$ZodNever:()=>ab,$ZodNonOptional:()=>Tb,$ZodNull:()=>rb,$ZodNullable:()=>bb,$ZodNumber:()=>Hh,$ZodNumberFormat:()=>J0,$ZodObject:()=>oD,$ZodObjectJIT:()=>sD,$ZodOptional:()=>_b,$ZodPipe:()=>Ab,$ZodPrefault:()=>Sb,$ZodPromise:()=>Ob,$ZodReadonly:()=>Cb,$ZodRealError:()=>Hn,$ZodRecord:()=>db,$ZodRegistry:()=>$b,$ZodSet:()=>mb,$ZodString:()=>ul,$ZodStringFormat:()=>vt,$ZodSuccess:()=>wb,$ZodSymbol:()=>eb,$ZodTemplateLiteral:()=>Db,$ZodTransform:()=>yb,$ZodTuple:()=>Gh,$ZodType:()=>Ce,$ZodULID:()=>R0,$ZodURL:()=>N0,$ZodUUID:()=>C0,$ZodUndefined:()=>tb,$ZodUnion:()=>Nd,$ZodUnknown:()=>ib,$ZodVoid:()=>ob,$ZodXID:()=>L0,$ZodXor:()=>ub,$brand:()=>vd,$constructor:()=>M,$input:()=>Kh,$output:()=>Xh,Doc:()=>Zh,JSONSchema:()=>S6,JSONSchemaGenerator:()=>zx,NEVER:()=>Oh,TimePrecision:()=>gv,_any:()=>ux,_array:()=>dD,_base64:()=>pv,_base64url:()=>mv,_bigint:()=>rx,_boolean:()=>ex,_catch:()=>foe,_check:()=>_6,_cidrv4:()=>fv,_cidrv6:()=>dv,_coercedBigint:()=>nx,_coercedBoolean:()=>tx,_coercedDate:()=>mx,_coercedNumber:()=>Yb,_coercedString:()=>Vb,_cuid:()=>iv,_cuid2:()=>av,_custom:()=>gx,_date:()=>px,_decode:()=>c0,_decodeAsync:()=>d0,_default:()=>loe,_discriminatedUnion:()=>Kae,_e164:()=>hv,_email:()=>Wh,_emoji:()=>rv,_encode:()=>u0,_encodeAsync:()=>f0,_endsWith:()=>Qu,_enum:()=>roe,_file:()=>vx,_float32:()=>Kb,_float64:()=>Wb,_gt:()=>Na,_gte:()=>jr,_guid:()=>Md,_includes:()=>Wu,_int:()=>Xb,_int32:()=>Jb,_int64:()=>ix,_intersection:()=>Wae,_ipv4:()=>uv,_ipv6:()=>cv,_isoDate:()=>Hb,_isoDateTime:()=>Zb,_isoDuration:()=>Gb,_isoTime:()=>Fb,_jwt:()=>vv,_ksuid:()=>lv,_lazy:()=>hoe,_length:()=>fl,_literal:()=>ioe,_lowercase:()=>Xu,_lt:()=>Da,_lte:()=>Tn,_mac:()=>Bb,_map:()=>eoe,_max:()=>Tn,_maxLength:()=>Oa,_maxSize:()=>cl,_mime:()=>ec,_min:()=>jr,_minLength:()=>hi,_minSize:()=>rs,_multipleOf:()=>ts,_nan:()=>hx,_nanoid:()=>nv,_nativeEnum:()=>noe,_negative:()=>_v,_never:()=>fx,_nonnegative:()=>xv,_nonoptional:()=>uoe,_nonpositive:()=>bv,_normalize:()=>tc,_null:()=>lx,_nullable:()=>soe,_number:()=>qb,_optional:()=>ooe,_overwrite:()=>Fi,_parse:()=>xd,_parseAsync:()=>Td,_pipe:()=>doe,_positive:()=>yv,_promise:()=>voe,_property:()=>Sv,_readonly:()=>poe,_record:()=>Qae,_refine:()=>yx,_regex:()=>Yu,_safeDecode:()=>m0,_safeDecodeAsync:()=>v0,_safeEncode:()=>p0,_safeEncodeAsync:()=>h0,_safeParse:()=>Ed,_safeParseAsync:()=>zd,_set:()=>toe,_size:()=>qu,_slugify:()=>Rd,_startsWith:()=>Ju,_string:()=>jb,_stringFormat:()=>ac,_stringbool:()=>Sx,_success:()=>coe,_superRefine:()=>_x,_symbol:()=>ox,_templateLiteral:()=>moe,_toLowerCase:()=>nc,_toUpperCase:()=>ic,_transform:()=>aoe,_trim:()=>rc,_tuple:()=>Jae,_uint32:()=>Qb,_uint64:()=>ax,_ulid:()=>ov,_undefined:()=>sx,_union:()=>Yae,_unknown:()=>cx,_uppercase:()=>Ku,_url:()=>Id,_uuid:()=>Jh,_uuidv4:()=>Qh,_uuidv6:()=>ev,_uuidv7:()=>tv,_void:()=>dx,_xid:()=>sv,_xor:()=>Xae,clone:()=>Cr,config:()=>jt,createStandardJSONSchemaMethod:()=>Ld,createToJSONSchemaMethod:()=>pD,decode:()=>s4,decodeAsync:()=>u4,describe:()=>bx,encode:()=>o4,encodeAsync:()=>l4,extractDefs:()=>pl,finalize:()=>ml,flattenError:()=>Bu,formatError:()=>Zu,globalConfig:()=>Nh,globalRegistry:()=>Ur,initializeContext:()=>dl,isValidBase64:()=>aD,isValidBase64URL:()=>O4,isValidJWT:()=>k4,locales:()=>Gu,meta:()=>xx,parse:()=>Sd,parseAsync:()=>wd,prettifyError:()=>jh,process:()=>gt,regexes:()=>Sn,registry:()=>kd,safeDecode:()=>f4,safeDecodeAsync:()=>p4,safeEncode:()=>c4,safeEncodeAsync:()=>d4,safeParse:()=>Hu,safeParseAsync:()=>Ad,toDotPath:()=>a4,toJSONSchema:()=>oc,treeifyError:()=>Uh,util:()=>Y,version:()=>rD});var er=w(()=>{gd();sC();oC();lD();x0();nD();he();y0();Pb();Ub();tD();b6();Tv();Pd();x6();T6()});var JD=w(()=>{er()});var Gi={};bn(Gi,{ZodISODate:()=>Ev,ZodISODateTime:()=>wv,ZodISODuration:()=>Av,ZodISOTime:()=>zv,date:()=>eN,datetime:()=>QD,duration:()=>rN,time:()=>tN});function QD(e){return Zb(wv,e)}function eN(e){return Hb(Ev,e)}function tN(e){return Fb(zv,e)}function rN(e){return Gb(Av,e)}var wv,Ev,zv,Av,Dx=w(()=>{er();Nx();wv=M("ZodISODateTime",(e,t)=>{$0.init(e,t),Et.init(e,t)});Ev=M("ZodISODate",(e,t)=>{U0.init(e,t),Et.init(e,t)});zv=M("ZodISOTime",(e,t)=>{j0.init(e,t),Et.init(e,t)});Av=M("ZodISODuration",(e,t)=>{V0.init(e,t),Et.init(e,t)})});var D6,N6,En,nN=w(()=>{er();er();he();D6=(e,t)=>{$h.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Zu(e,r)},flatten:{value:r=>Bu(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,yd,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,yd,2)}},isEmpty:{get(){return e.issues.length===0}}})},N6=M("ZodError",D6),En=M("ZodError",D6,{Parent:Error})});var Ox,kx,Mx,Ix,Rx,Lx,Px,$x,Ux,jx,Vx,Bx,iN=w(()=>{er();nN();Ox=xd(En),kx=Td(En),Mx=Ed(En),Ix=zd(En),Rx=u0(En),Lx=c0(En),Px=f0(En),$x=d0(En),Ux=p0(En),jx=m0(En),Vx=h0(En),Bx=v0(En)});function P(e){return jb(Ud,e)}function Gx(e){return Wh(Fx,e)}function O6(e){return Md(Cv,e)}function qx(e){return Jh(ao,e)}function k6(e){return Qh(ao,e)}function M6(e){return ev(ao,e)}function I6(e){return tv(ao,e)}function Yx(e){return Id(Nv,e)}function R6(e){return Id(Nv,{protocol:/^https?$/,hostname:Sn.domain,...Y.normalizeParams(e)})}function Kx(e){return rv(Xx,e)}function Jx(e){return nv(Wx,e)}function eS(e){return iv(Qx,e)}function rS(e){return av(tS,e)}function iS(e){return ov(nS,e)}function oS(e){return sv(aS,e)}function lS(e){return lv(sS,e)}function cS(e){return uv(uS,e)}function fS(e){return Bb(aN,e)}function pS(e){return cv(dS,e)}function hS(e){return fv(mS,e)}function gS(e){return dv(vS,e)}function _S(e){return pv(yS,e)}function xS(e){return mv(bS,e)}function TS(e){return hv(SS,e)}function ES(e){return vv(wS,e)}function L6(e,t,r={}){return ac(jd,e,t,r)}function P6(e){return ac(jd,"hostname",Sn.hostname,e)}function $6(e){return ac(jd,"hex",Sn.hex,e)}function U6(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=Sn[n];if(!i)throw new Error(`Unrecognized hash format: ${n}`);return ac(jd,n,i,t)}function Ke(e){return qb(Vd,e)}function Zx(e){return Xb(lc,e)}function j6(e){return Kb(lc,e)}function V6(e){return Wb(lc,e)}function B6(e){return Jb(lc,e)}function Z6(e){return Qb(lc,e)}function qt(e){return ex(Bd,e)}function H6(e){return rx(Zd,e)}function F6(e){return ix(zS,e)}function G6(e){return ax(zS,e)}function q6(e){return ox(oN,e)}function Y6(e){return sx(sN,e)}function hl(e){return lx(lN,e)}function ns(){return ux(uN)}function zt(){return cx(cN)}function oo(e){return fx(fN,e)}function X6(e){return dx(dN,e)}function K6(e){return px(Ov,e)}function Re(e,t){return dD(pN,e,t)}function W6(e){let t=e._zod.def.shape;return yr(Object.keys(t))}function ee(e,t){let r={type:"object",shape:e??{},...Y.normalizeParams(t)};return new kv(r)}function J6(e,t){return new kv({type:"object",shape:e,catchall:oo(),...Y.normalizeParams(t)})}function Vr(e,t){return new kv({type:"object",shape:e,catchall:zt(),...Y.normalizeParams(t)})}function it(e,t){return new Mv({type:"union",options:e,...Y.normalizeParams(t)})}function AS(e,t){return new mN({type:"union",options:e,inclusive:!1,...Y.normalizeParams(t)})}function Iv(e,t,r){return new hN({type:"union",options:t,discriminator:e,...Y.normalizeParams(r)})}function vi(e,t){return new vN({type:"intersection",left:e,right:t})}function vl(e,t,r){let n=t instanceof Ce,i=n?r:t,a=n?t:null;return new gN({type:"tuple",items:e,rest:a,...Y.normalizeParams(i)})}function ot(e,t,r){return new Rv({type:"record",keyType:e,valueType:t,...Y.normalizeParams(r)})}function Q6(e,t,r){let n=Cr(e);return n._zod.values=void 0,new Rv({type:"record",keyType:n,valueType:t,...Y.normalizeParams(r)})}function Lv(e,t,r){return new Rv({type:"record",keyType:e,valueType:t,mode:"loose",...Y.normalizeParams(r)})}function eV(e,t,r){return new yN({type:"map",keyType:e,valueType:t,...Y.normalizeParams(r)})}function tV(e,t){return new _N({type:"set",valueType:e,...Y.normalizeParams(t)})}function yr(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new $d({type:"enum",entries:r,...Y.normalizeParams(t)})}function rV(e,t){return new $d({type:"enum",entries:e,...Y.normalizeParams(t)})}function le(e,t){return new bN({type:"literal",values:Array.isArray(e)?e:[e],...Y.normalizeParams(t)})}function nV(e){return vx(xN,e)}function CS(e){return new SN({type:"transform",transform:e})}function Dt(e){return new DS({type:"optional",innerType:e})}function sc(e){return new TN({type:"nullable",innerType:e})}function iV(e){return Dt(sc(e))}function EN(e,t){return new wN({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Y.shallowClone(t)}})}function AN(e,t){return new zN({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Y.shallowClone(t)}})}function CN(e,t){return new NS({type:"nonoptional",innerType:e,...Y.normalizeParams(t)})}function aV(e){return new DN({type:"success",innerType:e})}function ON(e,t){return new NN({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function oV(e){return hx(kN,e)}function Dv(e,t){return new OS({type:"pipe",in:e,out:t})}function sV(e,t,r){return new kS({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Pv(e){return new MN({type:"readonly",innerType:e})}function lV(e,t){return new IN({type:"template_literal",parts:e,...Y.normalizeParams(t)})}function $v(e){return new RN({type:"lazy",getter:e})}function uV(e){return new LN({type:"promise",innerType:e})}function cV(e){return new PN({type:"function",input:Array.isArray(e?.input)?vl(e?.input):e?.input??Re(zt()),output:e?.output??zt()})}function fV(e){let t=new wt({check:"custom"});return t._zod.check=e,t}function MS(e,t){return gx(Uv,e??(()=>!0),t)}function $N(e,t={}){return yx(Uv,e,t)}function UN(e){return _x(e)}function mV(e,t={error:`Input not instance of ${e.name}`}){let r=new Uv({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Y.normalizeParams(t)});return r._zod.bag.Class=e,r}function vV(e){let t=$v(()=>it([P(e),Ke(),qt(),hl(),Re(t),ot(P(),t)]));return t}function jv(e,t){return Dv(CS(e),t)}var Pe,Hx,Ud,Et,Fx,Cv,ao,Nv,Xx,Wx,Qx,tS,nS,aS,sS,uS,aN,dS,mS,vS,yS,bS,SS,wS,jd,Vd,lc,Bd,Zd,zS,oN,sN,lN,uN,cN,fN,dN,Ov,pN,kv,Mv,mN,hN,vN,gN,Rv,yN,_N,$d,bN,xN,SN,DS,TN,wN,zN,NS,DN,NN,kN,OS,kS,MN,IN,RN,LN,PN,Uv,dV,pV,hV,Nx=w(()=>{er();er();Pd();Tv();JD();Dx();iN();Pe=M("ZodType",(e,t)=>(Ce.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ld(e,"input"),output:Ld(e,"output")}}),e.toJSONSchema=pD(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Y.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>Cr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>Ox(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Mx(e,r,n),e.parseAsync=async(r,n)=>kx(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Ix(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>Rx(e,r,n),e.decode=(r,n)=>Lx(e,r,n),e.encodeAsync=async(r,n)=>Px(e,r,n),e.decodeAsync=async(r,n)=>$x(e,r,n),e.safeEncode=(r,n)=>Ux(e,r,n),e.safeDecode=(r,n)=>jx(e,r,n),e.safeEncodeAsync=async(r,n)=>Vx(e,r,n),e.safeDecodeAsync=async(r,n)=>Bx(e,r,n),e.refine=(r,n)=>e.check($N(r,n)),e.superRefine=r=>e.check(UN(r)),e.overwrite=r=>e.check(Fi(r)),e.optional=()=>Dt(e),e.nullable=()=>sc(e),e.nullish=()=>Dt(sc(e)),e.nonoptional=r=>CN(e,r),e.array=()=>Re(e),e.or=r=>it([e,r]),e.and=r=>vi(e,r),e.transform=r=>Dv(e,CS(r)),e.default=r=>EN(e,r),e.prefault=r=>AN(e,r),e.catch=r=>ON(e,r),e.pipe=r=>Dv(e,r),e.readonly=()=>Pv(e),e.describe=r=>{let n=e.clone();return Ur.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Ur.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ur.get(e);let n=e.clone();return Ur.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Hx=M("_ZodString",(e,t)=>{ul.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(n,i,a)=>mD(e,n,i,a);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(Yu(...n)),e.includes=(...n)=>e.check(Wu(...n)),e.startsWith=(...n)=>e.check(Ju(...n)),e.endsWith=(...n)=>e.check(Qu(...n)),e.min=(...n)=>e.check(hi(...n)),e.max=(...n)=>e.check(Oa(...n)),e.length=(...n)=>e.check(fl(...n)),e.nonempty=(...n)=>e.check(hi(1,...n)),e.lowercase=n=>e.check(Xu(n)),e.uppercase=n=>e.check(Ku(n)),e.trim=()=>e.check(rc()),e.normalize=(...n)=>e.check(tc(...n)),e.toLowerCase=()=>e.check(nc()),e.toUpperCase=()=>e.check(ic()),e.slugify=()=>e.check(Rd())}),Ud=M("ZodString",(e,t)=>{ul.init(e,t),Hx.init(e,t),e.email=r=>e.check(Wh(Fx,r)),e.url=r=>e.check(Id(Nv,r)),e.jwt=r=>e.check(vv(wS,r)),e.emoji=r=>e.check(rv(Xx,r)),e.guid=r=>e.check(Md(Cv,r)),e.uuid=r=>e.check(Jh(ao,r)),e.uuidv4=r=>e.check(Qh(ao,r)),e.uuidv6=r=>e.check(ev(ao,r)),e.uuidv7=r=>e.check(tv(ao,r)),e.nanoid=r=>e.check(nv(Wx,r)),e.guid=r=>e.check(Md(Cv,r)),e.cuid=r=>e.check(iv(Qx,r)),e.cuid2=r=>e.check(av(tS,r)),e.ulid=r=>e.check(ov(nS,r)),e.base64=r=>e.check(pv(yS,r)),e.base64url=r=>e.check(mv(bS,r)),e.xid=r=>e.check(sv(aS,r)),e.ksuid=r=>e.check(lv(sS,r)),e.ipv4=r=>e.check(uv(uS,r)),e.ipv6=r=>e.check(cv(dS,r)),e.cidrv4=r=>e.check(fv(mS,r)),e.cidrv6=r=>e.check(dv(vS,r)),e.e164=r=>e.check(hv(SS,r)),e.datetime=r=>e.check(QD(r)),e.date=r=>e.check(eN(r)),e.time=r=>e.check(tN(r)),e.duration=r=>e.check(rN(r))});Et=M("ZodStringFormat",(e,t)=>{vt.init(e,t),Hx.init(e,t)}),Fx=M("ZodEmail",(e,t)=>{D0.init(e,t),Et.init(e,t)});Cv=M("ZodGUID",(e,t)=>{A0.init(e,t),Et.init(e,t)});ao=M("ZodUUID",(e,t)=>{C0.init(e,t),Et.init(e,t)});Nv=M("ZodURL",(e,t)=>{N0.init(e,t),Et.init(e,t)});Xx=M("ZodEmoji",(e,t)=>{O0.init(e,t),Et.init(e,t)});Wx=M("ZodNanoID",(e,t)=>{k0.init(e,t),Et.init(e,t)});Qx=M("ZodCUID",(e,t)=>{M0.init(e,t),Et.init(e,t)});tS=M("ZodCUID2",(e,t)=>{I0.init(e,t),Et.init(e,t)});nS=M("ZodULID",(e,t)=>{R0.init(e,t),Et.init(e,t)});aS=M("ZodXID",(e,t)=>{L0.init(e,t),Et.init(e,t)});sS=M("ZodKSUID",(e,t)=>{P0.init(e,t),Et.init(e,t)});uS=M("ZodIPv4",(e,t)=>{B0.init(e,t),Et.init(e,t)});aN=M("ZodMAC",(e,t)=>{H0.init(e,t),Et.init(e,t)});dS=M("ZodIPv6",(e,t)=>{Z0.init(e,t),Et.init(e,t)});mS=M("ZodCIDRv4",(e,t)=>{F0.init(e,t),Et.init(e,t)});vS=M("ZodCIDRv6",(e,t)=>{G0.init(e,t),Et.init(e,t)});yS=M("ZodBase64",(e,t)=>{q0.init(e,t),Et.init(e,t)});bS=M("ZodBase64URL",(e,t)=>{Y0.init(e,t),Et.init(e,t)});SS=M("ZodE164",(e,t)=>{X0.init(e,t),Et.init(e,t)});wS=M("ZodJWT",(e,t)=>{K0.init(e,t),Et.init(e,t)});jd=M("ZodCustomStringFormat",(e,t)=>{W0.init(e,t),Et.init(e,t)});Vd=M("ZodNumber",(e,t)=>{Hh.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(n,i,a)=>hD(e,n,i,a),e.gt=(n,i)=>e.check(Na(n,i)),e.gte=(n,i)=>e.check(jr(n,i)),e.min=(n,i)=>e.check(jr(n,i)),e.lt=(n,i)=>e.check(Da(n,i)),e.lte=(n,i)=>e.check(Tn(n,i)),e.max=(n,i)=>e.check(Tn(n,i)),e.int=n=>e.check(Zx(n)),e.safe=n=>e.check(Zx(n)),e.positive=n=>e.check(Na(0,n)),e.nonnegative=n=>e.check(jr(0,n)),e.negative=n=>e.check(Da(0,n)),e.nonpositive=n=>e.check(Tn(0,n)),e.multipleOf=(n,i)=>e.check(ts(n,i)),e.step=(n,i)=>e.check(ts(n,i)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});lc=M("ZodNumberFormat",(e,t)=>{J0.init(e,t),Vd.init(e,t)});Bd=M("ZodBoolean",(e,t)=>{Dd.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>vD(e,r,n,i)});Zd=M("ZodBigInt",(e,t)=>{Fh.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(n,i,a)=>gD(e,n,i,a),e.gte=(n,i)=>e.check(jr(n,i)),e.min=(n,i)=>e.check(jr(n,i)),e.gt=(n,i)=>e.check(Na(n,i)),e.gte=(n,i)=>e.check(jr(n,i)),e.min=(n,i)=>e.check(jr(n,i)),e.lt=(n,i)=>e.check(Da(n,i)),e.lte=(n,i)=>e.check(Tn(n,i)),e.max=(n,i)=>e.check(Tn(n,i)),e.positive=n=>e.check(Na(BigInt(0),n)),e.negative=n=>e.check(Da(BigInt(0),n)),e.nonpositive=n=>e.check(Tn(BigInt(0),n)),e.nonnegative=n=>e.check(jr(BigInt(0),n)),e.multipleOf=(n,i)=>e.check(ts(n,i));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});zS=M("ZodBigIntFormat",(e,t)=>{Q0.init(e,t),Zd.init(e,t)});oN=M("ZodSymbol",(e,t)=>{eb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>yD(e,r,n,i)});sN=M("ZodUndefined",(e,t)=>{tb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>bD(e,r,n,i)});lN=M("ZodNull",(e,t)=>{rb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>_D(e,r,n,i)});uN=M("ZodAny",(e,t)=>{nb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>TD(e,r,n,i)});cN=M("ZodUnknown",(e,t)=>{ib.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>wD(e,r,n,i)});fN=M("ZodNever",(e,t)=>{ab.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>SD(e,r,n,i)});dN=M("ZodVoid",(e,t)=>{ob.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>xD(e,r,n,i)});Ov=M("ZodDate",(e,t)=>{sb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(n,i,a)=>ED(e,n,i,a),e.min=(n,i)=>e.check(jr(n,i)),e.max=(n,i)=>e.check(Tn(n,i));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});pN=M("ZodArray",(e,t)=>{lb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>PD(e,r,n,i),e.element=t.element,e.min=(r,n)=>e.check(hi(r,n)),e.nonempty=r=>e.check(hi(1,r)),e.max=(r,n)=>e.check(Oa(r,n)),e.length=(r,n)=>e.check(fl(r,n)),e.unwrap=()=>e.element});kv=M("ZodObject",(e,t)=>{sD.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>$D(e,r,n,i),Y.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>yr(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:zt()}),e.loose=()=>e.clone({...e._zod.def,catchall:zt()}),e.strict=()=>e.clone({...e._zod.def,catchall:oo()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Y.extend(e,r),e.safeExtend=r=>Y.safeExtend(e,r),e.merge=r=>Y.merge(e,r),e.pick=r=>Y.pick(e,r),e.omit=r=>Y.omit(e,r),e.partial=(...r)=>Y.partial(DS,e,r[0]),e.required=(...r)=>Y.required(NS,e,r[0])});Mv=M("ZodUnion",(e,t)=>{Nd.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>Ex(e,r,n,i),e.options=t.options});mN=M("ZodXor",(e,t)=>{Mv.init(e,t),ub.init(e,t),e._zod.processJSONSchema=(r,n,i)=>Ex(e,r,n,i),e.options=t.options});hN=M("ZodDiscriminatedUnion",(e,t)=>{Mv.init(e,t),cb.init(e,t)});vN=M("ZodIntersection",(e,t)=>{fb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>UD(e,r,n,i)});gN=M("ZodTuple",(e,t)=>{Gh.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>jD(e,r,n,i),e.rest=r=>e.clone({...e._zod.def,rest:r})});Rv=M("ZodRecord",(e,t)=>{db.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>VD(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType});yN=M("ZodMap",(e,t)=>{pb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>RD(e,r,n,i),e.keyType=t.keyType,e.valueType=t.valueType});_N=M("ZodSet",(e,t)=>{mb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>LD(e,r,n,i),e.min=(...r)=>e.check(rs(...r)),e.nonempty=r=>e.check(rs(1,r)),e.max=(...r)=>e.check(cl(...r)),e.size=(...r)=>e.check(qu(...r))});$d=M("ZodEnum",(e,t)=>{hb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(n,i,a)=>zD(e,n,i,a),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,i)=>{let a={};for(let o of n)if(r.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new $d({...t,checks:[],...Y.normalizeParams(i),entries:a})},e.exclude=(n,i)=>{let a={...t.entries};for(let o of n)if(r.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new $d({...t,checks:[],...Y.normalizeParams(i),entries:a})}});bN=M("ZodLiteral",(e,t)=>{vb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>AD(e,r,n,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});xN=M("ZodFile",(e,t)=>{gb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ND(e,r,n,i),e.min=(r,n)=>e.check(rs(r,n)),e.max=(r,n)=>e.check(cl(r,n)),e.mime=(r,n)=>e.check(ec(Array.isArray(r)?r:[r],n))});SN=M("ZodTransform",(e,t)=>{yb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ID(e,r,n,i),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new nl(e.constructor.name);r.addIssue=a=>{if(typeof a=="string")r.issues.push(Y.issue(a,r.value,t));else{let o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=e),r.issues.push(Y.issue(o))}};let i=t.transform(r.value,r);return i instanceof Promise?i.then(a=>(r.value=a,r)):(r.value=i,r)}});DS=M("ZodOptional",(e,t)=>{_b.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>KD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});TN=M("ZodNullable",(e,t)=>{bb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>BD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});wN=M("ZodDefault",(e,t)=>{xb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>HD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});zN=M("ZodPrefault",(e,t)=>{Sb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>FD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});NS=M("ZodNonOptional",(e,t)=>{Tb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>ZD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});DN=M("ZodSuccess",(e,t)=>{wb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>OD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});NN=M("ZodCatch",(e,t)=>{Eb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>GD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});kN=M("ZodNaN",(e,t)=>{zb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>CD(e,r,n,i)});OS=M("ZodPipe",(e,t)=>{Ab.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>qD(e,r,n,i),e.in=t.in,e.out=t.out});kS=M("ZodCodec",(e,t)=>{OS.init(e,t),Od.init(e,t)});MN=M("ZodReadonly",(e,t)=>{Cb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>YD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});IN=M("ZodTemplateLiteral",(e,t)=>{Db.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>DD(e,r,n,i)});RN=M("ZodLazy",(e,t)=>{kb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>WD(e,r,n,i),e.unwrap=()=>e._zod.def.getter()});LN=M("ZodPromise",(e,t)=>{Ob.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>XD(e,r,n,i),e.unwrap=()=>e._zod.def.innerType});PN=M("ZodFunction",(e,t)=>{Nb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>MD(e,r,n,i)});Uv=M("ZodCustom",(e,t)=>{Mb.init(e,t),Pe.init(e,t),e._zod.processJSONSchema=(r,n,i)=>kD(e,r,n,i)});dV=bx,pV=xx;hV=(...e)=>Sx({Codec:kS,Boolean:Bd,String:Ud},...e)});function yV(e){jt({customError:e})}function _V(){return jt().customError}var gV,IS,bV=w(()=>{er();er();gV={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};IS||(IS={})});function Eoe(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function zoe(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let i=r[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function xV(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return oo();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return $v(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let a=zoe(i,t),o=sn(a,t);return t.refs.set(i,o),t.processing.delete(i),o}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return hl();if(i.length===0)return oo();if(i.length===1)return le(i[0]);if(i.every(o=>typeof o=="string"))return yr(i);let a=i.map(o=>le(o));return a.length<2?a[0]:it([a[0],a[1],...a.slice(2)])}if(e.const!==void 0)return le(e.const);let r=e.type;if(Array.isArray(r)){let i=r.map(a=>{let o={...e,type:a};return xV(o,t)});return i.length===0?oo():i.length===1?i[0]:it(i)}if(!r)return ns();let n;switch(r){case"string":{let i=P();if(e.format){let a=e.format;a==="email"?i=i.check(Gx()):a==="uri"||a==="uri-reference"?i=i.check(Yx()):a==="uuid"||a==="guid"?i=i.check(qx()):a==="date-time"?i=i.check(Gi.datetime()):a==="date"?i=i.check(Gi.date()):a==="time"?i=i.check(Gi.time()):a==="duration"?i=i.check(Gi.duration()):a==="ipv4"?i=i.check(cS()):a==="ipv6"?i=i.check(pS()):a==="mac"?i=i.check(fS()):a==="cidr"?i=i.check(hS()):a==="cidr-v6"?i=i.check(gS()):a==="base64"?i=i.check(_S()):a==="base64url"?i=i.check(xS()):a==="e164"?i=i.check(TS()):a==="jwt"?i=i.check(ES()):a==="emoji"?i=i.check(Kx()):a==="nanoid"?i=i.check(Jx()):a==="cuid"?i=i.check(eS()):a==="cuid2"?i=i.check(rS()):a==="ulid"?i=i.check(iS()):a==="xid"?i=i.check(oS()):a==="ksuid"&&(i=i.check(lS()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),n=i;break}case"number":case"integer":{let i=r==="integer"?Ke().int():Ke();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),n=i;break}case"boolean":{n=qt();break}case"null":{n=hl();break}case"object":{let i={},a=e.properties||{},o=new Set(e.required||[]);for(let[l,u]of Object.entries(a)){let c=sn(u,t);i[l]=o.has(l)?c:c.optional()}if(e.propertyNames){let l=sn(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?sn(e.additionalProperties,t):ns();if(Object.keys(i).length===0){n=ot(l,u);break}let c=ee(i).passthrough(),f=Lv(l,u);n=vi(c,f);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let d of u){let p=sn(l[d],t),m=P().regex(new RegExp(d));c.push(Lv(m,p))}let f=[];if(Object.keys(i).length>0&&f.push(ee(i).passthrough()),f.push(...c),f.length===0)n=ee({}).passthrough();else if(f.length===1)n=f[0];else{let d=vi(f[0],f[1]);for(let p=2;p<f.length;p++)d=vi(d,f[p]);n=d}break}let s=ee(i);e.additionalProperties===!1?n=s.strict():typeof e.additionalProperties=="object"?n=s.catchall(sn(e.additionalProperties,t)):n=s.passthrough();break}case"array":{let i=e.prefixItems,a=e.items;if(i&&Array.isArray(i)){let o=i.map(l=>sn(l,t)),s=a&&typeof a=="object"&&!Array.isArray(a)?sn(a,t):void 0;s?n=vl(o).rest(s):n=vl(o),typeof e.minItems=="number"&&(n=n.check(hi(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Oa(e.maxItems)))}else if(Array.isArray(a)){let o=a.map(l=>sn(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?sn(e.additionalItems,t):void 0;s?n=vl(o).rest(s):n=vl(o),typeof e.minItems=="number"&&(n=n.check(hi(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Oa(e.maxItems)))}else if(a!==void 0){let o=sn(a,t),s=Re(o);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),n=s}else n=Re(ns());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function sn(e,t){if(typeof e=="boolean")return e?ns():oo();let r=xV(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(o=>sn(o,t)),a=it(i);r=n?vi(r,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(o=>sn(o,t)),a=AS(i);r=n?vi(r,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:ns();else{let i=n?r:sn(e.allOf[0],t),a=n?0:1;for(let o=a;o<e.allOf.length;o++)i=vi(i,sn(e.allOf[o],t));r=i}return e.nullable===!0&&t.version==="openapi-3.0"&&(r=sc(r)),e.readOnly===!0&&(r=Pv(r)),r}function jN(e,t){if(typeof e=="boolean")return e?ns():oo();let r=Eoe(e,t?.defaultTarget),n=e.$defs||e.definitions||{};return sn(e,{version:r,defs:n,refs:new Map,processing:new Set,rootSchema:e})}var SV=w(()=>{Hd()});var LS={};bn(LS,{bigint:()=>Noe,boolean:()=>Doe,date:()=>Ooe,number:()=>Coe,string:()=>Aoe});function Aoe(e){return Vb(Ud,e)}function Coe(e){return Yb(Vd,e)}function Doe(e){return tx(Bd,e)}function Noe(e){return nx(Zd,e)}function Ooe(e){return mx(Ov,e)}var TV=w(()=>{er();Nx()});var N={};bn(N,{$brand:()=>vd,$input:()=>Kh,$output:()=>Xh,NEVER:()=>Oh,TimePrecision:()=>gv,ZodAny:()=>uN,ZodArray:()=>pN,ZodBase64:()=>yS,ZodBase64URL:()=>bS,ZodBigInt:()=>Zd,ZodBigIntFormat:()=>zS,ZodBoolean:()=>Bd,ZodCIDRv4:()=>mS,ZodCIDRv6:()=>vS,ZodCUID:()=>Qx,ZodCUID2:()=>tS,ZodCatch:()=>NN,ZodCodec:()=>kS,ZodCustom:()=>Uv,ZodCustomStringFormat:()=>jd,ZodDate:()=>Ov,ZodDefault:()=>wN,ZodDiscriminatedUnion:()=>hN,ZodE164:()=>SS,ZodEmail:()=>Fx,ZodEmoji:()=>Xx,ZodEnum:()=>$d,ZodError:()=>N6,ZodFile:()=>xN,ZodFirstPartyTypeKind:()=>IS,ZodFunction:()=>PN,ZodGUID:()=>Cv,ZodIPv4:()=>uS,ZodIPv6:()=>dS,ZodISODate:()=>Ev,ZodISODateTime:()=>wv,ZodISODuration:()=>Av,ZodISOTime:()=>zv,ZodIntersection:()=>vN,ZodIssueCode:()=>gV,ZodJWT:()=>wS,ZodKSUID:()=>sS,ZodLazy:()=>RN,ZodLiteral:()=>bN,ZodMAC:()=>aN,ZodMap:()=>yN,ZodNaN:()=>kN,ZodNanoID:()=>Wx,ZodNever:()=>fN,ZodNonOptional:()=>NS,ZodNull:()=>lN,ZodNullable:()=>TN,ZodNumber:()=>Vd,ZodNumberFormat:()=>lc,ZodObject:()=>kv,ZodOptional:()=>DS,ZodPipe:()=>OS,ZodPrefault:()=>zN,ZodPromise:()=>LN,ZodReadonly:()=>MN,ZodRealError:()=>En,ZodRecord:()=>Rv,ZodSet:()=>_N,ZodString:()=>Ud,ZodStringFormat:()=>Et,ZodSuccess:()=>DN,ZodSymbol:()=>oN,ZodTemplateLiteral:()=>IN,ZodTransform:()=>SN,ZodTuple:()=>gN,ZodType:()=>Pe,ZodULID:()=>nS,ZodURL:()=>Nv,ZodUUID:()=>ao,ZodUndefined:()=>sN,ZodUnion:()=>Mv,ZodUnknown:()=>cN,ZodVoid:()=>dN,ZodXID:()=>aS,ZodXor:()=>mN,_ZodString:()=>Hx,_default:()=>EN,_function:()=>cV,any:()=>ns,array:()=>Re,base64:()=>_S,base64url:()=>xS,bigint:()=>H6,boolean:()=>qt,catch:()=>ON,check:()=>fV,cidrv4:()=>hS,cidrv6:()=>gS,clone:()=>Cr,codec:()=>sV,coerce:()=>LS,config:()=>jt,core:()=>Fn,cuid:()=>eS,cuid2:()=>rS,custom:()=>MS,date:()=>K6,decode:()=>Lx,decodeAsync:()=>$x,describe:()=>dV,discriminatedUnion:()=>Iv,e164:()=>TS,email:()=>Gx,emoji:()=>Kx,encode:()=>Rx,encodeAsync:()=>Px,endsWith:()=>Qu,enum:()=>yr,file:()=>nV,flattenError:()=>Bu,float32:()=>j6,float64:()=>V6,formatError:()=>Zu,fromJSONSchema:()=>jN,function:()=>cV,getErrorMap:()=>_V,globalRegistry:()=>Ur,gt:()=>Na,gte:()=>jr,guid:()=>O6,hash:()=>U6,hex:()=>$6,hostname:()=>P6,httpUrl:()=>R6,includes:()=>Wu,instanceof:()=>mV,int:()=>Zx,int32:()=>B6,int64:()=>F6,intersection:()=>vi,ipv4:()=>cS,ipv6:()=>pS,iso:()=>Gi,json:()=>vV,jwt:()=>ES,keyof:()=>W6,ksuid:()=>lS,lazy:()=>$v,length:()=>fl,literal:()=>le,locales:()=>Gu,looseObject:()=>Vr,looseRecord:()=>Lv,lowercase:()=>Xu,lt:()=>Da,lte:()=>Tn,mac:()=>fS,map:()=>eV,maxLength:()=>Oa,maxSize:()=>cl,meta:()=>pV,mime:()=>ec,minLength:()=>hi,minSize:()=>rs,multipleOf:()=>ts,nan:()=>oV,nanoid:()=>Jx,nativeEnum:()=>rV,negative:()=>_v,never:()=>oo,nonnegative:()=>xv,nonoptional:()=>CN,nonpositive:()=>bv,normalize:()=>tc,null:()=>hl,nullable:()=>sc,nullish:()=>iV,number:()=>Ke,object:()=>ee,optional:()=>Dt,overwrite:()=>Fi,parse:()=>Ox,parseAsync:()=>kx,partialRecord:()=>Q6,pipe:()=>Dv,positive:()=>yv,prefault:()=>AN,preprocess:()=>jv,prettifyError:()=>jh,promise:()=>uV,property:()=>Sv,readonly:()=>Pv,record:()=>ot,refine:()=>$N,regex:()=>Yu,regexes:()=>Sn,registry:()=>kd,safeDecode:()=>jx,safeDecodeAsync:()=>Bx,safeEncode:()=>Ux,safeEncodeAsync:()=>Vx,safeParse:()=>Mx,safeParseAsync:()=>Ix,set:()=>tV,setErrorMap:()=>yV,size:()=>qu,slugify:()=>Rd,startsWith:()=>Ju,strictObject:()=>J6,string:()=>P,stringFormat:()=>L6,stringbool:()=>hV,success:()=>aV,superRefine:()=>UN,symbol:()=>q6,templateLiteral:()=>lV,toJSONSchema:()=>oc,toLowerCase:()=>nc,toUpperCase:()=>ic,transform:()=>CS,treeifyError:()=>Uh,trim:()=>rc,tuple:()=>vl,uint32:()=>Z6,uint64:()=>G6,ulid:()=>iS,undefined:()=>Y6,union:()=>it,unknown:()=>zt,uppercase:()=>Ku,url:()=>Yx,util:()=>Y,uuid:()=>qx,uuidv4:()=>k6,uuidv6:()=>M6,uuidv7:()=>I6,void:()=>X6,xid:()=>oS,xor:()=>AS});var VN=w(()=>{er();Nx();JD();nN();iN();bV();er();uD();er();Pd();SV();Pb();Dx();Dx();TV();jt(Ib())});var wV,BN=w(()=>{VN();VN();wV=N});var RS={};bn(RS,{$brand:()=>vd,$input:()=>Kh,$output:()=>Xh,NEVER:()=>Oh,TimePrecision:()=>gv,ZodAny:()=>uN,ZodArray:()=>pN,ZodBase64:()=>yS,ZodBase64URL:()=>bS,ZodBigInt:()=>Zd,ZodBigIntFormat:()=>zS,ZodBoolean:()=>Bd,ZodCIDRv4:()=>mS,ZodCIDRv6:()=>vS,ZodCUID:()=>Qx,ZodCUID2:()=>tS,ZodCatch:()=>NN,ZodCodec:()=>kS,ZodCustom:()=>Uv,ZodCustomStringFormat:()=>jd,ZodDate:()=>Ov,ZodDefault:()=>wN,ZodDiscriminatedUnion:()=>hN,ZodE164:()=>SS,ZodEmail:()=>Fx,ZodEmoji:()=>Xx,ZodEnum:()=>$d,ZodError:()=>N6,ZodFile:()=>xN,ZodFirstPartyTypeKind:()=>IS,ZodFunction:()=>PN,ZodGUID:()=>Cv,ZodIPv4:()=>uS,ZodIPv6:()=>dS,ZodISODate:()=>Ev,ZodISODateTime:()=>wv,ZodISODuration:()=>Av,ZodISOTime:()=>zv,ZodIntersection:()=>vN,ZodIssueCode:()=>gV,ZodJWT:()=>wS,ZodKSUID:()=>sS,ZodLazy:()=>RN,ZodLiteral:()=>bN,ZodMAC:()=>aN,ZodMap:()=>yN,ZodNaN:()=>kN,ZodNanoID:()=>Wx,ZodNever:()=>fN,ZodNonOptional:()=>NS,ZodNull:()=>lN,ZodNullable:()=>TN,ZodNumber:()=>Vd,ZodNumberFormat:()=>lc,ZodObject:()=>kv,ZodOptional:()=>DS,ZodPipe:()=>OS,ZodPrefault:()=>zN,ZodPromise:()=>LN,ZodReadonly:()=>MN,ZodRealError:()=>En,ZodRecord:()=>Rv,ZodSet:()=>_N,ZodString:()=>Ud,ZodStringFormat:()=>Et,ZodSuccess:()=>DN,ZodSymbol:()=>oN,ZodTemplateLiteral:()=>IN,ZodTransform:()=>SN,ZodTuple:()=>gN,ZodType:()=>Pe,ZodULID:()=>nS,ZodURL:()=>Nv,ZodUUID:()=>ao,ZodUndefined:()=>sN,ZodUnion:()=>Mv,ZodUnknown:()=>cN,ZodVoid:()=>dN,ZodXID:()=>aS,ZodXor:()=>mN,_ZodString:()=>Hx,_default:()=>EN,_function:()=>cV,any:()=>ns,array:()=>Re,base64:()=>_S,base64url:()=>xS,bigint:()=>H6,boolean:()=>qt,catch:()=>ON,check:()=>fV,cidrv4:()=>hS,cidrv6:()=>gS,clone:()=>Cr,codec:()=>sV,coerce:()=>LS,config:()=>jt,core:()=>Fn,cuid:()=>eS,cuid2:()=>rS,custom:()=>MS,date:()=>K6,decode:()=>Lx,decodeAsync:()=>$x,default:()=>koe,describe:()=>dV,discriminatedUnion:()=>Iv,e164:()=>TS,email:()=>Gx,emoji:()=>Kx,encode:()=>Rx,encodeAsync:()=>Px,endsWith:()=>Qu,enum:()=>yr,file:()=>nV,flattenError:()=>Bu,float32:()=>j6,float64:()=>V6,formatError:()=>Zu,fromJSONSchema:()=>jN,function:()=>cV,getErrorMap:()=>_V,globalRegistry:()=>Ur,gt:()=>Na,gte:()=>jr,guid:()=>O6,hash:()=>U6,hex:()=>$6,hostname:()=>P6,httpUrl:()=>R6,includes:()=>Wu,instanceof:()=>mV,int:()=>Zx,int32:()=>B6,int64:()=>F6,intersection:()=>vi,ipv4:()=>cS,ipv6:()=>pS,iso:()=>Gi,json:()=>vV,jwt:()=>ES,keyof:()=>W6,ksuid:()=>lS,lazy:()=>$v,length:()=>fl,literal:()=>le,locales:()=>Gu,looseObject:()=>Vr,looseRecord:()=>Lv,lowercase:()=>Xu,lt:()=>Da,lte:()=>Tn,mac:()=>fS,map:()=>eV,maxLength:()=>Oa,maxSize:()=>cl,meta:()=>pV,mime:()=>ec,minLength:()=>hi,minSize:()=>rs,multipleOf:()=>ts,nan:()=>oV,nanoid:()=>Jx,nativeEnum:()=>rV,negative:()=>_v,never:()=>oo,nonnegative:()=>xv,nonoptional:()=>CN,nonpositive:()=>bv,normalize:()=>tc,null:()=>hl,nullable:()=>sc,nullish:()=>iV,number:()=>Ke,object:()=>ee,optional:()=>Dt,overwrite:()=>Fi,parse:()=>Ox,parseAsync:()=>kx,partialRecord:()=>Q6,pipe:()=>Dv,positive:()=>yv,prefault:()=>AN,preprocess:()=>jv,prettifyError:()=>jh,promise:()=>uV,property:()=>Sv,readonly:()=>Pv,record:()=>ot,refine:()=>$N,regex:()=>Yu,regexes:()=>Sn,registry:()=>kd,safeDecode:()=>jx,safeDecodeAsync:()=>Bx,safeEncode:()=>Ux,safeEncodeAsync:()=>Vx,safeParse:()=>Mx,safeParseAsync:()=>Ix,set:()=>tV,setErrorMap:()=>yV,size:()=>qu,slugify:()=>Rd,startsWith:()=>Ju,strictObject:()=>J6,string:()=>P,stringFormat:()=>L6,stringbool:()=>hV,success:()=>aV,superRefine:()=>UN,symbol:()=>q6,templateLiteral:()=>lV,toJSONSchema:()=>oc,toLowerCase:()=>nc,toUpperCase:()=>ic,transform:()=>CS,treeifyError:()=>Uh,trim:()=>rc,tuple:()=>vl,uint32:()=>Z6,uint64:()=>G6,ulid:()=>iS,undefined:()=>Y6,union:()=>it,unknown:()=>zt,uppercase:()=>Ku,url:()=>Yx,util:()=>Y,uuid:()=>qx,uuidv4:()=>k6,uuidv6:()=>M6,uuidv7:()=>I6,void:()=>X6,xid:()=>oS,xor:()=>AS,z:()=>N});var koe,Hd=w(()=>{BN();BN();koe=wV});var eB=no(Vt=>{"use strict";function vO(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(0<JS(i,t))e[n]=t,e[r]=i,r=n;else break e}}function so(e){return e.length===0?null:e[0]}function e1(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var o=2*(n+1)-1,s=e[o],l=o+1,u=e[l];if(0>JS(s,r))l<i&&0>JS(u,s)?(e[n]=u,e[l]=r,n=l):(e[n]=s,e[o]=r,n=o);else if(l<i&&0>JS(u,r))e[n]=u,e[l]=r,n=l;else break e}}return t}function JS(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Vt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(FV=performance,Vt.unstable_now=function(){return FV.now()}):(pO=Date,GV=pO.now(),Vt.unstable_now=function(){return pO.now()-GV});var FV,pO,GV,as=[],_l=[],Vle=1,Xi=null,ln=3,gO=!1,Jv=!1,Qv=!1,yO=!1,XV=typeof setTimeout=="function"?setTimeout:null,KV=typeof clearTimeout=="function"?clearTimeout:null,qV=typeof setImmediate<"u"?setImmediate:null;function QS(e){for(var t=so(_l);t!==null;){if(t.callback===null)e1(_l);else if(t.startTime<=e)e1(_l),t.sortIndex=t.expirationTime,vO(as,t);else break;t=so(_l)}}function _O(e){if(Qv=!1,QS(e),!Jv)if(so(as)!==null)Jv=!0,Jd||(Jd=!0,Wd());else{var t=so(_l);t!==null&&bO(_O,t.startTime-e)}}var Jd=!1,eg=-1,WV=5,JV=-1;function QV(){return yO?!0:!(Vt.unstable_now()-JV<WV)}function mO(){if(yO=!1,Jd){var e=Vt.unstable_now();JV=e;var t=!0;try{e:{Jv=!1,Qv&&(Qv=!1,KV(eg),eg=-1),gO=!0;var r=ln;try{t:{for(QS(e),Xi=so(as);Xi!==null&&!(Xi.expirationTime>e&&QV());){var n=Xi.callback;if(typeof n=="function"){Xi.callback=null,ln=Xi.priorityLevel;var i=n(Xi.expirationTime<=e);if(e=Vt.unstable_now(),typeof i=="function"){Xi.callback=i,QS(e),t=!0;break t}Xi===so(as)&&e1(as),QS(e)}else e1(as);Xi=so(as)}if(Xi!==null)t=!0;else{var a=so(_l);a!==null&&bO(_O,a.startTime-e),t=!1}}break e}finally{Xi=null,ln=r,gO=!1}t=void 0}}finally{t?Wd():Jd=!1}}}var Wd;typeof qV=="function"?Wd=function(){qV(mO)}:typeof MessageChannel<"u"?(hO=new MessageChannel,YV=hO.port2,hO.port1.onmessage=mO,Wd=function(){YV.postMessage(null)}):Wd=function(){XV(mO,0)};var hO,YV;function bO(e,t){eg=XV(function(){e(Vt.unstable_now())},t)}Vt.unstable_IdlePriority=5;Vt.unstable_ImmediatePriority=1;Vt.unstable_LowPriority=4;Vt.unstable_NormalPriority=3;Vt.unstable_Profiling=null;Vt.unstable_UserBlockingPriority=2;Vt.unstable_cancelCallback=function(e){e.callback=null};Vt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):WV=0<e?Math.floor(1e3/e):5};Vt.unstable_getCurrentPriorityLevel=function(){return ln};Vt.unstable_next=function(e){switch(ln){case 1:case 2:case 3:var t=3;break;default:t=ln}var r=ln;ln=t;try{return e()}finally{ln=r}};Vt.unstable_requestPaint=function(){yO=!0};Vt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ln;ln=e;try{return t()}finally{ln=r}};Vt.unstable_scheduleCallback=function(e,t,r){var n=Vt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:Vle++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,vO(_l,e),so(as)===null&&e===so(_l)&&(Qv?(KV(eg),eg=-1):Qv=!0,bO(_O,r-n))):(e.sortIndex=i,vO(as,e),Jv||gO||(Jv=!0,Jd||(Jd=!0,Wd()))),e};Vt.unstable_shouldYield=QV;Vt.unstable_wrapCallback=function(e){var t=ln;return function(){var r=ln;ln=t;try{return e.apply(this,arguments)}finally{ln=r}}}});var rB=no((mNe,tB)=>{"use strict";tB.exports=eB()});var hB=no(ke=>{"use strict";var TO=Symbol.for("react.transitional.element"),Ble=Symbol.for("react.portal"),Zle=Symbol.for("react.fragment"),Hle=Symbol.for("react.strict_mode"),Fle=Symbol.for("react.profiler"),Gle=Symbol.for("react.consumer"),qle=Symbol.for("react.context"),Yle=Symbol.for("react.forward_ref"),Xle=Symbol.for("react.suspense"),Kle=Symbol.for("react.memo"),sB=Symbol.for("react.lazy"),Wle=Symbol.for("react.activity"),Jle=Symbol.for("react.view_transition"),nB=Symbol.iterator;function Qle(e){return e===null||typeof e!="object"?null:(e=nB&&e[nB]||e["@@iterator"],typeof e=="function"?e:null)}var lB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uB=Object.assign,cB={};function ep(e,t,r){this.props=e,this.context=t,this.refs=cB,this.updater=r||lB}ep.prototype.isReactComponent={};ep.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ep.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fB(){}fB.prototype=ep.prototype;function wO(e,t,r){this.props=e,this.context=t,this.refs=cB,this.updater=r||lB}var EO=wO.prototype=new fB;EO.constructor=wO;uB(EO,ep.prototype);EO.isPureReactComponent=!0;var iB=Array.isArray;function SO(){}var kt={H:null,A:null,T:null,S:null},dB=Object.prototype.hasOwnProperty;function zO(e,t,r){var n=r.ref;return{$$typeof:TO,type:e,key:t,ref:n!==void 0?n:null,props:r}}function eue(e,t){return zO(e.type,t,e.props)}function AO(e){return typeof e=="object"&&e!==null&&e.$$typeof===TO}function tue(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var aB=/\/+/g;function xO(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tue(""+e.key):t.toString(36)}function rue(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(SO,SO):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Qd(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case TO:case Ble:o=!0;break;case sB:return o=e._init,Qd(o(e._payload),t,r,n,i)}}if(o)return i=i(e),o=n===""?"."+xO(e,0):n,iB(i)?(r="",o!=null&&(r=o.replace(aB,"$&/")+"/"),Qd(i,t,r,"",function(u){return u})):i!=null&&(AO(i)&&(i=eue(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(aB,"$&/")+"/")+o)),t.push(i)),1;o=0;var s=n===""?".":n+":";if(iB(e))for(var l=0;l<e.length;l++)n=e[l],a=s+xO(n,l),o+=Qd(n,t,r,a,i);else if(l=Qle(e),typeof l=="function")for(e=l.call(e),l=0;!(n=e.next()).done;)n=n.value,a=s+xO(n,l++),o+=Qd(n,t,r,a,i);else if(a==="object"){if(typeof e.then=="function")return Qd(rue(e),t,r,n,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function t1(e,t,r){if(e==null)return e;var n=[],i=0;return Qd(e,n,"","",function(a){return t.call(r,a,i++)}),n}function nue(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n))}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var oB=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function pB(e){var t=kt.T,r={};r.types=t!==null?t.types:null,kt.T=r;try{var n=e(),i=kt.S;i!==null&&i(r,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(SO,oB)}catch(a){oB(a)}finally{t!==null&&r.types!==null&&(t.types=r.types),kt.T=t}}function mB(e){var t=kt.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else pB(mB.bind(null,e))}var iue={map:t1,forEach:function(e,t,r){t1(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return t1(e,function(){t++}),t},toArray:function(e){return t1(e,function(t){return t})||[]},only:function(e){if(!AO(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ke.Activity=Wle;ke.Children=iue;ke.Component=ep;ke.Fragment=Zle;ke.Profiler=Fle;ke.PureComponent=wO;ke.StrictMode=Hle;ke.Suspense=Xle;ke.ViewTransition=Jle;ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=kt;ke.__COMPILER_RUNTIME={__proto__:null,c:function(e){return kt.H.useMemoCache(e)}};ke.addTransitionType=mB;ke.cache=function(e){return function(){return e.apply(null,arguments)}};ke.cacheSignal=function(){return null};ke.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=uB({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=""+t.key),t)!dB.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(n[a]=t[a]);var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];n.children=o}return zO(e.type,i,n)};ke.createContext=function(e){return e={$$typeof:qle,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Gle,_context:e},e};ke.createElement=function(e,t,r){var n,i={},a=null;if(t!=null)for(n in t.key!==void 0&&(a=""+t.key),t)dB.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(i[n]=t[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(n in o=e.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return zO(e,a,i)};ke.createRef=function(){return{current:null}};ke.forwardRef=function(e){return{$$typeof:Yle,render:e}};ke.isValidElement=AO;ke.lazy=function(e){return{$$typeof:sB,_payload:{_status:-1,_result:e},_init:nue}};ke.memo=function(e,t){return{$$typeof:Kle,type:e,compare:t===void 0?null:t}};ke.startTransition=pB;ke.unstable_useCacheRefresh=function(){return kt.H.useCacheRefresh()};ke.use=function(e){return kt.H.use(e)};ke.useActionState=function(e,t,r){return kt.H.useActionState(e,t,r)};ke.useCallback=function(e,t){return kt.H.useCallback(e,t)};ke.useContext=function(e){return kt.H.useContext(e)};ke.useDebugValue=function(){};ke.useDeferredValue=function(e,t){return kt.H.useDeferredValue(e,t)};ke.useEffect=function(e,t){return kt.H.useEffect(e,t)};ke.useEffectEvent=function(e){return kt.H.useEffectEvent(e)};ke.useId=function(){return kt.H.useId()};ke.useImperativeHandle=function(e,t,r){return kt.H.useImperativeHandle(e,t,r)};ke.useInsertionEffect=function(e,t){return kt.H.useInsertionEffect(e,t)};ke.useLayoutEffect=function(e,t){return kt.H.useLayoutEffect(e,t)};ke.useMemo=function(e,t){return kt.H.useMemo(e,t)};ke.useOptimistic=function(e,t){return kt.H.useOptimistic(e,t)};ke.useReducer=function(e,t,r){return kt.H.useReducer(e,t,r)};ke.useRef=function(e){return kt.H.useRef(e)};ke.useState=function(e){return kt.H.useState(e)};ke.useSyncExternalStore=function(e,t,r){return kt.H.useSyncExternalStore(e,t,r)};ke.useTransition=function(){return kt.H.useTransition()};ke.version="19.3.1"});var un=no((vNe,vB)=>{"use strict";vB.exports=hB()});var _B=no(cn=>{"use strict";var aue=un();function yB(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function bl(){}var zn={d:{f:bl,r:function(){throw Error(yB(522))},D:bl,C:bl,L:bl,m:bl,X:bl,S:bl,M:bl},p:0,findDOMNode:null},oue=Symbol.for("react.portal"),sue=Symbol.for("react.recoverable"),gB=Symbol.for("react.optimistic_key");function lue(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oue,key:n==null?null:n===gB?gB:""+n,children:e,containerInfo:t,implementation:r}}var tg=aue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function r1(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=zn;cn.browser=function(e){return{$$typeof:sue,_reason:e}};cn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(yB(299));return lue(e,t,null,r)};cn.flushSync=function(e){var t=tg.T,r=zn.p;try{if(tg.T=null,zn.p=2,e)return e()}finally{tg.T=t,zn.p=r,zn.d.f()}};cn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,zn.d.C(e,t))};cn.prefetchDNS=function(e){typeof e=="string"&&zn.d.D(e)};cn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,n=r1(r,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?zn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:a}):r==="script"&&zn.d.X(e,{crossOrigin:n,integrity:i,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};cn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=r1(t.as,t.crossOrigin);zn.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&zn.d.M(e)};cn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,n=r1(r,t.crossOrigin);zn.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};cn.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=r1(t.as,t.crossOrigin);zn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else zn.d.m(e)};cn.requestFormReset=function(e){zn.d.r(e)};cn.unstable_batchedUpdates=function(e,t){return e(t)};cn.useFormState=function(e,t,r){return tg.H.useFormState(e,t,r)};cn.useFormStatus=function(){return tg.H.useHostTransitionStatus()};cn.version="19.3.1"});var SB=no((yNe,xB)=>{"use strict";function bB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bB)}catch(e){console.error(e)}}bB(),xB.exports=_B()});var lF=no(PT=>{"use strict";var Sr=rB(),s3=un(),uue=SB();function B(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Bg(e){for(var t=e,r=t;r&&!r.alternate;)t=r,(t.flags&4098)!==0&&(e=t.return),r=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u3(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c3(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function TB(e){if(Bg(e)!==e)throw Error(B(188))}function cue(e){var t=e.alternate;if(!t){if(t=Bg(e),t===null)throw Error(B(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return TB(i),e;if(a===n)return TB(i),t;a=a.sibling}throw Error(B(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(B(189))}}if(r.alternate!==n)throw Error(B(190))}if(r.tag!==3)throw Error(B(188));return r.stateNode.current===r?e:t}function f3(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f3(e),t!==null)return t;e=e.sibling}return null}function Wn(e,t,r,n,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&r(e,n,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Wn(e.child,t,r,n,i,a))return!0;e=e.sibling}return!1}function Dc(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function wB(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function d3(e){var t=[null,null],r=Dc(e);return r===null||p3(t,e,r.child,{foundSelf:!1}),t}function p3(e,t,r,n){for(;r!==null;){if(r===t)n.foundSelf=!0;else if(r.tag===5||r.tag===27||r.tag===6){if(n.foundSelf)return e[1]=r,!0;e[0]=r}else if((r.tag!==22||r.memoizedState===null)&&p3(e,t,r.child,n))return!0;r=r.sibling}return!1}function xr(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(B(559))}}var sp=null,ak=null;function fue(e,t,r){return e===r?!0:e===t?(sp=e,!0):!1}function due(e,t,r){return e===r?(ak=e,!1):e===t?(ak!==null&&(sp=e),!0):!1}function EB(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ok(e,t,r){for(var n=0,i=e;i;i=r(i))n++;i=0;for(var a=t;a;a=r(a))i++;for(;0<n-i;)e=r(e),n--;for(;0<i-n;)t=r(t),i--;for(;n--;){if(e===t||t!==null&&e===t.alternate)return e;e=r(e),t=r(t)}return null}var Ot=Object.assign,pue=Symbol.for("react.element"),n1=Symbol.for("react.transitional.element"),lg=Symbol.for("react.portal"),lp=Symbol.for("react.fragment"),m3=Symbol.for("react.strict_mode"),sk=Symbol.for("react.profiler"),h3=Symbol.for("react.consumer"),mo=Symbol.for("react.context"),vM=Symbol.for("react.forward_ref"),lk=Symbol.for("react.suspense"),uk=Symbol.for("react.suspense_list"),gM=Symbol.for("react.memo"),wl=Symbol.for("react.lazy");Symbol.for("react.scope");var ck=Symbol.for("react.activity"),mue=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var hue=Symbol.for("react.memo_cache_sentinel"),fk=Symbol.for("react.view_transition"),vue=Symbol.for("react.recoverable"),zB=Symbol.iterator;function rg(e){return e===null||typeof e!="object"?null:(e=zB&&e[zB]||e["@@iterator"],typeof e=="function"?e:null)}var gue=Symbol.for("react.client.reference");function dk(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===gue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case lp:return"Fragment";case sk:return"Profiler";case m3:return"StrictMode";case lk:return"Suspense";case uk:return"SuspenseList";case ck:return"Activity";case fk:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case lg:return"Portal";case mo:return e.displayName||"Context";case h3:return(e._context.displayName||"Context")+".Consumer";case vM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gM:return t=e.displayName||null,t!==null?t:dk(e.type)||"Memo";case wl:t=e._payload,e=e._init;try{return dk(e(t))}catch{}}return null}var ug=Array.isArray,Ee=s3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt=uue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,vc={pending:!1,data:null,method:null,action:null},pk=[],up=-1;function xo(e){return{current:e}}function Yr(e){0>up||(e.current=pk[up],pk[up]=null,up--)}function Rt(e,t){up++,pk[up]=e.current,e.current=t}var yo=xo(null),zg=xo(null),Ml=xo(null),Z1=xo(null);function H1(e,t){switch(Rt(Ml,t),Rt(zg,e),Rt(yo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?j5(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=j5(t),e=PH(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Yr(yo),Rt(yo,e)}function Dp(){Yr(yo),Yr(zg),Yr(Ml)}function mk(e){var t=e.memoizedState;t!==null&&(Up._currentValue=t.memoizedState,Rt(Z1,e)),t=yo.current;var r=PH(t,e.type);t!==r&&(Rt(zg,e),Rt(yo,r))}function F1(e){zg.current===e&&(Yr(yo),Yr(zg)),Z1.current===e&&(Yr(Z1),Up._currentValue=vc)}var CO,AB;function Sl(e){if(CO===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);CO=t&&t[1]||"",AB=-1<r.stack.indexOf(`
|
|
45
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
46
|
+
`+CO+e+AB}var DO=!1;function NO(e,t){if(!e||DO)return"";DO=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(m){var d=m}Reflect.construct(e,[],f)}else{try{f.call()}catch(m){d=m}f=!1;try{var p=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),f=!0,new e}finally{f&&(p!==void 0?Object.defineProperty(e.prototype,"props",p):delete e.prototype.props)}}}else{try{throw Error()}catch(m){d=m}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(m){if(m&&d&&typeof m.stack=="string")return[m.stack,d.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=n.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split(`
|
|
47
|
+
`),u=s.split(`
|
|
48
|
+
`);for(i=n=0;n<l.length&&!l[n].includes("DetermineComponentFrameRoot");)n++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(n===l.length||i===u.length)for(n=l.length-1,i=u.length-1;1<=n&&0<=i&&l[n]!==u[i];)i--;for(;1<=n&&0<=i;n--,i--)if(l[n]!==u[i]){if(n!==1||i!==1)do if(n--,i--,0>i||l[n]!==u[i]){var c=`
|
|
49
|
+
`+l[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=i);break}}}finally{DO=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Sl(r):""}function yue(e,t){switch(e.tag){case 26:case 27:case 5:return Sl(e.type);case 16:return Sl("Lazy");case 13:return e.child!==t&&t!==null?Sl("Suspense Fallback"):Sl("Suspense");case 19:return Sl("SuspenseList");case 0:case 15:return NO(e.type,!1);case 11:return NO(e.type.render,!1);case 1:return NO(e.type,!0);case 31:return Sl("Activity");case 30:return Sl("ViewTransition");default:return""}}function CB(e){try{var t="",r=null;do t+=yue(e,r),r=e,e=e.return;while(e);return t}catch(n){return`
|
|
50
|
+
Error generating stack: `+n.message+`
|
|
51
|
+
`+n.stack}}var hk=Object.prototype.hasOwnProperty,yM=Sr.unstable_scheduleCallback,OO=Sr.unstable_cancelCallback,_ue=Sr.unstable_shouldYield,bue=Sr.unstable_requestPaint,Ti=Sr.unstable_now,xue=Sr.unstable_getCurrentPriorityLevel,v3=Sr.unstable_ImmediatePriority,g3=Sr.unstable_UserBlockingPriority,G1=Sr.unstable_NormalPriority,Sue=Sr.unstable_LowPriority,y3=Sr.unstable_IdlePriority,Tue=Sr.log,wue=Sr.unstable_setDisableYieldValue,Zg=null,wi=null;function Al(e){if(typeof Tue=="function"&&wue(e),wi&&typeof wi.setStrictMode=="function")try{wi.setStrictMode(Zg,e)}catch{}}var Ei=Math.clz32?Math.clz32:Aue,Eue=Math.log,zue=Math.LN2;function Aue(e){return e>>>=0,e===0?32:31-(Eue(e)/zue|0)|0}var i1=256,a1=262144,o1=4194304;function fc(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function yT(e,t,r){var n=e.pendingLanes;if(n===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=n&134217727;return s!==0?(n=s&~a,n!==0?i=fc(n):(o&=s,o!==0?i=fc(o):r||(r=s&~e,r!==0&&(i=fc(r))))):(s=n&~a,s!==0?i=fc(s):o!==0?i=fc(o):r||(r=n&~e,r!==0&&(i=fc(r)))),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,r=t&-t,a>=r||a===32&&(r&4194048)!==0)?t:i}function Hg(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _3(e,t){(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var n=31-Ei(r),i=1<<n;t|=e[n],r&=~i}return t}function Cue(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function b3(){var e=o1;return o1<<=1,(o1&62914560)===0&&(o1=4194304),e}function kO(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Fg(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Due(e,t,r,n,i,a){var o=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=o&~r;0<r;){var c=31-Ei(r),f=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var p=d[c];p!==null&&(p.lane&=-536870913)}r&=~f}n!==0&&x3(e,n,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function x3(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ei(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|r&261930}function S3(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ei(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}function T3(e,t){var r=t&-t;return r=(r&42)!==0?1:_M(r),(r&(e.suspendedLanes|t))!==0?0:r}function _M(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bM(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function w3(){var e=lt.p;return e!==0?e:(e=window.event,e===void 0?32:aF(e.type))}function DB(e,t){var r=lt.p;try{return lt.p=e,t()}finally{lt.p=r}}var ys=Math.random().toString(36).slice(2),Gr="__reactFiber$"+ys,Jn="__reactProps$"+ys,Bp="__reactContainer$"+ys,NB="__reactEvents$"+ys,Nue="__reactListeners$"+ys,Oue="__reactHandles$"+ys,OB="__reactResources$"+ys,Gg="__reactMarker$"+ys,q1="__reactLoad$"+ys;function _T(e){delete e[Gr],delete e[Jn],delete e[Nue],delete e[Oue]}function mc(e){var t;if(t=e[Gr])return t;for(var r=e.parentNode;r;){if(t=r[Bp]||r[Gr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Y5(e);e!==null;){if(r=e[Gr])return r;e=Y5(e)}return t}e=r,r=e.parentNode}return null}function Zp(e){if(e=e[Gr]||e[Bp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(B(33))}function _p(e){var t=e[OB];return t||(t=e[OB]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Or(e){e[Gg]=!0}function E3(e){e[q1]=void 0}var z3=new Set,A3={};function Nc(e,t){Np(e,t),Np(e+"Capture",t)}function Np(e,t){for(A3[e]=t,e=0;e<t.length;e++)z3.add(t[e])}var kue=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kB={},MB={};function Mue(e){return hk.call(MB,e)?!0:hk.call(kB,e)?!1:kue.test(e)?MB[e]=!0:(kB[e]=!0,!1)}var at=!1;function IB(){var e=at;return at=!1,e}function w1(e,t,r){if(Mue(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,r)}}function s1(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,r)}}function os(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,n)}}function _i(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function C3(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iue(e,t,r){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vk(e){if(!e._valueTracker){var t=C3(e)?"checked":"value";e._valueTracker=Iue(e,t,""+e[t])}}function D3(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=C3(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}var Rue=/[\n"\\]/g;function ea(e){return e.replace(Rue,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gk(e,t,r,n,i,a,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_i(t)):e.value!==""+_i(t)&&(e.value=""+_i(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?MO(e,_i(e.value)):MO(e,_i(t)):r!=null?MO(e,_i(r)):n!=null&&e.removeAttribute("value"),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+_i(s):e.removeAttribute("name")}function N3(e,t,r,n,i,a,o,s){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||r!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){vk(e);return}r=r!=null?""+_i(r):"",t=t!=null?""+_i(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),vk(e)}function MO(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function bp(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+_i(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function O3(e,t,r){if(t!=null&&(t=""+_i(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+_i(r):""}function k3(e,t,r,n){if(t==null){if(n!=null){if(r!=null)throw Error(B(92));if(ug(n)){if(1<n.length)throw Error(B(93));n=n[0]}r=n}r==null&&(r=""),t=r}r=_i(t),e.defaultValue=r,n=e.textContent,n===r&&n!==""&&n!==null&&(e.value=n),vk(e)}function Op(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Lue=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function RB(e,t,r){var n=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,r):typeof r!="number"||r===0||Lue.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function M3(e,t,r){if(t!=null&&typeof t!="object")throw Error(B(62));if(e=e.style,r!=null){for(var n in r)!r.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="",at=!0);for(var i in t)n=t[i],t.hasOwnProperty(i)&&r[i]!==n&&(RB(e,i,n),at=!0)}else for(var a in t)t.hasOwnProperty(a)&&RB(e,a,t[a])}function xM(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Pue=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$ue=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function E1(e){return $ue.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ho(){}var yk=null;function SM(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cp=null,xp=null;function LB(e){var t=Zp(e);if(t&&(e=t.stateNode)){var r=e[Jn]||null;e:switch(e=t.stateNode,t.type){case"input":if(gk(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+ea(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=n[Jn]||null;if(!i)throw Error(B(90));gk(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<r.length;t++)n=r[t],n.form===e.form&&D3(n)}break e;case"textarea":O3(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&bp(e,!!r.multiple,t,!1)}}}var IO=!1;function I3(e,t,r){if(IO)return e(t,r);IO=!0;try{var n=e(t);return n}finally{if(IO=!1,(cp!==null||xp!==null)&&(MT(),cp&&(t=cp,e=xp,xp=cp=null,LB(t),e)))for(t=0;t<e.length;t++)LB(e[t])}}function Ag(e,t){var r=e.stateNode;if(r===null)return null;var n=r[Jn]||null;if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(B(231,t,typeof r));return r}var ds=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_k=!1;if(ds)try{tp={},Object.defineProperty(tp,"passive",{get:function(){_k=!0}}),window.addEventListener("test",tp,tp),window.removeEventListener("test",tp,tp)}catch{_k=!1}var tp,Cl=null,TM=null,z1=null;function R3(){if(z1)return z1;var e,t=TM,r=t.length,n,i="value"in Cl?Cl.value:Cl.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return z1=i.slice(e,1<n?1-n:void 0)}function A1(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function l1(){return!0}function PB(){return!1}function Nn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?l1:PB,this.isPropagationStopped=PB,this}return Ot(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=l1)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=l1)},persist:function(){},isPersistent:l1}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bT=Nn(Yl),qg=Ot({},Yl,{view:0,detail:0}),Uue=Nn(qg),RO,LO,ng,xT=Ot({},qg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wM,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ng&&(ng&&e.type==="mousemove"?(RO=e.screenX-ng.screenX,LO=e.screenY-ng.screenY):LO=RO=0,ng=e),RO)},movementY:function(e){return"movementY"in e?e.movementY:LO}}),$B=Nn(xT),jue=Ot({},xT,{dataTransfer:0}),Vue=Nn(jue),Bue=Ot({},qg,{relatedTarget:0}),PO=Nn(Bue),Zue=Ot({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hue=Nn(Zue),Fue=Ot({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gue=Nn(Fue),que=Ot({},Yl,{data:0}),UB=Nn(que),Yue={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xue={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kue={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wue(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kue[e])?!!t[e]:!1}function wM(){return Wue}var Jue=Ot({},qg,{key:function(e){if(e.key){var t=Yue[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=A1(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xue[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wM,charCode:function(e){return e.type==="keypress"?A1(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?A1(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Que=Nn(Jue),ece=Ot({},xT,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jB=Nn(ece),tce=Ot({},Yl,{submitter:0}),rce=Nn(tce),nce=Ot({},qg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wM}),ice=Nn(nce),ace=Ot({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),oce=Nn(ace),sce=Ot({},xT,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lce=Nn(sce),uce=Ot({},Yl,{newState:0,oldState:0,source:0}),cce=Nn(uce),fce=[9,13,27,32],EM=ds&&"CompositionEvent"in window,pg=null;ds&&"documentMode"in document&&(pg=document.documentMode);var dce=ds&&"TextEvent"in window&&!pg,L3=ds&&(!EM||pg&&8<pg&&11>=pg),VB=" ",BB=!1;function P3(e,t){switch(e){case"keyup":return fce.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fp=!1;function pce(e,t){switch(e){case"compositionend":return $3(t);case"keypress":return t.which!==32?null:(BB=!0,VB);case"textInput":return e=t.data,e===VB&&BB?null:e;default:return null}}function mce(e,t){if(fp)return e==="compositionend"||!EM&&P3(e,t)?(e=R3(),z1=TM=Cl=null,fp=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return L3&&t.locale!=="ko"?null:t.data;default:return null}}var hce={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ZB(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hce[e.type]:t==="textarea"}function U3(e,t,r,n){cp?xp?xp.push(n):xp=[n]:cp=n,t=hT(t,"onChange"),0<t.length&&(r=new bT("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var mg=null,Cg=null;function vce(e){IH(e,0)}function ST(e){var t=cg(e);if(D3(t))return e}function HB(e,t){if(e==="change")return t}var j3=!1;ds&&(ds?(c1="oninput"in document,c1||($O=document.createElement("div"),$O.setAttribute("oninput","return;"),c1=typeof $O.oninput=="function"),u1=c1):u1=!1,j3=u1&&(!document.documentMode||9<document.documentMode));var u1,c1,$O;function FB(){mg&&(mg.detachEvent("onpropertychange",V3),Cg=mg=null)}function V3(e){if(e.propertyName==="value"&&ST(Cg)){var t=[];U3(t,Cg,e,SM(e)),I3(vce,t)}}function gce(e,t,r){e==="focusin"?(FB(),mg=t,Cg=r,mg.attachEvent("onpropertychange",V3)):e==="focusout"&&FB()}function yce(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ST(Cg)}function _ce(e,t){if(e==="click")return ST(t)}function bce(e,t){if(e==="input"||e==="change")return ST(t)}function xce(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ai=typeof Object.is=="function"?Object.is:xce;function Dg(e,t){if(Ai(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!hk.call(t,i)||!Ai(e[i],t[i]))return!1}return!0}function bk(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function GB(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qB(e,t){var r=GB(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=GB(r)}}function B3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?B3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Z3(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bk(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=bk(e.document)}return t}function zM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sce=ds&&"documentMode"in document&&11>=document.documentMode,dp=null,xk=null,hg=null,Sk=!1;function YB(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sk||dp==null||dp!==bk(n)||(n=dp,"selectionStart"in n&&zM(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),hg&&Dg(hg,n)||(hg=n,n=hT(xk,"onSelect"),0<n.length&&(t=new bT("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=dp)))}function uc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var pp={animationend:uc("Animation","AnimationEnd"),animationiteration:uc("Animation","AnimationIteration"),animationstart:uc("Animation","AnimationStart"),transitionrun:uc("Transition","TransitionRun"),transitionstart:uc("Transition","TransitionStart"),transitioncancel:uc("Transition","TransitionCancel"),transitionend:uc("Transition","TransitionEnd")},UO={},H3={};ds&&(H3=document.createElement("div").style,"AnimationEvent"in window||(delete pp.animationend.animation,delete pp.animationiteration.animation,delete pp.animationstart.animation),"TransitionEvent"in window||delete pp.transitionend.transition);function Oc(e){if(UO[e])return UO[e];if(!pp[e])return e;var t=pp[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in H3)return UO[e]=t[r];return e}var F3=Oc("animationend"),G3=Oc("animationiteration"),q3=Oc("animationstart"),Tce=Oc("transitionrun"),wce=Oc("transitionstart"),Ece=Oc("transitioncancel"),Y3=Oc("transitionend"),X3=new Map,Tk="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tk.push("scrollEnd");function Pa(e,t){X3.set(e,t),Nc(t,[e])}var zce=0;function ps(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=La.identifierPrefix;var r=zce++;return e="_"+e+"t_"+r.toString(32)+"_",t.autoName=e}function XB(e){if(e==null||typeof e=="string")return e;var t=null,r=Cp;if(r!==null)for(var n=0;n<r.length;n++){var i=e[r[n]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function _s(e,t){return e=XB(e),t=XB(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Y1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Wi=[],mp=0,AM=0;function TT(){for(var e=mp,t=AM=mp=0;t<e;){var r=Wi[t];Wi[t++]=null;var n=Wi[t];Wi[t++]=null;var i=Wi[t];Wi[t++]=null;var a=Wi[t];if(Wi[t++]=null,n!==null&&i!==null){var o=n.pending;o===null?i.next=i:(i.next=o.next,o.next=i),n.pending=i}a!==0&&K3(r,i,a)}}function wT(e,t,r,n){Wi[mp++]=e,Wi[mp++]=t,Wi[mp++]=r,Wi[mp++]=n,AM|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function CM(e,t,r,n){return wT(e,t,r,n),X1(e)}function kc(e,t){return wT(e,null,null,t),X1(e)}function K3(e,t,r){e.lanes|=r;var n=e.alternate;n!==null&&(n.lanes|=r);for(var i=!1,a=e.return;a!==null;)a.childLanes|=r,n=a.alternate,n!==null&&(n.childLanes|=r),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ei(r),e=a.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=r|536870912),a):null}function X1(e){if(50<Eg)throw Eg=0,P1=null,Error(B(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hp={};function Ace(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(e,t,r,n){return new Ace(e,t,r,n)}function DM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cs(e,t){var r=e.alternate;return r===null?(r=Xn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&1206910976,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function W3(e,t){e.flags&=1206910978;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function C1(e,t,r,n,i,a){var o=0;if(n=e,typeof n=="function")DM(n)&&(o=1);else if(typeof n=="string")o=Qfe(e,r,yo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(n){case ck:return e=Xn(31,r,t,i),e.elementType=ck,e.lanes=a,e;case lp:return gc(r.children,i,a,t);case m3:o=8,i|=24;break;case sk:return e=Xn(12,r,t,i|2),e.elementType=sk,e.lanes=a,e;case lk:return e=Xn(13,r,t,i),e.elementType=lk,e.lanes=a,e;case uk:return e=Xn(19,r,t,i),e.elementType=uk,e.lanes=a,e;case mue:case fk:return e=i|32,e=Xn(30,r,t,e),e.elementType=fk,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case mo:o=10;break e;case h3:o=9;break e;case vM:o=11;break e;case gM:o=14;break e;case wl:o=16,n=null;break e}o=29,r=Error(B(130,e===null?"null":typeof e,"")),n=null}return t=Xn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function gc(e,t,r,n){return e=Xn(7,e,n,t),e.lanes=r,e}function jO(e,t,r){return e=Xn(6,e,null,t),e.lanes=r,e}function J3(e){var t=Xn(18,null,null,0);return t.stateNode=e,t}function VO(e,t,r){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var KB=new WeakMap;function ta(e,t){if(typeof e=="object"&&e!==null){var r=KB.get(e);return r!==void 0?r:(t={value:e,source:t,stack:CB(t)},KB.set(e,t),t)}return{value:e,source:t,stack:CB(t)}}var vp=[],gp=0,K1=null,Ng=0,Ji=[],Qi=0,Zl=null,vo=1,go="";function ls(e,t){vp[gp++]=Ng,vp[gp++]=K1,K1=e,Ng=t}function Q3(e,t,r){Ji[Qi++]=vo,Ji[Qi++]=go,Ji[Qi++]=Zl,Zl=e;var n=vo;e=go;var i=32-Ei(n)-1;n&=~(1<<i),r+=1;var a=32-Ei(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,vo=1<<32-Ei(t)+i|r<<i|n,go=a+e}else vo=1<<a|r<<i|n,go=e}function ET(e){e.return!==null&&(ls(e,1),Q3(e,1,0))}function NM(e){for(;e===K1;)K1=vp[--gp],vp[gp]=null,Ng=vp[--gp],vp[gp]=null;for(;e===Zl;)Zl=Ji[--Qi],Ji[Qi]=null,go=Ji[--Qi],Ji[Qi]=null,vo=Ji[--Qi],Ji[Qi]=null}function eZ(e,t){Ji[Qi++]=vo,Ji[Qi++]=go,Ji[Qi++]=Zl,vo=t.id,go=t.overflow,Zl=e}var kr=null,It=null,Ve=!1,Il=null,ra=!1,wk=Error(B(519));function Hl(e){var t=Error(B(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Og(ta(t,e)),wk}function WB(e){var t=e.stateNode,r=e.type,n=e.memoizedProps;switch(t[Gr]=e,t[Jn]=n,r){case"dialog":Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":case"embed":Fe("load",t);break;case"video":case"audio":for(r=0;r<Rg.length;r++)Fe(Rg[r],t);break;case"source":Fe("error",t);break;case"img":case"image":case"link":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"input":Fe("invalid",t),N3(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Fe("invalid",t);break;case"textarea":Fe("invalid",t),k3(t,n.value,n.defaultValue,n.children)}r=n.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||n.suppressHydrationWarning===!0||LH(t.textContent,r)?(n.popover!=null&&(Fe("beforetoggle",t),Fe("toggle",t)),n.onScroll!=null&&Fe("scroll",t),n.onScrollEnd!=null&&Fe("scrollend",t),n.onClick!=null&&(t.onclick=ho),t=!0):t=!1,t||Hl(e,!0)}function W1(e){for(kr=e.return;kr;)switch(kr.tag){case 5:case 31:case 13:ra=!1;return;case 27:case 3:ra=!0;return;default:kr=kr.return}}function rp(e){if(e!==kr)return!1;if(!Ve)return W1(e),Ve=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||lM(e.type,e.memoizedProps)),r=!r),r&&It&&Hl(e),W1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));It=q5(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(317));It=q5(e)}else t===27?(t=It,Xl(e.type)?(e=dM,dM=null,It=e):It=t):It=kr?na(e.stateNode.nextSibling):null;return!0}function xc(){It=kr=null,Ve=!1}function BO(){var e=Il;return e!==null&&(qn===null?qn=e:qn.push.apply(qn,e),Il=null),e}function Og(e){Il===null?Il=[e]:Il.push(e)}var Ek=xo(null),Mc=null,us=null;function Dl(e,t,r){Rt(Ek,t._currentValue),t._currentValue=r}function fs(e){e._currentValue=Ek.current,Yr(Ek)}function D1(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function zk(e,t,r,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;e:for(;a!==null;){var s=a;a=i;for(var l=0;l<t.length;l++)if(s.context===t[l]){a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),D1(a.return,r,e),n||(o=null);break e}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(B(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),D1(o,r,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=r,o=i.alternate,o!==null&&(o.lanes|=r),D1(i.return,r,e),o=i.child,o=o!==null?o.sibling:null):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Sc(e,t,r,n){e=null;for(var i=t,a=!1;i!==null;){if(!a){if((i.flags&524288)!==0)a=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(B(387));if(o=o.memoizedProps,o!==null){var s=i.type;Ai(i.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(i===Z1.current){if(o=i.alternate,o===null)throw Error(B(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Up):e=[Up])}i=i.return}return e!==null&&zk(t,e,r,n),t.flags|=262144,e!==null}function J1(e){for(e=e.firstContext;e!==null;){if(!Ai(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tc(e){Mc=e,us=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qr(e){return tZ(Mc,e)}function f1(e,t){return Mc===null&&Tc(e),tZ(e,t)}function tZ(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},us===null){if(e===null)throw Error(B(308));us=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else us=us.next=t;return r}var Cce=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},Dce=Sr.unstable_scheduleCallback,Nce=Sr.unstable_NormalPriority,hr={$$typeof:mo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function OM(){return{controller:new Cce,data:new Map,refCount:0}}function Yg(e){e.refCount--,e.refCount===0&&Dce(Nce,function(){e.controller.abort()})}function JB(e,t){if((e.pendingLanes&4194048)!==0){var r=e.transitionTypes;for(r===null&&(r=e.transitionTypes=[]),e=0;e<t.length;e++){var n=t[e];r.indexOf(n)===-1&&r.push(n)}}}var fg=null;function Oce(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var vg=null,Ak=0,wc=0,Sp=null;function kce(e,t){if(vg===null){var r=vg=[];Ak=0,wc=aI(),Sp={status:"pending",value:void 0,then:function(n){r.push(n)}}}return Ak++,t.then(QB,QB),t}function QB(){if(--Ak===0&&(fg=null,vg!==null)){Sp!==null&&(Sp.status="fulfilled");var e=vg;vg=null,wc=0,Sp=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mce(e,t){var r=[],n={status:"pending",value:null,reason:null,then:function(i){r.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<r.length;i++)(0,r[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<r.length;i++)(0,r[i])(void 0)}),n}var e5=Ee.S;Ee.S=function(e,t){if(_H=Ti(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kce(e,t),fg!==null)for(var r=Lp;r!==null;)JB(r,fg),r=r.next;if(r=e.types,r!==null){for(var n=Lp;n!==null;)JB(n,r),n=n.next;if(wc!==0){n=fg,n===null&&(n=fg=[]);for(var i=0;i<r.length;i++){var a=r[i];n.indexOf(a)===-1&&n.push(a)}}}e5!==null&&e5(e,t)};var yc=xo(null);function kM(){var e=yc.current;return e!==null?e:Nt.pooledCache}function N1(e,t){t===null?Rt(yc,yc.current):Rt(yc,t.pool)}function rZ(){var e=kM();return e===null?null:{parent:hr._currentValue,pool:e}}var Hp=Error(B(460)),MM=Error(B(474)),zT=Error(B(542)),Q1={then:function(){}};function t5(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nZ(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ho,ho),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,n5(e),e===void 0&&!("reason"in t)?Error(B(600)):e;default:if(typeof t.status=="string")t.then(ho,ho);else{if(e=Nt,e!==null&&100<e.shellSuspendCounter)throw Error(B(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,n5(e),e}throw _c=t,Hp}}function dc(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(_c=r,Hp):r}}var _c=null;function r5(){if(_c===null)throw Error(B(459));var e=_c;return _c=null,e}function n5(e){if(e===Hp||e===zT)throw Error(B(483))}var Tp=null,kg=0;function d1(e){var t=kg;return kg+=1,Tp===null&&(Tp=[]),nZ(Tp,e,t)}function xl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function p1(e,t){throw t.$$typeof===pue?Error(B(525)):(e=Object.prototype.toString.call(t),Error(B(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function iZ(e){function t(v,g){if(e){var _=v.deletions;_===null?(v.deletions=[g],v.flags|=16):_.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v){for(var g=new Map;v!==null;)v.key===null?g.set(v.index,v):g.set(v.key,v),v=v.sibling;return g}function i(v,g){return v=cs(v,g),v.index=0,v.sibling=null,v}function a(v,g,_){return v.index=_,e?(_=v.alternate,_!==null?(_=_.index,_<g?(v.flags|=2,g):_):(v.flags|=134217730,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=134217730),v}function s(v,g,_,b){return g===null||g.tag!==6?(g=jO(_,v.mode,b),g.return=v,g):(g=i(g,_),g.return=v,g)}function l(v,g,_,b){var x=_.type;return x===lp?(v=c(v,g,_.props.children,b,_.key),xl(v,_),v):g!==null&&(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===wl&&dc(x)===g.type)?(g=i(g,_.props),xl(g,_),g.return=v,g):(g=C1(_.type,_.key,_.props,null,v.mode,b),xl(g,_),g.return=v,g)}function u(v,g,_,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==_.containerInfo||g.stateNode.implementation!==_.implementation?(g=VO(_,v.mode,b),g.return=v,g):(g=i(g,_.children||[]),g.return=v,g)}function c(v,g,_,b,x){return g===null||g.tag!==7?(g=gc(_,v.mode,b,x),g.return=v,g):(g=i(g,_),g.return=v,g)}function f(v,g,_){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=jO(""+g,v.mode,_),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case n1:return _=C1(g.type,g.key,g.props,null,v.mode,_),xl(_,g),_.return=v,_;case lg:return g=VO(g,v.mode,_),g.return=v,g;case wl:return g=dc(g),f(v,g,_)}if(ug(g)||rg(g))return g=gc(g,v.mode,_,null),g.return=v,g;if(typeof g.then=="function")return f(v,d1(g),_);if(g.$$typeof===mo)return f(v,f1(v,g),_);p1(v,g)}return null}function d(v,g,_,b){var x=g!==null?g.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return x!==null?null:s(v,g,""+_,b);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case n1:return _.key===x?l(v,g,_,b):null;case lg:return _.key===x?u(v,g,_,b):null;case wl:return _=dc(_),d(v,g,_,b)}if(ug(_)||rg(_))return x!==null?null:c(v,g,_,b,null);if(typeof _.then=="function")return d(v,g,d1(_),b);if(_.$$typeof===mo)return d(v,g,f1(v,_),b);p1(v,_)}return null}function p(v,g,_,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return v=v.get(_)||null,s(g,v,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case n1:return v=v.get(b.key===null?_:b.key)||null,l(g,v,b,x);case lg:return v=v.get(b.key===null?_:b.key)||null,u(g,v,b,x);case wl:return b=dc(b),p(v,g,_,b,x)}if(ug(b)||rg(b))return v=v.get(_)||null,c(g,v,b,x,null);if(typeof b.then=="function")return p(v,g,_,d1(b),x);if(b.$$typeof===mo)return p(v,g,_,f1(g,b),x);p1(g,b)}return null}function m(v,g,_,b){for(var x=null,S=null,T=g,E=g=0,z=null;T!==null&&E<_.length;E++){T.index>E?(z=T,T=null):z=T.sibling;var C=d(v,T,_[E],b);if(C===null){T===null&&(T=z);break}e&&T&&C.alternate===null&&t(v,T),g=a(C,g,E),S===null?x=C:S.sibling=C,S=C,T=z}if(E===_.length)return r(v,T),Ve&&ls(v,E),x;if(T===null){for(;E<_.length;E++)T=f(v,_[E],b),T!==null&&(g=a(T,g,E),S===null?x=T:S.sibling=T,S=T);return Ve&&ls(v,E),x}for(T=n(T);E<_.length;E++)z=p(T,v,E,_[E],b),z!==null&&(e&&(C=z.alternate,C!==null&&T.delete(C.key===null?E:C.key)),g=a(z,g,E),S===null?x=z:S.sibling=z,S=z);return e&&T.forEach(function(D){return t(v,D)}),Ve&&ls(v,E),x}function h(v,g,_,b){if(_==null)throw Error(B(151));for(var x=null,S=null,T=g,E=g=0,z=null,C=_.next();T!==null&&!C.done;E++,C=_.next()){T.index>E?(z=T,T=null):z=T.sibling;var D=d(v,T,C.value,b);if(D===null){T===null&&(T=z);break}e&&T&&D.alternate===null&&t(v,T),g=a(D,g,E),S===null?x=D:S.sibling=D,S=D,T=z}if(C.done)return r(v,T),Ve&&ls(v,E),x;if(T===null){for(;!C.done;E++,C=_.next())C=f(v,C.value,b),C!==null&&(g=a(C,g,E),S===null?x=C:S.sibling=C,S=C);return Ve&&ls(v,E),x}for(T=n(T);!C.done;E++,C=_.next())C=p(T,v,E,C.value,b),C!==null&&(e&&(z=C.alternate,z!==null&&T.delete(z.key===null?E:z.key)),g=a(C,g,E),S===null?x=C:S.sibling=C,S=C);return e&&T.forEach(function(O){return t(v,O)}),Ve&&ls(v,E),x}function y(v,g,_,b){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&_.props.ref===void 0&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case n1:e:{for(var x=_.key;g!==null;){if(g.key===x){if(x=_.type,x===lp){if(g.tag===7){r(v,g.sibling),b=i(g,_.props.children),xl(b,_),b.return=v,v=b;break e}}else if(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===wl&&dc(x)===g.type){r(v,g.sibling),b=i(g,_.props),xl(b,_),b.return=v,v=b;break e}r(v,g);break}else t(v,g);g=g.sibling}_.type===lp?(b=gc(_.props.children,v.mode,b,_.key),xl(b,_),b.return=v,v=b):(b=C1(_.type,_.key,_.props,null,v.mode,b),xl(b,_),b.return=v,v=b)}return o(v);case lg:e:{for(x=_.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){r(v,g.sibling),b=i(g,_.children||[]),b.return=v,v=b;break e}else{r(v,g);break}else t(v,g);g=g.sibling}b=VO(_,v.mode,b),b.return=v,v=b}return o(v);case wl:return _=dc(_),y(v,g,_,b)}if(ug(_))return m(v,g,_,b);if(rg(_)){if(x=rg(_),typeof x!="function")throw Error(B(150));return _=x.call(_),h(v,g,_,b)}if(typeof _.then=="function")return y(v,g,d1(_),b);if(_.$$typeof===mo)return y(v,g,f1(v,_),b);p1(v,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,g!==null&&g.tag===6?(r(v,g.sibling),b=i(g,_),b.return=v,v=b):(r(v,g),b=jO(_,v.mode,b),b.return=v,v=b),o(v)):r(v,g)}return function(v,g,_,b){try{kg=0;var x=y(v,g,_,b);return Tp=null,x}catch(T){if(T===Hp||T===zT)throw T;var S=Xn(29,T,null,v.mode);return S.lanes=b,S.return=v,S}finally{}}}var Ec=iZ(!0),aZ=iZ(!1),El=!1;function IM(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ck(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ll(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(st&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=X1(e),K3(e,null,r),t}return wT(e,n,t,r),X1(e)}function gg(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,S3(e,r)}}function ZO(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,callbacks:n.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Dk=!1;function yg(){if(Dk){var e=Sp;if(e!==null)throw e}}function _g(e,t,r,n){Dk=!1;var i=e.updateQueue;El=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var d=s.lane&-536870913,p=d!==s.lane;if(p?(We&d)===d:(n&d)===d){d!==0&&d===wc&&(Dk=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,h=s;d=t;var y=r;switch(h.tag){case 1:if(m=h.payload,typeof m=="function"){f=m.call(y,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,d=typeof m=="function"?m.call(y,f,d):m,d==null)break e;f=Ot({},f,d);break e;case 2:El=!0}}d=s.callback,d!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[d]:p.push(d))}else p={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,a===null&&(i.shared.lanes=0),ql|=o,e.lanes=o,e.memoizedState=f}}function oZ(e,t){if(typeof e!="function")throw Error(B(191,e));e.call(t)}function sZ(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)oZ(r[e],t)}var Fl=xo(null),eT=xo(0);function i5(e,t){e=gs,Rt(eT,e),Rt(Fl,t),gs=e|t.baseLanes}function Nk(){Rt(eT,gs),Rt(Fl,Fl.current)}function RM(){gs=eT.current,Yr(Fl),Yr(eT)}var Wr=xo(null),fn=null;function Pl(e){var t=e.alternate;Rt(Xr,Xr.current&1),Rt(Wr,e),fn===null&&(t===null||Fl.current!==null||t.memoizedState!==null)&&(fn=e)}function Ok(e){Rt(Xr,Xr.current),Rt(Wr,e),fn===null&&(fn=e)}function lZ(e){e.tag===22?(Rt(Xr,Xr.current),Rt(Wr,e),fn===null&&(fn=e)):$l()}function $l(){Rt(Xr,Xr.current),Rt(Wr,Wr.current)}function bi(e){Yr(Wr),fn===e&&(fn=null),Yr(Xr)}var Xr=xo(0);function Mg(e,t){Rt(Wr,Wr.current),Rt(Xr,t)}function LM(e){Yr(Xr),Yr(Wr),fn===e&&(fn=null)}function tT(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||fM(r)||uI(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ms=0,Le=null,At=null,mr=null,rT=!1,wp=!1,zc=!1,nT=0,Ig=0,Ep=null,Ice=0;function tr(){throw Error(B(321))}function PM(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ai(e[r],t[r]))return!1;return!0}function $M(e,t,r,n,i,a){return ms=a,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ee.H=e===null||e.memoizedState===null?UZ:jZ,zc=!1,a=r(n,i),zc=!1,wp&&(a=cZ(t,r,n,i)),uZ(e),a}function uZ(e){Ee.H=iT;var t=At!==null&&At.next!==null;if(ms=0,mr=At=Le=null,rT=!1,Ig=0,Ep=null,t)throw Error(B(300));e===null||vr||(e=e.dependencies,e!==null&&J1(e)&&(vr=!0))}function cZ(e,t,r,n){Le=e;var i=0;do{if(wp&&(Ep=null),Ig=0,wp=!1,25<=i)throw Error(B(301));if(i+=1,mr=At=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ee.H=Bce,a=t(r,n)}while(wp);return a}function Rce(){var e=Ee.H,t=e.useState()[0];return t=typeof t.then=="function"?Xg(t):t,e=e.useState()[0],(At!==null?At.memoizedState:null)!==e&&(Le.flags|=1024),t}function UM(){var e=nT!==0;return nT=0,e}function jM(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function VM(e){if(rT){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rT=!1}ms=0,mr=At=Le=null,wp=!1,Ig=nT=0,Ep=null}function Dn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mr===null?Le.memoizedState=mr=e:mr=mr.next=e,mr}function lr(){if(At===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=mr===null?Le.memoizedState:mr.next;if(t!==null)mr=t,At=e;else{if(e===null)throw Le.alternate===null?Error(B(467)):Error(B(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},mr===null?Le.memoizedState=mr=e:mr=mr.next=e}return mr}function AT(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xg(e){var t=Ig;return Ig+=1,Ep===null&&(Ep=[]),e=nZ(Ep,e,t),t=Le,(mr===null?t.memoizedState:mr.next)===null&&(t=t.alternate,Ee.H=t===null||t.memoizedState===null?UZ:jZ),e}function CT(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xg(e);if(e.$$typeof===vue)return;if(e.$$typeof===mo)return qr(e)}throw Error(B(438,String(e)))}function BM(e){var t=null,r=Le.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var n=Le.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=AT(),Le.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),n=0;n<e;n++)r[n]=hue;return t.index++,r}function hs(e,t){return typeof t=="function"?t(e):t}function O1(e){var t=lr();return ZM(t,At,e)}function ZM(e,t,r){var n=e.queue;if(n===null)throw Error(B(311));n.lastRenderedReducer=r;var i=e.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,n.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,l=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(We&f)===f:(ms&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===wc&&(c=!0);else if((ms&d)===d){u=u.next,d===wc&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=f,o=a):l=l.next=f,Le.lanes|=d,ql|=d;f=u.action,zc&&r(a,f),a=u.hasEagerState?u.eagerState:r(a,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,o=a):l=l.next=d,Le.lanes|=f,ql|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=s,!Ai(a,e.memoizedState)&&(vr=!0,c&&(r=Sp,r!==null)))throw r;e.memoizedState=a,e.baseState=o,e.baseQueue=l,n.lastRenderedState=a}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function HO(e){var t=lr(),r=t.queue;if(r===null)throw Error(B(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ai(a,t.memoizedState)||(vr=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function fZ(e,t,r){var n=Le,i=lr(),a=Ve;if(a){if(r===void 0)throw Error(B(407));r=r()}else r=t();var o=!Ai((At||i).memoizedState,r);if(o&&(i.memoizedState=r,vr=!0),i=i.queue,HM(mZ.bind(null,n,i,e),[e]),e=i.getSnapshot!==t||o||mr!==null&&(mr.memoizedState.tag&1)!==0,kp(e?9:8,{destroy:void 0},pZ.bind(null,n,i,r,t),null),e){if(n.flags|=2048,Nt===null)throw Error(B(349));a||(ms&127)!==0||dZ(n,t,r)}return r}function dZ(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Le.updateQueue,t===null?(t=AT(),Le.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function pZ(e,t,r,n){t.value=r,t.getSnapshot=n,hZ(t)&&vZ(e)}function mZ(e,t,r){return r(function(){hZ(t)&&vZ(e)})}function hZ(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ai(e,r)}catch{return!0}}function vZ(e){var t=kc(e,2);t!==null&&Kn(t,e,2)}function kk(e){var t=Dn();if(typeof e=="function"){var r=e;if(e=r(),zc){Al(!0);try{r()}finally{Al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function gZ(e,t,r,n){return e.baseState=r,ZM(e,At,typeof n=="function"?n:hs)}function Lce(e,t,r,n,i){if(NT(e))throw Error(B(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Ee.T!==null?r(!0):a.isTransition=!1,n(a),r=t.pending,r===null?(a.next=t.pending=a,yZ(t,a)):(a.next=r.next,t.pending=r.next=a)}}function yZ(e,t){var r=t.action,n=t.payload,i=e.state;if(t.isTransition){var a=Ee.T,o={};o.types=a!==null?a.types:null,Ee.T=o;try{var s=r(i,n),l=Ee.S;l!==null&&l(o,s),a5(e,t,s)}catch(u){Mk(e,t,u)}finally{a!==null&&o.types!==null&&(a.types=o.types),Ee.T=a}}else try{a=r(i,n),a5(e,t,a)}catch(u){Mk(e,t,u)}}function a5(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(n){o5(e,t,n)},function(n){return Mk(e,t,n)}):o5(e,t,r)}function o5(e,t,r){t.status="fulfilled",t.value=r,_Z(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,yZ(e,r)))}function Mk(e,t,r){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=r,_Z(t),t=t.next;while(t!==n)}e.action=null}function _Z(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bZ(e,t){return t}function s5(e,t){if(Ve){var r=Nt.formState;if(r!==null){e:{var n=Le;if(Ve){if(It){t:{for(var i=It,a=ra;i.nodeType!==8;){if(!a){i=null;break t}if(i=na(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){It=na(i.nextSibling),n=i.data==="F!";break e}}Hl(n)}n=!1}n&&(t=r[0])}}return r=Dn(),r.memoizedState=r.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bZ,lastRenderedState:t},r.queue=n,r=LZ.bind(null,Le,n),n.dispatch=r,n=kk(!1),a=YM.bind(null,Le,!1,n.queue),n=Dn(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,r=Lce.bind(null,Le,i,a,r),i.dispatch=r,n.memoizedState=e,[t,r,!1]}function l5(e){var t=lr();return xZ(t,At,e)}function xZ(e,t,r){if(t=ZM(e,t,bZ)[0],e=O1(hs)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Xg(t)}catch(o){throw o===Hp?zT:o}else n=t;t=lr();var i=t.queue,a=i.dispatch;return r!==t.memoizedState&&(Le.flags|=2048,kp(9,{destroy:void 0},Pce.bind(null,i,r),null)),[n,a,e]}function Pce(e,t){e.action=t}function u5(e){var t=lr(),r=At;if(r!==null)return xZ(t,r,e);lr(),t=t.memoizedState,r=lr();var n=r.queue.dispatch;return r.memoizedState=e,[t,n,!1]}function kp(e,t,r,n){return e={tag:e,create:r,deps:n,inst:t,next:null},t=Le.updateQueue,t===null&&(t=AT(),Le.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function SZ(){return lr().memoizedState}function k1(e,t,r,n){var i=Dn();Le.flags|=e,i.memoizedState=kp(1|t,{destroy:void 0},r,n===void 0?null:n)}function DT(e,t,r,n){var i=lr();n=n===void 0?null:n;var a=i.memoizedState.inst;At!==null&&n!==null&&PM(n,At.memoizedState.deps)?i.memoizedState=kp(t,a,r,n):(Le.flags|=e,i.memoizedState=kp(1|t,a,r,n))}function c5(e,t){k1(8390656,8,e,t)}function HM(e,t){DT(2048,8,e,t)}function $ce(e){Le.flags|=4;var t=Le.updateQueue;if(t===null)t=AT(),Le.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function TZ(e){var t=lr().memoizedState;return $ce({ref:t,nextImpl:e}),function(){if((st&2)!==0)throw Error(B(440));return t.impl.apply(void 0,arguments)}}function wZ(e,t){return DT(4,2,e,t)}function EZ(e,t){return DT(4,4,e,t)}function zZ(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function AZ(e,t,r){r=r!=null?r.concat([e]):null,DT(4,4,zZ.bind(null,t,e),r)}function FM(){}function CZ(e,t){var r=lr();t=t===void 0?null:t;var n=r.memoizedState;return t!==null&&PM(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function DZ(e,t){var r=lr();t=t===void 0?null:t;var n=r.memoizedState;if(t!==null&&PM(t,n[1]))return n[0];if(n=e(),zc){Al(!0);try{e()}finally{Al(!1)}}return r.memoizedState=[n,t],n}function GM(e,t,r){return r===void 0||(ms&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=xH(),Le.lanes|=e,ql|=e,r)}function NZ(e,t,r,n){return Ai(r,t)?r:Fl.current!==null?(e=GM(e,r,n),Ai(e,t)||(vr=!0),e):(ms&106)===0||(ms&1073741824)!==0&&(We&261930)===0?(vr=!0,e.memoizedState=r):(e=xH(),Le.lanes|=e,ql|=e,t)}function OZ(e,t,r,n,i){var a=lt.p;lt.p=a!==0&&8>a?a:8;var o=Ee.T,s={};s.types=o!==null?o.types:null,Ee.T=s,YM(e,!1,t,r);try{var l=i(),u=Ee.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=Mce(l,n);bg(e,t,c,zi(e))}else bg(e,t,n,zi(e))}catch(f){bg(e,t,{then:function(){},status:"rejected",reason:f},zi())}finally{lt.p=a,o!==null&&s.types!==null&&(o.types=s.types),Ee.T=o}}function Uce(){}function Ik(e,t,r,n){if(e.tag!==5)throw Error(B(476));var i=kZ(e).queue;OZ(e,i,t,vc,r===null?Uce:function(){return MZ(e),r(n)})}function kZ(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:vc,baseState:vc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:vc},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function MZ(e){var t=kZ(e);t.next===null&&(t=e.alternate.memoizedState),bg(e,t.next.queue,{},zi())}function qM(){return qr(Up)}function IZ(){return lr().memoizedState}function RZ(){return lr().memoizedState}function jce(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=zi();e=Rl(r);var n=Ll(t,e,r);n!==null&&(Kn(n,t,r),gg(n,t,r)),t={cache:OM()},e.payload=t;return}t=t.return}}function Vce(e,t,r){var n=zi();r={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},NT(e)?PZ(t,r):(r=CM(e,t,r,n),r!==null&&(Kn(r,e,n),$Z(r,t,n)))}function LZ(e,t,r){var n=zi();bg(e,t,r,n)}function bg(e,t,r,n){var i={lane:n,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(NT(e))PZ(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ai(s,o))return wT(e,t,i,0),Nt===null&&TT(),!1}catch{}finally{}if(r=CM(e,t,i,n),r!==null)return Kn(r,e,n),$Z(r,t,n),!0}return!1}function YM(e,t,r,n){if(n={lane:2,revertLane:aI(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},NT(e)){if(t)throw Error(B(479))}else t=CM(e,r,n,2),t!==null&&Kn(t,e,2)}function NT(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function PZ(e,t){wp=rT=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $Z(e,t,r){if((r&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,S3(e,r)}}var iT={readContext:qr,use:CT,useCallback:tr,useContext:tr,useEffect:tr,useImperativeHandle:tr,useLayoutEffect:tr,useInsertionEffect:tr,useMemo:tr,useReducer:tr,useRef:tr,useState:tr,useDebugValue:tr,useDeferredValue:tr,useTransition:tr,useSyncExternalStore:tr,useId:tr,useHostTransitionStatus:tr,useFormState:tr,useActionState:tr,useOptimistic:tr,useMemoCache:tr,useCacheRefresh:tr,useEffectEvent:tr},UZ={readContext:qr,use:CT,useCallback:function(e,t){return Dn().memoizedState=[e,t===void 0?null:t],e},useContext:qr,useEffect:c5,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,k1(4194308,4,zZ.bind(null,t,e),r)},useLayoutEffect:function(e,t){return k1(4194308,4,e,t)},useInsertionEffect:function(e,t){k1(4,2,e,t)},useMemo:function(e,t){var r=Dn();t=t===void 0?null:t;var n=e();if(zc){Al(!0);try{e()}finally{Al(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=Dn();if(r!==void 0){var i=r(t);if(zc){Al(!0);try{r(t)}finally{Al(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Vce.bind(null,Le,e),[n.memoizedState,e]},useRef:function(e){var t=Dn();return e={current:e},t.memoizedState=e},useState:function(e){e=kk(e);var t=e.queue,r=LZ.bind(null,Le,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:FM,useDeferredValue:function(e,t){var r=Dn();return GM(r,e,t)},useTransition:function(){var e=kk(!1);return e=OZ.bind(null,Le,e.queue,!0,!1),Dn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=Le,i=Dn();if(Ve){if(r===void 0)throw Error(B(407));r=r()}else{if(r=t(),Nt===null)throw Error(B(349));(We&127)!==0||dZ(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,c5(mZ.bind(null,n,a,e),[e]),n.flags|=2048,kp(9,{destroy:void 0},pZ.bind(null,n,a,r,t),null),r},useId:function(){var e=Dn(),t=Nt.identifierPrefix;if(Ve){var r=go,n=vo;r=(n&~(1<<32-Ei(n)-1)).toString(32)+r,t="_"+t+"R_"+r,r=nT++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=Ice++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qM,useFormState:s5,useActionState:s5,useOptimistic:function(e){var t=Dn();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=YM.bind(null,Le,!0,r),r.dispatch=t,[e,t]},useMemoCache:BM,useCacheRefresh:function(){return Dn().memoizedState=jce.bind(null,Le)},useEffectEvent:function(e){var t=Dn(),r={impl:e};return t.memoizedState=r,function(){if((st&2)!==0)throw Error(B(440));return r.impl.apply(void 0,arguments)}}},jZ={readContext:qr,use:CT,useCallback:CZ,useContext:qr,useEffect:HM,useImperativeHandle:AZ,useInsertionEffect:wZ,useLayoutEffect:EZ,useMemo:DZ,useReducer:O1,useRef:SZ,useState:function(){return O1(hs)},useDebugValue:FM,useDeferredValue:function(e,t){var r=lr();return NZ(r,At.memoizedState,e,t)},useTransition:function(){var e=O1(hs)[0],t=lr().memoizedState;return[typeof e=="boolean"?e:Xg(e),t]},useSyncExternalStore:fZ,useId:IZ,useHostTransitionStatus:qM,useFormState:l5,useActionState:l5,useOptimistic:function(e,t){var r=lr();return gZ(r,At,e,t)},useMemoCache:BM,useCacheRefresh:RZ,useEffectEvent:TZ},Bce={readContext:qr,use:CT,useCallback:CZ,useContext:qr,useEffect:HM,useImperativeHandle:AZ,useInsertionEffect:wZ,useLayoutEffect:EZ,useMemo:DZ,useReducer:HO,useRef:SZ,useState:function(){return HO(hs)},useDebugValue:FM,useDeferredValue:function(e,t){var r=lr();return At===null?GM(r,e,t):NZ(r,At.memoizedState,e,t)},useTransition:function(){var e=HO(hs)[0],t=lr().memoizedState;return[typeof e=="boolean"?e:Xg(e),t]},useSyncExternalStore:fZ,useId:IZ,useHostTransitionStatus:qM,useFormState:u5,useActionState:u5,useOptimistic:function(e,t){var r=lr();return At!==null?gZ(r,At,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:BM,useCacheRefresh:RZ,useEffectEvent:TZ};function FO(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ot({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Rk={enqueueSetState:function(e,t,r){e=e._reactInternals;var n=zi(),i=Rl(n);i.payload=t,r!=null&&(i.callback=r),t=Ll(e,i,n),t!==null&&(Kn(t,e,n),gg(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=zi(),i=Rl(n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Ll(e,i,n),t!==null&&(Kn(t,e,n),gg(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=zi(),n=Rl(r);n.tag=2,t!=null&&(n.callback=t),t=Ll(e,n,r),t!==null&&(Kn(t,e,r),gg(t,e,r))}};function f5(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Dg(r,n)||!Dg(i,a):!0}function d5(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Rk.enqueueReplaceState(t,t.state,null)}function Ac(e,t){var r=t;if("ref"in t){r={};for(var n in t)n!=="ref"&&(r[n]=t[n])}if(e=e.defaultProps){r===t&&(r=Ot({},r));for(var i in e)r[i]===void 0&&(r[i]=e[i])}return r}function VZ(e){Y1(e)}function BZ(e){console.error(e)}function ZZ(e){Y1(e)}function aT(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function p5(e,t,r){try{var n=e.onCaughtError;n(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Lk(e,t,r){return r=Rl(r),r.tag=3,r.payload={element:null},r.callback=function(){aT(e,t)},r}function HZ(e){return e=Rl(e),e.tag=3,e}function FZ(e,t,r,n){var i=r.type.getDerivedStateFromError;if(typeof i=="function"){var a=n.value;e.payload=function(){return i(a)},e.callback=function(){p5(t,r,n)}}var o=r.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){p5(t,r,n),typeof i!="function"&&(Ul===null?Ul=new Set([this]):Ul.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})})}function Zce(e,t,r,n,i){if(r.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=r.alternate,t!==null&&Sc(t,r,i,!0),r=Wr.current,r!==null){switch(r.tag){case 31:case 13:case 19:return fn===null?pT():r.alternate===null&&rr===0&&(rr=3),r.flags&=-257,r.flags|=65536,r.lanes=i,n===Q1?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([n]):t.add(n),JO(e,n,i)),!1;case 22:return r.flags|=65536,n===Q1?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([n]):r.add(n)),JO(e,n,i)),!1}throw Error(B(435,r.tag))}return JO(e,n,i),pT(),!1}if(Ve)return t=Wr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==wk&&(e=Error(B(422),{cause:n}),Og(ta(e,r)))):(n!==wk&&(t=Error(B(423),{cause:n}),Og(ta(t,r))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=ta(n,r),i=Lk(e.stateNode,n,i),ZO(e,i),rr!==4&&(rr=2)),!1;var a=Error(B(520),{cause:n});if(a=ta(a,r),wg===null?wg=[a]:wg.push(a),rr!==4&&(rr=2),t===null)return!0;n=ta(n,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=i&-i,r.lanes|=e,e=Lk(r.stateNode,n,e),ZO(r,e),!1;case 1:if(t=r.type,a=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Ul===null||!Ul.has(a))))return r.flags|=65536,i&=-i,r.lanes|=i,i=HZ(i),FZ(i,e,r,n),ZO(r,i),!1;break;case 22:if(r.memoizedState!==null)return r.flags|=65536,!1}r=r.return}while(r!==null);return!1}var XM=Error(B(461)),vr=!1;function br(e,t,r,n){t.child=e===null?aZ(t,null,r,n):Ec(t,e.child,r,n)}function m5(e,t,r,n,i){r=r.render;var a=t.ref;if("ref"in n){var o={};for(var s in n)s!=="ref"&&(o[s]=n[s])}else o=n;return Tc(t),n=$M(e,t,r,o,a,i),s=UM(),e!==null&&!vr?(jM(e,t,i),vs(e,t,i)):(Ve&&s&&ET(t),t.flags|=1,br(e,t,n,i),t.child)}function h5(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!DM(a)&&a.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=a,GZ(e,t,a,n,i)):(e=C1(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!WM(e,i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Dg,r(o,n)&&e.ref===t.ref)return vs(e,t,i)}return t.flags|=1,e=cs(a,n),e.ref=t.ref,e.return=t,t.child=e}function GZ(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Dg(a,n)&&e.ref===t.ref)if(vr=!1,t.pendingProps=n=a,WM(e,i))(e.flags&131072)!==0&&(vr=!0);else return t.lanes=e.lanes,vs(e,t,i)}return Pk(e,t,r,n,i)}function qZ(e,t,r,n){var i=n.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|r:r,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~a}else n=0,t.child=null;return v5(e,t,a,r,n)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&N1(t,a!==null?a.cachePool:null),a!==null?i5(t,a):Nk(),lZ(t);else return n=t.lanes=536870912,v5(e,t,a!==null?a.baseLanes|r:r,r,n)}else a!==null?(N1(t,a.cachePool),i5(t,a),$l(),t.memoizedState=null):(e!==null&&N1(t,null),Nk(),$l());return br(e,t,i,r),t.child}function xg(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function v5(e,t,r,n,i){var a=kM();return a=a===null?null:{parent:hr._currentValue,pool:a},t.memoizedState={baseLanes:r,cachePool:a},e!==null&&N1(t,null),Nk(),lZ(t),e!==null&&Sc(e,t,n,!0),t.childLanes=i,null}function M1(e,t){return t=OT({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function g5(e,t,r){return Ec(t,e.child,null,r),e=M1(t,t.pendingProps),e.flags|=2,bi(t),t.memoizedState=null,e}function Hce(e,t,r){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(n.mode==="hidden")return e=M1(t,n),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},xg(null,e);if(Ok(t),(e=It)?(e=qH(e,ra),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zl!==null?{id:vo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},r=J3(e),r.return=t,t.child=r,kr=t,It=null)):e=null,e===null)throw Hl(t);return t.lanes=536870912,null}return M1(t,n)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Ok(t),i)if(t.flags&256)t.flags&=-257,t=g5(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(B(558));else if(vr||Sc(e,t,r,!1),i=(r&e.childLanes)!==0,vr||i){if(Fl.current===null){if(n=Nt,n!==null&&(o=T3(n,r),o!==0&&o!==a.retryLane))throw a.retryLane=o,kc(e,o),Kn(n,e,o),XM;pT()}t=g5(e,t,r)}else e=a.treeContext,It=na(o.nextSibling),kr=t,Ve=!0,Il=null,ra=!1,e!==null&&eZ(t,e),t=M1(t,n),t.flags|=134221824;return t}return e=cs(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ip(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(B(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function Pk(e,t,r,n,i){return Tc(t),r=$M(e,t,r,n,void 0,i),n=UM(),e!==null&&!vr?(jM(e,t,i),vs(e,t,i)):(Ve&&n&&ET(t),t.flags|=1,br(e,t,r,i),t.child)}function y5(e,t,r,n,i,a){return Tc(t),t.updateQueue=null,r=cZ(t,n,r,i),uZ(e),n=UM(),e!==null&&!vr?(jM(e,t,a),vs(e,t,a)):(Ve&&n&&ET(t),t.flags|=1,br(e,t,r,a),t.child)}function _5(e,t,r,n,i){if(Tc(t),t.stateNode===null){var a=hp,o=r.contextType;typeof o=="object"&&o!==null&&(a=qr(o)),a=new r(n,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Rk,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=n,a.state=t.memoizedState,a.refs={},IM(t),o=r.contextType,a.context=typeof o=="object"&&o!==null?qr(o):hp,a.state=t.memoizedState,o=r.getDerivedStateFromProps,typeof o=="function"&&(FO(t,r,o,n),a.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&Rk.enqueueReplaceState(a,a.state,null),_g(t,n,a,i),yg(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,l=Ac(r,s);a.props=l;var u=a.context,c=r.contextType;o=hp,typeof c=="object"&&c!==null&&(o=qr(c));var f=r.getDerivedStateFromProps;c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s||u!==o)&&d5(t,a,n,o),El=!1;var d=t.memoizedState;a.state=d,_g(t,n,a,i),yg(),u=t.memoizedState,s||d!==u||El?(typeof f=="function"&&(FO(t,r,f,n),u=t.memoizedState),(l=El||f5(t,r,l,n,d,u,o))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=o,n=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Ck(e,t),o=t.memoizedProps,c=Ac(r,o),a.props=c,f=t.pendingProps,d=a.context,u=r.contextType,l=hp,typeof u=="object"&&u!==null&&(l=qr(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==f||d!==l)&&d5(t,a,n,l),El=!1,d=t.memoizedState,a.state=d,_g(t,n,a,i),yg();var p=t.memoizedState;o!==f||d!==p||El||e!==null&&e.dependencies!==null&&J1(e.dependencies)?(typeof s=="function"&&(FO(t,r,s,n),p=t.memoizedState),(c=El||f5(t,r,c,n,d,p,l)||e!==null&&e.dependencies!==null&&J1(e.dependencies))?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return a=n,ip(e,t),n=(t.flags&128)!==0,a||n?(a=t.stateNode,r=n&&typeof r.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&n?(t.child=Ec(t,e.child,null,i),t.child=Ec(t,null,r,i)):br(e,t,r,i),t.memoizedState=a.state,e=t.child):e=vs(e,t,i),e}function b5(e,t,r,n){return xc(),t.flags|=256,br(e,t,r,n),t.child}var $k={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uk(e){return{baseLanes:e,cachePool:rZ()}}function jk(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Si),e}function YZ(e,t,r){var n=t.pendingProps,i=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(Xr.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(i?Pl(t):$l(),(e=It)?(e=qH(e,ra),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zl!==null?{id:vo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},r=J3(e),r.return=t,t.child=r,kr=t,It=null)):e=null,e===null)throw Hl(t);return uI(e)?t.lanes=32:t.lanes=536870912,null}return a=n.children,n=n.fallback,i?($l(),i=t.mode,a=OT({mode:"hidden",children:a},i),n=gc(n,i,r,null),a.return=t,n.return=t,a.sibling=n,t.child=a,n=t.child,n.memoizedState=Uk(r),n.childLanes=jk(e,o,r),t.memoizedState=$k,xg(null,n)):(Pl(t),KM(t,a))}var s=e.memoizedState;if(s!==null){var l=s.dehydrated;if(l!==null)return Fce(e,t,a,o,n,l,s,r)}return i?($l(),i=n.fallback,a=t.mode,s=e.child,l=s.sibling,n=cs(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&1206910976,l!==null?i=cs(l,i):(i=gc(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,xg(null,n),n=t.child,i=e.child.memoizedState,i===null?i=Uk(r):(a=i.cachePool,a!==null?(s=hr._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=rZ(),i={baseLanes:i.baseLanes|r,cachePool:a}),n.memoizedState=i,n.childLanes=jk(e,o,r),t.memoizedState=$k,xg(e.child,n)):(Pl(t),r=e.child,e=r.sibling,r=cs(r,{mode:"visible",children:n.children}),r.return=t,r.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=r,t.memoizedState=null,r)}function KM(e,t){return t=OT({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function OT(e,t){return e=Xn(22,e,null,t),e.lanes=0,e}function m1(e,t,r){return Ec(t,e.child,null,r),e=KM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fce(e,t,r,n,i,a,o,s){if(r)return t.flags&256?(Pl(t),t.flags&=-257,m1(e,t,s)):t.memoizedState!==null?($l(),t.child=e.child,t.flags|=128,null):($l(),a=i.fallback,o=t.mode,i=OT({mode:"visible",children:i.children},o),a=gc(a,o,s,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,Ec(t,e.child,null,s),i=t.child,i.memoizedState=Uk(s),i.childLanes=jk(e,n,s),t.memoizedState=$k,xg(null,i));if(Pl(t),uI(a)){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,n!==""&&(i=Error(B(419)),i.stack="",i.digest=n,Og({value:i,source:null,stack:null})),m1(e,t,s)}if(vr||Sc(e,t,s,!1),n=(s&e.childLanes)!==0,vr||n){if(Fl.current!==null)return m1(e,t,s);if(n=Nt,n!==null&&(i=T3(n,s),i!==0&&i!==o.retryLane))throw o.retryLane=i,kc(e,i),Kn(n,e,i),XM;return fM(a)||pT(),m1(e,t,s)}return fM(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,It=na(a.nextSibling),kr=t,Ve=!0,Il=null,ra=!1,e!==null&&eZ(t,e),t=KM(t,i.children),t.flags|=134221824,t)}function x5(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),D1(e.return,t,r)}function S5(e){for(var t=null;e!==null;){var r=e.alternate;r!==null&&tT(r)===null&&(t=e),e=e.sibling}return t}function h1(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.treeForkCount=a)}function GO(e){var t=e.child;for(e.child=null;t!==null;){var r=t.sibling;t.sibling=e.child,e.child=t,t=r}}function Vk(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;n=n.children;var o=Xr.current;if(t.flags&128)return Mg(t,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,t.flags|=128):o&=1,Mg(t,o),i==="backwards"&&e!==null?(GO(e),br(e,t,n,r),GO(e)):br(e,t,n,r),n=Ve?Ng:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&x5(e,r,t);else if(e.tag===19)x5(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":r=S5(t.child),r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null,GO(t)),h1(t,!0,i,null,a,n);break;case"unstable_legacy-backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&tT(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}h1(t,!0,r,null,a,n);break;case"together":h1(t,!1,null,null,void 0,n);break;case"independent":t.memoizedState=null;break;default:r=S5(t.child),r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),h1(t,!1,i,r,a,n)}return t.child}function T5(e,t,r){var n=t.pendingProps;return Dl(t,t.type,n.value),br(e,t,n.children,r),t.child}function vs(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ql|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Sc(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(B(153));if(t.child!==null){for(e=t.child,r=cs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=cs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function WM(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&J1(e)))}function Gce(e,t,r){switch(t.tag){case 3:H1(t,t.stateNode.containerInfo),Dl(t,hr,e.memoizedState.cache),xc();break;case 27:case 5:mk(t);break;case 4:H1(t,t.stateNode.containerInfo);break;case 10:Dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ok(t),null;break;case 13:var n=t.memoizedState;if(n!==null){if(n.dehydrated!==null)return Pl(t),t.flags|=128,null;n=Sc(e,t,r,!1);var i=t.child.childLanes;return n||(r&i)!==0?YZ(e,t,r):(Pl(t),e=vs(e,t,r),e!==null?e.sibling:null)}Pl(t);break;case 19:if(t.flags&128)return Vk(e,t,r);if(i=(e.flags&128)!==0,n=(r&t.childLanes)!==0,n||(Sc(e,t,r,!1),n=(r&t.childLanes)!==0),i){if(n)return Vk(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mg(t,Xr.current),n)break;return null;case 22:return t.lanes=0,qZ(e,t,r,t.pendingProps);case 24:Dl(t,hr,e.memoizedState.cache)}return vs(e,t,r)}function XZ(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)vr=!0;else{if(!WM(e,r)&&(t.flags&128)===0)return vr=!1,Gce(e,t,r);vr=(e.flags&131072)!==0}else vr=!1,Ve&&(t.flags&1048576)!==0&&Q3(t,Ng,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=dc(t.elementType),t.type=e,typeof e=="function")DM(e)?(n=Ac(e,n),t.tag=1,t=_5(null,t,e,n,r)):(t.tag=0,t=Pk(null,t,e,n,r));else{if(e!=null){var i=e.$$typeof;if(i===vM){t.tag=11,t=m5(null,t,e,n,r);break e}else if(i===gM){t.tag=14,t=h5(null,t,e,n,r);break e}else if(i===mo){t.tag=10,t.type=e,t=T5(null,t,r);break e}}throw t=dk(e)||e,Error(B(306,t,""))}}return t;case 0:return Pk(e,t,t.type,t.pendingProps,r);case 1:return n=t.type,i=Ac(n,t.pendingProps),_5(e,t,n,i,r);case 3:e:{if(H1(t,t.stateNode.containerInfo),e===null)throw Error(B(387));n=t.pendingProps;var a=t.memoizedState;i=a.element,Ck(e,t),_g(t,n,null,r);var o=t.memoizedState;if(n=o.cache,Dl(t,hr,n),n!==a.cache&&zk(t,[hr],r,!0),yg(),n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=b5(e,t,n,r);break e}else if(n!==i){i=ta(Error(B(424)),t),Og(i),t=b5(e,t,n,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(It=na(e.firstChild),kr=t,Ve=!0,Il=null,ra=!0,r=aZ(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|134221824,r=r.sibling}else{if(xc(),n===i){t=vs(e,t,r);break e}br(e,t,n,r)}t=t.child}return t;case 26:return ip(e,t),e===null?(r=K5(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ve||(t.stateNode=$H(t.type,t.pendingProps,Ml.current,t)):t.memoizedState=K5(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return mk(t),e===null&&Ve&&(n=t.stateNode=YH(t.type,t.pendingProps,Ml.current),kr=t,ra=!0,i=It,Xl(t.type)?(dM=i,It=na(n.firstChild)):It=i),br(e,t,t.pendingProps.children,r),ip(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((i=n=It)&&(n=$fe(n,t.type,t.pendingProps,ra),n!==null?(t.stateNode=n,kr=t,It=na(n.firstChild),ra=!1,i=!0):i=!1),i||Hl(t)),mk(t),i=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,n=a.children,lM(i,a)?n=null:o!==null&&lM(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=$M(e,t,Rce,null,null,r),Up._currentValue=i),ip(e,t),br(e,t,n,r),t.child;case 6:return e===null&&Ve&&((e=r=It)&&(r=Ufe(r,t.pendingProps,ra),r!==null?(t.stateNode=r,kr=t,It=null,e=!0):e=!1),e||Hl(t)),null;case 13:return YZ(e,t,r);case 4:return H1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ec(t,null,n,r):br(e,t,n,r),t.child;case 11:return m5(e,t,t.type,t.pendingProps,r);case 7:return n=t.pendingProps,ip(e,t),br(e,t,n,r),t.child;case 8:return br(e,t,t.pendingProps.children,r),t.child;case 12:return br(e,t,t.pendingProps.children,r),t.child;case 10:return T5(e,t,r);case 9:return i=t.type._context,n=t.pendingProps.children,Tc(t),i=qr(i),n=n(i),t.flags|=1,br(e,t,n,r),t.child;case 14:return h5(e,t,t.type,t.pendingProps,r);case 15:return GZ(e,t,t.type,t.pendingProps,r);case 19:return Vk(e,t,r);case 31:return Hce(e,t,r);case 22:return qZ(e,t,r,t.pendingProps);case 24:return Tc(t),n=qr(hr),e===null?(i=kM(),i===null&&(i=Nt,a=OM(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=r),i=a),t.memoizedState={parent:n,cache:i},IM(t),Dl(t,hr,i)):((e.lanes&r)!==0&&(Ck(e,t),_g(t,null,null,r),yg()),i=e.memoizedState,a=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Dl(t,hr,n)):(n=a.cache,Dl(t,hr,n),n!==i.cache&&zk(t,[hr],r,!0))),br(e,t,t.pendingProps.children,r),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=t.pendingProps,n.name!=null&&n.name!=="auto"?t.flags|=e===null?18882560:18874368:Ve&&ET(t),e!==null&&e.memoizedProps.name!==n.name?t.flags|=4194816:ip(e,t),br(e,t,n.children,r),t.child;case 29:throw t.pendingProps}throw Error(B(156,t.tag))}function ss(e){e.flags|=4}function qO(e,t,r,n,i){var a;if((a=(e.mode&32)!==0)&&(a=r===null?Q5(t,n):Q5(t,n)&&(n.src!==r.src||n.srcSet!==r.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wH())e.flags|=8192;else throw _c=Q1,MM}else e.flags&=-16777217}function w5(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!JH(t))if(wH())e.flags|=8192;else throw _c=Q1,MM}function v1(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?b3():536870912,e.lanes|=t,Mp|=t)}function ig(e,t){if(!Ve)switch(e.tailMode){case"visible":break;case"collapsed":for(var r=e.tail,n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(t=e.tail,r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&1206910976,n|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function qce(e,t,r){var n=t.pendingProps;switch(NM(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return r=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fs(hr),Dp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rp(t)?ss(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,BO())),Mt(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(ss(t),a!==null?(Mt(t),w5(t,a)):(Mt(t),qO(t,i,null,n,r))):a?a!==e.memoizedState?(ss(t),Mt(t),w5(t,a)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ss(t),Mt(t),qO(t,i,e,n,r)),null;case 27:if(F1(t),r=Ml.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ss(t);else{if(!n){if(t.stateNode===null)throw Error(B(166));return Mt(t),t.subtreeFlags&=-33554433,null}e=yo.current,rp(t)?WB(t,e):(e=YH(i,n,r),t.stateNode=e,ss(t))}return Mt(t),t.subtreeFlags&=-33554433,null;case 5:if(F1(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ss(t);else{if(!n){if(t.stateNode===null)throw Error(B(166));return Mt(t),t.subtreeFlags&=-33554433,null}if(a=yo.current,rp(t))WB(t,a);else{var o=Pg(Ml.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?a.multiple=!0:n.size&&(a.size=n.size);break;default:a=typeof n.is=="string"?o.createElement(i,{is:n.is}):o.createElement(i)}}a[Gr]=t,a[Jn]=n;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(Kr(a,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ss(t)}}return Mt(t),t.subtreeFlags&=-33554433,qO(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ss(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(B(166));if(e=Ml.current,rp(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,i=kr,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Gr]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||LH(e.nodeValue,r)),e||Hl(t,!0)}else e=Pg(e).createTextNode(n),e[Gr]=t,t.stateNode=e}return Mt(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(n=rp(t),r!==null){if(e===null){if(!n)throw Error(B(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(B(557));e[Gr]=t}else xc(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else r=BO(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(bi(t),t):(bi(t),null);if((t.flags&128)!==0)throw Error(B(558))}return Mt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=rp(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(B(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(B(317));i[Gr]=t}else xc(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),i=!1}else i=BO(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(bi(t),t):(bi(t),null)}return bi(t),(t.flags&128)!==0?(t.lanes=r,t):(r=n!==null,e=e!==null&&e.memoizedState!==null,r&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),a=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(a=n.memoizedState.cachePool.pool),a!==i&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),v1(t,t.updateQueue),Mt(t),null);case 4:return Dp(),e===null&&oI(t.stateNode.containerInfo),t.flags|=67108864,Mt(t),null;case 10:return fs(t.type),Mt(t),null;case 19:if(LM(t),n=t.memoizedState,n===null)return Mt(t),null;if(i=(t.flags&128)!==0,a=n.rendering,a===null)if(i)ig(n,!1);else{if(rr!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=tT(e),a!==null){for(t.flags|=128,ig(n,!1),e=a.updateQueue,t.updateQueue=e,v1(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)W3(r,e),r=r.sibling;return Mg(t,Xr.current&1|2),Ve&&ls(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Ti()>fT&&(t.flags|=128,i=!0,ig(n,!1),t.lanes=4194304)}else{if(!i)if(e=tT(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,v1(t,e),ig(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!a.alternate&&!Ve)return Mt(t),null}else 2*Ti()-n.renderingStartTime>fT&&r!==536870912&&(t.flags|=128,i=!0,ig(n,!1),t.lanes=4194304);n.isBackwards?(a.sibling=t.child,t.child=a):(e=n.last,e!==null?e.sibling=a:t.child=a,n.last=a)}if(n.tail!==null){e=n.tail;e:{for(r=e;r!==null;){if(r.alternate!==null){r=!1;break e}r=r.sibling}r=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Ti(),e.sibling=null,a=Xr.current,a=i?a&1|2:a&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!r||Ve?Mg(t,a):(r=a,Rt(Wr,t),Rt(Xr,r),fn===null&&(fn=t)),Ve&&ls(t,n.treeForkCount),e}return Mt(t),null;case 22:case 23:return bi(t),RM(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(r&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),r=t.updateQueue,r!==null&&v1(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&Yr(yc),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fs(hr),Mt(t),null;case 25:return null;case 30:return t.flags|=33554432,Mt(t),null}throw Error(B(156,t.tag))}function Yce(e,t){switch(NM(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fs(hr),Dp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return F1(t),null;case 31:if(t.memoizedState!==null){if(bi(t),t.alternate===null)throw Error(B(340));xc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bi(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));xc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return LM(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Dp(),null;case 10:return fs(t.type),null;case 22:case 23:return bi(t),RM(),e!==null&&Yr(yc),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fs(hr),null;case 25:return null;default:return null}}function KZ(e,t){switch(NM(t),t.tag){case 3:fs(hr),Dp();break;case 26:case 27:case 5:F1(t);break;case 4:Dp();break;case 31:t.memoizedState!==null&&bi(t);break;case 13:bi(t);break;case 19:LM(t);break;case 10:fs(t.type);break;case 22:case 23:bi(t),RM(),e!==null&&Yr(yc);break;case 24:fs(hr)}}function Kg(e,t){try{var r=t.updateQueue,n=r!==null?r.lastEffect:null;if(n!==null){var i=n.next;r=i;do{if((r.tag&e)===e){n=void 0;var a=r.create,o=r.inst;n=a(),o.destroy=n}r=r.next}while(r!==i)}}catch(s){bt(t,t.return,s)}}function Gl(e,t,r){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){var o=n.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var l=r,u=s;try{u()}catch(c){bt(i,l,c)}}}n=n.next}while(n!==a)}}catch(c){bt(t,t.return,c)}}function WZ(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{sZ(t,r)}catch(n){bt(e,e.return,n)}}}function JZ(e,t,r){r.props=Ac(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(n){bt(e,t,n)}}function fo(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var i=e.stateNode,a=ps(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=BH(a)),n=i.ref;break;case 7:if(e.stateNode===null){var o=new Ci(e);Wn(e.child,!1,Lfe,o,void 0,void 0),e.stateNode=o}n=e.stateNode;break;default:n=e.stateNode}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(s){bt(e,t,s)}}function Fr(e,t){var r=e.ref,n=e.refCleanup;if(r!==null)if(typeof n=="function")try{n()}catch(i){bt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(i){bt(e,t,i)}else r.current=null}function oT(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var r=0;r<t.length;r++)GH(e.stateNode,t[r])}function E5(e){for(var t=e.return;t!==null&&(QM(t)&&GH(e.stateNode,t.stateNode),!JM(t));)t=t.return}function Sg(e){for(var t=e.return;t!==null&&(QM(t)&&Pfe(e.stateNode,t.stateNode),!JM(t));)t=t.return}function JM(e){return e.tag===5||e.tag===3||e.tag===27}function QM(e){return e&&e.tag===7&&e.stateNode!==null}function Bk(e){var t=e.type,r=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&n.focus();break e;case"img":r.src?n.src=r.src:r.srcSet&&(n.srcset=r.srcSet)}}catch(i){bt(e,e.return,i)}}function YO(e,t,r){try{var n=e.stateNode;yfe(n,e.type,r,t),n[Jn]=t}catch(i){bt(e,e.return,i)}}function QZ(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xl(e.type)||e.tag===4}function XO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QZ(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zk(e,t,r,n){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(i,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(i),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ho)),oT(e,n),at=!0;else if(i!==4&&(i===27&&(oT(e,n),n=null,Xl(e.type)&&(r=e.stateNode,t=null)),e=e.child,e!==null))for(Zk(e,t,r,n),e=e.sibling;e!==null;)Zk(e,t,r,n),e=e.sibling}function sT(e,t,r,n){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?r.insertBefore(i,t):r.appendChild(i),oT(e,n),at=!0;else if(i!==4&&(i===27&&(oT(e,n),n=null,Xl(e.type)&&(r=e.stateNode)),e=e.child,e!==null))for(sT(e,t,r,n),e=e.sibling;e!==null;)sT(e,t,r,n),e=e.sibling}function eH(e){var t=e.stateNode,r=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Kr(t,n,r),t[Gr]=e,t[Jn]=r}catch(a){bt(e,e.return,a)}}var lT=!1,xi=null;function z5(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(lT=!0)}var po=null;function A5(){var e=po;return po=null,e}var Yn=0;function Fp(e,t,r,n,i){return Yn=0,tH(e.child,t,r,n,i)}function tH(e,t,r,n,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(n!==null){var s=uM(o);n.push(s),s.view&&(a=!0)}else a||uM(o).view&&(a=!0);lT=!0,UH(o,Yn===0?t:t+"_"+Yn,r),Yn++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||tH(e.child,t,r,n,i)&&(a=!0));e=e.sibling}return a}function bo(e,t){for(;e!==null;)e.tag===5?jH(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||bo(e.child,t)),e=e.sibling}function I1(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(I1(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(B(544));var r=t.name;t=_s(t.default,t.share),t!=="none"&&(Fp(e,r,t,null,!1)||bo(e.child,!1))}e=e.sibling}}function Hk(e,t){if(e.tag===30){var r=e.stateNode,n=e.memoizedProps,i=ps(n,r),a=_s(n.default,r.paired?n.share:n.enter);a!=="none"?Fp(e,i,a,null,!1)?(I1(e),r.paired||t||Ip(e,n.onEnter)):bo(e.child,!1):I1(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Hk(e,t),e=e.sibling;else I1(e)}function Fk(e){if(xi!==null&&xi.size!==0){var t=xi;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var r=e.memoizedProps,n=r.name;if(n!=null&&n!=="auto"){var i=t.get(n);if(i!==void 0){var a=_s(r.default,r.share);if(a!=="none"&&(Fp(e,n,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Ip(e,r.onShare)):bo(e.child,!1)),t.delete(n),t.size===0)break}}}Fk(e)}e=e.sibling}}}function Gk(e){if(e.tag===30){var t=e.memoizedProps,r=ps(t,e.stateNode),n=xi!==null?xi.get(r):void 0,i=_s(t.default,n!==void 0?t.share:t.exit);i!=="none"&&(Fp(e,r,i,null,!1)?n!==void 0?(i=e.stateNode,n.paired=i,i.paired=n,xi.delete(r),Ip(e,t.onShare)):Ip(e,t.onExit):bo(e.child,!1)),xi!==null&&Fk(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Gk(e),e=e.sibling;else xi!==null&&Fk(e)}function rH(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,r=ps(t,e.stateNode);t=_s(t.default,t.update),e.flags&=-5,t!=="none"&&Fp(e,r,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&rH(e);e=e.sibling}}function qk(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,bo(e.child,!1))}qk(e)}e=e.sibling}}function R1(e){if(e.tag===30)e.stateNode.paired=null,bo(e.child,!1),qk(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)R1(e),e=e.sibling;else qk(e)}function nH(e){for(e=e.child;e!==null;)e.tag===30?bo(e.child,!1):(e.subtreeFlags&33554432)!==0&&nH(e),e=e.sibling}function eI(e,t,r,n,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var l=t.stateNode;if(a!==null&&Yn<a.length){var u=a[Yn],c=uM(l);(u.view||c.view)&&(s=!0);var f;if(f=(e.flags&4)===0)if(c.clip)f=!0;else{f=u.rect;var d=c.rect;f=f.y!==d.y||f.x!==d.x||f.height!==d.height||f.width!==d.width}f&&(e.flags|=4),c.abs?c=!u.abs:(u=u.rect,c=c.rect,c=u.height!==c.height||u.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&UH(l,Yn===0?r:r+"_"+Yn,i),s&&(e.flags&4)!==0||(po===null&&(po=[]),po.push(l,Yn===0?n:n+"_"+Yn,t.memoizedProps)),Yn++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eI(e,t.child,r,n,i,a,o)&&(s=!0));t=t.sibling}return s}function iH(e,t){for(e=e.child;e!==null;){if(e.tag===30){var r=e.memoizedProps,n=e.stateNode,i=ps(r,n),a=_s(r.default,r.update);if(t){n=n.clones;var o=n===null?null:n.map(wfe)}else o=e.memoizedState,e.memoizedState=null;n=e;var s=e.child;Yn=0,i=eI(n,s,i,i,a,o,!1),(e.flags&4)!==0&&i&&(t||Ip(e,r.onUpdate))}else(e.subtreeFlags&33554432)!==0&&iH(e,t);e=e.sibling}}var Dr=!1,pt=!1,lo=!1,KO=!1,C5=typeof WeakSet=="function"?WeakSet:Set,Nr=null,uo=!1,dg=!1,uT=!1,Yk=!1;function Xce(e,t,r){if(e=e.containerInfo,oM=jp,e=Z3(e),zM(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||a!==0&&d.nodeType!==3||(l=s+a),d!==o||i!==0&&d.nodeType!==3||(u=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++c===a&&(l=s),p===o&&++f===i&&(u=s),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(sM={focusedElem:e,selectionRange:n},jp=!1,r=(r&335544064)===r,Nr=t,t=r?9270:1024;Nr!==null;){if(e=Nr,r&&(n=e.deletions,n!==null))for(a=0;a<n.length;a++)r&&Gk(n[a]);if(e.alternate===null&&(e.flags&2)!==0)r&&z5(e),g1(r);else{if(e.tag===22){if(n=e.alternate,e.memoizedState!==null){n!==null&&n.memoizedState===null&&r&&Gk(n),g1(r);continue}else if(n!==null&&n.memoizedState!==null){r&&z5(e),g1(r);continue}}n=e.child,(e.subtreeFlags&t)!==0&&n!==null?(n.return=e,Nr=n):(r&&rH(e),g1(r))}}xi=null}function g1(e){for(;Nr!==null;){var t=Nr,r=e,n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&n!==null){r=void 0,i=n.memoizedProps,n=n.memoizedState;var a=t.stateNode;try{var o=Ac(t.type,i);r=a.getSnapshotBeforeUpdate(o,n),a.__reactInternalSnapshotBeforeUpdate=r}catch(s){bt(t,t.return,s)}}break;case 3:if((i&1024)!==0){if(n=t.stateNode.containerInfo,r=n.nodeType,r===9)cM(n);else if(r===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":cM(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:r&&n!==null&&(r=ps(n.memoizedProps,n.stateNode),i=t.memoizedProps,i=_s(i.default,i.update),i!=="none"&&Fp(n,r,i,n.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(B(163))}if(n=t.sibling,n!==null){n.return=t.return,Nr=n;break}Nr=t.return}}function aH(e,t,r){var n=r.flags;switch(r.tag){case 0:case 11:case 15:co(e,r),n&4&&Kg(5,r);break;case 1:if(co(e,r),n&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(o){bt(r,r.return,o)}else{var i=Ac(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){bt(r,r.return,o)}}n&64&&WZ(r),n&512&&fo(r,r.return);break;case 3:if(co(e,r),n&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{sZ(e,t)}catch(o){bt(r,r.return,o)}}break;case 27:t===null&&n&4&&eH(r);case 26:case 5:co(e,r),t===null&&n&4&&Bk(r),n&512&&fo(r,r.return);break;case 12:co(e,r);break;case 31:co(e,r),n&4&&uH(e,r);break;case 13:co(e,r),n&4&&cH(e,r),n&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=sfe.bind(null,r),jfe(e,r))));break;case 22:if(n=r.memoizedState!==null||Dr,!n){var a=t!==null&&t.memoizedState!==null||pt;t=Dr,i=pt,Dr=n,(pt=a)&&!i?(n=2,(r.subtreeFlags&8772)!==0&&(n|=1),Ma(e,r,n)):co(e,r),Dr=t,pt=i}break;case 30:co(e,r),n&512&&fo(r,r.return);break;case 7:n&512&&fo(r,r.return);default:co(e,r)}}function Xk(e,t){for(e=e.child;e!==null;)oH(e,t),e=e.sibling}function oH(e,t){switch(e.tag){case 5:case 26:try{var r=e.stateNode;if(t){var n=r.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;i.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(l){bt(e,e.return,l)}Kk(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,at=!0}catch(l){bt(e,e.return,l)}break;case 18:try{var s=e.stateNode;t?H5(s,!0):H5(e.stateNode,!1)}catch(l){bt(e,e.return,l)}break;case 22:case 23:e.memoizedState===null&&Xk(e,t);break;default:Xk(e,t)}}function Kk(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var r=e,n=t;switch(r.tag){case 4:oH(r,n);break e;case 22:r.memoizedState===null&&Kk(r,n);break e;default:Kk(r,n)}}e=e.sibling}}function sH(e){var t=e.alternate;t!==null&&(e.alternate=null,sH(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_T(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Bt=null,Gn=!1;function ka(e,t,r){for(r=r.child;r!==null;)lH(e,t,r),r=r.sibling}function lH(e,t,r){if(wi&&typeof wi.onCommitFiberUnmount=="function")try{wi.onCommitFiberUnmount(Zg,r)}catch{}switch(r.tag){case 26:pt||Fr(r,t),ka(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&!pt&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:pt||Fr(r,t),Sg(r);var n=Bt,i=Gn;Xl(r.type)&&(Bt=r.stateNode,Gn=!1),ka(e,t,r),XH(r.stateNode,r.type,r.memoizedProps),Bt=n,Gn=i;break;case 5:pt||Fr(r,t),Sg(r);case 6:if(r.tag===6&&Sg(r),n=Bt,i=Gn,Bt=null,ka(e,t,r),Bt=n,Gn=i,Bt!==null)if(Gn)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(r.stateNode),at=!0}catch(a){bt(r,t,a)}else try{Bt.removeChild(r.stateNode),at=!0}catch(a){bt(r,t,a)}break;case 18:Bt!==null&&(Gn?(e=Bt,Z5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Vp(e)):Z5(Bt,r.stateNode));break;case 4:n=Bt,i=Gn,Bt=r.stateNode.containerInfo,Gn=!0,ka(e,t,r),Bt=n,Gn=i;break;case 0:case 11:case 14:case 15:Gl(2,r,t),pt||Gl(4,r,t),ka(e,t,r);break;case 1:pt||(Fr(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"&&JZ(r,t,n)),ka(e,t,r);break;case 21:ka(e,t,r);break;case 22:pt=(n=pt)||r.memoizedState!==null,ka(e,t,r),pt=n;break;case 30:Fr(r,t),ka(e,t,r);break;case 7:pt||Fr(r,t),ka(e,t,r);break;default:ka(e,t,r)}}function uH(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(r){bt(t,t.return,r)}}}function cH(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vp(e)}catch(r){bt(t,t.return,r)}}function Kce(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new C5),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new C5),t;default:throw Error(B(435,e.tag))}}function y1(e,t){var r=Kce(e);t.forEach(function(n){if(!r.has(n)){r.add(n);var i=lfe.bind(null,e,n);n.then(i,i)}})}function An(e,t,r){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 27:if(Xl(l.type)){Bt=l.stateNode,Gn=!1;break e}break;case 5:Bt=l.stateNode,Gn=!1;break e;case 3:case 4:Bt=l.stateNode.containerInfo,Gn=!0;break e}l=l.return}if(Bt===null)throw Error(B(160));lH(o,s,a),Bt=null,Gn=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fH(t,e,r),t=t.sibling}var Ia=null;function fH(e,t,r){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(n=e.updateQueue,n=n!==null?n.events:null,n!==null))for(var a=0;a<n.length;a++){var o=n[a];o.ref.impl=o.nextImpl}An(t,e,r),Cn(e),i&4&&(Gl(3,e,e.return),Kg(3,e),Gl(5,e,e.return));break;case 1:An(t,e,r),Cn(e),i&512&&(pt||n===null||Fr(n,n.return)),i&64&&Dr&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?t:r.concat(t))));break;case 26:if(a=Ia,An(t,e,r),Cn(e),i&512&&(pt||n===null||Fr(n,n.return)),i&4)if(i=n!==null?n.memoizedState:null,r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null)if(Dr)e.stateNode=$H(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,r=e.memoizedProps,i=a.ownerDocument||a;t:switch(t){case"title":n=i.getElementsByTagName("title")[0],(!n||n[Gg]||n[Gr]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=i.createElement(t),i.head.insertBefore(n,i.querySelector("head > title"))),Kr(n,t,r),n[Gr]=e,Or(n),t=n;break e;case"link":if(a=J5("link","href",i).get(t+(r.href||""))){for(o=0;o<a.length;o++)if(n=a[o],n.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&n.getAttribute("rel")===(r.rel==null?null:r.rel)&&n.getAttribute("title")===(r.title==null?null:r.title)&&n.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){a.splice(o,1);break t}}n=i.createElement(t),Kr(n,t,r),i.head.appendChild(n);break;case"meta":if(a=J5("meta","content",i).get(t+(r.content||""))){for(o=0;o<a.length;o++)if(n=a[o],n.getAttribute("content")===(r.content==null?null:""+r.content)&&n.getAttribute("name")===(r.name==null?null:r.name)&&n.getAttribute("property")===(r.property==null?null:r.property)&&n.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&n.getAttribute("charset")===(r.charSet==null?null:r.charSet)){a.splice(o,1);break t}}n=i.createElement(t),Kr(n,t,r),i.head.appendChild(n);break;default:throw Error(B(468,t))}n[Gr]=e,Or(n),t=n}e.stateNode=t}else Dr||pM(a,e.type,e.stateNode);else e.stateNode=W5(a,r,e.memoizedProps);else i!==r?(i===null?(t=n.stateNode,t===null||pt||t.parentNode.removeChild(t)):i.count--,r===null?Dr||pM(a,e.type,e.stateNode):W5(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&YO(e,e.memoizedProps,n.memoizedProps);break;case 27:An(t,e,r),Cn(e),i&512&&(pt||n===null||Fr(n,n.return)),n!==null&&i&4&&YO(e,e.memoizedProps,n.memoizedProps);break;case 5:if(a=lo,lo=!1,An(t,e,r),lo=a,Cn(e),i&512&&(pt||n===null||Fr(n,n.return)),e.flags&32){t=e.stateNode;try{Op(t,""),at=!0}catch(c){bt(e,e.return,c)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,YO(e,t,n!==null?n.memoizedProps:t)),i&1024&&(KO=!0);break;case 6:if(An(t,e,r),Cn(e),i&4){if(e.stateNode===null)throw Error(B(162));t=e.memoizedProps,r=e.stateNode;try{r.nodeValue=t,at=!0}catch(c){bt(e,e.return,c)}}break;case 3:if(at=!1,U1=null,a=Ia,Ia=$g(t.containerInfo),An(t,e,r),Ia=a,Cn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(c){bt(e,e.return,c)}KO&&(KO=!1,dH(e)),at=!1;break;case 4:i=lo,lo=Dr,n=IB(),a=Ia,Ia=$g(e.stateNode.containerInfo),An(t,e,r),Cn(e),Ia=a,at&&dg&&(uT=!0),at=n,lo=i;break;case 12:An(t,e,r),Cn(e);break;case 31:An(t,e,r),Cn(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,y1(e,t)));break;case 13:An(t,e,r),Cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(kT=Ti()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,y1(e,t)));break;case 22:a=e.memoizedState!==null,o=n!==null&&n.memoizedState!==null;var s=Dr,l=pt,u=lo;Dr=s||a,lo=u||a,pt=l||o,An(t,e,r),pt=l,lo=u,Dr=s,Cn(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||n===null||o||Dr||pt||(t=o||pt,r=Dr,n=pt,Dr=a||Dr,pt=t,Tl(e,2),Dr=r,pt=n),!a&&lo||Xk(e,a)),i&4&&(t=e.updateQueue,t!==null&&(r=t.retryQueue,r!==null&&(t.retryQueue=null,y1(e,r))));break;case 19:An(t,e,r),Cn(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,y1(e,t)));break;case 30:i&512&&(pt||n===null||Fr(n,n.return)),i=IB(),a=dg,o=(r&335544064)===r,s=e.memoizedProps,dg=o&&_s(s.default,s.update)!=="none",An(t,e,r),Cn(e),o&&n!==null&&at&&(e.flags|=4),dg=a,at=i;break;case 21:break;case 7:i&512&&(pt||n===null||Fr(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=e);default:An(t,e,r),Cn(e)}}function Cn(e){var t=e.flags;if(t&2){try{for(var r,n=e.return;n!==null;){if(QZ(n)){r=n;break}n=n.return}n=null;for(var i=e.return;i!==null;){if(QM(i)){var a=i.stateNode;n===null?n=[a]:n.push(a)}if(JM(i))break;i=i.return}var o=n;if(r==null)throw Error(B(160));switch(r.tag){case 27:var s=r.stateNode,l=XO(e);sT(e,l,s,o);break;case 5:var u=r.stateNode;r.flags&32&&(Op(u,""),r.flags&=-33);var c=XO(e);sT(e,c,u,o);break;case 3:case 4:var f=r.stateNode.containerInfo,d=XO(e);Zk(e,d,f,o);break;default:throw Error(B(161))}}catch(p){bt(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dH(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dH(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,jp=!0,t.reset(),jp=!1),e=e.sibling}}function np(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)pH(t,e),t=t.sibling;else iH(t,!1)}function pH(e,t){var r=e.alternate;if(r===null)Hk(e,!1);else switch(e.tag){case 3:if(Yk=uo=!1,A5(),np(t,e),!uo&&!uT){if(e=po,e!==null)for(var n=0;n<e.length;n+=3){r=e[n];var i=e[n+1];jH(r,e[n+2]),r=r.ownerDocument.documentElement,r!==null&&r.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Yk=!0}po=null;break;case 5:np(t,e);break;case 4:n=uo,uo=!1,np(t,e),uo&&(uT=!0),uo=n;break;case 22:e.memoizedState===null&&(r.memoizedState!==null?Hk(e,!1):np(t,e));break;case 30:n=uo,i=A5(),uo=!1,np(t,e),uo&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=ps(a,o),o=ps(r.memoizedProps,o);var s=_s(a.default,a.update);s==="none"?t=!1:(a=r.memoizedState,r.memoizedState=null,r=e.child,Yn=0,t=eI(e,r,t,o,s,a,!0),Yn!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ip(e,e.memoizedProps.onUpdate),po=i):i!==null&&(i.push.apply(i,po),po=i),uo=(e.flags&32)!==0?!0:n;break;default:np(t,e)}}function co(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)aH(e,t.alternate,t),t=t.sibling}function Tl(e,t){for(e=e.child;e!==null;){var r=e,n=t;switch(r.tag){case 0:case 11:case 14:case 15:Gl(4,r,r.return),Tl(r,n);break;case 1:Fr(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&JZ(r,r.return,i),Tl(r,n);break;case 27:(n&2)!==0&&XH(r.stateNode,r.type,r.memoizedProps);case 5:Fr(r,r.return),r.tag!==5&&r.tag!==27||Sg(r),Tl(r,n);break;case 6:Sg(r);break;case 26:Fr(r,r.return),i=r.stateNode,r.memoizedState!==null||i===null||pt||i.parentNode.removeChild(i),Tl(r,n);break;case 22:r.memoizedState===null&&Tl(r,n);break;case 30:Fr(r,r.return),Tl(r,n);break;case 7:Fr(r,r.return);default:Tl(r,n)}e=e.sibling}}function Ma(e,t,r){for(r=(t.subtreeFlags&8772)!==0?r:r&-2,t=t.child;t!==null;){var n=t.alternate,i=e,a=t,o=a.flags,s=(r&1)!==0;switch(a.tag){case 0:case 11:case 15:Ma(i,a,r),Kg(4,a);break;case 1:if(Ma(i,a,r),n=a,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){bt(n,n.return,c)}if(n=a,i=n.updateQueue,i!==null){var l=n.stateNode;try{var u=i.shared.hiddenCallbacks;if(u!==null)for(i.shared.hiddenCallbacks=null,i=0;i<u.length;i++)oZ(u[i],l)}catch(c){bt(n,n.return,c)}}s&&o&64&&WZ(a),fo(a,a.return);break;case 27:(r&2)!==0&&eH(a);case 5:a.tag!==5&&a.tag!==27||E5(a),Ma(i,a,r),s&&n===null&&o&4&&Bk(a),fo(a,a.return);break;case 6:E5(a);break;case 26:l=a.stateNode,a.memoizedState!==null||l===null||Dr||pM($g(l.ownerDocument),a.type,l),Ma(i,a,r),s&&n===null&&o&4&&Bk(a),fo(a,a.return);break;case 12:Ma(i,a,r);break;case 31:Ma(i,a,r),s&&o&4&&uH(i,a);break;case 13:Ma(i,a,r),s&&o&4&&cH(i,a);break;case 22:a.memoizedState===null&&Ma(i,a,r),fo(a,a.return);break;case 30:Ma(i,a,r),fo(a,a.return);break;case 7:fo(a,a.return);default:Ma(i,a,r)}t=t.sibling}}function tI(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Yg(r))}function rI(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yg(e))}function Ki(e,t,r,n){var i=(r&335544064)===r;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)mH(e,t,r,n),t=t.sibling;else i&&nH(t)}function mH(e,t,r,n){var i=(r&335544064)===r;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&R1(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ki(e,t,r,n),a&2048&&Kg(9,t);break;case 1:Ki(e,t,r,n);break;case 3:Ki(e,t,r,n),i&&Yk&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Yg(a)));break;case 12:if(a&2048){Ki(e,t,r,n),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,l=o.onPostCommit;typeof l=="function"&&l(s,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(u){bt(t,t.return,u)}}else Ki(e,t,r,n);break;case 31:Ki(e,t,r,n);break;case 13:Ki(e,t,r,n);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState!==null?(i&&s!==null&&s.memoizedState===null&&R1(s),o._visibility&2?Ki(e,t,r,n):Tg(e,t)):(i&&s!==null&&s.memoizedState!==null&&R1(t),o._visibility&2?Ki(e,t,r,n):(o._visibility|=2,ap(e,t,r,n,(t.subtreeFlags&10256)!==0||!1))),a&2048&&tI(s,t);break;case 24:Ki(e,t,r,n),a&2048&&rI(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(bo(a.child,!0),bo(t.child,!0))),Ki(e,t,r,n);break;default:Ki(e,t,r,n)}}function ap(e,t,r,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,s=r,l=n,u=o.flags;switch(o.tag){case 0:case 11:case 15:ap(a,o,s,l,i),Kg(8,o);break;case 23:break;case 22:var c=o.stateNode;o.memoizedState!==null?c._visibility&2?ap(a,o,s,l,i):Tg(a,o):(c._visibility|=2,ap(a,o,s,l,i)),i&&u&2048&&tI(o.alternate,o);break;case 24:ap(a,o,s,l,i),i&&u&2048&&rI(o.alternate,o);break;default:ap(a,o,s,l,i)}t=t.sibling}}function Tg(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,n=t,i=n.flags;switch(n.tag){case 22:Tg(r,n),i&2048&&tI(n.alternate,n);break;case 24:Tg(r,n),i&2048&&rI(n.alternate,n);break;default:Tg(r,n)}t=t.sibling}}var pc=8192;function cc(e,t,r){if(e.subtreeFlags&pc)for(e=e.child;e!==null;)hH(e,t,r),e=e.sibling}function hH(e,t,r){switch(e.tag){case 26:cc(e,t,r),e.flags&pc&&(e.memoizedState!==null?ede(r,Ia,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&e3(r,e)));break;case 5:cc(e,t,r),e.flags&pc&&(e=e.stateNode,(t&335544128)===t&&e3(r,e));break;case 3:case 4:var n=Ia;Ia=$g(e.stateNode.containerInfo),cc(e,t,r),Ia=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=pc,pc=16777216,cc(e,t,r),pc=n):cc(e,t,r));break;case 30:if((e.flags&pc)!==0&&(n=e.memoizedProps.name,n!=null&&n!=="auto")){var i=e.stateNode;i.paired=null,xi===null&&(xi=new Map),xi.set(n,i)}cc(e,t,r);break;default:cc(e,t,r)}}function vH(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ag(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Nr=n,yH(n,e)}vH(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gH(e),e=e.sibling}function gH(e){switch(e.tag){case 0:case 11:case 15:ag(e),e.flags&2048&&Gl(9,e,e.return);break;case 3:ag(e);break;case 12:ag(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,L1(e)):ag(e);break;default:ag(e)}}function L1(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var n=t[r];Nr=n,yH(n,e)}vH(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gl(8,t,t.return),L1(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,L1(t));break;default:L1(t)}e=e.sibling}}function yH(e,t){for(;Nr!==null;){var r=Nr;switch(r.tag){case 0:case 11:case 15:Gl(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var n=r.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Yg(r.memoizedState.cache)}if(n=r.child,n!==null)n.return=r,Nr=n;else e:for(r=e;Nr!==null;){n=Nr;var i=n.sibling,a=n.return;if(sH(n),n===r){Nr=null;break e}if(i!==null){i.return=a,Nr=i;break e}Nr=a}}}var Wce={getCacheForType:function(e){var t=qr(hr),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return qr(hr).controller.signal}},Jce=typeof WeakMap=="function"?WeakMap:Map,st=0,Nt=null,Ge=null,We=0,yt=0,yi=null,Nl=!1,Gp=!1,nI=!1,gs=0,rr=0,ql=0,bc=0,cT=0,Si=0,Mp=0,wg=null,qn=null,Wk=!1,kT=0,_H=0,fT=1/0,dT=null,Ul=null,Yt=0,La=null,Cc=null,_o=0,Jk=0,Qk=null,bH=null,zp=null,Ap=null,Cp=null,Eg=0,P1=null;function zi(){return(st&2)!==0&&We!==0?We&-We:Ee.T!==null?aI():w3()}function xH(){if(Si===0)if((We&536870912)===0||Ve){var e=a1;a1<<=1,(a1&3932160)===0&&(a1=262144),Si=e}else Si=536870912;return e=Wr.current,e!==null&&(e.flags|=32),Si}function Ip(e,t){if(t!=null){var r=e.stateNode,n=r.ref;n===null&&(n=r.ref=BH(ps(e.memoizedProps,r))),Ap===null&&(Ap=[]),Ap.push(t.bind(null,n))}}function Kn(e,t,r){(e===Nt&&(yt===2||yt===9)||e.cancelPendingCommit!==null)&&(Rp(e,0),Ol(e,We,Si,!1)),Fg(e,r),((st&2)===0||e!==Nt)&&(e===Nt&&((st&2)===0&&(bc|=r),rr===4&&Ol(e,We,Si,!1)),So(e))}function SH(e,t,r){if((st&6)!==0)throw Error(B(327));var n=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Hg(e,t),i=n?tfe(e,t):WO(e,t,!0),a=n;do{if(i===0){Gp&&!n&&Ol(e,t,0,!1);break}else{if(r=e.current.alternate,a&&!Qce(r)){i=WO(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var s=e;i=wg;var l=s.current.memoizedState.isDehydrated;if(l&&(Rp(s,o).flags|=256),o=WO(s,o,!1),o!==2&&o!==6){if(nI&&!l){s.errorRecoveryDisabledLanes|=a,bc|=a,i=4;break e}a=qn,qn=i,a!==null&&(qn===null?qn=a:qn.push.apply(qn,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Rp(e,0),Ol(e,t,0,!0);break}e:{switch(n=e,a=i,a){case 0:case 1:throw Error(B(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ol(n,t,Si,!Nl);break e;case 2:qn=null;break;case 3:case 5:break;default:throw Error(B(329))}if((t&62914560)===t&&(i=kT+300-Ti(),10<i)){if(Ol(n,t,Si,!Nl),yT(n,0,!0)!==0)break e;_o=t,n.timeoutHandle=sI(D5.bind(null,n,r,qn,dT,Wk,t,Si,bc,Mp,Nl,a,"Throttled",-0,0),i);break e}D5(n,r,qn,dT,Wk,t,Si,bc,Mp,Nl,a,null,-0,0)}}break}while(!0);So(e)}function D5(e,t,r,n,i,a,o,s,l,u,c,f,d,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(f=null,(h||m&8192||(m&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ho},xi=null,hH(t,a,f),h&&(m=f,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=Ug.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?kT-Ti():(a&4194048)===a?_H-Ti():0,m=tde(f,m),m!==null)){_o=a,e.cancelPendingCommit=m(O5.bind(null,e,t,a,r,n,i,o,s,l,u,c,f,null,d,p)),Ol(e,a,o,!u);return}O5(e,t,a,r,n,i,o,s,l,u,c,f)}function Qce(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ai(a(),i))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,r,n){t=_3(e,t),t&=~cT,t&=~bc,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var a=31-Ei(i),o=1<<a;n[a]=-1,i&=~o}r!==0&&x3(e,r,t)}function MT(){return(st&6)===0?(Wg(0,!1),!1):!0}function iI(){if(Ge!==null){if(yt===0)var e=Ge.return;else e=Ge,us=Mc=null,VM(e),Tp=null,kg=0,e=Ge;for(;e!==null;)KZ(e.alternate,e),e=e.return;Ge=null}}function Rp(e,t){var r=e.timeoutHandle;return r!==-1&&(e.timeoutHandle=-1,xfe(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),_o=0,iI(),Nt=e,Ge=r=cs(e.current,null),We=t,yt=0,yi=null,Nl=!1,Gp=Hg(e,t),nI=!1,Mp=Si=cT=bc=ql=rr=0,qn=wg=null,Wk=!1,gs=_3(e,t),TT(),r}function TH(e,t){Le=null,Ee.H=iT,t===Hp||t===zT?(t=r5(),yt=3):t===MM?(t=r5(),yt=4):yt=t===XM?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yi=t,Ge===null&&(rr=1,aT(e,ta(t,e.current)))}function wH(){var e=Wr.current;return e===null?!0:(We&4194048)===We?fn===null:(We&62914560)===We||(We&536870912)!==0?e===fn:!1}function EH(){var e=Ee.H;return Ee.H=iT,e===null?iT:e}function zH(){var e=Ee.A;return Ee.A=Wce,e}function pT(){rr=4,Nl||(We&4194048)!==We&&Wr.current!==null||(Gp=!0),(ql&134217727)===0&&(bc&134217727)===0||Nt===null||Ol(Nt,We,Si,!1)}function WO(e,t,r){var n=st;st|=2;var i=EH(),a=zH();(Nt!==e||We!==t)&&(dT=null,Rp(e,t)),t=!1;var o=rr;e:do try{if(yt!==0&&Ge!==null){var s=Ge,l=yi;switch(yt){case 8:iI(),o=6;break e;case 3:case 2:case 9:case 6:Wr.current===null&&(t=!0);var u=yt;if(yt=0,yi=null,yp(e,s,l,u),r&&Gp){o=0;break e}break;default:u=yt,yt=0,yi=null,yp(e,s,l,u)}}efe(),o=rr;break}catch(c){TH(e,c)}while(!0);return t&&e.shellSuspendCounter++,us=Mc=null,st=n,Ee.H=i,Ee.A=a,Ge===null&&(Nt=null,We=0,TT()),o}function efe(){for(;Ge!==null;)AH(Ge)}function tfe(e,t){var r=st;st|=2;var n=EH(),i=zH();Nt!==e||We!==t?(dT=null,fT=Ti()+500,Rp(e,t)):Gp=Hg(e,t);e:do try{if(yt!==0&&Ge!==null){t=Ge;var a=yi;t:switch(yt){case 1:yt=0,yi=null,yp(e,t,a,1);break;case 2:case 9:if(t5(a)){yt=0,yi=null,N5(t);break}t=function(){yt!==2&&yt!==9||Nt!==e||(yt=7),So(e)},a.then(t,t);break e;case 3:yt=7;break e;case 4:yt=5;break e;case 7:t5(a)?(yt=0,yi=null,N5(t)):(yt=0,yi=null,yp(e,t,a,7));break;case 5:var o=null;switch(Ge.tag){case 26:o=Ge.memoizedState;case 5:case 27:var s=Ge;if(o?JH(o):s.stateNode.complete){yt=0,yi=null;var l=s.sibling;if(l!==null)Ge=l;else{var u=s.return;u!==null?(Ge=u,IT(u)):Ge=null}break t}}yt=0,yi=null,yp(e,t,a,5);break;case 6:yt=0,yi=null,yp(e,t,a,6);break;case 8:iI(),rr=6;break e;default:throw Error(B(462))}}rfe();break}catch(c){TH(e,c)}while(!0);return us=Mc=null,Ee.H=n,Ee.A=i,st=r,Ge!==null?0:(Nt=null,We=0,TT(),rr)}function rfe(){for(;Ge!==null&&!_ue();)AH(Ge)}function AH(e){var t=XZ(e.alternate,e,gs);e.memoizedProps=e.pendingProps,t===null?IT(e):Ge=t}function N5(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=y5(r,t,t.pendingProps,t.type,void 0,We);break;case 11:t=y5(r,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:VM(t);var n=t;n===kr&&(Ve?(W1(n),n.tag===5&&n.stateNode!=null&&(It=n.stateNode)):(W1(n),Ve=!0));default:KZ(r,t),t=Ge=W3(t,gs),t=XZ(r,t,gs)}e.memoizedProps=e.pendingProps,t===null?IT(e):Ge=t}function yp(e,t,r,n){us=Mc=null,VM(t),Tp=null,kg=0;var i=t.return;try{if(Zce(e,i,t,r,We)){rr=1,aT(e,ta(r,e.current)),Ge=null;return}}catch(a){if(i!==null)throw Ge=i,a;rr=1,aT(e,ta(r,e.current)),Ge=null;return}t.flags&32768?(Ve||n===1?e=!0:Gp||(We&536870912)!==0?e=!1:(Nl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Wr.current,n!==null&&n.tag===13&&(n.flags|=16384))),CH(t,e)):IT(t)}function IT(e){var t=e;do{if((t.flags&32768)!==0){CH(t,Nl);return}e=t.return;var r=qce(t.alternate,t,gs);if(r!==null){Ge=r;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);rr===0&&(rr=5)}function CH(e,t){do{var r=Yce(e.alternate,e);if(r!==null){r.flags&=32767,Ge=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Ge=e;return}Ge=e=r}while(e!==null);rr=6,Ge=null}function O5(e,t,r,n,i,a,o,s,l,u,c,f){e.cancelPendingCommit=null;do RT();while(Yt!==0);if((st&6)!==0)throw Error(B(327));if(t!==null){if(t===e.current)throw Error(B(177));e===Nt&&(Ge=Nt=null,We=0),Cc=t,La=e,_o=r,Qk=i,bH=n,nfe(e,t,r,o,s,l,f)}}function nfe(e,t,r,n,i,a,o){var s=t.lanes|t.childLanes;if(Jk=s,s|=AM,Due(e,r,s,n,i,a),Ap=null,(r&335544064)===r?(Cp=Oce(e),n=10262):(Cp=null,n=10256),(t.subtreeFlags&n)!==0||(t.flags&n)!==0?(e.callbackNode=null,e.callbackPriority=0,ufe(G1,function(){return nM(),null})):(e.callbackNode=null,e.callbackPriority=0),lT=!1,n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=Ee.T,Ee.T=null,i=lt.p,lt.p=2,a=st,st|=4;try{Xce(e,t,r)}finally{st=a,lt.p=i,Ee.T=n}}Yt=1,lT?zp=Afe(o,e.containerInfo,Cp,eM,tM,afe,rM,nM,ife,null,null):(eM(),tM(),rM())}function ife(e){if(Yt!==0){var t=La.onRecoverableError;t(e,{componentStack:null})}}function afe(){Yt===3&&(Yt=0,pH(Cc,La),Yt=4)}function eM(){if(Yt===1){Yt=0;var e=La,t=Cc,r=_o,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=Ee.T,Ee.T=null;var i=lt.p;lt.p=2;var a=st;st|=4;try{dg=uT=!1,fH(t,e,r),r=sM;var o=Z3(e.containerInfo),s=r.focusedElem,l=r.selectionRange;if(o!==s&&s&&s.ownerDocument&&B3(s.ownerDocument.documentElement,s)){if(l!==null&&zM(s)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var f=s.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var p=d.getSelection(),m=s.textContent.length,h=Math.min(l.start,m),y=l.end===void 0?h:Math.min(l.end,m);!p.extend&&h>y&&(o=y,y=h,h=o);var v=qB(s,h),g=qB(s,y);if(v&&g&&(p.rangeCount!==1||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==g.node||p.focusOffset!==g.offset)){var _=f.createRange();_.setStart(v.node,v.offset),p.removeAllRanges(),h>y?(p.addRange(_),p.extend(g.node,g.offset)):(_.setEnd(g.node,g.offset),p.addRange(_))}}}}for(f=[],p=s;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<f.length;s++){var b=f[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}jp=!!oM,sM=oM=null}finally{st=a,lt.p=i,Ee.T=n}}e.current=t,Yt=2}}function tM(){if(Yt===2){Yt=0;var e=La,t=Cc,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=Ee.T,Ee.T=null;var n=lt.p;lt.p=2;var i=st;st|=4;try{aH(e,t.alternate,t)}finally{st=i,lt.p=n,Ee.T=r}}Yt=3}}function rM(){if(Yt===4||Yt===3){Yt=0;var e=zp;zp=null,bue();var t=La,r=Cc,n=_o,i=bH,a=(n&335544064)===n?10262:10256;if((r.subtreeFlags&a)!==0||(r.flags&a)!==0?Yt=5:(Yt=0,Cc=La=null,DH(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Ul=null),bM(n),r=r.stateNode,wi&&typeof wi.onCommitFiberRoot=="function")try{wi.onCommitFiberRoot(Zg,r,void 0,(r.current.flags&128)===128)}catch{}if(i!==null){r=Ee.T,a=lt.p,lt.p=2,Ee.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var l=i[s];o(l.value,{componentStack:l.stack})}}finally{Ee.T=r,lt.p=a}}if(i=Ap,o=Cp,Cp=null,i!==null&&(Ap=null,o===null&&(o=[]),e!==null))for(l=0;l<i.length;l++)r=(0,i[l])(o),r!==void 0&&e.finished.finally(r);(_o&3)!==0&&RT(),So(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===P1?Eg++:(Eg=0,P1=t):(Eg=0,P1=null),Wg(0,!1)}}function DH(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yg(t)))}function RT(){return zp!==null&&(zp.skipTransition(),zp=null),eM(),tM(),rM(),nM()}function nM(){if(Yt!==5)return!1;var e=La,t=Jk;Jk=0;var r=bM(_o),n=Ee.T,i=lt.p;try{lt.p=32>r?32:r,Ee.T=null,r=Qk,Qk=null;var a=La,o=_o;if(Yt=0,Cc=La=null,_o=0,(st&6)!==0)throw Error(B(331));var s=st;if(st|=4,gH(a.current),mH(a,a.current,o,r),st=s,Wg(0,!1),wi&&typeof wi.onPostCommitFiberRoot=="function")try{wi.onPostCommitFiberRoot(Zg,a)}catch{}return!0}finally{lt.p=i,Ee.T=n,DH(e,t)}}function k5(e,t,r){t=ta(r,t),t=Lk(e.stateNode,t,2),e=Ll(e,t,2),e!==null&&(Fg(e,2),So(e))}function bt(e,t,r){if(e.tag===3)k5(e,e,r);else for(;t!==null;){if(t.tag===3){k5(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ul===null||!Ul.has(n))){e=ta(r,e),r=HZ(2),n=Ll(t,r,2),n!==null&&(FZ(r,n,t,e),Fg(n,2),So(n));break}}t=t.return}}function JO(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Jce;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(nI=!0,i.add(r),e=ofe.bind(null,e,t,r),t.then(e,e))}function ofe(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Nt===e&&(We&r)===r&&((rr===4||rr===3&&(We&62914560)===We&&300>Ti()-kT)&&(st&2)===0?Rp(e,0):cT|=r,Mp===We&&(Mp=0)),So(e)}function NH(e,t){t===0&&(t=b3()),e=kc(e,t),e!==null&&(Fg(e,t),So(e))}function sfe(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),NH(e,r)}function lfe(e,t){var r=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(B(314))}n!==null&&n.delete(t),NH(e,r)}function ufe(e,t){return yM(e,t)}var Lp=null,op=null,iM=!1,mT=!1,QO=!1,kl=0;function So(e){e!==op&&e.next===null&&(op===null?Lp=op=e:op=op.next=e),mT=!0,iM||(iM=!0,ffe())}function Wg(e,t){if(!QO&&mT){QO=!0;do for(var r=!1,n=Lp;n!==null;){if(!t)if(e!==0){var i=n.pendingLanes;if(i===0)var a=0;else{var o=n.suspendedLanes,s=n.pingedLanes;a=(1<<31-Ei(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(r=!0,M5(n,a))}else a=We,a=yT(n,n===Nt?a:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(a&3)===0||Hg(n,a)||(r=!0,M5(n,a));n=n.next}while(r);QO=!1}}function cfe(){OH()}function OH(){mT=iM=!1;var e=0;kl!==0&&bfe()&&(e=kl);for(var t=Ti(),r=null,n=Lp;n!==null;){var i=n.next,a=kH(n,t);a===0?(n.next=null,r===null?Lp=i:r.next=i,i===null&&(op=r)):(r=n,(e!==0||(a&3)!==0)&&(mT=!0)),n=i}Yt!==0&&Yt!==5||Wg(e,!1),kl!==0&&(kl=0)}function kH(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ei(a),s=1<<o,l=i[o];l===-1?((s&r)===0||(s&n)!==0)&&(i[o]=Cue(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(t=Nt,r=We,r=yT(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,r===0||e===t&&(yt===2||yt===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&OO(n),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Hg(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(n!==null&&OO(n),bM(r)){case 2:case 8:r=g3;break;case 32:r=G1;break;case 268435456:r=y3;break;default:r=G1}return n=MH.bind(null,e),r=yM(r,n),e.callbackPriority=t,e.callbackNode=r,t}return n!==null&&n!==null&&OO(n),e.callbackPriority=2,e.callbackNode=null,2}function MH(e,t){if(Yt!==0&&Yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(RT()&&e.callbackNode!==r)return null;var n=We;return n=yT(e,e===Nt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(SH(e,n,t),kH(e,Ti()),e.callbackNode!=null&&e.callbackNode===r?MH.bind(null,e):null)}function M5(e,t){if(RT())return null;SH(e,t,!0)}function ffe(){Sfe(function(){(st&6)!==0?yM(v3,cfe):OH()})}function aI(){if(kl===0){var e=wc;e===0&&(e=i1,i1<<=1,(i1&261888)===0&&(i1=256)),kl=e}return kl}function I5(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:E1(e)}function dfe(e,t,r,n,i){if(t==="submit"&&r&&r.stateNode===i){var a=I5((i[Jn]||null).action),o=n.submitter;o&&(t=(t=o[Jn]||null)?I5(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var s=new bT("action","action",null,n,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(kl!==0){var l=new FormData(i,o);Ik(r,{pending:!0,data:l,method:i.method,action:a},null,l)}}else typeof a=="function"&&(s.preventDefault(),l=new FormData(i,o),Ik(r,{pending:!0,data:l,method:i.method,action:a},a,l))},currentTarget:i}]})}}for(_1=0;_1<Tk.length;_1++)b1=Tk[_1],R5=b1.toLowerCase(),L5=b1[0].toUpperCase()+b1.slice(1),Pa(R5,"on"+L5);var b1,R5,L5,_1;Pa(F3,"onAnimationEnd");Pa(G3,"onAnimationIteration");Pa(q3,"onAnimationStart");Pa("dblclick","onDoubleClick");Pa("focusin","onFocus");Pa("focusout","onBlur");Pa(Tce,"onTransitionRun");Pa(wce,"onTransitionStart");Pa(Ece,"onTransitionCancel");Pa(Y3,"onTransitionEnd");Np("onMouseEnter",["mouseout","mouseover"]);Np("onMouseLeave",["mouseout","mouseover"]);Np("onPointerEnter",["pointerout","pointerover"]);Np("onPointerLeave",["pointerout","pointerover"]);Nc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Nc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Nc("onBeforeInput",["compositionend","keypress","textInput","paste"]);Nc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Nc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pfe=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rg));function IH(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(c){Y1(c)}i.currentTarget=null,a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(c){Y1(c)}i.currentTarget=null,a=l}}}}function Fe(e,t){var r=t[NB];r===void 0&&(r=t[NB]=new Set);var n=e+"__bubble";r.has(n)||(RH(t,e,2,!1),r.add(n))}function ek(e,t,r){var n=0;t&&(n|=4),RH(r,e,n,t)}var x1="_reactListening"+Math.random().toString(36).slice(2);function oI(e){if(!e[x1]){e[x1]=!0,z3.forEach(function(r){r!=="selectionchange"&&(pfe.has(r)||ek(r,!1,e),ek(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[x1]||(t[x1]=!0,ek("selectionchange",!1,t))}}function RH(e,t,r,n){switch(aF(t)){case 2:var i=ade;break;case 8:i=ode;break;default:i=pI}r=i.bind(null,t,r,e),i=void 0,!_k||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function tk(e,t,r,n,i){var a=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=mc(s),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){n=a=o;continue e}s=s.parentNode}}n=n.return}I3(function(){var u=a,c=SM(r),f=[];e:{var d=X3.get(e);if(d!==void 0){var p=bT,m=e;switch(e){case"keypress":if(A1(r)===0)break e;case"keydown":case"keyup":p=Que;break;case"focusin":m="focus",p=PO;break;case"focusout":m="blur",p=PO;break;case"beforeblur":case"afterblur":p=PO;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=$B;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Vue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ice;break;case F3:case G3:case q3:p=Hue;break;case Y3:p=oce;break;case"scroll":case"scrollend":p=Uue;break;case"wheel":p=lce;break;case"copy":case"cut":case"paste":p=Gue;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jB;break;case"submit":p=rce;break;case"toggle":case"beforetoggle":p=cce}var h=(t&4)!==0,y=!h&&(e==="scroll"||e==="scrollend"),v=h?d!==null?d+"Capture":null:d;h=[];for(var g=u,_;g!==null;){var b=g;if(_=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||_===null||v===null||(b=Ag(g,v),b!=null&&h.push(Lg(g,b,_))),y)break;g=g.return}0<h.length&&(d=new p(d,m,null,r,c),f.push({event:d,listeners:h}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&r!==yk&&(m=r.relatedTarget||r.fromElement)&&(mc(m)||m[Bp]))break e;(d||p)&&(m=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(p=r.relatedTarget||r.toElement,d=u,p=p?mc(p):null,p!==null&&(y=Bg(p),h=p.tag,p!==y||h!==5&&h!==27&&h!==6)&&(p=null)):(d=null,p=u),d!==p&&(h=$B,b="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=jB,b="onPointerLeave",v="onPointerEnter",g="pointer"),y=d==null?m:cg(d),_=p==null?m:cg(p),m=new h(b,g+"leave",d,r,c),m.target=y,m.relatedTarget=_,b=null,mc(c)===u&&(h=new h(v,g+"enter",p,r,c),h.target=_,h.relatedTarget=y,b=h),y=b,h=d&&p?ok(d,p,mfe):null,d!==null&&P5(f,m,d,h,!1),p!==null&&y!==null&&P5(f,y,p,h,!0)))}e:{if(d=u?cg(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var x=HB;else if(ZB(d))if(j3)x=bce;else{x=yce;var S=gce}else p=d.nodeName,!p||p.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&xM(u.elementType)&&(x=HB):x=_ce;if(x&&(x=x(e,u))){U3(f,x,r,c);break e}S&&S(e,d,u)}switch(S=u?cg(u):window,e){case"focusin":(ZB(S)||S.contentEditable==="true")&&(dp=S,xk=u,hg=null);break;case"focusout":hg=xk=dp=null;break;case"mousedown":Sk=!0;break;case"contextmenu":case"mouseup":case"dragend":Sk=!1,YB(f,r,c);break;case"selectionchange":if(Sce)break;case"keydown":case"keyup":YB(f,r,c)}var T;if(EM)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else fp?P3(e,r)&&(E="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(E="onCompositionStart");E&&(L3&&r.locale!=="ko"&&(fp||E!=="onCompositionStart"?E==="onCompositionEnd"&&fp&&(T=R3()):(Cl=c,TM="value"in Cl?Cl.value:Cl.textContent,fp=!0)),S=hT(u,E),0<S.length&&(E=new UB(E,e,null,r,c),f.push({event:E,listeners:S}),T?E.data=T:(T=$3(r),T!==null&&(E.data=T)))),(T=dce?pce(e,r):mce(e,r))&&(E=hT(u,"onBeforeInput"),0<E.length&&(S=new UB("onBeforeInput","beforeinput",null,r,c),f.push({event:S,listeners:E}),S.data=T)),dfe(f,e,u,r,c)}IH(f,t)})}function Lg(e,t,r){return{instance:e,listener:t,currentTarget:r}}function hT(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Ag(e,r),i!=null&&n.unshift(Lg(e,i,a)),i=Ag(e,t),i!=null&&n.push(Lg(e,i,a))),e.tag===3)return n;e=e.return}return[]}function mfe(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function P5(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===n)break;s!==5&&s!==26&&s!==27||u===null||(l=u,i?(u=Ag(r,a),u!=null&&o.unshift(Lg(r,u,l))):i||(u=Ag(r,a),u!=null&&o.push(Lg(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var hfe=/\r\n?/g,vfe=/\u0000|\uFFFD/g;function $5(e){return(typeof e=="string"?e:""+e).replace(hfe,`
|
|
52
|
+
`).replace(vfe,"")}function LH(e,t){return t=$5(t),$5(e)===t}function _t(e,t,r,n,i,a){switch(r){case"children":if(typeof n=="string")t==="body"||t==="textarea"&&n===""||Op(e,n);else if(typeof n=="number"||typeof n=="bigint")t!=="body"&&Op(e,""+n);else return;break;case"className":s1(e,"class",n);break;case"tabIndex":s1(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":s1(e,r,n);break;case"style":M3(e,n,a);return;case"data":if(t!=="object"){s1(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=E1(n),e.setAttribute(r,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(r==="formAction"?(t!=="input"&&_t(e,t,"name",i.name,i,null),_t(e,t,"formEncType",i.formEncType,i,null),_t(e,t,"formMethod",i.formMethod,i,null),_t(e,t,"formTarget",i.formTarget,i,null)):(_t(e,t,"encType",i.encType,i,null),_t(e,t,"method",i.method,i,null),_t(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(r);break}n=E1(n),e.setAttribute(r,n);break;case"onClick":n!=null&&(e.onclick=ho);return;case"onScroll":n!=null&&Fe("scroll",e);return;case"onScrollEnd":n!=null&&Fe("scrollend",e);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(B(61));if(r=n.__html,r!=null){if(i.children!=null)throw Error(B(60));a?.__html!==r&&(e.innerHTML=r)}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}r=E1(n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":n===!0?e.setAttribute(r,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(r,n):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(r,n):e.removeAttribute(r);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(r):e.setAttribute(r,n);break;case"popover":Fe("beforetoggle",e),Fe("toggle",e),w1(e,"popover",n);break;case"xlinkActuate":os(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":os(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":os(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":os(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":os(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":os(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":os(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":os(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":os(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":w1(e,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")r=Pue.get(r)||r,w1(e,r,n);else return}at=!0}function aM(e,t,r,n,i,a){switch(r){case"style":M3(e,n,a);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(B(61));if(r=n.__html,r!=null){if(i.children!=null)throw Error(B(60));a?.__html!==r&&(e.innerHTML=r)}}break;case"children":if(typeof n=="string")Op(e,n);else if(typeof n=="number"||typeof n=="bigint")Op(e,""+n);else return;break;case"onScroll":n!=null&&Fe("scroll",e);return;case"onScrollEnd":n!=null&&Fe("scrollend",e);return;case"onClick":n!=null&&(e.onclick=ho);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!A3.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(i=r.endsWith("Capture"),a=r.slice(2,i?r.length-7:void 0),t=e[Jn]||null,t=t!=null?t[r]:null,typeof t=="function"&&e.removeEventListener(a,t,i),typeof n=="function")){typeof t!="function"&&t!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(a,n,i);break e}at=!0,r in e?e[r]=n:n===!0?e.setAttribute(r,""):w1(e,r,n)}return}at=!0}function Kr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",e),Fe("load",e);var n=!1,i=!1,a;for(a in r)if(r.hasOwnProperty(a)){var o=r[a];if(o!=null)switch(a){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(B(137,t));default:_t(e,t,a,o,r,null)}}i&&_t(e,t,"srcSet",r.srcSet,r,null),n&&_t(e,t,"src",r.src,r,null);return;case"input":Fe("invalid",e);var s=a=o=i=null,l=null,u=null;for(n in r)if(r.hasOwnProperty(n)){var c=r[n];if(c!=null)switch(n){case"name":i=c;break;case"type":o=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":a=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(B(137,t));break;default:_t(e,t,n,c,r,null)}}N3(e,a,s,l,u,o,i,!1);return;case"select":Fe("invalid",e),n=o=a=null;for(i in r)if(r.hasOwnProperty(i)&&(s=r[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":o=s;break;case"multiple":n=s;default:_t(e,t,i,s,r,null)}t=a,r=o,e.multiple=!!n,t!=null?bp(e,!!n,t,!1):r!=null&&bp(e,!!n,r,!0);return;case"textarea":Fe("invalid",e),a=i=n=null;for(o in r)if(r.hasOwnProperty(o)&&(s=r[o],s!=null))switch(o){case"value":n=s;break;case"defaultValue":i=s;break;case"children":a=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(B(91));break;default:_t(e,t,o,s,r,null)}k3(e,n,i,a);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(n=r[l],n!=null))switch(l){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:_t(e,t,l,n,r,null)}return;case"dialog":Fe("beforetoggle",e),Fe("toggle",e),Fe("cancel",e),Fe("close",e);break;case"iframe":case"object":Fe("load",e);break;case"video":case"audio":for(n=0;n<Rg.length;n++)Fe(Rg[n],e);break;case"image":Fe("error",e),Fe("load",e);break;case"details":Fe("toggle",e);break;case"embed":case"source":case"link":Fe("error",e),Fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&(n=r[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(B(137,t));default:_t(e,t,u,n,r,null)}return;default:if(xM(t)){for(c in r)r.hasOwnProperty(c)&&(n=r[c],n!==void 0&&aM(e,t,c,n,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(n=r[s],n!=null&&_t(e,t,s,n,r,null))}var gfe={};function yfe(e,t,r,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,o=null,s=null,l=null,u=null,c=null;for(p in r){var f=r[p];if(r.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":l=f;default:n.hasOwnProperty(p)||_t(e,t,p,null,n,f)}}for(var d in n){var p=n[d];if(f=r[d],n.hasOwnProperty(d)&&(p!=null||f!=null))switch(d){case"type":p!==f&&(at=!0),a=p;break;case"name":p!==f&&(at=!0),i=p;break;case"checked":p!==f&&(at=!0),u=p;break;case"defaultChecked":p!==f&&(at=!0),c=p;break;case"value":p!==f&&(at=!0),o=p;break;case"defaultValue":p!==f&&(at=!0),s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(B(137,t));break;default:p!==f&&_t(e,t,d,p,n,f)}}gk(e,o,s,l,u,c,a,i);return;case"select":p=o=s=d=null;for(a in r)if(l=r[a],r.hasOwnProperty(a)&&l!=null)switch(a){case"value":break;case"multiple":p=l;default:n.hasOwnProperty(a)||_t(e,t,a,null,n,l)}for(i in n)if(a=n[i],l=r[i],n.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":a!==l&&(at=!0),d=a;break;case"defaultValue":a!==l&&(at=!0),s=a;break;case"multiple":a!==l&&(at=!0),o=a;default:a!==l&&_t(e,t,i,a,n,l)}t=s,r=o,n=p,d!=null?bp(e,!!r,d,!1):!!n!=!!r&&(t!=null?bp(e,!!r,t,!0):bp(e,!!r,r?[]:"",!1));return;case"textarea":p=d=null;for(s in r)if(i=r[s],r.hasOwnProperty(s)&&i!=null&&!n.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:_t(e,t,s,null,n,i)}for(o in n)if(i=n[o],a=r[o],n.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case"value":i!==a&&(at=!0),d=i;break;case"defaultValue":i!==a&&(at=!0),p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(B(91));break;default:i!==a&&_t(e,t,o,i,n,a)}O3(e,d,p);return;case"option":for(var m in r)if(d=r[m],r.hasOwnProperty(m)&&d!=null&&!n.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:_t(e,t,m,null,n,d)}for(l in n)if(d=n[l],p=r[l],n.hasOwnProperty(l)&&d!==p&&(d!=null||p!=null))switch(l){case"selected":d!==p&&(at=!0),e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:_t(e,t,l,d,n,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in r)d=r[h],r.hasOwnProperty(h)&&d!=null&&!n.hasOwnProperty(h)&&_t(e,t,h,null,n,d);for(u in n)if(d=n[u],p=r[u],n.hasOwnProperty(u)&&d!==p&&(d!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(B(137,t));break;default:_t(e,t,u,d,n,p)}return;default:if(xM(t)){for(var y in r)d=r[y],r.hasOwnProperty(y)&&d!==void 0&&!n.hasOwnProperty(y)&&aM(e,t,y,void 0,n,d);for(c in n)d=n[c],p=r[c],!n.hasOwnProperty(c)||d===p||d===void 0&&p===void 0||aM(e,t,c,d,n,p);return}}for(var v in r)d=r[v],r.hasOwnProperty(v)&&d!=null&&!n.hasOwnProperty(v)&&_t(e,t,v,null,n,d);for(f in n)d=n[f],p=r[f],!n.hasOwnProperty(f)||d===p||d==null&&p==null||_t(e,t,f,d,n,p)}function U5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _fe(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),n=0;n<r.length;n++){var i=r[n],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&U5(o)){for(o=0,s=i.responseEnd,n+=1;n<r.length;n++){var l=r[n],u=l.startTime;if(u>s)break;var c=l.transferSize,f=l.initiatorType;c&&U5(f)&&(l=l.responseEnd,o+=c*(l<s?1:(s-u)/(l-u)))}if(--n,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var oM=null,sM=null;function Pg(e){return e.nodeType===9?e:e.ownerDocument}function j5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function PH(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $H(e,t,r,n){return r=Pg(r).createElement(e),r[Gr]=n,r[Jn]=t,Kr(r,e,t),Or(r),r}function lM(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rk=null;function bfe(){var e=window.event;return e&&e.type==="popstate"?e===rk?!1:(rk=e,!0):(rk=null,!1)}var sI=typeof setTimeout=="function"?setTimeout:void 0,xfe=typeof clearTimeout=="function"?clearTimeout:void 0,V5=typeof Promise=="function"?Promise:void 0,B5=typeof requestAnimationFrame=="function"?requestAnimationFrame:sI,Sfe=typeof queueMicrotask=="function"?queueMicrotask:typeof V5<"u"?function(e){return V5.resolve(null).then(e).catch(Tfe)}:sI;function Tfe(e){setTimeout(function(){throw e})}function Xl(e){return e==="head"}function Z5(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"||r==="/&"){if(n===0){e.removeChild(i),Vp(t);return}n--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")n++;else if(r==="html")ik(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,ik(r);for(var a=r.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Gg]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&a.rel.toLowerCase()==="stylesheet"||r.removeChild(a),a=o}}else r==="body"&&ik(e.ownerDocument.body);r=i}while(r);Vp(t)}function H5(e,t){var r=e;e=0;do{var n=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=n}while(r)}function UH(e,t,r){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,r!=null&&(e.style.viewTransitionClass=r),r=getComputedStyle(e),r.display==="inline"){if(t=e.getClientRects(),t.length===1)var n=1;else for(var i=n=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&n++}n===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+r.paddingTop,e.marginBottom="-"+r.paddingBottom)}}function jH(e,t){e=e.style,t=t.style;var r=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=r==null||typeof r=="boolean"?"":(""+r).trim(),r=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=r==null||typeof r=="boolean"?"":(""+r).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(r=t.display,e.display=r==null||typeof r=="boolean"?"":r,r=t.margin,r!=null?e.margin=r:(r=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=r==null||typeof r=="boolean"?"":r,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function VH(e,t,r){return r=r.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=r.innerHeight&&e.left<=r.innerWidth}}function uM(e){var t=e.getBoundingClientRect(),r=getComputedStyle(e);return VH(t,r,e)}function wfe(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var r=getComputedStyle(e);return VH(t,r,e)}function Efe(e){return e.documentElement.clientHeight}function zfe(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Afe(e,t,r,n,i,a,o,s,l){var u=t.nodeType===9?t:t.ownerDocument;try{var c=u.startViewTransition({update:function(){var d=u.defaultView,p=d.navigation&&d.navigation.transition,m=u.fonts.status;n();var h=[];if(m==="loaded"&&(Efe(u),u.fonts.status==="loading"&&h.push(u.fonts.ready)),m=h.length,e!==null)for(var y=e.suspenseyImages,v=0,g=0;g<y.length;g++){var _=y[g];if(!_.complete){var b=_.getBoundingClientRect();if(0<b.bottom&&0<b.right&&b.top<d.innerHeight&&b.left<d.innerWidth){if(v+=QH(_),v>j1){h.length=m;break}_=new Promise(zfe.bind(_)),h.push(_)}}}if(0<h.length)return d=Promise.race([Promise.all(h),new Promise(function(x){return setTimeout(x,500)})]).then(i,i),(p?Promise.allSettled([p.finished,d]):d).then(a,a);if(i(),p)return p.finished.then(a,a);a()},types:r});u.__reactViewTransition=c;var f=[];return c.ready.then(function(){for(var d=u.documentElement.getAnimations({subtree:!0}),p=0;p<d.length;p++){var m=d[p],h=m.effect,y=h.pseudoElement;if(y!=null&&y.startsWith("::view-transition")){f.push(m),m=h.getKeyframes();for(var v=y=void 0,g=!0,_=0;_<m.length;_++){var b=m[_],x=b.width;if(y===void 0)y=x;else if(y!==x){g=!1;break}if(x=b.height,v===void 0)v=x;else if(v!==x){g=!1;break}delete b.width,delete b.height,b.transform==="none"&&delete b.transform}g&&y!==void 0&&v!==void 0&&(h.setKeyframes(m),g=getComputedStyle(h.target,h.pseudoElement),g.width!==y||g.height!==v)&&(g=m[0],g.width=y,g.height=v,g=m[m.length-1],g.width=y,g.height=v,h.setKeyframes(m))}}o()},function(d){u.__reactViewTransition===c&&(u.__reactViewTransition=null);try{if(typeof d=="object"&&d!==null)switch(d.name){case"InvalidStateError":(d.message==="View transition was skipped because document visibility state is hidden."||d.message==="Skipping view transition because document visibility state has become hidden."||d.message==="Skipping view transition because viewport size changed."||d.message==="Transition was aborted because of invalid state")&&(d=null)}d!==null&&l(d)}finally{n(),i(),o()}}),c.finished.finally(function(){for(var d=0;d<f.length;d++)f[d].cancel();u.__reactViewTransition===c&&(u.__reactViewTransition=null),s()}),c}catch{return n(),i(),o(),null}}function hc(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}hc.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ot({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};hc.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,r=e.getAnimations({subtree:!0}),n=[],i=0;i<r.length;i++){var a=r[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&n.push(r[i])}return n};hc.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function BH(e){return{name:e,group:new hc("group",e),imagePair:new hc("image-pair",e),old:new hc("old",e),new:new hc("new",e)}}function Ci(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ci.prototype.addEventListener=function(e,t,r){var n=null,i=null;if(!(r!=null&&typeof r!="boolean"&&(n=r.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(ZH(a,e,t,r)===-1){var o=this,s=t;r!=null&&typeof r!="boolean"&&r.once===!0&&(s=function(l){o.removeEventListener(e,t,r),typeof t=="function"?t.call(this,l):t.handleEvent(l)}),n!==null&&(i=o.removeEventListener.bind(o,e,t,r),n.addEventListener("abort",i,{once:!0}),i=n.removeEventListener.bind(n,"abort",i)),n=Pp(r),a.push({type:e,listener:t,optionsOrUseCapture:r,attachedListener:s,cleanup:i}),Wn(this._fragmentFiber.child,!1,Cfe,e,s,n)}this._eventListeners=a}};function Cfe(e,t,r,n){return xr(e).addEventListener(t,r,n),!1}Ci.prototype.removeEventListener=function(e,t,r){var n=this._eventListeners;if(n!==null&&(t=ZH(n,e,t,r),t!==-1)){var i=n[t];r=i.attachedListener;var a=i.cleanup;i=Pp(i.optionsOrUseCapture),Wn(this._fragmentFiber.child,!1,Dfe,e,r,i),n.splice(t,1),a!==null&&a()}};function Dfe(e,t,r,n){return xr(e).removeEventListener(t,r,n),!1}function Pp(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function F5(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function ZH(e,t,r,n){if(e.length===0)return-1;n=F5(n);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===r&&F5(a.optionsOrUseCapture)===n)return i}return-1}Ci.prototype.dispatchEvent=function(e){var t=Dc(this._fragmentFiber);if(t===null)return!0;t=xr(t);var r=this._eventListeners;if(r!==null&&0<r.length||!e.bubbles){var n=t.nodeType===9?t.createComment(""):document.createTextNode("");if(r)for(var i=0;i<r.length;i++){var a=r[i];n.addEventListener(a.type,a.attachedListener,Pp(a.optionsOrUseCapture))}if(t.appendChild(n),e=n.dispatchEvent(e),r)for(i=0;i<r.length;i++)a=r[i],n.removeEventListener(a.type,a.attachedListener,Pp(a.optionsOrUseCapture));return t.removeChild(n),e}return t.dispatchEvent(e)};Ci.prototype.focus=function(e){Wn(this._fragmentFiber.child,!0,HH,e,void 0,void 0)};function HH(e,t){return e.tag===6?!1:(e=xr(e),Vfe(e,t))}Ci.prototype.focusLast=function(e){var t=[];Wn(this._fragmentFiber.child,!0,lI,t,void 0,void 0);for(var r=t.length-1;0<=r&&!HH(t[r],e);r--);};function lI(e,t){return t.push(e),!1}Ci.prototype.blur=function(){var e=Dc(this._fragmentFiber);e!==null&&(e=xr(e),e=Pg(e).activeElement,e!==null&&Wn(this._fragmentFiber.child,!1,Nfe,e,void 0,void 0))};function Nfe(e,t){return e.tag===6?!1:(e=xr(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ci.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Wn(this._fragmentFiber.child,!1,Ofe,e,void 0,void 0)};function Ofe(e,t){return e.tag===6||(e=xr(e),t.observe(e)),!1}Ci.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Wn(this._fragmentFiber.child,!1,kfe,e,void 0,void 0);for(var r=t=0;r<Ra.length;r++){var n=Ra[r];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):Ra[t++]=n}Ra.length=t}};function kfe(e,t){return e.tag===6||(e=xr(e),t.unobserve(e)),!1}var Ra=[],nk=!1;function Mfe(e,t,r){Ra.push({fragmentInstance:e,observer:t,instance:r}),nk||(nk=!0,Bfe(function(){nk=!1;var n=Ra;Ra=[];for(var i=0;i<n.length;i++){var a=n[i];a.observer.unobserve(a.instance)}}))}Ci.prototype.getClientRects=function(){var e=[];return Wn(this._fragmentFiber.child,!1,Ife,e,void 0,void 0),e};function Ife(e,t){if(e.tag===6){e=e.stateNode;var r=e.ownerDocument.createRange();r.selectNodeContents(e),t.push.apply(t,r.getClientRects())}else e=xr(e),t.push.apply(t,e.getClientRects());return!1}Ci.prototype.getRootNode=function(e){var t=Dc(this._fragmentFiber);return t===null?this:xr(t).getRootNode(e)};Ci.prototype.compareDocumentPosition=function(e){var t=Dc(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var r=[];Wn(this._fragmentFiber.child,!1,lI,r,void 0,void 0);var n=xr(t);if(r.length===0){if(r=n,wB(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(r=t)}t=this._fragmentFiber;var i=n=r.compareDocumentPosition(e);return r===e?i=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(r=d3(t)[1],r===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=xr(r).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=xr(r[0]),i=xr(r[r.length-1]);var a=wB(this._fragmentFiber)?t.parentElement:n;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),l=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=n&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=n&&t===e||a&&i===e||l||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Rfe(t,this._fragmentFiber,r[0],r[r.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Rfe(e,t,r,n,i){var a=mc(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(r=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){r=!0;break e}a=a.return}r=!1}return r}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;e:{for(a=t,t=Dc(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===r)&&(t=ok(r,a,EB),t===null?t=!1:(Wn(t,!0,fue,a,r),a=sp,sp=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===n)&&(t=ok(n,a,EB),t===null?t=!1:(Wn(t,!0,due,a,n),a=sp,ak=sp=null,t=a!==null)),t):!1}function G5(e,t){var r=e.ownerDocument.createRange();r.selectNodeContents(e),e=r.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ci.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(B(566));var t=[];Wn(this._fragmentFiber.child,!1,lI,t,void 0,void 0);var r=e!==!1;if(t.length===0){var n=d3(this._fragmentFiber);if(n=r?n[1]||n[0]||Dc(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){e=xr(n),G5(e,r);return}if(n=xr(n),n.nodeType!==9){if(n.nodeType===11){r="host"in n?n.host:null,r!==null&&r.scrollIntoView(e);return}n.scrollIntoView(e)}}for(n=r?t.length-1:0;n!==(r?-1:t.length);){var i=t[n];i.tag===6?(i=xr(i),G5(i,r)):xr(i).scrollIntoView(e),n+=r?-1:1}};function Lfe(e,t){return e=xr(e),FH(e,t),!1}function FH(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function GH(e,t){var r=t._eventListeners;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];e.addEventListener(i.type,i.attachedListener,Pp(i.optionsOrUseCapture))}e.nodeType!==3&&(r=t._observers,r!==null&&r.forEach(function(a){for(var o=0,s=0;s<Ra.length;s++){var l=Ra[s];(l.fragmentInstance!==t||l.observer!==a||l.instance!==e)&&(Ra[o++]=l)}Ra.length=o,a.observe(e)}),FH(e,t))}function Pfe(e,t){var r=t._eventListeners;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];e.removeEventListener(i.type,i.attachedListener,Pp(i.optionsOrUseCapture))}e.nodeType!==3&&(r=t._observers,r!==null&&r.forEach(function(a){typeof a.rootMargin=="string"?Mfe(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function cM(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":cM(r),_T(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function $fe(e,t,r,n){for(;e.nodeType===1;){var i=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Gg])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=na(e.nextSibling),e===null)break}return null}function Ufe(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=na(e.nextSibling),e===null))return null;return e}function qH(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=na(e.nextSibling),e===null))return null;return e}function fM(e){return e.data==="$?"||e.data==="$~"}function uI(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jfe(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var n=function(){t(),r.removeEventListener("DOMContentLoaded",n)};r.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function na(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var dM=null;function q5(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return na(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Y5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Vfe(e,t){function r(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",r,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",r,!0)}return n}function Bfe(e){B5(function(){B5(function(t){return e(t)})})}function YH(e,t,r){switch(t=Pg(r),e){case"html":if(e=t.documentElement,!e)throw Error(B(452));return e;case"head":if(e=t.head,!e)throw Error(B(453));return e;case"body":if(e=t.body,!e)throw Error(B(454));return e;default:throw Error(B(451))}}function XH(e,t,r){for(var n in r){var i=r[n];r.hasOwnProperty(n)&&i!=null&&_t(e,t,n,null,gfe,i)}r.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===ho&&(e.onclick=null),_T(e)}function ik(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_T(e)}var ia=new Map,X5=new Set;function $g(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var bs=lt.d;lt.d={f:Zfe,r:Hfe,D:Ffe,C:Gfe,L:qfe,m:Yfe,X:Kfe,S:Xfe,M:Wfe};function Zfe(){var e=bs.f(),t=MT();return e||t}function Hfe(e){var t=Zp(e);t!==null&&t.tag===5&&t.type==="form"?MZ(t):bs.r(e)}var qp=typeof document>"u"?null:document;function KH(e,t,r){var n=qp;if(n&&typeof t=="string"&&t){var i=ea(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof r=="string"&&(i+='[crossorigin="'+r+'"]'),X5.has(i)||(X5.add(i),e={rel:e,crossOrigin:r,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),Kr(t,"link",e),Or(t),n.head.appendChild(t)))}}function Ffe(e){bs.D(e),KH("dns-prefetch",e,null)}function Gfe(e,t){bs.C(e,t),KH("preconnect",e,t)}function qfe(e,t,r){bs.L(e,t,r);var n=qp;if(n&&e&&t){var i='link[rel="preload"][as="'+ea(t)+'"]';t==="image"&&r&&r.imageSrcSet?(i+='[imagesrcset="'+ea(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(i+='[imagesizes="'+ea(r.imageSizes)+'"]')):i+='[href="'+ea(e)+'"]';var a=i;switch(t){case"style":a=$p(e);break;case"script":a=Yp(e)}if(!(ia.has(a)||(e=Ot({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),ia.set(a,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Jg(a))||t==="script"&&n.querySelector(Qg(a))))){var o=n.createElement("link");Kr(o,"link",e),t==="style"&&(o[q1]=!0,o.onload=o.onerror=function(){E3(o)}),Or(o),n.head.appendChild(o)}}}function Yfe(e,t){bs.m(e,t);var r=qp;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ea(n)+'"][href="'+ea(e)+'"]',a=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Yp(e)}if(!ia.has(a)&&(e=Ot({rel:"modulepreload",href:e},t),ia.set(a,e),r.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Qg(a)))return}n=r.createElement("link"),Kr(n,"link",e),Or(n),r.head.appendChild(n)}}}function Xfe(e,t,r){bs.S(e,t,r);var n=qp;if(n&&e){var i=_p(n).hoistableStyles,a=$p(e);t=t||"default";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=n.querySelector(Jg(a)))s.loading=5;else{e=Ot({rel:"stylesheet",href:e,"data-precedence":t},r),(r=ia.get(a))&&cI(e,r);var l=o=n.createElement("link");Or(l),Kr(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,$1(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}}function Kfe(e,t){bs.X(e,t);var r=qp;if(r&&e){var n=_p(r).hoistableScripts,i=Yp(e),a=n.get(i);a||(a=r.querySelector(Qg(i)),a||(e=Ot({src:e,async:!0},t),(t=ia.get(i))&&fI(e,t),a=r.createElement("script"),Or(a),Kr(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}}function Wfe(e,t){bs.M(e,t);var r=qp;if(r&&e){var n=_p(r).hoistableScripts,i=Yp(e),a=n.get(i);a||(a=r.querySelector(Qg(i)),a||(e=Ot({src:e,async:!0,type:"module"},t),(t=ia.get(i))&&fI(e,t),a=r.createElement("script"),Or(a),Kr(a,"link",e),r.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(i,a))}}function K5(e,t,r,n){var i=(i=Ml.current)?$g(i):null;if(!i)throw Error(B(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(r=$p(r.href),t=_p(i).hoistableStyles,n=t.get(r),n||(n={type:"style",instance:null,count:0,state:null},t.set(r,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=$p(r.href);var a=_p(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Jg(e)))?a._p||(o.instance=a,o.state.loading=5):(a=ia.get(e),a||(a={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},ia.set(e,a)),Jfe(i,e,a,o.state))),t&&n===null)throw Error(B(528,""));return o}if(t&&n!==null)throw Error(B(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(r=Yp(r),t=_p(i).hoistableScripts,n=t.get(r),n||(n={type:"script",instance:null,count:0,state:null},t.set(r,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(B(444,e))}}function $p(e){return'href="'+ea(e)+'"'}function Jg(e){return'link[rel="stylesheet"]['+e+"]"}function WH(e){return Ot({},e,{"data-precedence":e.precedence,precedence:null})}function Jfe(e,t,r,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[q1]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[q1]=!0,t.onload=t.onerror=E3.bind(null,t),Kr(t,"link",r),Or(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function Yp(e){return'[src="'+ea(e)+'"]'}function Qg(e){return"script[async]"+e}function W5(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ea(r.href)+'"]');if(n)return t.instance=n,Or(n),n;var i=Ot({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Or(n),Kr(n,"style",i),$1(n,r.precedence,e),t.instance=n;case"stylesheet":i=$p(r.href);var a=e.querySelector(Jg(i));if(a)return t.state.loading|=4,t.instance=a,Or(a),a;n=WH(r),(i=ia.get(i))&&cI(n,i),a=(e.ownerDocument||e).createElement("link"),Or(a);var o=a;return o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Kr(a,"link",n),t.state.loading|=4,$1(a,r.precedence,e),t.instance=a;case"script":return a=Yp(r.src),(i=e.querySelector(Qg(a)))?(t.instance=i,Or(i),i):(n=r,(i=ia.get(a))&&(n=Ot({},r),fI(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Or(i),Kr(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(B(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,$1(n,r.precedence,e));return t.instance}function $1(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,a=i,o=0;o<n.length;o++){var s=n[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function cI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fI(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var U1=null;function J5(e,t,r){if(U1===null){var n=new Map,i=U1=new Map;i.set(r,n)}else i=U1,n=i.get(r),n||(n=new Map,i.set(r,n));if(n.has(e))return n;for(n.set(e,null),r=r.getElementsByTagName(e),i=0;i<r.length;i++){var a=r[i];if(!(a[Gg]||a[Gr]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var s=n.get(o);s?s.push(a):n.set(o,[a])}}return n}function pM(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Qfe(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Q5(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function JH(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function QH(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function e3(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=QH(t),e.suspenseyImages.push(t)),e=rde.bind(e),t.decode().then(e,e))}function ede(e,t,r,n){if(r.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var i=$p(n.href),a=t.querySelector(Jg(i));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ug.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=a,Or(a);return}a=t.ownerDocument||t,n=WH(n),(i=ia.get(i))&&cI(n,i),a=a.createElement("link"),Or(a);var o=a;o._p=new Promise(function(s,l){o.onload=s,o.onerror=l}),Kr(a,"link",n),r.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Ug.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var j1=0;function tde(e,t){return e.stylesheets&&e.count===0&&V1(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var n=setTimeout(function(){if(e.stylesheets&&V1(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&j1===0&&(j1=62500*_fe());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&V1(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>j1?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function eF(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)V1(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ug(){this.count--,eF(this)}function rde(){this.imgCount--,eF(this)}var vT=null;function V1(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vT=new Map,t.forEach(nde,e),vT=null,Ug.call(e))}function nde(e,t){if(!(t.state.loading&4)){var r=vT.get(e);if(r)var n=r.get(null);else{r=new Map,vT.set(e,r);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(r.set(o.dataset.precedence,o),n=o)}n&&r.set(null,n)}i=t.instance,o=i.getAttribute("data-precedence"),a=r.get(o)||n,a===n&&r.set(null,i),r.set(o,i),this.count++,n=Ug.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Up={$$typeof:mo,Provider:null,Consumer:null,_currentValue:vc,_currentValue2:vc,_threadCount:0};function ide(e,t,r,n,i,a,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=kO(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kO(0),this.hiddenUpdates=kO(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.transitionTypes=null,this.incompleteTransitions=new Map}function tF(e,t,r,n,i,a,o,s,l,u,c,f){return e=new ide(e,t,r,o,l,u,c,f,s),t=1,a===!0&&(t|=24),a=Xn(3,null,null,t),e.current=a,a.stateNode=e,t=OM(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:n,isDehydrated:r,cache:t},IM(a),e}function rF(e){return e?(e=hp,e):hp}function nF(e,t,r,n,i,a){i=rF(i),n.context===null?n.context=i:n.pendingContext=i,n=Rl(t),n.payload={element:r},a=a===void 0?null:a,a!==null&&(n.callback=a),r=Ll(e,n,t),r!==null&&(Kn(r,e,t),gg(r,e,t))}function t3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function dI(e,t){t3(e,t),(e=e.alternate)&&t3(e,t)}function iF(e){if(e.tag===13||e.tag===31){var t=kc(e,67108864);t!==null&&Kn(t,e,67108864),dI(e,67108864)}}function r3(e){if(e.tag===13||e.tag===31){var t=zi();t=_M(t);var r=kc(e,t);r!==null&&Kn(r,e,t),dI(e,t)}}var jp=!0;function ade(e,t,r,n){var i=Ee.T;Ee.T=null;var a=lt.p;try{lt.p=2,pI(e,t,r,n)}finally{lt.p=a,Ee.T=i}}function ode(e,t,r,n){var i=Ee.T;Ee.T=null;var a=lt.p;try{lt.p=8,pI(e,t,r,n)}finally{lt.p=a,Ee.T=i}}function pI(e,t,r,n){if(jp){var i=mM(n);if(i===null)tk(e,t,n,gT,r),n3(e,n);else if(lde(i,e,t,r,n))n.stopPropagation();else if(n3(e,n),t&4&&-1<sde.indexOf(e)){for(;i!==null;){var a=Zp(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=fc(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-Ei(o);s.entanglements[1]|=l,o&=~l}So(a),(st&6)===0&&(fT=Ti()+500,Wg(0,!1))}}break;case 31:case 13:s=kc(a,2),s!==null&&Kn(s,a,2),MT(),dI(a,2)}if(a=mM(n),a===null&&tk(e,t,n,gT,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else tk(e,t,n,null,r)}}function mM(e){return e=SM(e),mI(e)}var gT=null;function mI(e){if(gT=null,e=mc(e),e!==null){var t=Bg(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=u3(t),e!==null)return e;e=null}else if(r===31){if(e=c3(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gT=e,null}function aF(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xue()){case v3:return 2;case g3:return 8;case G1:case Sue:return 32;case y3:return 268435456;default:return 32}default:return 32}}var hM=!1,jl=null,Vl=null,Bl=null,jg=new Map,Vg=new Map,zl=[],sde="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function n3(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Vl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":jg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vg.delete(t.pointerId)}}function og(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Zp(t),t!==null&&iF(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lde(e,t,r,n,i){switch(t){case"focusin":return jl=og(jl,e,t,r,n,i),!0;case"dragenter":return Vl=og(Vl,e,t,r,n,i),!0;case"mouseover":return Bl=og(Bl,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return jg.set(a,og(jg.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Vg.set(a,og(Vg.get(a)||null,e,t,r,n,i)),!0}return!1}function oF(e){var t=mc(e.target);if(t!==null){var r=Bg(t);if(r!==null){if(t=r.tag,t===13){if(t=u3(r),t!==null){e.blockedOn=t,DB(e.priority,function(){r3(r)});return}}else if(t===31){if(t=c3(r),t!==null){e.blockedOn=t,DB(e.priority,function(){r3(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function B1(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=mM(e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);yk=n,r.target.dispatchEvent(n),yk=null}else return t=Zp(r),t!==null&&iF(t),e.blockedOn=r,!1;t.shift()}return!0}function i3(e,t,r){B1(e)&&r.delete(t)}function ude(){hM=!1,jl!==null&&B1(jl)&&(jl=null),Vl!==null&&B1(Vl)&&(Vl=null),Bl!==null&&B1(Bl)&&(Bl=null),jg.forEach(i3),Vg.forEach(i3)}function S1(e,t){e.blockedOn===t&&(e.blockedOn=null,hM||(hM=!0,Sr.unstable_scheduleCallback(Sr.unstable_NormalPriority,ude)))}var T1=null;function a3(e){T1!==e&&(T1=e,Sr.unstable_scheduleCallback(Sr.unstable_NormalPriority,function(){T1===e&&(T1=null);for(var t=0;t<e.length;t+=3){var r=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(mI(n||r)===null)continue;break}var a=Zp(r);a!==null&&(e.splice(t,3),t-=3,Ik(a,{pending:!0,data:i,method:r.method,action:n},n,i))}}))}function Vp(e){function t(l){return S1(l,e)}jl!==null&&S1(jl,e),Vl!==null&&S1(Vl,e),Bl!==null&&S1(Bl,e),jg.forEach(t),Vg.forEach(t);for(var r=0;r<zl.length;r++){var n=zl[r];n.blockedOn===e&&(n.blockedOn=null)}for(;0<zl.length&&(r=zl[0],r.blockedOn===null);)oF(r),r.blockedOn===null&&zl.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(n=0;n<r.length;n+=3){var i=r[n],a=r[n+1],o=i[Jn]||null;if(typeof a=="function")o||a3(r);else if(o){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[Jn]||null)s=o.formAction;else if(mI(i)!==null)continue}else s=o.action;typeof s=="function"?r[n+1]=s:(r.splice(n,3),n-=3),a3(r)}}}function sF(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(r,20)}function r(){if(!n&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function hI(e){this._internalRoot=e}LT.prototype.render=hI.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(B(409));var r=t.current,n=zi();nF(r,n,e,t,null,null)};LT.prototype.unmount=hI.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nF(e.current,2,null,e,null,null),MT(),t[Bp]=null}};function LT(e){this._internalRoot=e}LT.prototype.unstable_scheduleHydration=function(e){if(e){var t=w3();e={blockedOn:null,target:e,priority:t};for(var r=0;r<zl.length&&t!==0&&t<zl[r].priority;r++);zl.splice(r,0,e),r===0&&oF(e)}};var o3=s3.version;if(o3!=="19.3.1")throw Error(B(527,o3,"19.3.1"));lt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(B(188)):(e=Object.keys(e).join(","),Error(B(268,e)));return e=cue(t),e=e!==null?f3(e):null,e=e===null?null:e.stateNode,e};var cde={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:Ee,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(sg=__REACT_DEVTOOLS_GLOBAL_HOOK__,!sg.isDisabled&&sg.supportsFiber))try{Zg=sg.inject(cde),wi=sg}catch{}var sg;PT.createRoot=function(e,t){if(!l3(e))throw Error(B(299));var r=!1,n="",i=VZ,a=BZ,o=ZZ;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=tF(e,1,!1,null,null,r,n,null,i,a,o,sF),e[Bp]=t.current,oI(e),new hI(t)};PT.hydrateRoot=function(e,t,r){if(!l3(e))throw Error(B(299));var n=!1,i="",a=VZ,o=BZ,s=ZZ,l=null;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(a=r.onUncaughtError),r.onCaughtError!==void 0&&(o=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=tF(e,1,!0,t,r??null,n,i,l,a,o,s,sF),t.context=rF(null),r=t.current,n=zi(),n=_M(n),i=Rl(n),i.callback=null,Ll(r,i,n),r=n,t.current.lanes=r,Fg(t,r),So(t),e[Bp]=t.current,oI(e),new LT(t)};PT.version="19.3.1"});var fF=no((bNe,cF)=>{"use strict";function uF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uF)}catch(e){console.error(e)}}uF(),cF.exports=lF()});function dF(e){if(typeof e=="number")return Number.isFinite(e);if(typeof e!="string")return!1;let t=e.trim();return t.length===0?!1:Number.isFinite(Number(t))}var pF=w(()=>{"use strict"});function On(e,t){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e!="string")return null;let r=e.trim();return r.length===0?null:t==="currency"?dde(r):t==="percentage"?pde(r):dF(r)?Number(r):null}function dde(e){let t=!1,r=e;if($T.test(r))r=r.replace($T,"").trim();else if(r.startsWith("-")&&$T.test(r.slice(1).trimStart())){if(t=!0,r=r.slice(1).trimStart().replace($T,"").trim(),r.startsWith("-"))return null}else mF.test(r)&&(r=r.replace(mF,"").trim());let n=hF(r);return n===null?null:t?-n:n}function pde(e){let t=e.endsWith("%")?e.slice(0,-1):e;return hF(t)}function hF(e){if(!fde.test(e))return null;let t=e.replaceAll(",",""),r=Number(t);return Number.isFinite(r)?r:null}var $T,mF,fde,UT=w(()=>{"use strict";pF();$T=/^(?:[$€£]|(?:SAR|AED)(?=\s|\d|-))/i,mF=/(?:[$€£]|(?<=[\d.])\s*(?:SAR|AED))$/i,fde=/^-?(?:(?:\d{1,3}(?:,\d{3})+|\d+)(?:\.\d+)?|\.\d+)$/});var mde,hde,wNe,ENe,vF,gF=w(()=>{"use strict";mde=946684800,hde=4102444800,wNe=mde*1e3,ENe=hde*1e3,vF=["type","category","group","tag","region","country","plan"]});var yF,_F=w(()=>{"use strict";yF=["count","total","qty","quantity","num","sum"]});function ey(e,t,r){let n=r.find(l=>l.key===t.xKey)?.semanticType,i=r.find(l=>l.key===t.yKey)?.semanticType,a=new Map,o=new Map;for(let l of e){let u=bF(l[t.xKey]),c=bF(l[t.groupKey]);if(u===void 0||c===void 0)continue;a.has(u)||a.set(u,l[t.xKey]);let f=o.get(c)??new Map;f.set(u,On(l[t.yKey],i)),o.set(c,f)}let s=vde([...a.keys()],n);return{xValues:s.map(l=>a.get(l)),series:[...o.entries()].map(([l,u])=>({name:l,values:s.map(c=>u.get(c)??null)}))}}function bF(e){if(!(e==null||e===""))return String(e)}function vde(e,t){return t==="timestamp"?[...e].sort(gde):t==="number"||t==="currency"||t==="percentage"?[...e].sort((r,n)=>(On(r,t)??0)-(On(n,t)??0)):e}function gde(e,t){let r=Date.parse(e),n=Date.parse(t);return Number.isNaN(r)||Number.isNaN(n)?e.localeCompare(t):r-n}var xF=w(()=>{"use strict";UT()});var jT,yde,LNe,PNe,SF=w(()=>{"use strict";_F();gF();jT=500,yde=["name","title","label","city","customer","region","country","product","department","team","service","client","vendor","user","owner"],LNe=[...yde,...vF,"status","stage","state","channel"],PNe=[...yF,"session","sessions","visit","visits","amount","revenue","value"]});function gI(e,t,r){return e.reduce((n,i)=>{let a=On(i[t],r);return a!==null?Math.max(n,Math.abs(a)):n},0)}function yI(e,t){let r=e.filter(s=>s>0);if(r.length<2)return[];let n=Math.min(...r),i=Math.max(...r),a=i/n;return a>=TF?wF(e,s=>s>0&&s/n>=TF):t&&n<=vI&&i>vI&&a>=_de?wF(e,s=>s>0&&s<=vI):[]}function wF(e,t){return e.flatMap((r,n)=>t(r)?[n]:[])}var TF,vI,_de,EF=w(()=>{"use strict";UT();TF=100,vI=1,_de=2});var Ic=w(()=>{"use strict";UT();EF();SF();xF()});function Je(e,t){if(t!==void 0)return e.find(r=>r.key===t)}var To=w(()=>{"use strict"});function Sde(e,t){if(typeof e=="string"&&xde.test(e))return e;let r=On(e,"currency");return r===null?String(e):t==="USD"?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:2}).format(r):`${r} ${t}`}function Tde(e){if(typeof e=="string"&&e.trim().endsWith("%"))return e;let t=On(e,"percentage");return t===null?String(e):`${(t<=1&&t>=0?t*100:t).toFixed(1)}%`}function wde(e){if(typeof e!="string")return String(e);let t=Date.parse(e);return Number.isFinite(t)?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(new Date(t)):e}function Xp(e){return e?.unitSource!=="name"}function Xt(e,t){return e==null?"\u2014":t===void 0?CF(e):(t.formatHint==="percent"||t.semanticType==="percentage")&&Xp(t)?Tde(e):t.formatHint==="iso-date"||t.semanticType==="timestamp"?wde(e):t.semanticType==="currency"&&Xp(t)?Sde(e,t.formatHint??"USD"):CF(e)}function CF(e){return typeof e=="object"?JSON.stringify(e):String(e)}var xde,xs=w(()=>{"use strict";Ic();xde=/(?:[$€£]|SAR|AED)/i});var NF=no(BT=>{"use strict";var Ede=Symbol.for("react.transitional.element"),zde=Symbol.for("react.fragment");function DF(e,t,r){var n=null;if(r!==void 0&&(n=""+r),t.key!==void 0&&(n=""+t.key),"key"in t){r={};for(var i in t)i!=="key"&&(r[i]=t[i])}else r=t;return t=r.ref,{$$typeof:Ede,type:e,key:n,ref:t!==void 0?t:null,props:r}}BT.Fragment=zde;BT.jsx=DF;BT.jsxs=DF});var ut=no((JNe,OF)=>{"use strict";OF.exports=NF()});function _I(e){return e.map(t=>({...t}))}function ZF(e,t){return e!==void 0&&e.length>0?[...e]:t.filter(r=>r.semanticType!=="nested").map(r=>r.key)}function HF(e,t,r,n){let i=n.trim().toLowerCase(),a=_I(e);return i.length===0?a:a.filter(o=>t.some(s=>Xt(o[s],Je(r,s)).toLowerCase().includes(i)))}function FF(e,t,r,n){if(t===void 0)return _I(e);let i=_I(e),a=Je(n,t);return i.sort((o,s)=>Bde(o[t],s[t],a)),r==="desc"&&i.reverse(),i}function Bde(e,t,r){let n=Xt(e,r),i=Xt(t,r),a=On(e,r?.semanticType),o=On(t,r?.semanticType);return a!==null&&o!==null?a-o:n.localeCompare(i)}function GF(e,t,r){let n=t*r;return e.slice(n,n+r)}var qF=w(()=>{"use strict";Ic();xs();To()});var XF={};bn(XF,{DataTableView:()=>Hde});function YF(e){return e?.semanticType==="number"||e?.semanticType==="currency"||e?.semanticType==="percentage"}function Hde({spec:e,bindings:t}){let r=ZF(t.columns,e.fields),[n,i]=(0,wo.useState)(""),[a,o]=(0,wo.useState)(void 0),[s,l]=(0,wo.useState)("asc"),[u,c]=(0,wo.useState)(0),f=(0,wo.useMemo)(()=>{let b=HF(e.data,r,e.fields,n);return FF(b,a,s,e.fields)},[r,n,s,a,e.data,e.fields]),d=Math.max(1,Math.ceil(f.length/10)),p=Math.min(u,d-1),m=(0,wo.useMemo)(()=>GF(f,p,10),[p,f]),h=p<d-1,y=p>0,v=e.isStreaming&&f.length===0,g=d>1;(0,wo.useEffect)(()=>{u!==p&&c(p)},[p,u]);let _=b=>{if(a===b){l(x=>x==="asc"?"desc":"asc");return}o(b),l("asc"),c(0)};return(0,Ht.jsxs)("div",{className:"schemacast-data-table-view","data-testid":"data-table-view",children:[(0,Ht.jsx)("div",{className:"schemacast-data-table-toolbar",children:(0,Ht.jsxs)("label",{className:"schemacast-data-table-search",children:[(0,Ht.jsx)("span",{children:"Search"}),(0,Ht.jsx)("input",{type:"search",className:"schemacast-data-table-search-input","data-testid":"data-table-search",placeholder:"Search rows...",value:n,onChange:b=>{i(b.target.value),c(0)}})]})}),v?(0,Ht.jsx)("p",{"data-testid":"data-table-streaming-empty",children:"Preparing table rows from stream\u2026"}):null,(0,Ht.jsx)("div",{className:"schemacast-data-table-scroll",children:(0,Ht.jsxs)("table",{className:"schemacast-data-table",children:[(0,Ht.jsx)("thead",{children:(0,Ht.jsx)("tr",{children:r.map(b=>{let x=Je(e.fields,b),S=x?.label??b,T=a===b,E=YF(x);return(0,Ht.jsx)("th",{className:E?"schemacast-data-table-header schemacast-data-table-header--numeric":"schemacast-data-table-header",scope:"col",children:(0,Ht.jsxs)("button",{type:"button",className:"schemacast-data-table-sort-button","data-testid":`data-table-sort-${b}`,"aria-sort":T?s==="asc"?"ascending":"descending":"none",onClick:()=>{_(b)},children:[S,T?(0,Ht.jsx)("span",{className:"schemacast-data-table-sort-indicator","data-testid":`data-table-sort-indicator-${b}`,"aria-hidden":"true",children:s==="asc"?"\u2191":"\u2193"}):null]})},b)})})}),(0,Ht.jsx)("tbody",{children:m.map((b,x)=>(0,Ht.jsx)("tr",{className:"schemacast-data-table-row","data-testid":"data-table-row",children:r.map(S=>{let T=Je(e.fields,S);return(0,Ht.jsx)("td",{className:YF(T)?"schemacast-data-table-cell schemacast-data-table-cell--numeric":"schemacast-data-table-cell",children:Xt(b[S],T)},S)})},`row-${p}-${x}`))})]})}),!v&&f.length===0?(0,Ht.jsx)("p",{"data-testid":"data-table-no-matches",children:"No rows match the current filter."}):null,g?(0,Ht.jsxs)("div",{className:"schemacast-data-table-pagination","data-testid":"data-table-pagination",children:[(0,Ht.jsxs)("span",{children:["Page ",p+1," of ",d]}),(0,Ht.jsxs)("div",{className:"schemacast-data-table-pagination-controls",children:[(0,Ht.jsx)("button",{type:"button",className:"schemacast-data-table-pagination-button","data-testid":"data-table-page-prev",disabled:!y,onClick:()=>{c(p-1)},children:"Previous"}),(0,Ht.jsx)("button",{type:"button",className:"schemacast-data-table-pagination-button","data-testid":"data-table-page-next",disabled:!h,onClick:()=>{c(p+1)},children:"Next"})]})]}):null]})}var wo,Ht,KF=w(()=>{"use strict";wo=Me(un(),1);To();xs();qF();Ht=Me(ut(),1)});function ry(e,t){return On(e,t)}function qde(e,t,r){return e.map(n=>Xt(n[t],Je(r,t)))}function Yde(e){if(e.length===0)return!1;let t=0;for(let r of e){let n=Array.from(QF(r)).length;n>t&&(t=n)}return e.length*t>Fde}function Kp(e,t,r){let n=qde(e,t,r),i=Yde(n)?Gde:0;return{type:"category",data:n,axisLabel:{interval:0,hideOverlap:i===0,rotate:i,formatter:a=>QF(a)}}}function Wp(e){return e.length<=1?{show:!1}:{show:!0,data:[...e]}}function Jp(e,t){if(e.length!==1||t===void 0)return!1;let r=e[0];if(r===void 0)return!1;let n=t.trim().toLowerCase(),i=r.trim().toLowerCase();return n.length===0||i.length===0?!1:n===i||n.includes(i)}function bI(e){return e?.semanticType==="number"}function xI(e,t){return{type:"value",scale:!0,name:Je(e,t)?.label??t,nameLocation:"middle",nameGap:28,nameRotate:0}}function JF(e,t,r,n){let i=Je(n,t)?.semanticType,a=Je(n,r)?.semanticType,o=[];for(let s of e){let l=ry(s[t],i);l!==null&&o.push([l,ry(s[r],a)])}return o}function Qp(e,t,r){let n=r===void 0?void 0:Je(r,t)?.semanticType;return e.map(i=>ry(i[t],n))}function $a(e,t){return Je(e,t)?.label??t}function QF(e){let t=String(e),r=Array.from(t);return r.length<=WF?t:`${r.slice(0,WF-1).join("").trimEnd()}\u2026`}var WF,Fde,Gde,ny=w(()=>{"use strict";Ic();To();xs();WF=16,Fde=24,Gde=35});function em(e,t,r=e.data,n=!1){let i=t[0];if(i===void 0)return{axes:[],seriesAxisIndexes:[]};if(t.length<2)return{axes:[{fieldKey:i,position:"left"}],seriesAxisIndexes:t.map(()=>0)};let a=ZT(Je(e.fields,i));if(t.some(p=>ZT(Je(e.fields,p))!==a)){let p=t.find(m=>ZT(Je(e.fields,m))!==a);return p===void 0?{axes:[{fieldKey:i,position:"left"}],seriesAxisIndexes:t.map(()=>0)}:{axes:[{fieldKey:i,position:"left"},{fieldKey:p,position:"right"}],seriesAxisIndexes:t.map(m=>ZT(Je(e.fields,m))===a?0:1)}}let s=t.map(p=>gI(r,p,Je(e.fields,p)?.semanticType)),l=yI(s,n),u=l[0],c=t.findIndex((p,m)=>!l.includes(m)),f=u===void 0?void 0:t[u],d=t[c];return f===void 0||d===void 0?{axes:[{fieldKey:i,position:"left"}],seriesAxisIndexes:t.map(()=>0)}:{axes:[{fieldKey:d,position:"left"},{fieldKey:f,position:"right"}],seriesAxisIndexes:t.map((p,m)=>l.includes(m)?1:0)}}function tm(e,t,r={}){let n=Je(e,t.fieldKey),i=$a(e,t.fieldKey),a=HT(n),o=a===void 0?i:Xde(i,a),s=r.omitName===!0;return{type:"value",...s?{}:{name:o},nameLocation:"middle",nameGap:s?36:56,nameRotate:0,position:t.position,splitNumber:5,alignTicks:t.position==="right",splitLine:{show:t.position==="left"},axisLabel:{formatter:l=>Wde(l,n),hideOverlap:!0,margin:10}}}function Xde(e,t){let r=e.trimEnd().toLowerCase(),n=`(${t.toLowerCase()})`;return r.endsWith(n)?e:`${e} (${t})`}function rm(e,t,r){let n=Array.isArray(e)?e:[e],i=n[0];if(i===void 0)return"";let a=i.name===""?Kde(i):i.name,o=`<strong>${SI(a)}</strong>`,s=n.map(l=>{let u=l.seriesIndex===void 0?void 0:r[l.seriesIndex],c=u===void 0?void 0:Je(t,u),f=l.seriesName??(u===void 0?"Value":$a(t,u)),d=Array.isArray(l.value)?l.value[1]:l.value,p=Jde(d,c);return`${SI(f)}: ${SI(p)}`});return[o,...s].join("<br/>")}function Kde(e){return"axisValueLabel"in e&&typeof e.axisValueLabel=="string"?e.axisValueLabel:""}function Wde(e,t){let r=typeof e=="number"?e:Number(e);if(!Number.isFinite(r))return Xt(e,t);let n=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1});if((t?.formatHint==="percent"||t?.semanticType==="percentage")&&Xp(t)){let s=r<=1&&r>=0?r*100:r;return`${n.format(s)}%`}if(t?.semanticType==="currency"&&Xp(t)){let s=t.formatHint??"USD";return s==="USD"?new Intl.NumberFormat("en-US",{style:"currency",currency:s,notation:"compact",maximumFractionDigits:1}).format(r):`${n.format(r)} ${s}`}let a=HT(t),o=Math.abs(r)<1?String(Number(r.toPrecision(2))):n.format(r);return a===void 0?o:`${o} ${a}`}function Jde(e,t){let r=Xt(e,t);if(t===void 0||t.semanticType==="currency"||t.semanticType==="percentage"||t.formatHint==="percent")return r;let n=HT(t),i=typeof e=="number"?e:Number(e);return n!==void 0&&Number.isFinite(i)?`${r} ${n}`:r}function HT(e){return e===void 0?void 0:e.semanticType==="currency"||e.semanticType==="percentage"||e.formatHint==="percent"?Xp(e)?Qde(e):void 0:e.formatHint!==void 0&&e.formatHint!=="iso-date"?e.formatHint:/_ms$/i.test(e.key)?"ms":void 0}function Qde(e){return e.semanticType==="currency"?e.formatHint??"USD":"%"}function ZT(e){return`${e?.semanticType??"unknown"}:${HT(e)??"unitless"}`}function SI(e){let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,r=>t[r]??r)}var TI=w(()=>{"use strict";Ic();To();xs();ny()});function eG(e,t){let r=t.x,n=t.y??[];if(r===void 0||n.length===0)return null;if(t.groupBy!==void 0)return epe(e,r,n[0],t.groupBy);let i=bI(Je(e.fields,r)),a=n.map(u=>$a(e.fields,u)),o=Jp(a,void 0),s=em(e,n,e.data,!0),l=s.axes.map(u=>tm(e.fields,u,{omitName:o}));return{tooltip:{trigger:"axis",formatter:u=>rm(u,e.fields,n)},legend:Wp(a),grid:{left:l.length>1?104:88,right:l.length>1?104:24,containLabel:!0},xAxis:i?xI(e.fields,r):Kp(e.data,r,e.fields),yAxis:l.length===1?l[0]:l,series:n.map((u,c)=>({name:$a(e.fields,u),type:"line",yAxisIndex:s.seriesAxisIndexes[c]??0,...e.data.length>=jT?{sampling:"lttb"}:{},data:i?JF(e.data,r,u,e.fields):Qp(e.data,u,e.fields)}))}}function epe(e,t,r,n){if(r===void 0)return null;let i=ey(e.data,{xKey:t,groupKey:n,yKey:r},e.fields),a=Je(e.fields,t),o=bI(a),s=i.series.map(p=>p.name),l=Jp(s,void 0),c=em(e,[r],e.data,!0).axes.map(p=>tm(e.fields,p,{omitName:l})),f=i.series.map(()=>r),d=i.xValues.map(p=>ry(p,a?.semanticType));return{tooltip:{trigger:"axis",formatter:p=>rm(p,e.fields,f)},legend:Wp(s),grid:{left:88,right:24,containLabel:!0},xAxis:o?xI(e.fields,t):Kp(i.xValues.map(p=>({[t]:p})),t,e.fields),yAxis:c[0],series:i.series.map(p=>({name:p.name,type:"line",...i.xValues.length>=jT?{sampling:"lttb"}:{},data:o?p.values.map((m,h)=>[d[h]??null,m]):p.values}))}}var tG=w(()=>{"use strict";Ic();To();ny();TI()});function L(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wI(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var wI,ae=w(()=>{wI=function(e,t){return wI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},wI(e,t)}});function ipe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-tpe)/rpe;t[n]=i}return t}var FT,EI,Di,tpe,rpe,npe,ape,Ua,Eo=w(()=>{FT=12,EI="sans-serif",Di=FT+"px "+EI,tpe=20,rpe=100,npe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";ape=ipe(npe),Ua={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=Ua.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Di),e.measureText(r);r=r||"",n=n||Di;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||FT,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=ape[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}}});function YT(){return upe++}function XT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function _e(e){if(e==null||typeof e!="object")return e;var t=e,r=ay.call(e);if(r==="[object Array]"){if(!iy(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=_e(e[n])}}else if(aG[r]){if(!iy(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!iG[r]&&!iy(e)&&!nm(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==AI&&(t[o]=_e(e[o]))}return t}function Qe(e,t,r){if(!J(t)||!J(e))return r?_e(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==AI){var i=e[n],a=t[n];J(a)&&J(i)&&!V(a)&&!V(i)&&!nm(a)&&!nm(i)&&!nG(a)&&!nG(i)&&!iy(a)&&!iy(i)?Qe(i,a,r):(r||!(n in e))&&(e[n]=_e(t[n]))}return e}function $(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==AI&&(e[r]=t[r]);return e}function de(e,t,r){for(var n=pe(t),i=0,a=n.length;i<a;i++){var o=n[i];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function Ne(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function oG(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Ir(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else de(e,t,r)}function gr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function A(e,t,r){if(e&&t)if(e.forEach&&e.forEach===ope)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function H(e,t,r){if(!e)return[];if(!t)return KT(e);if(e.map&&e.map===lpe)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Ni(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function xt(e,t,r){if(!e)return[];if(!t)return KT(e);if(e.filter&&e.filter===spe)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function pe(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 cpe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(zI.call(arguments)))}}function qe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(zI.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):ay.call(e)==="[object Array]"}function te(e){return typeof e=="function"}function F(e){return typeof e=="string"}function oy(e){return ay.call(e)==="[object String]"}function ve(e){return typeof e=="number"}function J(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function nG(e){return!!iG[ay.call(e)]}function nr(e){return!!aG[ay.call(e)]}function nm(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function im(e){return e.colorStops!=null}function am(e){return e!==e}function zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function se(e,t){return e??t}function kn(e,t,r){return e??t??r}function KT(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return zI.apply(e,t)}function WT(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 ir(e,t){if(!e)throw new Error(t)}function Jr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function om(e){e[sG]=!0}function iy(e){return e[sG]}function dpe(){return lG?new Map:new fpe}function oe(e){return new ppe(e)}function JT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Kl(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&$(r,t),r}function Oi(e,t){return e.hasOwnProperty(t)}function Lt(){}var iG,aG,ay,qT,ope,spe,zI,lpe,rG,GT,AI,upe,IOe,Oe,sG,fpe,lG,ppe,sm,I=w(()=>{Eo();iG=Ni(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),aG=Ni(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ay=Object.prototype.toString,qT=Array.prototype,ope=qT.forEach,spe=qT.filter,zI=qT.slice,lpe=qT.map,rG=function(){}.constructor,GT=rG?rG.prototype:null,AI="__proto__",upe=2311;IOe=Ua.createCanvas;Oe=GT&&te(GT.bind)?GT.call.bind(GT.bind):cpe;sG="__ec_primitive__";fpe=(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 pe(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),lG=typeof Map=="function";ppe=(function(){function e(t){var r=V(t);this.data=dpe();var n=this;t instanceof e?t.each(i):t&&A(t,i);function i(a,o){r?n.set(a,o):n.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(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return lG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();sm=180/Math.PI});function vpe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[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),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var mpe,hpe,Wl,ye,Qr=w(()=>{mpe=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),hpe=(function(){function e(){this.browser=new mpe,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})(),Wl=new hpe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Wl.wxa=!0,Wl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Wl.worker=!0:!Wl.hasGlobalWindow||"Deno"in window?(Wl.node=!0,Wl.svgSupported=!0):vpe(navigator.userAgent,Wl);ye=Wl});function Qn(e){var t={main:"",sub:""};if(e){var r=e.split(gpe);t.main=r[0]||"",t.sub=r[1]||""}return t}function ype(e){ir(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function cG(e){return!!(e&&e[uG])}function lm(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return _pe(n)?i=(function(a){L(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},oG(i,this)),$(i.prototype,r),i[uG]=!0,i.extend=this.extend,i.superCall=xpe,i.superApply=Spe,i.superClass=n,i}}function _pe(e){return te(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function QT(e,t){e.extend=t.extend}function fG(e){var t=["__\0is_clz",bpe++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function xpe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Spe(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Jl(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){ype(i),n.prototype.type=i;var a=Qn(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Lc){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Lc]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Qn(n),a=[],o=t[i.main];return o&&o[Lc]?A(o,function(s,l){l!==Lc&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Qn(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return A(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Qn(n),a=t[i.main];return a&&a[Lc]};function r(n){var i=t[n.main];return(!i||!i[Lc])&&(i=t[n.main]={},i[Lc]=!0),i}}var gpe,Lc,uG,bpe,Ao=w(()=>{ae();I();gpe=".",Lc="___EC__COMPONENT__CONTAINER___",uG="___EC__EXTENDED_CLASS___";bpe=Math.round(Math.random()*10)});function Co(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&Ne(i,l)>=0||a&&Ne(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var sy=w(()=>{I()});var Tpe,wpe,dG,pG=w(()=>{sy();Tpe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],wpe=Co(Tpe),dG=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return wpe(this,t,r)},e})()});var mG,Epe,zpe,Ts,ly=w(()=>{mG=(function(){function e(t){this.value=t}return e})(),Epe=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new mG(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),zpe=(function(){function e(t){this._list=new Epe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new mG(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Ts=zpe});function vG(e){if(typeof e=="string"){var t=DI.get(e);return t&&t.image}else return e}function uy(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=DI.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!um(t)&&a.pending.push(o)):(t=Ua.loadImage(e,hG,hG),t.__zrImageSrc=e,DI.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function hG(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function um(e){return e&&e.width&&e.height}var DI,ew=w(()=>{ly();Eo();DI=new Ts(50)});function ja(){return[1,0,0,1,0,0]}function cm(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function tw(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 ws(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=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],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function cy(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 fm(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function gG(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Do(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var Es=w(()=>{});var Cpe,Se,rw=w(()=>{Cpe=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),Se=Cpe});var nw,iw,Pc,$c,Uc,jc,fy,dy,Dpe,ze,dn=w(()=>{Es();rw();nw=Math.min,iw=Math.max,Pc=new Se,$c=new Se,Uc=new Se,jc=new Se,fy=new Se,dy=new Se,Dpe=(function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=nw(t.x,this.x),n=nw(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=iw(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=iw(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=ja();return cy(a,a,[-r.x,-r.y]),gG(a,a,[n,i]),cy(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var p=1/0,m=0,h=Math.abs(a-l),y=Math.abs(u-i),v=Math.abs(s-c),g=Math.abs(f-o),_=Math.min(h,y),b=Math.min(v,g);a<l||u<i?_>m&&(m=_,h<y?Se.set(dy,-h,0):Se.set(dy,y,0)):_<p&&(p=_,h<y?Se.set(fy,h,0):Se.set(fy,-y,0)),s<c||f<o?b>m&&(m=b,v<g?Se.set(dy,0,-v):Se.set(dy,0,g)):_<p&&(p=_,v<g?Se.set(fy,0,v):Se.set(fy,0,-g))}return r&&Se.copy(r,d?fy:dy),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,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}Pc.x=Uc.x=r.x,Pc.y=jc.y=r.y,$c.x=jc.x=r.x+r.width,$c.y=Uc.y=r.y+r.height,Pc.transform(n),jc.transform(n),$c.transform(n),Uc.transform(n),t.x=nw(Pc.x,$c.x,Uc.x,jc.x),t.y=nw(Pc.y,$c.y,Uc.y,jc.y);var l=iw(Pc.x,$c.x,Uc.x,jc.x),u=iw(Pc.y,$c.y,Uc.y,jc.y);t.width=l-t.x,t.height=u-t.y},e})(),ze=Dpe});function ei(e,t){t=t||Di;var r=yG[t];r||(r=yG[t]=new Ts(500));var n=r.get(e);return n==null&&(n=Ua.measureText(e,t).width,r.put(e,n)),n}function _G(e,t,r,n){var i=ei(e,t),a=hm(t),o=mm(0,i,r),s=Vc(0,a,n),l=new ze(o,s,i,a);return l}function pm(e,t,r,n){var i=((e||"")+"").split(`
|
|
53
|
+
`),a=i.length;if(a===1)return _G(i[0],t,r,n);for(var o=new ze(0,0,0,0),s=0;s<i.length;s++){var l=_G(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function mm(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Vc(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function hm(e){return ei("\u56FD",e)}function oa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Bc(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=oa(n[0],r.width),u+=oa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var yG,sa=w(()=>{dn();ly();Eo();yG={}});function Npe(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
54
|
+
`);a=SG(r,n,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)TG(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
55
|
+
`),e.isTruncated=s}function SG(e,t,r,n){n=n||{};var i=$({},n);i.font=t,r=se(r,"..."),i.maxIterations=se(n.maxIterations,2);var a=i.minChar=se(n.minChar,0);i.cnCharWidth=ei("\u56FD",t);var o=i.ascCharWidth=ei("a",t);i.placeholder=se(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=ei(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function TG(e,t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ei(t,i);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?Ope(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=ei(t,i)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function Ope(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function wG(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=hm(i),s=se(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(r==="break"||r==="breakAll")?d=e?zG(e,t.font,f,r==="breakAll",0).lines:[]:d=e?e.split(`
|
|
56
|
+
`):[];var p=d.length*s,m=se(t.height,p);if(p>m&&u){var h=Math.floor(m/s);c=c||d.length>h,d=d.slice(0,h)}if(e&&a&&f!=null)for(var y=SG(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},g=0;g<d.length;g++)TG(v,d[g],y),d[g]=v.textLine,c=c||v.isTruncated;for(var _=m,b=0,g=0;g<d.length;g++)b=Math.max(ei(d[g],i),b);f==null&&(f=b);var x=b;return n&&(_+=n[0]+n[2],x+=n[1]+n[3],f+=n[1]+n[3]),l&&(x=f),{lines:d,height:m,outerWidth:x,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:p,width:f,isTruncated:c}}function EG(e,t){var r=new Mpe;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=NI.lastIndex=0,l;(l=NI.exec(e))!=null;){var u=l.index;u>s&&OI(r,e.substring(s,u),t,o),OI(r,l[2],t,o,l[1]),s=NI.lastIndex}s<e.length&&OI(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,p=t.padding,m=a==="truncate",h=t.lineOverflow==="truncate",y={};function v(ie,ce,fe){ie.width=ce,ie.lineHeight=fe,f+=fe,d=Math.max(d,ce)}e:for(var g=0;g<r.lines.length;g++){for(var _=r.lines[g],b=0,x=0,S=0;S<_.tokens.length;S++){var T=_.tokens[S],E=T.styleName&&t.rich[T.styleName]||{},z=T.textPadding=E.padding,C=z?z[1]+z[3]:0,D=T.font=E.font||t.font;T.contentHeight=hm(D);var O=se(E.height,T.contentHeight);if(T.innerHeight=O,z&&(O+=z[0]+z[2]),T.height=O,T.lineHeight=kn(E.lineHeight,t.lineHeight,O),T.align=E&&E.align||t.align,T.verticalAlign=E&&E.verticalAlign||"middle",h&&i!=null&&f+T.lineHeight>i){var k=r.lines.length;S>0?(_.tokens=_.tokens.slice(0,S),v(_,x,b),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g),r.isTruncated=r.isTruncated||r.lines.length<k;break e}var R=E.width,j=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")T.percentWidth=R,c.push(T),T.contentWidth=ei(T.text,D);else{if(j){var Z=E.backgroundColor,Q=Z&&Z.image;Q&&(Q=vG(Q),um(Q)&&(T.width=Math.max(T.width,Q.width*O/Q.height)))}var G=m&&n!=null?n-x:null;G!=null&&G<T.width?!j||G<C?(T.text="",T.width=T.contentWidth=0):(Npe(y,T.text,G-C,D,t.ellipsis,{minChar:t.truncateMinChar}),T.text=y.text,r.isTruncated=r.isTruncated||y.isTruncated,T.width=T.contentWidth=ei(T.text,D)):T.contentWidth=ei(T.text,D)}T.width+=C,x+=T.width,E&&(b=Math.max(b,T.lineHeight))}v(_,x,b)}r.outerWidth=r.width=se(n,d),r.outerHeight=r.height=se(i,f),r.contentHeight=f,r.contentWidth=d,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var g=0;g<c.length;g++){var T=c[g],K=T.percentWidth;T.width=parseInt(K,10)/100*r.width}return r}function OI(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var m=oa(o.width,n.width)+p;s.length>0&&m+n.accumWidth>n.width&&(c=t.split(`
|
|
57
|
+
`),u=!0),n.accumWidth=m}else{var h=zG(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=h.accumWidth+p,f=h.linesWidths,c=h.lines}}else c=t.split(`
|
|
58
|
+
`);for(var y=0;y<c.length;y++){var v=c[y],g=new kpe;if(g.styleName=i,g.text=v,g.isLineHolder=!v&&!a,typeof o.width=="number"?g.width=o.width:g.width=f?f[y]:ei(v,l),!y&&!u){var _=(s[s.length-1]||(s[0]=new xG)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=g:(v||!b||a)&&_.push(g)}else s.push(new xG([g]))}}function Ipe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function Lpe(e){return Ipe(e)?!!Rpe[e]:!0}function zG(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
|
59
|
+
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var p=ei(d,t),m=n?!1:!Lpe(d);if(a.length?c+p>r:i+c+p>r){c?(s||l)&&(m?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=p)):m?(a.push(l),o.push(u),l=d,u=p):(a.push(d),o.push(p));continue}c+=p,m?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var NI,kpe,xG,Mpe,Rpe,AG=w(()=>{ew();I();sa();NI=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;kpe=(function(){function e(){}return e})(),xG=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),Mpe=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();Rpe=Ni(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{})});function No(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Tr(e,t){return e[0]=t[0],e[1]=t[1],e}function ti(e){return[e[0],e[1]]}function CG(e,t,r){return e[0]=t,e[1]=r,e}function kI(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function py(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function Va(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function aw(e){return Math.sqrt(Ppe(e))}function Ppe(e){return e[0]*e[0]+e[1]*e[1]}function vm(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function la(e,t){var r=aw(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ow(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function $pe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function sw(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ur(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function As(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Cs(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var my,zs,cr=w(()=>{my=ow;zs=$pe});function Zc(e){return e>NG||e<-NG}function RI(e,t){for(var r=0;r<Fc.length;r++){var n=Fc[r];e[n]=t[n]}}var DG,NG,Hc,gm,MI,II,Upe,Fc,ua,Gc=w(()=>{Es();cr();DG=cm,NG=5e-5;Hc=[],gm=[],MI=ja(),II=Math.abs,Upe=(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 Zc(this.rotation)||Zc(this.x)||Zc(this.y)||Zc(this.scaleX-1)||Zc(this.scaleY-1)||Zc(this.skewX)||Zc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(DG(n),this.invTransform=null);return}n=n||ja(),r?this.getLocalTransform(n):DG(n),t&&(r?ws(n,t,n):tw(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Hc);var n=Hc[0]<0?-1:1,i=Hc[1]<0?-1:1,a=((Hc[0]-n)*r+n)/Hc[0]||0,o=((Hc[1]-i)*r+i)/Hc[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ja(),Do(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ja(),ws(gm,t.invTransform,r),r=gm);var n=this.originX,i=this.originY;(n||i)&&(MI[4]=n,MI[5]=i,ws(gm,r,MI),gm[4]-=n,gm[5]-=i,r=gm),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ur(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ur(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&II(t[0]-1)>1e-10&&II(t[3]-1)>1e-10?Math.sqrt(II(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){RI(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var m=n+s,h=i+l;r[4]=-m*a-d*h*o,r[5]=-h*o-p*m*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=p*a,r[2]=d*o,u&&fm(r,r,u),r[4]+=n+c,r[5]+=i+f,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})(),Fc=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];ua=Upe});var lw,uw,LI=w(()=>{lw={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-lw.bounceOut(1-e)},bounceOut:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},bounceInOut:function(e){return e<.5?lw.bounceIn(e*2)*.5:lw.bounceOut(e*2-1)*.5+.5}},uw=lw});function Ql(e){return e>-dw&&e<dw}function MG(e){return e>dw||e<-dw}function Ft(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function PI(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function qc(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,p=0;if(Ql(c)&&Ql(f))if(Ql(s))a[0]=0;else{var m=-l/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=f*f-4*c*d;if(Ql(h)){var y=f/c,m=-s/o+y,v=-y/2;m>=0&&m<=1&&(a[p++]=m),v>=0&&v<=1&&(a[p++]=v)}else if(h>0){var g=eu(h),_=c*s+1.5*o*(-f+g),b=c*s+1.5*o*(-f-g);_<0?_=-cw(-_,fw):_=cw(_,fw),b<0?b=-cw(-b,fw):b=cw(b,fw);var m=(-s-(_+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*c*s-3*o*f)/(2*eu(c*c*c)),S=Math.acos(x)/3,T=eu(c),E=Math.cos(S),m=(-s-2*T*E)/(3*o),v=(-s+T*(E+OG*Math.sin(S)))/(3*o),z=(-s+T*(E-OG*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),v>=0&&v<=1&&(a[p++]=v),z>=0&&z<=1&&(a[p++]=z)}}return p}function pw(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ql(o)){if(MG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ql(c))i[0]=-a/(2*o);else if(c>0){var f=eu(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function _m(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function mw(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,p=1/0,m,h,y,v;Oo[0]=l,Oo[1]=u;for(var g=0;g<1;g+=.05)ca[0]=Ft(e,r,i,o,g),ca[1]=Ft(t,n,a,s,g),y=zs(Oo,ca),y<p&&(f=g,p=y);p=1/0;for(var _=0;_<32&&!(d<kG);_++)m=f-d,h=f+d,ca[0]=Ft(e,r,i,o,m),ca[1]=Ft(t,n,a,s,m),y=zs(ca,Oo),m>=0&&y<p?(f=m,p=y):(ym[0]=Ft(e,r,i,o,h),ym[1]=Ft(t,n,a,s,h),v=zs(ym,Oo),h<=1&&v<p?(f=h,p=v):d*=.5);return c&&(c[0]=Ft(e,r,i,o,f),c[1]=Ft(t,n,a,s,f)),eu(p)}function IG(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,p=1;p<=l;p++){var m=p*d,h=Ft(e,r,i,o,m),y=Ft(t,n,a,s,m),v=h-u,g=y-c;f+=Math.sqrt(v*v+g*g),u=h,c=y}return f}function fr(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function $I(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function RG(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ql(a)){if(MG(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ql(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=eu(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function hw(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function tu(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function vw(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Oo[0]=o,Oo[1]=s;for(var d=0;d<1;d+=.05){ca[0]=fr(e,r,i,d),ca[1]=fr(t,n,a,d);var p=zs(Oo,ca);p<f&&(u=d,f=p)}f=1/0;for(var m=0;m<32&&!(c<kG);m++){var h=u-c,y=u+c;ca[0]=fr(e,r,i,h),ca[1]=fr(t,n,a,h);var p=zs(ca,Oo);if(h>=0&&p<f)u=h,f=p;else{ym[0]=fr(e,r,i,y),ym[1]=fr(t,n,a,y);var v=zs(ym,Oo);y<=1&&v<f?(u=y,f=v):c*=.5}}return l&&(l[0]=fr(e,r,i,u),l[1]=fr(t,n,a,u)),eu(f)}function LG(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,p=fr(e,r,i,d),m=fr(t,n,a,d),h=p-s,y=m-l;u+=Math.sqrt(h*h+y*y),s=p,l=m}return u}var cw,eu,dw,kG,OG,fw,Oo,ca,ym,Ba=w(()=>{cr();cw=Math.pow,eu=Math.sqrt,dw=1e-8,kG=1e-4,OG=eu(3),fw=1/3,Oo=No(),ca=No(),ym=No()});function bm(e){var t=e&&jpe.exec(e);if(t){var r=t[1].split(","),n=+Jr(r[0]),i=+Jr(r[1]),a=+Jr(r[2]),o=+Jr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:qc(0,n,a,1,l,s)&&Ft(0,i,o,1,s[0])}}}var jpe,yw=w(()=>{Ba();I();jpe=/cubic-bezier\(([0-9,\.e ]+)\)/});var Vpe,PG,$G=w(()=>{LI();I();yw();Vpe=(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||Lt,this.ondestroy=t.ondestroy||Lt,this.onrestart=t.onrestart||Lt,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=te(t)?t:uw[t]||bm(t)},e})(),PG=Vpe});function ru(e){return e=Math.round(e),e<0?0:e>255?255:e}function VI(e){return e<0?0:e>1?1:e}function UI(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ru(parseFloat(t)/100*255):ru(parseInt(t,10))}function hy(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?VI(parseFloat(t)/100):VI(parseFloat(t))}function jI(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 _w(e,t,r){return e+(t-e)*r}function fa(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function BI(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function xm(e,t){bw&&BI(bw,t),bw=ZG.put(e,bw||t.slice())}function ri(e,t){if(e){t=t||[];var r=ZG.get(e);if(r)return BI(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in UG)return BI(t,UG[n]),xm(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){fa(t,0,0,0,1);return}return fa(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),xm(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){fa(t,0,0,0,1);return}return fa(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),xm(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?fa(t,+u[0],+u[1],+u[2],1):fa(t,0,0,0,1);c=hy(u.pop());case"rgb":if(u.length>=3)return fa(t,UI(u[0]),UI(u[1]),UI(u[2]),u.length===3?c:hy(u[3])),xm(e,t),t;fa(t,0,0,0,1);return;case"hsla":if(u.length!==4){fa(t,0,0,0,1);return}return u[3]=hy(u[3]),jG(u,t),xm(e,t),t;case"hsl":if(u.length!==3){fa(t,0,0,0,1);return}return jG(u,t),xm(e,t),t;default:return}}fa(t,0,0,0,1)}}function jG(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=hy(e[1]),i=hy(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],fa(t,ru(jI(o,a,r+1/3)*255),ru(jI(o,a,r)*255),ru(jI(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VG(e,t){var r=ri(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Sm(r,r.length===4?"rgba":"rgb")}}function HG(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=ri(t[i]),s=ri(t[a]),l=n-i,u=Sm([ru(_w(o[0],s[0],l)),ru(_w(o[1],s[1],l)),ru(_w(o[2],s[2],l)),VI(_w(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Sm(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 Tm(e,t){var r=ri(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function vy(e){if(F(e)){var t=BG.get(e);return t||(t=VG(e,-.1),BG.put(e,t)),t}else if(im(e)){var r=$({},e);return r.colorStops=H(e.colorStops,function(n){return{offset:n.offset,color:VG(n.color,-.1)}}),r}return e}var UG,ZG,bw,BG,ko=w(()=>{ly();I();UG={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]};ZG=new Ts(20),bw=null;BG=new Ts(100)});function nu(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ri(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}function Mo(e){return e<FG&&e>-FG}function xw(e){return Sw(e*1e3)/1e3}function Tw(e){return Sw(e*1e4)/1e4}function GG(e){return"matrix("+xw(e[0])+","+xw(e[1])+","+xw(e[2])+","+xw(e[3])+","+Tw(e[4])+","+Tw(e[5])+")"}function YG(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function XG(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function KG(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function ZI(e){return e&&!!e.image}function Zpe(e){return e&&!!e.svgElement}function gy(e){return ZI(e)||Zpe(e)}function ww(e){return e.type==="linear"}function Ew(e){return e.type==="radial"}function zw(e){return e&&(e.type==="linear"||e.type==="radial")}function yy(e){return"url(#"+e+")"}function Aw(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Cw(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*sm,i=se(e.scaleX,1),a=se(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Sw(o*sm)+"deg, "+Sw(s*sm)+"deg)"),l.join(" ")}var Sw,FG,qG,WG,Yc=w(()=>{I();ko();Qr();Sw=Math.round;FG=1e-4;qG={left:"start",right:"end",center:"middle",middle:"middle"};WG=(function(){return ye.hasGlobalWindow&&te(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}})()});function Ds(e,t,r){return(t-e)*r+e}function HI(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=Ds(t[a],r[a],n);return e}function Hpe(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ds(t[o][s],r[o][s],n)}return e}function Dw(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function JG(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Fpe(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Gpe(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:FI.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function xy(e){if(gr(e)){var t=e.length;if(gr(e[0])){for(var r=[],n=0;n<t;n++)r.push(FI.call(e[n]));return r}return FI.call(e)}return e}function kw(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 qpe(e){return gr(e&&e[0])?2:1}function e9(e){return e===GI||e===qI}function Ow(e){return e===Mw||e===t9}var FI,Nw,Mw,t9,by,GI,qI,QG,_y,Ype,Xpe,Sy,YI=w(()=>{$G();ko();I();LI();yw();Yc();FI=Array.prototype.slice;Nw=0,Mw=1,t9=2,by=3,GI=4,qI=5,QG=6;_y=[0,0,0,0],Ype=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=QG,l=r;if(gr(r)){var u=qpe(r);s=u,(u===1&&!ve(r[0])||u===2&&!ve(r[0][0]))&&(o=!0)}else if(ve(r)&&!am(r))s=Nw;else if(F(r))if(!isNaN(+r))s=Nw;else{var c=ri(r);c&&(l=c,s=by)}else if(im(r)){var f=$({},l);f.colorStops=H(r.colorStops,function(p){return{offset:p.offset,color:ri(p.color)}}),ww(r)?s=GI:Ew(r)&&(s=qI),l=f}a===0?this.valType=s:(s!==this.valType||s===QG)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=te(n)?n:uw[n]||bm(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(h,y){return h.time-y.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ow(i),u=e9(i),c=0;c<a;c++){var f=n[c],d=f.value,p=o.value;f.percent=f.time/t,s||(l&&c!==a-1?Gpe(d,p,i):u&&Fpe(d.colorStops,p.colorStops))}if(!s&&i!==qI&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var m=n[0].value,c=0;c<a;c++)i===Nw?n[c].additiveValue=n[c].value-m:i===by?n[c].additiveValue=Dw([],n[c].value,m,-1):Ow(i)&&(n[c].additiveValue=i===Mw?Dw([],n[c].value,m,-1):JG([],n[c].value,m,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===by,c,f=this._lastFr,d=Math.min,p,m;if(s===1)p=m=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var h=d(f+1,s-1);for(c=h;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}m=o[c+1],p=o[c]}if(p&&m){this._lastFr=c,this._lastFrP=r;var y=m.percent-p.percent,v=y===0?1:d((r-p.percent)/y,1);m.easingFunc&&(v=m.easingFunc(v));var g=n?this._additiveValue:u?_y:t[l];if((Ow(a)||u)&&!g&&(g=this._additiveValue=[]),this.discrete)t[l]=v<1?p.rawValue:m.rawValue;else if(Ow(a))a===Mw?HI(g,p[i],m[i],v):Hpe(g,p[i],m[i],v);else if(e9(a)){var _=p[i],b=m[i],x=a===GI;t[l]={type:x?"linear":"radial",x:Ds(_.x,b.x,v),y:Ds(_.y,b.y,v),colorStops:H(_.colorStops,function(T,E){var z=b.colorStops[E];return{offset:Ds(T.offset,z.offset,v),color:kw(HI([],T.color,z.color,v))}}),global:b.global},x?(t[l].x2=Ds(_.x2,b.x2,v),t[l].y2=Ds(_.y2,b.y2,v)):t[l].r=Ds(_.r,b.r,v)}else if(u)HI(g,p[i],m[i],v),n||(t[l]=kw(g));else{var S=Ds(p[i],m[i],v);n?this._additiveValue=S:t[l]=S}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Nw?t[n]=t[n]+i:r===by?(ri(t[n],_y),Dw(_y,_y,i,1),t[n]=kw(_y)):r===Mw?Dw(t[n],t[n],i,1):r===t9&&JG(t[n],t[n],i,1)},e})(),Xpe=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){XT("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,pe(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Ype(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===by&&u&&(u=kw(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,xy(u),i),this._trackKeys.push(s)}l.addKeyframe(t,xy(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new PG({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){r._started=2;var m=r._additiveAnimators;if(m){for(var h=!1,y=0;y<m.length;y++)if(m[y]._clip){h=!0;break}h||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,p);var v=r._onframeCbs;if(v)for(var y=0;y<v.length;y++)v[y](r._target,p)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.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 H(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[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<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=xy(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||pe(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})(),Sy=Xpe});var Kpe,en,iu=w(()=>{Kpe=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!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===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),en=Kpe});var r9,XI,Ty,wy,Ey,n9,zy=w(()=>{Qr();r9=1;ye.hasGlobalWindow&&(r9=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));XI=r9,Ty=.4,wy="#333",Ey="#ccc",n9="#eee"});var In,Xc,au,wm=w(()=>{In=1,Xc=2,au=4});function JI(e,t,r,n,i){r=r||{};var a=[];i9(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(m,h){r.during(h)});for(var d=0;d<a.length;d++){var p=a[d];c&&p.done(c),f&&p.aborted(f),r.force&&p.duration(r.duration),p.start(r.easing)}return a}function QI(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Qpe(e){return gr(e[0])}function eme(e,t,r){if(gr(t[r]))if(gr(e[r])||(e[r]=[]),nr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),QI(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(Qpe(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?QI(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else QI(a,i,o);a.length=i.length}else e[r]=t[r]}function tme(e,t){return e===t||gr(e)&&gr(t)&&rme(e,t)}function rme(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function i9(e,t,r,n,i,a,o,s){for(var l=pe(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,p=!J(a),m=e.animators,h=[],y=0;y<l.length;y++){var v=l[y],g=n[v];if(g!=null&&r[v]!=null&&(p||a[v]))if(J(g)&&!gr(g)&&!im(g)){if(t){s||(r[v]=g,e.updateDuringAnimation(t));continue}i9(e,v,r[v],g,i,a&&a[v],o,s)}else h.push(v);else s||(r[v]=g,e.updateDuringAnimation(t),h.push(v))}var _=h.length;if(!f&&_)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t){var S=x.stopTracks(h);if(S){var T=Ne(m,x);m.splice(T,1)}}}if(i.force||(h=xt(h,function(D){return!tme(n[D],r[D])}),_=h.length),_>0||i.force&&!o.length){var E=void 0,z=void 0,C=void 0;if(s){z={},d&&(E={});for(var b=0;b<_;b++){var v=h[b];z[v]=r[v],d?E[v]=n[v]:r[v]=n[v]}}else if(d){C={};for(var b=0;b<_;b++){var v=h[b];C[v]=xy(r[v]),eme(r,n,v)}}var x=new Sy(r,!1,!1,f?xt(m,function(O){return O.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),d&&E&&x.whenWithKeys(0,E,h),C&&x.whenWithKeys(0,C,h),x.whenWithKeys(u??500,s?z:n,h).delay(c||0),e.addAnimator(x,t),o.push(x)}}var KI,WI,Wpe,Em,Jpe,eR,Iw,tR=w(()=>{Gc();YI();dn();iu();sa();I();zy();ko();wm();KI="__zr_normal__",WI=Fc.concat(["ignore"]),Wpe=Ni(Fc,function(e,t){return e[t]=!0,e},{ignore:!1}),Em={},Jpe=new ze(0,0,0,0),eR=(function(){function e(t){this.id=YT(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Jpe;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Em,n,c):Bc(Em,n,c),a.x=Em.x,a.y=Em.y,o=Em.align,s=Em.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=oa(f[0],c.width),p=oa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+p+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var m=n.offset;m&&(a.x+=m[0],a.y+=m[1],u||(a.originX=-m[0],a.originY=-m[1]));var h=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,g=void 0,_=void 0;h&&this.canBeInsideText()?(v=n.insideFill,g=n.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(g==null||g==="auto")&&(g=this.getInsideTextStroke(v),_=!0)):(v=n.outsideFill,g=n.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(g==null||g==="auto")&&(g=this.getOutsideStroke(v),_=!0)),v=v||"#000",(v!==y.fill||g!==y.stroke||_!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=v,y.stroke=g,y.autoStroke=_,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=In,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ey:wy},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ri(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Sm(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},$(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(J(t))for(var n=t,i=pe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==KI)){var o=i.targetName,s=o?r[o]:r;i.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,WI)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];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(KI,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===KI,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Ne(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){XT("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~In),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!r&&!this.__inHover&&m&&m.duration>0,m);var h=this._textContent,y=this._textGuide;h&&h.useStates(t,r,d),y&&y.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~In)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},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=Ne(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Ne(i,t),o=Ne(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];$(r,a),a.textConfig&&(n=n||{},$(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=$({},i?this.textConfig:n.textConfig),$(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<WI.length;c++){var f=WI[c],d=a&&Wpe[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],m=p.targetName;p.getLoop()||p.__changeFinalValue(m?(r||n)[m]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new ua,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),$(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|=In;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Sy(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=Ne(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){JI(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){JI(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=JI(this,r,n,i),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.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=In;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(t,a,{get:function(){if(!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),e})();Ir(eR,en);Ir(eR,ua);Iw=eR});function ame(e,t,r){return rR.copy(e.getBoundingRect()),e.transform&&rR.applyTransform(e.transform),nR.width=t,nR.height=r,!rR.intersect(nR)}var iR,Io,Kc,a9,nme,ime,rR,nR,Ro,Wc=w(()=>{ae();tR();dn();I();wm();iR="__zr_style_"+Math.round(Math.random()*10),Io={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Io[iR]=!0;a9=["z","z2","invisible"],nme=["invisible"],ime=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=pe(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ame(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ze(0,0,0,0)),n?ze.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ze(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:$(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Xc,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Xc)},t.prototype.styleUpdated=function(){this.__dirty&=~Xc},t.prototype.createStyle=function(r){return Kl(Io,r)},t.prototype.useStyle=function(r){r[iR]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[iR]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,a9)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=pe(c),d=0;d<f.length;d++){var p=f[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var m=pe(u),d=0;d<m.length;d++){var p=m[d];this.style[p]=this.style[p]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var h=this.__inHover?nme:a9,d=0;d<h.length;d++){var p=h[d];n&&n[p]!=null?this[p]=n[p]:l&&i[p]!=null&&(this[p]=i[p])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return $(r,n),r},t.prototype.getAnimationStyleProps=function(){return Kc},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=In|Xc})(),t})(Iw),rR=new ze(0,0,0,0),nR=new ze(0,0,0,0);Ro=ime});function $w(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=ni(i,n[0]),a=ii(a,n[0]),o=ni(o,n[1]),s=ii(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function sR(e,t,r,n,i,a){i[0]=ni(e,r),i[1]=ni(t,n),a[0]=ii(e,r),a[1]=ii(t,n)}function l9(e,t,r,n,i,a,o,s,l,u){var c=pw,f=Ft,d=c(e,r,i,o,o9);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var m=f(e,r,i,o,o9[p]);l[0]=ni(m,l[0]),u[0]=ii(m,u[0])}d=c(t,n,a,s,s9);for(var p=0;p<d;p++){var h=f(t,n,a,s,s9[p]);l[1]=ni(h,l[1]),u[1]=ii(h,u[1])}l[0]=ni(e,l[0]),u[0]=ii(e,u[0]),l[0]=ni(o,l[0]),u[0]=ii(o,u[0]),l[1]=ni(t,l[1]),u[1]=ii(t,u[1]),l[1]=ni(s,l[1]),u[1]=ii(s,u[1])}function u9(e,t,r,n,i,a,o,s){var l=hw,u=fr,c=ii(ni(l(e,r,i),1),0),f=ii(ni(l(t,n,a),1),0),d=u(e,r,i,c),p=u(t,n,a,f);o[0]=ni(e,i,d),o[1]=ni(t,a,p),s[0]=ii(e,i,d),s[1]=ii(t,a,p)}function c9(e,t,r,n,i,a,o,s,l){var u=As,c=Cs,f=Math.abs(i-a);if(f%Jc<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Rw[0]=oR(i)*r+e,Rw[1]=aR(i)*n+t,Lw[0]=oR(a)*r+e,Lw[1]=aR(a)*n+t,u(s,Rw,Lw),c(l,Rw,Lw),i=i%Jc,i<0&&(i=i+Jc),a=a%Jc,a<0&&(a=a+Jc),i>a&&!o?a+=Jc:i<a&&o&&(i+=Jc),o){var d=a;a=i,i=d}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Pw[0]=oR(p)*r+e,Pw[1]=aR(p)*n+t,u(s,Pw,s),c(l,Pw,l))}var ni,ii,aR,oR,Jc,Rw,Lw,Pw,o9,s9,Uw=w(()=>{cr();Ba();ni=Math.min,ii=Math.max,aR=Math.sin,oR=Math.cos,Jc=Math.PI*2,Rw=No(),Lw=No(),Pw=No();o9=[],s9=[]});function fR(e){var t=Math.round(e/dR*1e8)/1e8;return t%2*dR}function pR(e,t){var r=fR(e[0]);r<0&&(r+=su);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=su?i=r+su:t&&r-i>=su?i=r-su:!t&&r>i?i=r+(su-fR(r-i)):t&&r<i&&(i=r-(su-fR(i-r))),e[0]=r,e[1]=i}var mt,Qc,ef,Lo,ou,Po,$o,lR,uR,tf,rf,Ns,dR,su,cR,Ay,ome,tn,Uo=w(()=>{cr();dn();zy();Uw();Ba();mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qc=[],ef=[],Lo=[],ou=[],Po=[],$o=[],lR=Math.min,uR=Math.max,tf=Math.cos,rf=Math.sin,Ns=Math.abs,dR=Math.PI,su=dR*2,cR=typeof Float32Array<"u",Ay=[];ome=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=Ns(n/XI/t)||0,this._uy=Ns(n/XI/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(mt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Ns(t-this._xi),i=Ns(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(mt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(mt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ay[0]=i,Ay[1]=a,pR(Ay,o),i=Ay[0],a=Ay[1];var s=a-i;return this.addData(mt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=tf(a)*n+t,this._yi=rf(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(mt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&cR&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();cR&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,cR&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Lo[0]=Lo[1]=Po[0]=Po[1]=Number.MAX_VALUE,ou[0]=ou[1]=$o[0]=$o[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case mt.M:r=i=t[o++],n=a=t[o++],Po[0]=i,Po[1]=a,$o[0]=i,$o[1]=a;break;case mt.L:sR(r,n,t[o],t[o+1],Po,$o),r=t[o++],n=t[o++];break;case mt.C:l9(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Po,$o),r=t[o++],n=t[o++];break;case mt.Q:u9(r,n,t[o++],t[o++],t[o],t[o+1],Po,$o),r=t[o++],n=t[o++];break;case mt.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],p=t[o++],m=t[o++]+p;o+=1;var h=!t[o++];l&&(i=tf(p)*f+u,a=rf(p)*d+c),c9(u,c,f,d,p,m,h,Po,$o),r=tf(m)*f+u,n=rf(m)*d+c;break;case mt.R:i=r=t[o++],a=n=t[o++];var y=t[o++],v=t[o++];sR(i,a,i+y,a+v,Po,$o);break;case mt.Z:r=i,n=a;break}As(Lo,Lo,Po),Cs(ou,ou,$o)}return o===0&&(Lo[0]=Lo[1]=ou[0]=ou[1]=0),new ze(Lo[0],Lo[1],ou[0]-Lo[0],ou[1]-Lo[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var p=t[d++],m=d===1;m&&(a=t[d],o=t[d+1],s=a,l=o);var h=-1;switch(p){case mt.M:a=s=t[d++],o=l=t[d++];break;case mt.L:{var y=t[d++],v=t[d++],g=y-a,_=v-o;(Ns(g)>n||Ns(_)>i||d===r-1)&&(h=Math.sqrt(g*g+_*_),a=y,o=v);break}case mt.C:{var b=t[d++],x=t[d++],y=t[d++],v=t[d++],S=t[d++],T=t[d++];h=IG(a,o,b,x,y,v,S,T,10),a=S,o=T;break}case mt.Q:{var b=t[d++],x=t[d++],y=t[d++],v=t[d++];h=LG(a,o,b,x,y,v,10),a=y,o=v;break}case mt.A:var E=t[d++],z=t[d++],C=t[d++],D=t[d++],O=t[d++],k=t[d++],R=k+O;d+=1,m&&(s=tf(O)*C+E,l=rf(O)*D+z),h=uR(C,D)*lR(su,Math.abs(k)),a=tf(R)*C+E,o=rf(R)*D+z;break;case mt.R:{s=a=t[d++],l=o=t[d++];var j=t[d++],Z=t[d++];h=j*2+Z*2;break}case mt.Z:{var g=s-a,_=l-o;h=Math.sqrt(g*g+_*_),a=s,o=l;break}}h>=0&&(u[f++]=h,c+=h)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,p=r<1,m,h,y=0,v=0,g,_=0,b,x;if(!(p&&(this._pathSegLen||this._calculateLength(),m=this._pathSegLen,h=this._pathLen,g=r*h,!g)))e:for(var S=0;S<o;){var T=n[S++],E=S===1;switch(E&&(u=n[S],c=n[S+1],s=u,l=c),T!==mt.L&&_>0&&(t.lineTo(b,x),_=0),T){case mt.M:s=u=n[S++],l=c=n[S++],t.moveTo(u,c);break;case mt.L:{f=n[S++],d=n[S++];var z=Ns(f-u),C=Ns(d-c);if(z>i||C>a){if(p){var D=m[v++];if(y+D>g){var O=(g-y)/D;t.lineTo(u*(1-O)+f*O,c*(1-O)+d*O);break e}y+=D}t.lineTo(f,d),u=f,c=d,_=0}else{var k=z*z+C*C;k>_&&(b=f,x=d,_=k)}break}case mt.C:{var R=n[S++],j=n[S++],Z=n[S++],Q=n[S++],G=n[S++],K=n[S++];if(p){var D=m[v++];if(y+D>g){var O=(g-y)/D;_m(u,R,Z,G,O,Qc),_m(c,j,Q,K,O,ef),t.bezierCurveTo(Qc[1],ef[1],Qc[2],ef[2],Qc[3],ef[3]);break e}y+=D}t.bezierCurveTo(R,j,Z,Q,G,K),u=G,c=K;break}case mt.Q:{var R=n[S++],j=n[S++],Z=n[S++],Q=n[S++];if(p){var D=m[v++];if(y+D>g){var O=(g-y)/D;tu(u,R,Z,O,Qc),tu(c,j,Q,O,ef),t.quadraticCurveTo(Qc[1],ef[1],Qc[2],ef[2]);break e}y+=D}t.quadraticCurveTo(R,j,Z,Q),u=Z,c=Q;break}case mt.A:var ie=n[S++],ce=n[S++],fe=n[S++],$e=n[S++],tt=n[S++],dt=n[S++],an=n[S++],jn=!n[S++],Ar=fe>$e?fe:$e,Jt=Ns(fe-$e)>.001,Ut=tt+dt,xe=!1;if(p){var D=m[v++];y+D>g&&(Ut=tt+dt*(g-y)/D,xe=!0),y+=D}if(Jt&&t.ellipse?t.ellipse(ie,ce,fe,$e,an,tt,Ut,jn):t.arc(ie,ce,Ar,tt,Ut,jn),xe)break e;E&&(s=tf(tt)*fe+ie,l=rf(tt)*$e+ce),u=tf(Ut)*fe+ie,c=rf(Ut)*$e+ce;break;case mt.R:s=u=n[S],l=c=n[S+1],f=n[S++],d=n[S++];var Ue=n[S++],Vn=n[S++];if(p){var D=m[v++];if(y+D>g){var Qt=g-y;t.moveTo(f,d),t.lineTo(f+lR(Qt,Ue),d),Qt-=Ue,Qt>0&&t.lineTo(f+Ue,d+lR(Qt,Vn)),Qt-=Vn,Qt>0&&t.lineTo(f+uR(Ue-Qt,0),d+Vn),Qt-=Ue,Qt>0&&t.lineTo(f,d+uR(Vn-Qt,0));break e}y+=D}t.rect(f,d,Ue,Vn);break;case mt.Z:if(p){var D=m[v++];if(y+D>g){var O=(g-y)/D;t.lineTo(u*(1-O)+s*O,c*(1-O)+l*O);break e}y+=D}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=mt,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})(),tn=ome});function nf(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}var d9=w(()=>{});function p9(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=mw(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}var m9=w(()=>{Ba()});function h9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=vw(e,t,r,n,i,a,s,l,null);return c<=u/2}var v9=w(()=>{Ba()});function da(e){return e%=g9,e<0&&(e+=g9),e}var g9,jw=w(()=>{g9=Math.PI*2});function y9(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%Cy<1e-4)return!0;if(a){var f=n;n=da(i),i=da(f)}else n=da(n),i=da(i);n>i&&(i+=Cy);var d=Math.atan2(l,s);return d<0&&(d+=Cy),d>=n&&d<=i||d+Cy>=n&&d+Cy<=i}var Cy,_9=w(()=>{jw();Cy=Math.PI*2});function Os(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var b9=w(()=>{});function dme(e,t){return Math.abs(e-t)<fme}function pme(){var e=pa[0];pa[0]=pa[1],pa[1]=e}function mme(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=qc(t,n,a,s,u,Rn);if(c===0)return 0;for(var f=0,d=-1,p=void 0,m=void 0,h=0;h<c;h++){var y=Rn[h],v=y===0||y===1?.5:1,g=Ft(e,r,i,o,y);g<l||(d<0&&(d=pw(t,n,a,s,pa),pa[1]<pa[0]&&d>1&&pme(),p=Ft(t,n,a,s,pa[0]),d>1&&(m=Ft(t,n,a,s,pa[1]))),d===2?y<pa[0]?f+=p<t?v:-v:y<pa[1]?f+=m<p?v:-v:f+=s<m?v:-v:y<pa[0]?f+=p<t?v:-v:f+=s<p?v:-v)}return f}function hme(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=RG(t,n,a,s,Rn);if(l===0)return 0;var u=hw(t,n,a);if(u>=0&&u<=1){for(var c=0,f=fr(t,n,a,u),d=0;d<l;d++){var p=Rn[d]===0||Rn[d]===1?.5:1,m=fr(e,r,i,Rn[d]);m<o||(Rn[d]<u?c+=f<t?p:-p:c+=a<f?p:-p)}return c}else{var p=Rn[0]===0||Rn[0]===1?.5:1,m=fr(e,r,i,Rn[0]);return m<o?0:a<t?p:-p}}function vme(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Rn[0]=-l,Rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=af-1e-4){n=0,i=af;var c=a?1:-1;return o>=Rn[0]+e&&o<=Rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=af,i+=af);for(var d=0,p=0;p<2;p++){var m=Rn[p];if(m+e>o){var h=Math.atan2(s,m),c=a?1:-1;h<0&&(h=af+h),(h>=n&&h<=i||h+af>=n&&h+af<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(c=-c),d+=c)}}return d}function x9(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,p,m=0;m<o;){var h=a[m++],y=m===1;switch(h===lu.M&&m>1&&(r||(s+=Os(l,u,c,f,n,i))),y&&(l=a[m],u=a[m+1],c=l,f=u),h){case lu.M:c=a[m++],f=a[m++],l=c,u=f;break;case lu.L:if(r){if(nf(l,u,a[m],a[m+1],t,n,i))return!0}else s+=Os(l,u,a[m],a[m+1],n,i)||0;l=a[m++],u=a[m++];break;case lu.C:if(r){if(p9(l,u,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,n,i))return!0}else s+=mme(l,u,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],n,i)||0;l=a[m++],u=a[m++];break;case lu.Q:if(r){if(h9(l,u,a[m++],a[m++],a[m],a[m+1],t,n,i))return!0}else s+=hme(l,u,a[m++],a[m++],a[m],a[m+1],n,i)||0;l=a[m++],u=a[m++];break;case lu.A:var v=a[m++],g=a[m++],_=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var T=!!(1-a[m++]);d=Math.cos(x)*_+v,p=Math.sin(x)*b+g,y?(c=d,f=p):s+=Os(l,u,d,p,n,i);var E=(n-v)*b/_+v;if(r){if(y9(v,g,b,x,x+S,T,t,E,i))return!0}else s+=vme(v,g,b,x,x+S,T,E,i);l=Math.cos(x+S)*_+v,u=Math.sin(x+S)*b+g;break;case lu.R:c=l=a[m++],f=u=a[m++];var z=a[m++],C=a[m++];if(d=c+z,p=f+C,r){if(nf(c,f,d,f,t,n,i)||nf(d,f,d,p,t,n,i)||nf(d,p,c,p,t,n,i)||nf(c,p,c,f,t,n,i))return!0}else s+=Os(d,f,d,p,n,i),s+=Os(c,p,c,f,n,i);break;case lu.Z:if(r){if(nf(l,u,c,f,t,n,i))return!0}else s+=Os(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!dme(u,f)&&(s+=Os(l,u,c,f,n,i)||0),s!==0}function S9(e,t,r){return x9(e,0,!1,t,r)}function T9(e,t,r,n){return x9(e,t,!0,r,n)}var lu,af,fme,Rn,pa,w9=w(()=>{Uo();d9();m9();v9();_9();Ba();b9();lu=tn.CMD,af=Math.PI*2,fme=1e-4;Rn=[-1,-1,-1],pa=[-1,-1]});var zm,yme,mR,_me,me,ar=w(()=>{ae();Wc();Uo();w9();I();ko();zy();wm();Gc();zm=de({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Io),yme={style:de({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kc.style)},mR=Fc.concat(["invisible","culling","z","z2","zlevel","parent"]),_me=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<mR.length;++s)i[mR[s]]=this[mR[s]];i.__dirty|=In}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=pe(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?$(this.style,s):this.useStyle(s):o==="shape"?$(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(F(r)){var n=Tm(r,0);return n>.5?wy:n>.2?n9:Ey}else if(r)return Ey}return wy},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(F(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Tm(r,0)<Ty;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~au},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new tn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&au)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),T9(s,l/u,r,n)))return!0}if(this.hasFill())return S9(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=au,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:$(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&au)},t.prototype.createStyle=function(r){return Kl(zm,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=$({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=$({},i.shape),$(u,n.shape)):(u=$({},a?this.shape:i.shape),$(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=$({},this.shape);for(var c={},f=pe(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return yme},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(a){L(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return _e(r.style)},o.prototype.getDefaultShape=function(){return _e(r.shape)},o})(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=In|Xc|au})(),t})(Ro),me=_me});var bme,E9,of,Vw=w(()=>{ae();Wc();sa();ar();I();Eo();bme=de({strokeFirst:!0,font:Di,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zm),E9=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Kl(bme,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=pm(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(Ro);E9.prototype.type="tspan";of=E9});function Tme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var xme,Sme,z9,pn,sf=w(()=>{ae();Wc();dn();I();xme=de({x:0,y:0},Io),Sme={style:de({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kc.style)};z9=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Kl(xme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Tme(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Sme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ze(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Ro);z9.prototype.type="image";pn=z9});function A9(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var C9=w(()=>{});function Bw(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Am(n*2)===Am(i*2)&&(e.x1=e.x2=uu(n,s,!0)),Am(a*2)===Am(o*2)&&(e.y1=e.y2=uu(a,s,!0))),e}}function Zw(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=uu(n,s,!0),e.y=uu(i,s,!0),e.width=Math.max(uu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(uu(i+o,s,!1)-e.y,o===0?0:1)),e}}function uu(e,t,r){if(!t)return e;var n=Am(e*2);return(n+Am(t))%2===0?n/2:(n+(r?1:-1))/2}var Am,Hw=w(()=>{Am=Math.round});var zme,Ame,D9,ct,hR=w(()=>{ae();ar();C9();Hw();zme=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Ame={},D9=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Zw(Ame,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?A9(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(me);D9.prototype.type="rect";ct=D9});function gR(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?FT+"px":e+"px"}function M9(e,t){for(var r=0;r<k9.length;r++){var n=k9[r],i=t[n];i!=null&&(e[n]=i)}}function yR(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ome(e){return I9(e),A(e.rich,I9),e}function I9(e){if(e){e.font=U9.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Dme[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Nme[r]?r:"top";var n=e.padding;n&&(e.padding=WT(e.padding))}}function R9(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function L9(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function P9(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function $9(e){var t=e.text;return t!=null&&(t+=""),t}function vR(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var N9,O9,Cme,U9,Dme,Nme,k9,Pt,Cm=w(()=>{ae();AG();Vw();I();sa();sf();hR();dn();Wc();Eo();N9={fill:"#000"},O9=2,Cme={style:de({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Kc.style)},U9=(function(e){L(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=N9,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ome(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ze(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||N9},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return $(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=pe(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},$(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Cme},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Di,i=r.padding,a=$9(r),o=wG(a,r),s=vR(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,p=o.lineHeight,m=this._defaultStyle;this.isTruncated=!!o.isTruncated;var h=r.x||0,y=r.y||0,v=r.align||m.align||"left",g=r.verticalAlign||m.verticalAlign||"top",_=h,b=Vc(y,o.contentHeight,g);if(s||i){var x=mm(h,c,v),S=Vc(y,u,g);s&&this._renderBackground(r,r,x,S,c,u)}b+=p/2,i&&(_=P9(h,v,i),g==="top"?b+=i[0]:g==="bottom"&&(b-=i[2]));for(var T=0,E=!1,z=L9("fill"in r?r.fill:(E=!0,m.fill)),C=R9("stroke"in r?r.stroke:!l&&(!m.autoStroke||E)?(T=O9,m.stroke):null),D=r.textShadowBlur>0,O=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),k=o.calculatedLineHeight,R=0;R<d.length;R++){var j=this._getOrCreateChild(of),Z=j.createStyle();j.useStyle(Z),Z.text=d[R],Z.x=_,Z.y=b,v&&(Z.textAlign=v),Z.textBaseline="middle",Z.opacity=r.opacity,Z.strokeFirst=!0,D&&(Z.shadowBlur=r.textShadowBlur||0,Z.shadowColor=r.textShadowColor||"transparent",Z.shadowOffsetX=r.textShadowOffsetX||0,Z.shadowOffsetY=r.textShadowOffsetY||0),Z.stroke=C,Z.fill=z,C&&(Z.lineWidth=r.lineWidth||T,Z.lineDash=r.lineDash,Z.lineDashOffset=r.lineDashOffset||0),Z.font=n,M9(Z,r),b+=p,O&&j.setBoundingRect(new ze(mm(Z.x,f,Z.textAlign),Vc(Z.y,k,Z.textBaseline),f,k))}},t.prototype._updateRichTexts=function(){var r=this.style,n=$9(r),i=EG(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,p=r.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var m=mm(u,o,d),h=Vc(c,s,p),y=m,v=h;l&&(y+=l[3],v+=l[0]);var g=y+a;vR(r)&&this._renderBackground(r,r,m,h,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var x=i.lines[b],S=x.tokens,T=S.length,E=x.lineHeight,z=x.width,C=0,D=y,O=g,k=T-1,R=void 0;C<T&&(R=S[C],!R.align||R.align==="left");)this._placeToken(R,r,E,v,D,"left",_),z-=R.width,D+=R.width,C++;for(;k>=0&&(R=S[k],R.align==="right");)this._placeToken(R,r,E,v,O,"right",_),z-=R.width,O-=R.width,k--;for(D+=(a-(D-y)-(g-O)-z)/2;C<=k;)R=S[C],this._placeToken(R,r,E,v,D+R.width/2,"center",_),D+=R.width,C++;v+=E}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&vR(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var p=!!u.backgroundColor,m=r.textPadding;m&&(o=P9(o,s,m),f-=r.height/2-m[0]-r.innerHeight/2);var h=this._getOrCreateChild(of),y=h.createStyle();h.useStyle(y);var v=this._defaultStyle,g=!1,_=0,b=L9("fill"in u?u.fill:"fill"in n?n.fill:(g=!0,v.fill)),x=R9("stroke"in u?u.stroke:"stroke"in n?n.stroke:!p&&!l&&(!v.autoStroke||g)?(_=O9,v.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=o,y.y=f,S&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||Di,y.opacity=kn(u.opacity,n.opacity,1),M9(y,u),x&&(y.lineWidth=kn(u.lineWidth,n.lineWidth,_),y.lineDash=se(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=x),b&&(y.fill=b);var T=r.contentWidth,E=r.contentHeight;h.setBoundingRect(new ze(mm(y.x,T,y.textAlign),Vc(y.y,E,y.textBaseline),T,E))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,p=r.borderRadius,m=this,h,y;if(d||r.lineHeight||u&&c){h=this._getOrCreateChild(ct),h.useStyle(h.createStyle()),h.style.fill=null;var v=h.shape;v.x=i,v.y=a,v.width=o,v.height=s,v.r=p,h.dirtyShape()}if(d){var g=h.style;g.fill=l||null,g.fillOpacity=se(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(pn),y.onload=function(){m.dirtyStyle()};var _=y.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var g=h.style;g.lineWidth=u,g.stroke=c,g.strokeOpacity=se(r.strokeOpacity,1),g.lineDash=r.borderDash,g.lineDashOffset=r.borderDashOffset||0,h.strokeContainThreshold=0,h.hasFill()&&h.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var b=(h||y).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=kn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return yR(r)&&(n=[r.fontStyle,r.fontWeight,gR(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Jr(n)||r.textFont||r.font},t})(Ro),Dme={left:!0,right:1,center:1},Nme={top:1,bottom:1,middle:1},k9=["fontStyle","fontWeight","fontSize","fontFamily"];Pt=U9});function kme(e){return e.replace(/^\s+|\s+$/g,"")}function cu(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Be(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return F(e)?kme(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function St(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),V9),e=(+e).toFixed(t),r?e:+e}function ki(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 Mme(e)}function Mme(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function B9(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Z9(e,t){var r=Ni(e,function(p,m){return p+(isNaN(m)?0:m)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=H(e,function(p){return(isNaN(p)?0:p)/r*n*100}),a=n*100,o=H(i,function(p){return Math.floor(p)}),s=Ni(o,function(p,m){return p+m},0),l=H(i,function(p,m){return p-o[m]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return H(o,function(p){return p/n})}function H9(e,t){var r=Math.max(ki(e),ki(t)),n=e+t;return r>V9?n:St(n,r)}function _R(e){var t=Math.PI*2;return(e%t+t)%t}function Dy(e){return e>-j9&&e<j9}function Mi(e){if(e instanceof Date)return e;if(F(e)){var t=Ime.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 F9(e){return Math.pow(10,Fw(e))}function Fw(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 Gw(e,t){var r=Fw(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function jo(e){var t=parseFloat(e);return t==e&&(t!==0||!F(e)||e.indexOf("x")<=0)?t:NaN}function bR(e){return!isNaN(jo(e))}function qw(){return Math.round(Math.random()*9)}function G9(e,t){return t===0?e:G9(t,e%t)}function xR(e,t){return e==null?t:t==null?e:e*t/G9(e,t)}var j9,V9,Ime,Ct=w(()=>{I();j9=1e-4,V9=20;Ime=/^(?:(\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 Rr(e){throw new Error(e)}var Xw=w(()=>{});function q9(e,t,r){return(t-e)*r+e}function Gt(e){return e instanceof Array?e:e==null?[]:[e]}function lf(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function ks(e){return J(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function X9(e){return J(e)&&!(e instanceof Array)}function K9(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=oe();A(t,function(l,u){if(!J(l)){t[u]=null;return}});var s=Lme(e,o,r);return(n||i)&&Pme(s,e,o,t),n&&$me(s,t),n||i?Ume(s,t,i):a&&jme(s,t),Vme(s),s}function Lme(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Dm(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Pme(e,t,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=Ny(i.id),s=r.get(o);if(s!=null){var l=e[s];ir(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function $me(e,t){A(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Dm(r)&&!Dm(a)&&W9("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function Ume(e,t,r){A(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Dm(i.existing)||i.existing&&n.id!=null&&!W9("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function jme(e,t){A(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Vme(e){var t=oe();A(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),A(e,function(r){var n=r.newOption;ir(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),A(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(J(a)){if(o.name=a.name!=null?Ny(a.name):i?i.name:Y9+n,i)o.id=Ny(i.id);else if(a.id!=null)o.id=Ny(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 W9(e,t,r){var n=rn(t[e],null),i=rn(r[e],null);return n!=null&&i!=null&&n===i}function Ny(e){return rn(e,"")}function rn(e,t){return e==null?t:F(e)?e:ve(e)||oy(e)?e+"":t}function Nm(e){var t=e.name;return!!(t&&t.indexOf(Y9))}function Dm(e){return e&&e.id!=null&&Ny(e.id).indexOf(Rme)===0}function J9(e,t,r){A(e,function(n){var i=n.newOption;J(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Bme(t,i,n.existing,r))})}function Bme(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function ma(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?H(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?H(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function De(){var e="__ec_inner_"+Zme++;return function(t){return t[e]||(t[e]={})}}function Kw(e,t,r){var n=Oy(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=fu(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Oy(e,t){var r;if(F(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=oe(),a={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Ne(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function fu(e,t,r,n){n=n||mn;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(ir(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(ir(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function TR(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Q9(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function e8(e){return e==="auto"?ye.domSupported?"html":"richText":e||"html"}function Ww(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(ve(n)){var o=q9(r||0,n,i);return St(o,a?Math.max(ki(r||0),ki(n)):t)}else{if(F(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var p=l&&l[f]?l[f]:0,m=u[f],o=q9(p,m,i);s[f]=St(o,a?Math.max(ki(p),ki(m)):t)}}return s}}var Y9,Rme,SR,Zme,mn,Ae=w(()=>{I();Qr();Ct();Y9="series\0",Rme="\0_ec_\0";SR=["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"];Zme=qw();mn={useDefault:!0,enableAll:!1,enableNone:!1}});var we,t8,ai=w(()=>{Ae();we=De(),t8=function(e,t,r,n){if(n){var i=we(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=we(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}}});function Om(e){return e!=null&&e!=="none"}function Qw(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function u8(e){Qw(e,"emphasis",ky)}function c8(e){e.hoverState===ky&&Qw(e,"normal",AR)}function CR(e){Qw(e,"blur",uf)}function f8(e){e.hoverState===uf&&Qw(e,"normal",AR)}function Gme(e){e.selected=!0}function qme(e){e.selected=!1}function i8(e,t,r){t(e,r)}function Ms(e,t,r){i8(e,t,r),e.isGroup&&e.traverse(function(n){i8(n,t,r)})}function Ry(e,t){switch(t){case"emphasis":e.hoverState=ky;break;case"normal":e.hoverState=AR;break;case"blur":e.hoverState=uf;break;case"select":e.selected=!0}}function Yme(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function Xme(e,t,r,n){var i=r&&Ne(r,"select")>=0,a=!1;if(e instanceof me){var o=l8(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Om(s)||Om(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=$({},n),u=$({},u),u.fill=s):!Om(u.fill)&&Om(s)?(a=!0,n=$({},n),u=$({},u),u.fill=vy(s)):!Om(u.stroke)&&Om(l)&&(a||(n=$({},n),u=$({},u)),u.stroke=vy(l)),n.style=u}}if(n&&n.z2==null){a||(n=$({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Hme)}return n}function Kme(e,t,r){if(r&&r.z2==null){r=$({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Fme)}return r}function Wme(e,t,r){var n=Ne(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Yme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=$({},r),o=$({opacity:n?i:a.opacity*.1},o),r.style=o),r}function wR(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Xme(this,e,t,r);if(e==="blur")return Wme(this,e,r);if(e==="select")return Kme(this,e,r)}return r}function DR(e){e.stateProxy=wR;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=wR),r&&(r.stateProxy=wR)}function a8(e,t){!p8(e,t)&&!e.__highByOuter&&Ms(e,u8)}function o8(e,t){!p8(e,t)&&!e.__highByOuter&&Ms(e,c8)}function Is(e,t){e.__highByOuter|=1<<(t||0),Ms(e,u8)}function Rs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ms(e,c8)}function d8(e){Ms(e,CR)}function NR(e){Ms(e,f8)}function OR(e){Ms(e,Gme)}function kR(e){Ms(e,qme)}function p8(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function MR(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=zR(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){f8(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function ER(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&NR(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var p=n.getViewOfSeriesModel(u);if(p.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||CR(y)}),gr(t))a(u.getData(),t);else if(J(t))for(var m=pe(t),h=0;h<m.length;h++)a(u.getData(m[h]),t[m[h]]);l.push(u),zR(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function Jw(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){zR(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){CR(a)})}}}function m8(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=ma(i,t);a=(V(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=we(o);ER(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&ER(n,c,f,r)}}}function eE(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(we(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function h8(e,t,r){var n=we(e),i=eE(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Jw(n.componentMainType,n.componentIndex,r),A(a,function(s){return a8(s,t)})):(ER(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Jw(n.componentMainType,n.componentIndex,r),a8(e,t))}function v8(e,t,r){MR(r);var n=we(e),i=eE(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return o8(a,t)}):o8(e,t)}function g8(e,t,r){if(rE(t)){var n=t.dataType,i=e.getData(n),a=ma(i,t);V(a)||(a=[a]),e[t.type===Im?"toggleSelect":t.type===Mm?"select":"unselect"](a,n)}}function IR(e){var t=e.getAllData();A(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?OR(a):kR(a)})})}function y8(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();A(n,function(i){var a=i.data,o=i.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),t.push(l)}})}),t}function tE(e,t,r){_8(e,!0),Ms(e,DR),Qme(e,t,r)}function Jme(e){_8(e,!1)}function Za(e,t,r,n){n?Jme(e):tE(e,t,r)}function Qme(e,t,r){var n=we(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}function Ls(e,t,r,n){r=r||"itemStyle";for(var i=0;i<s8.length;i++){var a=s8[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[ehe[r]]()}}function _8(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ly(e){return!!(e&&e.__highDownDispatcher)}function b8(e){var t=n8[e];return t==null&&r8<=32&&(t=n8[e]=r8++),t}function rE(e){var t=e.type;return t===Mm||t===Iy||t===Im}function RR(e){var t=e.type;return t===pu||t===My}function x8(e){var t=l8(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var r8,n8,l8,zR,AR,uf,ky,Lr,km,Hme,Fme,pu,My,Mm,Iy,Im,s8,ehe,ha=w(()=>{I();ai();ko();Ae();ar();r8=1,n8={},l8=De(),zR=De(),AR=0,uf=1,ky=2,Lr=["emphasis","blur","select"],km=["normal","emphasis","blur","select"],Hme=10,Fme=9,pu="highlight",My="downplay",Mm="select",Iy="unselect",Im="toggleSelect";s8=["emphasis","blur","select"],ehe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"}});function LR(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=Rm.M,f=Rm.C,d=Rm.L,p=Rm.R,m=Rm.A,h=Rm.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case h:a=2;break;case m:var y=t[4],v=t[5],g=S8(t[0]*t[0]+t[1]*t[1]),_=S8(t[2]*t[2]+t[3]*t[3]),b=rhe(-t[1]/_,t[0]/g);r[o]*=g,r[o++]+=y,r[o]*=_,r[o++]+=v,r[o++]*=g,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case p:u[0]=r[o++],u[1]=r[o++],ur(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ur(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var x=the[l];x[0]=r[o++],x[1]=r[o++],ur(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Rm,the,S8,rhe,T8=w(()=>{Uo();cr();Rm=tn.CMD,the=[[],[],[]],S8=Math.sqrt,rhe=Math.atan2});function w8(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function $R(e,t){return(e[0]*t[0]+e[1]*t[1])/(w8(e)*w8(t))}function E8(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos($R(e,t))}function z8(e,t,r,n,i,a,o,s,l,u,c){var f=l*(Py/180),d=iE(f)*(e-r)/2+nE(f)*(t-n)/2,p=-1*nE(f)*(e-r)/2+iE(f)*(t-n)/2,m=d*d/(o*o)+p*p/(s*s);m>1&&(o*=PR(m),s*=PR(m));var h=(i===a?-1:1)*PR((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,y=h*o*p/s,v=h*-s*d/o,g=(e+r)/2+iE(f)*y-nE(f)*v,_=(t+n)/2+nE(f)*y+iE(f)*v,b=E8([1,0],[(d-y)/o,(p-v)/s]),x=[(d-y)/o,(p-v)/s],S=[(-1*d-y)/o,(-1*p-v)/s],T=E8(x,S);if($R(x,S)<=-1&&(T=Py),$R(x,S)>=1&&(T=0),T<0){var E=Math.round(T/Py*1e6)/1e6;T=Py*2+E%2*Py}c.addData(u,g,_,o,s,b,T,f,a)}function ahe(e){var t=new tn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=tn.CMD,l=e.match(nhe);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match(ihe)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var y=0;y<m;){var v=void 0,g=void 0,_=void 0,b=void 0,x=void 0,S=void 0,T=void 0,E=r,z=n,C=void 0,D=void 0;switch(f){case"l":r+=p[y++],n+=p[y++],d=s.L,t.addData(d,r,n);break;case"L":r=p[y++],n=p[y++],d=s.L,t.addData(d,r,n);break;case"m":r+=p[y++],n+=p[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=p[y++],n=p[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=p[y++],d=s.L,t.addData(d,r,n);break;case"H":r=p[y++],d=s.L,t.addData(d,r,n);break;case"v":n+=p[y++],d=s.L,t.addData(d,r,n);break;case"V":n=p[y++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),r=p[y-2],n=p[y-1];break;case"c":d=s.C,t.addData(d,p[y++]+r,p[y++]+n,p[y++]+r,p[y++]+n,p[y++]+r,p[y++]+n),r+=p[y-2],n+=p[y-1];break;case"S":v=r,g=n,C=t.len(),D=t.data,o===s.C&&(v+=r-D[C-4],g+=n-D[C-3]),d=s.C,E=p[y++],z=p[y++],r=p[y++],n=p[y++],t.addData(d,v,g,E,z,r,n);break;case"s":v=r,g=n,C=t.len(),D=t.data,o===s.C&&(v+=r-D[C-4],g+=n-D[C-3]),d=s.C,E=r+p[y++],z=n+p[y++],r+=p[y++],n+=p[y++],t.addData(d,v,g,E,z,r,n);break;case"Q":E=p[y++],z=p[y++],r=p[y++],n=p[y++],d=s.Q,t.addData(d,E,z,r,n);break;case"q":E=p[y++]+r,z=p[y++]+n,r+=p[y++],n+=p[y++],d=s.Q,t.addData(d,E,z,r,n);break;case"T":v=r,g=n,C=t.len(),D=t.data,o===s.Q&&(v+=r-D[C-4],g+=n-D[C-3]),r=p[y++],n=p[y++],d=s.Q,t.addData(d,v,g,r,n);break;case"t":v=r,g=n,C=t.len(),D=t.data,o===s.Q&&(v+=r-D[C-4],g+=n-D[C-3]),r+=p[y++],n+=p[y++],d=s.Q,t.addData(d,v,g,r,n);break;case"A":_=p[y++],b=p[y++],x=p[y++],S=p[y++],T=p[y++],E=r,z=n,r=p[y++],n=p[y++],d=s.A,z8(E,z,r,n,S,T,_,b,x,d,t);break;case"a":_=p[y++],b=p[y++],x=p[y++],S=p[y++],T=p[y++],E=r,z=n,r+=p[y++],n+=p[y++],d=s.A,z8(E,z,r,n,S,T,_,b,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}function C8(e){return e.setData!=null}function D8(e,t){var r=ahe(e),n=$({},t);return n.buildPath=function(i){if(C8(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){LR(r,i),this.dirtyShape()},n}function N8(e,t){return new A8(D8(e,t))}function O8(e,t){var r=D8(e,t),n=(function(i){L(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(A8);return n}function k8(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new me(t);return o.createPathProxy(),o.buildPath=function(s){if(C8(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var PR,nE,iE,Py,nhe,ihe,A8,M8=w(()=>{ae();ar();Uo();T8();I();PR=Math.sqrt,nE=Math.sin,iE=Math.cos,Py=Math.PI;nhe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ihe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;A8=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(me)});var I8,Ye,Lm=w(()=>{ae();I();tR();dn();I8=(function(e){L(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Ne(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=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 n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Ne(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ze(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(ze.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(Iw);I8.prototype.type="group";Ye=I8});var she,R8,$y,L8=w(()=>{ae();ar();she=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),R8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new she},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(me);R8.prototype.type="circle";$y=R8});var lhe,P8,UR,$8=w(()=>{ae();ar();lhe=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),P8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new lhe},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t})(me);P8.prototype.type="ellipse";UR=P8});function che(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<Ha))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function aE(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/jy(s*s+l*l),c=u*l,f=-u*s,d=e+c,p=t+f,m=r+c,h=n+f,y=(d+m)/2,v=(p+h)/2,g=m-d,_=h-p,b=g*g+_*_,x=i-a,S=d*h-m*p,T=(_<0?-1:1)*jy(Uy(0,x*x*b-S*S)),E=(S*_-g*T)/b,z=(-S*g-_*T)/b,C=(S*_+g*T)/b,D=(-S*g+_*T)/b,O=E-y,k=z-v,R=C-y,j=D-v;return O*O+k*k>R*R+j*j&&(E=C,z=D),{cx:E,cy:z,x0:-c,y0:-f,x1:E*(i/x-1),y1:z*(i/x-1)}}function fhe(e){var t;if(V(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function V8(e,t){var r,n=Uy(t.r,0),i=Uy(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,p=U8(u-l),m=p>jR&&p%jR;if(m>Ha&&(p=m),!(n>Ha))e.moveTo(c,f);else if(p>jR-Ha)e.moveTo(c+n*Pm(l),f+n*cf(l)),e.arc(c,f,n,l,u,!d),i>Ha&&(e.moveTo(c+i*Pm(u),f+i*cf(u)),e.arc(c,f,i,u,l,d));else{var h=void 0,y=void 0,v=void 0,g=void 0,_=void 0,b=void 0,x=void 0,S=void 0,T=void 0,E=void 0,z=void 0,C=void 0,D=void 0,O=void 0,k=void 0,R=void 0,j=n*Pm(l),Z=n*cf(l),Q=i*Pm(u),G=i*cf(u),K=p>Ha;if(K){var ie=t.cornerRadius;ie&&(r=fhe(ie),h=r[0],y=r[1],v=r[2],g=r[3]);var ce=U8(n-i)/2;if(_=Vo(ce,v),b=Vo(ce,g),x=Vo(ce,h),S=Vo(ce,y),z=T=Uy(_,b),C=E=Uy(x,S),(T>Ha||E>Ha)&&(D=n*Pm(u),O=n*cf(u),k=i*Pm(l),R=i*cf(l),p<j8)){var fe=che(j,Z,k,R,D,O,Q,G);if(fe){var $e=j-fe[0],tt=Z-fe[1],dt=D-fe[0],an=O-fe[1],jn=1/cf(uhe(($e*dt+tt*an)/(jy($e*$e+tt*tt)*jy(dt*dt+an*an)))/2),Ar=jy(fe[0]*fe[0]+fe[1]*fe[1]);z=Vo(T,(n-Ar)/(jn+1)),C=Vo(E,(i-Ar)/(jn-1))}}}if(!K)e.moveTo(c+j,f+Z);else if(z>Ha){var Jt=Vo(v,z),Ut=Vo(g,z),xe=aE(k,R,j,Z,n,Jt,d),Ue=aE(D,O,Q,G,n,Ut,d);e.moveTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),z<T&&Jt===Ut?e.arc(c+xe.cx,f+xe.cy,z,hn(xe.y0,xe.x0),hn(Ue.y0,Ue.x0),!d):(Jt>0&&e.arc(c+xe.cx,f+xe.cy,Jt,hn(xe.y0,xe.x0),hn(xe.y1,xe.x1),!d),e.arc(c,f,n,hn(xe.cy+xe.y1,xe.cx+xe.x1),hn(Ue.cy+Ue.y1,Ue.cx+Ue.x1),!d),Ut>0&&e.arc(c+Ue.cx,f+Ue.cy,Ut,hn(Ue.y1,Ue.x1),hn(Ue.y0,Ue.x0),!d))}else e.moveTo(c+j,f+Z),e.arc(c,f,n,l,u,!d);if(!(i>Ha)||!K)e.lineTo(c+Q,f+G);else if(C>Ha){var Jt=Vo(h,C),Ut=Vo(y,C),xe=aE(Q,G,D,O,i,-Ut,d),Ue=aE(j,Z,k,R,i,-Jt,d);e.lineTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),C<E&&Jt===Ut?e.arc(c+xe.cx,f+xe.cy,C,hn(xe.y0,xe.x0),hn(Ue.y0,Ue.x0),!d):(Ut>0&&e.arc(c+xe.cx,f+xe.cy,Ut,hn(xe.y0,xe.x0),hn(xe.y1,xe.x1),!d),e.arc(c,f,i,hn(xe.cy+xe.y1,xe.cx+xe.x1),hn(Ue.cy+Ue.y1,Ue.cx+Ue.x1),d),Jt>0&&e.arc(c+Ue.cx,f+Ue.cy,Jt,hn(Ue.y1,Ue.x1),hn(Ue.y0,Ue.x0),!d))}else e.lineTo(c+Q,f+G),e.arc(c,f,i,u,l,d)}e.closePath()}}}var j8,jR,cf,Pm,uhe,hn,U8,jy,Uy,Vo,Ha,B8=w(()=>{I();j8=Math.PI,jR=j8*2,cf=Math.sin,Pm=Math.cos,uhe=Math.acos,hn=Math.atan2,U8=Math.abs,jy=Math.sqrt,Uy=Math.max,Vo=Math.min,Ha=1e-4});var phe,Z8,Fa,H8=w(()=>{ae();ar();B8();phe=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),Z8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new phe},t.prototype.buildPath=function(r,n){V8(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(me);Z8.prototype.type="sector";Fa=Z8});var mhe,F8,VR,G8=w(()=>{ae();ar();mhe=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),F8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new mhe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(me);F8.prototype.type="ring";VR=F8});function BR(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)As(c,c,e[d]),Cs(f,f,e[d]);As(c,c,n[0]),Cs(f,f,n[1])}for(var d=0,p=e.length;d<p;d++){var m=e[d];if(r)l=e[d?d-1:p-1],u=e[(d+1)%p];else if(d===0||d===p-1){i.push(ti(e[d]));continue}else l=e[d-1],u=e[d+1];Va(a,u,l),vm(a,a,t);var h=ow(m,l),y=ow(m,u),v=h+y;v!==0&&(h/=v,y/=v),vm(o,a,-h),vm(s,a,y);var g=kI([],m,o),_=kI([],m,s);n&&(Cs(g,g,c),As(g,g,f),Cs(_,_,c),As(_,_,f)),i.push(g),i.push(_)}return r&&i.push(i.shift()),i}var q8=w(()=>{cr()});function oE(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=BR(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var ZR=w(()=>{q8()});var hhe,X8,HR,K8=w(()=>{ae();ar();ZR();hhe=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),X8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new hhe},t.prototype.buildPath=function(r,n){oE(r,n,!0)},t})(me);X8.prototype.type="polygon";HR=X8});var vhe,W8,ff,J8=w(()=>{ae();ar();ZR();vhe=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),W8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vhe},t.prototype.buildPath=function(r,n){oE(r,n,!1)},t})(me);W8.prototype.type="polyline";ff=W8});var ghe,yhe,Q8,Ii,eq=w(()=>{ae();ar();Hw();ghe={},yhe=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Q8=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yhe},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=Bw(ghe,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(me);Q8.prototype.type="line";Ii=Q8});function tq(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?PI:Ft)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?PI:Ft)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?$I:fr)(e.x1,e.cpx1,e.x2,t),(r?$I:fr)(e.y1,e.cpy1,e.y2,t)]}var oi,_he,rq,df,nq=w(()=>{ae();ar();cr();Ba();oi=[],_he=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();rq=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _he},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(tu(i,l,o,d,oi),l=oi[1],o=oi[2],tu(a,u,s,d,oi),u=oi[1],s=oi[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(_m(i,l,c,o,d,oi),l=oi[1],c=oi[2],o=oi[3],_m(a,u,f,s,d,oi),u=oi[1],f=oi[2],s=oi[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return tq(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=tq(this.shape,r,!0);return la(n,n)},t})(me);rq.prototype.type="bezier-curve";df=rq});var bhe,iq,Vy,aq=w(()=>{ae();ar();bhe=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),iq=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bhe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t})(me);iq.prototype.type="arc";Vy=iq});var xhe,sE,FR=w(()=>{ae();ar();xhe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),me.prototype.getBoundingRect.call(this)},t})(me),sE=xhe});var She,lE,GR=w(()=>{She=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),lE=She});var The,uE,oq=w(()=>{ae();GR();The=(function(e){L(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(lE),uE=The});var whe,sq,lq=w(()=>{ae();GR();whe=(function(e){L(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(lE),sq=whe});var pf,mf,cE,fE,Ehe,$m,uq=w(()=>{rw();pf=[0,0],mf=[0,0],cE=new Se,fE=new Se,Ehe=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Se;for(var n=0;n<2;n++)this._axes[n]=new Se;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Se.sub(i[0],n[1],n[0]),Se.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return cE.set(1/0,1/0),fE.set(0,0),!this._intersectCheckOneSide(this,t,cE,fE,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,cE,fE,i,-1)&&(n=!1,i)||i||Se.copy(r,n?cE:fE),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,pf),this._getProjMinMaxOnAxis(l,r._corners,mf),pf[1]<mf[0]||pf[0]>mf[1]){if(s=!1,a)return s;var c=Math.abs(mf[0]-pf[1]),f=Math.abs(pf[0]-mf[1]);Math.min(c,f)>i.len()&&(c<f?Se.scale(i,u,-c*o):Se.scale(i,u,f*o))}else if(n){var c=Math.abs(mf[0]-pf[1]),f=Math.abs(pf[0]-mf[1]);Math.min(c,f)<n.len()&&(c<f?Se.scale(n,u,c*o):Se.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e})(),$m=Ehe});var zhe,Ahe,cq,fq=w(()=>{ae();Wc();dn();zhe=[],Ahe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ze(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(zhe)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(Ro),cq=Ahe});function Dhe(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=se(n.duration,200),c=se(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),te(f)&&(f=f(r,i)),te(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function qR(e,t,r,n,i,a,o){var s=!1,l;te(i)?(o=a,a=i,i=null):J(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Dhe(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,p=c.easing,m={duration:f,delay:d||0,easing:p,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,m):t.animateTo(r,m)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function et(e,t,r,n,i,a){qR("update",e,t,r,n,i,a)}function $t(e,t,r,n,i,a){qR("enter",e,t,r,n,i,a)}function Ps(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Bo(e,t,r,n,i,a){Ps(e)||qR("leave",e,t,r,n,i,a)}function dq(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Bo(e,{style:{opacity:0}},t,r,n)}function hf(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||dq(i,t,r,n)}):dq(e,t,r,n)}function Um(e){Che(e).oldStyle=e.style}var Che,By=w(()=>{I();Ae();Che=De()});var Kt={};bn(Kt,{Arc:()=>Vy,BezierCurve:()=>df,BoundingRect:()=>ze,Circle:()=>$y,CompoundPath:()=>sE,Ellipse:()=>UR,Group:()=>Ye,Image:()=>pn,IncrementalDisplayable:()=>cq,Line:()=>Ii,LinearGradient:()=>uE,OrientedBoundingRect:()=>$m,Path:()=>me,Point:()=>Se,Polygon:()=>HR,Polyline:()=>ff,RadialGradient:()=>sq,Rect:()=>ct,Ring:()=>VR,Sector:()=>Fa,Text:()=>Pt,applyTransform:()=>hE,clipPointsByRect:()=>jhe,clipRectByRect:()=>Vhe,createIcon:()=>Zy,extendPath:()=>khe,extendShape:()=>Nhe,getShapeClass:()=>Mhe,getTransform:()=>Phe,groupTransition:()=>WR,initProps:()=>$t,isElementRemoved:()=>Ps,lineLineIntersect:()=>gq,linePolygonIntersect:()=>Bhe,makeImage:()=>KR,makePath:()=>mE,mergePath:()=>Ihe,registerShape:()=>Ga,removeElement:()=>Bo,removeElementWithFadeOut:()=>hf,resizePath:()=>vq,setTooltipConfig:()=>jm,subPixelOptimize:()=>Lhe,subPixelOptimizeLine:()=>vf,subPixelOptimizeRect:()=>Rhe,transformDirection:()=>$he,traverseElements:()=>$s,updateProps:()=>et});function Nhe(e){return me.extend(e)}function khe(e,t){return Ohe(e,t)}function Ga(e,t){XR[e]=t}function Mhe(e){if(XR.hasOwnProperty(e))return XR[e]}function mE(e,t,r,n){var i=N8(e,t);return r&&(n==="center"&&(r=hq(r,i.getBoundingRect())),vq(i,r)),i}function KR(e,t,r){var n=new pn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(hq(t,a))}}});return n}function hq(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}function vq(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function vf(e,t){return Bw(e,e,{lineWidth:t}),e}function Rhe(e){return Zw(e.shape,e.shape,e.style),e}function Phe(e,t){for(var r=cm([]);e&&e!==t;)ws(r,e.getLocalTransform(),r),e=e.parent;return r}function hE(e,t,r){return t&&!gr(t)&&(t=ua.getLocalTransform(t)),r&&(t=Do([],t)),ur([],e,t)}function $he(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=hE(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function pq(e){return!e.isGroup}function Uhe(e){return e.shape!=null}function WR(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){pq(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Uhe(o)&&(s.shape=$({},o.shape)),s}var a=n(e);t.traverse(function(o){if(pq(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),et(o,l,r,we(o).dataIndex)}}})}function jhe(e,t){return H(e,function(r){var n=r[0];n=dE(n,t.x),n=pE(n,t.x+t.width);var i=r[1];return i=dE(i,t.y),i=pE(i,t.y+t.height),[n,i]})}function Vhe(e,t){var r=dE(e.x,t.x),n=pE(e.x+e.width,t.x+t.width),i=dE(e.y,t.y),a=pE(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Zy(e,t,r){var n=$({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),de(i,r),new pn(n)):mE(e.replace("path://",""),n,r,"center")}function Bhe(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(gq(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function gq(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=YR(c,f,l,u);if(Zhe(d))return!1;var p=e-i,m=t-a,h=YR(p,m,l,u)/d;if(h<0||h>1)return!1;var y=YR(p,m,c,f)/d;return!(y<0||y>1)}function YR(e,t,r,n){return e*n-r*t}function Zhe(e){return e<=1e-6&&e>=-1e-6}function jm(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=F(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&A(pe(l),function(c){Oi(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=we(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:de({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function mq(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function $s(e,t){if(e)if(V(e))for(var r=0;r<e.length;r++)mq(e[r],t);else mq(e,t)}var dE,pE,XR,Ohe,Ihe,Lhe,nt=w(()=>{M8();Es();cr();ar();Gc();sf();Lm();Cm();L8();$8();H8();G8();K8();J8();hR();eq();nq();aq();FR();oq();lq();dn();uq();rw();fq();Hw();I();ai();By();dE=Math.max,pE=Math.min,XR={};Ohe=O8;Ihe=k8;Lhe=uu;Ga("circle",$y);Ga("ellipse",UR);Ga("sector",Fa);Ga("ring",VR);Ga("polygon",HR);Ga("polyline",ff);Ga("rect",ct);Ga("line",Ii);Ga("bezierCurve",df);Ga("arc",Vy)});function Tq(e,t){for(var r=0;r<Lr.length;r++){var n=Lr[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function JR(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=te(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Lr.length;u++){var c=Lr[u],f=t[c];l[c]=se(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function va(e,t,r,n){r=r||vE;for(var i=e instanceof Pt,a=!1,o=0;o<km.length;o++){var s=t[km[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new Pt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=JR(r,t),c=t.normal,f=!!c.getShallow("show"),d=Us(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(yq(c,r,!1));for(var o=0;o<Lr.length;o++){var p=Lr[o],s=t[p];if(s){var m=l.ensureState(p),h=!!se(s.getShallow("show"),f);if(h!==f&&(m.ignore=!h),m.style=Us(s,n&&n[p],r,!0,!i),m.style.text=u[p],!i){var y=e.ensureState(p);y.textConfig=yq(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(js(l).setLabelText=function(v){var g=JR(r,t,v);Tq(l,g)})}else l&&(l.ignore=!0);e.dirty()}function si(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Lr.length;n++){var i=Lr[n];r[i]=e.getModel([i,t])}return r}function Us(e,t,r,n,i){var a={};return Hhe(a,e,r,n,i),t&&$(a,t),a}function yq(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=se(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Hhe(e,t,r,n,i){r=r||vE;var a=t.ecModel,o=a&&a.option.textStyle,s=Fhe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Sq(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Sq(e,t,o,r,n,i,!0,!1)}function Fhe(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||vE).rich;if(r){t=t||{};for(var n=pe(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}function Sq(e,t,r,n,i,a,o,s){r=!i&&r||vE;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=se(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=se(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=se(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var m=se(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var h=0;h<_q.length;h++){var y=_q[h],v=se(t.getShallow(y),r[y]);v!=null&&(e[y]=v)}for(var h=0;h<bq.length;h++){var y=bq[h],v=t.getShallow(y);v!=null&&(e[y]=v)}if(e.verticalAlign==null){var g=t.getShallow("baseline");g!=null&&(e.verticalAlign=g)}if(!o||!n.disableBox){for(var h=0;h<xq.length;h++){var y=xq[h],v=t.getShallow(y);v!=null&&(e[y]=v)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function wq(e,t){var r=t&&t.getModel("textStyle");return Jr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}function Eq(e,t,r,n){if(e){var i=js(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function zq(e,t,r,n,i){var a=js(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=se(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=Ww(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=JR({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);Tq(e,d)}e.percent=0,(a.prevValue==null?$t:et)(e,{percent:1},n,t,null,u)}var vE,_q,bq,xq,js,Ri=w(()=>{Cm();I();ha();Ae();nt();vE={};_q=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bq=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xq=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];js=De()});var Ghe,QR,e2,qhe,Aq,Cq=w(()=>{Ri();Cm();Ghe=["textStyle","color"],QR=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],e2=new Pt,qhe=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Ghe):null)},e.prototype.getFont=function(){return wq({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<QR.length;n++)r[QR[n]]=this.getShallow(QR[n]);return e2.useStyle(r),e2.update(),e2.getBoundingRect()},e})(),Aq=qhe});var t2,Yhe,Dq,r2=w(()=>{sy();t2=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Yhe=Co(t2),Dq=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Yhe(this,t)},e})()});var n2,Xhe,Nq,i2=w(()=>{sy();n2=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Xhe=Co(n2),Nq=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Xhe(this,t,r)},e})()});var gf,ht,Li=w(()=>{Qr();Ao();pG();Cq();r2();i2();I();gf=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a]},e.prototype.mergeOption=function(t,r){Qe(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(_e(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ye.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();lm(gf);fG(gf);Ir(gf,Dq);Ir(gf,Nq);Ir(gf,dG);Ir(gf,Aq);ht=gf});function Hy(e){return e==null?0:e.length||1}function Oq(e){return e}var Khe,kq,Mq=w(()=>{Khe=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Oq,this._newKeyGetter=i||Oq,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Hy(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=Hy(u),d=Hy(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var p=0;p<f;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Hy(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Hy(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e})(),kq=Khe});var gE,Pr,$r,Ln,Pi,$i,a2,ga,Vs,Zo=w(()=>{I();gE=oe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Pr="original",$r="arrayRows",Ln="objectRows",Pi="keyedColumns",$i="typedArray",a2="unknown",ga="column",Vs="row"});function Rq(e){Iq(e).datasetMap=oe()}function Lq(e,t,r){var n={},i=yE(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Iq(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),A(e,function(h,y){var v=J(h)?h:e[y]={name:h};v.type==="ordinal"&&c==null&&(c=y,f=m(v)),n[v.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});A(e,function(h,y){var v=h.name,g=m(h);if(c==null){var _=d.valueWayDim;p(n[v],_,g),p(o,_,g),d.valueWayDim+=g}else if(c===y)p(n[v],0,g),p(a,0,g);else{var _=d.categoryWayDim;p(n[v],_,g),p(o,_,g),d.categoryWayDim+=g}});function p(h,y,v){for(var g=0;g<v;g++)h.push(y+g)}function m(h){var y=h.dimsDef;return y?y.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Pq(e,t,r){var n={},i=yE(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ln||a===Pi)&&A(o,function(c,f){(J(c)?c.name:c)==="name"&&(s=f)});var l=(function(){for(var c={},f={},d=[],p=0,m=Math.min(5,r);p<m;p++){var h=Uq(t.data,a,t.seriesLayoutBy,o,t.startIndex,p);d.push(h);var y=h===wr.Not;if(y&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!y&&d[c.n]===wr.Not)&&(c.n=p),v(c)&&d[c.n]!==wr.Not)return c;y||(h===wr.Might&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v)&&(f.n=p))}function v(g){return g.v!=null&&g.n!=null}return v(c)?c:v(f)?f:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function yE(e){var t=e.get("data",!0);if(!t)return fu(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},mn).models[0]}function $q(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:fu(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},mn).models}function _E(e,t){return Uq(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Uq(e,t,r,n,i,a){var o,s=5;if(nr(e))return wr.Not;var l,u;if(n){var c=n[a];J(c)?(l=c.name,u=c.type):F(c)&&(l=c)}if(u!=null)return u==="ordinal"?wr.Must:wr.Not;if(t===$r){var f=e;if(r===Vs){for(var d=f[a],p=0;p<(d||[]).length&&p<s;p++)if((o=b(d[i+p]))!=null)return o}else for(var p=0;p<f.length&&p<s;p++){var m=f[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===Ln){var h=e;if(!l)return wr.Not;for(var p=0;p<h.length&&p<s;p++){var y=h[p];if(y&&(o=b(y[l]))!=null)return o}}else if(t===Pi){var v=e;if(!l)return wr.Not;var d=v[l];if(!d||nr(d))return wr.Not;for(var p=0;p<d.length&&p<s;p++)if((o=b(d[p]))!=null)return o}else if(t===Pr)for(var g=e,p=0;p<g.length&&p<s;p++){var y=g[p],_=ks(y);if(!V(_))return wr.Not;if((o=b(_[a]))!=null)return o}function b(x){var S=F(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return S?wr.Might:wr.Not;if(S&&x!=="-")return wr.Must}return wr.Not}var wr,Iq,yf=w(()=>{Ae();I();Zo();wr={Must:1,Might:2,Not:3},Iq=De()});function Vm(e){return e instanceof bE}function Fy(e,t,r){r=r||o2(e);var n=t.seriesLayoutBy,i=Whe(e,r,n,t.sourceHeader,t.dimensions),a=new bE({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:_e(t)});return a}function Bm(e){return new bE({data:e,sourceFormat:nr(e)?$i:Pr})}function Bq(e){return new bE({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:_e(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function o2(e){var t=a2;if(nr(e))t=$i;else if(V(e)){e.length===0&&(t=$r);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(V(i)||nr(i)){t=$r;break}else if(J(i)){t=Ln;break}}}}else if(J(e)){for(var a in e)if(Oi(e,a)&&gr(e[a])){t=Pi;break}}return t}function Whe(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:jq(i),startIndex:o,dimensionsDetectedCount:a};if(t===$r){var s=e;n==="auto"||n==null?Vq(function(u){u!=null&&u!=="-"&&(F(u)?o==null&&(o=1):o=0)},r,s,10):o=ve(n)?n:n?1:0,!i&&o===1&&(i=[],Vq(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Vs?s.length:s[0]?s[0].length:null}else if(t===Ln)i||(i=Jhe(e));else if(t===Pi)i||(i=[],A(e,function(u,c){i.push(c)}));else if(t===Pr){var l=ks(e[0]);a=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jq(i),dimensionsDetectedCount:a}}function Jhe(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return pe(r)}function jq(e){if(e){var t=oe();return H(e,function(r,n){r=J(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Vq(e,t,r,n){if(t===Vs)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function xE(e){var t=e.sourceFormat;return t===Ln||t===Pi}var bE,Bs=w(()=>{I();Zo();Ae();yf();bE=(function(){function e(t){this.data=t.data||(t.sourceFormat===Pi?{}:[]),this.sourceFormat=t.sourceFormat||a2,this.seriesLayoutBy=t.seriesLayoutBy||ga,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&_E(this,n)===wr.Must&&(i.type="ordinal")}}return e})()});function l2(e,t){var r=Qhe[f2(e,t)];return r}function u2(e,t){var r=eve[f2(e,t)];return r}function c2(e){var t=tve[e];return t}function f2(e,t){return e===$r?e+"_"+t:e}function Zs(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return c2(a)(n,o,s)}else{var l=n;return a===Pr&&(l=ks(n)),l}}}}var _f,bf,xf,Zq,Hq,SE,Fq,Qhe,Gq,eve,s2,tve,Sf=w(()=>{I();Ae();Bs();Zo();SE=(function(){function e(t,r){var n=Vm(t)?t:Bm(t);this._source=n;var i=this._data=n.data;n.sourceFormat===$i&&(this._offset=0,this._dimSize=r,this._data=i),Hq(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;Hq=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=Zq[f2(u,c)];if($(o,p),u===$i)o.getItem=r,o.count=i,o.fillStorage=n;else{var m=l2(u,c);o.getItem=Oe(m,null,s,f,d);var h=u2(u,c);o.count=Oe(h,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var p=u[d],m=p[0]==null?1/0:p[0],h=p[1]==null?-1/0:p[1],y=s-o,v=l[d],g=0;g<y;g++){var _=c[g*f+d];v[o+g]=_,_<m&&(m=_),_>h&&(h=_)}p[0]=m,p[1]=h}},i=function(){return this._data?this._data.length/this._dimSize:0};Zq=(t={},t[$r+"_"+ga]={pure:!0,appendData:a},t[$r+"_"+Vs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ln]={pure:!0,appendData:a},t[Pi]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Pr]={appendData:a},t[$i]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),Fq=function(e,t,r,n){return e[n]},Qhe=(_f={},_f[$r+"_"+ga]=function(e,t,r,n){return e[n+t]},_f[$r+"_"+Vs]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},_f[Ln]=Fq,_f[Pi]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},_f[Pr]=Fq,_f);Gq=function(e,t,r){return e.length},eve=(bf={},bf[$r+"_"+ga]=function(e,t,r){return Math.max(0,e.length-t)},bf[$r+"_"+Vs]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},bf[Ln]=Gq,bf[Pi]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},bf[Pr]=Gq,bf);s2=function(e,t,r){return e[t]},tve=(xf={},xf[$r]=s2,xf[Ln]=function(e,t,r){return e[r]},xf[Pi]=s2,xf[Pr]=function(e,t,r){var n=ks(e);return n instanceof Array?n[t]:n},xf[$i]=s2,xf)});function qq(e,t){var r={},n=r.encode={},i=oe(),a=[],o=[],s={};A(e.dimensions,function(d){var p=e.getDimensionInfo(d),m=p.coordDim;if(m){var h=p.coordDimIndex;d2(n,m)[h]=d,p.isExtraCoord||(i.set(m,1),nve(p.type)&&(a[0]=d),d2(s,m)[h]=e.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}gE.each(function(y,v){var g=d2(n,v),_=p.otherDims[v];_!=null&&_!==!1&&(g[_]=p.name)})});var l=[],u={};i.each(function(d,p){var m=n[p];u[p]=m[0],l=l.concat(m)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=H(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new rve(s,t),r}function d2(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Yq(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function nve(e){return!(e==="ordinal"||e==="time")}var rve,p2=w(()=>{I();Zo();rve=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})()});var ive,Zm,m2=w(()=>{I();ive=(function(){function e(t){this.otherDims={},t!=null&&$(this,t)}return e})(),Zm=ive});function Hm(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ve(e)&&e!=null&&e!=="-"&&(e=+Mi(e)),e==null||e===""?NaN:Number(e))}var S2e,ave,T2e,Xq,w2e,TE=w(()=>{Ct();I();Xw();S2e=oe({number:function(e){return parseFloat(e)},time:function(e){return+Mi(e)},trim:function(e){return F(e)?Jr(e):e}}),ave={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},T2e=(function(){function e(t,r){if(!ve(r)){var n="";Rr(n)}this._opFn=ave[t],this._rvalFloat=jo(r)}return e.prototype.evaluate=function(t){return ve(t)?this._opFn(t,this._rvalFloat):this._opFn(jo(t),this._rvalFloat)},e})(),Xq=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ve(t)?t:jo(t),i=ve(r)?r:jo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=F(t),l=F(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})(),w2e=(function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=jo(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=jo(t)===this._rvalFloat)}return this._isEQ?r:!r},e})()});function Fm(e){return e>65535?ove:sve}function Gm(){return[1/0,-1/0]}function lve(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Wq(e,t,r,n,i){var a=Jq[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var wE,ove,sve,v2,Kq,Jq,h2,uve,Gy,EE=w(()=>{I();TE();Bs();wE="undefined",ove=typeof Uint32Array===wE?Array:Uint32Array,sve=typeof Uint16Array===wE?Array:Uint16Array,v2=typeof Int32Array===wE?Array:Int32Array,Kq=typeof Float64Array===wE?Array:Float64Array,Jq={float:Kq,int:v2,ordinal:Array,number:Array,time:Kq};uve=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=oe()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=h2[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=xE(i);this._dimensions=H(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new Jq[r||"float"](this._rawCount),this._rawExtent[a]=Gm(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Gm());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];Wq(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,m=0;m<a;m++){var c=i[m],h=h2.arrayRows.call(this,t[p]||f,c.property,p,m);n[m][d]=h;var y=o[m];h<y[0]&&(y[0]=h),h>y[1]&&(y[1]=h)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=H(o,function(g){return g.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Gm()),Wq(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],p=t;p<r;p++){d=i.getItem(p,d);for(var m=0;m<s;m++){var h=a[m],y=this._dimValueGetter(d,u[m],p,m);h[p]=y;var v=l[m];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),p=r-a[d],m=Math.abs(p);m<=n&&((m<s||m===s&&p>=0&&l<0)&&(s=m,l=p,u=0),p===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Fm(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Fm(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var p=void 0,m=n.getRawIndex(d);if(l===0)p=r(d);else if(l===1){var h=f[c][m];p=r(h,d)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][m];s[y]=d,p=r.apply(null,s)}p&&(o[u++]=m)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=pe(t),a=i.length;if(!a)return this;var o=r.count(),s=Fm(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],p=r._chunks,m=!1;if(!r._indices){var h=0;if(a===1){for(var y=p[i[0]],v=0;v<n;v++){var g=y[v];(g>=f&&g<=d||isNaN(g))&&(l[u++]=h),h++}m=!0}else if(a===2){for(var y=p[i[0]],_=p[i[1]],b=t[i[1]][0],x=t[i[1]][1],v=0;v<n;v++){var g=y[v],S=_[v];(g>=f&&g<=d||isNaN(g))&&(S>=b&&S<=x||isNaN(S))&&(l[u++]=h),h++}m=!0}}if(!m)if(a===1)for(var v=0;v<o;v++){var T=r.getRawIndex(v),g=p[i[0]][T];(g>=f&&g<=d||isNaN(g))&&(l[u++]=T)}else for(var v=0;v<o;v++){for(var E=!0,T=r.getRawIndex(v),z=0;z<a;z++){var C=i[z],g=p[C][T];(g<t[C][0]||g>t[C][1])&&(E=!1)}E&&(l[u++]=r.getRawIndex(v))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Gm();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),p=0;p<o;p++)l[p]=i[r[p]][d];l[o]=f;var m=n&&n.apply(null,l);if(m!=null){typeof m!="object"&&(a[0]=m,m=a);for(var c=0;c<m.length;c++){var h=r[c],y=m[c],v=u[h],g=i[h];g&&(g[d]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,p=new(Fm(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[s++]=u;for(var m=1;m<o-1;m+=l){for(var h=Math.min(m+l,o-1),y=Math.min(m+l*2,o),v=(y+h)/2,g=0,_=h;_<y;_++){var b=this.getRawIndex(_),x=a[b];isNaN(x)||(g+=x)}g/=y-h;var S=m,T=Math.min(m+l,o),E=m-1,z=a[u];c=-1,d=S;for(var C=-1,D=0,_=S;_<T;_++){var b=this.getRawIndex(_),x=a[b];if(isNaN(x)){D++,C<0&&(C=b);continue}f=Math.abs((E-v)*(x-z)-(E-_)*(g-z)),f>c&&(c=f,d=b)}D>0&&D<T-S&&(p[s++]=Math.min(C,d),d=Math.max(C,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(o-1),n._count=s,n._indices=p,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),l=new(Fm(this._rawCount))(Math.ceil(s/a)*2),u=0,c=0;c<s;c+=a){var f=c,d=o[this.getRawIndex(f)],p=c,m=o[this.getRawIndex(p)],h=a;c+a>s&&(h=s-c);for(var y=0;y<h;y++){var v=this.getRawIndex(c+y),g=o[v];g<d&&(d=g,f=c+y),g>m&&(m=g,p=c+y)}var _=this.getRawIndex(f),b=this.getRawIndex(p);f<p?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=Gm(),d=new(Fm(this._rawCount))(Math.ceil(c/l)),p=0,m=0;m<c;m+=l){l>c-m&&(l=c-m,s.length=l);for(var h=0;h<l;h++){var y=this.getRawIndex(m+h);s[h]=u[y]}var v=n(s),g=this.getRawIndex(Math.min(m+i(s,v)||0,c-1));u[g]=v,v<f[0]&&(f[0]=v),v>f[1]&&(f[1]=v),d[p++]=g}return a._count=p,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Gm();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Ni(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?lve(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=_e(this._extent),t._rawExtent=_e(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,i,a){return Hm(r[a],this._dimensions[a])}h2={arrayRows:t,objectRows:function(r,n,i,a){return Hm(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Hm(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),Gy=uve});function zE(e){return e instanceof g2}function y2(e){for(var t=oe(),r=0;r<(e||[]).length;r++){var n=e[r],i=J(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function _2(e){var t=cve(e);return t.dimNameMap||(t.dimNameMap=y2(e.dimensionsDefine))}function b2(e){return e>30}var cve,fve,g2,AE=w(()=>{I();Ae();Bs();cve=De(),fve={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g2=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_2(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return se(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=xE(this.source),n=!b2(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=fve[u]||"f",c&&(i+=c.uid),i+="$"}var p=this.source,m=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:a,hash:m}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})()});var qy,mu,dve,pve,Qq,mve,hve,eY,CE,Yy,Xy,x2,Ky,S2,vve,qa,qm=w(()=>{I();Li();Mq();Sf();p2();m2();Zo();Ae();ai();Bs();EE();AE();qy=J,mu=H,dve=typeof Int32Array>"u"?Array:Int32Array,pve="e\0\0",Qq=-1,mve=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],hve=["_approximateExtent"],vve=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;zE(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=F(f)?new Zm({name:f}):f instanceof Zm?f:new Zm(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var m=d.otherDims=d.otherDims||{};o.push(p),a[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),m.itemName===0&&(this._nameDimIdx=c),m.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var h=this._dimIdxToName=oe();A(o,function(y){h.set(a[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ve(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Gy&&(a=t),!a){var o=this.dimensions,s=Vm(t)||gr(t)?new SE(t,o.length):t;a=new Gy;var l=mu(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=qq(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&S2(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==$i&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pr;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&X9(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=rn(d,null));var p=f.id;o[c]==null&&p!=null&&(o[c]=rn(p,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)S2(this,c);eY(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){qy(t)?$(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Yy(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return CE(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return V(t)?i.getValues(mu(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?Qq:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){"use strict";te(t)&&(n=r,r=t,t=[]);var i=n||this,a=mu(Xy(t),this._getStoreDimIndex,this);this._store.each(a,i?Oe(r,i):r)},e.prototype.filterSelf=function(t,r,n){"use strict";te(t)&&(n=r,r=t,t=[]);var i=n||this,a=mu(Xy(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Oe(r,i):r),this},e.prototype.selectRange=function(t){"use strict";var r=this,n={},i=pe(t),a=[];return A(i,function(o){var s=r._getStoreDimIndex(o);n[s]=t[o],a.push(s)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){"use strict";te(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){"use strict";var a=n||i||this,o=mu(Xy(t),this._getStoreDimIndex,this),s=Ky(this);return s._store=this._store.map(o,a?Oe(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=this,o=n||i||this,s=mu(Xy(t),this._getStoreDimIndex,this);this._store.modify(s,o?Oe(r,o):r)},e.prototype.downSample=function(t,r,n,i){var a=Ky(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Ky(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Ky(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new ht(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new kq(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return CE(t,n)},function(n){return CE(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},qy(t)?$(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),V(a)?a=a.slice():qy(a)&&(a=$({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,qy(r)?$(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){qy(t)?$(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?$(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;t8(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){A(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:mu(this.dimensions,this._getDimInfo,this),this.hostModel)),x2(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];te(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(KT(arguments)))})},e.internalField=(function(){eY=function(t){var r=t._invertedIndicesMap;A(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new dve(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Qq;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Yy=function(t,r,n){return rn(t._getCategory(r,n),null)},CE=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Yy(t,t._idDimIdx,r)),n==null&&(n=pve+r),n},Xy=function(t){return V(t)||(t=t!=null?[t]:[]),t},Ky=function(t){var r=new e(t._schema?t._schema:mu(t.dimensions,t._getDimInfo,t),t.hostModel);return x2(r,t),r},x2=function(t,r){A(mve.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,A(hve,function(n){t[n]=_e(r[n])}),t._calculationInfo=$({},r._calculationInfo)},S2=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Yy(t,a,r)),l==null&&o!=null&&(i[r]=l=Yy(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}})(),e})(),qa=vve});function Hs(e,t){Vm(e)||(e=Bm(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=oe(),a=[],o=yve(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&b2(o),l=n===e.dimensionsDefine,u=l?_2(e):y2(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=oe(c),d=new v2(o),p=0;p<d.length;p++)d[p]=-1;function m(z){var C=d[z];if(C<0){var D=n[z],O=J(D)?D:{name:D},k=new Zm,R=O.name;R!=null&&u.get(R)!=null&&(k.name=k.displayName=R),O.type!=null&&(k.type=O.type),O.displayName!=null&&(k.displayName=O.displayName);var j=a.length;return d[z]=j,k.storeDimIndex=z,a.push(k),k}return a[C]}if(!s)for(var p=0;p<o;p++)m(p);f.each(function(z,C){var D=Gt(z).slice();if(D.length===1&&!F(D[0])&&D[0]<0){f.set(C,!1);return}var O=f.set(C,[]);A(D,function(k,R){var j=F(k)?u.get(k):k;j!=null&&j<o&&(O[R]=j,y(m(j),C,R))})});var h=0;A(r,function(z){var C,D,O,k;if(F(z))C=z,k={};else{k=z,C=k.name;var R=k.ordinalMeta;k.ordinalMeta=null,k=$({},k),k.ordinalMeta=R,D=k.dimsDef,O=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var j=f.get(C);if(j!==!1){if(j=Gt(j),!j.length)for(var Z=0;Z<(D&&D.length||1);Z++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&j.push(h++)}A(j,function(Q,G){var K=m(Q);if(l&&k.type!=null&&(K.type=k.type),y(de(K,k),C,G),K.name==null&&D){var ie=D[G];!J(ie)&&(ie={name:ie}),K.name=K.displayName=ie.name,K.defaultTooltip=ie.defaultTooltip}O&&de(K.otherDims,O)})}});function y(z,C,D){gE.get(C)!=null?z.otherDims[C]=D:(z.coordDim=C,z.coordDimIndex=D,i.set(C,!0))}var v=t.generateCoord,g=t.generateCoordCount,_=g!=null;g=v?g||1:0;var b=v||"value";function x(z){z.name==null&&(z.name=z.coordDim)}if(s)A(a,function(z){x(z)}),a.sort(function(z,C){return z.storeDimIndex-C.storeDimIndex});else for(var S=0;S<o;S++){var T=m(S),E=T.coordDim;E==null&&(T.coordDim=_ve(b,i,_),T.coordDimIndex=0,(!v||g<=0)&&(T.isExtraCoord=!0),g--),x(T),T.type==null&&(_E(e,S)===wr.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return gve(a),new g2({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function gve(e){for(var t=oe(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function yve(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return A(t,function(a){var o;J(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function _ve(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Wy=w(()=>{Zo();m2();I();Bs();EE();Ae();yf();AE()});var T2,bve,Tf,DE=w(()=>{I();T2={},bve=(function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];A(T2,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){A(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){T2[t]=r},e.get=function(t){return T2[t]},e})(),Tf=bve});function tY(e){var t=e.get("coordinateSystem"),r=new xve(t),n=Sve[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}function Ym(e){return e.get("type")==="category"}var xve,Sve,rY=w(()=>{I();Ae();xve=(function(){function e(t){this.coordSysDims=[],this.axisMap=oe(),this.categoryAxisMap=oe(),this.coordSysName=t}return e})();Sve={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",mn).models[0],a=e.getReferringComponents("yAxis",mn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Ym(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Ym(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",mn).models[0];t.coordSysDims=["single"],r.set("single",i),Ym(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",mn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Ym(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Ym(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Ym(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}}});function nY(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Tve(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(A(a,function(g,_){F(g)&&(a[_]=g={name:g}),l&&!g.isExtraCoord&&(!n&&!u&&g.ordinalMeta&&(u=g),!c&&g.type!=="ordinal"&&g.type!=="time"&&(!i||i===g.coordDim)&&(c=g))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,m=c.type,h=0;A(a,function(g){g.coordDim===p&&h++});var y={name:f,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},v={name:d,coordDim:d,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,m),v.storeDimIndex=s.ensureCalculationDimension(f,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(v)):(a.push(y),a.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Tve(e){return!zE(e.schema)}function Fs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function iY(e,t){return Fs(e,t)?e.getCalculationInfo("stackResultDimension"):t}var Xm=w(()=>{I();AE()});function wve(e,t){var r=e.get("coordinateSystem"),n=Tf.get(r),i;return t&&t.coordSysDims&&(i=H(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=Yq(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Eve(e,t,r){var n,i;return r&&A(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function zve(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Bm(e)):(i=n.getSource(),a=i.sourceFormat===Pr);var o=tY(t),s=wve(t,o),l=r.useEncodeDefaulter,u=te(l)?l:l?qe(Lq,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Hs(i,c),d=Eve(f.dimensions,r.createInvertedIndices,o),p=a?null:n.getSharedDataStore(f),m=nY(t,{schema:f,store:p}),h=new qa(f,t);h.setCalculationInfo(m);var y=d!=null&&Ave(i)?function(v,g,_,b){return b===d?_:this.defaultDimValueGetter(v,g,_,b)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,y),h}function Ave(e){if(e.sourceFormat===Pr){var t=Cve(e.data||[]);return!V(ks(t))}}function Cve(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var hu,Jy=w(()=>{I();qm();Wy();p2();Ae();DE();rY();Bs();Xm();yf();Zo();hu=zve});function vu(e){return[e||"",Dve++].join("_")}function aY(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Qn(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Qn(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function oY(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(A(a,function(g){d[g]=!0});f.length;){var p=f.pop(),m=c[p],h=!!d[p];h&&(s.call(l,p,m.originalDeps.slice()),delete d[p]),A(m.successor,h?v:y)}A(d,function(){var g="";throw new Error(g)});function y(g){c[g].entryCount--,c[g].entryCount===0&&f.push(g)}function v(g){d[g]=!0,y(g)}};function r(a){var o={},s=[];return A(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),A(f,function(d){Ne(u.predecessor,d)<0&&u.predecessor.push(d);var p=n(o,d);Ne(p.successor,d)<0&&p.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){Ne(o,l)>=0&&s.push(l)}),s}}function NE(e,t){return Qe(Qe({},e,!0),t,!0)}var Dve,wf=w(()=>{I();Ao();Dve=Math.round(Math.random()*10)});function E2(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Nve);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var m=1<<d;m&i||(f+=(p%2?-1:1)*e[r][d]*E2(e,t-1,c,u,i|m,a),p++)}return a[o]=f,f}function z2(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=E2(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*E2(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var Nve,sY=w(()=>{Nve=Math.log(2)});function uY(e,t,r,n,i){return OE(A2,t,n,i,!0)&&OE(e,r,A2[0],A2[1])}function OE(e,t,r,n,i){if(t.getBoundingClientRect&&ye.domSupported&&!C2(t)){var a=t[lY]||(t[lY]={}),o=Ove(t,a),s=kve(o,a,i);if(s)return s(e,r,n),!0}return!1}function Ove(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function kve(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;o.push(d,p),l=l&&a&&d===a[f]&&p===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?z2(s,o):z2(o,s))}function C2(e){return e.nodeName.toUpperCase()==="CANVAS"}function Er(e){return e==null?"":(e+"").replace(Mve,function(t,r){return Ive[r]})}var lY,A2,Mve,Ive,Qy=w(()=>{Qr();sY();lY="___zrEVENTSAVED",A2=[];Mve=/([&<>"'])/g,Ive={"&":"&","<":"<",">":">",'"':""","'":"'"}});var cY,fY=w(()=>{cY={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}});var dY,pY=w(()=>{dY={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}}});function mY(e,t){e=e.toUpperCase(),N2[e]=new ht(t),kE[e]=t}function hY(e){if(F(e)){var t=kE[e.toUpperCase()]||{};return e===ME||e===D2?_e(t):Qe(_e(t),_e(kE[Km]),!1)}else return Qe(_e(e),_e(kE[Km]),!1)}function vY(e){return N2[e]}function gY(){return N2[Km]}var ME,D2,Km,kE,N2,IE,O2=w(()=>{Li();Qr();fY();pY();I();ME="ZH",D2="EN",Km=D2,kE={},N2={},IE=ye.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Km).toUpperCase();return e.indexOf(ME)>-1?ME:Km})():Km;mY(D2,cY);mY(ME,dY)});function Gs(e,t){return e+="","0000".substr(0,t-e.length)+e}function zf(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function yY(e){return e===zf(e)}function _Y(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Af(e,t,r,n){var i=Mi(e),a=i[$E(r)](),o=i[Ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[t_(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Wm(r)](),f=(c-1)%12+1,d=i[r_(r)](),p=i[n_(r)](),m=i[i_(r)](),h=c>=12?"pm":"am",y=h.toUpperCase(),v=n instanceof ht?n:vY(n||IE)||gY(),g=v.getModel("time"),_=g.get("month"),b=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,h+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Gs(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Gs(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Gs(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gs(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Gs(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Gs(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Gs(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Gs(m,3)).replace(/{S}/g,m+"")}function bY(e,t,r,n,i){var a=null;if(F(r))a=r;else if(te(r))a=r(e.value,t,{level:e.level});else{var o=$({},e_);if(e.level>0)for(var s=0;s<k2.length;++s)o[k2[s]]="{primary|"+o[k2[s]]+"}";var l=r?r.inherit===!1?r:de(r,o):o,u=xY(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=R2.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(V(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return Af(new Date(e.value),a,i,n)}function xY(e,t){var r=Mi(e),n=r[Ef(t)]()+1,i=r[t_(t)](),a=r[Wm(t)](),o=r[r_(t)](),s=r[n_(t)](),l=r[i_(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,p=d&&i===1,m=p&&n===1;return m?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function L2(e,t,r){var n=ve(e)?Mi(e):e;switch(t=t||xY(e,r),t){case"year":return n[$E(r)]();case"half-year":return n[Ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ef(r)]()+1)/4);case"month":return n[Ef(r)]();case"day":return n[t_(r)]();case"half-day":return n[Wm(r)]()/24;case"hour":return n[Wm(r)]();case"minute":return n[r_(r)]();case"second":return n[n_(r)]();case"millisecond":return n[i_(r)]()}}function $E(e){return e?"getUTCFullYear":"getFullYear"}function Ef(e){return e?"getUTCMonth":"getMonth"}function t_(e){return e?"getUTCDate":"getDate"}function Wm(e){return e?"getUTCHours":"getHours"}function r_(e){return e?"getUTCMinutes":"getMinutes"}function n_(e){return e?"getUTCSeconds":"getSeconds"}function i_(e){return e?"getUTCMilliseconds":"getMilliseconds"}function SY(e){return e?"setUTCFullYear":"setFullYear"}function P2(e){return e?"setUTCMonth":"setMonth"}function $2(e){return e?"setUTCDate":"setDate"}function U2(e){return e?"setUTCHours":"setHours"}function j2(e){return e?"setUTCMinutes":"setMinutes"}function V2(e){return e?"setUTCSeconds":"setSeconds"}function B2(e){return e?"setUTCMilliseconds":"setMilliseconds"}var LE,PE,Jm,Ui,M2,e_,RE,I2,k2,R2,UE=w(()=>{I();Ct();O2();Li();LE=1e3,PE=LE*60,Jm=PE*60,Ui=Jm*24,M2=Ui*365,e_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},RE="{yyyy}-{MM}-{dd}",I2={year:"{yyyy}",month:"{yyyy}-{MM}",day:RE,hour:RE+" "+e_.hour,minute:RE+" "+e_.minute,second:RE+" "+e_.second,millisecond:e_.none},k2=["year","month","day","hour","minute","second","millisecond"],R2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"]});function H2(e){if(!bR(e))return F(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function jE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function VE(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Jr(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Mi(e):e;if(isNaN(+l)){if(s)return"-"}else return Af(l,n,r)}if(t==="ordinal")return oy(e)?i(e):ve(e)&&a(e)?e+"":"-";var u=jo(e);return a(u)?H2(u):oy(e)?i(e):typeof e=="boolean"?e+"":"-"}function BE(e,t,r){V(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=TY[a];e=e.replace(Z2(o),Z2(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Z2(TY[l],s),r?Er(u):u)}return e}function wY(e,t){var r=F(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Er(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Er(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Ya(e,t){return t=t||"transparent",F(e)?e:J(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var gu,TY,Z2,Xa=w(()=>{I();Qy();Ct();UE();gu=WT;TY=["a","b","c","d","e","f","g"],Z2=function(e,t){return"{"+e+(t??"")+"}"}});function F2(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),p,m;if(e==="horizontal"){var h=c.width+(d?-d.x+c.x:0);p=a+h,p>n||l.newline?(a=0,p=h,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);m=o+y,m>i||l.newline?(a+=s+r,o=0,m=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=p+r:o=m+r)})}function ji(e,t,r){r=gu(r||0);var n=t.width,i=t.height,a=Be(e.left,n),o=Be(e.top,i),s=Be(e.right,n),l=Be(e.bottom,i),u=Be(e.width,n),c=Be(e.height,i),f=r[2]+r[0],d=r[1]+r[3],p=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var m=new ze(a+r[3],o+r[0],u,c);return m.margin=r,m}function yu(e){var t=e.layoutMode||e.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function Ho(e,t,r){var n=r&&r.ignoreSize;!V(n)&&(n=[n,n]);var i=o(HE[0],0),a=o(HE[1],1);u(HE[0],e,i),u(HE[1],e,a);function o(c,f){var d={},p=0,m={},h=0,y=2;if(FE(c,function(_){m[_]=e[_]}),FE(c,function(_){s(t,_)&&(d[_]=m[_]=t[_]),l(d,_)&&p++,l(m,_)&&h++}),n[f])return l(t,c[1])?m[c[2]]=null:l(t,c[2])&&(m[c[1]]=null),m;if(h===y||!p)return m;if(p>=y)return d;for(var v=0;v<c.length;v++){var g=c[v];if(!s(d,g)&&s(e,g)){d[g]=e[g];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){FE(c,function(p){f[p]=d[p]})}}function _u(e){return Lve({},e)}function Lve(e,t){return t&&e&&FE(Rve,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var FE,Rve,HE,Cf,ZLe,HLe,ya=w(()=>{I();dn();Ct();Xa();FE=A,Rve=["left","right","top","bottom","width","height"],HE=[["width","left","right"],["height","top","bottom"]];Cf=F2,ZLe=qe(F2,"vertical"),HLe=qe(F2,"horizontal")});function $ve(e){var t=[];return A(Qm.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=H(t,function(r){return Qn(r).main}),e!=="dataset"&&Ne(t,"dataset")<=0&&t.unshift("dataset"),t}var Pve,Qm,ft,qs=w(()=>{ae();I();Li();wf();Ao();Ae();ya();Pve=De(),Qm=(function(e){L(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=vu("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=yu(this),a=i?_u(r):{},o=n.getTheme();Qe(r,o.get(this.mainType)),Qe(r,this.getDefaultOption()),i&&Ho(r,a,i)},t.prototype.mergeOption=function(r,n){Qe(this.option,r,!0);var i=yu(this);i&&Ho(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!cG(r))return r.defaultOption;var n=Pve(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Qe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return fu(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(ht);QT(Qm,ht);Jl(Qm);aY(Qm);oY(Qm,$ve);ft=Qm});function Uve(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function jve(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Uve(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Vve(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var EY,WLe,o_,G2=w(()=>{Ae();EY=De(),WLe=De(),o_=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Gt(this.get("color",!0)),a=this.get("colorLayer",!0);return jve(this,EY,i,a,t,r,n)},e.prototype.clearColorPalette=function(){Vve(this,EY)},e})()});function q2(e){var t,r;return J(e)?e.type&&(r=e):t=e,{text:t,frag:r}}var Bve,zY,Y2=w(()=>{I();Sf();Xa();Bve=/\{@(.+?)\}/g,zY=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",p=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&V(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(te(a))return l.status=r,l.dimensionIndex=i,a(l);if(F(a)){var c=BE(a,l);return c.replace(Bve,function(f,d){var p=d.length,m=d;m.charAt(0)==="["&&m.charAt(p-1)==="]"&&(m=+m.slice(1,p-1));var h=Zs(s,t,m);if(o&&V(o.interpolatedValue)){var y=s.getDimensionIndex(m);y>=0&&(h=o.interpolatedValue[y])}return h!=null?h+"":""})}},e.prototype.getRawValue=function(t,r){return Zs(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})()});function bu(e){return new Zve(e)}var Zve,AY,GE=w(()=>{I();Zve=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(g){return!(g>=1)&&(g=1),g}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,m=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||p<m)){var h=this._progress;if(V(h))for(var y=0;y<h.length;y++)this._doProgress(h[y],p,m,l,u);else this._doProgress(h,p,m,l,u)}this._dueIndex=m;var v=this._settedOutputEnd!=null?this._settedOutputEnd:m;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){AY.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:AY.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),V(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),AY=(function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}})()});function Fve(e,t){var r=new Hve,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ga&&Rr(o);var s=[],l={},u=e.dimensionsDefine;if(u)A(u,function(h,y){var v=h.name,g={index:y,name:v,displayName:h.displayName};if(s.push(g),v!=null){var _="";Oi(l,v)&&Rr(_),l[v]=g}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=l2(i,ga);t.__isBuiltIn&&(r.getRawDataItem=function(h){return f(n,a,s,h)},r.getRawData=Oe(Gve,null,e)),r.cloneRawData=Oe(qve,null,e);var d=u2(i,ga);r.count=Oe(d,null,n,a,s);var p=c2(i);r.retrieveValue=function(h,y){var v=f(n,a,s,h);return m(v,y)};var m=r.retrieveValueFromItem=function(h,y){if(h!=null){var v=s[y];if(v)return p(h,y,v.name)}};return r.getDimensionInfo=Oe(Yve,null,s,l),r.cloneAllDimensionInfo=Oe(Xve,null,s),r}function Gve(e){var t=e.sourceFormat;if(!X2(t)){var r="";Rr(r)}return e.data}function qve(e){var t=e.sourceFormat,r=e.data;if(!X2(t)){var n="";Rr(n)}if(t===$r){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Ln){for(var i=[],a=0,o=r.length;a<o;a++)i.push($({},r[a]));return i}}function Yve(e,t,r){if(r!=null){if(ve(r)||!isNaN(r)&&!Oi(t,r))return e[r];if(Oi(t,r))return t[r]}}function Xve(e){return _e(e)}function DY(e){e=_e(e);var t=e.type,r="";t||Rr(r);var n=t.split(":");n.length!==2&&Rr(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,CY.set(t,e)}function NY(e,t,r){var n=Gt(e),i=n.length,a="";i||Rr(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Kve(l,t,r,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Kve(e,t,r,n){var i="";t.length||Rr(i),J(e)||Rr(i);var a=e.type,o=CY.get(a);o||Rr(i);var s=H(t,function(c){return Fve(c,o)}),l=Gt(o.transform({upstream:s[0],upstreamList:s,config:_e(e.config)}));if(0&&e.print)var u;return H(l,function(c,f){var d="";J(c)||Rr(d),c.data||Rr(d);var p=o2(c.data);X2(p)||Rr(d);var m,h=t[0];if(h&&f===0&&!c.dimensions){var y=h.startIndex;y&&(c.data=h.data.slice(0,y).concat(c.data)),m={seriesLayoutBy:ga,sourceHeader:y,dimensions:h.metaRawOption.dimensions}}else m={seriesLayoutBy:ga,sourceHeader:0,dimensions:c.dimensions};return Fy(c.data,m,null)})}function X2(e){return e===$r||e===Ln}var Hve,CY,K2=w(()=>{Zo();Ae();I();Sf();TE();Xw();Bs();Hve=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Hm(t,r)},e})();CY=oe()});function qE(e){return e.mainType==="series"}function OY(e){throw new Error(e)}var kY,MY=w(()=>{I();Bs();Zo();yf();K2();EE();Sf();kY=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(qE(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=nr(s)?$i:Pr,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=se(f.seriesLayoutBy,d.seriesLayoutBy)||null,m=se(f.sourceHeader,d.sourceHeader),h=se(f.dimensions,d.dimensions),y=p!==d.seriesLayoutBy||!!m!=!!d.sourceHeader||h;i=y?[Fy(s,{seriesLayoutBy:p,sourceHeader:m,dimensions:h},l)]:[]}else{var v=t;if(n){var g=this._applyTransform(r);i=g.sourceList,a=g.upstreamSignList}else{var _=v.get("source",!0);i=[Fy(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&OY(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&OY(f),s.push(c),l.push(u._getVersionSign())}),n?o=NY(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Bq(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];qE(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Gy,s.initData(new SE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(qE(t)){var r=yE(t);return r?[r.getSourceManager()]:[]}else return H($q(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(qE(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})()});function IY(e){var t=e.lineHeight;return t==null?Wve:"line-height:"+Er(t+"")+"px"}function RY(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Er(n+"")+"px;color:"+Er(r)+";font-weight:"+Er(i+""),valueStyle:"font-size:"+Er(o+"")+"px;color:"+Er(a)+";font-weight:"+Er(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function Ka(e,t){return t.type=e,t}function W2(e){return e.type==="section"}function LY(e){return W2(e)?ege:tge}function PY(e){if(W2(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return A(e.blocks,function(i){var a=PY(i);a>=t&&(t=a+ +(n&&(!a||W2(i)&&!i.noHeader)))}),t}return 0}function ege(e,t,r,n){var i=t.noHeader,a=rge(PY(t)),o=[],s=t.blocks||[];ir(!s||V(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Oi(u,l)){var c=new Xq(u[l],null);s.sort(function(h,y){return c.evaluate(h.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(h,y){var v=t.valueFormatter,g=LY(h)(v?$($({},e),{valueFormatter:v}):e,h,y>0?a.html:0,n);g!=null&&o.push(g)});var f=e.renderMode==="richText"?o.join(a.richText):J2(n,o.join(""),i?r:a.html);if(i)return f;var d=VE(t.header,"ordinal",e.useUTC),p=RY(n,e.renderMode).nameStyle,m=IY(n);return e.renderMode==="richText"?$Y(e,d,p)+a.richText+f:J2(n,'<div style="'+p+";"+m+';">'+Er(d)+"</div>"+f,r)}function tge(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=V(b)?b:[b],H(b,function(x,S){return VE(x,V(p)?p[S]:p,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":VE(l,"ordinal",u),p=t.valueType,m=o?[]:c(t.value,t.dataIndex),h=!s||!a,y=!s&&a,v=RY(n,i),g=v.nameStyle,_=v.valueStyle;return i==="richText"?(s?"":f)+(a?"":$Y(e,d,g))+(o?"":age(e,m,h,y,_)):J2(n,(s?"":f)+(a?"":nge(d,!s,g))+(o?"":ige(m,h,y,_)),r)}}function Q2(e,t,r,n,i,a){if(e){var o=LY(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function rge(e){return{html:Jve[e],richText:Qve[e]}}function J2(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=IY(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function nge(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Er(e)+"</span>"}function ige(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=V(e)?e:[e],'<span style="'+a+";"+n+'">'+H(e,function(o){return Er(o)}).join(" ")+"</span>"}function $Y(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function age(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function UY(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ya(n)}function YE(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Wve,Jve,Qve,XE,Df=w(()=>{Xa();I();TE();Ct();Wve="line-height:1";Jve=[0,10,20,30],Qve=["",`
|
|
60
|
+
`,`
|
|
61
|
+
|
|
62
|
+
`,`
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
`];XE=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=qw()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=wY({color:r,type:t,renderMode:n,markerId:i});return F(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};V(r)?A(r,function(a){return $(n,a)}):$(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})()});function KE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=V(s),u=UY(t,r),c,f,d,p;if(o>1||l&&!o){var m=oge(s,t,r,a,u);c=m.inlineValues,f=m.inlineValueTypes,d=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=c=Zs(i,r,a[0]),f=h.type}else p=c=l?s[0]:s;var y=Nm(t),v=y&&t.name||"",g=i.getName(r),_=n?v:g;return Ka("section",{header:v,noHeader:n||!y,sortParam:p,blocks:[Ka("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Jr(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function oge(e,t,r,n,i){var a=t.getData(),o=Ni(e,function(f,d,p){var m=a.getDimensionInfo(p);return f=f||m&&m.tooltip!==!1&&m.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(f){c(Zs(a,r,f),f)}):A(e,c);function c(f,d){var p=a.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(Ka("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var eL=w(()=>{I();Df();Sf();Ae()});function WE(e,t){return e.getName(t)||e.getId(t)}function jY(e){var t=e.name;Nm(e)||(e.name=lge(e)||t)}function lge(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function uge(e){return e.model.getRawData().count()}function cge(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),fge}function fge(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function VY(e,t){A(JT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,qe(dge,t))})}function dge(e,t){var r=tL(e);return r&&r.setOutputEnd((t||this).count()),t}function tL(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var xu,sge,JE,nn,Su=w(()=>{ae();I();Qr();Ae();qs();G2();Y2();ya();GE();Ao();MY();eL();xu=De();sge="__universalTransitionEnabled",JE=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=bu({count:uge,reset:cge}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=xu(this).sourceManager=new kY(this);a.prepareSource();var o=this.getInitialData(r,i);VY(o,this),this.dataTask.context.data=o,xu(this).dataBeforeProcessed=o,jY(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=yu(this),a=i?_u(r):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),Qe(r,n.getTheme().get(this.subType)),Qe(r,this.getDefaultOption()),lf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ho(r,a,i)},t.prototype.mergeOption=function(r,n){r=Qe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=yu(this);i&&Ho(this.option,r,i);var a=xu(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);VY(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xu(this).dataBeforeProcessed=o,jY(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!nr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&lf(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=tL(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return xu(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=tL(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}xu(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return oe(r)},t.prototype.getSourceManager=function(){return xu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return KE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ye.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=o_.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=WE(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=pe(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[WE(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[sge])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=WE(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var p=n[l-1],d=WE(r,p);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(p),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return ft.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(ft);Ir(JE,zY);Ir(JE,o_);QT(JE,ft);nn=JE});function bge(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Vi(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=KR(e.slice(8),new ze(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=mE(e.slice(7),{},new ze(t,r,n,i),o?"center":"cover"):l=new _ge({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=bge,a&&l.setColor(a),l}function s_(e){return V(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Nf(e,t){if(e!=null)return V(e)||(e=[e,e]),[Be(e[0],t[0])||0,Be(se(e[1],e[0]),t[1])||0]}var pge,mge,hge,vge,gge,yge,rL,_ge,Of=w(()=>{I();nt();dn();sa();Ct();pge=me.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),mge=me.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),hge=me.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),p=o*.6,m=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*p,l+s+d*p,r,n-m,r,n),e.bezierCurveTo(r,n-m,r-c+f*p,l+s+d*p,r-c,l+s),e.closePath()}}),vge=me.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),gge={line:Ii,rect:ct,roundRect:ct,square:ct,circle:$y,diamond:mge,pin:hge,arrow:vge,triangle:pge},yge={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},rL={};A(gge,function(e,t){rL[t]=new e});_ge=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Bc(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=rL[n];i||(n="rect",i=rL[n]),yge[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}})});var Sge,BY,ZY=w(()=>{ae();Jy();Su();Of();nt();Sge=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(0)var n;return hu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Ye,i=Vi("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Vi(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(nn),BY=Sge});function eh(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Zs(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Zs(e,t,r[o]));return a.join(" ")}}function QE(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!V(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var ez=w(()=>{Sf();I()});function wge(e,t){this.parent.drift(e,t)}var Tge,kf,tz=w(()=>{ae();Of();nt();ai();ha();ez();I();Ri();sf();By();Tge=(function(e){L(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Vi(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=wge,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Is(this.childAt(0))},t.prototype.downplay=function(){Rs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):et(d,p,s,n),Um(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,$t(d,p,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,p,m,h,y,v;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,p=a.blurScope,h=a.labelStatesModels,y=a.hoverScale,v=a.cursorStyle,m=a.emphasisDisabled),!a||r.hasItemOption){var g=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=g.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=g.getModel(["select","itemStyle"]).getItemStyle(),c=g.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),p=_.get("blurScope"),m=_.get("disabled"),h=si(g),y=_.getShallow("scale"),v=g.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=Nf(r.getItemVisual(n,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),v&&s.attr("cursor",v);var S=r.getItemVisual(n,"style"),T=S.fill;if(s instanceof pn){var E=s.style;s.useStyle($({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},S))}else s.__isEmptyBrush?s.useStyle($({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var z=r.getItemVisual(n,"liftZ"),C=this._z2;z!=null?C==null&&(this._z2=s.z2,s.z2+=z):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;va(s,h,{labelFetcher:l,labelDataIndex:n,defaultText:O,inheritColor:T,defaultOpacity:S.opacity});function O(j){return D?r.getName(j):eh(r,j)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var R=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;k.scaleX=this._sizeX*R,k.scaleY=this._sizeY*R,this.setSymbolScale(1),Za(this,d,p,m)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=we(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Bo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Bo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return s_(r.getItemVisual(n,"symbolSize"))},t})(Ye);kf=Tge});function nL(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function HY(e){return e!=null&&!J(e)&&(e={isIgnore:e}),e||{}}function FY(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:si(t),cursorStyle:t.get("cursor")}}var Ege,rz,iL=w(()=>{nt();tz();I();Ri();Ege=(function(){function e(t){this.group=new Ye,this._SymbolCtor=t||kf}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=HY(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=FY(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(nL(t,d,f,r)){var p=new o(t,f,l,u);p.setPosition(d),t.setItemGraphicEl(f,p),n.add(p)}}).update(function(f,d){var p=a.getItemGraphicEl(d),m=c(f);if(!nL(t,m,f,r)){n.remove(p);return}var h=t.getItemVisual(f,"symbol")||"circle",y=p&&p.getSymbolType&&p.getSymbolType();if(!p||y&&y!==h)n.remove(p),p=new o(t,f,l,u),p.setPosition(m);else{p.updateData(t,f,l,u);var v={x:m[0],y:m[1]};s?p.attr(v):et(p,v,i)}n.add(p),t.setItemGraphicEl(f,p)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=FY(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=HY(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(nL(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){$s(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e})(),rz=Ege});function nz(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=zge(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=H(e.dimensions,function(m){return t.mapDimension(m)}),d=!1,p=t.getCalculationInfo("stackResultDimension");return Fs(t,f[0])&&(d=!0,f[0]=p),Fs(t,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function zge(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:ve(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function iz(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}var aL=w(()=>{Xm();I()});function Bi(e){return V(e)?GY?new Float32Array(e):e:new Age(e)}var GY,Age,l_=w(()=>{I();GY=typeof Float32Array<"u",Age=GY?Float32Array:Array});function Cge(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function oL(e,t,r,n,i,a,o,s){for(var l=Cge(e,t),u=[],c=[],f=[],d=[],p=[],m=[],h=[],y=nz(i,t,o),v=e.getLayout("points")||[],g=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],x=!0,S=void 0,T=void 0;switch(b.cmd){case"=":S=b.idx*2,T=b.idx1*2;var E=v[S],z=v[S+1],C=g[T],D=g[T+1];(isNaN(E)||isNaN(z))&&(E=C,z=D),u.push(E,z),c.push(C,D),f.push(r[S],r[S+1]),d.push(n[T],n[T+1]),h.push(t.getRawIndex(b.idx1));break;case"+":var O=b.idx,k=y.dataDimsForPoint,R=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);T=O*2,u.push(R[0],R[1]),c.push(g[T],g[T+1]);var j=iz(y,i,t,O);f.push(j[0],j[1]),d.push(n[T],n[T+1]),h.push(t.getRawIndex(O));break;case"-":x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(dt,an){return h[dt]-h[an]});for(var Z=u.length,Q=Bi(Z),G=Bi(Z),K=Bi(Z),ie=Bi(Z),ce=[],_=0;_<m.length;_++){var fe=m[_],$e=_*2,tt=fe*2;Q[$e]=u[tt],Q[$e+1]=u[tt+1],G[$e]=c[tt],G[$e+1]=c[tt+1],K[$e]=f[tt],K[$e+1]=f[tt+1],ie[$e]=d[tt],ie[$e+1]=d[tt+1],ce[_]=p[fe]}return{current:Q,next:G,stackedOnCurrent:K,stackedOnNext:ie,status:ce}}var qY=w(()=>{aL();l_()});function Mf(e,t){return isNaN(e)||isNaN(t)}function sL(e,t,r,n,i,a,o,s,l){for(var u,c,f,d,p,m,h=r,y=0;y<n;y++){var v=t[h*2],g=t[h*2+1];if(h>=i||h<0)break;if(Mf(v,g)){if(l){h+=a;continue}break}if(h===r)e[a>0?"moveTo":"lineTo"](v,g),f=v,d=g;else{var _=v-u,b=g-c;if(_*_+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],T=t[x*2+1];S===v&&T===g&&y<n;)y++,x+=a,h+=a,S=t[x*2],T=t[x*2+1],v=t[h*2],g=t[h*2+1],_=v-u,b=g-c;var E=y+1;if(l)for(;Mf(S,T)&&E<n;)E++,x+=a,S=t[x*2],T=t[x*2+1];var z=.5,C=0,D=0,O=void 0,k=void 0;if(E>=n||Mf(S,T))p=v,m=g;else{C=S-u,D=T-c;var R=v-u,j=S-v,Z=g-c,Q=T-g,G=void 0,K=void 0;if(s==="x"){G=Math.abs(R),K=Math.abs(j);var ie=C>0?1:-1;p=v-ie*G*o,m=g,O=v+ie*K*o,k=g}else if(s==="y"){G=Math.abs(Z),K=Math.abs(Q);var ce=D>0?1:-1;p=v,m=g-ce*G*o,O=v,k=g+ce*K*o}else G=Math.sqrt(R*R+Z*Z),K=Math.sqrt(j*j+Q*Q),z=K/(K+G),p=v-C*o*(1-z),m=g-D*o*(1-z),O=v+C*o*z,k=g+D*o*z,O=Tu(O,wu(S,v)),k=Tu(k,wu(T,g)),O=wu(O,Tu(S,v)),k=wu(k,Tu(T,g)),C=O-v,D=k-g,p=v-C*G/K,m=g-D*G/K,p=Tu(p,wu(u,v)),m=Tu(m,wu(c,g)),p=wu(p,Tu(u,v)),m=wu(m,Tu(c,g)),C=v-p,D=g-m,O=v+C*K/G,k=g+D*K/G}e.bezierCurveTo(f,d,p,m,v,g),f=O,d=k}else e.lineTo(v,g)}u=v,c=g,h+=a}return y}var Tu,wu,YY,XY,Dge,KY,WY=w(()=>{ae();ar();Uo();Ba();Tu=Math.min,wu=Math.max;YY=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),XY=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YY},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Mf(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Mf(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=sL(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=tn.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],p=void 0,m=void 0,h=void 0,y=void 0,v=void 0,g=void 0,_=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(p=a[f++],m=a[f++],_=u?(r-s)/(p-s):(r-l)/(m-l),_<=1&&_>=0){var b=u?(m-l)*_+l:(p-s)*_+s;return u?[r,b]:[b,r]}s=p,l=m;break;case o.C:p=a[f++],m=a[f++],h=a[f++],y=a[f++],v=a[f++],g=a[f++];var x=u?qc(s,p,h,v,r,c):qc(l,m,y,g,r,c);if(x>0)for(var S=0;S<x;S++){var T=c[S];if(T<=1&&T>=0){var b=u?Ft(l,m,y,g,T):Ft(s,p,h,v,T);return u?[r,b]:[b,r]}}s=v,l=g;break}}},t})(me),Dge=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YY),KY=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new Dge},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Mf(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Mf(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=sL(r,i,o,s,s,1,n.smooth,l,n.connectNulls);sL(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t})(me)});function If(){var e=De();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var az=w(()=>{Ae()});function JY(e,t,r){e&&Ly(e)&&(t==="emphasis"?Is:Rs)(e,r)}function QY(e,t,r){var n=ma(e,t),i=t&&t.highlightKey!=null?b8(t.highlightKey):null;n!=null?A(Gt(n),function(a){JY(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){JY(a,r,i)})}function Oge(e){return Nge(e.model)}function kge(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&e7(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Mge[l]}var e7,Nge,lL,Mge,zr,Eu=w(()=>{I();Lm();wf();Ao();Ae();ha();GE();az();nt();e7=De(),Nge=If(),lL=(function(){function e(){this.group=new Ye,this.uid=vu("viewChart"),this.renderTask=bu({plan:Oge,reset:kge}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&QY(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&QY(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){$s(this.group,t)},e.markUpdateMethod=function(t,r){e7(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();lm(lL,["dispose"]);Jl(lL);Mge={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},zr=lL});function uL(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new ct({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),m=d.inverse;p?(m&&(f.shape.x+=l),f.shape.width=0):(m||(f.shape.y+=u),f.shape.height=0);var h=te(i)?function(y){i(y,f)}:null;$t(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,h)}return f}function cL(e,t,r){var n=e.getArea(),i=St(n.r0,1),a=St(n.r,1),o=new Fa({shape:{cx:St(e.cx,1),cy:St(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,$t(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function t7(e,t,r,n,i){if(e){if(e.type==="polar")return cL(e,t,r);if(e.type==="cartesian2d")return uL(e,t,r,n,i)}else return null;return null}var fL=w(()=>{nt();Ct();I()});function u_(e,t){return e.type===t}var dL=w(()=>{});function r7(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function n7(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function i7(e,t){var r=n7(e),n=r[0],i=r[1],a=n7(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function a7(e){return ve(e)?e:e?.5:0}function Ige(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Bi(n*2),a=0;a<n;a++){var o=iz(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function zu(e,t,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<e.length;l+=2){var p=t||e;!isNaN(p[l])&&!isNaN(p[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),n){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var m=(c[o]+f[o])/2,h=[];u[o]=h[o]=m,u[1-o]=c[1-o],h[1-o]=f[1-o],s.push(u[0],u[1]),s.push(h[0],h[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function Rge(e,t){var r=[],n=e.length,i,a;function o(c,f,d){var p=c.coord,m=(d-p)/(f.coord-p),h=HG(m,[c.color,f.color]);return{coord:d,color:h}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function Lge(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=H(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Rge(u,i==="x"?r.getWidth():r.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var m=10,h=d[0].coord-m,y=d[p-1].coord+m,v=y-h;if(v<.001)return"transparent";A(d,function(_){_.offset=(_.coord-h)/v}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var g=new uE(0,0,0,0,d,!0);return g[i]=h,g[i+"2"]=y,g}}}function Pge(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&$ge(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function $ge(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(kf.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Uge(e,t){return isNaN(e)||isNaN(t)}function jge(e){for(var t=e.length/2;t>0&&Uge(e[t*2-2],e[t*2-1]);t--);return t-1}function o7(e,t){return[e[t*2],e[t*2+1]]}function Vge(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function s7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Lr.length;t++)if(e.get([Lr[t],"endLabel","show"]))return!0;return!1}function pL(e,t,r,n){if(u_(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=s7(n)?function(p,m){e._endLabelOnDuring(p,m,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=uL(t,r,n,function(){var p=e._endLabel;p&&r&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return cL(t,r,n)}function Bge(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var Zge,l7,u7=w(()=>{ae();I();iL();tz();qY();nt();Ae();WY();Eu();aL();fL();dL();ha();Ri();ez();ai();l_();Xa();ko();Zge=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Ye,n=new rz;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Oe(this._changePolyState,this)},t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",d=this._coordSys,p=this._symbolDraw,m=this._polyline,h=this._polygon,y=this._lineGroup,v=!n.ssr&&r.get("animation"),g=!u.isEmpty(),_=u.get("origin"),b=nz(a,s,_),x=g&&Ige(a,s,b),S=r.get("showSymbol"),T=r.get("connectNulls"),E=S&&!f&&Pge(r,s,a),z=this._data;z&&z.eachItemGraphicEl(function(dt,an){dt.__temp&&(o.remove(dt),z.setItemGraphicEl(an,null))}),S||p.remove(),o.add(y);var C=f?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var O=Lge(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(m&&d.type===a.type&&C===this._step))S&&p.updateData(s,{isIgnore:E,clipShape:D,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),v&&this._initSymbolLabelAnimation(s,a,D),C&&(x&&(x=zu(x,c,a,C,T)),c=zu(c,null,a,C,T)),m=this._newPolyline(c),g?h=this._newPolygon(c,x):h&&(y.remove(h),h=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Ya(O)),y.setClipPath(pL(this,a,!0,r));else{g&&!h?h=this._newPolygon(c,x):h&&!g&&(y.remove(h),h=this._polygon=null),f||this._initOrUpdateEndLabel(r,a,Ya(O));var k=y.getClipPath();if(k){var R=pL(this,a,!1,r);$t(k,{shape:R.shape},r)}else y.setClipPath(pL(this,a,!0,r));S&&p.updateData(s,{isIgnore:E,clipShape:D,disableAnimation:!0,getSymbolPoint:function(dt){return[c[dt*2],c[dt*2+1]]}}),(!r7(this._stackedOnPoints,x)||!r7(this._points,c))&&(v?this._doUpdateAnimation(s,x,a,i,C,_,T):(C&&(x&&(x=zu(x,c,a,C,T)),c=zu(c,null,a,C,T)),m.setShape({points:c}),h&&h.setShape({points:c,stackedOnPoints:x})))}var j=r.getModel("emphasis"),Z=j.get("focus"),Q=j.get("blurScope"),G=j.get("disabled");if(m.useStyle(de(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),Ls(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var K=m.getState("emphasis").style;K.lineWidth=+m.style.lineWidth+1}we(m).seriesIndex=r.seriesIndex,Za(m,Z,Q,G);var ie=a7(r.get("smooth")),ce=r.get("smoothMonotone");if(m.setShape({smooth:ie,smoothMonotone:ce,connectNulls:T}),h){var fe=s.getCalculationInfo("stackedOnSeries"),$e=0;h.useStyle(de(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),fe&&($e=a7(fe.get("smooth"))),h.setShape({smooth:ie,stackedOnSmooth:$e,smoothMonotone:ce,connectNulls:T}),Ls(h,r,"areaStyle"),we(h).seriesIndex=r.seriesIndex,Za(h,Z,Q,G)}var tt=this._changePolyState;s.eachItemGraphicEl(function(dt){dt&&(dt.onHoverStateChange=tt)}),this._polyline.onHoverStateChange=tt,this._data=s,this._coordSys=a,this._stackedOnPoints=x,this._points=c,this._step=C,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,m),h&&this.packEventData(r,h))},t.prototype.packEventData=function(r,n){we(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=ma(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,p=r.get("z")||0;u=new kf(o,s),u.x=c,u.y=f,u.setZ(d,p);var m=u.getSymbolPath().getTextContent();m&&(m.zlevel=d,m.z=p,m.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else zr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=ma(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;Ry(this._polyline,r),n&&Ry(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new XY({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new KY({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");te(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=te(f)?f(null):f;r.eachItemGraphicEl(function(p,m){var h=p;if(h){var y=[p.x,p.y],v=void 0,g=void 0,_=void 0;if(i)if(o){var b=i,x=n.pointToCoord(y);a?(v=b.startAngle,g=b.endAngle,_=-x[1]/180*Math.PI):(v=b.r0,g=b.r,_=x[0])}else{var S=i;a?(v=S.x,g=S.x+S.width,_=p.x):(v=S.y+S.height,g=S.y,_=p.y)}var T=g===v?0:(_-v)/(g-v);l&&(T=1-T);var E=te(f)?f(m):c*T+d,z=h.getSymbolPath(),C=z.getTextContent();h.attr({scaleX:0,scaleY:0}),h.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:E}),z.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(s7(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=jge(l);c>=0&&(va(s,si(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?QE(o,p):eh(o,f)},enableTextSetter:!0},Bge(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,p=d.get("connectNulls"),m=s.get("precision"),h=s.get("distance")||0,y=l.getBaseAxis(),v=y.isHorizontal(),g=y.inverse,_=n.shape,b=g?v?_.x:_.y+_.height:v?_.x+_.width:_.y,x=(v?h:0)*(g?-1:1),S=(v?0:-h)*(g?-1:1),T=v?"x":"y",E=Vge(f,b,T),z=E.range,C=z[1]-z[0],D=void 0;if(C>=1){if(C>1&&!p){var O=o7(f,z[0]);u.attr({x:O[0]+x,y:O[1]+S}),o&&(D=d.getRawValue(z[0]))}else{var O=c.getPointOn(b,T);O&&u.attr({x:O[0]+x,y:O[1]+S});var k=d.getRawValue(z[0]),R=d.getRawValue(z[1]);o&&(D=Ww(i,m,k,R,E.t))}a.lastFrameIndex=z[0]}else{var j=r===1||a.lastFrameIndex>0?z[0]:0,O=o7(f,j);o&&(D=d.getRawValue(j)),u.attr({x:O[0]+x,y:O[1]+S})}if(o){var Z=js(u);typeof Z.setLabelText=="function"&&Z.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=oL(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin,s),p=d.current,m=d.stackedOnCurrent,h=d.next,y=d.stackedOnNext;if(o&&(m=zu(d.stackedOnCurrent,d.current,i,o,l),p=zu(d.current,null,i,o,l),y=zu(d.stackedOnNext,d.next,i,o,l),h=zu(d.next,null,i,o,l)),i7(p,h)>3e3||c&&i7(m,y)>3e3){u.stopAnimation(),u.setShape({points:h}),c&&(c.stopAnimation(),c.setShape({points:h,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=p;var v={shape:{points:h}};d.current!==p&&(v.shape.__points=d.next),u.stopAnimation(),et(u,v,f),c&&(c.setShape({points:p,stackedOnPoints:m}),c.stopAnimation(),et(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var g=[],_=d.status,b=0;b<_.length;b++){var x=_[b].cmd;if(x==="="){var S=r.getItemGraphicEl(_[b].idx1);S&&g.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;E<g.length;E++){var z=g[E].el,C=g[E].ptIdx*2;z.x=T[C],z.y=T[C+1],z.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(zr),l7=Zge});function mL(e,t){return{seriesType:e,plan:If(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=H(i.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Fs(n,s[0])&&(s[0]=u),Fs(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(p,m){for(var h=p.end-p.start,y=o&&Bi(h*l),v=[],g=[],_=p.start,b=0;_<p.end;_++){var x=void 0;if(l===1){var S=c.get(f,_);x=i.dataToPoint(S,null,g)}else v[0]=c.get(f,_),v[1]=c.get(d,_),x=i.dataToPoint(v,null,g);o?(y[b++]=x[0],y[b++]=x[1]):m.setItemLayout(_,x.slice())}o&&m.setLayout("points",y)}}}}}}var c7=w(()=>{I();az();Xm();l_()});function c_(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/p));var m=void 0;F(a)?m=Hge[a]:te(a)&&(m=a),m&&t.setData(i.downSample(i.mapDimension(u.dim),1/p,m,Fge))}}}}}var Hge,Fge,hL=w(()=>{I();Hge={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Fge=function(e){return Math.round(e.length/2)}});function vL(e){e.registerChartView(l7),e.registerSeriesModel(BY),e.registerLayout(mL("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,c_("line"))}var f7=w(()=>{ZY();u7();c7();hL()});function gL(e){return e.get("stack")||Gge+e.seriesIndex}function yL(e){return e.dim+e.index}function _L(e,t){var r=[];return t.eachSeriesByType(e,function(n){h7(n)&&r.push(n)}),r}function qge(e){var t={};A(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,p=f.getDimensionIndex(f.mapDimension(c.dim)),m=f.getStore(),h=0,y=m.count();h<y;++h){var v=m.get(p,h);t[d]?t[d].push(v):t[d]=[v]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function bL(e){var t=qge(e),r=[];return A(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var p=n.getData();s=Math.abs(o[1]-o[0])/p.count()}var m=Be(n.get("barWidth"),s),h=Be(n.get("barMaxWidth"),s),y=Be(n.get("barMinWidth")||(v7(n)?.5:1),s),v=n.get("barGap"),g=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:m,barMaxWidth:h,barMinWidth:y,barGap:v,barCategoryGap:g,axisKey:yL(a),stackId:gL(n)})}),Yge(r)}function Yge(e){var t={};A(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var p=n.barGap;p!=null&&(s.gap=p);var m=n.barCategoryGap;m!=null&&(s.categoryGap=m)});var r={};return A(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=pe(a).length;s=Math.max(35-l*4,15)+"%"}var u=Be(s,o),c=Be(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),A(a,function(v){var g=v.maxWidth,_=v.minWidth;if(v.width){var b=v.width;g&&(b=Math.min(b,g)),_&&(b=Math.max(b,_)),v.width=b,f-=b+c*b,d--}else{var b=p;g&&g<b&&(b=Math.min(g,f)),_&&_>b&&(b=_),b!==p&&(v.width=b,f-=b+c*b,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var m=0,h;A(a,function(v,g){v.width||(v.width=p),h=v,m+=v.width*(1+c)}),h&&(m-=h.width*c);var y=-m/2;A(a,function(v,g){r[i][g]=r[i][g]||{bandWidth:o,offset:y,width:v.width},y+=v.width*(1+c)})}),r}function d7(e,t,r){if(e&&t){var n=e[yL(t)];return n!=null&&r!=null?n[gL(r)]:n}}function p7(e,t){var r=_L(e,t),n=bL(r);A(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=gL(i),u=n[yL(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function m7(e){return{seriesType:e,plan:If(),reset:function(t){if(h7(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Fs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),p=Xge(i,a),m=v7(t),h=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),v=r.getLayout("size"),g=r.getLayout("offset");return{progress:function(_,b){for(var x=_.count,S=m&&Bi(x*3),T=m&&l&&Bi(x*3),E=m&&Bi(x),z=n.master.getRect(),C=d?z.width:z.height,D,O=b.getStore(),k=0;(D=_.next())!=null;){var R=O.get(f?y:o,D),j=O.get(s,D),Z=p,Q=void 0;f&&(Q=+R-O.get(o,D));var G=void 0,K=void 0,ie=void 0,ce=void 0;if(d){var fe=n.dataToPoint([R,j]);if(f){var $e=n.dataToPoint([Q,j]);Z=$e[0]}G=Z,K=fe[1]+g,ie=fe[0]-Z,ce=v,Math.abs(ie)<h&&(ie=(ie<0?-1:1)*h)}else{var fe=n.dataToPoint([j,R]);if(f){var $e=n.dataToPoint([j,Q]);Z=$e[1]}G=fe[0]+g,K=Z,ie=v,ce=fe[1]-Z,Math.abs(ce)<h&&(ce=(ce<=0?-1:1)*h)}m?(S[k]=G,S[k+1]=K,S[k+2]=d?ie:ce,T&&(T[k]=d?z.x:G,T[k+1]=d?K:z.y,T[k+2]=C),E[D]=D):b.setItemLayout(D,{x:G,y:K,width:ie,height:ce}),k+=3}m&&b.setLayout({largePoints:S,largeDataIndices:E,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function h7(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function v7(e){return e.pipelineContext&&e.pipelineContext.large}function Xge(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var Gge,xL=w(()=>{I();Ct();Xm();az();l_();Gge="__ec_stack_"});var g7,SL,y7=w(()=>{ae();Su();Jy();I();g7=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return hu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(d,p){if(d.type==="category"&&n!=null){var m=d.getTicksCoords(),h=d.getTickModel().get("alignWithLabel"),y=o[p],v=n[p]==="x1"||n[p]==="y1";if(v&&!h&&(y+=1),m.length<2)return;if(m.length===2){s[p]=d.toGlobalCoord(d.getExtent()[v?1:0]);return}for(var g=void 0,_=void 0,b=1,x=0;x<m.length;x++){var S=m[x].coord,T=x===m.length-1?m[x-1].tickValue+b:m[x].tickValue;if(T===y){_=S;break}else if(T<y)g=S;else if(g!=null&&T>y){_=(S+g)/2;break}x===1&&(b=T-m[0].tickValue)}_==null&&(g?g&&(_=m[m.length-1].coord):_=m[0].coord),s[p]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(nn);nn.registerClass(g7);SL=g7});var Kge,_7,b7=w(()=>{ae();y7();Jy();wf();Kge=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return hu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=NE(SL.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(SL),_7=Kge});function f_(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var p=[],m=0;m<arguments.length;m++)p[m]=arguments[m];n=new Date().getTime(),l=this,u=p;var h=c||t,y=c||r;c=null,s=n-(y?i:a)-h,clearTimeout(o),y?o=setTimeout(f,h):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(p){c=p},d}function sz(e,t,r,n){var i=e[t];if(i){var a=i[oz]||i,o=i[S7],s=i[x7];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=f_(a,r,n==="debounce"),i[oz]=a,i[S7]=n,i[x7]=r}return i}}function d_(e,t){var r=e[t];r&&r[oz]&&(r.clear&&r.clear(),e[t]=r[oz])}var oz,x7,S7,p_=w(()=>{oz="\0__throttleOriginMethod",x7="\0__throttleRate",S7="\0__throttleType"});var Jge,Qge,TL,T7=w(()=>{ae();nt();Jge=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Qge=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Jge},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,p=Math.PI*2,m=d?f-c<p:c-f<p;m||(c=f-(d?p:-p));var h=Math.cos(c),y=Math.sin(c),v=Math.cos(f),g=Math.sin(f);m?(r.moveTo(h*o+i,y*o+a),r.arc(h*u+i,y*u+a,l,-Math.PI+c,c,!d)):r.moveTo(h*s+i,y*s+a),r.arc(i,a,s,c,f,!d),r.arc(v*u+i,g*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t})(me),TL=Qge});function w7(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Bc(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,p=u.r0,m=(d+p)/2,h=u.startAngle,y=u.endAngle,v=(h+y)/2,g=r?Math.abs(d-p)/2:0,_=Math.cos,b=Math.sin,x=c+d*_(h),S=f+d*b(h),T="left",E="top";switch(s){case"startArc":x=c+(p-l)*_(v),S=f+(p-l)*b(v),T="center",E="top";break;case"insideStartArc":x=c+(p+l)*_(v),S=f+(p+l)*b(v),T="center",E="bottom";break;case"startAngle":x=c+m*_(h)+lz(h,l+g,!1),S=f+m*b(h)+uz(h,l+g,!1),T="right",E="middle";break;case"insideStartAngle":x=c+m*_(h)+lz(h,-l+g,!1),S=f+m*b(h)+uz(h,-l+g,!1),T="left",E="middle";break;case"middle":x=c+m*_(v),S=f+m*b(v),T="center",E="middle";break;case"endArc":x=c+(d+l)*_(v),S=f+(d+l)*b(v),T="center",E="bottom";break;case"insideEndArc":x=c+(d-l)*_(v),S=f+(d-l)*b(v),T="center",E="top";break;case"endAngle":x=c+m*_(y)+lz(y,l+g,!0),S=f+m*b(y)+uz(y,l+g,!0),T="left",E="middle";break;case"insideEndAngle":x=c+m*_(y)+lz(y,-l+g,!0),S=f+m*b(y)+uz(y,-l+g,!0),T="right",E="middle";break;default:return Bc(n,i,a)}return n=n||{},n.x=x,n.y=S,n.align=T,n.verticalAlign=E,n}}function E7(e,t,r,n){if(ve(n)){e.setTextConfig({rotation:n});return}else if(V(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function lz(e,t,r){return t*Math.sin(e)*(r?-1:1)}function uz(e,t,r){return t*Math.cos(e)*(r?1:-1)}var z7=w(()=>{sa();I()});function Rf(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;V(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:H(n,function(a){return oa(a,i)})}}var wL=w(()=>{I();sa()});function eye(e,t){var r=e.getArea&&e.getArea();if(u_(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}function rye(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function D7(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?et:$t)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?et:$t)(r,{shape:u},c,i)}function N7(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}function aye(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function L7(e){return(function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(e)}function k7(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Rf(n.getModel("itemStyle"),c,!0);$(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var p=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",m=si(n);va(e,m,{labelFetcher:a,labelDataIndex:r,defaultText:eh(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var h=e.getTextContent();if(s&&h){var y=n.get(["label","position"]);e.textConfig.inside=y==="middle"?!0:null,E7(e,y==="outside"?p:y,L7(o),n.get(["label","rotate"]))}Eq(h,m,a.getRawValue(r),function(g){return QE(t,g)});var v=n.getModel(["emphasis"]);Za(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Ls(e,n),aye(i)&&(e.style.fill="none",e.style.stroke="none",A(e.states,function(g){g.style&&(g.style.fill=g.style.stroke="none")}))}function oye(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}function I7(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new M7({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new M7({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),f.style.stroke=null,we(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",R7),f.on("mousemove",R7)),r&&r.push(f)}function lye(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function P7(e,t,r){if(u_(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function uye(e,t,r){var n=e.type==="polar"?Fa:ct;return new n({shape:P7(t,r,e),silent:!0,z2:0})}var EL,zL,tye,A7,C7,nye,iye,O7,cz,sye,M7,R7,$7,U7=w(()=>{ae();ar();Lm();I();nt();ai();ha();Ri();p_();fL();T7();Eu();dL();ez();z7();By();wL();EL=Math.max,zL=Math.min;tye=(function(e){L(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){$s(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,p=rye(r,u);p&&this._enableRealtimeSort(p,s,i);var m=r.get("clip",!0)||p,h=eye(u,s);o.removeClipPath();var y=r.get("roundCap",!0),v=r.get("showBackground",!0),g=r.getModel("backgroundStyle"),_=g.get("borderRadius")||0,b=[],x=this._backgroundEls,S=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function E(D){var O=cz[u.type](s,D),k=uye(u,f,O);return k.useStyle(g.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[D]=k,k}s.diff(l).add(function(D){var O=s.getItemModel(D),k=cz[u.type](s,D,O);if(v&&E(D),!(!s.hasValue(D)||!O7[u.type](k))){var R=!1;m&&(R=A7[u.type](h,k));var j=C7[u.type](r,s,D,k,f,d,c.model,!1,y);p&&(j.forceLabelAnimation=!0),k7(j,s,D,O,k,r,f,u.type==="polar"),S?j.attr({shape:k}):p?D7(p,d,j,k,D,f,!1,!1):$t(j,{shape:k},r,D),s.setItemGraphicEl(D,j),o.add(j),j.ignore=R}}).update(function(D,O){var k=s.getItemModel(D),R=cz[u.type](s,D,k);if(v){var j=void 0;x.length===0?j=E(O):(j=x[O],j.useStyle(g.getItemStyle()),u.type==="cartesian2d"?j.setShape("r",_):j.setShape("cornerRadius",_),b[D]=j);var Z=cz[u.type](s,D),Q=P7(f,Z,u);et(j,{shape:Q},d,D)}var G=l.getItemGraphicEl(O);if(!s.hasValue(D)||!O7[u.type](R)){o.remove(G);return}var K=!1;if(m&&(K=A7[u.type](h,R),K&&o.remove(G)),G?Um(G):G=C7[u.type](r,s,D,R,f,d,c.model,!!G,y),p&&(G.forceLabelAnimation=!0),T){var ie=G.getTextContent();if(ie){var ce=js(ie);ce.prevValue!=null&&(ce.prevValue=ce.value)}}else k7(G,s,D,k,R,r,f,u.type==="polar");S?G.attr({shape:R}):p?D7(p,d,G,R,D,f,!0,T):et(G,{shape:R},r,D,null),s.setItemGraphicEl(D,G),G.ignore=K,o.add(G)}).remove(function(D){var O=l.getItemGraphicEl(D);O&&hf(O,r,D)}).execute();var z=this._backgroundGroup||(this._backgroundGroup=new Ye);z.removeAll();for(var C=0;C<b.length;++C)z.add(b[C]);o.add(z),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),I7(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),I7(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&t7(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:H(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){hf(a,r,we(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(zr),A7={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=EL(t.x,e.x),s=zL(t.x+t.width,i),l=EL(t.y,e.y),u=zL(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=zL(t.r,e.r),a=EL(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},C7={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new ct({shape:$({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?TL:Fa,c=new u({shape:n,z2:1});c.name="item";var f=L7(i);if(c.calculateTextPosition=w7(f,{isRoundCap:u===TL}),a){var d=c.shape,p=i?"r":"endAngle",m={};d[p]=i?n.r0:n.startAngle,m[p]=n[p],(s?et:$t)(c,{shape:m},a)}return c}};nye=["x","y","width","height"],iye=["cx","cy","r","startAngle","endAngle"],O7={cartesian2d:function(e){return!N7(e,nye)},polar:function(e){return!N7(e,iye)}},cz={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?oye(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};sye=(function(){function e(){}return e})(),M7=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new sye},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t})(me);R7=f_(function(e){var t=this,r=lye(t,e.offsetX,e.offsetY);we(t).dataIndex=r>=0?r:null},30,!1);$7=tye});function AL(e){e.registerChartView($7),e.registerSeriesModel(_7),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,qe(p7,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m7("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,c_("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var j7=w(()=>{I();xL();hL();b7();U7()});function V7(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}A([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=$({},i),o.dispatchAction($(i,{type:n[1],seriesIndex:r(a,i)}))})})}function th(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=ma(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:V(d)?f.getName(d[0]):f.getName(d),selected:F(l)?l:$({},l)})}})}function B7(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(th("map","selectchanged",t,i,n),th("pie","selectchanged",t,i,n)):n.fromAction==="select"?(th("map","selected",t,i,n),th("pie","selected",t,i,n)):n.fromAction==="unselect"&&(th("map","unselected",t,i,n),th("pie","unselected",t,i,n))})}var CL=w(()=>{I();Ae()});function H7(e,t){return ji(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DL(e,t){var r=H7(e,t),n=e.get("center"),i=e.get("radius");V(i)||(i=[0,i]);var a=Be(r.width,t.getWidth()),o=Be(r.height,t.getHeight()),s=Math.min(a,o),l=Be(i[0],s/2),u=Be(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var p=d.dataToPoint(n);c=p[0]||0,f=p[1]||0}else V(n)||(n=[n,n]),c=Be(n[0],a)+r.x,f=Be(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function NL(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=H7(n,r),s=DL(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*fz,p=n.get("endAngle"),m=n.get("padAngle")*fz;p=p==="auto"?d-Z7:-p*fz;var h=n.get("minAngle")*fz,y=h+m,v=0;i.each(a,function(Q){!isNaN(Q)&&v++});var g=i.getSum(a),_=Math.PI/(g||v)*2,b=n.get("clockwise"),x=n.get("roseType"),S=n.get("stillShowZeroSum"),T=i.getDataExtent(a);T[0]=0;var E=b?1:-1,z=[d,p],C=E*m/2;pR(z,!b),d=z[0],p=z[1];var D=OL(n);D.startAngle=d,D.endAngle=p,D.clockwise=b;var O=Math.abs(p-d),k=O,R=0,j=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(Q,G){var K;if(isNaN(Q)){i.setItemLayout(G,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?K=g===0&&S?_:Q*_:K=O/v,K<y?(K=y,k-=y):R+=Q;var ie=j+E*K,ce=0,fe=0;m>K?(ce=j+E*K/2,fe=ce):(ce=j+C,fe=ie-C),i.setItemLayout(G,{angle:K,startAngle:ce,endAngle:fe,clockwise:b,cx:l,cy:u,r0:f,r:x?cu(Q,T,[f,c]):c}),j=ie}),k<Z7&&v)if(k<=.001){var Z=O/v;i.each(a,function(Q,G){if(!isNaN(Q)){var K=i.getItemLayout(G);K.angle=Z;var ie=0,ce=0;Z<m?(ie=d+E*(G+1/2)*Z,ce=ie):(ie=d+E*G*Z+C,ce=d+E*(G+1)*Z-C),K.startAngle=ie,K.endAngle=ce}})}else _=k/R,j=d,i.each(a,function(Q,G){if(!isNaN(Q)){var K=i.getItemLayout(G),ie=K.angle===y?y:Q*_,ce=0,fe=0;ie<m?(ce=j+E*ie/2,fe=ce):(ce=j+C,fe=j+E*ie-C),K.startAngle=ce,K.endAngle=fe,j+=E*ie}})})}var Z7,fz,OL,kL=w(()=>{Ct();ya();I();Uo();Ae();Z7=Math.PI*2,fz=Math.PI/180;OL=De()});function ML(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var F7=w(()=>{});function fye(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function dye(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%m_<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=da(i),i=da(d)}else n=da(n),i=da(i);n>i&&(i+=m_);var p=Math.atan2(s,o);if(p<0&&(p+=m_),p>=n&&p<=i||p+m_>=n&&p+m_<=i)return l[0]=c,l[1]=f,u-r;var m=r*Math.cos(n)+e,h=r*Math.sin(n)+t,y=r*Math.cos(i)+e,v=r*Math.sin(i)+t,g=(m-o)*(m-o)+(h-s)*(h-s),_=(y-o)*(y-o)+(v-s)*(v-s);return g<_?(l[0]=m,l[1]=h,Math.sqrt(g)):(l[0]=y,l[1]=v,Math.sqrt(_))}function dz(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var p=l*c+u*f,m=p/d;s&&(m=Math.min(Math.max(m,0),1)),m*=d;var h=o[0]=e+m*c,y=o[1]=t+m*f;return Math.sqrt((h-i)*(h-i)+(y-a)*(y-a))}function G7(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}function pye(e,t,r){var n=G7(t.x,t.y,t.width,t.height,e.x,e.y,Wa);return r.set(Wa[0],Wa[1]),n}function mye(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,p=0;p<c.length;){var m=c[p++];p===1&&(n=c[p],i=c[p+1],a=n,o=i);var h=u;switch(m){case Lf.M:a=c[p++],o=c[p++],n=a,i=o;break;case Lf.L:h=dz(n,i,c[p],c[p+1],f,d,Wa,!0),n=c[p++],i=c[p++];break;case Lf.C:h=mw(n,i,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,d,Wa),n=c[p++],i=c[p++];break;case Lf.Q:h=vw(n,i,c[p++],c[p++],c[p],c[p+1],f,d,Wa),n=c[p++],i=c[p++];break;case Lf.A:var y=c[p++],v=c[p++],g=c[p++],_=c[p++],b=c[p++],x=c[p++];p+=1;var S=!!(1-c[p++]);s=Math.cos(b)*g+y,l=Math.sin(b)*_+v,p<=1&&(a=s,o=l);var T=(f-y)*_/g+y;h=dye(y,v,_,b,b+x,S,T,d,Wa),n=Math.cos(b+x)*g+y,i=Math.sin(b+x)*_+v;break;case Lf.R:a=n=c[p++],o=i=c[p++];var E=c[p++],z=c[p++];h=G7(a,o,E,z,f,d,Wa);break;case Lf.Z:h=dz(n,i,a,o,f,d,Wa,!0),n=a,i=o;break}h<u&&(u=h,r.set(Wa[0],Wa[1]))}return u}function RL(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||cye,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Do([],c),d=t.get("length2")||0;u&&or.copy(u);for(var p=0;p<o.length;p++){var m=o[p];fye(m,0,s,Ja,Go),Se.scaleAndAdd(Tt,Ja,Go,d),Tt.transform(f);var h=e.getBoundingRect(),y=u?u.distance(Tt):e instanceof me?mye(Tt,e.path,or):pye(Tt,h,or);y<l&&(l=y,Tt.transform(c),or.transform(c),or.toArray(a[0]),Tt.toArray(a[1]),Ja.toArray(a[2]))}LL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}function LL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ja.fromArray(e[0]),Tt.fromArray(e[1]),or.fromArray(e[2]),Se.sub(Go,Ja,Tt),Se.sub(Fo,or,Tt);var r=Go.len(),n=Fo.len();if(!(r<.001||n<.001)){Go.scale(1/r),Fo.scale(1/n);var i=Go.dot(Fo),a=Math.cos(t);if(a<i){var o=dz(Tt.x,Tt.y,or.x,or.y,Ja.x,Ja.y,pz,!1);Pn.fromArray(pz),Pn.scaleAndAdd(Fo,o/Math.tan(Math.PI-t));var s=or.x!==Tt.x?(Pn.x-Tt.x)/(or.x-Tt.x):(Pn.y-Tt.y)/(or.y-Tt.y);if(isNaN(s))return;s<0?Se.copy(Pn,Tt):s>1&&Se.copy(Pn,or),Pn.toArray(e[1])}}}}function q7(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ja.fromArray(e[0]),Tt.fromArray(e[1]),or.fromArray(e[2]),Se.sub(Go,Tt,Ja),Se.sub(Fo,or,Tt);var n=Go.len(),i=Fo.len();if(!(n<.001||i<.001)){Go.scale(1/n),Fo.scale(1/i);var a=Go.dot(t),o=Math.cos(r);if(a<o){var s=dz(Tt.x,Tt.y,or.x,or.y,Ja.x,Ja.y,pz,!1);Pn.fromArray(pz);var l=Math.PI/2,u=Math.acos(Fo.dot(t)),c=l+u-r;if(c>=l)Se.copy(Pn,or);else{Pn.scaleAndAdd(Fo,s/Math.tan(Math.PI/2-c));var f=or.x!==Tt.x?(Pn.x-Tt.x)/(or.x-Tt.x):(Pn.y-Tt.y)/(or.y-Tt.y);if(isNaN(f))return;f<0?Se.copy(Pn,Tt):f>1&&Se.copy(Pn,or)}Pn.toArray(e[1])}}}}function IL(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function hye(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=my(n[0],n[1]),a=my(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=sw([],n[1],n[0],o/i),l=sw([],n[1],n[2],o/a),u=sw([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function mz(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<km.length;l++){var u=km[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),p=f?s:se(i.states[u]&&i.states[u].ignore,s);if(p||!se(d,o)){var m=f?n:n&&n.states[u];m&&(m.ignore=!0),n&&IL(n,!0,u,c);continue}n||(n=new ff,e.setTextGuideLine(n),!f&&(s||!o)&&IL(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),IL(n,!1,u,c)}}if(n){de(n.style,r),n.style.fill=null;var h=a.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=h||!1,n.buildPath=hye}}function hz(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Lr.length;n++){var i=Lr[n];r[i]=e.getModel([i,t])}return r}var m_,Lf,cye,Wa,Ja,Tt,or,Go,Fo,pz,Pn,vz=w(()=>{nt();Uo();jw();Ba();I();Es();cr();ha();m_=Math.PI*2,Lf=tn.CMD,cye=["top","right","bottom","left"];Wa=[];Ja=new Se,Tt=new Se,or=new Se,Go=new Se,Fo=new Se;pz=[],Pn=new Se});function gz(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new $m(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Y7(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(z,C){return z.rect[t]-C.rect[t]});for(var s=0,l,u=!1,c=[],f=0,d=0;d<o;d++){var p=e[d],m=p.rect;l=m[t]-s,l<0&&(m[t]-=l,p.label[t]-=l,u=!0);var h=Math.max(-l,0);c.push(h),f+=h,s=m[t]+m[r]}f>0&&a&&S(-f/o,0,o);var y=e[0],v=e[o-1],g,_;b(),g<0&&T(-g,.8),_<0&&T(_,.8),b(),x(g,_,1),x(_,g,-1),b(),g<0&&E(-g),_<0&&E(_);function b(){g=y.rect[t]-n,_=i-v.rect[t]-v.rect[r]}function x(z,C,D){if(z<0){var O=Math.min(C,-z);if(O>0){S(O*D,0,o);var k=O+z;k<0&&T(-k*D,1)}else T(-z*D,1)}}function S(z,C,D){z!==0&&(u=!0);for(var O=C;O<D;O++){var k=e[O],R=k.rect;R[t]+=z,k.label[t]+=z}}function T(z,C){for(var D=[],O=0,k=1;k<o;k++){var R=e[k-1].rect,j=Math.max(e[k].rect[t]-R[t]-R[r],0);D.push(j),O+=j}if(O){var Z=Math.min(Math.abs(z)/O,C);if(z>0)for(var k=0;k<o-1;k++){var Q=D[k]*Z;S(Q,0,k+1)}else for(var k=o-1;k>0;k--){var Q=D[k-1]*Z;S(-Q,k,o)}}}function E(z){var C=z<0?-1:1;z=Math.abs(z);for(var D=Math.ceil(z/(o-1)),O=0;O<o-1;O++)if(C>0?S(D,0,O+1):S(-D,o-O-1,o),z-=D,z<=0)return}return u}function X7(e,t,r,n){return Y7(e,"x","width",t,r,n)}function yz(e,t,r,n){return Y7(e,"y","height",t,r,n)}function _z(e){var t=[];e.sort(function(h,y){return y.priority-h.priority});var r=new ze(0,0,0,0);function n(h){if(!h.ignore){var y=h.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}h.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,p=0;p<t.length;p++){var m=t[p];if(r.intersect(m.rect)){if(o&&m.axisAligned){d=!0;break}if(m.obb||(m.obb=new $m(m.localRect,m.transform)),f||(f=new $m(s,l)),f.intersect(m.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var bz=w(()=>{nt()});function K7(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(h){for(var y=h.rB,v=y*y,g=0;g<h.list.length;g++){var _=h.list[g],b=Math.abs(_.label.y-r),x=n+_.len,S=x*x,T=Math.sqrt(Math.abs((1-b*b/v)*S)),E=t+(T+_.len2)*i,z=E-_.label.x,C=_.targetTextWidth-z*i;W7(_,C,!0),_.label.x=E}}function f(h){for(var y={list:[],maxY:0},v={list:[],maxY:0},g=0;g<h.length;g++)if(h[g].labelAlignTo==="none"){var _=h[g],b=_.label.y>r?v:y,x=Math.abs(_.label.y-r);if(x>=b.maxY){var S=_.label.x-t-_.len2*i,T=n+_.len,E=Math.abs(S)<T?Math.sqrt(x*x/(1-S*S/T/T)):T;b.rB=E,b.maxY=x}b.list.push(_)}c(y),c(v)}for(var d=e.length,p=0;p<d;p++)if(e[p].position==="outer"&&e[p].labelAlignTo==="labelLine"){var m=e[p].label.x-u;e[p].linePoints[1][0]+=m,e[p].label.x=u}yz(e,l,l+o)&&f(e)}function gye(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;PL(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(f=Math.max(f,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var m=e[d];if(!PL(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,y=void 0;m.labelAlignTo==="edge"?p.x<t?y=h[2][0]-m.labelDistance-o-m.edgeDistance:y=o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo==="labelLine"?p.x<t?y=c-o-m.bleedMargin:y=o+i-f-m.bleedMargin:p.x<t?y=p.x-o-m.bleedMargin:y=o+i-p.x-m.bleedMargin,m.targetTextWidth=y,W7(m,y)}}K7(u,t,r,n,1,i,a,o,s,f),K7(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var m=e[d];if(!PL(m)&&m.linePoints){var p=m.label,h=m.linePoints,v=m.labelAlignTo==="edge",g=p.style.padding,_=g?g[1]+g[3]:0,b=p.style.backgroundColor?0:_,x=m.rect.width+b,S=h[1][0]-h[2][0];v?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function W7(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var p=t-l,m=t<c?p:r?p>e.unconstrainedWidth?null:p:null;n.setStyle("width",m)}var h=n.getBoundingRect();a.width=h.width;var y=(n.style.margin||0)+2.1;a.height=h.height+y,a.y-=(a.height-f)/2}}}function PL(e){return e.position==="center"}function $L(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*vye,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(S){S.ignore=!0}function m(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}t.each(function(S){var T=t.getItemGraphicEl(S),E=T.shape,z=T.getTextContent(),C=T.getTextGuideLine(),D=t.getItemModel(S),O=D.getModel("label"),k=O.get("position")||D.get(["emphasis","label","position"]),R=O.get("distanceToLabelLine"),j=O.get("alignTo"),Z=Be(O.get("edgeDistance"),u),Q=O.get("bleedMargin"),G=D.getModel("labelLine"),K=G.get("length");K=Be(K,u);var ie=G.get("length2");if(ie=Be(ie,u),Math.abs(E.endAngle-E.startAngle)<o){A(z.states,p),z.ignore=!0,C&&(A(C.states,p),C.ignore=!0);return}if(m(z)){var ce=(E.startAngle+E.endAngle)/2,fe=Math.cos(ce),$e=Math.sin(ce),tt,dt,an,jn;n=E.cx,i=E.cy;var Ar=k==="inside"||k==="inner";if(k==="center")tt=E.cx,dt=E.cy,jn="center";else{var Jt=(Ar?(E.r+E.r0)/2*fe:E.r*fe)+n,Ut=(Ar?(E.r+E.r0)/2*$e:E.r*$e)+i;if(tt=Jt+fe*3,dt=Ut+$e*3,!Ar){var xe=Jt+fe*(K+l-E.r),Ue=Ut+$e*(K+l-E.r),Vn=xe+(fe<0?-1:1)*ie,Qt=Ue;j==="edge"?tt=fe<0?c+Z:c+u-Z:tt=Vn+(fe<0?-R:R),dt=Qt,an=[[Jt,Ut],[xe,Ue],[Vn,Qt]]}jn=Ar?"center":j==="edge"?fe>0?"right":"left":fe>0?"left":"right"}var wa=Math.PI,Bn=0,Ko=O.get("rotate");if(ve(Ko))Bn=Ko*(wa/180);else if(k==="center")Bn=0;else if(Ko==="radial"||Ko===!0){var td=fe<0?-ce+wa:-ce;Bn=td}else if(Ko==="tangential"&&k!=="outside"&&k!=="outer"){var Ea=Math.atan2(fe,$e);Ea<0&&(Ea=wa*2+Ea);var n0=$e>0;n0&&(Ea=wa+Ea),Bn=Ea-wa}if(a=!!Bn,z.x=tt,z.y=dt,z.rotation=Bn,z.setStyle({verticalAlign:"middle"}),Ar){z.setStyle({align:jn});var VA=z.states.select;VA&&(VA.x+=z.x,VA.y+=z.y)}else{var Qs=z.getBoundingRect().clone();Qs.applyTransform(z.getComputedTransform());var XU=(z.style.margin||0)+2.1;Qs.y-=XU/2,Qs.height+=XU,r.push({label:z,labelLine:C,position:k,len:K,len2:ie,minTurnAngle:G.get("minTurnAngle"),maxSurfaceAngle:G.get("maxSurfaceAngle"),surfaceNormal:new Se(fe,$e),linePoints:an,textAlign:jn,labelDistance:R,labelAlignTo:j,edgeDistance:Z,bleedMargin:Q,rect:Qs,unconstrainedWidth:Qs.width,labelStyleWidth:z.style.width})}T.setTextConfig({inside:Ar})}}),!a&&e.get("avoidLabelOverlap")&&gye(r,n,i,l,u,d,c,f);for(var h=0;h<r.length;h++){var y=r[h],v=y.label,g=y.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),_&&(A(v.states,p),v.ignore=!0);var b=v.states.select;b&&(b.x+=v.x,b.y+=v.y)}if(g){var x=y.linePoints;_||!x?(A(g.states,p),g.ignore=!0):(LL(x,y.minTurnAngle),q7(x,y.surfaceNormal,y.maxSurfaceAngle),g.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new Se(x[0][0],x[0][1])})}}}var vye,J7=w(()=>{Ct();nt();I();vz();bz();vye=Math.PI/180});var yye,_ye,Q7,eX=w(()=>{ae();I();nt();ha();Eu();J7();vz();Ri();wL();By();kL();yye=(function(e){L(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new Pt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=$(Rf(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?($t(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,$t(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),$t(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,et(o,{shape:{endAngle:c.endAngle}},s,n))}else Um(o),et(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),Ls(o,l);var p=(c.startAngle+c.endAngle)/2,m=s.get("selectedOffset"),h=Math.cos(p)*m,y=Math.sin(p)*m,v=l.getShallow("cursor");v&&o.attr("cursor",v),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=$({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Rf(u.getModel("itemStyle"),c)),$(o.ensureState("select"),{x:h,y,shape:Rf(l.getModel(["select","itemStyle"]),c)}),$(o.ensureState("blur"),{shape:Rf(l.getModel(["blur","itemStyle"]),c)});var g=o.getTextGuideLine(),_=o.getTextContent();g&&$(g.ensureState("select"),{x:h,y}),$(_.ensureState("select"),{x:h,y}),Za(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;va(a,si(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new ff,this.setTextGuideLine(p)),mz(this,hz(o),{stroke:u,opacity:kn(s.get(["lineStyle","opacity"]),c,1)})}},t})(Fa),_ye=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=OL(r),p=new Fa({shape:$(DL(r,i),d)});p.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(m){var h=new yye(o,m,u);o.setItemGraphicEl(m,h),l.add(h)}).update(function(m,h){var y=s.getItemGraphicEl(h);y.updateData(o,m,u),y.off("click"),l.add(y),o.setItemGraphicEl(m,y)}).remove(function(m){var h=s.getItemGraphicEl(m);hf(h,r,m)}).execute(),$L(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(zr),Q7=_ye});function UL(e,t,r){t=V(t)&&{coordDimensions:t}||$({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Hs(n,t).dimensions,a=new qa(i,e);return a.initData(n,r),a}var tX=w(()=>{Wy();qm();I()});var bye,xz,jL=w(()=>{bye=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e})(),xz=bye});var xye,Sye,rX,nX=w(()=>{ae();tX();I();Ae();Ct();yf();jL();Su();xye=De(),Sye=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new xz(Oe(this.getData,this),Oe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return UL(this,{coordDimensions:["value"],encodeDefaulter:qe(Pq,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=xye(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Z9(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){lf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(nn),rX=Sye});function VL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ve(o)&&!isNaN(o)&&o<0)})}}}var iX=w(()=>{I()});function BL(e){e.registerChartView(Q7),e.registerSeriesModel(rX),V7("pie",e.registerAction),e.registerLayout(qe(NL,"pie")),e.registerProcessor(ML("pie")),e.registerProcessor(VL("pie"))}var aX=w(()=>{CL();kL();F7();I();eX();nX();iX()});var rh,Tye,oX,sX=w(()=>{rh=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),Tye=(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 rh(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new rh(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new rh(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new rh(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new rh(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new rh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),oX=Tye});function Sz(e,t,r,n){return r=r||{},n?lX(e,t,r):Eye&&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):lX(e,t,r),r}function lX(e,t,r){if(ye.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(C2(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(OE(ZL,e,n,i)){r.zrX=ZL[0],r.zrY=ZL[1];return}}r.zrX=r.zrY=0}function Tz(e){return e||window.event}function li(e,t,r){if(t=Tz(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Sz(e,o,t,r)}else{Sz(e,t,t,r);var a=zye(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&wye.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function zye(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function uX(e,t,r,n){e.addEventListener(t,r,n)}function cX(e,t,r,n){e.removeEventListener(t,r,n)}function HL(e){return e.which===2||e.which===3}var wye,ZL,Eye,Pf,$f=w(()=>{Qr();Qy();wye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ZL=[],Eye=ye.browser.firefox&&+ye.browser.version.split(".")[0]<39;Pf=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}});function fX(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Aye(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var dX,FL,pX=w(()=>{$f();dX=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Sz(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in FL)if(FL.hasOwnProperty(r)){var n=FL[r](this._track,t);if(n)return n}},e})();FL={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=fX(n)/fX(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Aye(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}}});function Cye(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:Dye}}function Dye(){Pf(this.event)}function kye(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?hX:!0}return!1}function mX(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=kye(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==hX)){t.target=o;break}}}function gX(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var hX,Nye,h_,Oye,GL,vX,yX,_X=w(()=>{ae();I();cr();sX();iu();$f();pX();dn();hX="silent";Nye=(function(e){L(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})(en),h_=(function(){function e(t,r){this.x=t,this.y=r}return e})(),Oye=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],GL=new ze(0,0,0,0),vX=(function(e){L(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new h_(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Nye,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new oX(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(Oye,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=gX(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new h_(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new h_(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Cye(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new h_(r,n);if(mX(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ze(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(GL.copy(d.getBoundingRect()),d.transform&&GL.applyTransform(d.transform),GL.intersect(c)&&s.push(d))}if(s.length)for(var p=4,m=Math.PI/12,h=Math.PI*2,y=0;y<u;y+=p)for(var v=0;v<h;v+=m){var g=r+y*Math.cos(v),_=n+y*Math.sin(v);if(mX(s,o,g,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new dX);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new h_;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(en);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){vX.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=gX(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),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||my(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});yX=vX});function Mye(e){for(var t=0;e>=SX;)t|=e&1,e>>=1;return e+t}function bX(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;Iye(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Iye(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function xX(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function qL(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function YL(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Rye(e,t){var r=v_,n,i,a=0,o=[];n=[],i=[];function s(p,m){n[a]=p,i[a]=m,a+=1}function l(){for(;a>1;){var p=a-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;c(p)}}function u(){for(;a>1;){var p=a-2;p>0&&i[p-1]<i[p+1]&&p--,c(p)}}function c(p){var m=n[p],h=i[p],y=n[p+1],v=i[p+1];i[p]=h+v,p===a-3&&(n[p+1]=n[p+2],i[p+1]=i[p+2]),a--;var g=YL(e[y],e,m,h,0,t);m+=g,h-=g,h!==0&&(v=qL(e[m+h-1],e,y,v,v-1,t),v!==0&&(h<=v?f(m,h,y,v):d(m,h,y,v)))}function f(p,m,h,y){var v=0;for(v=0;v<m;v++)o[v]=e[p+v];var g=0,_=h,b=p;if(e[b++]=e[_++],--y===0){for(v=0;v<m;v++)e[b+v]=o[g+v];return}if(m===1){for(v=0;v<y;v++)e[b+v]=e[_+v];e[b+y]=o[g];return}for(var x=r,S,T,E;;){S=0,T=0,E=!1;do if(t(e[_],o[g])<0){if(e[b++]=e[_++],T++,S=0,--y===0){E=!0;break}}else if(e[b++]=o[g++],S++,T=0,--m===1){E=!0;break}while((S|T)<x);if(E)break;do{if(S=YL(e[_],o,g,m,0,t),S!==0){for(v=0;v<S;v++)e[b+v]=o[g+v];if(b+=S,g+=S,m-=S,m<=1){E=!0;break}}if(e[b++]=e[_++],--y===0){E=!0;break}if(T=qL(o[g],e,_,y,0,t),T!==0){for(v=0;v<T;v++)e[b+v]=e[_+v];if(b+=T,_+=T,y-=T,y===0){E=!0;break}}if(e[b++]=o[g++],--m===1){E=!0;break}x--}while(S>=v_||T>=v_);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),m===1){for(v=0;v<y;v++)e[b+v]=e[_+v];e[b+y]=o[g]}else{if(m===0)throw new Error;for(v=0;v<m;v++)e[b+v]=o[g+v]}}function d(p,m,h,y){var v=0;for(v=0;v<y;v++)o[v]=e[h+v];var g=p+m-1,_=y-1,b=h+y-1,x=0,S=0;if(e[b--]=e[g--],--m===0){for(x=b-(y-1),v=0;v<y;v++)e[x+v]=o[v];return}if(y===1){for(b-=m,g-=m,S=b+1,x=g+1,v=m-1;v>=0;v--)e[S+v]=e[x+v];e[b]=o[_];return}for(var T=r;;){var E=0,z=0,C=!1;do if(t(o[_],e[g])<0){if(e[b--]=e[g--],E++,z=0,--m===0){C=!0;break}}else if(e[b--]=o[_--],z++,E=0,--y===1){C=!0;break}while((E|z)<T);if(C)break;do{if(E=m-YL(o[_],e,p,m,m-1,t),E!==0){for(b-=E,g-=E,m-=E,S=b+1,x=g+1,v=E-1;v>=0;v--)e[S+v]=e[x+v];if(m===0){C=!0;break}}if(e[b--]=o[_--],--y===1){C=!0;break}if(z=y-qL(e[g],o,0,y,y-1,t),z!==0){for(b-=z,_-=z,y-=z,S=b+1,x=_+1,v=0;v<z;v++)e[S+v]=o[x+v];if(y<=1){C=!0;break}}if(e[b--]=e[g--],--m===0){C=!0;break}T--}while(E>=v_||z>=v_);if(C)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),y===1){for(b-=m,g-=m,S=b+1,x=g+1,v=m-1;v>=0;v--)e[S+v]=e[x+v];e[b]=o[_]}else{if(y===0)throw new Error;for(x=b-(y-1),v=0;v<y;v++)e[x+v]=o[v]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Uf(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<SX){a=bX(e,r,n,t),xX(e,r,n,r+a,t);return}var o=Rye(e,t),s=Mye(i);do{if(a=bX(e,r,n,t),a<s){var l=i;l>s&&(l=s),xX(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var SX,v_,XL=w(()=>{SX=32,v_=7});function KL(){TX||(TX=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function wX(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var TX,Lye,EX,zX=w(()=>{I();XL();wm();TX=!1;Lye=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wX}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Uf(n,wX)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=In),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(KL(),c.z=0),isNaN(c.z2)&&(KL(),c.z2=0),isNaN(c.zlevel)&&(KL(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=Ne(this._roots,t);i>=0&&this._roots.splice(i,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})(),EX=Lye});var AX,WL,CX=w(()=>{Qr();AX=ye.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};WL=AX});function jf(){return new Date().getTime()}var Pye,DX,NX=w(()=>{ae();iu();CX();YI();Pye=(function(e){L(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=jf()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(WL(n),!r._paused&&r.update())}WL(n)},t.prototype.start=function(){this._running||(this._time=jf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=jf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=jf()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Sy(r,n.loop);return this.addAnimator(i),i},t})(en),DX=Pye});function rP(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Uye(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 eP(e){e&&(e.zrByTouch=!0)}function jye(e,t){return li(e.dom,new Vye(e,t),!0)}function IX(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}function Bye(e,t){var r=t.domHandlers;ye.pointerEventsSupported?A(QL.pointer,function(n){Ez(t,n,function(i){r[n].call(e,i)})}):(ye.touchEventsSupported&&A(QL.touch,function(n){Ez(t,n,function(i){r[n].call(e,i),Uye(t)})}),A(QL.mouse,function(n){Ez(t,n,function(i){i=Tz(i),t.touching||r[n].call(e,i)})}))}function Zye(e,t){ye.pointerEventsSupported?A(OX.pointer,r):ye.touchEventsSupported||A(OX.mouse,r);function r(n){function i(a){a=Tz(a),IX(e,a.target)||(a=jye(e,a),t.domHandlers[n].call(e,a))}Ez(t,n,i,{capture:!0})}}function Ez(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,uX(e.domTarget,t,r,n)}function tP(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&cX(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var $ye,JL,QL,OX,kX,Vye,Qa,nP,MX,Hye,RX,LX=w(()=>{ae();$f();I();iu();Qr();$ye=300,JL=ye.domSupported,QL=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=H(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),OX={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},kX=!1;Vye=(function(){function e(t,r){this.stopPropagation=Lt,this.stopImmediatePropagation=Lt,this.preventDefault=Lt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Qa={mousedown:function(e){e=li(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=li(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=li(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=li(this.dom,e);var t=e.toElement||e.relatedTarget;IX(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){kX=!0,e=li(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){kX||(e=li(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=li(this.dom,e),eP(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Qa.mousemove.call(this,e),Qa.mousedown.call(this,e)},touchmove:function(e){e=li(this.dom,e),eP(e),this.handler.processGesture(e,"change"),Qa.mousemove.call(this,e)},touchend:function(e){e=li(this.dom,e),eP(e),this.handler.processGesture(e,"end"),Qa.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<$ye&&Qa.click.call(this,e)},pointerdown:function(e){Qa.mousedown.call(this,e)},pointermove:function(e){rP(e)||Qa.mousemove.call(this,e)},pointerup:function(e){Qa.mouseup.call(this,e)},pointerout:function(e){rP(e)||Qa.mouseout.call(this,e)}};A(["click","dblclick","contextmenu"],function(e){Qa[e]=function(t){t=li(this.dom,t),this.trigger(e,t)}});nP={pointermove:function(e){rP(e)||nP.mousemove.call(this,e)},pointerup:function(e){nP.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))}};MX=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),Hye=(function(e){L(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new MX(r,Qa),JL&&(i._globalHandlerScope=new MX(document,nP)),Bye(i,i._localHandlerScope),i}return t.prototype.dispose=function(){tP(this._localHandlerScope),JL&&tP(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,JL&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Zye(this,n):tP(n)}},t})(en),RX=Hye});function Fye(e){delete PX[e]}function Gye(e){if(!e)return!1;if(typeof e=="string")return Tm(e,1)<Ty;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Tm(t[i].color,1);return r/=n,r<Ty}return!1}function aP(e,t){var r=new qye(YT(),e,t);return PX[r.id]=r,r}function $X(e,t){zz[e]=t}function UX(e){if(typeof iP=="function")return iP(e)}function jX(e){iP=e}var zz,PX,qye,iP,Az=w(()=>{Qr();I();_X();zX();NX();LX();ko();zy();Lm();zz={},PX={};qye=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new EX,o=n.renderer||"canvas";zz[o]||(o=pe(zz)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new zz[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ye.node&&!ye.worker&&!l?new RX(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ye.touchEventsSupported:!!c,d=44,p;f&&(p=se(n.pointerSize,d)),this.handler=new yX(a,s,u,s.root,p),this.animation=new DX({stage:{update:l?null:function(){return i._flush(!0)}}}),l||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=Gye(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,n=jf();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=jf();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._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,n){return this._disposed||this.handler.on(t,r,n),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 Ye&&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,Fye(this.id))},e})()});var VX,nh,BX,ZX=w(()=>{VX="";typeof navigator<"u"&&(VX=navigator.platform||"");nh="rgba(0, 0, 0, 0.2)",BX={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:nh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:nh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:nh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:nh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:nh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:nh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:VX.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}});function HX(e,t,r){var n=Xye.get(t);if(!n)return r;var i=n(e);if(!i)return r;if(0)for(var a;a<i.length;a++);return r.concat(i)}var Xye,FX=w(()=>{I();Xye=oe()});function Wye(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function Jye(e,t){var r=e.color&&!e.colorLayer;A(t,function(n,i){i==="colorLayer"&&r||ft.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Qe(e[i],n,!1):_e(n):e[i]==null&&(e[i]=n))})}function YX(e,t,r){if(V(t)){var n=oe();return A(t,function(a){if(a!=null){var o=rn(a,null);o!=null&&n.set(a,!0)}}),xt(r,function(a){return a&&n.get(a[e])})}else{var i=rn(t,null);return xt(r,function(a){return a&&i!=null&&a[e]===i})}}function XX(e,t){return t.hasOwnProperty("subType")?xt(e,function(r){return r&&r.subType===t.subType}):e}function KX(e){var t=oe();return e&&A(Gt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}var Cz,g_,GX,qX,Kye,WX,Dz,oP=w(()=>{ae();I();Ae();Li();qs();ZX();yf();FX();G2();qX="\0_ec_inner",Kye=1,WX=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new ht(a),this._locale=new ht(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=KX(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,KX(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?GX(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=oe(),u=n&&n.replaceMergeMainTypeMap;Rq(this),A(r,function(f,d){f!=null&&(ft.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?_e(f):Qe(i[d],f,!0))}),u&&u.each(function(f,d){ft.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),c,this);function c(f){var d=HX(this,f,Gt(r[f])),p=a.get(f),m=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",h=K9(p,d,m);J9(h,f,ft),i[f]=null,a.set(f,null),o.set(f,0);var y=[],v=[],g=0,_,b;A(h,function(x,S){var T=x.existing,E=x.newOption;if(!E)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var z=f==="series",C=ft.getClass(f,x.keyInfo.subType,!z);if(!C){if(0)var D,O;return}if(f==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===C)T.name=x.keyInfo.name,T.mergeOption(E,this),T.optionUpdated(E,!1);else{var k=$({componentIndex:S},x.keyInfo);T=new C(E,this,this,k),$(T,k),x.brandNew&&(T.__requireNewView=!0),T.init(E,this,this),T.optionUpdated(null,!0)}}T?(y.push(T.option),v.push(T),g++):(y.push(void 0),v.push(void 0))},this),i[f]=y,a.set(f,v),o.set(f,g),f==="series"&&Cz(this)}this._seriesIndices||Cz(this)},t.prototype.getOption=function(){var r=_e(this.option);return A(r,function(n,i){if(ft.hasClass(i)){for(var a=Gt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Dm(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[qX],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(Gt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=YX("id",a,s):o!=null?l=YX("name",o,s):l=xt(s,function(u){return!!u}),XX(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):xt(this._componentsMap.get(i),function(u){return!!u});return l(XX(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?xt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(te(r)){var o=n,s=r;a.each(function(f,d){for(var p=0;f&&p<f.length;p++){var m=f[p];m&&s.call(o,d,m,m.componentIndex)}})}else for(var l=F(r)?a.get(r):J(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=rn(r,null);return xt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return xt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return xt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){g_(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){g_(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return A(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return g_(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){g_(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=oe(i)},t.prototype.restoreData=function(r){Cz(this);var n=this._componentsMap,i=[];n.each(function(a,o){ft.hasClass(o)&&i.push(o)}),ft.topologicalTravel(i,ft.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!Wye(o,r))&&o.restoreData()})})},t.internalField=(function(){Cz=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=oe(n)},g_=function(r){},GX=function(r,n){r.option={},r.option[qX]=Kye,r._componentsMap=oe({series:[]}),r._componentsCount=oe();var i=n.aria;J(i)&&i.enabled==null&&(i.enabled=!0),Jye(n,r._theme.option),Qe(n,BX,!1),r._mergeOption(n,null)}})(),t})(ht);Ir(WX,o_);Dz=WX});var Qye,e_e,Nz,sP=w(()=>{I();Qye=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],e_e=(function(){function e(t){A(Qye,function(r){this[r]=Oe(t[r],t)},this)}return e})(),Nz=e_e});function n_e(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&V(u)&&A(u,function(p){p&&p.option&&(p.query?n.push(p):i||(i=p))}),d(a),A(l,function(p){return d(p)}),A(n,function(p){return d(p.option)});function d(p){A(t,function(m){m(p,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function i_e(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return A(e,function(a,o){var s=o.match(t_e);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();a_e(n[u],a,l)||(i=!1)}}),i}function a_e(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function o_e(e,t){return e.join(",")===t.join(",")}var t_e,r_e,JX,QX=w(()=>{Ae();I();t_e=/^(min|max)?(.+)$/,r_e=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(A(Gt(t.series),function(o){o&&o.data&&nr(o.data)&&om(o.data)}),A(Gt(t.dataset),function(o){o&&o.source&&nr(o.source)&&om(o.source)})),t=_e(t);var i=this._optionBackup,a=n_e(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],_e(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=_e(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)i_e(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!o_e(o,this._currentMediaIndices)&&(s=H(o,function(c){return _e(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e})();JX=r_e});function lP(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=eK.length;r<n;r++){var i=eK[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Qe(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Qe(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function vn(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,de(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function y_(e){vn(e,"itemStyle"),vn(e,"lineStyle"),vn(e,"areaStyle"),vn(e,"label"),vn(e,"labelLine"),vn(e,"upperLabel"),vn(e,"edgeLabel")}function dr(e,t){var r=__(e)&&e[t],n=__(r)&&r.textStyle;if(n)for(var i=0,a=SR.length;i<a;i++){var o=SR[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function _a(e){e&&(y_(e),dr(e,"label"),e.emphasis&&dr(e.emphasis,"label"))}function s_e(e){if(__(e)){lP(e),y_(e),dr(e,"label"),dr(e,"upperLabel"),dr(e,"edgeLabel"),e.emphasis&&(dr(e.emphasis,"label"),dr(e.emphasis,"upperLabel"),dr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(lP(t),_a(t));var r=e.markLine;r&&(lP(r),_a(r));var n=e.markArea;n&&_a(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!nr(a))for(var o=0;o<a.length;o++)_a(a[o]);A(e.categories,function(u){y_(u)})}if(i&&!nr(i))for(var o=0;o<i.length;o++)_a(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)_a(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)V(l[o])?(_a(l[o][0]),_a(l[o][1])):_a(l[o]);e.type==="gauge"?(dr(e,"axisLabel"),dr(e,"title"),dr(e,"detail")):e.type==="treemap"?(vn(e.breadcrumb,"itemStyle"),A(e.levels,function(u){y_(u)})):e.type==="tree"&&y_(e.leaves)}}function Ys(e){return V(e)?e:e?[e]:[]}function tK(e){return(V(e)?e[0]:e)||{}}function uP(e,t){eo(Ys(e.series),function(n){__(n)&&s_e(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),eo(r,function(n){eo(Ys(e[n]),function(i){i&&(dr(i,"axisLabel"),dr(i.axisPointer,"label"))})}),eo(Ys(e.parallel),function(n){var i=n&&n.parallelAxisDefault;dr(i,"axisLabel"),dr(i&&i.axisPointer,"label")}),eo(Ys(e.calendar),function(n){vn(n,"itemStyle"),dr(n,"dayLabel"),dr(n,"monthLabel"),dr(n,"yearLabel")}),eo(Ys(e.radar),function(n){dr(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),eo(Ys(e.geo),function(n){__(n)&&(_a(n),eo(Ys(n.regions),function(i){_a(i)}))}),eo(Ys(e.timeline),function(n){_a(n),vn(n,"label"),vn(n,"itemStyle"),vn(n,"controlStyle",!0);var i=n.data;V(i)&&A(i,function(a){J(a)&&(vn(a,"label"),vn(a,"itemStyle"))})}),eo(Ys(e.toolbox),function(n){vn(n,"iconStyle"),eo(n.feature,function(i){vn(i,"iconStyle")})}),dr(tK(e.axisPointer),"label"),dr(tK(e.tooltip).axisPointer,"label")}var eo,__,eK,rK=w(()=>{I();Ae();eo=A,__=J,eK=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"]});function l_e(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function u_e(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function nK(e){e&&A(c_e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function b_(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<cP.length;r++){var n=cP[r][1],i=cP[r][0];t[n]!=null&&(t[i]=t[n])}}function iK(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function aK(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function d_e(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function oK(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&oK(e[r].children,t)}function Oz(e,t){uP(e,t),e.series=Gt(e.series),A(e.series,function(r){if(J(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),iK(r.label);var i=r.data;if(i&&!nr(i))for(var a=0;a<i.length;a++)iK(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=l_e(r,"pointer.color");o!=null&&u_e(r,"itemStyle.color",o)}else if(n==="bar"){b_(r),b_(r.backgroundStyle),b_(r.emphasis);var i=r.data;if(i&&!nr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(b_(i[a]),b_(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),aK(r),oK(r.data,aK)}else n==="graph"||n==="sankey"?d_e(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&de(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),nK(r)}}),e.dataRange&&(e.visualMap=e.dataRange),A(f_e,function(r){var n=e[r];n&&(V(n)||(n=[n]),A(n,function(i){nK(i)}))})}var c_e,f_e,cP,sK=w(()=>{I();rK();Ae();c_e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],f_e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],cP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]]});function fP(e){var t=oe();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(p_e)}function p_e(e){A(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var p,m;s?m=o.getRawIndex(f):p=o.get(t.stackedByDimension,f);for(var h=NaN,y=r-1;y>=0;y--){var v=e[y];if(s||(m=v.data.rawIndexOf(v.stackedByDimension,p)),m>=0){var g=v.data.getByRawIndex(v.stackResultDimension,m);if(l==="all"||l==="positive"&&g>0||l==="negative"&&g<0||l==="samesign"&&d>=0&&g>0||l==="samesign"&&d<=0&&g<0){d=H9(d,g),h=g;break}}}return n[0]=d,n[1]=h,n})})}var lK=w(()=>{I();Ct()});var dP,$n,Au=w(()=>{Lm();wf();Ao();dP=(function(){function e(){this.group=new Ye,this.uid=vu("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();lm(dP);Jl(dP);$n=dP});function fK(e,t){var r=e.visualStyleMapper||cK[t];return r||(console.warn("Unknown style type '"+t+"'."),cK.itemStyle)}function dK(e,t){var r=e.visualDrawType||m_e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var uK,cK,m_e,pK,x_,mK,hK,vK=w(()=>{I();sy();i2();r2();Li();Ae();uK=De(),cK={itemStyle:Co(n2,!0),lineStyle:Co(t2,!0)},m_e={lineStyle:"stroke",itemStyle:"fill"};pK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=fK(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=dK(e,n),u=o[l],c=te(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||te(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||te(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(p,m){var h=e.getDataParams(m),y=$({},o);y[l]=c(h),p.setItemVisual(m,"style",y)}}}},x_=new ht,mK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=fK(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){x_.option=l[n];var u=i(x_),c=o.ensureUniqueItemVisual(s,"style");$(c,u),x_.option.decal&&(o.setItemVisual(s,"decal",x_.option.decal),x_.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},hK={performRawSeries:!0,overallReset:function(e){var t=oe();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),uK(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=uK(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=dK(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),p=n.getName(u)||u+"",m=n.count();d[l]=r.getColorFromPalette(p,o,m)}})}})}}});function pP(e,t){t=t||{},de(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ye,n=new ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new Pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Vy({shape:{startAngle:-kz/2,endAngle:-kz/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:kz*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kz*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var kz,gK=w(()=>{I();nt();kz=Math.PI});function v_e(e){e.overallReset(e.ecModel,e.api,e.payload)}function g_e(e){return e.overallProgress&&y_e}function y_e(){this.agent.dirty(),this.getDownstream().dirty()}function __e(){this.agent&&this.agent.dirty()}function b_e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function x_e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Gt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?H(t,function(r,n){return yK(n)}):S_e}function yK(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function T_e(e){return e.data.count()}function w_e(e){Mz=null;try{e(S_,_K)}catch{}return Mz}function bK(e,t){for(var r in t.prototype)e[r]=Lt}var h_e,S_e,S_,_K,Mz,mP,xK=w(()=>{I();GE();wf();oP();sP();Ae();h_e=(function(){function e(t,r,n,i){this._stageTaskMap=oe(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=oe();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ir(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;A(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,m=d.agentStubMap;m.each(function(y){s(i,y)&&(y.dirty(),p=!0)}),p&&d.dirty(),o.updatePayload(d,n);var h=o.getPerformArgs(d,i.block);m.each(function(y){y.perform(h)}),d.perform(h)&&(a=!0)}else f&&f.each(function(y,v){s(i,y)&&y.dirty();var g=o.getPerformArgs(y,i.block);g.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(g)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=oe(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,p=s.set(d,o&&o.get(d)||bu({plan:b_e,reset:x_e,count:T_e}));p.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,p)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||bu({reset:v_e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=oe(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,p="";ir(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,m):c?c(n,i).each(m):(f=!1,A(n.getSeries(),m));function m(h){var y=h.uid,v=l.set(y,s&&s.get(y)||(d=!0,bu({reset:g_e,onDirty:__e})));v.context={model:h,overallProgress:f},v.agent=o,v.__block=f,a._pipe(h,v)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return te(t)&&(t={overallReset:t,seriesType:w_e(t)}),t.uid=vu("stageHandler"),r&&(t.visualType=r),t},e})();S_e=yK(0);S_={},_K={};bK(S_,Dz);bK(_K,Nz);S_.eachSeriesByType=S_.eachRawSeriesByType=function(e){Mz=e};S_.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Mz=e.subType)};mP=h_e});var SK,TK,wK=w(()=>{SK=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],TK={color:SK,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],SK]}});var gn,EK,Iz,zK,AK,CK,DK=w(()=>{gn="#B9B8CE",EK="#100C2A",Iz=function(){return{axisLine:{lineStyle:{color:gn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},zK=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],AK={darkMode:!0,color:zK,backgroundColor:EK,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:gn},pageTextStyle:{color:gn}},textStyle:{color:gn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:gn}},dataZoom:{borderColor:"#71708A",textStyle:{color:gn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:gn}},timeline:{lineStyle:{color:gn},label:{color:gn},controlStyle:{color:gn,borderColor:gn}},calendar:{itemStyle:{color:EK},dayLabel:{color:gn},monthLabel:{color:gn},yearLabel:{color:gn}},timeAxis:Iz(),logAxis:Iz(),valueAxis:Iz(),categoryAxis:Iz(),line:{symbol:"circle"},graph:{color:zK},gauge:{title:{color:gn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:gn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};AK.categoryAxis.splitLine.show=!1;CK=AK});var NK,OK=w(()=>{I();Ao();NK=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(F(t)){var a=Qn(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var m=u.slice(0,p);m!=="data"&&(r.mainType=m,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,p,m){return f[p]==null||d[m||p]===f[p]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})()});var hP,kK,MK,IK,RK=w(()=>{I();hP=["symbol","symbolSize","symbolRotate","symbolOffset"],kK=hP.concat(["symbolKeepAspect"]),MK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<hP.length;o++){var s=hP[o],l=e.get(s);te(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual($({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=pe(i);function c(f,d){for(var p=e.getRawValue(d),m=e.getDataParams(d),h=0;h<u.length;h++){var y=u[h];f.setItemVisual(d,y,i[y](p,m))}}return{dataEach:a?c:null}}},IK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<kK.length;s++){var l=kK[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}}});function LK(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:}}function PK(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:}}var $K=w(()=>{});function Vf(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var vP=w(()=>{});var E_e,z_e,A_e,UK,jK=w(()=>{E_e=Math.round(Math.random()*9),z_e=typeof Object.defineProperty=="function",A_e=(function(){function e(){this._id="__ec_inner_"+E_e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return z_e?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),UK=A_e});function Bf(e){return isFinite(e)}function C_e(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Bf(n)?n:0,i=Bf(i)?i:1,a=Bf(a)?a:0,o=Bf(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function D_e(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Bf(o)?o:.5,s=Bf(s)?s:.5,l=l>=0&&Bf(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function gP(e,t,r){for(var n=t.type==="radial"?D_e(e,t,r):C_e(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function VK(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Rz(e){return parseInt(e,10)}function yP(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Rz(s[n])||Rz(e.style[n]))-(Rz(s[a])||0)-(Rz(s[o])||0)|0}var _P=w(()=>{});function N_e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ve(e)?[e]:V(e)?e:null}function T_(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&N_e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=H(r,function(a){return a/i}),n/=i)}return[r,n]}var bP=w(()=>{I()});function Lz(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function BK(e){return typeof e=="string"&&e!=="none"}function Pz(e){var t=e.fill;return t!=null&&t!=="none"}function ZK(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function HK(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function FK(e,t,r){var n=uy(t.image,t.__image,r);if(um(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*sm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function k_e(e,t,r,n){var i,a=Lz(r),o=Pz(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||O_e,f=t.__dirty;if(!n){var d=r.fill,p=r.stroke,m=o&&!!d.colorStops,h=a&&!!p.colorStops,y=o&&!!d.image,v=a&&!!p.image,g=void 0,_=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(g=f?gP(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=g),h&&(_=f?gP(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),y&&(b=f||!t.__canvasFillPattern?FK(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),v&&(x=f||!t.__canvasStrokePattern?FK(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),m?e.fillStyle=g:y&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=_:v&&(x?e.strokeStyle=x:a=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var E,z;e.setLineDash&&r.lineDash&&(i=T_(t),E=i[0],z=i[1]);var C=!0;(u||f&au)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),E&&(e.setLineDash(E),e.lineDashOffset=z),n||(r.strokeFirst?(a&&HK(e,r),o&&ZK(e,r)):(o&&ZK(e,r),a&&HK(e,r))),E&&e.setLineDash([])}function M_e(e,t,r){var n=t.__image=uy(r.image,t.__image,t,t.onload);if(!(!n||!um(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function I_e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Di,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=T_(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Lz(r)&&e.strokeText(i,r.x,r.y),Pz(r)&&e.fillText(i,r.x,r.y)):(Pz(r)&&e.fillText(i,r.x,r.y),Lz(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}function QK(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ui(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Io.opacity:o}(n||t.blend!==r.blend)&&(a||(ui(e,i),a=!0),e.globalCompositeOperation=t.blend||Io.blend);for(var s=0;s<GK.length;s++){var l=GK[s];(n||t[l]!==r[l])&&(a||(ui(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ui(e,i),a=!0),e.shadowColor=t.shadowColor||Io.shadowColor),a}function YK(e,t,r,n,i){var a=w_(t,i.inHover),o=n?null:r&&w_(r,i.inHover)||{};if(a===o)return!1;var s=QK(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ui(e,i),s=!0),BK(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ui(e,i),s=!0),BK(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ui(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ui(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<qK.length;c++){var f=qK[c],d=f[0];(n||a[d]!==o[d])&&(s||(ui(e,i),s=!0),e[d]=a[d]||f[1])}return s}function R_e(e,t,r,n,i){return QK(e,w_(t,i.inHover),r&&w_(r,i.inHover),n,i)}function eW(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function L_e(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),eW(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function P_e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}function $_e(e){var t=Pz(e),r=Lz(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ui(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function w_(e,t){return t&&e.__hoverStyle||e.style}function tW(e,t){xP(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xP(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~In,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||VK(a,o))&&(o&&o.length&&(ui(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ui(e,r),e.save(),L_e(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof me&&t.autoBatch&&$_e(t.style);s||P_e(i,u.transform)?(ui(e,r),eW(e,t)):c||ui(e,r);var f=w_(t,r.inHover);t instanceof me?(r.lastDrawType!==XK&&(l=!0,r.lastDrawType=XK),YK(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),k_e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof of?(r.lastDrawType!==WK&&(l=!0,r.lastDrawType=WK),YK(e,t,u,l,r),I_e(e,t,f)):t instanceof pn?(r.lastDrawType!==KK&&(l=!0,r.lastDrawType=KK),R_e(e,t,u,l,r),M_e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==JK&&(l=!0,r.lastDrawType=JK),U_e(e,t,r)),c&&n&&ui(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function U_e(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xP(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xP(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var O_e,GK,qK,XK,KK,WK,JK,rW=w(()=>{Wc();Uo();ew();_P();ar();sf();Vw();I();bP();wm();Eo();O_e=new tn(!0);GK=["shadowBlur","shadowOffsetX","shadowOffsetY"],qK=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];XK=1,KK=2,WK=3,JK=4});function E_(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&SP.delete(e);var a=SP.get(e);if(a)return a;var o=de(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,SP.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<iW.length;++d){var p=o[iW[d]];if(p!=null&&!V(p)&&!F(p)&&!ve(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var m;if(f){m=c.join(",")+(i?"-svg":"");var h=nW.get(m);h&&(i?u.svgElement=h:u.image=h)}var y=oW(o.dashArrayX),v=j_e(o.dashArrayY),g=aW(o.symbol),_=V_e(y),b=sW(v),x=!i&&Ua.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=z(),E;x&&(x.width=T.width*r,x.height=T.height*r,E=x.getContext("2d")),C(),f&&nW.put(m,x||S),u.image=x,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function z(){for(var D=1,O=0,k=_.length;O<k;++O)D=xR(D,_[O]);for(var R=1,O=0,k=g.length;O<k;++O)R=xR(R,g[O].length);D*=R;var j=b*_.length*g.length;if(0)var Z;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(j,o.maxTileHeight))}}function C(){E&&(E.clearRect(0,0,x.width,x.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,x.width,x.height)));for(var D=0,O=0;O<v.length;++O)D+=v[O];if(D<=0)return;for(var k=-b,R=0,j=0,Z=0;k<T.height;){if(R%2===0){for(var Q=j/2%g.length,G=0,K=0,ie=0;G<T.width*2;){for(var ce=0,O=0;O<y[Z].length;++O)ce+=y[Z][O];if(ce<=0)break;if(K%2===0){var fe=(1-o.symbolSize)*.5,$e=G+y[Z][K]*fe,tt=k+v[R]*fe,dt=y[Z][K]*o.symbolSize,an=v[R]*o.symbolSize,jn=ie/2%g[Q].length;Ar($e,tt,dt,an,g[Q][jn])}G+=y[Z][K],++ie,++K,K===y[Z].length&&(K=0)}++Z,Z===y.length&&(Z=0)}k+=v[R],++j,++R,R===v.length&&(R=0)}function Ar(Jt,Ut,xe,Ue,Vn){var Qt=i?1:r,wa=Vi(Vn,Jt*Qt,Ut*Qt,xe*Qt,Ue*Qt,o.color,o.symbolKeepAspect);if(i){var Bn=n.painter.renderOneToVNode(wa);Bn&&S.children.push(Bn)}else tW(E,wa)}}}}function aW(e){if(!e||e.length===0)return[["rect"]];if(F(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!F(e[r])){t=!1;break}if(t)return aW([e]);for(var n=[],r=0;r<e.length;++r)F(e[r])?n.push([e[r]]):n.push(e[r]);return n}function oW(e){if(!e||e.length===0)return[[0,0]];if(ve(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ve(e[n])){r=!1;break}if(r)return oW([e]);for(var i=[],n=0;n<e.length;++n)if(ve(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=H(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function j_e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ve(e)){var t=Math.ceil(e);return[t,t]}var r=H(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function V_e(e){return H(e,function(t){return sW(t)})}function sW(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var SP,nW,iW,TP=w(()=>{jK();ly();I();Ct();Of();rW();Eo();SP=new UK,nW=new Ts(100),iW=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"]});function wP(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=E_(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=E_(i,t)}}})}var lW=w(()=>{TP()});var B_e,ba,uW=w(()=>{iu();B_e=new en,ba=B_e});function fW(e,t){cW[e]=t}function dW(e){return cW[e]}var cW,EP=w(()=>{cW={}});function zW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return CW(this,e,t)}}function AW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return CW(this,e,t)}}function CW(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),en.prototype[t].apply(e,r)}function IW(e,t,r){var n=!(r&&r.ssr);if(n){var i=i0e(e);if(i)return i}var a=new kW(e,t,r);return a.id="ec_"+n0e++,D_[a.id]=a,n&&TR(e,$P,a.id),OW(a),ba.trigger("afterinit",a),a}function i0e(e){return D_[Q9(e,$P)]}function RW(e,t){MW[e]=t}function UP(e){Ne(IP,e)<0&&IP.push(e)}function jP(e,t){VP(MP,e,t,q_e)}function LW(e){Zz("afterinit",e)}function PW(e){Zz("afterupdate",e)}function Zz(e,t){ba.on(e,t)}function Xs(e,t,r){te(t)&&(r=t,t="");var n=J(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!C_[t]&&(ir(pW.test(n)&&pW.test(t)),jz[n]||(jz[n]={action:r,actionInfo:e}),C_[t]=n)}function $W(e,t){Tf.register(e,t)}function UW(e,t){VP(Vz,e,t,SW,"layout")}function Du(e,t){VP(Vz,e,t,TW,"visual")}function VP(e,t,r,n,i){if((te(t)||J(t))&&(r=t,t=n),!(Ne(xW,r)>=0)){xW.push(r);var a=mP.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function BP(e,t){RP[e]=t}function jW(e,t,r){var n=dW("registerMap");n&&n(e,t,r)}var Z_e,H_e,F_e,G_e,q_e,Y_e,SW,X_e,LP,TW,K_e,Bz,W_e,J_e,Q_e,wW,EW,yn,ci,zP,pW,AP,mW,e0e,t0e,DW,NW,ih,CP,$z,Cu,DP,NP,OP,z_,A_,hW,vW,kP,gW,Uz,yW,OW,xa,_W,kW,PP,r0e,jz,C_,MP,IP,Vz,MW,RP,D_,bW,n0e,iBe,$P,xW,VW,Hz=w(()=>{ae();Az();I();Qr();XL();iu();oP();sP();DE();QX();sK();lK();Su();Au();Eu();nt();ai();ha();Ae();p_();vK();gK();xK();wK();DK();Ao();OK();RK();$K();CL();K2();O2();vP();lW();uW();Eo();EP();Z_e=1,H_e=800,F_e=900,G_e=1e3,q_e=2e3,Y_e=5e3,SW=1e3,X_e=1100,LP=2e3,TW=3e3,K_e=4e3,Bz=4500,W_e=4600,J_e=5e3,Q_e=6e3,wW=7e3,EW={PROCESSOR:{FILTER:G_e,SERIES_FILTER:H_e,STATISTIC:Y_e},VISUAL:{LAYOUT:SW,PROGRESSIVE_LAYOUT:X_e,GLOBAL:LP,CHART:TW,POST_CHART_LAYOUT:W_e,COMPONENT:K_e,BRUSH:J_e,CHART_ITEM:Bz,ARIA:Q_e,DECAL:wW}},yn="__flagInMainProcess",ci="__pendingUpdate",zP="__needsUpdateStatus",pW=/^[a-zA-Z0-9_]+$/,AP="__connectUpdateStatus",mW=0,e0e=1,t0e=2;DW=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(en),NW=DW.prototype;NW.on=AW("on");NW.off=AW("off");kW=(function(e){L(t,e);function t(r,n,i){var a=e.call(this,new NK)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},F(n)&&(n=MW[n]),a._dom=r;var o="canvas",s="auto",l=!1;if(0)var u;i.ssr&&jX(function(p){var m=we(p),h=m.dataIndex;if(h!=null){var y=oe();return y.set("series_index",m.seriesIndex),y.set("data_index",h),m.ssrType&&y.set("ssr_type",m.ssrType),y}});var c=a._zr=aP(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:se(i.useDirtyRect,l),useCoarsePointer:se(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=f_(Oe(c.flush,c),17),n=_e(n),n&&Oz(n,!0),a._theme=n,a._locale=hY(i.locale||IE),a._coordSysMgr=new Tf;var f=a._api=yW(a);function d(p,m){return p.__prio-m.__prio}return Uf(Vz,d),Uf(MP,d),a._scheduler=new mP(a,f,MP,Vz),a._messageCenter=new DW,a._initEvents(),a.resize=Oe(a.resize,a),c.animation.on("frame",a._onframe,a),hW(c,a),vW(c,a),om(a),a}return t.prototype._onframe=function(){if(!this._disposed){_W(this);var r=this._scheduler;if(this[ci]){var n=this[ci].silent;this[yn]=!0;try{ih(this),Cu.update.call(this,null,this[ci].updateParams)}catch(l){throw this[yn]=!1,this[ci]=null,l}this._zr.flush(),this[yn]=!1,this[ci]=null,z_.call(this,n),A_.call(this,n)}else if(r.unfinished){var i=Z_e,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),NP(this,a),r.performVisualTasks(a),Uz(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[yn]){if(this._disposed){this.id;return}var a,o,s;if(J(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yn]=!0,!this._model||n){var l=new JX(this._api),u=this._theme,c=this._model=new Dz;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},IP);var f={seriesTransition:s,optionChanged:!0};if(i)this[ci]={silent:a,updateParams:f},this[yn]=!1,this.getZr().wakeUp();else{try{ih(this),Cu.update.call(this,null,f)}catch(d){throw this[ci]=null,this[yn]=!1,d}this._ssr||this._zr.flush(),this[ci]=null,this[yn]=!1,z_.call(this,a),A_.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ye.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ye.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(bW[i]){var l=s,u=s,c=-s,f=-s,d=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();A(D_,function(_,b){if(_.group===i){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(_e(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=p,u*=p,c*=p,f*=p;var m=c-l,h=f-u,y=Ua.createCanvas(),v=aP(y,{renderer:n?"svg":"canvas"});if(v.resize({width:m,height:h}),n){var g="";return A(d,function(_){var b=_.left-l,x=_.top-u;g+='<g transform="translate('+b+","+x+')">'+_.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=g,r.connectedBackgroundColor&&v.painter.setBackgroundColor(r.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return r.connectedBackgroundColor&&v.add(new ct({shape:{x:0,y:0,width:m,height:h},style:{fill:r.connectedBackgroundColor}})),A(d,function(_){var b=new pn({style:{x:_.left*p-l,y:_.top*p-u,image:_.dom}});v.add(b)}),v.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return DP(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return DP(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Kw(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Kw(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?LK(s,l,n):PK(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;A(r0e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Vf(s,function(m){var h=we(m);if(h&&h.dataIndex!=null){var y=h.dataModel||o.getSeriesByIndex(h.seriesIndex);return l=y&&y.getDataParams(h.dataIndex,h.dataType,s)||{},!0}else if(h.eventData)return l=$({},h.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),p=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),A(C_,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),A(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),B7(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&TR(this.getDom(),$P,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete D_[n.id]},t.prototype.resize=function(r){if(!this[yn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[ci]&&(a==null&&(a=this[ci].silent),i=!0,this[ci]=null),this[yn]=!0;try{i&&ih(this),Cu.update.call(this,{type:"resize",animation:$({duration:0},r&&r.animation)})}catch(o){throw this[yn]=!1,o}this[yn]=!1,z_.call(this,a),A_.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(J(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!RP[r]){var i=RP[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=$({},r);return n.type=C_[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(J(n)||(n={silent:!!n}),!!jz[r.type]&&this._model){if(this[yn]){this._pendingActions.push(r);return}var i=n.silent;OP.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&ye.browser.weChat&&this._throttledZrFlush(),z_.call(this,i),A_.call(this,i)}},t.prototype.updateLabelLayout=function(){ba.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){ih=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),CP(f,!0),CP(f,!1),d.plan()},CP=function(f,d){for(var p=f._model,m=f._scheduler,h=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,v=f._zr,g=f._api,_=0;_<h.length;_++)h[_].__alive=!1;d?p.eachComponent(function(S,T){S!=="series"&&b(T)}):p.eachSeries(b);function b(S){var T=S.__requireNewView;S.__requireNewView=!1;var E="_ec_"+S.id+"_"+S.type,z=!T&&y[E];if(!z){var C=Qn(S.type),D=d?$n.getClass(C.main,C.sub):zr.getClass(C.sub);z=new D,z.init(p,g),y[E]=z,h.push(z),v.add(z.group)}S.__viewId=z.__id=E,z.__alive=!0,z.__model=S,z.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&m.prepareView(z,S,p,g)}for(var _=0;_<h.length;){var x=h[_];x.__alive?_++:(!d&&x.renderTask.dispose(),v.remove(x.group),x.dispose(p,g),h.splice(_,1),y[x.__id]===x&&delete y[x.__id],x.__id=x.group.__ecComponentInfo=null)}},$z=function(f,d,p,m,h){var y=f._model;if(y.setUpdatePayload(p),!m){A([].concat(f._componentsViews).concat(f._chartsViews),x);return}var v={};v[m+"Id"]=p[m+"Id"],v[m+"Index"]=p[m+"Index"],v[m+"Name"]=p[m+"Name"];var g={mainType:m,query:v};h&&(g.subType=h);var _=p.excludeSeriesId,b;_!=null&&(b=oe(),A(Gt(_),function(S){var T=rn(S,null);T!=null&&b.set(T,!0)})),y&&y.eachComponent(g,function(S){var T=b&&b.get(S.id)!=null;if(!T)if(RR(p))if(S instanceof nn)p.type===pu&&!p.notBlur&&!S.get(["emphasis","disabled"])&&m8(S,p,f._api);else{var E=eE(S.mainType,S.componentIndex,p.name,f._api),z=E.focusSelf,C=E.dispatchers;p.type===pu&&z&&!p.notBlur&&Jw(S.mainType,S.componentIndex,f._api),C&&A(C,function(D){p.type===pu?Is(D):Rs(D)})}else rE(p)&&S instanceof nn&&(g8(S,p,f._api),IR(S),xa(f))},f),y&&y.eachComponent(g,function(S){var T=b&&b.get(S.id)!=null;T||x(f[m==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function x(S){S&&S.__alive&&S[d]&&S[d](S.__model,y,f._api,p)}},Cu={prepareAndUpdate:function(f){ih(this),Cu.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,m=this._api,h=this._zr,y=this._coordSysMgr,v=this._scheduler;if(p){p.setUpdatePayload(f),v.restoreData(p,f),v.performSeriesTasks(p),y.create(p,m),v.performDataProcessorTasks(p,f),NP(this,p),y.update(p,m),r(p),v.performVisualTasks(p,f),kP(this,p,m,f,d);var g=p.get("backgroundColor")||"transparent",_=p.get("darkMode");h.setBackgroundColor(g),_!=null&&_!=="auto"&&h.setDarkMode(_),ba.trigger("afterupdate",p,m)}},updateTransform:function(f){var d=this,p=this._model,m=this._api;if(p){p.setUpdatePayload(f);var h=[];p.eachComponent(function(v,g){if(v!=="series"){var _=d.getViewOfComponentModel(g);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(g,p,m,f);b&&b.update&&h.push(_)}else h.push(_)}});var y=oe();p.eachSeries(function(v){var g=d._chartsMap[v.__viewId];if(g.updateTransform){var _=g.updateTransform(v,p,m,f);_&&_.update&&y.set(v.uid,1)}else y.set(v.uid,1)}),r(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:y}),Uz(this,p,m,f,{},y),ba.trigger("afterupdate",p,m)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),zr.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),kP(this,d,this._api,f,{}),ba.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(m){m.getData().clearAllVisual()}),zr.markUpdateMethod(f,"updateVisual"),r(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(m,h){if(m!=="series"){var y=d.getViewOfComponentModel(h);y&&y.__alive&&y.updateVisual(h,p,d._api,f)}}),p.eachSeries(function(m){var h=d._chartsMap[m.__viewId];h.updateVisual(m,p,d._api,f)}),ba.trigger("afterupdate",p,this._api))},updateLayout:function(f){Cu.update.call(this,f)}},DP=function(f,d,p,m){if(f._disposed){f.id;return}for(var h=f._model,y=f._coordSysMgr.getCoordinateSystems(),v,g=Kw(h,p),_=0;_<y.length;_++){var b=y[_];if(b[d]&&(v=b[d](h,g,m))!=null)return v}},NP=function(f,d){var p=f._chartsMap,m=f._scheduler;d.eachSeries(function(h){m.updateStreamModes(h,p[h.__viewId])})},OP=function(f,d){var p=this,m=this.getModel(),h=f.type,y=f.escapeConnect,v=jz[h],g=v.actionInfo,_=(g.update||"update").split(":"),b=_.pop(),x=_[0]!=null&&Qn(_[0]);this[yn]=!0;var S=[f],T=!1;f.batch&&(T=!0,S=H(f.batch,function(R){return R=de($({},R),f),R.batch=null,R}));var E=[],z,C=rE(f),D=RR(f);if(D&&MR(this._api),A(S,function(R){if(z=v.action(R,p._model,p._api),z=z||$({},R),z.type=g.event||z.type,E.push(z),D){var j=Oy(f),Z=j.queryOptionMap,Q=j.mainTypeSpecified,G=Q?Z.keys()[0]:"series";$z(p,b,R,G),xa(p)}else C?($z(p,b,R,"series"),xa(p)):x&&$z(p,b,R,x.main,x.sub)}),b!=="none"&&!D&&!C&&!x)try{this[ci]?(ih(this),Cu.update.call(this,f),this[ci]=null):Cu[b].call(this,f)}catch(R){throw this[yn]=!1,R}if(T?z={type:g.event||h,escapeConnect:y,batch:E}:z=E[0],this[yn]=!1,!d){var O=this._messageCenter;if(O.trigger(z.type,z),C){var k={type:"selectchanged",escapeConnect:y,selected:y8(m),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};O.trigger(k.type,k)}}},z_=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();OP.call(this,p,f)}},A_=function(f){!f&&this.trigger("updated")},hW=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[ci]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},vW=function(f,d){f.on("mouseover",function(p){var m=p.target,h=Vf(m,Ly);h&&(h8(h,p,d._api),xa(d))}).on("mouseout",function(p){var m=p.target,h=Vf(m,Ly);h&&(v8(h,p,d._api),xa(d))}).on("click",function(p){var m=p.target,h=Vf(m,function(g){return we(g).dataIndex!=null},!0);if(h){var y=h.selected?"unselect":"select",v=we(h);d._api.dispatchAction({type:y,dataType:v.dataType,dataIndexInside:v.dataIndex,seriesIndex:v.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],p=[],m=!1;if(f.eachComponent(function(g,_){var b=_.get("zlevel")||0,x=_.get("z")||0,S=_.getZLevelKey();m=m||!!S,(g==="series"?p:d).push({zlevel:b,z:x,idx:_.componentIndex,type:g,key:S})}),m){var h=d.concat(p),y,v;Uf(h,function(g,_){return g.zlevel===_.zlevel?g.z-_.z:g.zlevel-_.zlevel}),A(h,function(g){var _=f.getComponent(g.type,g.idx),b=g.zlevel,x=g.key;y!=null&&(b=Math.max(y,b)),x?(b===y&&x!==v&&b++,v=x):v&&(b===y&&b++,v=""),y=b,_.setZLevel(b)})}}kP=function(f,d,p,m,h){n(d),gW(f,d,p,m,h),A(f._chartsViews,function(y){y.__alive=!1}),Uz(f,d,p,m,h),A(f._chartsViews,function(y){y.__alive||y.remove(d,p)})},gW=function(f,d,p,m,h,y){A(y||f._componentsViews,function(v){var g=v.__model;u(g,v),v.render(g,d,p,m),s(g,v),c(g,v)})},Uz=function(f,d,p,m,h,y){var v=f._scheduler;h=$(h||{},{updatedSeries:d.getSeries()}),ba.trigger("series:beforeupdate",d,p,h);var g=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var x=b.renderTask;v.updatePayload(x,m),u(_,b),y&&y.get(_.uid)&&x.dirty(),x.perform(v.getPerformArgs(x))&&(g=!0),b.group.silent=!!_.get("silent"),o(_,b),IR(_)}),v.unfinished=g||v.unfinished,ba.trigger("series:layoutlabels",d,p,h),ba.trigger("series:transition",d,p,h),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];s(_,b),c(_,b)}),a(f,d),ba.trigger("series:afterupdate",d,p,h)},xa=function(f){f[zP]=!0,f.getZr().wakeUp()},_W=function(f){f[zP]&&(f.getZr().storage.traverse(function(d){Ps(d)||i(d)}),f[zP]=!1)};function i(f){for(var d=[],p=f.currentStates,m=0;m<p.length;m++){var h=p[m];h==="emphasis"||h==="blur"||h==="select"||d.push(h)}f.selected&&f.states.select&&d.push("select"),f.hoverState===ky&&f.states.emphasis?d.push("emphasis"):f.hoverState===uf&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var p=f._zr,m=p.storage,h=0;m.traverse(function(y){y.isGroup||h++}),h>d.get("hoverLayerThreshold")&&!ye.node&&!ye.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var v=f._chartsMap[y.__viewId];v.__alive&&v.eachRendered(function(g){g.states.emphasis&&(g.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(m){m.isGroup||(m.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,m=f.get("zlevel")||0;d.eachRendered(function(h){return l(h,p,m,-1/0),!0})}}function l(f,d,p,m){var h=f.getTextContent(),y=f.getTextGuideLine(),v=f.isGroup;if(v)for(var g=f.childrenRef(),_=0;_<g.length;_++)m=Math.max(l(g[_],d,p,m),m);else f.z=d,f.zlevel=p,m=Math.max(f.z2,m);if(h&&(h.z=d,h.zlevel=p,isFinite(m)&&(h.z2=m+2)),y){var b=f.textGuideLineConfig;y.z=d,y.zlevel=p,isFinite(m)&&(y.z2=m+(b&&b.showAbove?1:-1))}return m}function u(f,d){d.eachRendered(function(p){if(!Ps(p)){var m=p.getTextContent(),h=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),m=f.isAnimationEnabled(),h=p.get("duration"),y=h>0?{duration:h,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(v){if(v.states&&v.states.emphasis){if(Ps(v))return;if(v instanceof me&&x8(v),v.__dirty){var g=v.prevStates;g&&v.useStates(g)}if(m){v.stateTransition=y;var _=v.getTextContent(),b=v.getTextGuideLine();_&&(_.stateTransition=y),b&&(b.stateTransition=y)}v.__dirty&&i(v)}})}yW=function(f){return new((function(d){L(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(m){for(;m;){var h=m.__ecComponentInfo;if(h!=null)return f._model.getComponent(h.mainType,h.index);m=m.parent}},p.prototype.enterEmphasis=function(m,h){Is(m,h),xa(f)},p.prototype.leaveEmphasis=function(m,h){Rs(m,h),xa(f)},p.prototype.enterBlur=function(m){d8(m),xa(f)},p.prototype.leaveBlur=function(m){NR(m),xa(f)},p.prototype.enterSelect=function(m){OR(m),xa(f)},p.prototype.leaveSelect=function(m){kR(m),xa(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(m){return f.getViewOfComponentModel(m)},p.prototype.getViewOfSeriesModel=function(m){return f.getViewOfSeriesModel(m)},p})(Nz))(f)},OW=function(f){function d(p,m){for(var h=0;h<p.length;h++){var y=p[h];y[AP]=m}}A(C_,function(p,m){f._messageCenter.on(m,function(h){if(bW[f.group]&&f[AP]!==mW){if(h&&h.escapeConnect)return;var y=f.makeActionFromEvent(h),v=[];A(D_,function(g){g!==f&&g.group===f.group&&v.push(g)}),d(v,mW),A(v,function(g){g[AP]!==e0e&&g.dispatchAction(y)}),d(v,t0e)}})})}})(),t})(en),PP=kW.prototype;PP.on=zW("on");PP.off=zW("off");PP.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};r0e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],jz={},C_={},MP=[],IP=[],Vz=[],MW={},RP={},D_={},bW={},n0e=+new Date-0,iBe=+new Date-0,$P="_echarts_instance_";xW=[];VW=DY;Du(LP,pK);Du(Bz,mK);Du(Bz,hK);Du(LP,MK);Du(Bz,IK);Du(wW,wP);UP(Oz);jP(F_e,fP);BP("default",pP);Xs({type:pu,event:pu,update:pu},Lt);Xs({type:My,event:My,update:My},Lt);Xs({type:Mm,event:Mm,update:Mm},Lt);Xs({type:Iy,event:Iy,update:Iy},Lt);Xs({type:Im,event:Im,update:Im},Lt);RW("light",TK);RW("dark",CK)});function _n(e){if(V(e)){A(e,function(t){_n(t)});return}Ne(BW,e)>=0||(BW.push(e),te(e)&&(e={install:e}),e.install(o0e))}var BW,o0e,Zf=w(()=>{Hz();Au();Eu();qs();Su();I();EP();Az();BW=[],o0e={registerPreprocessor:UP,registerProcessor:jP,registerPostInit:LW,registerPostUpdate:PW,registerUpdateLifecycle:Zz,registerAction:Xs,registerCoordinateSystem:$W,registerLayout:UW,registerVisual:Du,registerTransform:VW,registerLoading:BP,registerMap:jW,registerImpl:fW,PRIORITY:EW,ComponentModel:ft,ComponentView:$n,SeriesModel:nn,ChartView:zr,registerComponentModel:function(e){ft.registerClass(e)},registerComponentView:function(e){$n.registerClass(e)},registerSeriesModel:function(e){nn.registerClass(e)},registerChartView:function(e){zr.registerClass(e)},registerSubTypeDefaulter:function(e,t){ft.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){$X(e,t)}}});var s0e,ZW,HW=w(()=>{ae();qs();s0e=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(ft),ZW=s0e});var FW,GW=w(()=>{FW=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})()});var Fz,qW=w(()=>{ae();I();qs();GW();Ae();Fz=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",mn).models[0]},t.type="cartesian2dAxis",t})(ft);Ir(Fz,FW)});var YW,l0e,ZP,u0e,c0e,XW,KW=w(()=>{I();YW={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},l0e=Qe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YW),ZP=Qe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},YW),u0e=Qe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ZP),c0e=de({logBase:10},ZP),XW={category:l0e,value:ZP,time:u0e,log:c0e}});function p0e(e){return J(e)&&e.value!=null?e.value:e+""}var f0e,d0e,N_,HP=w(()=>{I();f0e=0,d0e=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++f0e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&H(n,p0e);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!F(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=oe(this.categories))},e})();N_=d0e});var WW,JW=w(()=>{WW={value:1,category:1,time:1,log:1}});function Gz(e,t,r,n){A(WW,function(i,a){var o=Qe(Qe({},XW[a],!0),n,!0),s=(function(l){L(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=yu(this),p=d?_u(c):{},m=f.getTheme();Qe(c,m.get(a+"Axis")),Qe(c,this.getDefaultOption()),c.type=QW(c),d&&Ho(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=N_.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",QW)}function QW(e){return e.type||(e.data?"category":"value")}var eJ=w(()=>{ae();KW();ya();HP();JW();I()});var tJ,fi,ah=w(()=>{Ao();tJ=(function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Jl(tJ);fi=tJ});function O_(e){return e.type==="interval"||e.type==="log"}function nJ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=Gw(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=FP(o),l=i.niceTickExtent=[St(Math.ceil(e[0]/o)*o,s),St(Math.floor(e[1]/o)*o,s)];return m0e(l,e),i}function qz(e){var t=Math.pow(10,Fw(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,St(r*t)}function FP(e){return ki(e)+2}function rJ(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function m0e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),rJ(e,0,t),rJ(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nu(e,t){return e>=t[0]&&e<=t[1]}function Ou(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ku(e,t){return e*(t[1]-t[0])+t[0]}var Mu=w(()=>{Ct()});var iJ,GP,aJ=w(()=>{ae();ah();HP();Mu();I();iJ=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new N_({})),V(i)&&(i=new N_({categories:H(i,function(a){return J(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:F(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Nu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ou(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(ku(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(fi);fi.registerClass(iJ);GP=iJ});var Hf,oJ,Ks,k_=w(()=>{ae();Ct();Xa();ah();Mu();Hf=St,oJ=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Nu(r,this._extent)},t.prototype.normalize=function(r){return Ou(r,this._extent)},t.prototype.scale=function(r){return ku(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=FP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Hf(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Hf(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Hf(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var p=Hf(l.value+(u+1)*d);p>a[0]&&p<a[1]&&c.push(p),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ki(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Hf(r.value,i,!0);return H2(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=nJ(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Hf(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Hf(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(fi);fi.registerClass(oJ);Ks=oJ});function v0e(e,t,r,n){var i=Mi(t),a=Mi(r),o=function(m){return L2(i,m,n)===L2(a,m,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},p=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return p()}}function g0e(e,t){return e/=Ui,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function y0e(e){var t=30*Ui;return e/=t,e>6?6:e>3?3:e>2?2:1}function _0e(e){return e/=Jm,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function sJ(e,t){return e/=t?PE:LE,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function b0e(e){return Gw(e,!0)}function x0e(e,t,r){var n=new Date(e);switch(zf(t)){case"year":case"month":n[P2(r)](0);case"day":n[$2(r)](1);case"hour":n[U2(r)](0);case"minute":n[j2(r)](0);case"second":n[V2(r)](0),n[B2(r)](0)}return n.getTime()}function S0e(e,t,r,n){var i=1e4,a=R2,o=0;function s(C,D,O,k,R,j,Z){for(var Q=new Date(D),G=D,K=Q[k]();G<O&&G<=n[1];)Z.push({value:G}),K+=C,Q[R](K),G=Q.getTime();Z.push({value:G,notAdd:!0})}function l(C,D,O){var k=[],R=!D.length;if(!v0e(zf(C),n[0],n[1],r)){R&&(D=[{value:x0e(new Date(n[0]),C,r)},{value:n[1]}]);for(var j=0;j<D.length-1;j++){var Z=D[j].value,Q=D[j+1].value;if(Z!==Q){var G=void 0,K=void 0,ie=void 0,ce=!1;switch(C){case"year":G=Math.max(1,Math.round(t/Ui/365)),K=$E(r),ie=SY(r);break;case"half-year":case"quarter":case"month":G=y0e(t),K=Ef(r),ie=P2(r);break;case"week":case"half-week":case"day":G=g0e(t,31),K=t_(r),ie=$2(r),ce=!0;break;case"half-day":case"quarter-day":case"hour":G=_0e(t),K=Wm(r),ie=U2(r);break;case"minute":G=sJ(t,!0),K=r_(r),ie=j2(r);break;case"second":G=sJ(t,!1),K=n_(r),ie=V2(r);break;case"millisecond":G=b0e(t),K=i_(r),ie=B2(r);break}s(G,Z,Q,K,ie,ce,k),C==="year"&&O.length>1&&j===0&&O.unshift({value:O[0].value-G})}}for(var j=0;j<k.length;j++)O.push(k[j]);return k}}for(var u=[],c=[],f=0,d=0,p=0;p<a.length&&o++<i;++p){var m=zf(a[p]);if(yY(a[p])){l(a[p],u[u.length-1]||[],c);var h=a[p+1]?zf(a[p+1]):null;if(m!==h){if(c.length){d=f,c.sort(function(C,D){return C.value-D.value});for(var y=[],v=0;v<c.length;++v){var g=c[v].value;(v===0||c[v-1].value!==g)&&(y.push(c[v]),g>=n[0]&&g<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(y),f>_||e===a[p]))break}c=[]}}}for(var b=xt(H(u,function(C){return xt(C,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(C){return C.length>0}),x=[],S=b.length-1,p=0;p<b.length;++p)for(var T=b[p],E=0;E<T.length;++E)x.push({value:T[E].value,level:S-p});x.sort(function(C,D){return C.value-D.value});for(var z=[],p=0;p<x.length;++p)(p===0||x[p].value!==x[p-1].value)&&z.push(x[p]);return z}var h0e,lJ,Xz,uJ,cJ=w(()=>{ae();Ct();UE();Mu();k_();ah();I();h0e=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},lJ=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Af(r.value,I2[_Y(zf(this._minLevelUnit))]||I2.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return bY(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=S0e(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ui,n[1]+=Ui),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ui}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Xz.length,l=Math.min(h0e(Xz,this._approxInterval,0,s),s-1);this._interval=Xz[l][1],this._minLevelUnit=Xz[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return ve(r)?r:+Mi(r)},t.prototype.contain=function(r){return Nu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ou(this.parse(r),this._extent)},t.prototype.scale=function(r){return ku(r,this._extent)},t.type="time",t})(Ks),Xz=[["second",LE],["minute",PE],["hour",Jm],["quarter-day",Jm*6],["half-day",Jm*12],["day",Ui*1.2],["half-week",Ui*3.5],["week",Ui*7],["month",Ui*31],["quarter",Ui*95],["half-year",M2/2],["year",M2]];fi.registerClass(lJ);uJ=lJ});function Wz(e,t){return T0e(e,ki(t))}var fJ,M_,T0e,w0e,E0e,Kz,to,qP,dJ,pJ,mJ=w(()=>{ae();I();ah();Ct();Mu();k_();fJ=fi.prototype,M_=Ks.prototype,T0e=St,w0e=Math.floor,E0e=Math.ceil,Kz=Math.pow,to=Math.log,qP=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ks,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=M_.getTicks.call(this,r);return H(o,function(s){var l=s.value,u=St(Kz(this.base,l));return u=l===i[0]&&this._fixMin?Wz(u,a[0]):u,u=l===i[1]&&this._fixMax?Wz(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=to(this.base);r=to(Math.max(0,r))/i,n=to(Math.max(0,n))/i,M_.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=fJ.getExtent.call(this);n[0]=Kz(r,n[0]),n[1]=Kz(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Wz(n[0],a[0])),this._fixMax&&(n[1]=Wz(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=to(r[0])/to(n),r[1]=to(r[1])/to(n),fJ.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=F9(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[St(E0e(n[0]/a)*a),St(w0e(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){M_.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=to(r)/to(this.base),Nu(r,this._extent)},t.prototype.normalize=function(r){return r=to(r)/to(this.base),Ou(r,this._extent)},t.prototype.scale=function(r){return r=ku(r,this._extent),Kz(this.base,r)},t.type="log",t})(fi),dJ=qP.prototype;dJ.getMinorTicks=M_.getMinorTicks;dJ.getLabel=M_.getLabel;fi.registerClass(qP);pJ=qP});function hJ(e,t,r){var n=e.rawExtentInfo;return n||(n=new z0e(e,t,r),e.rawExtentInfo=n,n)}function Jz(e,t){return t==null?null:am(t)?NaN:e.parse(t)}var z0e,A0e,C0e,vJ=w(()=>{I();sa();z0e=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;te(o)?this._modelMinNum=Jz(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Jz(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(te(s)?this._modelMaxNum=Jz(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Jz(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=V(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[oa(u[0],1),oa(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=am(s)||am(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[C0e[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=A0e[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),A0e={min:"_determinedMin",max:"_determinedMax"},C0e={min:"_dataMin",max:"_dataMax"}});function YP(e,t){var r=e.type,n=hJ(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=_L("bar",o),l=!1;if(A(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=bL(s),c=D0e(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function D0e(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=d7(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;A(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;A(o,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function XP(e,t){var r=t,n=YP(e,r),i=n.extent,a=r.get("splitNumber");e instanceof pJ&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function gJ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new GP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new uJ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(fi.getClass(t)||Ks)}}function yJ(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ff(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}})(t):F(t)?(function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}})(t):te(t)?(function(n){return function(i,a){return r!=null&&(a=i.value-r),n(I_(e,i),a,i.level!=null?{level:i.level}:null)}})(t):function(n){return e.scale.getLabel(n)}}function I_(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function _J(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof GP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Ff(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),p=o.getTextRect(d),m=N0e(p,o.get("rotate")||0);l?l.union(m):l=m}return l}}function N0e(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new ze(e.x,e.y,a,o);return s}function Qz(e){var t=e.get("interval");return t??"auto"}function eA(e){return e.type==="category"&&Qz(e.getLabelModel())===0}function bJ(e,t){var r={};return A(e.mapDimensionsAll(t),function(n){r[iY(e,n)]=!0}),pe(r)}var Gf=w(()=>{I();aJ();k_();ah();xL();dn();cJ();mJ();Xm();vJ()});var O0e,SJ,TJ=w(()=>{I();O0e=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return H(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),SJ=O0e});function wJ(e){return e.type==="interval"||e.type==="time"}var tA,k0e,EJ,zJ=w(()=>{ae();dn();TJ();Es();cr();tA=["x","y"];k0e=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!wJ(r)||!wJ(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,p=o[1]-a[0]*f,m=this._transform=[c,0,0,f,d,p];this._invTransform=Do([],m)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ze(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ur(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return ur(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ze(a,o,s,l)},t})(SJ),EJ=k0e});function AJ(e,t){var r=H(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function CJ(e){var t=e.getLabelModel().get("customValues");if(t){var r=Ff(e),n=e.scale.getExtent(),i=AJ(e,t),a=xt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:H(a,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:e.scale.getLabel(s),tickValue:o}})}}return e.type==="category"?M0e(e):R0e(e)}function DJ(e,t){var r=e.getTickModel().get("customValues");if(r){var n=e.scale.getExtent(),i=AJ(e,r);return{ticks:xt(i,function(a){return a>=n[0]&&a<=n[1]})}}return e.type==="category"?I0e(e,t):{ticks:H(e.scale.getTicks(),function(a){return a.value})}}function M0e(e){var t=e.getLabelModel(),r=NJ(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function NJ(e,t){var r=OJ(e,"labels"),n=Qz(t),i=kJ(r,n);if(i)return i;var a,o;return te(n)?a=LJ(e,n):(o=n==="auto"?L0e(e):n,a=RJ(e,o)),MJ(r,n,{labels:a,labelCategoryInterval:o})}function I0e(e,t){var r=OJ(e,"ticks"),n=Qz(t),i=kJ(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),te(n))a=LJ(e,n,!0);else if(n==="auto"){var s=NJ(e,e.getLabelModel());o=s.labelCategoryInterval,a=H(s.labels,function(l){return l.tickValue})}else o=n,a=RJ(e,o,!0);return MJ(r,n,{ticks:a,tickCategoryInterval:o})}function R0e(e){var t=e.scale.getTicks(),r=Ff(e);return{labels:H(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function OJ(e,t){return R_(e)[t]||(R_(e)[t]=[])}function kJ(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function MJ(e,t,r){return e.push({key:t,value:r}),r}function L0e(e){var t=R_(e).autoInterval;return t??(R_(e).autoInterval=e.calculateCategoryInterval())}function IJ(e){var t=P0e(e),r=Ff(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,p=0;l<=a[1];l+=s){var m=0,h=0,y=pm(r({value:l}),t.font,"center","top");m=y.width*1.3,h=y.height*1.3,d=Math.max(d,m,7),p=Math.max(p,h,7)}var v=d/c,g=p/f;isNaN(v)&&(v=1/0),isNaN(g)&&(g=1/0);var _=Math.max(0,Math.floor(Math.min(v,g))),b=R_(e.model),x=e.getExtent(),S=b.lastAutoInterval,T=b.lastTickCount;return S!=null&&T!=null&&Math.abs(S-_)<=1&&Math.abs(T-o)<=1&&S>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=S:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function P0e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function RJ(e,t,r){var n=Ff(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=eA(e),d=o.get("showMinLabel")||f,p=o.get("showMaxLabel")||f;d&&u!==a[0]&&h(a[0]);for(var m=u;m<=a[1];m+=l)h(m);p&&m-l!==a[1]&&h(a[1]);function h(y){var v={value:y};s.push(r?y:{formattedLabel:n(v),rawLabel:i.getLabel(v),tickValue:y})}return s}function LJ(e,t,r){var n=e.scale,i=Ff(e),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var R_,PJ=w(()=>{I();sa();Ae();Gf();R_=De()});function UJ(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function U0e(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;A(t,function(p){p.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(p,m){return p=St(p),m=St(m),f?p>m:p<m}}var $J,$0e,jJ,VJ=w(()=>{I();Ct();PJ();$J=[0,1],$0e=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return B9(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),UJ(n,i.count())),cu(t,$J,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),UJ(n,i.count()));var a=cu(t,n,$J,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=DJ(this,r),i=n.ticks,a=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return U0e(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=H(n,function(a){return H(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return CJ(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return IJ(this)},e})();jJ=$0e});var j0e,BJ,ZJ=w(()=>{ae();VJ();j0e=(function(e){L(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(jJ),BJ=j0e});function L_(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,m=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));m[d.onZero]=Math.max(Math.min(h,m[1]),m[0])}a.position=[u==="y"?m[d[l]]:f[0],u==="x"?m[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=o?m[d[s]]-m[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),zo(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-v:v,a.z2=1,a}function KP(e){return e.get("coordinateSystem")==="cartesian2d"}function WP(e){var t={xAxisModel:null,yAxisModel:null};return A(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,mn).models[0];t[n]=a}),t}var rA=w(()=>{I();Ae()});function FJ(e,t,r){var n=Ks.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=YP(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=JP(e.base);u=[JP(u[0])/d,JP(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var p=n.getExtent.call(e);c&&(u[0]=p[0]),f&&(u[1]=p[1]);var m=n.getInterval.call(e),h=u[0],y=u[1];if(c&&f)m=(y-h)/o;else if(c)for(y=u[0]+m*o;y<u[1]&&isFinite(y)&&isFinite(u[1]);)m=qz(m),y=u[0]+m*o;else if(f)for(h=u[1]-m*o;h>u[0]&&isFinite(h)&&isFinite(u[0]);)m=qz(m),h=u[1]-m*o;else{var v=e.getTicks().length-1;v>o&&(m=qz(m));var g=m*o;y=Math.ceil(u[1]/m)*m,h=St(y-g),h<0&&u[0]>=0?(h=0,y=St(g)):y>0&&u[1]<=0&&(y=0,h=-St(g))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;if(n.setExtent.call(e,h+m*_,y+m*b),n.setInterval.call(e,m),(_||b)&&n.setNiceExtent.call(e,h+m,y-m),0)var x}var JP,GJ=w(()=>{Ct();k_();Gf();Mu();JP=Math.log});function QP(e,t){return e.getCoordSysModel()===t}function qJ(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)YJ(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&YJ(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function YJ(e){return e&&e.type!=="category"&&e.type!=="time"&&yJ(e)}function B0e(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var V0e,XJ,KJ=w(()=>{I();ya();Gf();zJ();ZJ();Ae();rA();Mu();GJ();V0e=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=pe(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=o[d],m=p.model,h=p.scale;O_(h)&&m.get("alignTicks")&&m.get("interval")==null?c.push(p):(XP(h,m),O_(h)&&(s=p))}c.length&&(s||(s=c.pop(),XP(s.scale,s.model)),A(c,function(y){FJ(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){qJ(n,"y",o,a)}),A(n.y,function(o){qJ(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=ji(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=_J(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),B0e(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}J(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",mn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",mn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,Ne(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(c,f){A(s.y,function(d,p){var m="x"+f+"y"+p,h=new EJ(m);h.master=i,h.model=t,i._coordsMap[m]=h,i._coordsList.push(h),h.addAxis(c),h.addAxis(d)})});function u(c){return function(f,d){if(QP(f,t)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var m=new BJ(c,gJ(f),[0,0],f.get("type"),p),h=m.type==="category";m.onBand=h&&f.get("boundaryGap"),m.inverse=f.get("inverse"),f.axis=m,m.model=f,m.grid=a,m.index=d,a._axesList.push(m),s[c][d]=m,l[c]++}}}},e.prototype._updateScale=function(t,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(KP(i)){var a=WP(i),o=a.xAxisModel,s=a.yAxisModel;if(!QP(o,r)||!QP(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){A(bJ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return A(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);Ne(r,a)<0&&r.push(a),Ne(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(KP(i)){var a=WP(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=tA,e})();XJ=V0e});function Z0e(e,t,r,n){var i=_R(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Dy(i-Iu/2)?(o=l?"bottom":"top",a="center"):Dy(i-Iu*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Iu*1.5&&i>Iu/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function H0e(e,t,r){if(!eA(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Sa(a),Sa(u)):JJ(a,o)&&(n?(Sa(o),Sa(c)):(Sa(a),Sa(u))),i===!1?(Sa(s),Sa(f)):JJ(l,s)&&(i?(Sa(l),Sa(d)):(Sa(s),Sa(f)))}}function Sa(e){e&&(e.ignore=!0)}function JJ(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=cm([]);return fm(i,i,-e.rotation),r.applyTransform(ws([],i,e.getLocalTransform())),n.applyTransform(ws([],i,t.getLocalTransform())),r.intersect(n)}}function QJ(e){return e==="middle"||e==="center"}function eQ(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ur(o,o,t),ur(s,s,t));var c=new Ii({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});vf(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function F0e(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=eQ(u,t.transform,l,de(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function G0e(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=de(s.getLineStyle(),de(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=eQ(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function q0e(e,t,r,n){var i=r.axis,a=zo(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(zo(n.labelRotate,o.get("rotate"))||0)*Iu/180,c=qf.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],p=qf.isLabelSilent(r),m=r.get("triggerEvent");return A(l,function(h,y){var v=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(h.tickValue):h.tickValue,g=h.formattedLabel,_=h.rawLabel,b=o;if(f&&f[v]){var x=f[v];J(x)&&x.textStyle&&(b=new ht(x.textStyle,o,r.ecModel))}var S=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(v),E=b.getShallow("align",!0)||c.textAlign,z=se(b.getShallow("alignMinLabel",!0),E),C=se(b.getShallow("alignMaxLabel",!0),E),D=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,O=se(b.getShallow("verticalAlignMinLabel",!0),D),k=se(b.getShallow("verticalAlignMaxLabel",!0),D),R=new Pt({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(h.level||0),style:Us(b,{text:g,align:y===0?z:y===l.length-1?C:E,verticalAlign:y===0?O:y===l.length-1?k:D,fill:te(S)?S(i.type==="category"?_:i.type==="value"?v+"":v,y):S})});if(R.anid="label_"+v,jm({el:R,componentModel:r,itemName:g,formatterParamsExtra:{isTruncated:function(){return R.isTruncated},value:_,tickIndex:y}}),m){var j=qf.makeAxisEventDataBase(r);j.targetType="axisLabel",j.value=_,j.tickIndex=y,i.type==="category"&&(j.dataIndex=v),we(R).eventData=j}t.add(R),R.updateTransform(),d.push(R),e.add(R),R.decomposeTransform()}),d}}var Iu,qf,WJ,nA,e$=w(()=>{I();nt();ai();Ri();Li();Ct();Of();Es();cr();Gf();bz();Iu=Math.PI,qf=(function(){function e(t,r){this.group=new Ye,this.opt=r,this.axisModel=t,de(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ye({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!WJ[t]},e.prototype.add=function(t){WJ[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=_R(r-t),a,o;return Dy(i)?(o=n>0?"top":"bottom",a="center"):Dy(i-Iu)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Iu?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),WJ={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(ur(s,s,o),ur(l,l,o));var c=$({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Ii({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});vf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var p=t.get(["axisLine","symbolSize"]);F(d)&&(d=[d,d]),(F(p)||ve(p))&&(p=[p,p]);var m=Nf(t.get(["axisLine","symbolOffset"])||0,p),h=p[0],y=p[1];A([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,g){if(d[g]!=="none"&&d[g]!=null){var _=Vi(d[g],-h/2,-y/2,h,y,c.stroke,!0),b=v.r+v.offset,x=u?l:s;_.attr({rotation:v.rotate,x:x[0]+b*Math.cos(e.rotation),y:x[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=F0e(r,n,t,e),a=q0e(r,n,t,e);if(H0e(t,a,i),G0e(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=gz(H(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));_z(o)}},axisName:function(e,t,r,n){var i=zo(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,QJ(a)?e.labelOffset+o*l:0],d,p=t.get("nameRotate");p!=null&&(p=p*Iu/180);var m;QJ(a)?d=qf.innerTextLayout(e.rotation,p??e.rotation,o):(d=Z0e(e.rotation,a,p||0,u),m=e.axisNameAvailableWidth,m!=null&&(m=Math.abs(m/Math.sin(d.rotation)),!isFinite(m)&&(m=null)));var h=s.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,g=zo(e.nameTruncateMaxWidth,y.maxWidth,m),_=new Pt({x:f[0],y:f[1],rotation:d.rotation,silent:qf.isLabelSilent(t),style:Us(s,{text:i,font:h,overflow:"truncate",width:g,ellipsis:v,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(jm({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=qf.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,we(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};nA=qf});function tQ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Y0e(r,e,t),r.seriesInvolved&&K0e(r,e),r}function Y0e(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=oh(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(A(s.getAxes(),qe(h,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",m=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&A(m.baseAxes,qe(h,p?"cross":!0,d)),p&&A(m.otherAxes,qe(h,"cross",!1))}function h(y,v,g){var _=g.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!y&&!r$(_))){v==null&&(v=_.get("triggerTooltip")),_=y?X0e(g,f,i,t,y,v):_;var x=_.get("snap"),S=_.get("triggerEmphasis"),T=oh(g.model),E=v||x||g.type==="category",z=e.axesInfo[T]={key:T,axis:g,coordSys:s,axisPointerModel:_,triggerTooltip:v,triggerEmphasis:S,involveSeries:E,snap:x,useHandle:r$(_),seriesModels:[],linkGroup:null};u[T]=z,e.seriesInvolved=e.seriesInvolved||E;var C=W0e(a,g);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[T]=z,D.mapper=a[C].mapper,z.linkGroup=D}}}})}function X0e(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(d){l[d]=_e(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&de(u,f.textStyle)}}return e.model.getModel("axisPointer",new ht(l,r,n))}function K0e(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||A(e.coordSysAxesInfo[oh(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function W0e(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(t$(a[n+"AxisId"],r.id)||t$(a[n+"AxisIndex"],r.componentIndex)||t$(a[n+"AxisName"],r.name))return i}}function t$(e,t){return e==="all"||V(e)&&Ne(e,t)>=0||e===t}function rQ(e){var t=iA(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=r$(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function iA(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[oh(e)]}function nQ(e){var t=iA(e);return t&&t.axisPointerModel}function r$(e){return!!e.get(["handle","show"])}function oh(e){return e.type+"||"+e.id}var P_=w(()=>{Li();I()});var iQ,J0e,aA,i$=w(()=>{ae();P_();Au();iQ={},J0e=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&rQ(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=nQ(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){iQ[r]=n},t.getAxisPointerClass=function(r){return r&&iQ[r]},t.type="axis",t})($n),aA=J0e});function aQ(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=a$(e).splitAreaColors,d=oe(),p=0;if(f)for(var m=0;m<u.length;m++){var h=f.get(u[m].tickValue);if(h!=null){p=(h+(c-1)*m)%c;break}}var y=i.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=V(s)?s:[s];for(var m=1;m<u.length;m++){var g=i.toGlobalCoord(u[m].coord),_=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(_=y,b=l.y,x=g-_,S=l.height,y=_+x):(_=l.x,b=y,x=l.width,S=g-b,y=b+S);var T=u[m-1].tickValue;T!=null&&d.set(T,p),t.add(new ct({anid:T!=null?"area_"+T:null,shape:{x:_,y:b,width:x,height:S},style:de({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}a$(e).splitAreaColors=d}}}function oQ(e){a$(e).splitAreaColors=null}var a$,sQ=w(()=>{I();nt();Ae();a$=De()});var Q0e,ebe,lQ,tbe,o$,uQ,cQ=w(()=>{ae();I();nt();e$();i$();rA();sQ();Mu();Q0e=["axisLine","axisTickLabel","axisName"],ebe=["splitArea","splitLine","minorSplitLine"],lQ=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ye,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=L_(s,r),u=new nA(r,$({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(O_(d[p].getOtherAxis(r.axis).scale))return!0;return!1}},l));A(Q0e,u.add,u),this._axisGroup.add(u.getGroup()),A(ebe,function(f){r.get([f,"show"])&&tbe[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||WR(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){oQ(this)},t.type="cartesianAxis",t})(aA),tbe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=V(s)?s:[s];for(var c=n.coordinateSystem.getRect(),f=i.isHorizontal(),d=0,p=i.getTicksCoords({tickModel:a}),m=[],h=[],y=o.getLineStyle(),v=0;v<p.length;v++){var g=i.toGlobalCoord(p[v].coord);if(!(v===0&&!l||v===p.length-1&&!u)){var _=p[v].tickValue;f?(m[0]=g,m[1]=c.y,h[0]=g,h[1]=c.y+c.height):(m[0]=c.x,m[1]=g,h[0]=c.x+c.width,h[1]=g);var b=d++%s.length,x=new Ii({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:h[0],y2:h[1]},style:de({stroke:s[b]},y),silent:!0});vf(x.shape,y.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),p=0;p<u.length;p++)for(var m=0;m<u[p].length;m++){var h=i.toGlobalCoord(u[p][m].coord);l?(c[0]=h,c[1]=s.y,f[0]=h,f[1]=s.y+s.height):(c[0]=s.x,c[1]=h,f[0]=s.x+s.width,f[1]=h);var y=new Ii({anid:"minor_line_"+u[p][m].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});vf(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){aQ(e,t,r,n)}},o$=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(lQ),uQ=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=o$.type,r}return t.type="yAxis",t})(lQ)});function dQ(e){e.registerComponentView(rbe),e.registerComponentModel(ZW),e.registerCoordinateSystem("cartesian2d",XJ),Gz(e,"x",Fz,fQ),Gz(e,"y",Fz,fQ),e.registerComponentView(o$),e.registerComponentView(uQ),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var rbe,fQ,pQ=w(()=>{ae();Au();HW();nt();I();qW();eJ();KJ();cQ();rbe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new ct({shape:r.coordinateSystem.getRect(),style:de({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})($n),fQ={offset:0}});function s$(e,t){return!!nbe(e)[t]}function nbe(e){return e[mQ]||(e[mQ]={})}var mQ,hQ=w(()=>{Hz();I();mQ="\0_ec_interaction_mutex";Xs({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Lt)});function l$(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Pf(n.event),vQ(e,t,r,n,i))}function vQ(e,t,r,n,i){i.isAvailableBehavior=Oe(oA,null,r,n),e.trigger(t,i)}function oA(e,t,r){var n=r[e];return!e||n&&(!F(n)||t.event[n+"Key"])}var abe,sA,u$=w(()=>{ae();iu();$f();hQ();I();abe=(function(e){L(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=Oe(n._mousedownHandler,n),a=Oe(n._mousemoveHandler,n),o=Oe(n._mouseupHandler,n),s=Oe(n._mousewheelHandler,n),l=Oe(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=de(_e(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!HL(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!oA("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||s$(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Pf(r.event),vQ(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){HL(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=oA("zoomOnMouseWheel",r,this._opt),i=oA("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;l$(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);l$(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!s$(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;l$(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t})(en);sA=abe});function lA(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function uA(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var c$=w(()=>{});function cA(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!obe.hasOwnProperty(n.mainType)&&i&&i.model!==r}var obe,f$=w(()=>{obe={axisPointer:1,tooltip:1,brush:1}});function _Q(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var yQ,sbe,sh,fA=w(()=>{ae();cr();Es();dn();Gc();Ct();yQ=ur,sbe=(function(e){L(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ua,n._rawTransformable=new ua,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new ze(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new ze(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ze(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[Be(r[0],n.getWidth()),Be(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=ur([],a,r),i=ur([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),tw(this.transform||(this.transform=[]),n.transform||ja()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Do(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new ua;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?yQ(i,r,a):Tr(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?yQ([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=_Q(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=_Q(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t})(ua);sh=sbe});function bQ(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function dA(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(bQ(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(bQ(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var d$=w(()=>{});function xQ(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function SQ(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){lbe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=ube(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function TQ(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function h$(e){return arguments.length?e:dbe}function Yf(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function wQ(e,t){return ji(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lbe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function ube(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=p$(s),a=m$(a),s&&a;){i=p$(i),o=m$(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(fbe(cbe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!p$(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!m$(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function p$(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function m$(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function cbe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function fbe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function dbe(e,t){return e.parentNode===t.parentNode?1:2}var v$=w(()=>{ya()});function EQ(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function zQ(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),p=f.getLayout(),m=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,h=o.getLayout();a?(r=new kf(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=m.x,r.y=m.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=h.rawX,r.__radialRawY=h.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,et(r,{x:h.x,y:h.y},i);var y=r.getSymbolPath();if(i.get("layout")==="radial"){var v=c.children[0],g=v.getLayout(),_=v.children.length,b=void 0,x=void 0;if(h.x===g.x&&o.isExpand===!0&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[_-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[_-1].getLayout().y)/2};b=Math.atan2(S.y-g.y,S.x-g.x),b<0&&(b=Math.PI*2+b),x=S.x<g.x,x&&(b=b-Math.PI)}else b=Math.atan2(h.y-g.y,h.x-g.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<g.x,x&&(b=b-Math.PI)):(x=h.x>g.x,x||(b=b-Math.PI));var T=x?"left":"right",E=s.getModel("label"),z=E.get("rotate"),C=z*(Math.PI/180),D=y.getTextContent();D&&(y.setTextConfig({position:E.get("position")||T,rotation:z==null?-b:C,origin:"center"}),D.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),k=O==="relative"?JT(o.getAncestorsIndices(),o.getDescendantIndices()):O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():null;k&&(we(r).focus=k),vbe(i,o,c,r,m,p,h,n),r.__edge&&(r.onHoverStateChange=function(R){if(R!=="blur"){var j=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);j&&j.hoverState===uf||Ry(r.__edge,R)}})}function vbe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),m=l.getModel("lineStyle").getLineStyle(),h=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(h||(h=n.__edge=new df({shape:g$(c,f,d,i,i)})),et(h,{shape:g$(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var y=t.children,v=[],g=0;g<y.length;g++){var _=y[g].getLayout();v.push([_.x,_.y])}h||(h=n.__edge=new mbe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:p}})),et(h,{shape:{parentPoint:[o.x,o.y],childPoints:v}},e)}h&&!(u==="polyline"&&!t.isExpand)&&(h.useStyle(de({strokeNoScale:!0,fill:null},m)),Ls(h,l,"lineStyle"),DR(h),s.add(h))}function AQ(e,t,r,n,i){var a=t.tree.root,o=DQ(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),p=n.get("edgeShape"),m=n.get("layout"),h=n.get("orient"),y=n.get(["lineStyle","curveness"]);d&&(p==="curve"?Bo(d,{shape:g$(m,h,y,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}):p==="polyline"&&n.get("layout")==="orthogonal"&&Bo(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function DQ(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function CQ(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=DQ(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Bo(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){AQ(u,e,n,i,l)}),AQ(a,e,n,i,l)}function g$(e,t,r,n,i){var a,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,d=i.rawY;var p=Yf(u,f),m=Yf(u,f+(d-f)*r),h=Yf(c,d+(f-d)*r),y=Yf(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else u=n.x,f=n.y,c=i.x,d=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(a=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var pbe,mbe,hbe,NQ,OQ=w(()=>{ae();I();nt();ai();tz();v$();Uw();fA();c$();u$();f$();Ct();Eu();ar();ha();pbe=(function(){function e(){this.parentPoint=[],this.childPoints=[]}return e})(),mbe=(function(e){L(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pbe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Be(n.forkPosition,1),p=[];p[c]=o[c],p[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(p[0],p[1]),r.moveTo(s[0],s[1]),p[c]=s[c],r.lineTo(p[0],p[1]),p[c]=l[c],r.lineTo(p[0],p[1]),r.lineTo(l[0],l[1]);for(var m=1;m<a-1;m++){var h=i[m];r.moveTo(h[0],h[1]),p[c]=h[c],r.lineTo(p[0],p[1])}},t})(me),hbe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Ye,r}return t.prototype.init=function(r,n){this._controller=new sA(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){EQ(a,c)&&zQ(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!EQ(a,c)){d&&CQ(u,f,d,s,r);return}zQ(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&CQ(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];$w(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new sh;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!cA(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){lA(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){uA(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(zr);NQ=hbe});function gbe(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,kQ(t,r,e),A(r,function(n){A(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,qe(ybe,e))})}),t.wrapMethod("cloneShallow",qe(bbe,e)),A(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,qe(_be,e))}),ir(r[t.dataType]===t)}function ybe(e,t){if(Tbe(this)){var r=$({},Ta(this).datas);r[this.dataType]=t,kQ(t,r,e)}else y$(t,this.dataType,Ta(this).mainData,e);return t}function _be(e,t){return e.struct&&e.struct.update(),t}function bbe(e,t){return A(Ta(t).datas,function(r,n){r!==t&&y$(r.cloneShallow(),n,t,e)}),t}function xbe(e){var t=Ta(this).mainData;return e==null||t==null?t:Ta(t).datas[e]}function Sbe(){var e=Ta(this).mainData;return e==null?[{data:e}]:H(pe(Ta(e).datas),function(t){return{type:t,data:Ta(e).datas[t]}})}function Tbe(e){return Ta(e).mainData===e}function kQ(e,t,r){Ta(e).datas={},A(t,function(n,i){y$(n,i,e,r)})}function y$(e,t,r,n){Ta(r).datas[t]=e,Ta(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=xbe,e.getLinkedDataAll=Sbe}var Ta,pA,_$=w(()=>{I();Ae();Ta=De();pA=gbe});function zbe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}var wbe,Ebe,MQ,IQ=w(()=>{I();_$();qm();Wy();Ae();wbe=(function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){te(t)&&(n=r,r=t,t=null),t=t||{},F(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e})(),Ebe=(function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,V(d)?d.length:1),a.push(c);var p=new wbe(rn(c.name,""),i);f?zbe(p,f):i.root=p,i._nodes.push(p);var m=c.children;if(m)for(var h=0;h<m.length;h++)s(m[h],p)}i.root.updateDepthAndHeight(0);var l=Hs(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new qa(l,r);return u.initData(a),n&&n(u),pA({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e})();MQ=Ebe});function RQ(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var LQ=w(()=>{});var Abe,PQ,$Q=w(()=>{ae();Su();IQ();Li();Df();LQ();Abe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new ht(i,this,this.ecModel),o=MQ.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var m=o.getNodeByDataIndex(p);return m&&m.children.length&&m.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Ka("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=RQ(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(nn),PQ=Abe});function UQ(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function lh(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}var jQ=w(()=>{});function b$(e,t){e.eachSeriesByType("tree",function(r){Cbe(r,t)})}function Cbe(e,t){var r=wQ(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=h$(function(_,b){return(_.parentNode===b.parentNode?1:2)/_.depth})):(i=r.width,a=r.height,o=h$());var s=e.getData().tree.root,l=s.children[0];if(l){xQ(s),UQ(l,SQ,o),s.hierNode.modifier=-l.hierNode.prelim,lh(l,TQ);var u=l,c=l,f=l;lh(l,function(_){var b=_.getLayout().x;b<u.getLayout().x&&(u=_),b>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,p=d-u.getLayout().x,m=0,h=0,y=0,v=0;if(n==="radial")m=i/(c.getLayout().x+d+p),h=a/(f.depth-1||1),lh(l,function(_){y=(_.getLayout().x+p)*m,v=(_.depth-1)*h;var b=Yf(y,v);_.setLayout({x:b.x,y:b.y,rawX:y,rawY:v},!0)});else{var g=e.getOrient();g==="RL"||g==="LR"?(h=a/(c.getLayout().x+d+p),m=i/(f.depth-1||1),lh(l,function(_){v=(_.getLayout().x+p)*h,y=g==="LR"?(_.depth-1)*m:i-(_.depth-1)*m,_.setLayout({x:y,y:v},!0)})):(g==="TB"||g==="BT")&&(m=i/(c.getLayout().x+d+p),h=a/(f.depth-1||1),lh(l,function(_){y=(_.getLayout().x+p)*m,v=g==="TB"?(_.depth-1)*h:a-(_.depth-1)*h,_.setLayout({x:y,y:v},!0)}))}}}var VQ=w(()=>{jQ();v$()});function x$(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");$(s,o)})})}var BQ=w(()=>{I()});function ZQ(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=dA(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var HQ=w(()=>{d$()});function S$(e){e.registerChartView(NQ),e.registerSeriesModel(PQ),e.registerLayout(b$),e.registerVisual(x$),ZQ(e)}var FQ=w(()=>{OQ();$Q();VQ();BQ();HQ()});function T$(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){ve(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}var GQ=w(()=>{I()});function w$(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){F(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");$(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}var qQ=w(()=>{I()});function mA(e){return e instanceof Array||(e=[e,e]),e}function E$(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=mA(t.get("edgeSymbol")),a=mA(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=mA(s.getShallow("symbol",!0)),c=mA(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch($(d,f),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var YQ=w(()=>{I()});function WQ(e){hA(e)&&(e.__curvenessList=[],e.__edgeMap={},XQ(e))}function JQ(e,t,r,n){if(hA(r)){var i=$_(e,t,r),a=r.__edgeMap,o=a[KQ(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function uh(e,t,r,n){var i=hA(t),a=V(i);if(!i)return null;var o=Dbe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=Nbe(e,t);XQ(t,u),e.lineStyle=e.lineStyle||{};var c=$_(e.node1,e.node2,t),f=t.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var p=KQ(c),m=A$(p,t),h=f[s+m+d];return n?a?i&&i[0]===0?(m+d)%2?h:-h:((m%2?0:1)+d)%2?h:-h:(m+d)%2?h:-h:f[s+m+d]}var z$,hA,XQ,$_,KQ,Dbe,Nbe,A$,U_=w(()=>{I();z$="-->",hA=function(e){return e.get("autoCurveness")||null},XQ=function(e,t){var r=hA(e),n=20,i=[];if(ve(r))n=r;else if(V(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},$_=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(z$)},KQ=function(e){var t=e.split(z$);return[t[0],t[2],t[1]].join(z$)},Dbe=function(e,t){var r=$_(e.node1,e.node2,t);return t.__edgeMap[r]},Nbe=function(e,t){var r=A$($_(e.node1,e.node2,t),t),n=A$($_(e.node2,e.node1,t),t);return r+n},A$=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0}});function vA(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),j_(r,e)}}function j_(e,t){e.eachEdge(function(r,n){var i=kn(r.getModel().get(["lineStyle","curveness"]),-uh(r,t,n,!0),0),a=ti(r.node1.getLayout()),o=ti(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}var gA=w(()=>{cr();I();U_()});function C$(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];A(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}j_(a.graph,r)}else(!n||n==="none")&&vA(r)})}var QQ=w(()=>{I();gA()});function Xf(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function Kf(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var yA=w(()=>{});function ch(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=i.pointToData(n),p=d[0],m=d[1],h=[p-l,m-u];la(h,h),vm(h,h,c),r.setLayout([l+h[0],u+h[1]],!0);var y=e.get(["circular","rotateLabel"]);N$(r,y,l,u)}Obe[t](e,s,o,c,l,u,f),s.eachEdge(function(v,g){var _=kn(v.getModel().get(["lineStyle","curveness"]),uh(v,e,g),0),b=ti(v.node1.getLayout()),x=ti(v.node2.getLayout()),S,T=(b[0]+x[0])/2,E=(b[1]+x[1])/2;+_&&(_*=3,S=[l*_+T*(1-_),u*_+E*(1-_)]),v.setLayout([b,x,S])})}}}function N$(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");$(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var eee,D$,Obe,_A=w(()=>{cr();yA();I();U_();eee=Math.PI,D$=[];Obe={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=d})},symbolSize:function(e,t,r,n,i,a,o){var s=0;D$.length=o;var l=Xf(e);t.eachNode(function(f){var d=Kf(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/n);isNaN(p)&&(p=eee/2),D$[f.dataIndex]=p,s+=p*2});var u=(2*eee-s)/o/2,c=0;t.eachNode(function(f){var d=u+D$[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}}});function O$(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&ch(t,"symbolSize")})}var tee=w(()=>{_A()});function ree(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=No(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=ti(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,p=d,m,h;return{warmUp:function(){p=d*.8},setFixed:function(y){n[y].fixed=!0},setUnfixed:function(y){n[y].fixed=!1},beforeStep:function(y){m=y},afterStep:function(y){h=y},step:function(y){m&&m(n,i);for(var v=[],g=n.length,_=0;_<i.length;_++){var b=i[_];if(!b.ignoreForceLayout){var x=b.n1,S=b.n2;Va(v,S.p,x.p);var T=aw(v)-b.d,E=S.w/(x.w+S.w);isNaN(E)&&(E=0),la(v,v),!x.fixed&&fh(x.p,x.p,v,E*T*p),!S.fixed&&fh(S.p,S.p,v,-(1-E)*T*p)}}for(var _=0;_<g;_++){var z=n[_];z.fixed||(Va(v,l,z.p),fh(z.p,z.p,v,u*p))}for(var _=0;_<g;_++)for(var x=n[_],C=_+1;C<g;C++){var S=n[C];Va(v,S.p,x.p);var T=aw(v);T===0&&(CG(v,Math.random()-.5,Math.random()-.5),T=1);var D=(x.rep+S.rep)/T/T;!x.fixed&&fh(x.pp,x.pp,v,D),!S.fixed&&fh(S.pp,S.pp,v,-D)}for(var O=[],_=0;_<g;_++){var z=n[_];z.fixed||(Va(O,z.p,z.pp),fh(z.p,z.p,O,p),Tr(z.pp,z.p))}p=p*.992;var k=p<.01;h&&h(n,i,k),y&&y(k)}}}var fh,nee=w(()=>{cr();fh=py});function k$(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(_){var b=a.getId(_);a.setItemLayout(_,n[b]||[NaN,NaN])}):!l||l==="none"?vA(t):l==="circular"&&ch(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),p=V(f)?f:[f,f],m=V(d)?d:[d,d];m=[m[1],m[0]];var h=a.mapArray("value",function(_,b){var x=a.getItemLayout(b),S=cu(_,u,p);return isNaN(S)&&(S=(p[0]+p[1])/2),{w:S,rep:S,fixed:a.getItemModel(b).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),y=o.mapArray("value",function(_,b){var x=i.getEdgeByIndex(b),S=cu(_,c,m);isNaN(S)&&(S=(m[0]+m[1])/2);var T=x.getModel(),E=kn(x.getModel().get(["lineStyle","curveness"]),-uh(x,t,b,!0),0);return{n1:h[x.node1.dataIndex],n2:h[x.node2.dataIndex],d:S,curveness:E,ignoreForceLayout:T.get("ignoreForceLayout")}}),v=r.getBoundingRect(),g=ree(h,y,{rect:v,gravity:s.get("gravity"),friction:s.get("friction")});g.beforeStep(function(_,b){for(var x=0,S=_.length;x<S;x++)_[x].fixed&&Tr(_[x].p,i.getNodeByIndex(x).getLayout())}),g.afterStep(function(_,b,x){for(var S=0,T=_.length;S<T;S++)_[S].fixed||i.getNodeByIndex(S).setLayout(_[S].p),n[a.getId(S)]=_[S].p;for(var S=0,T=b.length;S<T;S++){var E=b[S],z=i.getEdgeByIndex(S),C=E.n1.p,D=E.n2.p,O=z.getLayout();O=O?O.slice():[],O[0]=O[0]||[],O[1]=O[1]||[],Tr(O[0],C),Tr(O[1],D),+E.curveness&&(O[2]=[(C[0]+D[0])/2-(C[1]-D[1])*E.curveness,(C[1]+D[1])/2-(D[0]-C[0])*E.curveness]),z.setLayout(O)}}),t.forceLayout=g,t.preservedPoints=n,g.step()}else t.forceLayout=null})}var iee=w(()=>{nee();gA();_A();Ct();cr();I();U_()});function kbe(e,t,r){var n=$(e.getBoxLayoutParams(),{aspect:r});return ji(n,{width:t.getWidth(),height:t.getHeight()})}function M$(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(y){var v=a.getItemModel(y);return[+v.get("x"),+v.get("y")]}),s=[],l=[];$w(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=kbe(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],p=c.width,m=c.height,h=n.coordinateSystem=new sh;h.zoomLimit=n.get("scaleLimit"),h.setBoundingRect(s[0],s[1],f,d),h.setViewRect(c.x,c.y,p,m),h.setCenter(n.get("center"),t),h.setZoom(n.get("zoom")),r.push(h)}}),r}var aee=w(()=>{fA();ya();Uw();I()});function R$(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var oee,I$,see,aHe,Mbe,lee,uee=w(()=>{ae();nt();cr();oee=Ii.prototype,I$=df.prototype,see=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),aHe=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(see);Mbe=(function(e){L(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new see},t.prototype.buildPath=function(r,n){R$(n)?oee.buildPath.call(this,r,n):I$.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return R$(this.shape)?oee.pointAt.call(this,r):I$.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=R$(n)?[n.x2-n.x1,n.y2-n.y1]:I$.tangentAt.call(this,r);return la(i,i)},t})(me),lee=Mbe});function cee(e){return"_"+e+"Type"}function fee(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=s_(i),u=Nf(o||0,l);return n+l+u+(a||"")+(s||"")}function dee(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=s_(i),u=Nf(o||0,l),c=Vi(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function Ibe(e){var t=new lee({name:"line",subPixelOptimize:!0});return P$(t.shape,e),t}function P$(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var L$,Rbe,pee,mee=w(()=>{ae();I();cr();Of();uee();nt();ha();Ri();Ct();L$=["fromSymbol","toSymbol"];Rbe=(function(e){L(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=Ibe(o);s.shape.percent=0,$t(s,{shape:{percent:1}},a,n),this.add(s),A(L$,function(l){var u=dee(l,r,n);this.add(u),this[cee(l)]=fee(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};P$(l.shape,s),et(o,l,a,n),A(L$,function(u){var c=fee(u,r,n),f=cee(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=dee(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,p=i&&i.blurScope;if(!i||r.hasItemOption){var m=r.getItemModel(n),h=m.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),l=m.getModel(["blur","lineStyle"]).getLineStyle(),u=m.getModel(["select","lineStyle"]).getLineStyle(),f=h.get("disabled"),d=h.get("focus"),p=h.get("blurScope"),c=si(m)}var y=r.getItemVisual(n,"style"),v=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(L$,function(S){var T=this.childOfName(S);if(T){T.setColor(v),T.style.opacity=y.opacity;for(var E=0;E<Lr.length;E++){var z=Lr[E],C=o.getState(z);if(C){var D=C.style||{},O=T.ensureState(z),k=O.style||(O.style={});D.stroke!=null&&(k[T.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(k.opacity=D.opacity)}}T.markRedraw()}},this);var g=a.getRawValue(n);va(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,T){return a.getFormattedLabel(S,T,r.dataType)}},inheritColor:v||"#000",defaultOpacity:y.opacity,defaultText:(g==null?r.getName(n):isFinite(g)?St(g):g)+""});var _=this.getTextContent();if(_){var b=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=b.get("position")||"middle";var x=b.get("distance");V(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Za(this,d,p,f)},t.prototype.highlight=function(){Is(this)},t.prototype.downplay=function(){Rs(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");P$(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Va([],f,c);la(d,d);function p(C,D){var O=C.__specifiedRotation;if(O==null){var k=l.tangentAt(D);C.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(k[1],k[0]))}else C.attr("rotation",O)}if(n&&(n.setPosition(c),p(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),p(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var m=void 0,h=void 0,y=a.__labelDistance,v=y[0]*o,g=y[1]*o,_=u/2,b=l.tangentAt(_),x=[b[1],-b[0]],S=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var E=-Math.atan2(b[1],b[0]);f[0]<c[0]&&(E=Math.PI+E),a.rotation=E}var z=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=g,h="top";break;default:z=0,h="middle"}switch(a.__position){case"end":a.x=d[0]*v+f[0],a.y=d[1]*g+f[1],m=d[0]>.8?"left":d[0]<-.8?"right":"center",h=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*v+c[0],a.y=-d[1]*g+c[1],m=d[0]>.8?"right":d[0]<-.8?"left":"center",h=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=v*T+c[0],a.y=c[1]+z,m=b[0]<0?"right":"left",a.originX=-v*T,a.originY=-z;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+z,m="center",a.originY=-z;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-v*T+f[0],a.y=f[1]+z,m=b[0]>=0?"right":"left",a.originX=v*T,a.originY=-z;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||h,align:a.__align||m})}},t})(Ye),pee=Rbe});function Pbe(e){return e.animators&&e.animators.length>0}function hee(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:si(t)}}function vee(e){return isNaN(e[0])||isNaN(e[1])}function $$(e){return e&&!vee(e[0])&&!vee(e[1])}var Lbe,gee,yee=w(()=>{nt();mee();Ri();Lbe=(function(){function e(t){this.group=new Ye,this._LineCtor=t||pee}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=hee(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=hee(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!Pbe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if($$(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){$s(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if($$(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!$$(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e})();gee=Lbe});function bee(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){U$[0]=dh(n[0],i[0],a[0],c),U$[1]=dh(n[1],i[1],a[1],c);var f=_ee(B$(U$,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var p=s+u;j$[0]=dh(n[0],i[0],a[0],s),j$[1]=dh(n[1],i[1],a[1],s),V$[0]=dh(n[0],i[0],a[0],p),V$[1]=dh(n[1],i[1],a[1],p);var f=B$(j$,t)-l;if(_ee(f)<.01)break;var m=B$(V$,t)-l;u/=2,f<0?m>=0?s=s+u:s=s-u:m>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=tu,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[ti(u[0]),ti(u[1])],u[2]&&u.__original.push(ti(u[2])));var d=u.__original;if(u[2]!=null){if(Tr(i[0],d[0]),Tr(i[1],d[2]),Tr(i[2],d[1]),c&&c!=="none"){var p=Kf(s.node1),m=bee(i,d[0],p*t);n(i[0][0],i[1][0],i[2][0],m,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],m,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var p=Kf(s.node2),m=bee(i,d[1],p*t);n(i[0][0],i[1][0],i[2][0],m,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],m,r),i[1][1]=r[1],i[2][1]=r[2]}Tr(u[0],i[0]),Tr(u[1],i[2]),Tr(u[2],i[1])}else{if(Tr(a[0],d[0]),Tr(a[1],d[1]),Va(o,a[1],a[0]),la(o,o),c&&c!=="none"){var p=Kf(s.node1);py(a[0],a[0],o,p*t)}if(f&&f!=="none"){var p=Kf(s.node2);py(a[1],a[1],o,-p*t)}Tr(u[0],a[0]),Tr(u[1],a[1])}})}var U$,j$,V$,dh,B$,_ee,xee=w(()=>{Ba();cr();yA();U$=[],j$=[],V$=[],dh=fr,B$=zs,_ee=Math.abs});function See(e){return e.type==="view"}var $be,Tee,wee=w(()=>{ae();iL();yee();u$();c$();f$();nt();xee();yA();Eu();ai();gA();_A();$be=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new rz,a=new gee,o=this.group;this._controller=new sA(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(See(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):et(u,c,r)}V_(r.getGraph(),Xf(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var p=r.forceLayout,m=r.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,m);var h=r.get("layout");f.graph.eachNode(function(_){var b=_.dataIndex,x=_.getGraphicEl(),S=_.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(z){switch(h){case"force":p.warmUp(),!a._layouting&&a._startForceLayoutIteration(p,m),p.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),_.setLayout({fixed:!0},!0),ch(r,"symbolSize",_,[z.offsetX,z.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),j_(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){p&&p.setUnfixed(b)}),x.setDraggable(T,!!S.get("cursor"));var E=S.get(["emphasis","focus"]);E==="adjacency"&&(we(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var b=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(we(b).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),v=f.getLayout("cx"),g=f.getLayout("cy");f.graph.eachNode(function(_){N$(_,y,v,g)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!cA(u,i,r)}),!See(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){lA(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){uA(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),V_(r.getGraph(),Xf(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Xf(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),Xf(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t})(zr),Tee=$be});function ph(e){return"_EC_"+e}function zee(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}var Ube,Wf,Eee,Aee,Cee=w(()=>{I();Ube=(function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[ph(t)]){var i=new Wf(t,r);return i.hostGraph=this,this.nodes.push(i),n[ph(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[ph(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(ve(t)&&(t=this.nodes[t]),ve(r)&&(r=this.nodes[r]),t instanceof Wf||(t=i[ph(t)]),r instanceof Wf||(r=i[ph(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new Eee(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Wf&&(t=t.id),r instanceof Wf&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Wf||(r=this._nodesMap[ph(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e})(),Wf=(function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=oe(),r=oe(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e})(),Eee=(function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=oe(),r=oe();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e})();Ir(Wf,zee("hostGraph","data"));Ir(Eee,zee("hostGraph","edgeData"));Aee=Ube});function Z$(e,t,r,n,i){for(var a=new Aee(n),o=0;o<e.length;o++)a.addNode(zo(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(zo(rn(c.id,null),f+" > "+d)),u++)}var p=r.get("coordinateSystem"),m;if(p==="cartesian2d"||p==="polar")m=hu(e,r);else{var h=Tf.get(p),y=h?h.dimensions||[]:[];Ne(y,"value")<0&&y.concat(["value"]);var v=Hs(e,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;m=new qa(v,r),m.initData(e)}var g=new qa(["value"],r);return g.initData(l,s),i&&i(m,g),pA({mainData:m,struct:a,structAttr:"graph",datas:{node:m,edge:g},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var Dee=w(()=>{I();qm();Cee();_$();Wy();DE();Jy();Ae()});var jbe,Nee,Oee=w(()=>{ae();qm();I();Ae();Li();Dee();jL();Su();Df();eL();U_();jbe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new xz(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),lf(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){WQ(this);var s=Z$(a,i,this,!0,l);return A(s.edges,function(u){JQ(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(m){var h=o._categoriesModels,y=m.getShallow("category"),v=h[y];return v&&(v.parentModel=m.parentModel,m.parentModel=v),m});var f=ht.prototype.getModel;function d(m,h){var y=f.call(this,m,h);return y.resolveParentPath=p,y}c.wrapMethod("getItemModel",function(m){return m.resolveParentPath=p,m.getModel=d,m});function p(m){if(m&&(m[0]==="label"||m[1]==="label")){var h=m.slice();return m[0]==="label"?h[0]="edgeLabel":m[1]==="label"&&(h[1]="edgeLabel"),h}return m}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Ka("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=KE({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=H(this.option.categories||[],function(i){return i.value!=null?i:$({value:0},i)}),n=new qa(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t})(nn),Nee=jbe});function H$(e){e.registerChartView(Tee),e.registerSeriesModel(Nee),e.registerProcessor(T$),e.registerVisual(w$),e.registerVisual(E$),e.registerLayout(C$),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,O$),e.registerLayout(k$),e.registerCoordinateSystem("graphView",{dimensions:sh.dimensions,create:M$}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Lt),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Lt),e.registerAction(Vbe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=dA(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var Vbe,kee=w(()=>{GQ();qQ();YQ();QQ();tee();iee();aee();fA();wee();Oee();d$();I();Vbe={type:"graphRoam",event:"graphRoam",update:"none"}});var Mee=w(()=>{f7();j7();aX();FQ();kee()});var Iee=w(()=>{Mee()});function Lee(e,t,r,n){Uee(Jf(r).lastProp,n)||(Jf(r).lastProp=n,t?et(r,n,e):(r.stopAnimation(),r.attr(n)))}function Uee(e,t){if(J(e)&&J(t)){var r=!0;return A(t,function(n,i){r=r&&Uee(e[i],n)}),!!r}else return e===t}function Pee(e,t){e[t.get(["label","show"])?"show":"hide"]()}function G$(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $ee(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}var Jf,Ree,F$,Bbe,jee,Vee=w(()=>{I();nt();P_();$f();p_();Ae();Jf=De(),Ree=_e,F$=Oe,Bbe=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ye,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=qe(Lee,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}$ee(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=iA(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Jf(t).pointerEl=new Kt[a.type](Ree(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Jf(t).labelEl=new Pt(Ree(r.label));t.add(a),Pee(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Jf(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Jf(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Pee(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Zy(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Pf(u.event)},onmousedown:F$(this._onHandleDragMove,this,0,0),drift:F$(this._onHandleDragMove,this),ondragend:F$(this._onHandleDragEnd,this)}),n.add(i)),$ee(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");V(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sz(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Lee(this._axisPointerModel,!r&&this._moveAnimation,this._handle,G$(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(G$(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(G$(i)),Jf(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),d_(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();jee=Bbe});function Bee(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Zbe(e,t,r,n,i){var a=r.get("value"),o=q$(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=gu(s.get("padding")||0),u=s.getFont(),c=pm(o,u),f=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],m=i.align;m==="right"&&(f[0]-=d),m==="center"&&(f[0]-=d/2);var h=i.verticalAlign;h==="bottom"&&(f[1]-=p),h==="middle"&&(f[1]-=p/2),Hbe(f,d,p,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Us(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Hbe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function q$(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:I_(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),F(o)?a=o.replace("{value}",a):te(o)&&(a=o(s))}return a}function Y$(e,t,r){var n=ja();return fm(n,n,r.rotation),cy(n,n,r.position),hE([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Zee(e,t,r,n,i,a){var o=nA.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Zbe(t,n,i,a,{position:Y$(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Hee(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Fee(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var X$=w(()=>{I();nt();sa();Xa();Es();Gf();e$();Ri()});function qee(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}function Yee(e){return e.dim==="x"?0:1}var Fbe,Gbe,Xee,Kee=w(()=>{ae();Vee();X$();rA();Fbe=(function(e){L(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=qee(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=Bee(a),p=Gbe[u](s,f,c);p.style=d,r.graphicKey=p.type,r.pointer=p}var m=L_(l.model,i);Zee(n,r,m,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=L_(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Y$(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=qee(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var m=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:p,tooltipOption:m[c]}},t})(jee);Gbe={line:function(e,t,r){var n=Hee([t,r[0]],[t,r[1]],Yee(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Fee([t-n/2,r[0]],[n,i],Yee(e))}}};Xee=Fbe});var qbe,Wee,Jee=w(()=>{ae();qs();qbe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(ft),Wee=qbe});function bA(e,t,r){if(!ye.node){var n=t.getZr();Ws(n).records||(Ws(n).records={}),Xbe(n,t);var i=Ws(n).records[e]||(Ws(n).records[e]={});i.handler=r}}function Xbe(e,t){if(Ws(e).initialized)return;Ws(e).initialized=!0,r("click",qe(Qee,"click")),r("mousemove",qe(Qee,"mousemove")),r("globalout",Wbe);function r(n,i){e.on(n,function(a){var o=Jbe(t);Ybe(Ws(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Kbe(o.pendings,t)})}}function Kbe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Wbe(e,t,r){e.handler("leave",null,r)}function Qee(e,t,r,n){t.handler(e,r,n)}function Jbe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function B_(e,t){if(!ye.node){var r=t.getZr(),n=(Ws(r).records||{})[e];n&&(Ws(r).records[e]=null)}}var Ws,Ybe,K$=w(()=>{I();Qr();Ae();Ws=De(),Ybe=A});var Qbe,tte,rte=w(()=>{ae();K$();Au();Qbe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";bA("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){B_("axisPointer",n)},t.prototype.dispose=function(r,n){B_("axisPointer",n)},t.type="axisPointer",t})($n),tte=Qbe});function Z_(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ma(a,e);if(o==null||o<0||V(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,m=a.mapDimension(d),h=[];h[p]=a.get(m,o),h[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(h)||[]}else r=l.dataToPoint(a.getValues(H(l.dimensions,function(v){return a.mapDimension(v)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var W$=w(()=>{I();Ae()});function J$(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Oe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){xA(i)&&(i=Z_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=xA(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||xA(i),d={},p={},m={list:[],map:{}},h={showPointer:qe(txe,p),showTooltip:qe(rxe,m)};A(s.coordSysMap,function(v,g){var _=l||v.containPoint(i);A(s.coordSysAxesInfo[g],function(b,x){var S=b.axis,T=oxe(u,b);if(!f&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=S.pointToData(i)),E!=null&&ite(b,E,h,!1,d)}})});var y={};return A(c,function(v,g){var _=v.linkGroup;_&&!p[g]&&A(_.axesInfo,function(b,x){var S=p[x];if(b!==v&&S){var T=S.value;_.mapper&&(T=v.axis.scale.parse(_.mapper(T,ate(b),ate(v)))),y[v.key]=T}})}),A(y,function(v,g){ite(c[g],v,h,!0,d)}),nxe(p,c,d),ixe(m,i,e,o),axe(c,o,r),d}}function ite(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=exe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&$(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function exe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,e,r);d=p.dataIndices,f=p.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var m=e-f,h=Math.abs(m);h<=o&&((h<o||m>=0&&s<0)&&(o=h,s=m,i=f,a.length=0),A(d,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function txe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function rxe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=oh(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function nxe(e,t,r){var n=r.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function ixe(e,t,r,n){if(xA(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function axe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=nte(n)[i]||{},o=nte(n)[i]={};A(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&A(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var s=[],l=[];A(a,function(u,c){!o[c]&&l.push(u)}),A(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oxe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function ate(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function xA(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}var nte,ote=w(()=>{Ae();P_();W$();I();nte=De()});function SA(e){aA.registerAxisPointerClass("CartesianAxisPointer",Xee),e.registerComponentModel(Wee),e.registerComponentView(tte),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!V(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=tQ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},J$)}var Q$=w(()=>{i$();Kee();Jee();rte();I();P_();ote()});function eU(e){_n(dQ),_n(SA)}var ste=w(()=>{pQ();Q$();Zf()});function lte(e,t){var r=gu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ct({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var ute=w(()=>{Xa();nt()});var sxe,cte,fte=w(()=>{ae();qs();sxe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(ft),cte=sxe});function TA(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function dte(e){if(ye.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}function rU(e,t){if(!e)return t;t=jE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function mte(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var tU,pte,nU=w(()=>{Xa();Qr();tU=dte(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),pte=dte(["webkitTransition","transition","OTransition","MozTransition","msTransition"])});function cxe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function fxe(e,t,r){if(!F(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Ya(t);var a=cxe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=iU+":",u;Ne(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+p+"px";var m=t+" solid "+i+"px;",h=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+m,"border-right:"+m,"background-color:"+n+";"];return'<div style="'+h.join("")+'"></div>'}function dxe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=ye.transformSupported?","+iU+n:",left"+n+",top"+n),lxe+":"+i}function hte(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ye.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ye.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+iU+":"+o+";":[["top",0],["left",0],[tU,o]]}function pxe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=se(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function mxe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=YE(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(dxe(i,r)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(p){var m="border-"+p,h=jE(m),y=e.get(h);y!=null&&n.push(m+":"+y+(p==="color"?"":"px"))}),n.push(pxe(c)),f!=null&&n.push("padding:"+gu(f).join("px ")+"px"),n.join(";")+";"}function vte(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&uY(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var lxe,iU,uxe,hxe,gte,yte=w(()=>{I();$f();Qy();Qr();Xa();nU();Df();lxe=rU(pte,"transition"),iU=rU(tU,"transform"),uxe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ye.transform3dSupported?"will-change:transform;":"");hxe=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ye.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(F(a)?document.querySelector(a):nm(a)?a:te(a)&&a(t.getDom()));vte(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();li(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=mte(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=uxe+mxe(t,!this._firstShow,this._longHide)+hte(a[0],a[1],!0)+("border-color:"+Ya(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(F(a)&&n.get("trigger")==="item"&&!TA(n)&&(s=fxe(n,i,a)),F(t))o.innerHTML=t+s;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var l=0;l<t.length;l++)nm(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(vte(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=hte(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ye.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Oe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e})(),gte=hxe});function Ru(e){return Math.max(0,e)}function _te(e){var t=Ru(e.shadowBlur||0),r=Ru(e.shadowOffsetX||0),n=Ru(e.shadowOffsetY||0);return{left:Ru(t-r),right:Ru(t+r),top:Ru(t-n),bottom:Ru(t+n)}}function bte(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var vxe,xte,Ste=w(()=>{I();Cm();Df();Xw();vxe=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),bte(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;J(t)&&Rr(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Pt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:YE(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=_te(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;bte(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Ru(a.borderWidth||0),s=_te(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Oe(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();xte=vxe});function H_(e,t,r){var n=t.ecModel,i;r?(i=new ht(r,n,n),i=new ht(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ht&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(i=new ht(o,i,n)))}return i}function Tte(e,t){return e.dispatchAction||Oe(t.dispatchAction,t)}function _xe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function bxe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function xxe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function wte(e){return e==="center"||e==="middle"}function Sxe(e,t,r){var n=Oy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=fu(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=we(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}var gxe,yxe,Ete,zte=w(()=>{ae();I();Qr();yte();Ste();Xa();Ct();nt();W$();ya();Li();K$();Gf();X$();Ae();Au();UE();ai();nU();Y2();Df();vP();p_();gxe=new ct({shape:{x:-1,y:-1,width:2,height:2}}),yxe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ye.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=e8(i.get("renderMode"));this._tooltipContent=a==="richText"?new xte(n):new gte(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(ye.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?sz(this,"_updatePosition",50,"fixRate"):d_(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");bA("itemTooltip",this._api,Oe(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||ye.node||!i.getDom())){var o=Tte(a,i);this._ticket="";var s=a.dataByCoordSys,l=Sxe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=gxe;c.x=a.x,c.y=a.y,c.update(),we(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=Z_(a,n),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Tte(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=H_([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=we(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Vf(i,function(c){if(we(c).dataIndex!=null)return l=c,!0;if(we(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Oe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=H_([n.tooltipOption],a),l=this._renderMode,u=[],c=Ka("section",{blocks:[],noHeader:!0}),f=[],d=new XE;A(r,function(g){A(g.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!b||x==null)){var S=q$(x,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),T=Ka("section",{header:S,noHeader:!Jr(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),A(_.seriesDataIndices,function(E){var z=i.getSeriesByIndex(E.seriesIndex),C=E.dataIndexInside,D=z.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=I_(b.axis,{value:x}),D.axisValueLabel=S,D.marker=d.makeTooltipMarker("item",Ya(D.color),l);var O=q2(z.formatTooltip(C,!0,null)),k=O.frag;if(k){var R=H_([z],a).get("valueFormatter");T.blocks.push(R?$({valueFormatter:R},k):k)}O.text&&f.push(O.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var p=n.position,m=s.get("order"),h=Q2(c,d,l,m,i.get("useUTC"),s.get("textStyle"));h&&f.unshift(h);var y=l==="richText"?`
|
|
66
|
+
|
|
67
|
+
`:"<br/>",v=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",o[0],o[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=we(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),p=this._renderMode,m=r.positionDefault,h=H_([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,m?{position:m}:null),y=h.get("trigger");if(!(y!=null&&y!=="item")){var v=u.getDataParams(c,f),g=new XE;v.marker=g.makeTooltipMarker("item",Ya(v.color),p);var _=q2(u.formatTooltip(c,!1,f)),b=h.get("order"),x=h.get("valueFormatter"),S=_.frag,T=S?Q2(x?$({valueFormatter:x},S):S,g,p,b,a.get("useUTC"),h.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(h,function(){this._showTooltipContent(h,T,v,E,r.offsetX,r.offsetY,r.position,r.target,g)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=we(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(F(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=_e(l),l.content=Er(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=r.positionDefault,m=H_(f,this._tooltipModel,p?{position:p}:null),h=m.get("content"),y=Math.random()+"",v=new XE;this._showOrMove(m,function(){var g=_e(m.get("formatterParams")||{});this._showTooltipContent(m,h,g,y,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var p=n,m=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),h=m.color;if(d)if(F(d)){var y=r.ecModel.get("useUTC"),v=V(i)?i[0]:i,g=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=d,g&&(p=Af(v.axisValue,p,y)),p=BE(p,i,!0)}else if(te(d)){var _=Oe(function(b,x){b===this._ticket&&(f.setContent(x,c,r,h,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,p=d(i,a,_)}else p=d;f.setContent(p,c,r,h,l),f.show(r,h),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||V(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),p=r.get("verticalAlign"),m=l&&l.getBoundingRect().clone();if(l&&m.applyTransform(l.transform),te(n)&&(n=n([i,a],s,o.el,m,{viewSize:[u,c],contentSize:f.slice()})),V(n))i=Be(n[0],u),a=Be(n[1],c);else if(J(n)){var h=n;h.width=f[0],h.height=f[1];var y=ji(h,{width:u,height:c});i=y.x,a=y.y,d=null,p=null}else if(F(n)&&l){var v=xxe(n,m,f,r.get("borderWidth"));i=v[0],a=v[1]}else{var v=_xe(i,a,o,u,c,d?null:20,p?null:20);i=v[0],a=v[1]}if(d&&(i-=wte(d)?f[0]/2:d==="right"?f[0]:0),p&&(a-=wte(p)?f[1]/2:p==="bottom"?f[1]:0),TA(r)){var v=bxe(i,a,o,u,c);i=v[0],a=v[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&A(u,function(d,p){var m=f[p]||{},h=d.seriesDataIndices||[],y=m.seriesDataIndices||[];o=o&&d.value===m.value&&d.axisType===m.axisType&&d.axisId===m.axisId&&h.length===y.length,o&&A(h,function(v,g){var _=y[g];o=o&&v.seriesIndex===_.seriesIndex&&v.dataIndex===_.dataIndex}),a&&A(d.seriesDataIndices,function(v){var g=v.seriesIndex,_=n[g],b=a[g];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ye.node||!n.getDom()||(d_(this,"_updatePosition"),this._tooltipContent.dispose(),B_("itemTooltip",n))},t.type="tooltip",t})($n);Ete=yxe});function aU(e){_n(SA),e.registerComponentModel(cte),e.registerComponentView(Ete),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Lt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Lt)}var Ate=w(()=>{Q$();Zf();fte();zte();I()});var Txe,wxe,F_,oU=w(()=>{ae();I();Li();Ae();qs();Txe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},wxe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),V(n)&&A(n,function(a,o){F(a)&&(a={type:a}),n[o]=Qe(a,Txe(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&Nm(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=oe(),s=H(a,function(l){return(F(l)||ve(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ht(l,this,this.ecModel))},this);this._data=xt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&Ne(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(ft),F_=wxe});function zxe(e,t,r,n,i,a,o){function s(y,v){y.lineWidth==="auto"&&(y.lineWidth=v.lineWidth>0?2:0),sU(y,function(g,_){y[_]==="inherit"&&(y[_]=v[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:E_(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),!a){var m=t.get("inactiveBorderWidth"),h=u[c];u.lineWidth=m==="auto"?n.lineWidth>0&&h?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Axe(e){var t=e.icon||"roundRect",r=Vi(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function Cte(e,t,r,n){uU(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),lU(e,t,r,n)}function Dte(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function lU(e,t,r,n){Dte(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function uU(e,t,r,n){Dte(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}var mh,sU,wA,Exe,EA,cU=w(()=>{ae();I();ko();nt();ha();Ri();ute();ya();Au();Of();TP();ai();mh=qe,sU=A,wA=Ye,Exe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new wA),this.group.add(this._selectorGroup=new wA),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),p=ji(c,f,d),m=this.layoutInner(r,o,p,a,l,u),h=ji(de({width:m.width,height:m.height},c),f,d);this.group.x=h.x-m.x,this.group.y=h.y-m.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lte(m,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=oe(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),sU(n.getData(),function(p,m){var h=p.get("name");if(!this.newlineDisabled&&(h===""||h===`
|
|
68
|
+
`)){var y=new wA;y.newline=!0,u.add(y);return}var v=i.getSeriesByName(h)[0];if(!c.get(h))if(v){var g=v.getData(),_=g.getVisual("legendLineStyle")||{},b=g.getVisual("legendIcon"),x=g.getVisual("style"),S=this._createItem(v,h,m,p,n,r,_,x,b,f,a);S.on("click",mh(Cte,h,null,a,d)).on("mouseover",mh(lU,v.name,null,a,d)).on("mouseout",mh(uU,v.name,null,a,d)),i.ssr&&S.eachChild(function(T){var E=we(T);E.seriesIndex=v.seriesIndex,E.dataIndex=m,E.ssrType="legend"}),c.set(h,!0)}else i.eachRawSeries(function(T){if(!c.get(h)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(h))return;var z=E.indexOfName(h),C=E.getItemVisual(z,"style"),D=E.getItemVisual(z,"legendIcon"),O=ri(C.fill);O&&O[3]===0&&(O[3]=.2,C=$($({},C),{fill:Sm(O,"rgba")}));var k=this._createItem(T,h,m,p,n,r,{},C,D,f,a);k.on("click",mh(Cte,null,h,a,d)).on("mouseover",mh(lU,null,h,a,d)).on("mouseout",mh(uU,null,h,a,d)),i.ssr&&k.eachChild(function(R){var j=we(R);j.seriesIndex=T.seriesIndex,j.dataIndex=m,j.ssrType="legend"}),c.set(h,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();sU(r,function(u){var c=u.type,f=new Pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(f);var d=n.getModel("selectorLabel"),p=n.getModel(["emphasis","selectorLabel"]);va(f,{normal:d,emphasis:p},{defaultText:u.title}),tE(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var p=r.visualDrawType,m=o.get("itemWidth"),h=o.get("itemHeight"),y=o.isSelected(n),v=a.get("symbolRotate"),g=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=zxe(c,a,l,u,p,y,d),x=new wA,S=a.getModel("textStyle");if(te(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:m,itemHeight:h,icon:c,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:g}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?v==="inherit"?r.getData().getVisual("symbolRotate"):v:0;x.add(Axe({itemWidth:m,itemHeight:h,icon:c,iconRotate:T,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:g}))}var E=s==="left"?m+5:-5,z=s,C=o.get("formatter"),D=n;F(C)&&C?D=C.replace("{name}",n??""):te(C)&&(D=C(n));var O=y?S.getTextColor():a.get("inactiveColor");x.add(new Pt({style:Us(S,{text:D,x:E,y:h/2,fill:O,align:z,verticalAlign:"middle"},{inheritColor:O})}));var k=new ct({shape:x.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&jm({el:k,componentModel:o,itemName:n,itemTooltipOption:R.option}),x.add(k),x.eachChild(function(j){j.silent=!0}),k.silent=!f,this.getContentGroup().add(x),tE(x),x.__legendDataIndex=i,x},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cf(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Cf("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],m=r.get("selectorButtonGap",!0),h=r.getOrient().index,y=h===0?"width":"height",v=h===0?"height":"width",g=h===0?"y":"x";s==="end"?p[h]+=c[y]+m:f[h]+=d[y]+m,p[1-h]+=c[v]/2-d[v]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[y]=c[y]+m+d[y],_[v]=Math.max(c[v],d[v]),_[g]=Math.min(0,d[g]+p[1-h]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})($n);EA=Exe});function fU(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}var Nte=w(()=>{});function G_(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),Ote(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){A(i,function(l,u){s[l?"select":"unSelect"](u)}),Ote(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Ote(e,t){var r=t||{};return A(e.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
69
|
+
`||i==="")){var a=e.isSelected(i);Oi(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function kte(e){e.registerAction("legendToggleSelect","legendselectchanged",qe(G_,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",qe(G_,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",qe(G_,"inverseSelect")),e.registerAction("legendSelect","legendselected",qe(G_,"select")),e.registerAction("legendUnSelect","legendunselected",qe(G_,"unSelect"))}var Mte=w(()=>{I()});function zA(e){e.registerComponentModel(F_),e.registerComponentView(EA),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,fU),e.registerSubTypeDefaulter("legend",function(){return"plain"}),kte(e)}var dU=w(()=>{oU();cU();Nte();Mte()});function Ite(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ho(t,r,{type:"box",ignoreSize:!!i})}var Cxe,Rte,Lte=w(()=>{ae();oU();ya();wf();Cxe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=_u(r);e.prototype.init.call(this,r,n,i),Ite(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Ite(this,this.option,r)},t.type="legend.scroll",t.defaultOption=NE(F_.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(F_);Rte=Cxe});var Pte,pU,mU,Dxe,$te,Ute=w(()=>{ae();I();nt();ya();cU();Pte=Ye,pU=["width","height"],mU=["x","y"],Dxe=(function(e){L(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Pte),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Pte)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=V(f)?f:[f,f];m("pagePrev",0);var p=n.getModel("pageTextStyle");c.add(new Pt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1);function m(h,y){var v=h+"DataIndex",g=Zy(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:Oe(u._pageGo,u,v,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});g.name=h,c.add(g)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=pU[u],f=mU[u],d=pU[1-u],p=mU[1-u];o&&Cf("horizontal",l,r.get("selectorItemGap",!0));var m=r.get("selectorButtonGap",!0),h=l.getBoundingRect(),y=[-h.x,-h.y],v=_e(i);o&&(v[c]=i[c]-h[c]-m);var g=this._layoutContentAndController(r,a,v,u,c,d,p,f);if(o){if(s==="end")y[u]+=g[c]+m;else{var _=h[c]+m;y[u]-=_,g[f]-=_}g[c]+=h[c]+m,y[1-u]+=g[p]+g[d]/2-h[d]/2,g[d]=Math.max(g[d],h[d]),g[p]=Math.min(g[p],h[p]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return g},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Cf(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Cf("horizontal",d,r.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),m=d.getBoundingRect(),h=this._showController=p[o]>i[o],y=[-p.x,-p.y];n||(y[a]=c[u]);var v=[0,0],g=[-m.x,-m.y],_=se(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(h){var b=r.get("pageButtonPosition",!0);b==="end"?g[a]+=i[o]-m[o]:v[a]+=m[o]+_}g[1-a]+=p[s]/2-m[s]/2,c.setPosition(y),f.setPosition(v),d.setPosition(g);var x={x:0,y:0};if(x[o]=h?i[o]:p[o],x[s]=Math.max(p[s],m[s]),x[l]=Math.min(0,m[l]+g[1-a]),f.__rectSize=i[o],h){var S={x:0,y:0};S[o]=Math.max(i[o]-m[o]-_,0),S[s]=x[s],f.setClipPath(new ct({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&et(c,{x:T.contentPosition[0],y:T.contentPosition[1]},h?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,p=i.childOfName(c);p&&(p.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",F(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=pU[o],l=mU[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,p=d?1:0,m={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return m;var h=b(f);m.contentPosition[o]=-h.s;for(var y=u+1,v=h,g=h,_=null;y<=d;++y)_=b(c[y]),(!_&&g.e>v.s+a||_&&!x(_,v.s))&&(g.i>v.i?v=g:v=_,v&&(m.pageNextDataIndex==null&&(m.pageNextDataIndex=v.i),++m.pageCount)),g=_;for(var y=u-1,v=h,g=h,_=null;y>=-1;--y)_=b(c[y]),(!_||!x(g,_.s))&&v.i<g.i&&(g=v,m.pagePrevDataIndex==null&&(m.pagePrevDataIndex=v.i),++m.pageCount,++m.pageIndex),v=_;return m;function b(S){if(S){var T=S.getBoundingRect(),E=T[l]+S[l];return{s:E,e:E+T[s],i:S.__legendDataIndex}}}function x(S,T){return S.e>=T&&S.s<=T+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t})(EA),$te=Dxe});function hU(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}var jte=w(()=>{});function Vte(e){_n(zA),e.registerComponentModel(Rte),e.registerComponentView($te),hU(e)}var Bte=w(()=>{Zf();dU();Lte();Ute();jte()});function vU(e){_n(zA),_n(Vte)}var Zte=w(()=>{Zf();dU();Bte()});var Hte=w(()=>{ste();Ate();Zte()});var Fte=w(()=>{Hte()});var Gte=w(()=>{Zf()});function Nxe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Oxe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:Nxe(n&&n.shape.points)}}function AA(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var qte,Un,gU,kxe,CA,Mxe,Yte,Xte=w(()=>{nt();ai();Ct();Gc();vz();Ae();I();bz();Ri();jw();qte=["align","verticalAlign","width","height","fontSize"],Un=new ua,gU=De(),kxe=De();CA=["x","y","rotation"],Mxe=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();ze.applyTransform(c,c,u),u?Un.setLocalTransform(u):(Un.x=Un.y=Un.rotation=Un.originX=Un.originY=0,Un.scaleX=Un.scaleY=1),Un.rotation=da(Un.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var p=f.getComputedTransform();ze.applyTransform(d,d,p)}var m=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:m,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:m&&m.ignore,x:Un.x,y:Un.y,scaleX:Un.scaleX,scaleY:Un.scaleY,rotation:Un.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(te(i)||pe(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=we(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){RL(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;te(o.layoutOption)?c=o.layoutOption(Oxe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=Be(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Be(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var m=gU(s);m.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var h=0;h<qte.length;h++){var y=qte[h];s.setStyle(y,c[y]!=null?c[y]:u.style[y])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var v=o.seriesModel;if(o.dataIndex!=null){var g=o.seriesModel.getData(o.dataType);v=g.getItemModel(o.dataIndex)}s.on("drag",i(l,v.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=gz(this._labelList),a=xt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=xt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});X7(a,0,r),yz(o,0,n);var s=xt(i,function(l){return l.layoutOption.hideOverlap});_z(s)},e.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=gU(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=we(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");mz(t,hz(s),l),RL(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Ps(t))){var a=gU(n),o=a.oldLayout,s=we(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(Ne(d,"select")>=0&&n.attr(a.oldLayoutSelect),Ne(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),et(n,u,r,l)}else if(n.attr(u),!js(n).valueAnimation){var f=se(n.style.opacity,1);n.style.opacity=0,$t(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var p=a.oldLayoutSelect={};AA(p,u,CA),AA(p,n.states.select,CA)}if(n.states.emphasis){var m=a.oldLayoutEmphasis={};AA(m,u,CA),AA(m,n.states.emphasis,CA)}zq(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=kxe(i),o=a.oldLayout,h={points:i.shape.points};o?(i.attr({shape:o}),et(i,{shape:h},r)):(i.setShape(h),i.style.strokePercent=0,$t(i,{style:{strokePercent:1}},r)),a.oldLayout=h}},e})(),Yte=Mxe});function Kte(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=yU(r).labelManager;i||(i=yU(r).labelManager=new Yte),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=yU(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var yU,Wte=w(()=>{Ae();Xte();yU=De()});var Jte=w(()=>{Hz();Gte();Zf();Wte();_n(Kte)});var Qte=w(()=>{Jte()});var _U,bU,ere,Qf,Ixe,Rxe,DA,xU=w(()=>{Yc();_U=Math.sin,bU=Math.cos,ere=Math.PI,Qf=Math.PI*2,Ixe=180/ere,Rxe=(function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Mo(f-Qf)||(c?u>=Qf:-u>=Qf),p=u>0?u%Qf:u%Qf+Qf,m=!1;d?m=!0:Mo(f)?m=!1:m=p>=ere==!!c;var h=t+n*bU(o),y=r+i*_U(o);this._start&&this._add("M",h,y);var v=Math.round(a*Ixe);if(d){var g=1/this._p,_=(c?1:-1)*(Qf-g);this._add("A",n,i,v,1,+c,t+n*bU(o+_),r+i*_U(o+_)),g>.01&&this._add("A",n,i,v,0,+c,h,y)}else{var b=t+n*bU(s),x=r+i*_U(s);this._add("A",n,i,v,+m,+c,b,x)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e})(),DA=Rxe});function Pxe(e){var t=e.fill;return t!=null&&t!==q_}function $xe(e){var t=e.stroke;return t!=null&&t!==q_}function TU(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof pn){e("opacity",i);return}if(Pxe(t)){var a=nu(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&e("fill-opacity",o)}else e("fill",q_);if($xe(t)){var s=nu(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if((n||u!==1)&&e("stroke-width",u),(n||f)&&e("paint-order",f?"stroke":"fill"),(n||c<1)&&e("stroke-opacity",c),t.lineDash){var d=T_(r),p=d[0],m=d[1];p&&(m=Lxe(m||0),e("stroke-dasharray",p.join(",")),(m||n)&&e("stroke-dashoffset",m))}else n&&e("stroke-dasharray",q_);for(var h=0;h<SU.length;h++){var y=SU[h];if(n||t[y]!==zm[y]){var v=t[y]||zm[y];v&&e(Uxe[h],v)}}}else n&&e("stroke",q_)}var q_,Lxe,SU,Uxe,tre=w(()=>{ar();sf();bP();I();Yc();q_="none",Lxe=Math.round;SU=["lineCap","miterLimit","lineJoin"],Uxe=H(SU,function(e){return"stroke-"+e.toLowerCase()})});function NA(e){return document.createElementNS(rre,e)}function sr(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function jxe(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function Vxe(e){return"</"+e+">"}function Y_(e,t){t=t||{};var r=t.newline?`
|
|
70
|
+
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return jxe(o,s)+(o!=="style"?Er(l):l||"")+(a?""+r+H(a,function(u){return n(u)}).join(r)+r:"")+Vxe(o)}return n(e)}function are(e,t,r){r=r||{};var n=r.newline?`
|
|
71
|
+
`:"",i=" {"+n,a=n+"}",o=H(pe(e),function(l){return l+i+H(pe(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=H(pe(t),function(l){return"@keyframes "+l+i+H(pe(t[l]),function(u){return u+i+H(pe(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function X_(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zU(e,t,r,n){return sr("svg","root",{width:e,height:t,xmlns:rre,"xmlns:xlink":wU,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var rre,wU,nre,ire,EU,K_=w(()=>{I();Qy();rre="http://www.w3.org/2000/svg",wU="http://www.w3.org/1999/xlink",nre="http://www.w3.org/2000/xmlns/",ire="http://www.w3.org/XML/1998/namespace",EU="ecmeta_"});function OA(){return Bxe++}var Bxe,AU=w(()=>{Bxe=0});function Zxe(e,t,r){var n=$({},e.shape);$(n,t),e.buildPath(r,n);var i=new DA;return i.reset(Aw(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Hxe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[ed]=r+"px "+n+"px")}function lre(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Gxe(e,t,r){var n=e.shape.paths,i={},a,o;if(A(n,function(l){var u=X_(r.zrId);u.animation=!0,W_(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=pe(c),p=d.length;if(p){o=d[p-1];var m=c[o];for(var h in m){var y=m[h];i[h]=i[h]||{d:""},i[h].d+=y.d||""}for(var v in f){var g=f[v].animation;g.indexOf(o)>=0&&(a=g)}}}),!!a){t.d=!1;var s=lre(i,r);return a.replace(o,s)}}function sre(e){return F(e)?ore[e]?"cubic-bezier("+ore[e]+")":bm(e)?e:"":""}function W_(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof sE){var s=Gxe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=sre(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var m=f.join(" ");l[m]=l[m]||[m,[]],l[m][1].push(c)}function h(g){var _=g[1],b=_.length,x={},S={},T={},E="animation-timing-function";function z(Ar,Jt,Ut){for(var xe=Ar.getTracks(),Ue=Ar.getMaxTime(),Vn=0;Vn<xe.length;Vn++){var Qt=xe[Vn];if(Qt.needsAnimate()){var wa=Qt.keyframes,Bn=Qt.propName;if(Ut&&(Bn=Ut(Bn)),Bn)for(var Ko=0;Ko<wa.length;Ko++){var td=wa[Ko],Ea=Math.round(td.time/Ue*100)+"%",n0=sre(td.easing),Qs=td.rawValue;(F(Qs)||ve(Qs))&&(Jt[Ea]=Jt[Ea]||{},Jt[Ea][Bn]=td.rawValue,n0&&(Jt[Ea][E]=n0))}}}}for(var C=0;C<b;C++){var D=_[C],O=D.targetName;O?O==="shape"&&z(D,S):!n&&z(D,x)}for(var k in x){var R={};RI(R,e),$(R,x[k]);var j=Cw(R),Z=x[k][E];T[k]=j?{transform:j}:{},Hxe(T[k],R),Z&&(T[k][E]=Z)}var Q,G=!0;for(var k in S){T[k]=T[k]||{};var K=!Q,Z=S[k][E];K&&(Q=new tn);var ie=Q.len();Q.reset(),T[k].d=Zxe(e,S[k],Q);var ce=Q.len();if(!K&&ie!==ce){G=!1;break}Z&&(T[k][E]=Z)}if(!G)for(var k in T)delete T[k].d;if(!n)for(var C=0;C<b;C++){var D=_[C],O=D.targetName;O==="style"&&z(D,T,function(xe){return Fxe[xe]})}for(var fe=pe(T),$e=!0,tt,C=1;C<fe.length;C++){var dt=fe[C-1],an=fe[C];if(T[dt][ed]!==T[an][ed]){$e=!1;break}tt=T[dt][ed]}if($e&&tt){for(var k in T)T[k][ed]&&delete T[k][ed];t[ed]=tt}if(xt(fe,function(Ar){return pe(T[Ar]).length>0}).length){var jn=lre(T,r);return jn+" "+g[0]+" both"}}for(var y in l){var s=h(l[y]);s&&o.push(s)}if(o.length){var v=r.zrId+"-cls-"+OA();r.cssNodes["."+v]={animation:o.join(",")},t.class=v}}var ore,ed,Fxe,ure=w(()=>{Gc();K_();xU();Uo();Yc();I();FR();yw();AU();ore={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ed="transform-origin";Fxe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"}});function fre(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};cre(n,t,r,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=vy(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),cre(n,t,r,!0)}}function cre(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+OA(),r.cssStyleCache[i]=a,r.cssNodes["."+a+(n?":hover":"")]=e),t.class=t.class?t.class+" "+a:a}var dre=w(()=>{ko();AU()});function vre(e){return e&&F(e.src)}function gre(e){return e&&te(e.toDataURL)}function CU(e,t,r,n){TU(function(i,a){var o=i==="fill"||i==="stroke";o&&zw(a)?kU(t,e,i,n):o&&gy(a)?MU(r,e,i,n):e[i]=a,o&&n.ssr&&a==="none"&&(e["pointer-events"]="visible")},t,r,!1),Qxe(r,e,n)}function DU(e,t){var r=UX(t);r&&(r.each(function(n,i){n!=null&&(e[(EU+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[EU+"silent"]="true"))}function pre(e){return Mo(e[0]-1)&&Mo(e[1])&&Mo(e[2])&&Mo(e[3]-1)}function qxe(e){return Mo(e[4])&&Mo(e[5])}function NU(e,t,r){if(t&&!(qxe(t)&&pre(t))){var n=r?10:1e4;e.transform=pre(t)?"translate("+J_(t[4]*n)/n+" "+J_(t[5]*n)/n+")":GG(t)}}function mre(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(J_(n[a][0]*r)/r),i.push(J_(n[a][1]*r)/r);t.points=i.join(" ")}function hre(e){return!e.smooth}function Yxe(e){var t=H(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=J_(s*i)/i)}}}function Kxe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function yre(e,t){var r=e.style,n=e.shape,i=Xxe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Aw(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&Kxe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||l!==m.__svgPathStrokePercent)&&(h||(h=m.__svgPathBuilder=new DA),h.reset(u),d.rebuildPath(h,l),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=l),a.d=h.getStr()}return NU(a,e.transform),CU(a,r,e,t),DU(a,e),t.animation&&W_(e,a,t),t.emphasis&&fre(e,a,t),sr(s,e.id+"",a)}function Wxe(e,t){var r=e.style,n=r.image;if(n&&!F(n)&&(vre(n)?n=n.src:gre(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),NU(l,e.transform),CU(l,r,e,t),DU(l,e),t.animation&&W_(e,l,t),sr("image",e.id+"",l)}}function Jxe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Di,a=r.x||0,o=YG(r.y||0,hm(i),r.textBaseline),s=qG[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(yR(r)){var u="",c=r.fontStyle,f=gR(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||EI,p=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),NU(l,e.transform),CU(l,r,e,t),DU(l,e),t.animation&&W_(e,l,t),sr("text",e.id+"",l,void 0,n)}}function OU(e,t){if(e instanceof me)return yre(e,t);if(e instanceof pn)return Wxe(e,t);if(e instanceof of)return Jxe(e,t)}function Qxe(e,t,r){var n=e.style;if(XG(n)){var i=KG(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,p=nu(n.shadowColor),m=p.opacity,h=p.color,y=d/2/l,v=d/2/u,g=y+" "+v;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=sr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[sr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:g,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=yy(o)}}function kU(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(ww(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Ew(i))a="radialGradient",o.cx=se(i.x,.5),o.cy=se(i.y,.5),o.r=se(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Tw(s[u].offset)*100+"%",d=s[u].color,p=nu(d),m=p.color,h=p.opacity,y={offset:f};y["stop-color"]=m,h<1&&(y["stop-opacity"]=h),l.push(sr("stop",u+"",y))}var v=sr(a,"",o,l),g=Y_(v),_=n.gradientCache,b=_[g];b||(b=n.zrId+"-g"+n.gradientIdx++,_[g]=b,o.id=b,n.defs[b]=sr(a,b,o,l)),t[r]=yy(b)}function MU(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(ZI(i)){var d=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(F(h)?m=h:vre(h)?m=h.src:gre(h)&&(m=h.toDataURL()),typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";ir(d,y),ir(p,y)}else if(d==null||p==null){var v=function(C,D){if(C){var O=C.elm,k=d||D.width,R=p||D.height;C.tag==="pattern"&&(u?(R=1,k/=a.width):c&&(k=1,R/=a.height)),C.attrs.width=k,C.attrs.height=R,O&&(O.setAttribute("width",k),O.setAttribute("height",R))}},g=uy(m,null,e,function(C){l||v(S,C),v(f,C)});g&&g.width&&g.height&&(d=d||g.width,p=p||g.height)}f=sr("image","img",{href:m,width:d,height:p}),o.width=d,o.height=p}else i.svgElement&&(f=_e(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/a.width):c?(_=1,b=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var x=Cw(i);x&&(o.patternTransform=x);var S=sr("pattern","",o,[f]),T=Y_(S),E=n.patternCache,z=E[T];z||(z=n.zrId+"-p"+n.patternIdx++,E[T]=z,o.id=z,S=n.defs[z]=sr("pattern",z,o,[f])),t[r]=yy(z)}}function _re(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=sr("clipPath",a,o,[yre(e,r)])}t["clip-path"]=yy(a)}var J_,Xxe,bre=w(()=>{Yc();ar();sf();sa();Vw();xU();tre();K_();I();ew();ure();Cm();Eo();dre();Az();J_=Math.round;Xxe={circle:[Yxe(["cx","cy","r"])],polyline:[mre,hre],polygon:[mre,hre]}});function IU(e){return document.createTextNode(e)}function Lu(e,t,r){e.insertBefore(t,r)}function RU(e,t){e.removeChild(t)}function LU(e,t){e.appendChild(t)}function PU(e){return e.parentNode}function $U(e){return e.nextSibling}function kA(e,t){e.textContent=t}var xre=w(()=>{});function UU(e){return e===void 0}function qo(e){return e!==void 0}function nSe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function Q_(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function e0(e){var t,r=e.children,n=e.tag;if(qo(n)){var i=e.elm=NA(n);if(IA(rSe,e),V(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&LU(i,e0(a))}else qo(e.text)&&!J(e.text)&&LU(i,IU(e.text))}else e.elm=IU(e.text);return e.elm}function Tre(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Lu(e,e0(a),t)}}function MA(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(qo(i.tag)){var a=PU(i.elm);RU(a,i.elm)}else RU(e,i.elm)}}function IA(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==tSe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(nre,r,o):r.charCodeAt(3)===Sre?n.setAttributeNS(ire,r,o):r.charCodeAt(5)===Sre?n.setAttributeNS(wU,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function iSe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,d,p,m;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:Q_(o,u)?(hh(o,u),o=t[++n],u=r[++i]):Q_(s,c)?(hh(s,c),s=t[--a],c=r[--l]):Q_(o,c)?(hh(o,c),Lu(e,o.elm,$U(s.elm)),o=t[++n],c=r[--l]):Q_(s,u)?(hh(s,u),Lu(e,s.elm,o.elm),s=t[--a],u=r[++i]):(UU(f)&&(f=nSe(t,n,a)),d=f[u.key],UU(d)?Lu(e,e0(u),o.elm):(p=t[d],p.tag!==u.tag?Lu(e,e0(u),o.elm):(hh(p,u),t[d]=void 0,Lu(e,p.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(m=r[l+1]==null?null:r[l+1].elm,Tre(e,m,r,i,l)):MA(e,t,n,a))}function hh(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(IA(e,t),UU(t.text)?qo(n)&&qo(i)?n!==i&&iSe(r,n,i):qo(i)?(qo(e.text)&&kA(r,""),Tre(r,null,i,0,i.length-1)):qo(n)?MA(r,n,0,n.length-1):qo(e.text)&&kA(r,""):e.text!==t.text&&(qo(n)&&MA(r,n,0,n.length-1),kA(r,t.text)))}function jU(e,t){if(Q_(e,t))hh(e,t);else{var r=e.elm,n=PU(r);e0(t),n!==null&&(Lu(n,t.elm,$U(r)),MA(n,[e],0,0))}return t}var Sre,tSe,rSe,wre=w(()=>{I();K_();xre();Sre=58,tSe=120,rSe=sr("","")});function Ere(e){return function(){}}function sSe(e,t,r,n){var i;if(r&&r!=="none")if(i=sr("rect","bg",{width:e,height:t,x:"0",y:"0"}),zw(r))kU({fill:r},i.attrs,"fill",n);else if(gy(r))MU({style:{fill:r},dirty:Lt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=nu(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var aSe,oSe,zre,Are=w(()=>{bre();K_();Yc();I();wre();_P();aSe=0,oSe=(function(){function e(t,r,n){if(this.type="svg",this.refreshHover=Ere("refreshHover"),this.configLayer=Ere("configLayer"),this.storage=r,this._opts=n=$({},n),this.root=t,this._id="zr"+aSe++,this._oldVNode=zU(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=NA("svg");IA(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",jU(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return OU(t,X_(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=X_(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=sSe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=sr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=H(pe(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(sr("defs","defs",{},u)),t.animation){var c=are(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=sr("style","stl",{},[],c);o.push(f)}}return zU(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Y_(this.renderToVNode({animation:se(t.cssAnimation,!0),emphasis:se(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:se(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,m=l&&l.length||0,h=void 0;for(h=Math.max(p-1,m-1);h>=0&&!(d&&l&&d[h]===l[h]);h--);for(var y=m-1;y>h;y--)o--,s=a[o-1];for(var v=h+1;v<p;v++){var g={};_re(d[v],g,r);var _=sr("g","clip-g-"+u++,g,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=d;var b=OU(f,r);b&&(s?s.children:n).push(b)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=yP(i,0,n),r=yP(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(gy(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=WG(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e})();zre=oSe});function VU(e){e.registerPainter("svg",zre)}var Cre=w(()=>{Are()});var Dre=w(()=>{Cre()});var Nre=w(()=>{Dre()});function Yo(e,t,r=!1){let n=(0,RA.useRef)(null);return(0,RA.useEffect)(()=>{let i=n.current;if(i===null||e===null)return;let a=IW(i,void 0,{renderer:"svg"}),o=()=>{let f=r?uSe(e,i):e;a.setOption({...f,animation:!t})};o();let s=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>{a.resize()});s?.observe(i);let l=i.ownerDocument.defaultView,u=r&&l!==null&&typeof l.matchMedia=="function"?l.matchMedia("(prefers-color-scheme: dark)"):null,c=r&&typeof MutationObserver<"u"?new MutationObserver(o):null;return c?.observe(i.ownerDocument.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),u?.addEventListener("change",o),()=>{u?.removeEventListener("change",o),c?.disconnect(),s?.disconnect(),a.dispose()}},[t,e,r]),n}function uSe(e,t){let r=t.closest(".schemacast-auto-visual")??t,n=r.ownerDocument.defaultView?.getComputedStyle(r),i=(f,d)=>n?.getPropertyValue(f).trim()||d,a=i("--schemacast-foreground","#202a36"),o=i("--schemacast-muted","#637083"),s=Array.isArray(e.tooltip)?e.tooltip[0]:e.tooltip,l=i("--schemacast-border","#d7dee8"),u=lSe.map((f,d)=>i(`--schemacast-pie-color-${d+1}`,f)),c=Array.isArray(e.legend)?e.legend.map(f=>({...f,textStyle:{...f.textStyle,color:a}})):e.legend===void 0?void 0:{...e.legend,textStyle:{...e.legend.textStyle,color:a}};return{...e,color:[i("--schemacast-accent","#2867b2"),o],legend:c,xAxis:mSe(e.xAxis,a,l),yAxis:hSe(e.yAxis,a,l),series:cSe(e.series,a,o,u),textStyle:{...e.textStyle,color:a},tooltip:{...s,backgroundColor:i("--schemacast-background","#ffffff"),borderColor:l,textStyle:{...s?.textStyle,color:a}}}}function cSe(e,t,r,n){return Array.isArray(e)?e.map(i=>i.type==="pie"?dSe(i,t,n):i.type==="graph"?fSe(i,t,r,n):i.type==="tree"?pSe(i,t):i):e}function fSe(e,t,r,n){return{...e,itemStyle:{...e.itemStyle,color:n[0]},lineStyle:{...e.lineStyle,color:r},categories:e.categories?.map((i,a)=>({...i,itemStyle:{...i.itemStyle,color:n[a%n.length]}})),label:{...e.label,color:t,textBorderColor:"transparent",textBorderWidth:0},edgeLabel:{...e.edgeLabel,color:t,textBorderColor:"transparent",textBorderWidth:0}}}function dSe(e,t,r){let n=typeof e.label=="object"&&e.label!==null?e.label:{},i=e.data?.map((a,o)=>typeof a!="object"||a===null||Array.isArray(a)?a:{...a,itemStyle:{...a.itemStyle,color:r[o%r.length]}});return{...e,data:i,label:{...n,color:t,textBorderColor:"transparent",textBorderWidth:0}}}function pSe(e,t){let r=typeof e.label=="object"&&e.label!==null?e.label:{},n=typeof e.leaves?.label=="object"&&e.leaves.label!==null?e.leaves.label:{};return{...e,label:{...r,color:t,textBorderColor:"transparent",textBorderWidth:0},leaves:{...e.leaves,label:{...n,color:t,textBorderColor:"transparent",textBorderWidth:0}}}}function mSe(e,t,r){return Array.isArray(e)?e.map(n=>Ore(n,t,r)):e===void 0?void 0:Ore(e,t,r)}function hSe(e,t,r){return Array.isArray(e)?e.map(n=>kre(n,t,r)):e===void 0?void 0:kre(e,t,r)}function Ore(e,t,r){let n=typeof e.axisLine=="object"&&e.axisLine!==null?e.axisLine:void 0,i=typeof e.axisTick=="object"&&e.axisTick!==null?e.axisTick:void 0,a=typeof e.splitLine=="object"&&e.splitLine!==null?e.splitLine:void 0;return{...e,axisLabel:{...typeof e.axisLabel=="object"&&e.axisLabel!==null?e.axisLabel:{},color:t},axisLine:{...n,lineStyle:{...n?.lineStyle,color:r}},axisTick:{...i,lineStyle:{...i?.lineStyle,color:r}},splitLine:{...a,lineStyle:{...a?.lineStyle,color:r}},nameTextStyle:{...e.nameTextStyle,color:t}}}function kre(e,t,r){let n=typeof e.axisLine=="object"&&e.axisLine!==null?e.axisLine:void 0,i=typeof e.axisTick=="object"&&e.axisTick!==null?e.axisTick:void 0,a=typeof e.splitLine=="object"&&e.splitLine!==null?e.splitLine:void 0;return{...e,axisLabel:{...typeof e.axisLabel=="object"&&e.axisLabel!==null?e.axisLabel:{},color:t},axisLine:{...n,lineStyle:{...n?.lineStyle,color:r}},axisTick:{...i,lineStyle:{...i?.lineStyle,color:r}},splitLine:{...a,lineStyle:{...a?.lineStyle,color:r}},nameTextStyle:{...e.nameTextStyle,color:t}}}var RA,lSe,vh=w(()=>{"use strict";Iee();Fte();Qte();Nre();RA=Me(un(),1),lSe=["#2867b2","#c44e52","#55a868","#8172b3","#cc8c2f","#4c9f9a","#b55d9e","#7a7a4e"];_n([AL,H$,vL,BL,S$,eU,vU,aU,VU])});var Ire={};bn(Ire,{LineChartView:()=>vSe});function vSe({spec:e,bindings:t}){let r=t.x,n=t.y??[],i=t.groupBy,a=(0,Mre.useMemo)(()=>eG(e,{x:r,y:n,...i===void 0?{}:{groupBy:i}}),[e.data,e.fields,r,n,i]),o=Yo(a,e.isStreaming,!0);return e.isStreaming&&e.data.length===0?(0,LA.jsx)("p",{"data-testid":"line-chart-streaming",children:"Preparing chart from stream\u2026"}):a===null?(0,LA.jsx)("p",{"data-testid":"line-chart-empty",children:"Chart bindings are incomplete."}):(0,LA.jsx)("div",{"data-testid":"line-chart-view","data-y-keys":n.join(","),ref:o,style:{width:"100%",height:320}})}var Mre,LA,Rre=w(()=>{"use strict";Mre=Me(un(),1);tG();vh();LA=Me(ut(),1)});function BU(e,t,r){if(r!==void 0)return r;let n=e.views.find(i=>i.archetype==="bar-chart"&&i.data!==void 0&&Lre(i.bindings,t));return n?.data!==void 0?n.data:e.primaryView.archetype==="bar-chart"&&e.primaryView.data!==void 0&&Lre(e.primaryView.bindings,t)?e.primaryView.data:e.data}function Lre(e,t){return e===t||e.x===t.x&&e.y?.[0]===t.y?.[0]}function Pre(e,t,r){let n=t.x,i=t.y??[],a=i[0];if(n===void 0||a===void 0)return null;if(t.groupBy!==void 0)return gSe(e,n,a,t.groupBy);let o=BU(e,t,r),s=i.map(f=>$a(e.fields,f)),l=Jp(s,void 0),u=em(e,i,o),c=u.axes.map(f=>tm(e.fields,f,{omitName:l}));return{tooltip:{trigger:"axis",formatter:f=>rm(f,e.fields,i)},legend:Wp(s),grid:{left:c.length>1?104:88,right:c.length>1?104:24,containLabel:!0},xAxis:Kp(o,n,e.fields),yAxis:c.length===1?c[0]:c,series:i.map((f,d)=>({name:$a(e.fields,f),type:"bar",yAxisIndex:u.seriesAxisIndexes[d]??0,data:Qp(o,f,e.fields)}))}}function gSe(e,t,r,n){let i=ey(e.data,{xKey:t,groupKey:n,yKey:r},e.fields),a=i.series.map(u=>u.name),o=Jp(a,void 0),l=em(e,[r],e.data).axes.map(u=>tm(e.fields,u,{omitName:o}));return{tooltip:{trigger:"axis",formatter:u=>rm(u,e.fields,i.series.map(()=>r))},legend:Wp(a),grid:{left:88,right:24,containLabel:!0},xAxis:Kp(i.xValues.map(u=>({[t]:u})),t,e.fields),yAxis:l[0],series:i.series.map(u=>({name:u.name,type:"bar",data:u.values}))}}var $re=w(()=>{"use strict";Ic();ny();TI()});var jre={};bn(jre,{BarChartView:()=>ySe});function ySe({spec:e,bindings:t,data:r}){let n=BU(e,t,r),i=(0,Ure.useMemo)(()=>Pre(e,t,n),[t,n,e]),a=Yo(i,e.isStreaming,!0);return e.isStreaming&&n.length===0?(0,PA.jsx)("p",{"data-testid":"bar-chart-streaming",children:"Preparing chart from stream\u2026"}):i===null?(0,PA.jsx)("p",{"data-testid":"bar-chart-empty",children:"Chart bindings are incomplete."}):(0,PA.jsx)("div",{"data-testid":"bar-chart-view",ref:a,style:{width:"100%",height:320}})}var Ure,PA,Vre=w(()=>{"use strict";Ure=Me(un(),1);$re();vh();PA=Me(ut(),1)});var Zre={};bn(Zre,{PieChartView:()=>_Se});function _Se({spec:e,bindings:t}){let r=t.x,n=t.y?.[0],i=(0,Bre.useMemo)(()=>{if(r===void 0||n===void 0)return null;let o=Qp(e.data,n,e.fields),s=e.data.flatMap((l,u)=>{let c=o[u];return c==null?[]:[{name:Xt(l[r],Je(e.fields,r)),value:c}]});return{tooltip:{trigger:"item"},series:[{name:$a(e.fields,n),type:"pie",radius:"65%",data:s}]}},[r,e.data,e.fields,n]),a=Yo(i,e.isStreaming,!0);return e.isStreaming&&e.data.length===0?(0,$A.jsx)("p",{"data-testid":"pie-chart-streaming",children:"Preparing chart from stream\u2026"}):i===null?(0,$A.jsx)("p",{"data-testid":"pie-chart-empty",children:"Chart bindings are incomplete."}):(0,$A.jsx)("div",{"data-testid":"pie-chart-view",ref:a,style:{width:"100%",height:320}})}var Bre,$A,Hre=w(()=>{"use strict";Bre=Me(un(),1);To();xs();ny();vh();$A=Me(ut(),1)});function Fre(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e=="string"&&e.trim()!==""){let t=Number(e);return Number.isFinite(t)?t:void 0}}function Gre(e){let t=e.filter(a=>a!==void 0),r=Math.min(...t),n=Math.max(...t),i=7/2;return e.map(a=>{if(a===void 0)return 1;if(n===r)return i;let o=(a-r)/(n-r);return Math.max(0,1+o*5)})}var qre=w(()=>{"use strict"});function UA(e,t){let r=t.nodeId??"id",n=t.title,i=t.edgeSource??"source",a=t.edgeTarget??"target",o=t.color,s=e.data.map(p=>{let m=String(p[r]??""),h=n!==void 0?String(p[n]??m):m;return o===void 0?{id:m,name:h}:{id:m,name:h,category:bSe(p[o])}}),l=e.edges??[],u=t.edgeWeight,c=l.map(p=>u===void 0?void 0:Fre(p[u])),f=u===void 0?void 0:Gre(c),d=l.map((p,m)=>{let h=String(p[i]??""),y=String(p[a]??""),v=c[m],g=f?.[m];return{source:h,target:y,...p.label===void 0?{}:{label:String(p.label)},...v===void 0?{}:{weight:v},...g===void 0?{}:{width:g}}});return{nodes:s,links:d}}function bSe(e){return typeof e=="string"&&e.trim()!==""?e:typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e)?String(e):"Uncategorized"}var ZU=w(()=>{"use strict";qre()});function Xre(e,t){let r=UA(e,t);if(r.nodes.length===0)return null;let n=[...new Set(r.nodes.flatMap(a=>a.category??[]))],i=new Map(r.nodes.map(a=>[a.id,a.name]));return{...n.length>0?{legend:{data:n,top:0,textStyle:{fontSize:11}}}:{},tooltip:{trigger:"item",renderMode:"richText",formatter:a=>xSe(a,i,t.edgeWeight)},series:[{type:"graph",layout:"force",roam:!0,draggable:!0,left:"10%",right:"10%",top:n.length>0?"16%":"10%",bottom:"10%",symbolSize:24,label:{show:!0,formatter:"{b}",position:"right",distance:8},labelLayout:{moveOverlap:"shiftY",hideOverlap:!0},force:{initLayout:"circular",repulsion:900,edgeLength:160,gravity:.08,layoutAnimation:!e.isStreaming},edgeSymbol:["none","arrow"],edgeSymbolSize:[0,10],categories:n.map(a=>({name:a})),data:r.nodes.map(a=>({id:a.id,name:a.name,...a.category===void 0?{}:{category:a.category}})),links:r.links.map(a=>({source:a.source,target:a.target,name:a.label??"",...a.weight===void 0?{}:{value:a.weight},...a.width===void 0?{}:{lineStyle:{width:a.width}}})),edgeLabel:{show:!1,formatter:"{b}",position:"end",rotate:0,fontSize:10},emphasis:{edgeLabel:{show:!0}}}]}}function xSe(e,t,r){if(!Yre(e)||!Yre(e.data))return"";let n=e.data;if(e.dataType==="edge"){let a=typeof n.source=="string"?n.source:"",o=typeof n.target=="string"?n.target:"",s=`${t.get(a)??a} \u2192 ${t.get(o)??o}`;return[...typeof n.name=="string"&&n.name!==""?[n.name]:[],s,...r!==void 0&&typeof n.value=="number"?[`${r}: ${n.value}`]:[]].join(`
|
|
72
|
+
`)}let i=typeof n.name=="string"?n.name:"";return typeof n.category=="string"?`${i}
|
|
73
|
+
${n.category}`:i}function Yre(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Kre=w(()=>{"use strict";ZU()});var Wre={};bn(Wre,{NodeGraphView:()=>SSe});function SSe({spec:e,bindings:t}){let r=(0,HU.useMemo)(()=>UA(e,t),[t,e]),n=(0,HU.useMemo)(()=>Xre(e,t),[t,e]),i=Yo(n,e.isStreaming,!0);return e.isStreaming&&e.data.length===0?(0,ro.jsx)("p",{"data-testid":"node-graph-streaming",children:"Preparing graph from stream\u2026"}):n===null?(0,ro.jsx)("p",{"data-testid":"node-graph-empty",children:"No nodes in view data."}):(0,ro.jsxs)("div",{"data-testid":"node-graph-view",children:[(0,ro.jsx)("ul",{"data-testid":"node-graph-node-labels",className:"sr-only",children:r.nodes.map(a=>(0,ro.jsx)("li",{children:a.name},a.id))}),(0,ro.jsx)("ul",{"data-testid":"node-graph-edge-labels",className:"sr-only",children:r.links.map((a,o)=>(0,ro.jsxs)("li",{children:[a.label??`${a.source}\u2192${a.target}`,a.weight===void 0?"":` (${t.edgeWeight??"weight"}: ${a.weight})`]},`${a.source}-${a.target}-${o}`))}),(0,ro.jsx)("div",{role:"region","aria-label":"Scrollable node graph",tabIndex:0,style:{width:"100%",overflowX:"auto"},children:(0,ro.jsx)("div",{ref:i,style:{width:"100%",minWidth:760,height:480}})})]})}var HU,ro,Jre=w(()=>{"use strict";HU=Me(un(),1);ZU();Kre();vh();ro=Me(ut(),1)});function Qre(e,t){if(e===void 0)return null;let r=t.title??"name",n=t.groupBy??"children";return ene(e,r,n)}function ene(e,t,r){let n={name:String(e[t]??"")},i=e[r];if(!Array.isArray(i))return n;let a=i.filter(o=>typeof o=="object"&&o!==null&&!Array.isArray(o)).map(o=>ene(o,t,r));return a.length>0?{...n,children:a}:n}function FU(e){let t=[e.name];if(e.children!==void 0)for(let r of e.children)t.push(...FU(r));return t}var tne=w(()=>{"use strict"});var rne={};bn(rne,{HierarchyTreeView:()=>TSe});function TSe({spec:e,bindings:t}){let r=(0,GU.useMemo)(()=>Qre(e.data[0],t),[t,e.data]),n=(0,GU.useMemo)(()=>r===null?null:{tooltip:{trigger:"item",triggerOn:"mousemove"},series:[{type:"tree",data:[r],top:"8%",left:"12%",bottom:"8%",right:"24%",symbolSize:8,label:{position:"left",verticalAlign:"middle",align:"right"},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},expandAndCollapse:!0,initialTreeDepth:-1}]},[r]),i=Yo(n,e.isStreaming,!0),a=r!==null?FU(r):[];return e.isStreaming&&e.data.length===0?(0,Pu.jsx)("p",{"data-testid":"hierarchy-tree-streaming",children:"Preparing tree from stream\u2026"}):n===null?(0,Pu.jsx)("p",{"data-testid":"hierarchy-tree-empty",children:"No hierarchy root in view data."}):(0,Pu.jsxs)("div",{"data-testid":"hierarchy-tree-view",children:[(0,Pu.jsx)("ul",{"data-testid":"hierarchy-tree-labels",className:"sr-only",children:a.map(o=>(0,Pu.jsx)("li",{children:o},o))}),(0,Pu.jsx)("div",{ref:i,style:{width:"100%",height:420}})]})}var GU,Pu,nne=w(()=>{"use strict";GU=Me(un(),1);tne();vh();Pu=Me(ut(),1)});var Xe;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{let a={};for(let o of i)a[o]=o;return a},e.getValidEnumValues=i=>{let a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(let s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let a=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(let o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Xe||(Xe={}));var KU;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(KU||(KU={}));var ne=Xe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Wo=e=>{switch(typeof e){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(e)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(e)?ne.array:e===null?ne.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ne.promise:typeof Map<"u"&&e instanceof Map?ne.map:typeof Set<"u"&&e instanceof Set?ne.set:typeof Date<"u"&&e instanceof Date?ne.date:ne.object;default:return ne.unknown}};var q=Xe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var di=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(let o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let s=n,l=0;for(;l<o.path.length;){let u=o.path[l];l===o.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(o))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Xe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),n=[];for(let i of this.issues)if(i.path.length>0){let a=i.path[0];r[a]=r[a]||[],r[a].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};di.create=e=>new di(e);var Sne=(e,t)=>{let r;switch(e.code){case q.invalid_type:e.received===ne.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Xe.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:r=`Unrecognized key(s) in object: ${Xe.joinValues(e.keys,", ")}`;break;case q.invalid_union:r="Invalid input";break;case q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Xe.joinValues(e.options)}`;break;case q.invalid_enum_value:r=`Invalid enum value. Expected ${Xe.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:r="Invalid function arguments";break;case q.invalid_return_type:r="Invalid function return type";break;case q.invalid_date:r="Invalid date";break;case q.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Xe.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case q.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case q.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case q.custom:r="Invalid input";break;case q.invalid_intersection_types:r="Intersection results could not be merged";break;case q.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:r="Number must be finite";break;default:r=t.defaultError,Xe.assertNever(e)}return{message:r}},el=Sne;var Tne=el;function yh(){return Tne}var i0=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)s=u(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function re(e,t){let r=yh(),n=i0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===el?void 0:el].filter(i=>!!i)});e.common.issues.push(n)}var on=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let i of r){if(i.status==="aborted")return Te;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let i of r){let a=await i.key,o=await i.value;n.push({key:a,value:o})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let i of r){let{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return Te;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[a.value]=o.value)}return{status:t.value,value:n}}},Te=Object.freeze({status:"aborted"}),rd=e=>({status:"dirty",value:e}),xn=e=>({status:"valid",value:e}),ZA=e=>e.status==="aborted",HA=e=>e.status==="dirty",Uu=e=>e.status==="valid",_h=e=>typeof Promise<"u"&&e instanceof Promise;var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ue||(ue={}));var Zi=class{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},WU=(e,t)=>{if(Uu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new di(e.common.issues);return this._error=r,this._error}}};function Ie(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>{let{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??n??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:i}}var je=class{get description(){return this._def.description}_getType(t){return Wo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new on,ctx:{common:t.parent.common,data:t.data,parsedType:Wo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(_h(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wo(t)},i=this._parseSync({data:t,path:n.path,parent:n});return WU(n,i)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wo(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return Uu(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>Uu(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Wo(t)},i=this._parse({data:t,path:n.path,parent:n}),a=await(_h(i)?i:Promise.resolve(i));return WU(n,a)}refine(t,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,a)=>{let o=t(i),s=()=>a.addIssue({code:q.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new Aa({schema:this,typeName:be.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return za.create(this,this._def)}nullable(){return es.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return rl.create(this)}promise(){return ju.create(this,this._def)}or(t){return sd.create([this,t],this._def)}and(t){return ld.create(this,t,this._def)}transform(t){return new Aa({...Ie(this._def),schema:this,typeName:be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new pd({...Ie(this._def),innerType:this,defaultValue:r,typeName:be.ZodDefault})}brand(){return new a0({typeName:be.ZodBranded,type:this,...Ie(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new md({...Ie(this._def),innerType:this,catchValue:r,typeName:be.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return o0.create(this,t)}readonly(){return hd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},wne=/^c[^\s-]{8,}$/i,Ene=/^[0-9a-z]+$/,zne=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ane=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Cne=/^[a-z0-9_-]{21}$/i,Dne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Nne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,One=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",FA,Mne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ine=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Rne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Lne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pne=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$ne=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,JU="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Une=new RegExp(`^${JU}$`);function QU(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function jne(e){return new RegExp(`^${QU(e)}$`)}function Vne(e){let t=`${JU}T${QU(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Bne(e,t){return!!((t==="v4"||!t)&&Mne.test(e)||(t==="v6"||!t)&&Rne.test(e))}function Zne(e,t){if(!Dne.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Hne(e,t){return!!((t==="v4"||!t)&&Ine.test(e)||(t==="v6"||!t)&&Lne.test(e))}var id=class e extends je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ne.string){let a=this._getOrReturnCtx(t);return re(a,{code:q.invalid_type,expected:ne.string,received:a.parsedType}),Te}let n=new on,i;for(let a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),re(i,{code:q.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),re(i,{code:q.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){let o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?re(i,{code:q.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&re(i,{code:q.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")One.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"email",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="emoji")FA||(FA=new RegExp(kne,"u")),FA.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"emoji",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")Ane.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"uuid",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")Cne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"nanoid",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")wne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"cuid",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")Ene.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"cuid2",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")zne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"ulid",code:q.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),re(i,{validation:"url",code:q.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"regex",code:q.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?Vne(a).test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?Une.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?jne(a).test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{code:q.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?Nne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"duration",code:q.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?Bne(t.data,a.version)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"ip",code:q.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?Zne(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"jwt",code:q.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?Hne(t.data,a.version)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"cidr",code:q.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?Pne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"base64",code:q.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?$ne.test(t.data)||(i=this._getOrReturnCtx(t,i),re(i,{validation:"base64url",code:q.invalid_string,message:a.message}),n.dirty()):Xe.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:q.invalid_string,...ue.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ue.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...ue.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...ue.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...ue.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ue.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ue.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ue.errToObj(r)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};id.create=e=>new id({checks:[],typeName:be.ZodString,coerce:e?.coerce??!1,...Ie(e)});function Fne(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}var bh=class e extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ne.number){let a=this._getOrReturnCtx(t);return re(a,{code:q.invalid_type,expected:ne.number,received:a.parsedType}),Te}let n,i=new on;for(let a of this._def.checks)a.kind==="int"?Xe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),re(n,{code:q.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Fne(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),re(n,{code:q.not_finite,message:a.message}),i.dirty()):Xe.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ue.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ue.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ue.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ue.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ue.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Xe.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};bh.create=e=>new bh({checks:[],typeName:be.ZodNumber,coerce:e?.coerce||!1,...Ie(e)});var xh=class e extends je{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ne.bigint)return this._getInvalidInput(t);let n,i=new on;for(let a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),re(n,{code:q.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Xe.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return re(r,{code:q.invalid_type,expected:ne.bigint,received:r.parsedType}),Te}gte(t,r){return this.setLimit("min",t,!0,ue.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ue.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ue.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ue.toString(r))}setLimit(t,r,n,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ue.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};xh.create=e=>new xh({checks:[],typeName:be.ZodBigInt,coerce:e?.coerce??!1,...Ie(e)});var Sh=class extends je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ne.boolean){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.boolean,received:n.parsedType}),Te}return xn(t.data)}};Sh.create=e=>new Sh({typeName:be.ZodBoolean,coerce:e?.coerce||!1,...Ie(e)});var Th=class e extends je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ne.date){let a=this._getOrReturnCtx(t);return re(a,{code:q.invalid_type,expected:ne.date,received:a.parsedType}),Te}if(Number.isNaN(t.data.getTime())){let a=this._getOrReturnCtx(t);return re(a,{code:q.invalid_date}),Te}let n=new on,i;for(let a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),re(i,{code:q.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),re(i,{code:q.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):Xe.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Th.create=e=>new Th({checks:[],coerce:e?.coerce||!1,typeName:be.ZodDate,...Ie(e)});var wh=class extends je{_parse(t){if(this._getType(t)!==ne.symbol){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.symbol,received:n.parsedType}),Te}return xn(t.data)}};wh.create=e=>new wh({typeName:be.ZodSymbol,...Ie(e)});var ad=class extends je{_parse(t){if(this._getType(t)!==ne.undefined){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.undefined,received:n.parsedType}),Te}return xn(t.data)}};ad.create=e=>new ad({typeName:be.ZodUndefined,...Ie(e)});var od=class extends je{_parse(t){if(this._getType(t)!==ne.null){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.null,received:n.parsedType}),Te}return xn(t.data)}};od.create=e=>new od({typeName:be.ZodNull,...Ie(e)});var Eh=class extends je{constructor(){super(...arguments),this._any=!0}_parse(t){return xn(t.data)}};Eh.create=e=>new Eh({typeName:be.ZodAny,...Ie(e)});var tl=class extends je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xn(t.data)}};tl.create=e=>new tl({typeName:be.ZodUnknown,...Ie(e)});var io=class extends je{_parse(t){let r=this._getOrReturnCtx(t);return re(r,{code:q.invalid_type,expected:ne.never,received:r.parsedType}),Te}};io.create=e=>new io({typeName:be.ZodNever,...Ie(e)});var zh=class extends je{_parse(t){if(this._getType(t)!==ne.undefined){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.void,received:n.parsedType}),Te}return xn(t.data)}};zh.create=e=>new zh({typeName:be.ZodVoid,...Ie(e)});var rl=class e extends je{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==ne.array)return re(r,{code:q.invalid_type,expected:ne.array,received:r.parsedType}),Te;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,s=r.data.length<i.exactLength.value;(o||s)&&(re(r,{code:o?q.too_big:q.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(re(r,{code:q.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(re(r,{code:q.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,s)=>i.type._parseAsync(new Zi(r,o,r.path,s)))).then(o=>on.mergeArray(n,o));let a=[...r.data].map((o,s)=>i.type._parseSync(new Zi(r,o,r.path,s)));return on.mergeArray(n,a)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:ue.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:ue.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:ue.toString(r)}})}nonempty(t){return this.min(1,t)}};rl.create=(e,t)=>new rl({type:e,minLength:null,maxLength:null,exactLength:null,typeName:be.ZodArray,...Ie(t)});function nd(e){if(e instanceof pi){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=za.create(nd(n))}return new pi({...e._def,shape:()=>t})}else return e instanceof rl?new rl({...e._def,type:nd(e.element)}):e instanceof za?za.create(nd(e.unwrap())):e instanceof es?es.create(nd(e.unwrap())):e instanceof Qo?Qo.create(e.items.map(t=>nd(t))):e}var pi=class e extends je{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Xe.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==ne.object){let u=this._getOrReturnCtx(t);return re(u,{code:q.invalid_type,expected:ne.object,received:u.parsedType}),Te}let{status:n,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof io&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||s.push(u);let l=[];for(let u of o){let c=a[u],f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Zi(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof io){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of s)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")s.length>0&&(re(i,{code:q.unrecognized_keys,keys:s}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of s){let f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Zi(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>on.mergeObjectSync(n,u)):on.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let i=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:ue.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:be.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of Xe.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of Xe.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return nd(this)}partial(t){let r={};for(let n of Xe.objectKeys(this.shape)){let i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of Xe.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof za;)a=a._def.innerType;r[n]=a}return new e({...this._def,shape:()=>r})}keyof(){return e4(Xe.objectKeys(this.shape))}};pi.create=(e,t)=>new pi({shape:()=>e,unknownKeys:"strip",catchall:io.create(),typeName:be.ZodObject,...Ie(t)});pi.strictCreate=(e,t)=>new pi({shape:()=>e,unknownKeys:"strict",catchall:io.create(),typeName:be.ZodObject,...Ie(t)});pi.lazycreate=(e,t)=>new pi({shape:e,unknownKeys:"strip",catchall:io.create(),typeName:be.ZodObject,...Ie(t)});var sd=class extends je{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function i(a){for(let s of a)if(s.result.status==="valid")return s.result;for(let s of a)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(s=>new di(s.ctx.common.issues));return re(r,{code:q.invalid_union,unionErrors:o}),Te}if(r.common.async)return Promise.all(n.map(async a=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let a,o=[];for(let l of n){let u={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;let s=o.map(l=>new di(l));return re(r,{code:q.invalid_union,unionErrors:s}),Te}}get options(){return this._def.options}};sd.create=(e,t)=>new sd({options:e,typeName:be.ZodUnion,...Ie(t)});var Jo=e=>e instanceof ud?Jo(e.schema):e instanceof Aa?Jo(e.innerType()):e instanceof cd?[e.value]:e instanceof fd?e.options:e instanceof dd?Xe.objectValues(e.enum):e instanceof pd?Jo(e._def.innerType):e instanceof ad?[void 0]:e instanceof od?[null]:e instanceof za?[void 0,...Jo(e.unwrap())]:e instanceof es?[null,...Jo(e.unwrap())]:e instanceof a0||e instanceof hd?Jo(e.unwrap()):e instanceof md?Jo(e._def.innerType):[],GA=class e extends je{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.object)return re(r,{code:q.invalid_type,expected:ne.object,received:r.parsedType}),Te;let n=this.discriminator,i=r.data[n],a=this.optionsMap.get(i);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(re(r,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Te)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let i=new Map;for(let a of r){let o=Jo(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new e({typeName:be.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:i,...Ie(n)})}};function qA(e,t){let r=Wo(e),n=Wo(t);if(e===t)return{valid:!0,data:e};if(r===ne.object&&n===ne.object){let i=Xe.objectKeys(t),a=Xe.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(let s of a){let l=qA(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(r===ne.array&&n===ne.array){if(e.length!==t.length)return{valid:!1};let i=[];for(let a=0;a<e.length;a++){let o=e[a],s=t[a],l=qA(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return r===ne.date&&n===ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var ld=class extends je{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=(a,o)=>{if(ZA(a)||ZA(o))return Te;let s=qA(a.value,o.value);return s.valid?((HA(a)||HA(o))&&r.dirty(),{status:r.value,value:s.data}):(re(n,{code:q.invalid_intersection_types}),Te)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ld.create=(e,t,r)=>new ld({left:e,right:t,typeName:be.ZodIntersection,...Ie(r)});var Qo=class e extends je{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ne.array)return re(n,{code:q.invalid_type,expected:ne.array,received:n.parsedType}),Te;if(n.data.length<this._def.items.length)return re(n,{code:q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Te;!this._def.rest&&n.data.length>this._def.items.length&&(re(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let a=[...n.data].map((o,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new Zi(n,o,n.path,s)):null}).filter(o=>!!o);return n.common.async?Promise.all(a).then(o=>on.mergeArray(r,o)):on.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Qo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Qo({items:e,typeName:be.ZodTuple,rest:null,...Ie(t)})};var YA=class e extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ne.object)return re(n,{code:q.invalid_type,expected:ne.object,received:n.parsedType}),Te;let i=[],a=this._def.keyType,o=this._def.valueType;for(let s in n.data)i.push({key:a._parse(new Zi(n,s,n.path,s)),value:o._parse(new Zi(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?on.mergeObjectAsync(r,i):on.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(t,r,n){return r instanceof je?new e({keyType:t,valueType:r,typeName:be.ZodRecord,...Ie(n)}):new e({keyType:id.create(),valueType:t,typeName:be.ZodRecord,...Ie(r)})}},Ah=class extends je{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ne.map)return re(n,{code:q.invalid_type,expected:ne.map,received:n.parsedType}),Te;let i=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([s,l],u)=>({key:i._parse(new Zi(n,s,n.path,[u,"key"])),value:a._parse(new Zi(n,l,n.path,[u,"value"]))}));if(n.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of o){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return Te;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of o){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return Te;(u.status==="dirty"||c.status==="dirty")&&r.dirty(),s.set(u.value,c.value)}return{status:r.value,value:s}}}};Ah.create=(e,t,r)=>new Ah({valueType:t,keyType:e,typeName:be.ZodMap,...Ie(r)});var Ch=class e extends je{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==ne.set)return re(n,{code:q.invalid_type,expected:ne.set,received:n.parsedType}),Te;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(re(n,{code:q.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(re(n,{code:q.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let a=this._def.valueType;function o(l){let u=new Set;for(let c of l){if(c.status==="aborted")return Te;c.status==="dirty"&&r.dirty(),u.add(c.value)}return{status:r.value,value:u}}let s=[...n.data.values()].map((l,u)=>a._parse(new Zi(n,l,n.path,u)));return n.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:ue.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:ue.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Ch.create=(e,t)=>new Ch({valueType:e,minSize:null,maxSize:null,typeName:be.ZodSet,...Ie(t)});var XA=class e extends je{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.function)return re(r,{code:q.invalid_type,expected:ne.function,received:r.parsedType}),Te;function n(s,l){return i0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,yh(),el].filter(u=>!!u),issueData:{code:q.invalid_arguments,argumentsError:l}})}function i(s,l){return i0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,yh(),el].filter(u=>!!u),issueData:{code:q.invalid_return_type,returnTypeError:l}})}let a={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof ju){let s=this;return xn(async function(...l){let u=new di([]),c=await s._def.args.parseAsync(l,a).catch(p=>{throw u.addIssue(n(l,p)),u}),f=await Reflect.apply(o,this,c);return await s._def.returns._def.type.parseAsync(f,a).catch(p=>{throw u.addIssue(i(f,p)),u})})}else{let s=this;return xn(function(...l){let u=s._def.args.safeParse(l,a);if(!u.success)throw new di([n(l,u.error)]);let c=Reflect.apply(o,this,u.data),f=s._def.returns.safeParse(c,a);if(!f.success)throw new di([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Qo.create(t).rest(tl.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||Qo.create([]).rest(tl.create()),returns:r||tl.create(),typeName:be.ZodFunction,...Ie(n)})}},ud=class extends je{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};ud.create=(e,t)=>new ud({getter:e,typeName:be.ZodLazy,...Ie(t)});var cd=class extends je{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return re(r,{received:r.data,code:q.invalid_literal,expected:this._def.value}),Te}return{status:"valid",value:t.data}}get value(){return this._def.value}};cd.create=(e,t)=>new cd({value:e,typeName:be.ZodLiteral,...Ie(t)});function e4(e,t){return new fd({values:e,typeName:be.ZodEnum,...Ie(t)})}var fd=class e extends je{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return re(r,{expected:Xe.joinValues(n),received:r.parsedType,code:q.invalid_type}),Te}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return re(r,{received:r.data,code:q.invalid_enum_value,options:n}),Te}return xn(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};fd.create=e4;var dd=class extends je{_parse(t){let r=Xe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==ne.string&&n.parsedType!==ne.number){let i=Xe.objectValues(r);return re(n,{expected:Xe.joinValues(i),received:n.parsedType,code:q.invalid_type}),Te}if(this._cache||(this._cache=new Set(Xe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let i=Xe.objectValues(r);return re(n,{received:n.data,code:q.invalid_enum_value,options:i}),Te}return xn(t.data)}get enum(){return this._def.values}};dd.create=(e,t)=>new dd({values:e,typeName:be.ZodNativeEnum,...Ie(t)});var ju=class extends je{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==ne.promise&&r.common.async===!1)return re(r,{code:q.invalid_type,expected:ne.promise,received:r.parsedType}),Te;let n=r.parsedType===ne.promise?r.data:Promise.resolve(r.data);return xn(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};ju.create=(e,t)=>new ju({type:e,typeName:be.ZodPromise,...Ie(t)});var Aa=class extends je{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{re(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){let o=i.transform(n.data,a);if(n.common.async)return Promise.resolve(o).then(async s=>{if(r.value==="aborted")return Te;let l=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return l.status==="aborted"?Te:l.status==="dirty"?rd(l.value):r.value==="dirty"?rd(l.value):l});{if(r.value==="aborted")return Te;let s=this._def.schema._parseSync({data:o,path:n.path,parent:n});return s.status==="aborted"?Te:s.status==="dirty"?rd(s.value):r.value==="dirty"?rd(s.value):s}}if(i.type==="refinement"){let o=s=>{let l=i.refinement(s,a);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Te:(s.status==="dirty"&&r.dirty(),o(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?Te:(s.status==="dirty"&&r.dirty(),o(s.value).then(()=>({status:r.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Uu(o))return Te;let s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Uu(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:r.value,value:s})):Te);Xe.assertNever(i)}};Aa.create=(e,t,r)=>new Aa({schema:e,typeName:be.ZodEffects,effect:t,...Ie(r)});Aa.createWithPreprocess=(e,t,r)=>new Aa({schema:t,effect:{type:"preprocess",transform:e},typeName:be.ZodEffects,...Ie(r)});var za=class extends je{_parse(t){return this._getType(t)===ne.undefined?xn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};za.create=(e,t)=>new za({innerType:e,typeName:be.ZodOptional,...Ie(t)});var es=class extends je{_parse(t){return this._getType(t)===ne.null?xn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};es.create=(e,t)=>new es({innerType:e,typeName:be.ZodNullable,...Ie(t)});var pd=class extends je{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===ne.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};pd.create=(e,t)=>new pd({innerType:e,typeName:be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ie(t)});var md=class extends je{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _h(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new di(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new di(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};md.create=(e,t)=>new md({innerType:e,typeName:be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ie(t)});var Dh=class extends je{_parse(t){if(this._getType(t)!==ne.nan){let n=this._getOrReturnCtx(t);return re(n,{code:q.invalid_type,expected:ne.nan,received:n.parsedType}),Te}return{status:"valid",value:t.data}}};Dh.create=e=>new Dh({typeName:be.ZodNaN,...Ie(e)});var JSe=Symbol("zod_brand"),a0=class extends je{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},o0=class e extends je{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Te:a.status==="dirty"?(r.dirty(),rd(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Te:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:be.ZodPipeline})}},hd=class extends je{_parse(t){let r=this._def.innerType._parse(t),n=i=>(Uu(i)&&(i.value=Object.freeze(i.value)),i);return _h(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}};hd.create=(e,t)=>new hd({innerType:e,typeName:be.ZodReadonly,...Ie(t)});var QSe={object:pi.lazycreate},be;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(be||(be={}));var e1e=id.create,t1e=bh.create,r1e=Dh.create,n1e=xh.create,i1e=Sh.create,a1e=Th.create,o1e=wh.create,s1e=ad.create,l1e=od.create,u1e=Eh.create,c1e=tl.create,f1e=io.create,d1e=zh.create,p1e=rl.create,Gne=pi.create,m1e=pi.strictCreate,h1e=sd.create,v1e=GA.create,g1e=ld.create,y1e=Qo.create,_1e=YA.create,b1e=Ah.create,x1e=Ch.create,S1e=XA.create,T1e=ud.create,w1e=cd.create,E1e=fd.create,z1e=dd.create,A1e=ju.create,C1e=Aa.create,D1e=za.create,N1e=es.create,O1e=Aa.createWithPreprocess,k1e=o0.create;er();er();er();er();er();er();Pd();Pb();er();er();function Ax(e){return!!e._zod}function Cx(e,t){return Ax(e)?Hu(e,t):e.safeParse(t)}function z6(e){if(!e)return;let t;if(Ax(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function A6(e){if(Ax(e)){let a=e._zod?.def;if(a){if(a.value!==void 0)return a.value;if(Array.isArray(a.values)&&a.values.length>0)return a.values[0]}}let r=e._def;if(r){if(r.value!==void 0)return r.value;if(Array.isArray(r.values)&&r.values.length>0)return r.values[0]}let n=e.value;if(n!==void 0)return n}Hd();var gl="io.modelcontextprotocol/related-task",$S="2.0",_r=MS(e=>e!==null&&(typeof e=="object"||typeof e=="function")),EV=it([P(),Ke().int()]),zV=P(),JEe=Vr({ttl:Ke().optional(),pollInterval:Ke().optional()}),Moe=ee({ttl:Ke().optional()}),Ioe=ee({taskId:P()}),HN=Vr({progressToken:EV.optional(),[gl]:Ioe.optional()}),gi=ee({_meta:HN.optional()}),Vv=gi.extend({task:Moe.optional()}),AV=e=>Vv.safeParse(e).success,Br=ee({method:P(),params:gi.loose().optional()}),qi=ee({_meta:HN.optional()}),Yi=ee({method:P(),params:qi.loose().optional()}),Zr=Vr({_meta:HN.optional()}),Gd=it([P(),Ke().int()]),CV=ee({jsonrpc:le($S),id:Gd,...Br.shape}).strict(),FN=e=>CV.safeParse(e).success,DV=ee({jsonrpc:le($S),...Yi.shape}).strict(),NV=e=>DV.safeParse(e).success,GN=ee({jsonrpc:le($S),id:Gd,result:Zr}).strict(),Bv=e=>GN.safeParse(e).success;var rt;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(rt||(rt={}));var qN=ee({jsonrpc:le($S),id:Gd.optional(),error:ee({code:Ke().int(),message:P(),data:zt().optional()})}).strict();var OV=e=>qN.safeParse(e).success;var kV=it([CV,DV,GN,qN]),QEe=it([GN,qN]),US=Zr.strict(),Roe=qi.extend({requestId:Gd.optional(),reason:P().optional()}),jS=Yi.extend({method:le("notifications/cancelled"),params:Roe}),Loe=ee({src:P(),mimeType:P().optional(),sizes:Re(P()).optional(),theme:yr(["light","dark"]).optional()}),Zv=ee({icons:Re(Loe).optional()}),Fd=ee({name:P(),title:P().optional()}),Hv=Fd.extend({...Fd.shape,...Zv.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),Poe=vi(ee({applyDefaults:qt().optional()}),ot(P(),zt())),$oe=jv(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,vi(ee({form:Poe.optional(),url:_r.optional()}),ot(P(),zt()).optional())),Uoe=Vr({list:_r.optional(),cancel:_r.optional(),requests:Vr({sampling:Vr({createMessage:_r.optional()}).optional(),elicitation:Vr({create:_r.optional()}).optional()}).optional()}),joe=Vr({list:_r.optional(),cancel:_r.optional(),requests:Vr({tools:Vr({call:_r.optional()}).optional()}).optional()}),Voe=ee({experimental:ot(P(),_r).optional(),sampling:ee({context:_r.optional(),tools:_r.optional()}).optional(),elicitation:$oe.optional(),roots:ee({listChanged:qt().optional()}).optional(),tasks:Uoe.optional(),extensions:ot(P(),_r).optional()}),Boe=gi.extend({protocolVersion:P(),capabilities:Voe,clientInfo:Hv}),Zoe=Br.extend({method:le("initialize"),params:Boe});var Hoe=ee({experimental:ot(P(),_r).optional(),logging:_r.optional(),completions:_r.optional(),prompts:ee({listChanged:qt().optional()}).optional(),resources:ee({subscribe:qt().optional(),listChanged:qt().optional()}).optional(),tools:ee({listChanged:qt().optional()}).optional(),tasks:joe.optional(),extensions:ot(P(),_r).optional()}),Foe=Zr.extend({protocolVersion:P(),capabilities:Hoe,serverInfo:Hv,instructions:P().optional()}),Goe=Yi.extend({method:le("notifications/initialized"),params:qi.optional()});var qd=Br.extend({method:le("ping"),params:gi.optional()}),qoe=ee({progress:Ke(),total:Dt(Ke()),message:Dt(P())}),Yoe=ee({...qi.shape,...qoe.shape,progressToken:EV}),VS=Yi.extend({method:le("notifications/progress"),params:Yoe}),Xoe=gi.extend({cursor:zV.optional()}),Fv=Br.extend({params:Xoe.optional()}),Gv=Zr.extend({nextCursor:zV.optional()}),Koe=yr(["working","input_required","completed","failed","cancelled"]),qv=ee({taskId:P(),status:Koe,ttl:it([Ke(),hl()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:Dt(Ke()),statusMessage:Dt(P())}),BS=Zr.extend({task:qv}),Woe=qi.merge(qv),Yv=Yi.extend({method:le("notifications/tasks/status"),params:Woe}),ZS=Br.extend({method:le("tasks/get"),params:gi.extend({taskId:P()})}),HS=Zr.merge(qv),FS=Br.extend({method:le("tasks/result"),params:gi.extend({taskId:P()})}),eze=Zr.loose(),GS=Fv.extend({method:le("tasks/list")}),qS=Gv.extend({tasks:Re(qv)}),YS=Br.extend({method:le("tasks/cancel"),params:gi.extend({taskId:P()})}),MV=Zr.merge(qv),IV=ee({uri:P(),mimeType:Dt(P()),_meta:ot(P(),zt()).optional()}),RV=IV.extend({text:P()}),YN=P().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),LV=IV.extend({blob:YN}),Xv=yr(["user","assistant"]),Yd=ee({audience:Re(Xv).optional(),priority:Ke().min(0).max(1).optional(),lastModified:Gi.datetime({offset:!0}).optional()}),PV=ee({...Fd.shape,...Zv.shape,uri:P(),description:Dt(P()),mimeType:Dt(P()),size:Dt(Ke()),annotations:Yd.optional(),_meta:Dt(Vr({}))}),Joe=ee({...Fd.shape,...Zv.shape,uriTemplate:P(),description:Dt(P()),mimeType:Dt(P()),annotations:Yd.optional(),_meta:Dt(Vr({}))}),Qoe=Fv.extend({method:le("resources/list")}),XN=Gv.extend({resources:Re(PV)}),ese=Fv.extend({method:le("resources/templates/list")}),tse=Gv.extend({resourceTemplates:Re(Joe)}),KN=gi.extend({uri:P()}),rse=KN,nse=Br.extend({method:le("resources/read"),params:rse}),WN=Zr.extend({contents:Re(it([RV,LV]))}),ise=Yi.extend({method:le("notifications/resources/list_changed"),params:qi.optional()}),ase=KN,ose=Br.extend({method:le("resources/subscribe"),params:ase}),sse=KN,lse=Br.extend({method:le("resources/unsubscribe"),params:sse}),use=qi.extend({uri:P()}),cse=Yi.extend({method:le("notifications/resources/updated"),params:use}),fse=ee({name:P(),description:Dt(P()),required:Dt(qt())}),dse=ee({...Fd.shape,...Zv.shape,description:Dt(P()),arguments:Dt(Re(fse)),_meta:Dt(Vr({}))}),pse=Fv.extend({method:le("prompts/list")}),mse=Gv.extend({prompts:Re(dse)}),hse=gi.extend({name:P(),arguments:ot(P(),P()).optional()}),vse=Br.extend({method:le("prompts/get"),params:hse}),JN=ee({type:le("text"),text:P(),annotations:Yd.optional(),_meta:ot(P(),zt()).optional()}),QN=ee({type:le("image"),data:YN,mimeType:P(),annotations:Yd.optional(),_meta:ot(P(),zt()).optional()}),eO=ee({type:le("audio"),data:YN,mimeType:P(),annotations:Yd.optional(),_meta:ot(P(),zt()).optional()}),gse=ee({type:le("tool_use"),name:P(),id:P(),input:ot(P(),zt()),_meta:ot(P(),zt()).optional()}),tO=ee({type:le("resource"),resource:it([RV,LV]),annotations:Yd.optional(),_meta:ot(P(),zt()).optional()}),rO=PV.extend({type:le("resource_link")}),Xd=it([JN,QN,eO,rO,tO]),yse=ee({role:Xv,content:Xd}),_se=Zr.extend({description:P().optional(),messages:Re(yse)}),bse=Yi.extend({method:le("notifications/prompts/list_changed"),params:qi.optional()}),xse=ee({title:P().optional(),readOnlyHint:qt().optional(),destructiveHint:qt().optional(),idempotentHint:qt().optional(),openWorldHint:qt().optional()}),Sse=ee({taskSupport:yr(["required","optional","forbidden"]).optional()}),XS=ee({...Fd.shape,...Zv.shape,description:P().optional(),inputSchema:ee({type:le("object"),properties:ot(P(),_r).optional(),required:Re(P()).optional()}).catchall(zt()),outputSchema:ee({type:le("object"),properties:ot(P(),_r).optional(),required:Re(P()).optional()}).catchall(zt()).optional(),annotations:xse.optional(),execution:Sse.optional(),_meta:ot(P(),zt()).optional()}),nO=Fv.extend({method:le("tools/list")}),Tse=Gv.extend({tools:Re(XS)}),Kd=Zr.extend({content:Re(Xd).default([]),structuredContent:ot(P(),zt()).optional(),isError:qt().optional()}),tze=Kd.or(Zr.extend({toolResult:zt()})),wse=Vv.extend({name:P(),arguments:ot(P(),zt()).optional()}),iO=Br.extend({method:le("tools/call"),params:wse}),Ese=Yi.extend({method:le("notifications/tools/list_changed"),params:qi.optional()}),rze=ee({autoRefresh:qt().default(!0),debounceMs:Ke().int().nonnegative().default(300)}),$V=yr(["debug","info","notice","warning","error","critical","alert","emergency"]),zse=gi.extend({level:$V}),Ase=Br.extend({method:le("logging/setLevel"),params:zse}),Cse=qi.extend({level:$V,logger:P().optional(),data:zt()}),Dse=Yi.extend({method:le("notifications/message"),params:Cse}),Nse=ee({name:P().optional()}),Ose=ee({hints:Re(Nse).optional(),costPriority:Ke().min(0).max(1).optional(),speedPriority:Ke().min(0).max(1).optional(),intelligencePriority:Ke().min(0).max(1).optional()}),kse=ee({mode:yr(["auto","required","none"]).optional()}),Mse=ee({type:le("tool_result"),toolUseId:P().describe("The unique identifier for the corresponding tool call."),content:Re(Xd).default([]),structuredContent:ee({}).loose().optional(),isError:qt().optional(),_meta:ot(P(),zt()).optional()}),Ise=Iv("type",[JN,QN,eO]),PS=Iv("type",[JN,QN,eO,gse,Mse]),Rse=ee({role:Xv,content:it([PS,Re(PS)]),_meta:ot(P(),zt()).optional()}),Lse=Vv.extend({messages:Re(Rse),modelPreferences:Ose.optional(),systemPrompt:P().optional(),includeContext:yr(["none","thisServer","allServers"]).optional(),temperature:Ke().optional(),maxTokens:Ke().int(),stopSequences:Re(P()).optional(),metadata:_r.optional(),tools:Re(XS).optional(),toolChoice:kse.optional()}),Pse=Br.extend({method:le("sampling/createMessage"),params:Lse}),aO=Zr.extend({model:P(),stopReason:Dt(yr(["endTurn","stopSequence","maxTokens"]).or(P())),role:Xv,content:Ise}),oO=Zr.extend({model:P(),stopReason:Dt(yr(["endTurn","stopSequence","maxTokens","toolUse"]).or(P())),role:Xv,content:it([PS,Re(PS)])}),$se=ee({type:le("boolean"),title:P().optional(),description:P().optional(),default:qt().optional()}),Use=ee({type:le("string"),title:P().optional(),description:P().optional(),minLength:Ke().optional(),maxLength:Ke().optional(),format:yr(["email","uri","date","date-time"]).optional(),default:P().optional()}),jse=ee({type:yr(["number","integer"]),title:P().optional(),description:P().optional(),minimum:Ke().optional(),maximum:Ke().optional(),default:Ke().optional()}),Vse=ee({type:le("string"),title:P().optional(),description:P().optional(),enum:Re(P()),default:P().optional()}),Bse=ee({type:le("string"),title:P().optional(),description:P().optional(),oneOf:Re(ee({const:P(),title:P()})),default:P().optional()}),Zse=ee({type:le("string"),title:P().optional(),description:P().optional(),enum:Re(P()),enumNames:Re(P()).optional(),default:P().optional()}),Hse=it([Vse,Bse]),Fse=ee({type:le("array"),title:P().optional(),description:P().optional(),minItems:Ke().optional(),maxItems:Ke().optional(),items:ee({type:le("string"),enum:Re(P())}),default:Re(P()).optional()}),Gse=ee({type:le("array"),title:P().optional(),description:P().optional(),minItems:Ke().optional(),maxItems:Ke().optional(),items:ee({anyOf:Re(ee({const:P(),title:P()}))}),default:Re(P()).optional()}),qse=it([Fse,Gse]),Yse=it([Zse,Hse,qse]),Xse=it([Yse,$se,Use,jse]),Kse=Vv.extend({mode:le("form").optional(),message:P(),requestedSchema:ee({type:le("object"),properties:ot(P(),Xse),required:Re(P()).optional()})}),Wse=Vv.extend({mode:le("url"),message:P(),elicitationId:P(),url:P().url()}),Jse=it([Kse,Wse]),Qse=Br.extend({method:le("elicitation/create"),params:Jse}),ele=qi.extend({elicitationId:P()}),tle=Yi.extend({method:le("notifications/elicitation/complete"),params:ele}),rle=Zr.extend({action:yr(["accept","decline","cancel"]),content:jv(e=>e===null?void 0:e,ot(P(),it([P(),Ke(),qt(),Re(P())])).optional())}),nle=ee({type:le("ref/resource"),uri:P()});var ile=ee({type:le("ref/prompt"),name:P()}),ale=gi.extend({ref:it([ile,nle]),argument:ee({name:P(),value:P()}),context:ee({arguments:ot(P(),P()).optional()}).optional()}),ole=Br.extend({method:le("completion/complete"),params:ale});var sle=Zr.extend({completion:Vr({values:Re(P()).max(100),total:Dt(Ke().int()),hasMore:Dt(qt())})}),lle=ee({uri:P().startsWith("file://"),name:P().optional(),_meta:ot(P(),zt()).optional()}),ule=Br.extend({method:le("roots/list"),params:gi.optional()}),cle=Zr.extend({roots:Re(lle)}),fle=Yi.extend({method:le("notifications/roots/list_changed"),params:qi.optional()}),nze=it([qd,Zoe,ole,Ase,vse,pse,Qoe,ese,nse,ose,lse,iO,nO,ZS,FS,GS,YS]),ize=it([jS,VS,Goe,fle,Yv]),aze=it([US,aO,oO,rle,cle,HS,qS,BS]),oze=it([qd,Pse,Qse,ule,ZS,FS,GS,YS]),sze=it([jS,VS,Dse,cse,ise,Ese,bse,Yv,tle]),lze=it([US,Foe,sle,_se,mse,XN,tse,WN,Kd,Tse,HS,qS,BS]),He=class e extends Error{constructor(t,r,n){super(`MCP error ${t}: ${r}`),this.code=t,this.data=n,this.name="McpError"}static fromError(t,r,n){if(t===rt.UrlElicitationRequired&&n){let i=n;if(i.elicitations)return new ZN(i.elicitations,r)}return new e(t,r,n)}},ZN=class extends He{constructor(t,r=`URL elicitation${t.length>1?"s":""} required`){super(rt.UrlElicitationRequired,r,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}};function yl(e){return e==="completed"||e==="failed"||e==="cancelled"}var dle=Symbol("Let zodToJsonSchema decide on which parser to use");var Bze=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function sO(e){let r=z6(e)?.method;if(!r)throw new Error("Schema is missing a method literal");let n=A6(r);if(typeof n!="string")throw new Error("Schema method literal must be a string");return n}function lO(e,t){let r=Cx(e,t);if(!r.success)throw r.error;return r.data}var yle=6e4,KS=class{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(jS,r=>{this._oncancel(r)}),this.setNotificationHandler(VS,r=>{this._onprogress(r)}),this.setRequestHandler(qd,r=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(ZS,async(r,n)=>{let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new He(rt.InvalidParams,"Failed to retrieve task: Task not found");return{...i}}),this.setRequestHandler(FS,async(r,n)=>{let i=async()=>{let a=r.params.taskId;if(!await this._taskStore.getTask(a,n.sessionId))throw new He(rt.InvalidParams,`Task not found: ${a}`);if(this._taskMessageQueue){let s;for(;s=await this._taskMessageQueue.dequeue(a,n.sessionId);){if(s.type==="response"||s.type==="error"){let l=s.message,u=l.id,c=this._requestResolvers.get(u);if(c)if(this._requestResolvers.delete(u),s.type==="response")c(l);else{let f=l,d=new He(f.error.code,f.error.message,f.error.data);c(d)}else{let f=s.type==="response"?"Response":"Error";this._onerror(new Error(`${f} handler missing for request ${u}`))}continue}await this._transport?.send(s.message,{relatedRequestId:n.requestId})}}let o=await this._taskStore.getTask(a,n.sessionId);if(!o)throw new He(rt.InvalidParams,`Task not found: ${a}`);if(!yl(o.status))return await this._waitForTaskUpdate(a,n.signal,n.sessionId),await i();if(yl(o.status)){let s=await this._taskStore.getTaskResult(a,n.sessionId);return this._clearTaskQueue(a,n.sessionId),{...s,_meta:{...s._meta,[gl]:{taskId:a}}}}return await i()};return await i()}),this.setRequestHandler(GS,async(r,n)=>{try{let{tasks:i,nextCursor:a}=await this._taskStore.listTasks(r.params?.cursor,n.sessionId);return{tasks:i,nextCursor:a,_meta:{}}}catch(i){throw new He(rt.InvalidParams,`Failed to list tasks: ${i instanceof Error?i.message:String(i)}`)}}),this.setRequestHandler(YS,async(r,n)=>{try{let i=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!i)throw new He(rt.InvalidParams,`Task not found: ${r.params.taskId}`);if(yl(i.status))throw new He(rt.InvalidParams,`Cannot cancel task in terminal status: ${i.status}`);await this._taskStore.updateTaskStatus(r.params.taskId,"cancelled","Client cancelled task execution.",n.sessionId),this._clearTaskQueue(r.params.taskId,n.sessionId);let a=await this._taskStore.getTask(r.params.taskId,n.sessionId);if(!a)throw new He(rt.InvalidParams,`Task not found after cancellation: ${r.params.taskId}`);return{_meta:{},...a}}catch(i){throw i instanceof He?i:new He(rt.InvalidRequest,`Failed to cancel task: ${i instanceof Error?i.message:String(i)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,r,n,i,a=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(i,r),startTime:Date.now(),timeout:r,maxTotalTimeout:n,resetTimeoutOnProgress:a,onTimeout:i})}_resetTimeout(t){let r=this._timeoutInfo.get(t);if(!r)return!1;let n=Date.now()-r.startTime;if(r.maxTotalTimeout&&n>=r.maxTotalTimeout)throw this._timeoutInfo.delete(t),He.fromError(rt.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:r.maxTotalTimeout,totalElapsed:n});return clearTimeout(r.timeoutId),r.timeoutId=setTimeout(r.onTimeout,r.timeout),!0}_cleanupTimeout(t){let r=this._timeoutInfo.get(t);r&&(clearTimeout(r.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;let r=this.transport?.onclose;this._transport.onclose=()=>{r?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=a=>{n?.(a),this._onerror(a)};let i=this._transport?.onmessage;this._transport.onmessage=(a,o)=>{i?.(a,o),Bv(a)||OV(a)?this._onresponse(a):FN(a)?this._onrequest(a,o):NV(a)?this._onnotification(a):this._onerror(new Error(`Unknown message type: ${JSON.stringify(a)}`))},await this._transport.start()}_onclose(){let t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let n of this._timeoutInfo.values())clearTimeout(n.timeoutId);this._timeoutInfo.clear();for(let n of this._requestHandlerAbortControllers.values())n.abort();this._requestHandlerAbortControllers.clear();let r=He.fromError(rt.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(let n of t.values())n(r)}_onerror(t){this.onerror?.(t)}_onnotification(t){let r=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(n=>this._onerror(new Error(`Uncaught error in notification handler: ${n}`)))}_onrequest(t,r){let n=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,i=this._transport,a=t.params?._meta?.[gl]?.taskId,o=i?.sessionId,s=this._taskStore,l=!0,u;if(a&&s&&this._taskMessageQueue&&o!==void 0&&(l=!1,u=(async()=>{if(!await s.getTask(a,o))throw new He(rt.InvalidParams,`Task not found: ${a}`);l=!0})()),n===void 0){let m={jsonrpc:"2.0",id:t.id,error:{code:rt.MethodNotFound,message:"Method not found"}};if(a&&u){let h={type:"error",message:m,timestamp:Date.now()};u.then(()=>this._enqueueTaskMessage(a,h,o),()=>i?.send(m)).catch(y=>this._onerror(new Error(`Failed to send an error response: ${y}`)))}else a&&this._taskMessageQueue?this._enqueueTaskMessage(a,{type:"error",message:m,timestamp:Date.now()},i?.sessionId).catch(h=>this._onerror(new Error(`Failed to enqueue error response: ${h}`))):i?.send(m).catch(h=>this._onerror(new Error(`Failed to send an error response: ${h}`)));return}let c=new AbortController;this._requestHandlerAbortControllers.set(t.id,c);let f=AV(t.params)?t.params.task:void 0,d=this._taskStore?this.requestTaskStore(t,i?.sessionId):void 0,p={signal:c.signal,sessionId:i?.sessionId,_meta:t.params?._meta,sendNotification:async m=>{if(c.signal.aborted)return;let h={relatedRequestId:t.id};a&&(h.relatedTask={taskId:a}),await this.notification(m,h)},sendRequest:async(m,h,y)=>{if(c.signal.aborted)throw new He(rt.ConnectionClosed,"Request was cancelled");let v={...y,relatedRequestId:t.id};a&&!v.relatedTask&&(v.relatedTask={taskId:a});let g=v.relatedTask?.taskId??a;return g&&d&&await d.updateTaskStatus(g,"input_required"),await this.request(m,h,v)},authInfo:r?.authInfo,requestId:t.id,requestInfo:r?.requestInfo,taskId:a,taskStore:d,taskRequestedTtl:f?.ttl,closeSSEStream:r?.closeSSEStream,closeStandaloneSSEStream:r?.closeStandaloneSSEStream};(u??Promise.resolve()).then(()=>{if(u&&c.signal.aborted)throw new He(rt.ConnectionClosed,"Request was cancelled");f&&this.assertTaskHandlerCapability(t.method)}).then(()=>n(t,p)).then(async m=>{if(c.signal.aborted)return;let h={result:m,jsonrpc:"2.0",id:t.id};a&&this._taskMessageQueue?await this._enqueueTaskMessage(a,{type:"response",message:h,timestamp:Date.now()},i?.sessionId):await i?.send(h)},async m=>{if(c.signal.aborted)return;let h={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(m.code)?m.code:rt.InternalError,message:m.message??"Internal error",...m.data!==void 0&&{data:m.data}}};a&&this._taskMessageQueue&&l?await this._enqueueTaskMessage(a,{type:"error",message:h,timestamp:Date.now()},i?.sessionId):await i?.send(h)}).catch(m=>this._onerror(new Error(`Failed to send response: ${m}`))).finally(()=>{this._requestHandlerAbortControllers.get(t.id)===c&&this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){let{progressToken:r,...n}=t.params,i=Number(r),a=this._progressHandlers.get(i);if(!a){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}let o=this._responseHandlers.get(i),s=this._timeoutInfo.get(i);if(s&&o&&s.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(l){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(l);return}a(n)}_onresponse(t){let r=Number(t.id),n=this._requestResolvers.get(r);if(n){if(this._requestResolvers.delete(r),Bv(t))n(t);else{let o=new He(t.error.code,t.error.message,t.error.data);n(o)}return}let i=this._responseHandlers.get(r);if(i===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(r),this._cleanupTimeout(r);let a=!1;if(Bv(t)&&t.result&&typeof t.result=="object"){let o=t.result;if(o.task&&typeof o.task=="object"){let s=o.task;typeof s.taskId=="string"&&(a=!0,this._taskProgressTokens.set(s.taskId,r))}}if(a||this._progressHandlers.delete(r),Bv(t))i(t);else{let o=He.fromError(t.error.code,t.error.message,t.error.data);i(o)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,r,n){let{task:i}=n??{};if(!i){try{yield{type:"result",result:await this.request(t,r,n)}}catch(o){yield{type:"error",error:o instanceof He?o:new He(rt.InternalError,String(o))}}return}let a;try{let o=await this.request(t,BS,n);if(o.task)a=o.task.taskId,yield{type:"taskCreated",task:o.task};else throw new He(rt.InternalError,"Task creation did not return a task");for(;;){let s=await this.getTask({taskId:a},n);if(yield{type:"taskStatus",task:s},yl(s.status)){s.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)}:s.status==="failed"?yield{type:"error",error:new He(rt.InternalError,`Task ${a} failed`)}:s.status==="cancelled"&&(yield{type:"error",error:new He(rt.InternalError,`Task ${a} was cancelled`)});return}if(s.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:a},r,n)};return}let l=s.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(u=>setTimeout(u,l)),n?.signal?.throwIfAborted()}}catch(o){yield{type:"error",error:o instanceof He?o:new He(rt.InternalError,String(o))}}}request(t,r,n){let{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,task:s,relatedTask:l}=n??{};return new Promise((u,c)=>{let f=g=>{c(g)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),s&&this.assertTaskCapability(t.method)}catch(g){f(g);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,p={...t,jsonrpc:"2.0",id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),p.params={...t.params,_meta:{...t.params?._meta||{},progressToken:d}}),s&&(p.params={...p.params,task:s}),l&&(p.params={...p.params,_meta:{...p.params?._meta||{},[gl]:l}});let m=g=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:d,reason:String(g)}},{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(b=>this._onerror(new Error(`Failed to send cancellation: ${b}`)));let _=g instanceof He?g:new He(rt.RequestTimeout,String(g));c(_)};this._responseHandlers.set(d,g=>{if(!n?.signal?.aborted){if(g instanceof Error)return c(g);try{let _=Cx(r,g.result);_.success?u(_.data):c(_.error)}catch(_){c(_)}}}),n?.signal?.addEventListener("abort",()=>{m(n?.signal?.reason)});let h=n?.timeout??yle,y=()=>m(He.fromError(rt.RequestTimeout,"Request timed out",{timeout:h}));this._setupTimeout(d,h,n?.maxTotalTimeout,y,n?.resetTimeoutOnProgress??!1);let v=l?.taskId;if(v){let g=_=>{let b=this._responseHandlers.get(d);b?b(_):this._onerror(new Error(`Response handler missing for side-channeled request ${d}`))};this._requestResolvers.set(d,g),this._enqueueTaskMessage(v,{type:"request",message:p,timestamp:Date.now()}).catch(_=>{this._cleanupTimeout(d),c(_)})}else this._transport.send(p,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(g=>{this._cleanupTimeout(d),c(g)})})}async getTask(t,r){return this.request({method:"tasks/get",params:t},HS,r)}async getTaskResult(t,r,n){return this.request({method:"tasks/result",params:t},r,n)}async listTasks(t,r){return this.request({method:"tasks/list",params:t},qS,r)}async cancelTask(t,r){return this.request({method:"tasks/cancel",params:t},MV,r)}async notification(t,r){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);let n=r?.relatedTask?.taskId;if(n){let s={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[gl]:r.relatedTask}}};await this._enqueueTaskMessage(n,{type:"notification",message:s,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!r?.relatedRequestId&&!r?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let s={...t,jsonrpc:"2.0"};r?.relatedTask&&(s={...s,params:{...s.params,_meta:{...s.params?._meta||{},[gl]:r.relatedTask}}}),this._transport?.send(s,r).catch(l=>this._onerror(l))});return}let o={...t,jsonrpc:"2.0"};r?.relatedTask&&(o={...o,params:{...o.params,_meta:{...o.params?._meta||{},[gl]:r.relatedTask}}}),await this._transport.send(o,r)}setRequestHandler(t,r){let n=sO(t);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(i,a)=>{let o=lO(t,i);return Promise.resolve(r(o,a))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,r){let n=sO(t);this._notificationHandlers.set(n,i=>{let a=lO(t,i);return Promise.resolve(r(a))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){let r=this._taskProgressTokens.get(t);r!==void 0&&(this._progressHandlers.delete(r),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,r,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");let i=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,r,n??this._transport?.sessionId,i)}async _clearTaskQueue(t,r){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(t,r);for(let i of n)if(i.type==="request"&&FN(i.message)){let a=i.message.id,o=this._requestResolvers.get(a);o?(o(new He(rt.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(a)):this._onerror(new Error(`Resolver missing for request ${a} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,r,n){let i=this._options?.defaultTaskPollInterval??1e3;try{let a=await this._taskStore?.getTask(t,n);a?.pollInterval&&(i=a.pollInterval)}catch{}return new Promise((a,o)=>{if(r.aborted){o(new He(rt.InvalidRequest,"Request cancelled"));return}let s=setTimeout(a,i);r.addEventListener("abort",()=>{clearTimeout(s),o(new He(rt.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,r){let n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async i=>{if(!t)throw new Error("No request provided");return await n.createTask(i,t.id,{method:t.method,params:t.params},r)},getTask:async i=>{let a=await n.getTask(i,r);if(!a)throw new He(rt.InvalidParams,"Failed to retrieve task: Task not found");return a},storeTaskResult:async(i,a,o)=>{await n.storeTaskResult(i,a,o,r);let s=await n.getTask(i,r);if(s){let l=Yv.parse({method:"notifications/tasks/status",params:s});await this.notification(l),yl(s.status)&&this._cleanupTaskProgressHandler(i)}},getTaskResult:i=>n.getTaskResult(i,r),updateTaskStatus:async(i,a,o)=>{let s=await n.getTask(i,r);if(!s)throw new He(rt.InvalidParams,`Task "${i}" not found - it may have been cleaned up`);if(yl(s.status))throw new He(rt.InvalidParams,`Cannot update task "${i}" from terminal status "${s.status}" to "${a}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(i,a,o,r);let l=await n.getTask(i,r);if(l){let u=Yv.parse({method:"notifications/tasks/status",params:l});await this.notification(u),yl(l.status)&&this._cleanupTaskProgressHandler(i)}},listTasks:i=>n.listTasks(i,r)}}};function UV(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function jV(e,t){let r={...e};for(let n in t){let i=n,a=t[i];if(a===void 0)continue;let o=r[i];UV(o)&&UV(a)?r[i]={...o,...a}:r[i]=a}return r}Hd();Hd();var BDe=(e=>typeof $u<"u"?$u:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof $u<"u"?$u:t)[r]}):e)(function(e){if(typeof $u<"u")return $u.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),uO=class extends KS{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(t,r){}_ensureEventSlot(t){let r=this._eventSlots.get(t);if(!r){let n=this.eventSchemas[t];if(!n)throw Error(`Unknown event: ${String(t)}`);r={listeners:[]},this._eventSlots.set(t,r);let i=n.shape.method.value;this._registeredMethods.add(i);let a=r;super.setNotificationHandler(n,o=>{let s=o.params;this.onEventDispatch(t,s),a.onHandler?.(s);for(let l of[...a.listeners])l(s)})}return r}setEventHandler(t,r){let n=this._ensureEventSlot(t);n.onHandler&&r&&console.warn(`[MCP Apps] on${String(t)} handler replaced. Use addEventListener("${String(t)}", \u2026) to add multiple listeners without replacing.`),n.onHandler=r}getEventHandler(t){return this._eventSlots.get(t)?.onHandler}addEventListener(t,r){this._ensureEventSlot(t).listeners.push(r)}removeEventListener(t,r){let n=this._eventSlots.get(t);if(!n)return;let i=n.listeners.indexOf(r);i!==-1&&n.listeners.splice(i,1)}setRequestHandler=(t,r)=>{this._assertMethodNotRegistered(t,"setRequestHandler"),super.setRequestHandler(t,r)};setNotificationHandler=(t,r)=>{this._assertMethodNotRegistered(t,"setNotificationHandler"),super.setNotificationHandler(t,r)};warnIfRequestHandlerReplaced(t,r,n){r&&n&&console.warn(`[MCP Apps] ${t} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(t,r)=>{let n=t.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(t,r)};_assertMethodNotRegistered(t,r){let n=t.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${r}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},_le="2026-01-26";var ble="ui/notifications/tool-input-partial";var cO=class{eventTarget;eventSource;messageListener;constructor(t=window.parent,r){this.eventTarget=t,this.eventSource=r,this.messageListener=n=>{if(r&&n.source!==this.eventSource){console.debug("Ignoring message from unknown source",n);return}let i=kV.safeParse(n.data);i.success?(console.debug("Parsed message",i.data),this.onmessage?.(i.data)):n.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",i.error.message,n):(console.error("Failed to parse message",i.error.message,n),this.onerror?.(Error("Invalid JSON-RPC message received: "+i.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,r){t.method!==ble&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},xle=N.union([N.literal("light"),N.literal("dark")]).describe("Color theme preference for the host environment."),Wv=N.union([N.literal("inline"),N.literal("fullscreen"),N.literal("pip")]).describe("Display mode for UI presentation."),Sle=N.union([N.literal("--color-background-primary"),N.literal("--color-background-secondary"),N.literal("--color-background-tertiary"),N.literal("--color-background-inverse"),N.literal("--color-background-ghost"),N.literal("--color-background-info"),N.literal("--color-background-danger"),N.literal("--color-background-success"),N.literal("--color-background-warning"),N.literal("--color-background-disabled"),N.literal("--color-text-primary"),N.literal("--color-text-secondary"),N.literal("--color-text-tertiary"),N.literal("--color-text-inverse"),N.literal("--color-text-ghost"),N.literal("--color-text-info"),N.literal("--color-text-danger"),N.literal("--color-text-success"),N.literal("--color-text-warning"),N.literal("--color-text-disabled"),N.literal("--color-border-primary"),N.literal("--color-border-secondary"),N.literal("--color-border-tertiary"),N.literal("--color-border-inverse"),N.literal("--color-border-ghost"),N.literal("--color-border-info"),N.literal("--color-border-danger"),N.literal("--color-border-success"),N.literal("--color-border-warning"),N.literal("--color-border-disabled"),N.literal("--color-ring-primary"),N.literal("--color-ring-secondary"),N.literal("--color-ring-inverse"),N.literal("--color-ring-info"),N.literal("--color-ring-danger"),N.literal("--color-ring-success"),N.literal("--color-ring-warning"),N.literal("--font-sans"),N.literal("--font-mono"),N.literal("--font-weight-normal"),N.literal("--font-weight-medium"),N.literal("--font-weight-semibold"),N.literal("--font-weight-bold"),N.literal("--font-text-xs-size"),N.literal("--font-text-sm-size"),N.literal("--font-text-md-size"),N.literal("--font-text-lg-size"),N.literal("--font-heading-xs-size"),N.literal("--font-heading-sm-size"),N.literal("--font-heading-md-size"),N.literal("--font-heading-lg-size"),N.literal("--font-heading-xl-size"),N.literal("--font-heading-2xl-size"),N.literal("--font-heading-3xl-size"),N.literal("--font-text-xs-line-height"),N.literal("--font-text-sm-line-height"),N.literal("--font-text-md-line-height"),N.literal("--font-text-lg-line-height"),N.literal("--font-heading-xs-line-height"),N.literal("--font-heading-sm-line-height"),N.literal("--font-heading-md-line-height"),N.literal("--font-heading-lg-line-height"),N.literal("--font-heading-xl-line-height"),N.literal("--font-heading-2xl-line-height"),N.literal("--font-heading-3xl-line-height"),N.literal("--border-radius-xs"),N.literal("--border-radius-sm"),N.literal("--border-radius-md"),N.literal("--border-radius-lg"),N.literal("--border-radius-xl"),N.literal("--border-radius-full"),N.literal("--border-width-regular"),N.literal("--shadow-hairline"),N.literal("--shadow-sm"),N.literal("--shadow-md"),N.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),Tle=N.record(Sle.describe(`Style variables for theming MCP apps.
|
|
74
|
+
|
|
75
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
76
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
77
|
+
|
|
78
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
79
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),N.union([N.string(),N.undefined()]).describe(`Style variables for theming MCP apps.
|
|
80
|
+
|
|
81
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
82
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
83
|
+
|
|
84
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
85
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.
|
|
86
|
+
|
|
87
|
+
Individual style keys are optional - hosts may provide any subset of these values.
|
|
88
|
+
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
89
|
+
|
|
90
|
+
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
91
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),XDe=N.object({method:N.literal("ui/open-link"),params:N.object({url:N.string().describe("URL to open in the host's browser")})}),wle=N.object({isError:N.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),Ele=N.object({isError:N.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),zle=N.object({isError:N.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),KDe=N.object({method:N.literal("ui/notifications/sandbox-proxy-ready"),params:N.object({})}),fO=N.object({connectDomains:N.array(N.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
92
|
+
|
|
93
|
+
- Maps to CSP \`connect-src\` directive
|
|
94
|
+
- Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:N.array(N.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"),frameDomains:N.array(N.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:N.array(N.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)")}),dO=N.object({camera:N.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:N.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:N.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:N.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),WDe=N.object({method:N.literal("ui/notifications/size-changed"),params:N.object({width:N.number().optional().describe("New width in pixels."),height:N.number().optional().describe("New height in pixels.")})}),Ale=N.object({method:N.literal("ui/notifications/tool-input"),params:N.object({arguments:N.record(N.string(),N.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),Cle=N.object({method:N.literal("ui/notifications/tool-input-partial"),params:N.object({arguments:N.record(N.string(),N.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),Dle=N.object({method:N.literal("ui/notifications/tool-cancelled"),params:N.object({reason:N.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),Nle=N.object({fonts:N.string().optional()}),Ole=N.object({variables:Tle.optional().describe("CSS variables for theming the app."),css:Nle.optional().describe("CSS blocks that apps can inject.")}),kle=N.object({method:N.literal("ui/resource-teardown"),params:N.object({})}),JDe=N.record(N.string(),N.unknown()),VV=N.object({text:N.object({}).optional().describe("Host supports text content blocks."),image:N.object({}).optional().describe("Host supports image content blocks."),audio:N.object({}).optional().describe("Host supports audio content blocks."),resource:N.object({}).optional().describe("Host supports resource content blocks."),resourceLink:N.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:N.object({}).optional().describe("Host supports structured content.")}),QDe=N.object({method:N.literal("ui/notifications/request-teardown"),params:N.object({}).optional()}),Mle=N.object({experimental:N.record(N.string(),N.record(N.string(),N.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:N.object({}).optional().describe("Host supports opening external URLs."),downloadFile:N.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:N.object({listChanged:N.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:N.object({listChanged:N.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:N.object({}).optional().describe("Host accepts log messages."),sandbox:N.object({permissions:dO.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:fO.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:VV.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:VV.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:N.object({tools:N.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Ile=N.object({experimental:N.record(N.string(),N.record(N.string(),N.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:N.object({listChanged:N.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:N.array(Wv).optional().describe("Display modes the app supports.")}),eNe=N.object({method:N.literal("ui/notifications/initialized"),params:N.object({}).optional()}),tNe=N.object({csp:fO.optional().describe("Content Security Policy configuration for UI resources."),permissions:dO.optional().describe("Sandbox permissions requested by the UI resource."),domain:N.string().optional().describe(`Dedicated origin for view sandbox.
|
|
95
|
+
|
|
96
|
+
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
97
|
+
|
|
98
|
+
**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
|
|
99
|
+
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
|
|
100
|
+
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
|
|
101
|
+
|
|
102
|
+
If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:N.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.
|
|
103
|
+
|
|
104
|
+
Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
|
|
105
|
+
|
|
106
|
+
- \`true\`: request visible border + background
|
|
107
|
+
- \`false\`: request no visible border + background
|
|
108
|
+
- omitted: host decides border`)}),rNe=N.object({method:N.literal("ui/request-display-mode"),params:N.object({mode:Wv.describe("The display mode being requested.")})}),Rle=N.object({mode:Wv.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),Lle=N.union([N.literal("model"),N.literal("app")]).describe("Tool visibility scope - who can access the tool."),nNe=N.object({resourceUri:N.string().optional(),visibility:N.array(Lle).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
109
|
+
- "model": Tool visible to and callable by the agent
|
|
110
|
+
- "app": Tool callable by the app from this server only`),csp:N.never().optional(),permissions:N.never().optional()}),iNe=N.object({mimeTypes:N.array(N.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),aNe=N.object({method:N.literal("ui/download-file"),params:N.object({contents:N.array(N.union([tO,rO])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),oNe=N.object({method:N.literal("ui/message"),params:N.object({role:N.literal("user").describe('Message role, currently only "user" is supported.'),content:N.array(Xd).describe("Message content blocks (text, image, etc.).")})}),sNe=N.object({method:N.literal("ui/notifications/sandbox-resource-ready"),params:N.object({html:N.string().describe("HTML content to load into the inner iframe."),sandbox:N.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:fO.optional().describe("CSP configuration from resource metadata."),permissions:dO.optional().describe("Sandbox permissions from resource metadata.")})}),Ple=N.object({method:N.literal("ui/notifications/tool-result"),params:Kd.describe("Standard MCP tool execution result.")}),HV=N.object({toolInfo:N.object({id:Gd.optional().describe("JSON-RPC id of the tools/call request."),tool:XS.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:xle.optional().describe("Current color theme preference."),styles:Ole.optional().describe("Style configuration for theming the app."),displayMode:Wv.optional().describe("How the UI is currently displayed."),availableDisplayModes:N.array(Wv).optional().describe("Display modes the host supports."),containerDimensions:N.union([N.object({height:N.number().describe("Fixed container height in pixels.")}),N.object({maxHeight:N.union([N.number(),N.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(N.union([N.object({width:N.number().describe("Fixed container width in pixels.")}),N.object({maxWidth:N.union([N.number(),N.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
111
|
+
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:N.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:N.string().optional().describe("User's timezone in IANA format."),userAgent:N.string().optional().describe("Host application identifier."),platform:N.union([N.literal("web"),N.literal("desktop"),N.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:N.object({touch:N.boolean().optional().describe("Whether the device supports touch input."),hover:N.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:N.object({top:N.number().describe("Top safe area inset in pixels."),right:N.number().describe("Right safe area inset in pixels."),bottom:N.number().describe("Bottom safe area inset in pixels."),left:N.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),$le=N.object({method:N.literal("ui/notifications/host-context-changed"),params:HV.describe("Partial context update containing only changed fields.")}),lNe=N.object({method:N.literal("ui/update-model-context"),params:N.object({content:N.array(Xd).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:N.record(N.string(),N.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),uNe=N.object({method:N.literal("ui/initialize"),params:N.object({appInfo:Hv.describe("App identification (name and version)."),appCapabilities:Ile.describe("Features and capabilities this app provides."),protocolVersion:N.string().describe("Protocol version this app supports.")})}),Ule=N.object({protocolVersion:N.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:Hv.describe("Host application identification and version."),hostCapabilities:Mle.describe("Features and capabilities provided by the host."),hostContext:HV.describe("Rich context about the host environment.")}).passthrough(),jle={target:"draft-2020-12"};async function BV(e,t){let r=e["~standard"];if(r.jsonSchema)return r.jsonSchema[t](jle);if(r.vendor==="zod"){let{z:n}=await Promise.resolve().then(()=>(Hd(),RS));return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${r.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function ZV(e,t,r=""){let n=await e["~standard"].validate(t);if(n.issues){let i=n.issues.map(a=>{let o=a.path?.map(s=>typeof s=="object"?s.key:s).join(".");return o?`${o}: ${a.message}`:a.message}).join("; ");throw Error(r+i)}return n.value}var WS=class e extends uO{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(t){if(this._initializedSent)return;let r=`[ext-apps] App.${t}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(r);console.warn(`${r}. This will throw in a future release.`)}eventSchemas={toolinput:Ale,toolinputpartial:Cle,toolresult:Ple,toolcancelled:Dle,hostcontextchanged:$le};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let r=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(r);console.warn(r)}setEventHandler(t,r){r&&this._assertHandlerTiming(t),super.setEventHandler(t,r)}addEventListener(t,r){this._assertHandlerTiming(t),super.addEventListener(t,r)}onEventDispatch(t,r){t==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...r})}constructor(t,r={},n={autoResize:!0}){super(n),this._appInfo=t,this._capabilities=r,this.options=n,n.allowUnsafeEval||N.config({jitless:!0}),this.setRequestHandler(qd,i=>(console.log("Received ping:",i.params),{})),this.setEventHandler("hostcontextchanged",void 0)}registerCapabilities(t){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._capabilities=jV(this._capabilities,t)}registerTool(t,r,n){if(this._registeredTools[t])throw Error(`Tool ${t} is already registered`);let i=this,a=()=>{i._initializedSent&&i._capabilities.tools?.listChanged&&i.sendToolListChanged()},o=r.inputSchema!==void 0,s={title:r.title,description:r.description,inputSchema:r.inputSchema,outputSchema:r.outputSchema,annotations:r.annotations,_meta:r._meta,enabled:!0,enable(){this.enabled=!0,a()},disable(){this.enabled=!1,a()},update(l){Object.assign(this,l),a()},remove(){i._registeredTools[t]===s&&(delete i._registeredTools[t],a())},handler:async(l,u)=>{if(!s.enabled)throw Error(`Tool ${t} is disabled`);let c;if(o){let f=s.inputSchema,d=f?await ZV(f,l??{},`Invalid input for tool ${t}: `):l??{};c=await n(d,u)}else c=await n(u);return s.outputSchema&&!c.isError&&(c.structuredContent=await ZV(s.outputSchema,c.structuredContent,`Invalid output for tool ${t}: `)),c}};return this._registeredTools[t]=s,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),a(),s}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(t,r)=>{let n=this._registeredTools[t.name];if(!n)throw Error(`Tool ${t.name} not found`);return n.handler(t.arguments,r)},this.onlisttools=async(t,r)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([n,i])=>i.enabled).map(async([n,i])=>{let a={name:n,title:i.title,description:i.description,inputSchema:i.inputSchema?await BV(i.inputSchema,"input"):{type:"object",properties:{}}};return i.outputSchema&&(a.outputSchema=await BV(i.outputSchema,"output")),i.annotations&&(a.annotations=i.annotations),i._meta&&(a._meta=i._meta),a}))}))}async sendToolListChanged(t={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:t})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(t){this.setEventHandler("toolinput",t)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(t){this.setEventHandler("toolinputpartial",t)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(t){this.setEventHandler("toolresult",t)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(t){this.setEventHandler("toolcancelled",t)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(t){this.setEventHandler("hostcontextchanged",t)}_onteardown;get onteardown(){return this._onteardown}set onteardown(t){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,t),this._onteardown=t,this.replaceRequestHandler(kle,(r,n)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(r.params,n)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(t){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,t),this._oncalltool=t,this.replaceRequestHandler(iO,(r,n)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(r.params,n)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(t){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,t),this._onlisttools=t,this.replaceRequestHandler(nO,(r,n)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(r.params,n)})}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"tools/call":case"tools/list":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${t})`);return;case"ping":case"ui/resource-teardown":return;default:throw Error(`No handler for method ${t} registered`)}}assertNotificationCapability(t){}assertTaskCapability(t){throw Error("Tasks are not supported in MCP Apps")}assertTaskHandlerCapability(t){throw Error("Task handlers are not supported in MCP Apps")}async callServerTool(t,r){if(this._assertInitialized("callServerTool"),typeof t=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${t}"). Did you mean: callServerTool({ name: "${t}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:t},Kd,{onprogress:()=>{},resetTimeoutOnProgress:!0,...r})}async readServerResource(t,r){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:t},WN,r)}async listServerResources(t,r){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:t},XN,r)}async createSamplingMessage(t,r){this._assertInitialized("createSamplingMessage");let n=t.tools?oO:aO;return await this.request({method:"sampling/createMessage",params:t},n,r)}sendMessage(t,r){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:t},zle,r)}sendLog(t){return this.notification({method:"notifications/message",params:t})}updateModelContext(t,r){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:t},US,r)}openLink(t,r){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:t},wle,r)}sendOpenLink=this.openLink;downloadFile(t,r){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:t},Ele,r)}requestTeardown(t={}){return this.notification({method:"ui/notifications/request-teardown",params:t})}requestDisplayMode(t,r){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:t},Rle,r)}sendSizeChanged(t){return this.notification({method:"ui/notifications/size-changed",params:t})}setupSizeChangedNotifications(){let t=!1,r=0,n=0,i=()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1;let o=document.documentElement,s=o.style.height;o.style.height="max-content";let l=Math.ceil(o.getBoundingClientRect().height);o.style.height=s;let u=Math.ceil(window.innerWidth);(u!==r||l!==n)&&(r=u,n=l,this.sendSizeChanged({width:u,height:l}))}))};i();let a=new ResizeObserver(i);return a.observe(document.documentElement),a.observe(document.body),()=>a.disconnect()}async connect(t=new cO(window.parent,window.parent),r){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1,await super.connect(t);try{let n=await this.request({method:"ui/initialize",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:_le}},Ule,r);if(n===void 0)throw Error(`Server sent invalid initialize result: ${n}`);this._hostCapabilities=n.hostCapabilities,this._hostInfo=n.hostInfo,this._hostContext=n.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(n){throw this.close(),n}}};var pne=Me(fF(),1);var une=Me(un(),1);var VT=Me(un(),1);function zF(e){let[t,r]=(0,VT.useState)(e.primaryView.id);return(0,VT.useEffect)(()=>{r(n=>e.views.some(i=>i.id===n)?n:e.primaryView.id)},[e]),[t,r]}var bde=new Set(["detail-card","kpi-grid","json-tree","kanban","timeline","data-table","line-chart","bar-chart","pie-chart","node-graph","hierarchy-tree"]);function AF(e){return bde.has(e)}var Xo=Me(un(),1);var kF=Me(un(),1);To();xs();var Mr=Me(ut(),1);function MF({spec:e,bindings:t}){let r=e.data[0];if(r===void 0)return(0,Mr.jsx)("p",{"data-testid":"detail-card-empty",children:"No record in view data."});let n=t.title,i=t.subtitle,a=t.columns??[],o=n!==void 0?Xt(r[n],Je(e.fields,n)):"",s=i!==void 0?Xt(r[i],Je(e.fields,i)):"";return(0,Mr.jsxs)("article",{className:"schemacast-detail-card","data-testid":"detail-card-view",children:[o.length>0||s.length>0?(0,Mr.jsxs)("header",{className:"schemacast-detail-card-header",children:[o.length>0?(0,Mr.jsx)("h3",{"data-testid":"detail-card-title",children:o}):null,s.length>0?(0,Mr.jsx)("p",{"data-testid":"detail-card-subtitle",children:s}):null]}):null,(0,Mr.jsx)("dl",{className:"schemacast-detail-card-grid","data-testid":"detail-card-table",children:a.map(l=>{let u=Je(e.fields,l),c=r[l];return(0,Mr.jsxs)("div",{className:"schemacast-detail-card-row",children:[(0,Mr.jsx)("dt",{className:"schemacast-detail-card-label","data-testid":`detail-card-label-${l}`,children:Nde(l,e.fields)}),(0,Mr.jsx)("dd",{className:"schemacast-detail-card-value","data-testid":`detail-card-value-${l}`,children:(0,Mr.jsx)(Ade,{field:u,fieldKey:l,value:c})})]},l)})})]})}function Ade({field:e,fieldKey:t,value:r}){if(typeof r=="boolean"){let n=Cde(t,r);return(0,Mr.jsx)("span",{className:"schemacast-detail-card-badge","data-testid":`detail-card-boolean-${t}`,children:n})}return e?.semanticType==="image-url"&&typeof r=="string"&&r.length>0?(0,Mr.jsx)(Dde,{fieldKey:t,label:e.label,url:r}):(0,Mr.jsx)("span",{children:Xt(r,e)})}function Cde(e,t){return e.startsWith("is_")?t?"Active":"Inactive":t?"Yes":"No"}function Dde({fieldKey:e,label:t,url:r}){let[n,i]=(0,kF.useState)(null),a=n===r;return(0,Mr.jsxs)("span",{className:"schemacast-detail-card-image-value",children:[(0,Mr.jsx)("img",{className:"schemacast-detail-card-avatar","data-testid":`detail-card-avatar-${e}`,src:r,alt:a?"":t,hidden:a,onError:()=>{i(r)}}),(0,Mr.jsx)("span",{className:"schemacast-detail-card-url-fallback","data-testid":`detail-card-url-fallback-${e}`,hidden:!a,children:r})]})}function Nde(e,t){return Je(t,e)?.label??e}var ty=Me(un(),1),Zt=Me(ut(),1);function IF({spec:e}){let[t,r]=(0,ty.useState)(""),n=t.trim().toLowerCase(),i=(0,ty.useMemo)(()=>Ode(e),[e]);return(0,Zt.jsxs)("div",{className:"schemacast-json-tree","data-testid":"json-tree-view",children:[(0,Zt.jsxs)("label",{className:"schemacast-json-tree-search",children:["Search",(0,Zt.jsx)("input",{className:"schemacast-json-tree-search-input",type:"search",value:t,onChange:a=>{r(a.target.value)},"aria-label":"Search JSON tree"})]}),i.map(a=>(0,Zt.jsx)(kde,{label:a.label,value:a.value,path:a.label,searchQuery:n},a.label))]})}function Ode(e){let t=[{label:"data",value:e.data}];return e.meta!==void 0&&t.push({label:"meta",value:e.meta}),e.edges!==void 0&&t.push({label:"edges",value:e.edges}),t}function kde({label:e,value:t,path:r,searchQuery:n}){return(0,Zt.jsxs)("section",{className:"schemacast-json-tree-section","data-testid":`json-tree-section-${e}`,children:[(0,Zt.jsx)("h4",{className:"schemacast-json-tree-section-title",children:e}),(0,Zt.jsx)(RF,{label:null,value:t,path:r,searchQuery:n,depth:0})]})}function RF({label:e,value:t,path:r,searchQuery:n,depth:i}){let[a,o]=(0,ty.useState)(i===0),s=PF(t);if(!LF(e,t,r,n))return null;if(!s)return(0,Zt.jsxs)("div",{className:"schemacast-json-tree-line schemacast-json-tree-leaf","data-testid":"json-tree-leaf",style:{paddingLeft:`${i*1.25}rem`},children:[e===null?null:(0,Zt.jsxs)("span",{className:"schemacast-json-tree-key",children:[JSON.stringify(e),":"]}),(0,Zt.jsx)("span",{className:`schemacast-json-tree-value schemacast-json-tree-value--${Mde(t)}`,children:Ide(t)})]});let l=$F(t,r),u=a||n.length>0,c=Array.isArray(t)?"[":"{",f=Array.isArray(t)?"]":"}",d=u?c:`${c}${l.length}${f}`;return(0,Zt.jsxs)("div",{className:"schemacast-json-tree-node","data-testid":"json-tree-node",children:[(0,Zt.jsx)("div",{className:"schemacast-json-tree-line",style:{paddingLeft:`${i*1.25}rem`},children:(0,Zt.jsxs)("button",{className:"schemacast-json-tree-toggle",type:"button","aria-expanded":u,"data-testid":`json-tree-toggle-${r}`,onClick:()=>{o(p=>!p)},children:[(0,Zt.jsx)("span",{className:"schemacast-json-tree-arrow","aria-hidden":"true",children:u?"\u25BE":"\u25B8"}),e===null?null:(0,Zt.jsxs)("span",{className:"schemacast-json-tree-key",children:[JSON.stringify(e),":"]}),(0,Zt.jsx)("span",{className:"schemacast-json-tree-bracket",children:d})]})}),u?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("div",{className:"schemacast-json-tree-children",children:l.map(p=>(0,Zt.jsx)(RF,{label:p.label,value:p.value,path:p.path,searchQuery:n,depth:i+1},p.path))}),(0,Zt.jsx)("div",{className:"schemacast-json-tree-line schemacast-json-tree-closing-bracket",style:{paddingLeft:`${i*1.25}rem`},"aria-hidden":"true",children:f})]}):null]})}function LF(e,t,r,n){return n.length===0||`${e??""} ${r} ${Rde(t)}`.toLowerCase().includes(n)?!0:PF(t)?$F(t,r).some(a=>LF(a.label,a.value,a.path,n)):!1}function PF(e){return Array.isArray(e)||typeof e=="object"&&e!==null}function $F(e,t){return Array.isArray(e)?e.map((r,n)=>({label:null,value:r,path:`${t}[${n}]`})):typeof e=="object"&&e!==null?Object.entries(e).map(([r,n])=>({label:r,value:n,path:`${t}.${r}`})):[]}function Mde(e){return e===null?"null":typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":"other"}function Ide(e){return typeof e=="string"?JSON.stringify(e)??'""':String(e)}function Rde(e){return e==null?String(e):typeof e=="object"?"[\u2026]":String(e)}var aa=Me(ut(),1);function UF({spec:e,bindings:t}){let r=t.groupBy,n=t.title,i=t.subtitle;if(r===void 0||n===void 0)return(0,aa.jsx)("p",{"data-testid":"kanban-view",children:"Missing kanban bindings."});let a=new Map;for(let s of e.data){let l=String(s[r]??"unknown"),u=a.get(l)??[];a.set(l,[...u,s])}let o=Array.from(a.keys()).sort((s,l)=>s.localeCompare(l));return(0,aa.jsx)("div",{className:"schemacast-kanban-board","data-testid":"kanban-view",children:o.map(s=>{let l=a.get(s)??[],u=Lde(s);return(0,aa.jsxs)("section",{className:"schemacast-kanban-column","data-testid":`kanban-lane-${s}`,"aria-label":s,children:[(0,aa.jsx)("header",{className:"schemacast-kanban-column-header",children:(0,aa.jsxs)("h4",{children:[u," ",(0,aa.jsxs)("span",{children:["(",l.length,")"]})]})}),(0,aa.jsx)("ul",{className:"schemacast-kanban-card-list",children:l.map((c,f)=>{let d=String(c[n]??""),p=i!==void 0?String(c[i]??""):"";return(0,aa.jsxs)("li",{className:"schemacast-kanban-card","data-testid":"kanban-card",children:[(0,aa.jsx)("span",{children:d}),p.length>0?(0,aa.jsx)("small",{children:p}):null]},`${s}-${f}`)})})]},s)})})}function Lde(e){let t=e.replace(/_/g," "),r=t.charAt(0);return r.length===0?t:`${r.toLocaleUpperCase()}${t.slice(1)}`}To();xs();var Rc=Me(ut(),1),Pde=new Intl.NumberFormat("en-US",{maximumSignificantDigits:21});function jF({spec:e,bindings:t}){let r=e.data[0],n=t.y??[];return(0,Rc.jsx)("div",{"data-testid":"kpi-grid-view",children:(0,Rc.jsx)("ul",{className:"schemacast-kpi-grid",children:n.map(i=>{let a=Je(e.fields,i),o=r!==void 0?r[i]:void 0;return(0,Rc.jsxs)("li",{className:"schemacast-kpi-card","data-testid":`kpi-tile-${i}`,children:[(0,Rc.jsx)("span",{className:"schemacast-kpi-label","data-testid":`kpi-label-${i}`,children:a?.label??i}),(0,Rc.jsx)("strong",{className:"schemacast-kpi-value","data-testid":`kpi-value-${i}`,children:$de(o,a)})]},i)})})})}function $de(e,t){if(t?.semanticType!=="number"||e===null||e===void 0)return Xt(e,t);let r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?Pde.format(r):Xt(e,t)}To();xs();var Ss=Me(ut(),1),Ude=/^(\d{4}-\d{2}-\d{2})$/,jde=/^\d{4}-\d{2}-\d{2}T/;function BF({spec:e,bindings:t}){let r=t.startDate,n=t.endDate,i=t.title??t.subtitle;return r===void 0||i===void 0?(0,Ss.jsx)("p",{"data-testid":"timeline-view",children:"Missing timeline bindings."}):(0,Ss.jsx)("ol",{className:"schemacast-timeline","data-testid":"timeline-view",children:e.data.map((a,o)=>{let s=String(a[i]??""),l=VF(a[r],Je(e.fields,r)),u=n!==void 0?VF(a[n],Je(e.fields,n)):void 0,c=Vde(l,u);return(0,Ss.jsxs)("li",{className:"schemacast-timeline-item","data-testid":"timeline-item",children:[(0,Ss.jsx)("span",{className:"schemacast-timeline-marker","aria-hidden":"true"}),(0,Ss.jsxs)("div",{className:"schemacast-timeline-content",children:[(0,Ss.jsx)("strong",{className:"schemacast-timeline-title","data-testid":"timeline-title",children:s}),(0,Ss.jsx)("span",{className:"schemacast-timeline-date","data-testid":"timeline-date",children:c})]})]},`${s}-${o}`)})})}function VF(e,t){if(typeof e=="string"){if(Ude.exec(e)!==null){let n=new Date(`${e}T00:00:00.000Z`);if(Number.isFinite(n.getTime())&&n.toISOString().startsWith(e)){let i=new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeZone:"UTC"}).format(n);return{text:i,dayKey:i,dateLabel:i,isDateOnly:!0}}}if(jde.test(e)){let n=new Date(e);if(Number.isFinite(n.getTime())){let i=Xt(e,t),a=new Intl.DateTimeFormat("en-US",{dateStyle:"medium"}).format(n),o=new Intl.DateTimeFormat("en-US",{timeStyle:"short"}).format(n);return{text:i===e?`${a}, ${o}`:i,dayKey:a,dateLabel:a,timeLabel:o,isDateOnly:!1}}}}return{text:Xt(e,t),isDateOnly:!1}}function Vde(e,t){if(t===void 0||t.text.length===0)return e.text;if(e.dayKey!==void 0&&e.dayKey===t.dayKey){if(e.isDateOnly&&t.isDateOnly)return e.text;let r=e.dateLabel??t.dateLabel,n=[e.timeLabel,t.timeLabel].filter(i=>i!==void 0);if(r!==void 0&&n.length>0)return`${r}, ${n.join(" \u2013 ")}`}return`${e.text} \u2013 ${t.text}`}var Wt=Me(ut(),1),wSe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(KF(),XF))).DataTableView})),ESe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(Rre(),Ire))).LineChartView})),zSe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(Vre(),jre))).BarChartView})),ASe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(Hre(),Zre))).PieChartView})),CSe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(Jre(),Wre))).NodeGraphView})),DSe=(0,Xo.lazy)(async()=>({default:(await Promise.resolve().then(()=>(nne(),rne))).HierarchyTreeView}));function t0({testId:e,children:t}){return(0,Wt.jsx)(Xo.Suspense,{fallback:(0,Wt.jsx)("p",{"data-testid":`${e}-loading`,children:"Loading chart\u2026"}),children:t})}function ine({spec:e,view:t}){switch(t.archetype){case"detail-card":return(0,Wt.jsx)(MF,{spec:e,bindings:t.bindings});case"kpi-grid":return(0,Wt.jsx)(jF,{spec:e,bindings:t.bindings});case"json-tree":return(0,Wt.jsx)(IF,{spec:e});case"kanban":return(0,Wt.jsx)(UF,{spec:e,bindings:t.bindings});case"timeline":return(0,Wt.jsx)(BF,{spec:e,bindings:t.bindings});case"data-table":return(0,Wt.jsx)(Xo.Suspense,{fallback:(0,Wt.jsx)("p",{"data-testid":"data-table-loading",children:"Loading table\u2026"}),children:(0,Wt.jsx)(wSe,{spec:e,bindings:t.bindings})});case"line-chart":return(0,Wt.jsx)(t0,{testId:"line-chart",children:(0,Wt.jsx)(ESe,{spec:e,bindings:t.bindings})});case"bar-chart":return(0,Wt.jsx)(t0,{testId:"bar-chart",children:(0,Wt.jsx)(zSe,{spec:e,bindings:t.bindings,data:t.data})});case"pie-chart":return(0,Wt.jsx)(t0,{testId:"pie-chart",children:(0,Wt.jsx)(ASe,{spec:e,bindings:t.bindings})});case"node-graph":return(0,Wt.jsx)(t0,{testId:"node-graph",children:(0,Wt.jsx)(CSe,{spec:e,bindings:t.bindings})});case"hierarchy-tree":return(0,Wt.jsx)(t0,{testId:"hierarchy-tree",children:(0,Wt.jsx)(DSe,{spec:e,bindings:t.bindings})});default:return(0,Wt.jsxs)("p",{"data-testid":"view-placeholder",children:["No renderer is available for archetype \u201C",t.archetype,"\u201D."]})}}var ane=Me(un(),1),qU=Me(ut(),1);function one(e){return`schemacast-panel-${e}`}function NSe(e){return`schemacast-tab-${e}`}function sne({views:e,selectedViewId:t,onSelectViewId:r}){let n=(0,ane.useCallback)(i=>{let a=e.findIndex(l=>l.id===t);if(a<0)return;let o=a;if(i.key==="ArrowRight")o=(a+1)%e.length;else if(i.key==="ArrowLeft")o=(a-1+e.length)%e.length;else if(i.key==="Home")o=0;else if(i.key==="End")o=e.length-1;else return;i.preventDefault();let s=e[o];s!==void 0&&r(s.id)},[r,t,e]);return(0,qU.jsx)("div",{role:"tablist","aria-label":"Visual views",className:"schemacast-view-switcher",onKeyDown:n,"data-testid":"view-tablist",children:e.map(i=>{let a=i.id===t;return(0,qU.jsx)("button",{type:"button",role:"tab",className:"schemacast-view-switcher-tab",id:NSe(i.id),"aria-selected":a,"aria-controls":one(i.id),tabIndex:a?0:-1,onClick:()=>{r(i.id)},children:i.label},i.id)})})}function lne(e){return one(e)}var pr=Me(ut(),1);function YU({spec:e,isStreaming:t}){let r=(0,une.useMemo)(()=>t===void 0||t===e.isStreaming?e:{...e,isStreaming:t},[t,e]),[n,i]=zF(r),a=r.views.find(u=>u.id===n)??r.primaryView,o=r.isStreaming&&r.data.length===0,s=r.views.length>1,l=!o&&AF(a.archetype);return(0,pr.jsxs)("section",{"aria-label":"Auto visual",className:"schemacast-auto-visual","data-testid":"auto-visual",children:[s?(0,pr.jsx)(sne,{views:r.views,selectedViewId:n,onSelectViewId:i}):null,(0,pr.jsxs)("div",{role:"tabpanel",className:"schemacast-view-panel",id:lne(a.id),"aria-labelledby":s?`schemacast-tab-${a.id}`:void 0,"data-testid":"view-panel",children:[(0,pr.jsx)("header",{className:"schemacast-view-panel-header",children:(0,pr.jsxs)("details",{className:"schemacast-view-rationale",children:[(0,pr.jsx)("summary",{className:"schemacast-view-rationale-summary",children:"Why this view?"}),(0,pr.jsxs)("div",{className:"schemacast-view-rationale-content",children:[(0,pr.jsxs)("p",{className:"schemacast-view-rationale-item",children:[(0,pr.jsx)("span",{className:"schemacast-view-rationale-label",children:"View"}),(0,pr.jsx)("span",{"data-testid":"primary-archetype",children:a.archetype})]}),(0,pr.jsxs)("p",{className:"schemacast-view-rationale-item",children:[(0,pr.jsx)("span",{className:"schemacast-view-rationale-label",children:"Score"}),(0,pr.jsx)("span",{"data-testid":"primary-score",children:a.score.toFixed(2)})]}),(0,pr.jsxs)("p",{className:"schemacast-view-rationale-item",children:[(0,pr.jsx)("span",{className:"schemacast-view-rationale-label",children:"Reason"}),(0,pr.jsx)("span",{"data-testid":"primary-reason",children:a.reason})]})]})]})}),o?(0,pr.jsx)("p",{"data-testid":"streaming-placeholder",children:"Preparing visual from stream\u2026"}):l?(0,pr.jsx)(ine,{spec:r,view:a}):(0,pr.jsxs)("p",{"data-testid":"view-placeholder",children:["No renderer is available for archetype \u201C",a.archetype,"\u201D."]})]})]})}var cne="schemacast/visualSpec";var gh=Me(ut(),1),r0=new WS({name:"schemacast",version:"0.5.1"}),mne=document.getElementById("schemacast-app");if(mne===null)throw new Error("The schemacast app container is missing.");var jA=(0,pne.createRoot)(mne);jA.render((0,gh.jsx)("p",{role:"status",children:"Waiting for a VisualSpec\u2026"}));r0.addEventListener("hostcontextchanged",()=>{hne(r0.getHostContext()?.theme)});r0.ontoolresult=e=>{let t=Js(e._meta)?e._meta[cne]:null,r=fne(t)?t:e.structuredContent;if(!fne(r)){jA.render((0,gh.jsx)("p",{role:"alert",children:"The server response did not contain a valid VisualSpec."}));return}jA.render((0,gh.jsx)(YU,{spec:r}))};r0.connect().then(()=>{hne(r0.getHostContext()?.theme)}).catch(e=>{let t=e instanceof Error?e.message:String(e);jA.render((0,gh.jsxs)("p",{role:"alert",children:["Could not connect to the MCP host: ",t]}))});function hne(e){let t=document.documentElement;if(e===void 0){t.removeAttribute("data-theme"),t.style.removeProperty("color-scheme");return}t.dataset.theme=e,t.style.colorScheme=e}function fne(e){return Js(e)?e.version==="1.0"&&typeof e.isStreaming=="boolean"&&dne(e.primaryView)&&Array.isArray(e.views)&&e.views.every(dne)&&Array.isArray(e.fields)&&e.fields.every(OSe)&&Array.isArray(e.data)&&e.data.every(Js)&&(e.edges===void 0||Array.isArray(e.edges)&&e.edges.every(Js))&&(e.meta===void 0||Js(e.meta)):!1}function dne(e){return Js(e)&&typeof e.id=="string"&&kSe(e.archetype)&&typeof e.label=="string"&&typeof e.score=="number"&&typeof e.reason=="string"&&Js(e.bindings)&&(e.data===void 0||Array.isArray(e.data)&&e.data.every(Js))}function OSe(e){return Js(e)&&typeof e.key=="string"&&typeof e.label=="string"&&MSe(e.semanticType)&&typeof e.nullRatio=="number"&&typeof e.cardinality=="number"&&(e.formatHint===void 0||typeof e.formatHint=="string")}function Js(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function kSe(e){return e==="line-chart"||e==="bar-chart"||e==="pie-chart"||e==="kpi-grid"||e==="data-table"||e==="kanban"||e==="timeline"||e==="node-graph"||e==="hierarchy-tree"||e==="detail-card"||e==="json-tree"}function MSe(e){return e==="timestamp"||e==="currency"||e==="percentage"||e==="status"||e==="identifier"||e==="url"||e==="image-url"||e==="boolean"||e==="number"||e==="category"||e==="text"||e==="nested"||e==="unknown"||e==="geo-lat"||e==="geo-lng"}})();
|
|
112
|
+
</script>
|
|
113
|
+
</body>
|
|
114
|
+
</html>
|